1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for lfcbase 1.16.2.
4#
5# Report bugs to <lemke@lemke-it.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and lemke@lemke-it.com
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='lfcbase'
592PACKAGE_TARNAME='lfcbase'
593PACKAGE_VERSION='1.16.2'
594PACKAGE_STRING='lfcbase 1.16.2'
595PACKAGE_BUGREPORT='lemke@lemke-it.com'
596PACKAGE_URL=''
597
598ac_unique_file="config.h.in"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_func_list=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640LIBTOOL_DEPS
641CXXCPP
642LT_SYS_LIBRARY_PATH
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
648MANIFEST_TOOL
649RANLIB
650DLLTOOL
651OBJDUMP
652LN_S
653NM
654ac_ct_DUMPBIN
655DUMPBIN
656LD
657FGREP
658SED
659LIBTOOL
660LIBOBJS
661ALLOCA
662EGREP
663GREP
664CPP
665HAS_MINGW_FALSE
666HAS_MINGW_TRUE
667DARWINDEF
668MINGWDEF
669host_os
670host_vendor
671host_cpu
672host
673build_os
674build_vendor
675build_cpu
676build
677ac_ct_AR
678AR
679am__fastdepCC_FALSE
680am__fastdepCC_TRUE
681CCDEPMODE
682ac_ct_CC
683CFLAGS
684CC
685am__fastdepCXX_FALSE
686am__fastdepCXX_TRUE
687CXXDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__quote
693am__include
694DEPDIR
695OBJEXT
696EXEEXT
697ac_ct_CXX
698CPPFLAGS
699LDFLAGS
700CXXFLAGS
701CXX
702AM_BACKSLASH
703AM_DEFAULT_VERBOSITY
704AM_DEFAULT_V
705AM_V
706am__untar
707am__tar
708AMTAR
709am__leading_dot
710SET_MAKE
711AWK
712mkdir_p
713MKDIR_P
714INSTALL_STRIP_PROGRAM
715STRIP
716install_sh
717MAKEINFO
718AUTOHEADER
719AUTOMAKE
720AUTOCONF
721ACLOCAL
722VERSION
723PACKAGE
724CYGPATH_W
725am__isrc
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729target_alias
730host_alias
731build_alias
732LIBS
733ECHO_T
734ECHO_N
735ECHO_C
736DEFS
737mandir
738localedir
739libdir
740psdir
741pdfdir
742dvidir
743htmldir
744infodir
745docdir
746oldincludedir
747includedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
767ac_subst_files=''
768ac_user_opts='
769enable_option_checking
770enable_silent_rules
771enable_dependency_tracking
772enable_shared
773enable_static
774with_pic
775enable_fast_install
776with_aix_soname
777with_gnu_ld
778with_sysroot
779enable_libtool_lock
780'
781      ac_precious_vars='build_alias
782host_alias
783target_alias
784CXX
785CXXFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
789CCC
790CC
791CFLAGS
792CPP
793LT_SYS_LIBRARY_PATH
794CXXCPP'
795
796
797# Initialize some variables set by options.
798ac_init_help=
799ac_init_version=false
800ac_unrecognized_opts=
801ac_unrecognized_sep=
802# The variables have the same names as the options, with
803# dashes changed to underlines.
804cache_file=/dev/null
805exec_prefix=NONE
806no_create=
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
815verbose=
816x_includes=NONE
817x_libraries=NONE
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
824# (The list follows the same order as the GNU Coding Standards.)
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
833includedir='${prefix}/include'
834oldincludedir='/usr/include'
835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836infodir='${datarootdir}/info'
837htmldir='${docdir}'
838dvidir='${docdir}'
839pdfdir='${docdir}'
840psdir='${docdir}'
841libdir='${exec_prefix}/lib'
842localedir='${datarootdir}/locale'
843mandir='${datarootdir}/man'
844
845ac_prev=
846ac_dashdash=
847for ac_option
848do
849  # If the previous option needs an argument, assign it.
850  if test -n "$ac_prev"; then
851    eval $ac_prev=\$ac_option
852    ac_prev=
853    continue
854  fi
855
856  case $ac_option in
857  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858  *=)   ac_optarg= ;;
859  *)    ac_optarg=yes ;;
860  esac
861
862  # Accept the important Cygnus configure options, so we can diagnose typos.
863
864  case $ac_dashdash$ac_option in
865  --)
866    ac_dashdash=yes ;;
867
868  -bindir | --bindir | --bindi | --bind | --bin | --bi)
869    ac_prev=bindir ;;
870  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871    bindir=$ac_optarg ;;
872
873  -build | --build | --buil | --bui | --bu)
874    ac_prev=build_alias ;;
875  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876    build_alias=$ac_optarg ;;
877
878  -cache-file | --cache-file | --cache-fil | --cache-fi \
879  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880    ac_prev=cache_file ;;
881  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883    cache_file=$ac_optarg ;;
884
885  --config-cache | -C)
886    cache_file=config.cache ;;
887
888  -datadir | --datadir | --datadi | --datad)
889    ac_prev=datadir ;;
890  -datadir=* | --datadir=* | --datadi=* | --datad=*)
891    datadir=$ac_optarg ;;
892
893  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894  | --dataroo | --dataro | --datar)
895    ac_prev=datarootdir ;;
896  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898    datarootdir=$ac_optarg ;;
899
900  -disable-* | --disable-*)
901    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902    # Reject names that are not valid shell variable names.
903    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904      as_fn_error $? "invalid feature name: $ac_useropt"
905    ac_useropt_orig=$ac_useropt
906    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907    case $ac_user_opts in
908      *"
909"enable_$ac_useropt"
910"*) ;;
911      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912	 ac_unrecognized_sep=', ';;
913    esac
914    eval enable_$ac_useropt=no ;;
915
916  -docdir | --docdir | --docdi | --doc | --do)
917    ac_prev=docdir ;;
918  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919    docdir=$ac_optarg ;;
920
921  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922    ac_prev=dvidir ;;
923  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924    dvidir=$ac_optarg ;;
925
926  -enable-* | --enable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=\$ac_optarg ;;
941
942  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944  | --exec | --exe | --ex)
945    ac_prev=exec_prefix ;;
946  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948  | --exec=* | --exe=* | --ex=*)
949    exec_prefix=$ac_optarg ;;
950
951  -gas | --gas | --ga | --g)
952    # Obsolete; use --with-gas.
953    with_gas=yes ;;
954
955  -help | --help | --hel | --he | -h)
956    ac_init_help=long ;;
957  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958    ac_init_help=recursive ;;
959  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960    ac_init_help=short ;;
961
962  -host | --host | --hos | --ho)
963    ac_prev=host_alias ;;
964  -host=* | --host=* | --hos=* | --ho=*)
965    host_alias=$ac_optarg ;;
966
967  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968    ac_prev=htmldir ;;
969  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970  | --ht=*)
971    htmldir=$ac_optarg ;;
972
973  -includedir | --includedir | --includedi | --included | --include \
974  | --includ | --inclu | --incl | --inc)
975    ac_prev=includedir ;;
976  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977  | --includ=* | --inclu=* | --incl=* | --inc=*)
978    includedir=$ac_optarg ;;
979
980  -infodir | --infodir | --infodi | --infod | --info | --inf)
981    ac_prev=infodir ;;
982  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983    infodir=$ac_optarg ;;
984
985  -libdir | --libdir | --libdi | --libd)
986    ac_prev=libdir ;;
987  -libdir=* | --libdir=* | --libdi=* | --libd=*)
988    libdir=$ac_optarg ;;
989
990  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991  | --libexe | --libex | --libe)
992    ac_prev=libexecdir ;;
993  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994  | --libexe=* | --libex=* | --libe=*)
995    libexecdir=$ac_optarg ;;
996
997  -localedir | --localedir | --localedi | --localed | --locale)
998    ac_prev=localedir ;;
999  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000    localedir=$ac_optarg ;;
1001
1002  -localstatedir | --localstatedir | --localstatedi | --localstated \
1003  | --localstate | --localstat | --localsta | --localst | --locals)
1004    ac_prev=localstatedir ;;
1005  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007    localstatedir=$ac_optarg ;;
1008
1009  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010    ac_prev=mandir ;;
1011  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012    mandir=$ac_optarg ;;
1013
1014  -nfp | --nfp | --nf)
1015    # Obsolete; use --without-fp.
1016    with_fp=no ;;
1017
1018  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019  | --no-cr | --no-c | -n)
1020    no_create=yes ;;
1021
1022  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024    no_recursion=yes ;;
1025
1026  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028  | --oldin | --oldi | --old | --ol | --o)
1029    ac_prev=oldincludedir ;;
1030  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033    oldincludedir=$ac_optarg ;;
1034
1035  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036    ac_prev=prefix ;;
1037  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038    prefix=$ac_optarg ;;
1039
1040  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041  | --program-pre | --program-pr | --program-p)
1042    ac_prev=program_prefix ;;
1043  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045    program_prefix=$ac_optarg ;;
1046
1047  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048  | --program-suf | --program-su | --program-s)
1049    ac_prev=program_suffix ;;
1050  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052    program_suffix=$ac_optarg ;;
1053
1054  -program-transform-name | --program-transform-name \
1055  | --program-transform-nam | --program-transform-na \
1056  | --program-transform-n | --program-transform- \
1057  | --program-transform | --program-transfor \
1058  | --program-transfo | --program-transf \
1059  | --program-trans | --program-tran \
1060  | --progr-tra | --program-tr | --program-t)
1061    ac_prev=program_transform_name ;;
1062  -program-transform-name=* | --program-transform-name=* \
1063  | --program-transform-nam=* | --program-transform-na=* \
1064  | --program-transform-n=* | --program-transform-=* \
1065  | --program-transform=* | --program-transfor=* \
1066  | --program-transfo=* | --program-transf=* \
1067  | --program-trans=* | --program-tran=* \
1068  | --progr-tra=* | --program-tr=* | --program-t=*)
1069    program_transform_name=$ac_optarg ;;
1070
1071  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072    ac_prev=pdfdir ;;
1073  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074    pdfdir=$ac_optarg ;;
1075
1076  -psdir | --psdir | --psdi | --psd | --ps)
1077    ac_prev=psdir ;;
1078  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079    psdir=$ac_optarg ;;
1080
1081  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082  | -silent | --silent | --silen | --sile | --sil)
1083    silent=yes ;;
1084
1085  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086    ac_prev=sbindir ;;
1087  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088  | --sbi=* | --sb=*)
1089    sbindir=$ac_optarg ;;
1090
1091  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093  | --sharedst | --shareds | --shared | --share | --shar \
1094  | --sha | --sh)
1095    ac_prev=sharedstatedir ;;
1096  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099  | --sha=* | --sh=*)
1100    sharedstatedir=$ac_optarg ;;
1101
1102  -site | --site | --sit)
1103    ac_prev=site ;;
1104  -site=* | --site=* | --sit=*)
1105    site=$ac_optarg ;;
1106
1107  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108    ac_prev=srcdir ;;
1109  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110    srcdir=$ac_optarg ;;
1111
1112  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113  | --syscon | --sysco | --sysc | --sys | --sy)
1114    ac_prev=sysconfdir ;;
1115  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117    sysconfdir=$ac_optarg ;;
1118
1119  -target | --target | --targe | --targ | --tar | --ta | --t)
1120    ac_prev=target_alias ;;
1121  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122    target_alias=$ac_optarg ;;
1123
1124  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125    verbose=yes ;;
1126
1127  -version | --version | --versio | --versi | --vers | -V)
1128    ac_init_version=: ;;
1129
1130  -with-* | --with-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=\$ac_optarg ;;
1145
1146  -without-* | --without-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: $ac_useropt"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=no ;;
1161
1162  --x)
1163    # Obsolete; use --with-x.
1164    with_x=yes ;;
1165
1166  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167  | --x-incl | --x-inc | --x-in | --x-i)
1168    ac_prev=x_includes ;;
1169  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171    x_includes=$ac_optarg ;;
1172
1173  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175    ac_prev=x_libraries ;;
1176  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178    x_libraries=$ac_optarg ;;
1179
1180  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information"
1182    ;;
1183
1184  *=*)
1185    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186    # Reject names that are not valid shell variable names.
1187    case $ac_envvar in #(
1188      '' | [0-9]* | *[!_$as_cr_alnum]* )
1189      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190    esac
1191    eval $ac_envvar=\$ac_optarg
1192    export $ac_envvar ;;
1193
1194  *)
1195    # FIXME: should be removed in autoconf 3.0.
1196    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200    ;;
1201
1202  esac
1203done
1204
1205if test -n "$ac_prev"; then
1206  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207  as_fn_error $? "missing argument to $ac_option"
1208fi
1209
1210if test -n "$ac_unrecognized_opts"; then
1211  case $enable_option_checking in
1212    no) ;;
1213    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215  esac
1216fi
1217
1218# Check all directory arguments for consistency.
1219for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220		datadir sysconfdir sharedstatedir localstatedir includedir \
1221		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222		libdir localedir mandir
1223do
1224  eval ac_val=\$$ac_var
1225  # Remove trailing slashes.
1226  case $ac_val in
1227    */ )
1228      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229      eval $ac_var=\$ac_val;;
1230  esac
1231  # Be sure to have absolute directory names.
1232  case $ac_val in
1233    [\\/$]* | ?:[\\/]* )  continue;;
1234    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235  esac
1236  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248  if test "x$build_alias" = x; then
1249    cross_compiling=maybe
1250  elif test "x$build_alias" != "x$host_alias"; then
1251    cross_compiling=yes
1252  fi
1253fi
1254
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
1259
1260
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264  as_fn_error $? "working directory cannot be determined"
1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266  as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269# Find the source files, if location was not specified.
1270if test -z "$srcdir"; then
1271  ac_srcdir_defaulted=yes
1272  # Try the directory containing this script, then the parent directory.
1273  ac_confdir=`$as_dirname -- "$as_myself" ||
1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275	 X"$as_myself" : 'X\(//\)[^/]' \| \
1276	 X"$as_myself" : 'X\(//\)$' \| \
1277	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278$as_echo X"$as_myself" |
1279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)[^/].*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\/\)$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\).*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  s/.*/./; q'`
1296  srcdir=$ac_confdir
1297  if test ! -r "$srcdir/$ac_unique_file"; then
1298    srcdir=..
1299  fi
1300else
1301  ac_srcdir_defaulted=no
1302fi
1303if test ! -r "$srcdir/$ac_unique_file"; then
1304  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
1309	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310	pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313  srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_env_${ac_var}_value=\$${ac_var}
1324  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
1327
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332  # Omit some internal or obsolete options to make the list less imposing.
1333  # This message is too long to be a string in the A/UX 3.1 sh.
1334  cat <<_ACEOF
1335\`configure' configures lfcbase 1.16.2 to adapt to many kinds of systems.
1336
1337Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342Defaults for the options are specified in brackets.
1343
1344Configuration:
1345  -h, --help              display this help and exit
1346      --help=short        display options specific to this package
1347      --help=recursive    display the short help of all the included packages
1348  -V, --version           display version information and exit
1349  -q, --quiet, --silent   do not print \`checking ...' messages
1350      --cache-file=FILE   cache test results in FILE [disabled]
1351  -C, --config-cache      alias for \`--cache-file=config.cache'
1352  -n, --no-create         do not create output files
1353      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355Installation directories:
1356  --prefix=PREFIX         install architecture-independent files in PREFIX
1357                          [$ac_default_prefix]
1358  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                          [PREFIX]
1360
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
1365
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
1369  --bindir=DIR            user executables [EPREFIX/bin]
1370  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371  --libexecdir=DIR        program executables [EPREFIX/libexec]
1372  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375  --libdir=DIR            object code libraries [EPREFIX/lib]
1376  --includedir=DIR        C header files [PREFIX/include]
1377  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1378  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1379  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1380  --infodir=DIR           info documentation [DATAROOTDIR/info]
1381  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1382  --mandir=DIR            man documentation [DATAROOTDIR/man]
1383  --docdir=DIR            documentation root [DATAROOTDIR/doc/lfcbase]
1384  --htmldir=DIR           html documentation [DOCDIR]
1385  --dvidir=DIR            dvi documentation [DOCDIR]
1386  --pdfdir=DIR            pdf documentation [DOCDIR]
1387  --psdir=DIR             ps documentation [DOCDIR]
1388_ACEOF
1389
1390  cat <<\_ACEOF
1391
1392Program names:
1393  --program-prefix=PREFIX            prepend PREFIX to installed program names
1394  --program-suffix=SUFFIX            append SUFFIX to installed program names
1395  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1396
1397System types:
1398  --build=BUILD     configure for building on BUILD [guessed]
1399  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1400_ACEOF
1401fi
1402
1403if test -n "$ac_init_help"; then
1404  case $ac_init_help in
1405     short | recursive ) echo "Configuration of lfcbase 1.16.2:";;
1406   esac
1407  cat <<\_ACEOF
1408
1409Optional Features:
1410  --disable-option-checking  ignore unrecognized --enable/--with options
1411  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1412  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1413  --enable-silent-rules   less verbose build output (undo: "make V=1")
1414  --disable-silent-rules  verbose build output (undo: "make V=0")
1415  --enable-dependency-tracking
1416                          do not reject slow dependency extractors
1417  --disable-dependency-tracking
1418                          speeds up one-time build
1419  --enable-shared[=PKGS]  build shared libraries [default=yes]
1420  --enable-static[=PKGS]  build static libraries [default=yes]
1421  --enable-fast-install[=PKGS]
1422                          optimize for fast installation [default=yes]
1423  --disable-libtool-lock  avoid locking (might break parallel builds)
1424
1425Optional Packages:
1426  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1429                          both]
1430  --with-aix-soname=aix|svr4|both
1431                          shared library versioning (aka "SONAME") variant to
1432                          provide on AIX, [default=aix].
1433  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1434  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1435                          compiler's sysroot if not specified).
1436
1437Some influential environment variables:
1438  CXX         C++ compiler command
1439  CXXFLAGS    C++ compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  CC          C compiler command
1446  CFLAGS      C compiler flags
1447  CPP         C preprocessor
1448  LT_SYS_LIBRARY_PATH
1449              User-defined run-time library search path.
1450  CXXCPP      C++ preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
1455Report bugs to <lemke@lemke-it.com>.
1456_ACEOF
1457ac_status=$?
1458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461  # If there are subdirs, report their specific --help.
1462  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463    test -d "$ac_dir" ||
1464      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465      continue
1466    ac_builddir=.
1467
1468case "$ac_dir" in
1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470*)
1471  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472  # A ".." for each directory in $ac_dir_suffix.
1473  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474  case $ac_top_builddir_sub in
1475  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477  esac ;;
1478esac
1479ac_abs_top_builddir=$ac_pwd
1480ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481# for backward compatibility:
1482ac_top_builddir=$ac_top_build_prefix
1483
1484case $srcdir in
1485  .)  # We are building in place.
1486    ac_srcdir=.
1487    ac_top_srcdir=$ac_top_builddir_sub
1488    ac_abs_top_srcdir=$ac_pwd ;;
1489  [\\/]* | ?:[\\/]* )  # Absolute name.
1490    ac_srcdir=$srcdir$ac_dir_suffix;
1491    ac_top_srcdir=$srcdir
1492    ac_abs_top_srcdir=$srcdir ;;
1493  *) # Relative name.
1494    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495    ac_top_srcdir=$ac_top_build_prefix$srcdir
1496    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497esac
1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500    cd "$ac_dir" || { ac_status=$?; continue; }
1501    # Check for guested configure.
1502    if test -f "$ac_srcdir/configure.gnu"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505    elif test -f "$ac_srcdir/configure"; then
1506      echo &&
1507      $SHELL "$ac_srcdir/configure" --help=recursive
1508    else
1509      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510    fi || ac_status=$?
1511    cd "$ac_pwd" || { ac_status=$?; break; }
1512  done
1513fi
1514
1515test -n "$ac_init_help" && exit $ac_status
1516if $ac_init_version; then
1517  cat <<\_ACEOF
1518lfcbase configure 1.16.2
1519generated by GNU Autoconf 2.69
1520
1521Copyright (C) 2012 Free Software Foundation, Inc.
1522This configure script is free software; the Free Software Foundation
1523gives unlimited permission to copy, distribute and modify it.
1524_ACEOF
1525  exit
1526fi
1527
1528## ------------------------ ##
1529## Autoconf initialization. ##
1530## ------------------------ ##
1531
1532# ac_fn_cxx_try_compile LINENO
1533# ----------------------------
1534# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_cxx_try_compile ()
1536{
1537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538  rm -f conftest.$ac_objext
1539  if { { ac_try="$ac_compile"
1540case "(($ac_try" in
1541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542  *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546  (eval "$ac_compile") 2>conftest.err
1547  ac_status=$?
1548  if test -s conftest.err; then
1549    grep -v '^ *+' conftest.err >conftest.er1
1550    cat conftest.er1 >&5
1551    mv -f conftest.er1 conftest.err
1552  fi
1553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554  test $ac_status = 0; } && {
1555	 test -z "$ac_cxx_werror_flag" ||
1556	 test ! -s conftest.err
1557       } && test -s conftest.$ac_objext; then :
1558  ac_retval=0
1559else
1560  $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563	ac_retval=1
1564fi
1565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566  as_fn_set_status $ac_retval
1567
1568} # ac_fn_cxx_try_compile
1569
1570# ac_fn_c_try_compile LINENO
1571# --------------------------
1572# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_compile ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  rm -f conftest.$ac_objext
1577  if { { ac_try="$ac_compile"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_compile") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } && {
1593	 test -z "$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       } && test -s conftest.$ac_objext; then :
1596  ac_retval=0
1597else
1598  $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601	ac_retval=1
1602fi
1603  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604  as_fn_set_status $ac_retval
1605
1606} # ac_fn_c_try_compile
1607
1608# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1609# -------------------------------------------
1610# Tests whether TYPE exists after having included INCLUDES, setting cache
1611# variable VAR accordingly.
1612ac_fn_c_check_type ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616$as_echo_n "checking for $2... " >&6; }
1617if eval \${$3+:} false; then :
1618  $as_echo_n "(cached) " >&6
1619else
1620  eval "$3=no"
1621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623$4
1624int
1625main ()
1626{
1627if (sizeof ($2))
1628	 return 0;
1629  ;
1630  return 0;
1631}
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"; then :
1634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635/* end confdefs.h.  */
1636$4
1637int
1638main ()
1639{
1640if (sizeof (($2)))
1641	    return 0;
1642  ;
1643  return 0;
1644}
1645_ACEOF
1646if ac_fn_c_try_compile "$LINENO"; then :
1647
1648else
1649  eval "$3=yes"
1650fi
1651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652fi
1653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654fi
1655eval ac_res=\$$3
1656	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657$as_echo "$ac_res" >&6; }
1658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659
1660} # ac_fn_c_check_type
1661
1662# ac_fn_c_try_cpp LINENO
1663# ----------------------
1664# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_c_try_cpp ()
1666{
1667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668  if { { ac_try="$ac_cpp conftest.$ac_ext"
1669case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1676  ac_status=$?
1677  if test -s conftest.err; then
1678    grep -v '^ *+' conftest.err >conftest.er1
1679    cat conftest.er1 >&5
1680    mv -f conftest.er1 conftest.err
1681  fi
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } > conftest.i && {
1684	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685	 test ! -s conftest.err
1686       }; then :
1687  ac_retval=0
1688else
1689  $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692    ac_retval=1
1693fi
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_cpp
1698
1699# ac_fn_c_try_run LINENO
1700# ----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702# that executables *can* be run.
1703ac_fn_c_try_run ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_link") 2>&5
1714  ac_status=$?
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717  { { case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_try") 2>&5
1724  ac_status=$?
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; }; }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: program exited with status $ac_status" >&5
1730       $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733       ac_retval=$ac_status
1734fi
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_run
1740
1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742# -------------------------------------------------------
1743# Tests whether HEADER exists and can be compiled using the include files in
1744# INCLUDES, setting the cache variable VAR accordingly.
1745ac_fn_c_check_header_compile ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if eval \${$3+:} false; then :
1751  $as_echo_n "(cached) " >&6
1752else
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759  eval "$3=yes"
1760else
1761  eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765eval ac_res=\$$3
1766	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769
1770} # ac_fn_c_check_header_compile
1771
1772# ac_fn_c_try_link LINENO
1773# -----------------------
1774# Try to link conftest.$ac_ext, and return whether this succeeded.
1775ac_fn_c_try_link ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  rm -f conftest.$ac_objext conftest$ac_exeext
1779  if { { ac_try="$ac_link"
1780case "(($ac_try" in
1781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782  *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786  (eval "$ac_link") 2>conftest.err
1787  ac_status=$?
1788  if test -s conftest.err; then
1789    grep -v '^ *+' conftest.err >conftest.er1
1790    cat conftest.er1 >&5
1791    mv -f conftest.er1 conftest.err
1792  fi
1793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; } && {
1795	 test -z "$ac_c_werror_flag" ||
1796	 test ! -s conftest.err
1797       } && test -s conftest$ac_exeext && {
1798	 test "$cross_compiling" = yes ||
1799	 test -x conftest$ac_exeext
1800       }; then :
1801  ac_retval=0
1802else
1803  $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
1805
1806	ac_retval=1
1807fi
1808  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810  # interfere with the next link command; also delete a directory that is
1811  # left behind by Apple's compiler.  We do this before executing the actions.
1812  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814  as_fn_set_status $ac_retval
1815
1816} # ac_fn_c_try_link
1817
1818# ac_fn_c_check_func LINENO FUNC VAR
1819# ----------------------------------
1820# Tests whether FUNC exists, setting the cache variable VAR accordingly
1821ac_fn_c_check_func ()
1822{
1823  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval \${$3+:} false; then :
1827  $as_echo_n "(cached) " >&6
1828else
1829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1833#define $2 innocuous_$2
1834
1835/* System header to define __stub macros and hopefully few prototypes,
1836    which can conflict with char $2 (); below.
1837    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838    <limits.h> exists even on freestanding compilers.  */
1839
1840#ifdef __STDC__
1841# include <limits.h>
1842#else
1843# include <assert.h>
1844#endif
1845
1846#undef $2
1847
1848/* Override any GCC internal prototype to avoid an error.
1849   Use char because int might match the return type of a GCC
1850   builtin and then its argument prototype would still apply.  */
1851#ifdef __cplusplus
1852extern "C"
1853#endif
1854char $2 ();
1855/* The GNU C library defines this for functions which it implements
1856    to always fail with ENOSYS.  Some functions are actually named
1857    something starting with __ and the normal name is an alias.  */
1858#if defined __stub_$2 || defined __stub___$2
1859choke me
1860#endif
1861
1862int
1863main ()
1864{
1865return $2 ();
1866  ;
1867  return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_link "$LINENO"; then :
1871  eval "$3=yes"
1872else
1873  eval "$3=no"
1874fi
1875rm -f core conftest.err conftest.$ac_objext \
1876    conftest$ac_exeext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_func
1884
1885# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886# -------------------------------------------------------
1887# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888# the include files in INCLUDES and setting the cache variable VAR
1889# accordingly.
1890ac_fn_c_check_header_mongrel ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  if eval \${$3+:} false; then :
1894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if eval \${$3+:} false; then :
1897  $as_echo_n "(cached) " >&6
1898fi
1899eval ac_res=\$$3
1900	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902else
1903  # Is the header compilable?
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905$as_echo_n "checking $2 usability... " >&6; }
1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h.  */
1908$4
1909#include <$2>
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912  ac_header_compiler=yes
1913else
1914  ac_header_compiler=no
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918$as_echo "$ac_header_compiler" >&6; }
1919
1920# Is the header present?
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922$as_echo_n "checking $2 presence... " >&6; }
1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h.  */
1925#include <$2>
1926_ACEOF
1927if ac_fn_c_try_cpp "$LINENO"; then :
1928  ac_header_preproc=yes
1929else
1930  ac_header_preproc=no
1931fi
1932rm -f conftest.err conftest.i conftest.$ac_ext
1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934$as_echo "$ac_header_preproc" >&6; }
1935
1936# So?  What about this header?
1937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938  yes:no: )
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943    ;;
1944  no:yes:* )
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1948$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1952$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955( $as_echo "## --------------------------------- ##
1956## Report this to lemke@lemke-it.com ##
1957## --------------------------------- ##"
1958     ) | sed "s/^/$as_me: WARNING:     /" >&2
1959    ;;
1960esac
1961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962$as_echo_n "checking for $2... " >&6; }
1963if eval \${$3+:} false; then :
1964  $as_echo_n "(cached) " >&6
1965else
1966  eval "$3=\$ac_header_compiler"
1967fi
1968eval ac_res=\$$3
1969	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971fi
1972  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974} # ac_fn_c_check_header_mongrel
1975
1976# ac_fn_cxx_try_cpp LINENO
1977# ------------------------
1978# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1979ac_fn_cxx_try_cpp ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  if { { ac_try="$ac_cpp conftest.$ac_ext"
1983case "(($ac_try" in
1984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985  *) ac_try_echo=$ac_try;;
1986esac
1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988$as_echo "$ac_try_echo"; } >&5
1989  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1990  ac_status=$?
1991  if test -s conftest.err; then
1992    grep -v '^ *+' conftest.err >conftest.er1
1993    cat conftest.er1 >&5
1994    mv -f conftest.er1 conftest.err
1995  fi
1996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997  test $ac_status = 0; } > conftest.i && {
1998	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1999	 test ! -s conftest.err
2000       }; then :
2001  ac_retval=0
2002else
2003  $as_echo "$as_me: failed program was:" >&5
2004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006    ac_retval=1
2007fi
2008  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009  as_fn_set_status $ac_retval
2010
2011} # ac_fn_cxx_try_cpp
2012
2013# ac_fn_cxx_try_link LINENO
2014# -------------------------
2015# Try to link conftest.$ac_ext, and return whether this succeeded.
2016ac_fn_cxx_try_link ()
2017{
2018  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019  rm -f conftest.$ac_objext conftest$ac_exeext
2020  if { { ac_try="$ac_link"
2021case "(($ac_try" in
2022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023  *) ac_try_echo=$ac_try;;
2024esac
2025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026$as_echo "$ac_try_echo"; } >&5
2027  (eval "$ac_link") 2>conftest.err
2028  ac_status=$?
2029  if test -s conftest.err; then
2030    grep -v '^ *+' conftest.err >conftest.er1
2031    cat conftest.er1 >&5
2032    mv -f conftest.er1 conftest.err
2033  fi
2034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035  test $ac_status = 0; } && {
2036	 test -z "$ac_cxx_werror_flag" ||
2037	 test ! -s conftest.err
2038       } && test -s conftest$ac_exeext && {
2039	 test "$cross_compiling" = yes ||
2040	 test -x conftest$ac_exeext
2041       }; then :
2042  ac_retval=0
2043else
2044  $as_echo "$as_me: failed program was:" >&5
2045sed 's/^/| /' conftest.$ac_ext >&5
2046
2047	ac_retval=1
2048fi
2049  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2050  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2051  # interfere with the next link command; also delete a directory that is
2052  # left behind by Apple's compiler.  We do this before executing the actions.
2053  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055  as_fn_set_status $ac_retval
2056
2057} # ac_fn_cxx_try_link
2058cat >config.log <<_ACEOF
2059This file contains any messages produced by compilers while
2060running configure, to aid debugging if configure makes a mistake.
2061
2062It was created by lfcbase $as_me 1.16.2, which was
2063generated by GNU Autoconf 2.69.  Invocation command line was
2064
2065  $ $0 $@
2066
2067_ACEOF
2068exec 5>>config.log
2069{
2070cat <<_ASUNAME
2071## --------- ##
2072## Platform. ##
2073## --------- ##
2074
2075hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2076uname -m = `(uname -m) 2>/dev/null || echo unknown`
2077uname -r = `(uname -r) 2>/dev/null || echo unknown`
2078uname -s = `(uname -s) 2>/dev/null || echo unknown`
2079uname -v = `(uname -v) 2>/dev/null || echo unknown`
2080
2081/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2082/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2083
2084/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2085/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2086/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2087/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2088/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2089/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2090/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2091
2092_ASUNAME
2093
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099    $as_echo "PATH: $as_dir"
2100  done
2101IFS=$as_save_IFS
2102
2103} >&5
2104
2105cat >&5 <<_ACEOF
2106
2107
2108## ----------- ##
2109## Core tests. ##
2110## ----------- ##
2111
2112_ACEOF
2113
2114
2115# Keep a trace of the command line.
2116# Strip out --no-create and --no-recursion so they do not pile up.
2117# Strip out --silent because we don't want to record it for future runs.
2118# Also quote any args containing shell meta-characters.
2119# Make two passes to allow for proper duplicate-argument suppression.
2120ac_configure_args=
2121ac_configure_args0=
2122ac_configure_args1=
2123ac_must_keep_next=false
2124for ac_pass in 1 2
2125do
2126  for ac_arg
2127  do
2128    case $ac_arg in
2129    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2130    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2131    | -silent | --silent | --silen | --sile | --sil)
2132      continue ;;
2133    *\'*)
2134      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2135    esac
2136    case $ac_pass in
2137    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138    2)
2139      as_fn_append ac_configure_args1 " '$ac_arg'"
2140      if test $ac_must_keep_next = true; then
2141	ac_must_keep_next=false # Got value, back to normal.
2142      else
2143	case $ac_arg in
2144	  *=* | --config-cache | -C | -disable-* | --disable-* \
2145	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2146	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2147	  | -with-* | --with-* | -without-* | --without-* | --x)
2148	    case "$ac_configure_args0 " in
2149	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2150	    esac
2151	    ;;
2152	  -* ) ac_must_keep_next=true ;;
2153	esac
2154      fi
2155      as_fn_append ac_configure_args " '$ac_arg'"
2156      ;;
2157    esac
2158  done
2159done
2160{ ac_configure_args0=; unset ac_configure_args0;}
2161{ ac_configure_args1=; unset ac_configure_args1;}
2162
2163# When interrupted or exit'd, cleanup temporary files, and complete
2164# config.log.  We remove comments because anyway the quotes in there
2165# would cause problems or look ugly.
2166# WARNING: Use '\'' to represent an apostrophe within the trap.
2167# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2168trap 'exit_status=$?
2169  # Save into config.log some information that might help in debugging.
2170  {
2171    echo
2172
2173    $as_echo "## ---------------- ##
2174## Cache variables. ##
2175## ---------------- ##"
2176    echo
2177    # The following way of writing the cache mishandles newlines in values,
2178(
2179  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2180    eval ac_val=\$$ac_var
2181    case $ac_val in #(
2182    *${as_nl}*)
2183      case $ac_var in #(
2184      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2186      esac
2187      case $ac_var in #(
2188      _ | IFS | as_nl) ;; #(
2189      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2190      *) { eval $ac_var=; unset $ac_var;} ;;
2191      esac ;;
2192    esac
2193  done
2194  (set) 2>&1 |
2195    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2196    *${as_nl}ac_space=\ *)
2197      sed -n \
2198	"s/'\''/'\''\\\\'\'''\''/g;
2199	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2200      ;; #(
2201    *)
2202      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2203      ;;
2204    esac |
2205    sort
2206)
2207    echo
2208
2209    $as_echo "## ----------------- ##
2210## Output variables. ##
2211## ----------------- ##"
2212    echo
2213    for ac_var in $ac_subst_vars
2214    do
2215      eval ac_val=\$$ac_var
2216      case $ac_val in
2217      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218      esac
2219      $as_echo "$ac_var='\''$ac_val'\''"
2220    done | sort
2221    echo
2222
2223    if test -n "$ac_subst_files"; then
2224      $as_echo "## ------------------- ##
2225## File substitutions. ##
2226## ------------------- ##"
2227      echo
2228      for ac_var in $ac_subst_files
2229      do
2230	eval ac_val=\$$ac_var
2231	case $ac_val in
2232	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233	esac
2234	$as_echo "$ac_var='\''$ac_val'\''"
2235      done | sort
2236      echo
2237    fi
2238
2239    if test -s confdefs.h; then
2240      $as_echo "## ----------- ##
2241## confdefs.h. ##
2242## ----------- ##"
2243      echo
2244      cat confdefs.h
2245      echo
2246    fi
2247    test "$ac_signal" != 0 &&
2248      $as_echo "$as_me: caught signal $ac_signal"
2249    $as_echo "$as_me: exit $exit_status"
2250  } >&5
2251  rm -f core *.core core.conftest.* &&
2252    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2253    exit $exit_status
2254' 0
2255for ac_signal in 1 2 13 15; do
2256  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2257done
2258ac_signal=0
2259
2260# confdefs.h avoids OS command line length limits that DEFS can exceed.
2261rm -f -r conftest* confdefs.h
2262
2263$as_echo "/* confdefs.h */" > confdefs.h
2264
2265# Predefined preprocessor variables.
2266
2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_NAME "$PACKAGE_NAME"
2269_ACEOF
2270
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2273_ACEOF
2274
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_VERSION "$PACKAGE_VERSION"
2277_ACEOF
2278
2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_STRING "$PACKAGE_STRING"
2281_ACEOF
2282
2283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2285_ACEOF
2286
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_URL "$PACKAGE_URL"
2289_ACEOF
2290
2291
2292# Let the site file select an alternate cache file if it wants to.
2293# Prefer an explicitly selected file to automatically selected ones.
2294ac_site_file1=NONE
2295ac_site_file2=NONE
2296if test -n "$CONFIG_SITE"; then
2297  # We do not want a PATH search for config.site.
2298  case $CONFIG_SITE in #((
2299    -*)  ac_site_file1=./$CONFIG_SITE;;
2300    */*) ac_site_file1=$CONFIG_SITE;;
2301    *)   ac_site_file1=./$CONFIG_SITE;;
2302  esac
2303elif test "x$prefix" != xNONE; then
2304  ac_site_file1=$prefix/share/config.site
2305  ac_site_file2=$prefix/etc/config.site
2306else
2307  ac_site_file1=$ac_default_prefix/share/config.site
2308  ac_site_file2=$ac_default_prefix/etc/config.site
2309fi
2310for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2311do
2312  test "x$ac_site_file" = xNONE && continue
2313  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2314    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2315$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2316    sed 's/^/| /' "$ac_site_file" >&5
2317    . "$ac_site_file" \
2318      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320as_fn_error $? "failed to load site script $ac_site_file
2321See \`config.log' for more details" "$LINENO" 5; }
2322  fi
2323done
2324
2325if test -r "$cache_file"; then
2326  # Some versions of bash will fail to source /dev/null (special files
2327  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2328  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2329    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2330$as_echo "$as_me: loading cache $cache_file" >&6;}
2331    case $cache_file in
2332      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2333      *)                      . "./$cache_file";;
2334    esac
2335  fi
2336else
2337  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2338$as_echo "$as_me: creating cache $cache_file" >&6;}
2339  >$cache_file
2340fi
2341
2342as_fn_append ac_header_list " sys/time.h"
2343as_fn_append ac_header_list " unistd.h"
2344as_fn_append ac_func_list " alarm"
2345# Check that the precious variables saved in the cache have kept the same
2346# value.
2347ac_cache_corrupted=false
2348for ac_var in $ac_precious_vars; do
2349  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2350  eval ac_new_set=\$ac_env_${ac_var}_set
2351  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2352  eval ac_new_val=\$ac_env_${ac_var}_value
2353  case $ac_old_set,$ac_new_set in
2354    set,)
2355      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2356$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2357      ac_cache_corrupted=: ;;
2358    ,set)
2359      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2360$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2361      ac_cache_corrupted=: ;;
2362    ,);;
2363    *)
2364      if test "x$ac_old_val" != "x$ac_new_val"; then
2365	# differences in whitespace do not lead to failure.
2366	ac_old_val_w=`echo x $ac_old_val`
2367	ac_new_val_w=`echo x $ac_new_val`
2368	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2369	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2370$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2371	  ac_cache_corrupted=:
2372	else
2373	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2374$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2375	  eval $ac_var=\$ac_old_val
2376	fi
2377	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2378$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2379	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2380$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2381      fi;;
2382  esac
2383  # Pass precious variables to config.status.
2384  if test "$ac_new_set" = set; then
2385    case $ac_new_val in
2386    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2387    *) ac_arg=$ac_var=$ac_new_val ;;
2388    esac
2389    case " $ac_configure_args " in
2390      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2391      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2392    esac
2393  fi
2394done
2395if $ac_cache_corrupted; then
2396  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2399$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2400  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2401fi
2402## -------------------- ##
2403## Main body of script. ##
2404## -------------------- ##
2405
2406ac_ext=c
2407ac_cpp='$CPP $CPPFLAGS'
2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411
2412
2413ac_aux_dir=
2414for ac_dir in build-aux "$srcdir"/build-aux; do
2415  if test -f "$ac_dir/install-sh"; then
2416    ac_aux_dir=$ac_dir
2417    ac_install_sh="$ac_aux_dir/install-sh -c"
2418    break
2419  elif test -f "$ac_dir/install.sh"; then
2420    ac_aux_dir=$ac_dir
2421    ac_install_sh="$ac_aux_dir/install.sh -c"
2422    break
2423  elif test -f "$ac_dir/shtool"; then
2424    ac_aux_dir=$ac_dir
2425    ac_install_sh="$ac_aux_dir/shtool install -c"
2426    break
2427  fi
2428done
2429if test -z "$ac_aux_dir"; then
2430  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2431fi
2432
2433# These three variables are undocumented and unsupported,
2434# and are intended to be withdrawn in a future Autoconf release.
2435# They can cause serious problems if a builder's source tree is in a directory
2436# whose full name contains unusual characters.
2437ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2438ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2439ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2440
2441
2442
2443
2444am__api_version='1.13'
2445
2446# Find a good install program.  We prefer a C program (faster),
2447# so one script is as good as another.  But avoid the broken or
2448# incompatible versions:
2449# SysV /etc/install, /usr/sbin/install
2450# SunOS /usr/etc/install
2451# IRIX /sbin/install
2452# AIX /bin/install
2453# AmigaOS /C/install, which installs bootblocks on floppy discs
2454# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2457# OS/2's system install, which has a completely different semantic
2458# ./install, which can be erroneously created by make from ./install.sh.
2459# Reject install programs that cannot install multiple files.
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2461$as_echo_n "checking for a BSD-compatible install... " >&6; }
2462if test -z "$INSTALL"; then
2463if ${ac_cv_path_install+:} false; then :
2464  $as_echo_n "(cached) " >&6
2465else
2466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469  IFS=$as_save_IFS
2470  test -z "$as_dir" && as_dir=.
2471    # Account for people who put trailing slashes in PATH elements.
2472case $as_dir/ in #((
2473  ./ | .// | /[cC]/* | \
2474  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2475  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2476  /usr/ucb/* ) ;;
2477  *)
2478    # OSF1 and SCO ODT 3.0 have their own names for install.
2479    # Don't use installbsd from OSF since it installs stuff as root
2480    # by default.
2481    for ac_prog in ginstall scoinst install; do
2482      for ac_exec_ext in '' $ac_executable_extensions; do
2483	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2484	  if test $ac_prog = install &&
2485	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486	    # AIX install.  It has an incompatible calling convention.
2487	    :
2488	  elif test $ac_prog = install &&
2489	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490	    # program-specific install script used by HP pwplus--don't use.
2491	    :
2492	  else
2493	    rm -rf conftest.one conftest.two conftest.dir
2494	    echo one > conftest.one
2495	    echo two > conftest.two
2496	    mkdir conftest.dir
2497	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2498	      test -s conftest.one && test -s conftest.two &&
2499	      test -s conftest.dir/conftest.one &&
2500	      test -s conftest.dir/conftest.two
2501	    then
2502	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2503	      break 3
2504	    fi
2505	  fi
2506	fi
2507      done
2508    done
2509    ;;
2510esac
2511
2512  done
2513IFS=$as_save_IFS
2514
2515rm -rf conftest.one conftest.two conftest.dir
2516
2517fi
2518  if test "${ac_cv_path_install+set}" = set; then
2519    INSTALL=$ac_cv_path_install
2520  else
2521    # As a last resort, use the slow shell script.  Don't cache a
2522    # value for INSTALL within a source directory, because that will
2523    # break other packages using the cache if that directory is
2524    # removed, or if the value is a relative name.
2525    INSTALL=$ac_install_sh
2526  fi
2527fi
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2529$as_echo "$INSTALL" >&6; }
2530
2531# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2532# It thinks the first close brace ends the variable substitution.
2533test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2534
2535test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2536
2537test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2538
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2540$as_echo_n "checking whether build environment is sane... " >&6; }
2541# Reject unsafe characters in $srcdir or the absolute working directory
2542# name.  Accept space and tab only in the latter.
2543am_lf='
2544'
2545case `pwd` in
2546  *[\\\"\#\$\&\'\`$am_lf]*)
2547    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2548esac
2549case $srcdir in
2550  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2551    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2552esac
2553
2554# Do 'set' in a subshell so we don't clobber the current shell's
2555# arguments.  Must try -L first in case configure is actually a
2556# symlink; some systems play weird games with the mod time of symlinks
2557# (eg FreeBSD returns the mod time of the symlink's containing
2558# directory).
2559if (
2560   am_has_slept=no
2561   for am_try in 1 2; do
2562     echo "timestamp, slept: $am_has_slept" > conftest.file
2563     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2564     if test "$*" = "X"; then
2565	# -L didn't work.
2566	set X `ls -t "$srcdir/configure" conftest.file`
2567     fi
2568     if test "$*" != "X $srcdir/configure conftest.file" \
2569	&& test "$*" != "X conftest.file $srcdir/configure"; then
2570
2571	# If neither matched, then we have a broken ls.  This can happen
2572	# if, for instance, CONFIG_SHELL is bash and it inherits a
2573	# broken ls alias from the environment.  This has actually
2574	# happened.  Such a system could not be considered "sane".
2575	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2576  alias in your environment" "$LINENO" 5
2577     fi
2578     if test "$2" = conftest.file || test $am_try -eq 2; then
2579       break
2580     fi
2581     # Just in case.
2582     sleep 1
2583     am_has_slept=yes
2584   done
2585   test "$2" = conftest.file
2586   )
2587then
2588   # Ok.
2589   :
2590else
2591   as_fn_error $? "newly created file is older than distributed files!
2592Check your system clock" "$LINENO" 5
2593fi
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2595$as_echo "yes" >&6; }
2596# If we didn't sleep, we still need to ensure time stamps of config.status and
2597# generated files are strictly newer.
2598am_sleep_pid=
2599if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2600  ( sleep 1 ) &
2601  am_sleep_pid=$!
2602fi
2603
2604rm -f conftest.file
2605
2606test "$program_prefix" != NONE &&
2607  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2608# Use a double $ so make ignores it.
2609test "$program_suffix" != NONE &&
2610  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2611# Double any \ or $.
2612# By default was `s,x,x', remove it if useless.
2613ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2614program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2615
2616# expand $ac_aux_dir to an absolute path
2617am_aux_dir=`cd $ac_aux_dir && pwd`
2618
2619if test x"${MISSING+set}" != xset; then
2620  case $am_aux_dir in
2621  *\ * | *\	*)
2622    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2623  *)
2624    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2625  esac
2626fi
2627# Use eval to expand $SHELL
2628if eval "$MISSING --is-lightweight"; then
2629  am_missing_run="$MISSING "
2630else
2631  am_missing_run=
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2633$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2634fi
2635
2636if test x"${install_sh}" != xset; then
2637  case $am_aux_dir in
2638  *\ * | *\	*)
2639    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2640  *)
2641    install_sh="\${SHELL} $am_aux_dir/install-sh"
2642  esac
2643fi
2644
2645# Installed binaries are usually stripped using 'strip' when the user
2646# run "make install-strip".  However 'strip' might not be the right
2647# tool to use in cross-compilation environments, therefore Automake
2648# will honor the 'STRIP' environment variable to overrule this program.
2649if test "$cross_compiling" != no; then
2650  if test -n "$ac_tool_prefix"; then
2651  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2652set dummy ${ac_tool_prefix}strip; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_prog_STRIP+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  if test -n "$STRIP"; then
2659  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666    for ac_exec_ext in '' $ac_executable_extensions; do
2667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670    break 2
2671  fi
2672done
2673  done
2674IFS=$as_save_IFS
2675
2676fi
2677fi
2678STRIP=$ac_cv_prog_STRIP
2679if test -n "$STRIP"; then
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2681$as_echo "$STRIP" >&6; }
2682else
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684$as_echo "no" >&6; }
2685fi
2686
2687
2688fi
2689if test -z "$ac_cv_prog_STRIP"; then
2690  ac_ct_STRIP=$STRIP
2691  # Extract the first word of "strip", so it can be a program name with args.
2692set dummy strip; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  if test -n "$ac_ct_STRIP"; then
2699  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706    for ac_exec_ext in '' $ac_executable_extensions; do
2707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708    ac_cv_prog_ac_ct_STRIP="strip"
2709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710    break 2
2711  fi
2712done
2713  done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2719if test -n "$ac_ct_STRIP"; then
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2721$as_echo "$ac_ct_STRIP" >&6; }
2722else
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
2727  if test "x$ac_ct_STRIP" = x; then
2728    STRIP=":"
2729  else
2730    case $cross_compiling:$ac_tool_warned in
2731yes:)
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734ac_tool_warned=yes ;;
2735esac
2736    STRIP=$ac_ct_STRIP
2737  fi
2738else
2739  STRIP="$ac_cv_prog_STRIP"
2740fi
2741
2742fi
2743INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2744
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2746$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2747if test -z "$MKDIR_P"; then
2748  if ${ac_cv_path_mkdir+:} false; then :
2749  $as_echo_n "(cached) " >&6
2750else
2751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2753do
2754  IFS=$as_save_IFS
2755  test -z "$as_dir" && as_dir=.
2756    for ac_prog in mkdir gmkdir; do
2757	 for ac_exec_ext in '' $ac_executable_extensions; do
2758	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2759	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2760	     'mkdir (GNU coreutils) '* | \
2761	     'mkdir (coreutils) '* | \
2762	     'mkdir (fileutils) '4.1*)
2763	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2764	       break 3;;
2765	   esac
2766	 done
2767       done
2768  done
2769IFS=$as_save_IFS
2770
2771fi
2772
2773  test -d ./--version && rmdir ./--version
2774  if test "${ac_cv_path_mkdir+set}" = set; then
2775    MKDIR_P="$ac_cv_path_mkdir -p"
2776  else
2777    # As a last resort, use the slow shell script.  Don't cache a
2778    # value for MKDIR_P within a source directory, because that will
2779    # break other packages using the cache if that directory is
2780    # removed, or if the value is a relative name.
2781    MKDIR_P="$ac_install_sh -d"
2782  fi
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2785$as_echo "$MKDIR_P" >&6; }
2786
2787for ac_prog in gawk mawk nawk awk
2788do
2789  # Extract the first word of "$ac_prog", so it can be a program name with args.
2790set dummy $ac_prog; ac_word=$2
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
2793if ${ac_cv_prog_AWK+:} false; then :
2794  $as_echo_n "(cached) " >&6
2795else
2796  if test -n "$AWK"; then
2797  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802  IFS=$as_save_IFS
2803  test -z "$as_dir" && as_dir=.
2804    for ac_exec_ext in '' $ac_executable_extensions; do
2805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806    ac_cv_prog_AWK="$ac_prog"
2807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811  done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816AWK=$ac_cv_prog_AWK
2817if test -n "$AWK"; then
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2819$as_echo "$AWK" >&6; }
2820else
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
2823fi
2824
2825
2826  test -n "$AWK" && break
2827done
2828
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2830$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2831set x ${MAKE-make}
2832ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2833if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  cat >conftest.make <<\_ACEOF
2837SHELL = /bin/sh
2838all:
2839	@echo '@@@%%%=$(MAKE)=@@@%%%'
2840_ACEOF
2841# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2842case `${MAKE-make} -f conftest.make 2>/dev/null` in
2843  *@@@%%%=?*=@@@%%%*)
2844    eval ac_cv_prog_make_${ac_make}_set=yes;;
2845  *)
2846    eval ac_cv_prog_make_${ac_make}_set=no;;
2847esac
2848rm -f conftest.make
2849fi
2850if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852$as_echo "yes" >&6; }
2853  SET_MAKE=
2854else
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857  SET_MAKE="MAKE=${MAKE-make}"
2858fi
2859
2860rm -rf .tst 2>/dev/null
2861mkdir .tst 2>/dev/null
2862if test -d .tst; then
2863  am__leading_dot=.
2864else
2865  am__leading_dot=_
2866fi
2867rmdir .tst 2>/dev/null
2868
2869# Check whether --enable-silent-rules was given.
2870if test "${enable_silent_rules+set}" = set; then :
2871  enableval=$enable_silent_rules;
2872fi
2873
2874case $enable_silent_rules in # (((
2875  yes) AM_DEFAULT_VERBOSITY=0;;
2876   no) AM_DEFAULT_VERBOSITY=1;;
2877    *) AM_DEFAULT_VERBOSITY=1;;
2878esac
2879am_make=${MAKE-make}
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2881$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2882if ${am_cv_make_support_nested_variables+:} false; then :
2883  $as_echo_n "(cached) " >&6
2884else
2885  if $as_echo 'TRUE=$(BAR$(V))
2886BAR0=false
2887BAR1=true
2888V=1
2889am__doit:
2890	@$(TRUE)
2891.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2892  am_cv_make_support_nested_variables=yes
2893else
2894  am_cv_make_support_nested_variables=no
2895fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2898$as_echo "$am_cv_make_support_nested_variables" >&6; }
2899if test $am_cv_make_support_nested_variables = yes; then
2900    AM_V='$(V)'
2901  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2902else
2903  AM_V=$AM_DEFAULT_VERBOSITY
2904  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2905fi
2906AM_BACKSLASH='\'
2907
2908if test "`cd $srcdir && pwd`" != "`pwd`"; then
2909  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2910  # is not polluted with repeated "-I."
2911  am__isrc=' -I$(srcdir)'
2912  # test to see if srcdir already configured
2913  if test -f $srcdir/config.status; then
2914    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2915  fi
2916fi
2917
2918# test whether we have cygpath
2919if test -z "$CYGPATH_W"; then
2920  if (cygpath --version) >/dev/null 2>/dev/null; then
2921    CYGPATH_W='cygpath -w'
2922  else
2923    CYGPATH_W=echo
2924  fi
2925fi
2926
2927
2928# Define the identity of the package.
2929 PACKAGE='lfcbase'
2930 VERSION='1.16.2'
2931
2932
2933cat >>confdefs.h <<_ACEOF
2934#define PACKAGE "$PACKAGE"
2935_ACEOF
2936
2937
2938cat >>confdefs.h <<_ACEOF
2939#define VERSION "$VERSION"
2940_ACEOF
2941
2942# Some tools Automake needs.
2943
2944ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2945
2946
2947AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2948
2949
2950AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2951
2952
2953AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2954
2955
2956MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2957
2958# For better backward compatibility.  To be removed once Automake 1.9.x
2959# dies out for good.  For more background, see:
2960# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2961# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2962mkdir_p='$(MKDIR_P)'
2963
2964# We need awk for the "check" target.  The system "awk" is bad on
2965# some platforms.
2966# Always define AMTAR for backward compatibility.  Yes, it's still used
2967# in the wild :-(  We should find a proper way to deprecate it ...
2968AMTAR='$${TAR-tar}'
2969
2970am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2971
2972
2973
2974
2975
2976
2977ac_config_headers="$ac_config_headers config.h"
2978
2979
2980
2981
2982# AC_CONFIG_SRCDIR([src/AESCrypt.cc])
2983# AC_CONFIG_HEADERS([config.h])
2984
2985ac_config_files="$ac_config_files Makefile src/Makefile basecheck/Makefile"
2986
2987
2988# Checks for programs.
2989ac_ext=cpp
2990ac_cpp='$CXXCPP $CPPFLAGS'
2991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2994if test -z "$CXX"; then
2995  if test -n "$CCC"; then
2996    CXX=$CCC
2997  else
2998    if test -n "$ac_tool_prefix"; then
2999  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3000  do
3001    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004$as_echo_n "checking for $ac_word... " >&6; }
3005if ${ac_cv_prog_CXX+:} false; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  if test -n "$CXX"; then
3009  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014  IFS=$as_save_IFS
3015  test -z "$as_dir" && as_dir=.
3016    for ac_exec_ext in '' $ac_executable_extensions; do
3017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020    break 2
3021  fi
3022done
3023  done
3024IFS=$as_save_IFS
3025
3026fi
3027fi
3028CXX=$ac_cv_prog_CXX
3029if test -n "$CXX"; then
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3031$as_echo "$CXX" >&6; }
3032else
3033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034$as_echo "no" >&6; }
3035fi
3036
3037
3038    test -n "$CXX" && break
3039  done
3040fi
3041if test -z "$CXX"; then
3042  ac_ct_CXX=$CXX
3043  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3044do
3045  # Extract the first word of "$ac_prog", so it can be a program name with args.
3046set dummy $ac_prog; ac_word=$2
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
3049if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  if test -n "$ac_ct_CXX"; then
3053  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060    for ac_exec_ext in '' $ac_executable_extensions; do
3061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062    ac_cv_prog_ac_ct_CXX="$ac_prog"
3063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064    break 2
3065  fi
3066done
3067  done
3068IFS=$as_save_IFS
3069
3070fi
3071fi
3072ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3073if test -n "$ac_ct_CXX"; then
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3075$as_echo "$ac_ct_CXX" >&6; }
3076else
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079fi
3080
3081
3082  test -n "$ac_ct_CXX" && break
3083done
3084
3085  if test "x$ac_ct_CXX" = x; then
3086    CXX="g++"
3087  else
3088    case $cross_compiling:$ac_tool_warned in
3089yes:)
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092ac_tool_warned=yes ;;
3093esac
3094    CXX=$ac_ct_CXX
3095  fi
3096fi
3097
3098  fi
3099fi
3100# Provide some information about the compiler.
3101$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3102set X $ac_compile
3103ac_compiler=$2
3104for ac_option in --version -v -V -qversion; do
3105  { { ac_try="$ac_compiler $ac_option >&5"
3106case "(($ac_try" in
3107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108  *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
3112  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3113  ac_status=$?
3114  if test -s conftest.err; then
3115    sed '10a\
3116... rest of stderr output deleted ...
3117         10q' conftest.err >conftest.er1
3118    cat conftest.er1 >&5
3119  fi
3120  rm -f conftest.er1 conftest.err
3121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122  test $ac_status = 0; }
3123done
3124
3125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h.  */
3127
3128int
3129main ()
3130{
3131
3132  ;
3133  return 0;
3134}
3135_ACEOF
3136ac_clean_files_save=$ac_clean_files
3137ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3138# Try to create an executable without -o first, disregard a.out.
3139# It will help us diagnose broken compilers, and finding out an intuition
3140# of exeext.
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3142$as_echo_n "checking whether the C++ compiler works... " >&6; }
3143ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3144
3145# The possible output files:
3146ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3147
3148ac_rmfiles=
3149for ac_file in $ac_files
3150do
3151  case $ac_file in
3152    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3153    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3154  esac
3155done
3156rm -f $ac_rmfiles
3157
3158if { { ac_try="$ac_link_default"
3159case "(($ac_try" in
3160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161  *) ac_try_echo=$ac_try;;
3162esac
3163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164$as_echo "$ac_try_echo"; } >&5
3165  (eval "$ac_link_default") 2>&5
3166  ac_status=$?
3167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168  test $ac_status = 0; }; then :
3169  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3170# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3171# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3172# so that the user can short-circuit this test for compilers unknown to
3173# Autoconf.
3174for ac_file in $ac_files ''
3175do
3176  test -f "$ac_file" || continue
3177  case $ac_file in
3178    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3179	;;
3180    [ab].out )
3181	# We found the default executable, but exeext='' is most
3182	# certainly right.
3183	break;;
3184    *.* )
3185	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3186	then :; else
3187	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3188	fi
3189	# We set ac_cv_exeext here because the later test for it is not
3190	# safe: cross compilers may not add the suffix if given an `-o'
3191	# argument, so we may need to know it at that point already.
3192	# Even if this section looks crufty: it has the advantage of
3193	# actually working.
3194	break;;
3195    * )
3196	break;;
3197  esac
3198done
3199test "$ac_cv_exeext" = no && ac_cv_exeext=
3200
3201else
3202  ac_file=''
3203fi
3204if test -z "$ac_file"; then :
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207$as_echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212as_fn_error 77 "C++ compiler cannot create executables
3213See \`config.log' for more details" "$LINENO" 5; }
3214else
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3216$as_echo "yes" >&6; }
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3219$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3221$as_echo "$ac_file" >&6; }
3222ac_exeext=$ac_cv_exeext
3223
3224rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3225ac_clean_files=$ac_clean_files_save
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3227$as_echo_n "checking for suffix of executables... " >&6; }
3228if { { ac_try="$ac_link"
3229case "(($ac_try" in
3230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231  *) ac_try_echo=$ac_try;;
3232esac
3233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234$as_echo "$ac_try_echo"; } >&5
3235  (eval "$ac_link") 2>&5
3236  ac_status=$?
3237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238  test $ac_status = 0; }; then :
3239  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3240# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3241# work properly (i.e., refer to `conftest.exe'), while it won't with
3242# `rm'.
3243for ac_file in conftest.exe conftest conftest.*; do
3244  test -f "$ac_file" || continue
3245  case $ac_file in
3246    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3247    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248	  break;;
3249    * ) break;;
3250  esac
3251done
3252else
3253  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3256See \`config.log' for more details" "$LINENO" 5; }
3257fi
3258rm -f conftest conftest$ac_cv_exeext
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3260$as_echo "$ac_cv_exeext" >&6; }
3261
3262rm -f conftest.$ac_ext
3263EXEEXT=$ac_cv_exeext
3264ac_exeext=$EXEEXT
3265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266/* end confdefs.h.  */
3267#include <stdio.h>
3268int
3269main ()
3270{
3271FILE *f = fopen ("conftest.out", "w");
3272 return ferror (f) || fclose (f) != 0;
3273
3274  ;
3275  return 0;
3276}
3277_ACEOF
3278ac_clean_files="$ac_clean_files conftest.out"
3279# Check that the compiler produces executables we can run.  If not, either
3280# the compiler is broken, or we cross compile.
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3282$as_echo_n "checking whether we are cross compiling... " >&6; }
3283if test "$cross_compiling" != yes; then
3284  { { ac_try="$ac_link"
3285case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290$as_echo "$ac_try_echo"; } >&5
3291  (eval "$ac_link") 2>&5
3292  ac_status=$?
3293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294  test $ac_status = 0; }
3295  if { ac_try='./conftest$ac_cv_exeext'
3296  { { case "(($ac_try" in
3297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298  *) ac_try_echo=$ac_try;;
3299esac
3300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301$as_echo "$ac_try_echo"; } >&5
3302  (eval "$ac_try") 2>&5
3303  ac_status=$?
3304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305  test $ac_status = 0; }; }; then
3306    cross_compiling=no
3307  else
3308    if test "$cross_compiling" = maybe; then
3309	cross_compiling=yes
3310    else
3311	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313as_fn_error $? "cannot run C++ compiled programs.
3314If you meant to cross compile, use \`--host'.
3315See \`config.log' for more details" "$LINENO" 5; }
3316    fi
3317  fi
3318fi
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3320$as_echo "$cross_compiling" >&6; }
3321
3322rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3323ac_clean_files=$ac_clean_files_save
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3325$as_echo_n "checking for suffix of object files... " >&6; }
3326if ${ac_cv_objext+:} false; then :
3327  $as_echo_n "(cached) " >&6
3328else
3329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331
3332int
3333main ()
3334{
3335
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340rm -f conftest.o conftest.obj
3341if { { ac_try="$ac_compile"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348  (eval "$ac_compile") 2>&5
3349  ac_status=$?
3350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351  test $ac_status = 0; }; then :
3352  for ac_file in conftest.o conftest.obj conftest.*; do
3353  test -f "$ac_file" || continue;
3354  case $ac_file in
3355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3356    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3357       break;;
3358  esac
3359done
3360else
3361  $as_echo "$as_me: failed program was:" >&5
3362sed 's/^/| /' conftest.$ac_ext >&5
3363
3364{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366as_fn_error $? "cannot compute suffix of object files: cannot compile
3367See \`config.log' for more details" "$LINENO" 5; }
3368fi
3369rm -f conftest.$ac_cv_objext conftest.$ac_ext
3370fi
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3372$as_echo "$ac_cv_objext" >&6; }
3373OBJEXT=$ac_cv_objext
3374ac_objext=$OBJEXT
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3376$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3377if ${ac_cv_cxx_compiler_gnu+:} false; then :
3378  $as_echo_n "(cached) " >&6
3379else
3380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h.  */
3382
3383int
3384main ()
3385{
3386#ifndef __GNUC__
3387       choke me
3388#endif
3389
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394if ac_fn_cxx_try_compile "$LINENO"; then :
3395  ac_compiler_gnu=yes
3396else
3397  ac_compiler_gnu=no
3398fi
3399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3401
3402fi
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3404$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3405if test $ac_compiler_gnu = yes; then
3406  GXX=yes
3407else
3408  GXX=
3409fi
3410ac_test_CXXFLAGS=${CXXFLAGS+set}
3411ac_save_CXXFLAGS=$CXXFLAGS
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3413$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3414if ${ac_cv_prog_cxx_g+:} false; then :
3415  $as_echo_n "(cached) " >&6
3416else
3417  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3418   ac_cxx_werror_flag=yes
3419   ac_cv_prog_cxx_g=no
3420   CXXFLAGS="-g"
3421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h.  */
3423
3424int
3425main ()
3426{
3427
3428  ;
3429  return 0;
3430}
3431_ACEOF
3432if ac_fn_cxx_try_compile "$LINENO"; then :
3433  ac_cv_prog_cxx_g=yes
3434else
3435  CXXFLAGS=""
3436      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437/* end confdefs.h.  */
3438
3439int
3440main ()
3441{
3442
3443  ;
3444  return 0;
3445}
3446_ACEOF
3447if ac_fn_cxx_try_compile "$LINENO"; then :
3448
3449else
3450  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3451	 CXXFLAGS="-g"
3452	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454
3455int
3456main ()
3457{
3458
3459  ;
3460  return 0;
3461}
3462_ACEOF
3463if ac_fn_cxx_try_compile "$LINENO"; then :
3464  ac_cv_prog_cxx_g=yes
3465fi
3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467fi
3468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469fi
3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3472fi
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3474$as_echo "$ac_cv_prog_cxx_g" >&6; }
3475if test "$ac_test_CXXFLAGS" = set; then
3476  CXXFLAGS=$ac_save_CXXFLAGS
3477elif test $ac_cv_prog_cxx_g = yes; then
3478  if test "$GXX" = yes; then
3479    CXXFLAGS="-g -O2"
3480  else
3481    CXXFLAGS="-g"
3482  fi
3483else
3484  if test "$GXX" = yes; then
3485    CXXFLAGS="-O2"
3486  else
3487    CXXFLAGS=
3488  fi
3489fi
3490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495DEPDIR="${am__leading_dot}deps"
3496
3497ac_config_commands="$ac_config_commands depfiles"
3498
3499
3500am_make=${MAKE-make}
3501cat > confinc << 'END'
3502am__doit:
3503	@echo this is the am__doit target
3504.PHONY: am__doit
3505END
3506# If we don't find an include directive, just comment out the code.
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3508$as_echo_n "checking for style of include used by $am_make... " >&6; }
3509am__include="#"
3510am__quote=
3511_am_result=none
3512# First try GNU make style include.
3513echo "include confinc" > confmf
3514# Ignore all kinds of additional output from 'make'.
3515case `$am_make -s -f confmf 2> /dev/null` in #(
3516*the\ am__doit\ target*)
3517  am__include=include
3518  am__quote=
3519  _am_result=GNU
3520  ;;
3521esac
3522# Now try BSD make style include.
3523if test "$am__include" = "#"; then
3524   echo '.include "confinc"' > confmf
3525   case `$am_make -s -f confmf 2> /dev/null` in #(
3526   *the\ am__doit\ target*)
3527     am__include=.include
3528     am__quote="\""
3529     _am_result=BSD
3530     ;;
3531   esac
3532fi
3533
3534
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3536$as_echo "$_am_result" >&6; }
3537rm -f confinc confmf
3538
3539# Check whether --enable-dependency-tracking was given.
3540if test "${enable_dependency_tracking+set}" = set; then :
3541  enableval=$enable_dependency_tracking;
3542fi
3543
3544if test "x$enable_dependency_tracking" != xno; then
3545  am_depcomp="$ac_aux_dir/depcomp"
3546  AMDEPBACKSLASH='\'
3547  am__nodep='_no'
3548fi
3549 if test "x$enable_dependency_tracking" != xno; then
3550  AMDEP_TRUE=
3551  AMDEP_FALSE='#'
3552else
3553  AMDEP_TRUE='#'
3554  AMDEP_FALSE=
3555fi
3556
3557
3558
3559depcc="$CXX"  am_compiler_list=
3560
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3562$as_echo_n "checking dependency style of $depcc... " >&6; }
3563if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3564  $as_echo_n "(cached) " >&6
3565else
3566  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3567  # We make a subdir and do the tests there.  Otherwise we can end up
3568  # making bogus files that we don't know about and never remove.  For
3569  # instance it was reported that on HP-UX the gcc test will end up
3570  # making a dummy file named 'D' -- because '-MD' means "put the output
3571  # in D".
3572  rm -rf conftest.dir
3573  mkdir conftest.dir
3574  # Copy depcomp to subdir because otherwise we won't find it if we're
3575  # using a relative directory.
3576  cp "$am_depcomp" conftest.dir
3577  cd conftest.dir
3578  # We will build objects and dependencies in a subdirectory because
3579  # it helps to detect inapplicable dependency modes.  For instance
3580  # both Tru64's cc and ICC support -MD to output dependencies as a
3581  # side effect of compilation, but ICC will put the dependencies in
3582  # the current directory while Tru64 will put them in the object
3583  # directory.
3584  mkdir sub
3585
3586  am_cv_CXX_dependencies_compiler_type=none
3587  if test "$am_compiler_list" = ""; then
3588     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3589  fi
3590  am__universal=false
3591  case " $depcc " in #(
3592     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3593     esac
3594
3595  for depmode in $am_compiler_list; do
3596    # Setup a source with many dependencies, because some compilers
3597    # like to wrap large dependency lists on column 80 (with \), and
3598    # we should not choose a depcomp mode which is confused by this.
3599    #
3600    # We need to recreate these files for each test, as the compiler may
3601    # overwrite some of them when testing with obscure command lines.
3602    # This happens at least with the AIX C compiler.
3603    : > sub/conftest.c
3604    for i in 1 2 3 4 5 6; do
3605      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3607      # Solaris 10 /bin/sh.
3608      echo '/* dummy */' > sub/conftst$i.h
3609    done
3610    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3611
3612    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3613    # mode.  It turns out that the SunPro C++ compiler does not properly
3614    # handle '-M -o', and we need to detect this.  Also, some Intel
3615    # versions had trouble with output in subdirs.
3616    am__obj=sub/conftest.${OBJEXT-o}
3617    am__minus_obj="-o $am__obj"
3618    case $depmode in
3619    gcc)
3620      # This depmode causes a compiler race in universal mode.
3621      test "$am__universal" = false || continue
3622      ;;
3623    nosideeffect)
3624      # After this tag, mechanisms are not by side-effect, so they'll
3625      # only be used when explicitly requested.
3626      if test "x$enable_dependency_tracking" = xyes; then
3627	continue
3628      else
3629	break
3630      fi
3631      ;;
3632    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3633      # This compiler won't grok '-c -o', but also, the minuso test has
3634      # not run yet.  These depmodes are late enough in the game, and
3635      # so weak that their functioning should not be impacted.
3636      am__obj=conftest.${OBJEXT-o}
3637      am__minus_obj=
3638      ;;
3639    none) break ;;
3640    esac
3641    if depmode=$depmode \
3642       source=sub/conftest.c object=$am__obj \
3643       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3644       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3645         >/dev/null 2>conftest.err &&
3646       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3647       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3648       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3649       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3650      # icc doesn't choke on unknown options, it will just issue warnings
3651      # or remarks (even with -Werror).  So we grep stderr for any message
3652      # that says an option was ignored or not supported.
3653      # When given -MP, icc 7.0 and 7.1 complain thusly:
3654      #   icc: Command line warning: ignoring option '-M'; no argument required
3655      # The diagnosis changed in icc 8.0:
3656      #   icc: Command line remark: option '-MP' not supported
3657      if (grep 'ignoring option' conftest.err ||
3658          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3659        am_cv_CXX_dependencies_compiler_type=$depmode
3660        break
3661      fi
3662    fi
3663  done
3664
3665  cd ..
3666  rm -rf conftest.dir
3667else
3668  am_cv_CXX_dependencies_compiler_type=none
3669fi
3670
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3673$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3674CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3675
3676 if
3677  test "x$enable_dependency_tracking" != xno \
3678  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3679  am__fastdepCXX_TRUE=
3680  am__fastdepCXX_FALSE='#'
3681else
3682  am__fastdepCXX_TRUE='#'
3683  am__fastdepCXX_FALSE=
3684fi
3685
3686
3687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692if test -n "$ac_tool_prefix"; then
3693  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3694set dummy ${ac_tool_prefix}gcc; ac_word=$2
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696$as_echo_n "checking for $ac_word... " >&6; }
3697if ${ac_cv_prog_CC+:} false; then :
3698  $as_echo_n "(cached) " >&6
3699else
3700  if test -n "$CC"; then
3701  ac_cv_prog_CC="$CC" # Let the user override the test.
3702else
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706  IFS=$as_save_IFS
3707  test -z "$as_dir" && as_dir=.
3708    for ac_exec_ext in '' $ac_executable_extensions; do
3709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712    break 2
3713  fi
3714done
3715  done
3716IFS=$as_save_IFS
3717
3718fi
3719fi
3720CC=$ac_cv_prog_CC
3721if test -n "$CC"; then
3722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3723$as_echo "$CC" >&6; }
3724else
3725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726$as_echo "no" >&6; }
3727fi
3728
3729
3730fi
3731if test -z "$ac_cv_prog_CC"; then
3732  ac_ct_CC=$CC
3733  # Extract the first word of "gcc", so it can be a program name with args.
3734set dummy gcc; ac_word=$2
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736$as_echo_n "checking for $ac_word... " >&6; }
3737if ${ac_cv_prog_ac_ct_CC+:} false; then :
3738  $as_echo_n "(cached) " >&6
3739else
3740  if test -n "$ac_ct_CC"; then
3741  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746  IFS=$as_save_IFS
3747  test -z "$as_dir" && as_dir=.
3748    for ac_exec_ext in '' $ac_executable_extensions; do
3749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750    ac_cv_prog_ac_ct_CC="gcc"
3751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752    break 2
3753  fi
3754done
3755  done
3756IFS=$as_save_IFS
3757
3758fi
3759fi
3760ac_ct_CC=$ac_cv_prog_ac_ct_CC
3761if test -n "$ac_ct_CC"; then
3762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3763$as_echo "$ac_ct_CC" >&6; }
3764else
3765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766$as_echo "no" >&6; }
3767fi
3768
3769  if test "x$ac_ct_CC" = x; then
3770    CC=""
3771  else
3772    case $cross_compiling:$ac_tool_warned in
3773yes:)
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776ac_tool_warned=yes ;;
3777esac
3778    CC=$ac_ct_CC
3779  fi
3780else
3781  CC="$ac_cv_prog_CC"
3782fi
3783
3784if test -z "$CC"; then
3785          if test -n "$ac_tool_prefix"; then
3786    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3787set dummy ${ac_tool_prefix}cc; ac_word=$2
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789$as_echo_n "checking for $ac_word... " >&6; }
3790if ${ac_cv_prog_CC+:} false; then :
3791  $as_echo_n "(cached) " >&6
3792else
3793  if test -n "$CC"; then
3794  ac_cv_prog_CC="$CC" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799  IFS=$as_save_IFS
3800  test -z "$as_dir" && as_dir=.
3801    for ac_exec_ext in '' $ac_executable_extensions; do
3802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803    ac_cv_prog_CC="${ac_tool_prefix}cc"
3804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805    break 2
3806  fi
3807done
3808  done
3809IFS=$as_save_IFS
3810
3811fi
3812fi
3813CC=$ac_cv_prog_CC
3814if test -n "$CC"; then
3815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3816$as_echo "$CC" >&6; }
3817else
3818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
3820fi
3821
3822
3823  fi
3824fi
3825if test -z "$CC"; then
3826  # Extract the first word of "cc", so it can be a program name with args.
3827set dummy cc; ac_word=$2
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829$as_echo_n "checking for $ac_word... " >&6; }
3830if ${ac_cv_prog_CC+:} false; then :
3831  $as_echo_n "(cached) " >&6
3832else
3833  if test -n "$CC"; then
3834  ac_cv_prog_CC="$CC" # Let the user override the test.
3835else
3836  ac_prog_rejected=no
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840  IFS=$as_save_IFS
3841  test -z "$as_dir" && as_dir=.
3842    for ac_exec_ext in '' $ac_executable_extensions; do
3843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3845       ac_prog_rejected=yes
3846       continue
3847     fi
3848    ac_cv_prog_CC="cc"
3849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850    break 2
3851  fi
3852done
3853  done
3854IFS=$as_save_IFS
3855
3856if test $ac_prog_rejected = yes; then
3857  # We found a bogon in the path, so make sure we never use it.
3858  set dummy $ac_cv_prog_CC
3859  shift
3860  if test $# != 0; then
3861    # We chose a different compiler from the bogus one.
3862    # However, it has the same basename, so the bogon will be chosen
3863    # first if we set CC to just the basename; use the full file name.
3864    shift
3865    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3866  fi
3867fi
3868fi
3869fi
3870CC=$ac_cv_prog_CC
3871if test -n "$CC"; then
3872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873$as_echo "$CC" >&6; }
3874else
3875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876$as_echo "no" >&6; }
3877fi
3878
3879
3880fi
3881if test -z "$CC"; then
3882  if test -n "$ac_tool_prefix"; then
3883  for ac_prog in cl.exe
3884  do
3885    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888$as_echo_n "checking for $ac_word... " >&6; }
3889if ${ac_cv_prog_CC+:} false; then :
3890  $as_echo_n "(cached) " >&6
3891else
3892  if test -n "$CC"; then
3893  ac_cv_prog_CC="$CC" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898  IFS=$as_save_IFS
3899  test -z "$as_dir" && as_dir=.
3900    for ac_exec_ext in '' $ac_executable_extensions; do
3901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904    break 2
3905  fi
3906done
3907  done
3908IFS=$as_save_IFS
3909
3910fi
3911fi
3912CC=$ac_cv_prog_CC
3913if test -n "$CC"; then
3914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915$as_echo "$CC" >&6; }
3916else
3917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918$as_echo "no" >&6; }
3919fi
3920
3921
3922    test -n "$CC" && break
3923  done
3924fi
3925if test -z "$CC"; then
3926  ac_ct_CC=$CC
3927  for ac_prog in cl.exe
3928do
3929  # Extract the first word of "$ac_prog", so it can be a program name with args.
3930set dummy $ac_prog; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
3933if ${ac_cv_prog_ac_ct_CC+:} false; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  if test -n "$ac_ct_CC"; then
3937  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942  IFS=$as_save_IFS
3943  test -z "$as_dir" && as_dir=.
3944    for ac_exec_ext in '' $ac_executable_extensions; do
3945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946    ac_cv_prog_ac_ct_CC="$ac_prog"
3947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948    break 2
3949  fi
3950done
3951  done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956ac_ct_CC=$ac_cv_prog_ac_ct_CC
3957if test -n "$ac_ct_CC"; then
3958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3959$as_echo "$ac_ct_CC" >&6; }
3960else
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966  test -n "$ac_ct_CC" && break
3967done
3968
3969  if test "x$ac_ct_CC" = x; then
3970    CC=""
3971  else
3972    case $cross_compiling:$ac_tool_warned in
3973yes:)
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3976ac_tool_warned=yes ;;
3977esac
3978    CC=$ac_ct_CC
3979  fi
3980fi
3981
3982fi
3983
3984
3985test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987as_fn_error $? "no acceptable C compiler found in \$PATH
3988See \`config.log' for more details" "$LINENO" 5; }
3989
3990# Provide some information about the compiler.
3991$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3992set X $ac_compile
3993ac_compiler=$2
3994for ac_option in --version -v -V -qversion; do
3995  { { ac_try="$ac_compiler $ac_option >&5"
3996case "(($ac_try" in
3997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998  *) ac_try_echo=$ac_try;;
3999esac
4000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001$as_echo "$ac_try_echo"; } >&5
4002  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4003  ac_status=$?
4004  if test -s conftest.err; then
4005    sed '10a\
4006... rest of stderr output deleted ...
4007         10q' conftest.err >conftest.er1
4008    cat conftest.er1 >&5
4009  fi
4010  rm -f conftest.er1 conftest.err
4011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012  test $ac_status = 0; }
4013done
4014
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4016$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4017if ${ac_cv_c_compiler_gnu+:} false; then :
4018  $as_echo_n "(cached) " >&6
4019else
4020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h.  */
4022
4023int
4024main ()
4025{
4026#ifndef __GNUC__
4027       choke me
4028#endif
4029
4030  ;
4031  return 0;
4032}
4033_ACEOF
4034if ac_fn_c_try_compile "$LINENO"; then :
4035  ac_compiler_gnu=yes
4036else
4037  ac_compiler_gnu=no
4038fi
4039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040ac_cv_c_compiler_gnu=$ac_compiler_gnu
4041
4042fi
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4044$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4045if test $ac_compiler_gnu = yes; then
4046  GCC=yes
4047else
4048  GCC=
4049fi
4050ac_test_CFLAGS=${CFLAGS+set}
4051ac_save_CFLAGS=$CFLAGS
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4053$as_echo_n "checking whether $CC accepts -g... " >&6; }
4054if ${ac_cv_prog_cc_g+:} false; then :
4055  $as_echo_n "(cached) " >&6
4056else
4057  ac_save_c_werror_flag=$ac_c_werror_flag
4058   ac_c_werror_flag=yes
4059   ac_cv_prog_cc_g=no
4060   CFLAGS="-g"
4061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063
4064int
4065main ()
4066{
4067
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072if ac_fn_c_try_compile "$LINENO"; then :
4073  ac_cv_prog_cc_g=yes
4074else
4075  CFLAGS=""
4076      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h.  */
4078
4079int
4080main ()
4081{
4082
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087if ac_fn_c_try_compile "$LINENO"; then :
4088
4089else
4090  ac_c_werror_flag=$ac_save_c_werror_flag
4091	 CFLAGS="-g"
4092	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093/* end confdefs.h.  */
4094
4095int
4096main ()
4097{
4098
4099  ;
4100  return 0;
4101}
4102_ACEOF
4103if ac_fn_c_try_compile "$LINENO"; then :
4104  ac_cv_prog_cc_g=yes
4105fi
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107fi
4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109fi
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111   ac_c_werror_flag=$ac_save_c_werror_flag
4112fi
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4114$as_echo "$ac_cv_prog_cc_g" >&6; }
4115if test "$ac_test_CFLAGS" = set; then
4116  CFLAGS=$ac_save_CFLAGS
4117elif test $ac_cv_prog_cc_g = yes; then
4118  if test "$GCC" = yes; then
4119    CFLAGS="-g -O2"
4120  else
4121    CFLAGS="-g"
4122  fi
4123else
4124  if test "$GCC" = yes; then
4125    CFLAGS="-O2"
4126  else
4127    CFLAGS=
4128  fi
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4131$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4132if ${ac_cv_prog_cc_c89+:} false; then :
4133  $as_echo_n "(cached) " >&6
4134else
4135  ac_cv_prog_cc_c89=no
4136ac_save_CC=$CC
4137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h.  */
4139#include <stdarg.h>
4140#include <stdio.h>
4141struct stat;
4142/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4143struct buf { int x; };
4144FILE * (*rcsopen) (struct buf *, struct stat *, int);
4145static char *e (p, i)
4146     char **p;
4147     int i;
4148{
4149  return p[i];
4150}
4151static char *f (char * (*g) (char **, int), char **p, ...)
4152{
4153  char *s;
4154  va_list v;
4155  va_start (v,p);
4156  s = g (p, va_arg (v,int));
4157  va_end (v);
4158  return s;
4159}
4160
4161/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4162   function prototypes and stuff, but not '\xHH' hex character constants.
4163   These don't provoke an error unfortunately, instead are silently treated
4164   as 'x'.  The following induces an error, until -std is added to get
4165   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4166   array size at least.  It's necessary to write '\x00'==0 to get something
4167   that's true only with -std.  */
4168int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4169
4170/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4171   inside strings and character constants.  */
4172#define FOO(x) 'x'
4173int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4174
4175int test (int i, double x);
4176struct s1 {int (*f) (int a);};
4177struct s2 {int (*f) (double a);};
4178int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4179int argc;
4180char **argv;
4181int
4182main ()
4183{
4184return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4185  ;
4186  return 0;
4187}
4188_ACEOF
4189for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4190	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4191do
4192  CC="$ac_save_CC $ac_arg"
4193  if ac_fn_c_try_compile "$LINENO"; then :
4194  ac_cv_prog_cc_c89=$ac_arg
4195fi
4196rm -f core conftest.err conftest.$ac_objext
4197  test "x$ac_cv_prog_cc_c89" != "xno" && break
4198done
4199rm -f conftest.$ac_ext
4200CC=$ac_save_CC
4201
4202fi
4203# AC_CACHE_VAL
4204case "x$ac_cv_prog_cc_c89" in
4205  x)
4206    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4207$as_echo "none needed" >&6; } ;;
4208  xno)
4209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4210$as_echo "unsupported" >&6; } ;;
4211  *)
4212    CC="$CC $ac_cv_prog_cc_c89"
4213    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4214$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4215esac
4216if test "x$ac_cv_prog_cc_c89" != xno; then :
4217
4218fi
4219
4220ac_ext=c
4221ac_cpp='$CPP $CPPFLAGS'
4222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226depcc="$CC"   am_compiler_list=
4227
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4229$as_echo_n "checking dependency style of $depcc... " >&6; }
4230if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4231  $as_echo_n "(cached) " >&6
4232else
4233  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4234  # We make a subdir and do the tests there.  Otherwise we can end up
4235  # making bogus files that we don't know about and never remove.  For
4236  # instance it was reported that on HP-UX the gcc test will end up
4237  # making a dummy file named 'D' -- because '-MD' means "put the output
4238  # in D".
4239  rm -rf conftest.dir
4240  mkdir conftest.dir
4241  # Copy depcomp to subdir because otherwise we won't find it if we're
4242  # using a relative directory.
4243  cp "$am_depcomp" conftest.dir
4244  cd conftest.dir
4245  # We will build objects and dependencies in a subdirectory because
4246  # it helps to detect inapplicable dependency modes.  For instance
4247  # both Tru64's cc and ICC support -MD to output dependencies as a
4248  # side effect of compilation, but ICC will put the dependencies in
4249  # the current directory while Tru64 will put them in the object
4250  # directory.
4251  mkdir sub
4252
4253  am_cv_CC_dependencies_compiler_type=none
4254  if test "$am_compiler_list" = ""; then
4255     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4256  fi
4257  am__universal=false
4258  case " $depcc " in #(
4259     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4260     esac
4261
4262  for depmode in $am_compiler_list; do
4263    # Setup a source with many dependencies, because some compilers
4264    # like to wrap large dependency lists on column 80 (with \), and
4265    # we should not choose a depcomp mode which is confused by this.
4266    #
4267    # We need to recreate these files for each test, as the compiler may
4268    # overwrite some of them when testing with obscure command lines.
4269    # This happens at least with the AIX C compiler.
4270    : > sub/conftest.c
4271    for i in 1 2 3 4 5 6; do
4272      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4273      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4274      # Solaris 10 /bin/sh.
4275      echo '/* dummy */' > sub/conftst$i.h
4276    done
4277    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4278
4279    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4280    # mode.  It turns out that the SunPro C++ compiler does not properly
4281    # handle '-M -o', and we need to detect this.  Also, some Intel
4282    # versions had trouble with output in subdirs.
4283    am__obj=sub/conftest.${OBJEXT-o}
4284    am__minus_obj="-o $am__obj"
4285    case $depmode in
4286    gcc)
4287      # This depmode causes a compiler race in universal mode.
4288      test "$am__universal" = false || continue
4289      ;;
4290    nosideeffect)
4291      # After this tag, mechanisms are not by side-effect, so they'll
4292      # only be used when explicitly requested.
4293      if test "x$enable_dependency_tracking" = xyes; then
4294	continue
4295      else
4296	break
4297      fi
4298      ;;
4299    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4300      # This compiler won't grok '-c -o', but also, the minuso test has
4301      # not run yet.  These depmodes are late enough in the game, and
4302      # so weak that their functioning should not be impacted.
4303      am__obj=conftest.${OBJEXT-o}
4304      am__minus_obj=
4305      ;;
4306    none) break ;;
4307    esac
4308    if depmode=$depmode \
4309       source=sub/conftest.c object=$am__obj \
4310       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4311       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4312         >/dev/null 2>conftest.err &&
4313       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4314       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4315       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4316       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4317      # icc doesn't choke on unknown options, it will just issue warnings
4318      # or remarks (even with -Werror).  So we grep stderr for any message
4319      # that says an option was ignored or not supported.
4320      # When given -MP, icc 7.0 and 7.1 complain thusly:
4321      #   icc: Command line warning: ignoring option '-M'; no argument required
4322      # The diagnosis changed in icc 8.0:
4323      #   icc: Command line remark: option '-MP' not supported
4324      if (grep 'ignoring option' conftest.err ||
4325          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4326        am_cv_CC_dependencies_compiler_type=$depmode
4327        break
4328      fi
4329    fi
4330  done
4331
4332  cd ..
4333  rm -rf conftest.dir
4334else
4335  am_cv_CC_dependencies_compiler_type=none
4336fi
4337
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4340$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4341CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4342
4343 if
4344  test "x$enable_dependency_tracking" != xno \
4345  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4346  am__fastdepCC_TRUE=
4347  am__fastdepCC_FALSE='#'
4348else
4349  am__fastdepCC_TRUE='#'
4350  am__fastdepCC_FALSE=
4351fi
4352
4353
4354
4355if test -n "$ac_tool_prefix"; then
4356  for ac_prog in ar lib "link -lib"
4357  do
4358    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361$as_echo_n "checking for $ac_word... " >&6; }
4362if ${ac_cv_prog_AR+:} false; then :
4363  $as_echo_n "(cached) " >&6
4364else
4365  if test -n "$AR"; then
4366  ac_cv_prog_AR="$AR" # Let the user override the test.
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371  IFS=$as_save_IFS
4372  test -z "$as_dir" && as_dir=.
4373    for ac_exec_ext in '' $ac_executable_extensions; do
4374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377    break 2
4378  fi
4379done
4380  done
4381IFS=$as_save_IFS
4382
4383fi
4384fi
4385AR=$ac_cv_prog_AR
4386if test -n "$AR"; then
4387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4388$as_echo "$AR" >&6; }
4389else
4390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391$as_echo "no" >&6; }
4392fi
4393
4394
4395    test -n "$AR" && break
4396  done
4397fi
4398if test -z "$AR"; then
4399  ac_ct_AR=$AR
4400  for ac_prog in ar lib "link -lib"
4401do
4402  # Extract the first word of "$ac_prog", so it can be a program name with args.
4403set dummy $ac_prog; ac_word=$2
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405$as_echo_n "checking for $ac_word... " >&6; }
4406if ${ac_cv_prog_ac_ct_AR+:} false; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  if test -n "$ac_ct_AR"; then
4410  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415  IFS=$as_save_IFS
4416  test -z "$as_dir" && as_dir=.
4417    for ac_exec_ext in '' $ac_executable_extensions; do
4418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419    ac_cv_prog_ac_ct_AR="$ac_prog"
4420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421    break 2
4422  fi
4423done
4424  done
4425IFS=$as_save_IFS
4426
4427fi
4428fi
4429ac_ct_AR=$ac_cv_prog_ac_ct_AR
4430if test -n "$ac_ct_AR"; then
4431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4432$as_echo "$ac_ct_AR" >&6; }
4433else
4434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435$as_echo "no" >&6; }
4436fi
4437
4438
4439  test -n "$ac_ct_AR" && break
4440done
4441
4442  if test "x$ac_ct_AR" = x; then
4443    AR="false"
4444  else
4445    case $cross_compiling:$ac_tool_warned in
4446yes:)
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449ac_tool_warned=yes ;;
4450esac
4451    AR=$ac_ct_AR
4452  fi
4453fi
4454
4455: ${AR=ar}
4456
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4458$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4459if ${am_cv_ar_interface+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  am_cv_ar_interface=ar
4463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h.  */
4465int some_variable = 0;
4466_ACEOF
4467if ac_fn_c_try_compile "$LINENO"; then :
4468  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4469      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4470  (eval $am_ar_try) 2>&5
4471  ac_status=$?
4472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473  test $ac_status = 0; }
4474      if test "$ac_status" -eq 0; then
4475        am_cv_ar_interface=ar
4476      else
4477        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4478        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4479  (eval $am_ar_try) 2>&5
4480  ac_status=$?
4481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482  test $ac_status = 0; }
4483        if test "$ac_status" -eq 0; then
4484          am_cv_ar_interface=lib
4485        else
4486          am_cv_ar_interface=unknown
4487        fi
4488      fi
4489      rm -f conftest.lib libconftest.a
4490
4491fi
4492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493
4494fi
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4496$as_echo "$am_cv_ar_interface" >&6; }
4497
4498case $am_cv_ar_interface in
4499ar)
4500  ;;
4501lib)
4502  # Microsoft lib, so override with the ar-lib wrapper script.
4503  # FIXME: It is wrong to rewrite AR.
4504  # But if we don't then we get into trouble of one sort or another.
4505  # A longer-term fix would be to have automake use am__AR in this case,
4506  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4507  # similar.
4508  AR="$am_aux_dir/ar-lib $AR"
4509  ;;
4510unknown)
4511  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4512  ;;
4513esac
4514
4515for ac_prog in gawk mawk nawk awk
4516do
4517  # Extract the first word of "$ac_prog", so it can be a program name with args.
4518set dummy $ac_prog; ac_word=$2
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520$as_echo_n "checking for $ac_word... " >&6; }
4521if ${ac_cv_prog_AWK+:} false; then :
4522  $as_echo_n "(cached) " >&6
4523else
4524  if test -n "$AWK"; then
4525  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530  IFS=$as_save_IFS
4531  test -z "$as_dir" && as_dir=.
4532    for ac_exec_ext in '' $ac_executable_extensions; do
4533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534    ac_cv_prog_AWK="$ac_prog"
4535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536    break 2
4537  fi
4538done
4539  done
4540IFS=$as_save_IFS
4541
4542fi
4543fi
4544AWK=$ac_cv_prog_AWK
4545if test -n "$AWK"; then
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4547$as_echo "$AWK" >&6; }
4548else
4549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550$as_echo "no" >&6; }
4551fi
4552
4553
4554  test -n "$AWK" && break
4555done
4556
4557
4558# Make sure we can run config.sub.
4559$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4560  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4561
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4563$as_echo_n "checking build system type... " >&6; }
4564if ${ac_cv_build+:} false; then :
4565  $as_echo_n "(cached) " >&6
4566else
4567  ac_build_alias=$build_alias
4568test "x$ac_build_alias" = x &&
4569  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4570test "x$ac_build_alias" = x &&
4571  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4572ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4573  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4574
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4577$as_echo "$ac_cv_build" >&6; }
4578case $ac_cv_build in
4579*-*-*) ;;
4580*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4581esac
4582build=$ac_cv_build
4583ac_save_IFS=$IFS; IFS='-'
4584set x $ac_cv_build
4585shift
4586build_cpu=$1
4587build_vendor=$2
4588shift; shift
4589# Remember, the first character of IFS is used to create $*,
4590# except with old shells:
4591build_os=$*
4592IFS=$ac_save_IFS
4593case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4594
4595
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4597$as_echo_n "checking host system type... " >&6; }
4598if ${ac_cv_host+:} false; then :
4599  $as_echo_n "(cached) " >&6
4600else
4601  if test "x$host_alias" = x; then
4602  ac_cv_host=$ac_cv_build
4603else
4604  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4605    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4606fi
4607
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4610$as_echo "$ac_cv_host" >&6; }
4611case $ac_cv_host in
4612*-*-*) ;;
4613*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4614esac
4615host=$ac_cv_host
4616ac_save_IFS=$IFS; IFS='-'
4617set x $ac_cv_host
4618shift
4619host_cpu=$1
4620host_vendor=$2
4621shift; shift
4622# Remember, the first character of IFS is used to create $*,
4623# except with old shells:
4624host_os=$*
4625IFS=$ac_save_IFS
4626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4627
4628
4629
4630case $host_os in
4631  *mingw* )
4632     MINGW=yes
4633     ;;
4634  darwin*)
4635     DARWIN=yes
4636     ;;
4637  *msys* )
4638     MINGW=yes
4639     ;;
4640  * )
4641     MINGW=no
4642     DARWIN=no
4643     ;;
4644esac
4645
4646if [ "$MINGW" = "yes" ]
4647then
4648   MINGWDEF="-DHAVE_MINGW"
4649
4650fi
4651
4652if [ "$DARWIN" = "yes" ]
4653then
4654   DARWINDEF="-DHAVE_DARWIN"
4655
4656fi
4657
4658 if test "$MINGW" = "yes"; then
4659  HAS_MINGW_TRUE=
4660  HAS_MINGW_FALSE='#'
4661else
4662  HAS_MINGW_TRUE='#'
4663  HAS_MINGW_FALSE=
4664fi
4665
4666
4667# Checks for header files.
4668ac_ext=c
4669ac_cpp='$CPP $CPPFLAGS'
4670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4674$as_echo_n "checking how to run the C preprocessor... " >&6; }
4675# On Suns, sometimes $CPP names a directory.
4676if test -n "$CPP" && test -d "$CPP"; then
4677  CPP=
4678fi
4679if test -z "$CPP"; then
4680  if ${ac_cv_prog_CPP+:} false; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683      # Double quotes because CPP needs to be expanded
4684    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4685    do
4686      ac_preproc_ok=false
4687for ac_c_preproc_warn_flag in '' yes
4688do
4689  # Use a header file that comes with gcc, so configuring glibc
4690  # with a fresh cross-compiler works.
4691  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692  # <limits.h> exists even on freestanding compilers.
4693  # On the NeXT, cc -E runs the code through the compiler's parser,
4694  # not just through cpp. "Syntax error" is here to catch this case.
4695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h.  */
4697#ifdef __STDC__
4698# include <limits.h>
4699#else
4700# include <assert.h>
4701#endif
4702		     Syntax error
4703_ACEOF
4704if ac_fn_c_try_cpp "$LINENO"; then :
4705
4706else
4707  # Broken: fails on valid input.
4708continue
4709fi
4710rm -f conftest.err conftest.i conftest.$ac_ext
4711
4712  # OK, works on sane cases.  Now check whether nonexistent headers
4713  # can be detected and how.
4714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h.  */
4716#include <ac_nonexistent.h>
4717_ACEOF
4718if ac_fn_c_try_cpp "$LINENO"; then :
4719  # Broken: success on invalid input.
4720continue
4721else
4722  # Passes both tests.
4723ac_preproc_ok=:
4724break
4725fi
4726rm -f conftest.err conftest.i conftest.$ac_ext
4727
4728done
4729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730rm -f conftest.i conftest.err conftest.$ac_ext
4731if $ac_preproc_ok; then :
4732  break
4733fi
4734
4735    done
4736    ac_cv_prog_CPP=$CPP
4737
4738fi
4739  CPP=$ac_cv_prog_CPP
4740else
4741  ac_cv_prog_CPP=$CPP
4742fi
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4744$as_echo "$CPP" >&6; }
4745ac_preproc_ok=false
4746for ac_c_preproc_warn_flag in '' yes
4747do
4748  # Use a header file that comes with gcc, so configuring glibc
4749  # with a fresh cross-compiler works.
4750  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751  # <limits.h> exists even on freestanding compilers.
4752  # On the NeXT, cc -E runs the code through the compiler's parser,
4753  # not just through cpp. "Syntax error" is here to catch this case.
4754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h.  */
4756#ifdef __STDC__
4757# include <limits.h>
4758#else
4759# include <assert.h>
4760#endif
4761		     Syntax error
4762_ACEOF
4763if ac_fn_c_try_cpp "$LINENO"; then :
4764
4765else
4766  # Broken: fails on valid input.
4767continue
4768fi
4769rm -f conftest.err conftest.i conftest.$ac_ext
4770
4771  # OK, works on sane cases.  Now check whether nonexistent headers
4772  # can be detected and how.
4773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775#include <ac_nonexistent.h>
4776_ACEOF
4777if ac_fn_c_try_cpp "$LINENO"; then :
4778  # Broken: success on invalid input.
4779continue
4780else
4781  # Passes both tests.
4782ac_preproc_ok=:
4783break
4784fi
4785rm -f conftest.err conftest.i conftest.$ac_ext
4786
4787done
4788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789rm -f conftest.i conftest.err conftest.$ac_ext
4790if $ac_preproc_ok; then :
4791
4792else
4793  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4795as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4796See \`config.log' for more details" "$LINENO" 5; }
4797fi
4798
4799ac_ext=c
4800ac_cpp='$CPP $CPPFLAGS'
4801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804
4805
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4807$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4808if ${ac_cv_path_GREP+:} false; then :
4809  $as_echo_n "(cached) " >&6
4810else
4811  if test -z "$GREP"; then
4812  ac_path_GREP_found=false
4813  # Loop through the user's path and test for each of PROGNAME-LIST
4814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4816do
4817  IFS=$as_save_IFS
4818  test -z "$as_dir" && as_dir=.
4819    for ac_prog in grep ggrep; do
4820    for ac_exec_ext in '' $ac_executable_extensions; do
4821      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4822      as_fn_executable_p "$ac_path_GREP" || continue
4823# Check for GNU ac_path_GREP and select it if it is found.
4824  # Check for GNU $ac_path_GREP
4825case `"$ac_path_GREP" --version 2>&1` in
4826*GNU*)
4827  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4828*)
4829  ac_count=0
4830  $as_echo_n 0123456789 >"conftest.in"
4831  while :
4832  do
4833    cat "conftest.in" "conftest.in" >"conftest.tmp"
4834    mv "conftest.tmp" "conftest.in"
4835    cp "conftest.in" "conftest.nl"
4836    $as_echo 'GREP' >> "conftest.nl"
4837    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839    as_fn_arith $ac_count + 1 && ac_count=$as_val
4840    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4841      # Best one so far, save it but keep looking for a better one
4842      ac_cv_path_GREP="$ac_path_GREP"
4843      ac_path_GREP_max=$ac_count
4844    fi
4845    # 10*(2^10) chars as input seems more than enough
4846    test $ac_count -gt 10 && break
4847  done
4848  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849esac
4850
4851      $ac_path_GREP_found && break 3
4852    done
4853  done
4854  done
4855IFS=$as_save_IFS
4856  if test -z "$ac_cv_path_GREP"; then
4857    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4858  fi
4859else
4860  ac_cv_path_GREP=$GREP
4861fi
4862
4863fi
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4865$as_echo "$ac_cv_path_GREP" >&6; }
4866 GREP="$ac_cv_path_GREP"
4867
4868
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4870$as_echo_n "checking for egrep... " >&6; }
4871if ${ac_cv_path_EGREP+:} false; then :
4872  $as_echo_n "(cached) " >&6
4873else
4874  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4875   then ac_cv_path_EGREP="$GREP -E"
4876   else
4877     if test -z "$EGREP"; then
4878  ac_path_EGREP_found=false
4879  # Loop through the user's path and test for each of PROGNAME-LIST
4880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882do
4883  IFS=$as_save_IFS
4884  test -z "$as_dir" && as_dir=.
4885    for ac_prog in egrep; do
4886    for ac_exec_ext in '' $ac_executable_extensions; do
4887      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4888      as_fn_executable_p "$ac_path_EGREP" || continue
4889# Check for GNU ac_path_EGREP and select it if it is found.
4890  # Check for GNU $ac_path_EGREP
4891case `"$ac_path_EGREP" --version 2>&1` in
4892*GNU*)
4893  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4894*)
4895  ac_count=0
4896  $as_echo_n 0123456789 >"conftest.in"
4897  while :
4898  do
4899    cat "conftest.in" "conftest.in" >"conftest.tmp"
4900    mv "conftest.tmp" "conftest.in"
4901    cp "conftest.in" "conftest.nl"
4902    $as_echo 'EGREP' >> "conftest.nl"
4903    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905    as_fn_arith $ac_count + 1 && ac_count=$as_val
4906    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4907      # Best one so far, save it but keep looking for a better one
4908      ac_cv_path_EGREP="$ac_path_EGREP"
4909      ac_path_EGREP_max=$ac_count
4910    fi
4911    # 10*(2^10) chars as input seems more than enough
4912    test $ac_count -gt 10 && break
4913  done
4914  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915esac
4916
4917      $ac_path_EGREP_found && break 3
4918    done
4919  done
4920  done
4921IFS=$as_save_IFS
4922  if test -z "$ac_cv_path_EGREP"; then
4923    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924  fi
4925else
4926  ac_cv_path_EGREP=$EGREP
4927fi
4928
4929   fi
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4932$as_echo "$ac_cv_path_EGREP" >&6; }
4933 EGREP="$ac_cv_path_EGREP"
4934
4935
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4937$as_echo_n "checking for ANSI C header files... " >&6; }
4938if ${ac_cv_header_stdc+:} false; then :
4939  $as_echo_n "(cached) " >&6
4940else
4941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h.  */
4943#include <stdlib.h>
4944#include <stdarg.h>
4945#include <string.h>
4946#include <float.h>
4947
4948int
4949main ()
4950{
4951
4952  ;
4953  return 0;
4954}
4955_ACEOF
4956if ac_fn_c_try_compile "$LINENO"; then :
4957  ac_cv_header_stdc=yes
4958else
4959  ac_cv_header_stdc=no
4960fi
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962
4963if test $ac_cv_header_stdc = yes; then
4964  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h.  */
4967#include <string.h>
4968
4969_ACEOF
4970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971  $EGREP "memchr" >/dev/null 2>&1; then :
4972
4973else
4974  ac_cv_header_stdc=no
4975fi
4976rm -f conftest*
4977
4978fi
4979
4980if test $ac_cv_header_stdc = yes; then
4981  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984#include <stdlib.h>
4985
4986_ACEOF
4987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988  $EGREP "free" >/dev/null 2>&1; then :
4989
4990else
4991  ac_cv_header_stdc=no
4992fi
4993rm -f conftest*
4994
4995fi
4996
4997if test $ac_cv_header_stdc = yes; then
4998  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4999  if test "$cross_compiling" = yes; then :
5000  :
5001else
5002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h.  */
5004#include <ctype.h>
5005#include <stdlib.h>
5006#if ((' ' & 0x0FF) == 0x020)
5007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5009#else
5010# define ISLOWER(c) \
5011		   (('a' <= (c) && (c) <= 'i') \
5012		     || ('j' <= (c) && (c) <= 'r') \
5013		     || ('s' <= (c) && (c) <= 'z'))
5014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5015#endif
5016
5017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5018int
5019main ()
5020{
5021  int i;
5022  for (i = 0; i < 256; i++)
5023    if (XOR (islower (i), ISLOWER (i))
5024	|| toupper (i) != TOUPPER (i))
5025      return 2;
5026  return 0;
5027}
5028_ACEOF
5029if ac_fn_c_try_run "$LINENO"; then :
5030
5031else
5032  ac_cv_header_stdc=no
5033fi
5034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5035  conftest.$ac_objext conftest.beam conftest.$ac_ext
5036fi
5037
5038fi
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5041$as_echo "$ac_cv_header_stdc" >&6; }
5042if test $ac_cv_header_stdc = yes; then
5043
5044$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5045
5046fi
5047
5048# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5049for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5050		  inttypes.h stdint.h unistd.h
5051do :
5052  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5053ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5054"
5055if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5056  cat >>confdefs.h <<_ACEOF
5057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5058_ACEOF
5059
5060fi
5061
5062done
5063
5064
5065ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5066if test "x$ac_cv_type_size_t" = xyes; then :
5067
5068else
5069
5070cat >>confdefs.h <<_ACEOF
5071#define size_t unsigned int
5072_ACEOF
5073
5074fi
5075
5076# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5077# for constant arguments.  Useless!
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5079$as_echo_n "checking for working alloca.h... " >&6; }
5080if ${ac_cv_working_alloca_h+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h.  */
5085#include <alloca.h>
5086int
5087main ()
5088{
5089char *p = (char *) alloca (2 * sizeof (int));
5090			  if (p) return 0;
5091  ;
5092  return 0;
5093}
5094_ACEOF
5095if ac_fn_c_try_link "$LINENO"; then :
5096  ac_cv_working_alloca_h=yes
5097else
5098  ac_cv_working_alloca_h=no
5099fi
5100rm -f core conftest.err conftest.$ac_objext \
5101    conftest$ac_exeext conftest.$ac_ext
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5104$as_echo "$ac_cv_working_alloca_h" >&6; }
5105if test $ac_cv_working_alloca_h = yes; then
5106
5107$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5108
5109fi
5110
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5112$as_echo_n "checking for alloca... " >&6; }
5113if ${ac_cv_func_alloca_works+:} false; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h.  */
5118#ifdef __GNUC__
5119# define alloca __builtin_alloca
5120#else
5121# ifdef _MSC_VER
5122#  include <malloc.h>
5123#  define alloca _alloca
5124# else
5125#  ifdef HAVE_ALLOCA_H
5126#   include <alloca.h>
5127#  else
5128#   ifdef _AIX
5129 #pragma alloca
5130#   else
5131#    ifndef alloca /* predefined by HP cc +Olibcalls */
5132void *alloca (size_t);
5133#    endif
5134#   endif
5135#  endif
5136# endif
5137#endif
5138
5139int
5140main ()
5141{
5142char *p = (char *) alloca (1);
5143				    if (p) return 0;
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148if ac_fn_c_try_link "$LINENO"; then :
5149  ac_cv_func_alloca_works=yes
5150else
5151  ac_cv_func_alloca_works=no
5152fi
5153rm -f core conftest.err conftest.$ac_objext \
5154    conftest$ac_exeext conftest.$ac_ext
5155fi
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5157$as_echo "$ac_cv_func_alloca_works" >&6; }
5158
5159if test $ac_cv_func_alloca_works = yes; then
5160
5161$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5162
5163else
5164  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5165# that cause trouble.  Some versions do not even contain alloca or
5166# contain a buggy version.  If you still want to use their alloca,
5167# use ar to extract alloca.o from them instead of compiling alloca.c.
5168
5169ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5170
5171$as_echo "#define C_ALLOCA 1" >>confdefs.h
5172
5173
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5175$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5176if ${ac_cv_os_cray+:} false; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h.  */
5181#if defined CRAY && ! defined CRAY2
5182webecray
5183#else
5184wenotbecray
5185#endif
5186
5187_ACEOF
5188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189  $EGREP "webecray" >/dev/null 2>&1; then :
5190  ac_cv_os_cray=yes
5191else
5192  ac_cv_os_cray=no
5193fi
5194rm -f conftest*
5195
5196fi
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5198$as_echo "$ac_cv_os_cray" >&6; }
5199if test $ac_cv_os_cray = yes; then
5200  for ac_func in _getb67 GETB67 getb67; do
5201    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5202ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5203if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5204
5205cat >>confdefs.h <<_ACEOF
5206#define CRAY_STACKSEG_END $ac_func
5207_ACEOF
5208
5209    break
5210fi
5211
5212  done
5213fi
5214
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5216$as_echo_n "checking stack direction for C alloca... " >&6; }
5217if ${ac_cv_c_stack_direction+:} false; then :
5218  $as_echo_n "(cached) " >&6
5219else
5220  if test "$cross_compiling" = yes; then :
5221  ac_cv_c_stack_direction=0
5222else
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225$ac_includes_default
5226int
5227find_stack_direction (int *addr, int depth)
5228{
5229  int dir, dummy = 0;
5230  if (! addr)
5231    addr = &dummy;
5232  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5233  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5234  return dir + dummy;
5235}
5236
5237int
5238main (int argc, char **argv)
5239{
5240  return find_stack_direction (0, argc + !argv + 20) < 0;
5241}
5242_ACEOF
5243if ac_fn_c_try_run "$LINENO"; then :
5244  ac_cv_c_stack_direction=1
5245else
5246  ac_cv_c_stack_direction=-1
5247fi
5248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5249  conftest.$ac_objext conftest.beam conftest.$ac_ext
5250fi
5251
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5254$as_echo "$ac_cv_c_stack_direction" >&6; }
5255cat >>confdefs.h <<_ACEOF
5256#define STACK_DIRECTION $ac_cv_c_stack_direction
5257_ACEOF
5258
5259
5260fi
5261
5262for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h poll.h
5263do :
5264  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5265ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5266if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5267  cat >>confdefs.h <<_ACEOF
5268#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5269_ACEOF
5270
5271fi
5272
5273done
5274
5275
5276# This is what autoupdate's m4 run will expand.  It fires
5277# the warning (with _au_warn_XXX), outputs it into the
5278# updated configure.ac (with AC_DIAGNOSE), and then outputs
5279# the replacement expansion.
5280
5281
5282# This is an auxiliary macro that is also run when
5283# autoupdate runs m4.  It simply calls m4_warning, but
5284# we need a wrapper so that each warning is emitted only
5285# once.  We break the quoting in m4_warning's argument in
5286# order to expand this macro's arguments, not AU_DEFUN's.
5287
5288
5289# Finally, this is the expansion that is picked up by
5290# autoconf.  It tells the user to run autoupdate, and
5291# then outputs the replacement expansion.  We do not care
5292# about autoupdate's warning because that contains
5293# information on what to do *after* running autoupdate.
5294
5295
5296
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct semun" >&5
5298$as_echo_n "checking for struct semun... " >&6; }
5299if ${ac_cv_struct_semun+:} false; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302
5303        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h.  */
5305
5306                        #include <sys/types.h>
5307                        #include <sys/ipc.h>
5308                        #include <sys/sem.h>
5309
5310int
5311main ()
5312{
5313 union semun s;
5314  ;
5315  return 0;
5316}
5317_ACEOF
5318if ac_fn_c_try_compile "$LINENO"; then :
5319  ac_cv_struct_semun=yes
5320else
5321  ac_cv_struct_semun=no
5322fi
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_semun" >&5
5327$as_echo "$ac_cv_struct_semun" >&6; }
5328
5329        if test x"$ac_cv_struct_semun" = "xyes"
5330        then
5331
5332$as_echo "#define HAVE_STRUCT_SEMUN 1" >>confdefs.h
5333
5334        fi
5335
5336
5337# Checks for typedefs, structures, and compiler characteristics.
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5339$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5340if ${ac_cv_header_stdbool_h+:} false; then :
5341  $as_echo_n "(cached) " >&6
5342else
5343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h.  */
5345
5346             #include <stdbool.h>
5347             #ifndef bool
5348              "error: bool is not defined"
5349             #endif
5350             #ifndef false
5351              "error: false is not defined"
5352             #endif
5353             #if false
5354              "error: false is not 0"
5355             #endif
5356             #ifndef true
5357              "error: true is not defined"
5358             #endif
5359             #if true != 1
5360              "error: true is not 1"
5361             #endif
5362             #ifndef __bool_true_false_are_defined
5363              "error: __bool_true_false_are_defined is not defined"
5364             #endif
5365
5366             struct s { _Bool s: 1; _Bool t; } s;
5367
5368             char a[true == 1 ? 1 : -1];
5369             char b[false == 0 ? 1 : -1];
5370             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5371             char d[(bool) 0.5 == true ? 1 : -1];
5372             /* See body of main program for 'e'.  */
5373             char f[(_Bool) 0.0 == false ? 1 : -1];
5374             char g[true];
5375             char h[sizeof (_Bool)];
5376             char i[sizeof s.t];
5377             enum { j = false, k = true, l = false * true, m = true * 256 };
5378             /* The following fails for
5379                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5380             _Bool n[m];
5381             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5382             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5383             /* Catch a bug in an HP-UX C compiler.  See
5384                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5385                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5386              */
5387             _Bool q = true;
5388             _Bool *pq = &q;
5389
5390int
5391main ()
5392{
5393
5394             bool e = &s;
5395             *pq |= q;
5396             *pq |= ! q;
5397             /* Refer to every declared value, to avoid compiler optimizations.  */
5398             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5399                     + !m + !n + !o + !p + !q + !pq);
5400
5401  ;
5402  return 0;
5403}
5404_ACEOF
5405if ac_fn_c_try_compile "$LINENO"; then :
5406  ac_cv_header_stdbool_h=yes
5407else
5408  ac_cv_header_stdbool_h=no
5409fi
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5413$as_echo "$ac_cv_header_stdbool_h" >&6; }
5414   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5415if test "x$ac_cv_type__Bool" = xyes; then :
5416
5417cat >>confdefs.h <<_ACEOF
5418#define HAVE__BOOL 1
5419_ACEOF
5420
5421
5422fi
5423
5424
5425ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5426if test "x$ac_cv_type_size_t" = xyes; then :
5427
5428else
5429
5430cat >>confdefs.h <<_ACEOF
5431#define size_t unsigned int
5432_ACEOF
5433
5434fi
5435
5436
5437# Checks for library functions.
5438ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5439if test "x$ac_cv_type_pid_t" = xyes; then :
5440
5441else
5442
5443cat >>confdefs.h <<_ACEOF
5444#define pid_t int
5445_ACEOF
5446
5447fi
5448
5449for ac_header in vfork.h
5450do :
5451  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5452if test "x$ac_cv_header_vfork_h" = xyes; then :
5453  cat >>confdefs.h <<_ACEOF
5454#define HAVE_VFORK_H 1
5455_ACEOF
5456
5457fi
5458
5459done
5460
5461for ac_func in fork vfork
5462do :
5463  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5464ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5465if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5466  cat >>confdefs.h <<_ACEOF
5467#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5468_ACEOF
5469
5470fi
5471done
5472
5473if test "x$ac_cv_func_fork" = xyes; then
5474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5475$as_echo_n "checking for working fork... " >&6; }
5476if ${ac_cv_func_fork_works+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  if test "$cross_compiling" = yes; then :
5480  ac_cv_func_fork_works=cross
5481else
5482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483/* end confdefs.h.  */
5484$ac_includes_default
5485int
5486main ()
5487{
5488
5489	  /* By Ruediger Kuhlmann. */
5490	  return fork () < 0;
5491
5492  ;
5493  return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_run "$LINENO"; then :
5497  ac_cv_func_fork_works=yes
5498else
5499  ac_cv_func_fork_works=no
5500fi
5501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5502  conftest.$ac_objext conftest.beam conftest.$ac_ext
5503fi
5504
5505fi
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5507$as_echo "$ac_cv_func_fork_works" >&6; }
5508
5509else
5510  ac_cv_func_fork_works=$ac_cv_func_fork
5511fi
5512if test "x$ac_cv_func_fork_works" = xcross; then
5513  case $host in
5514    *-*-amigaos* | *-*-msdosdjgpp*)
5515      # Override, as these systems have only a dummy fork() stub
5516      ac_cv_func_fork_works=no
5517      ;;
5518    *)
5519      ac_cv_func_fork_works=yes
5520      ;;
5521  esac
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5523$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5524fi
5525ac_cv_func_vfork_works=$ac_cv_func_vfork
5526if test "x$ac_cv_func_vfork" = xyes; then
5527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5528$as_echo_n "checking for working vfork... " >&6; }
5529if ${ac_cv_func_vfork_works+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  if test "$cross_compiling" = yes; then :
5533  ac_cv_func_vfork_works=cross
5534else
5535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h.  */
5537/* Thanks to Paul Eggert for this test.  */
5538$ac_includes_default
5539#include <sys/wait.h>
5540#ifdef HAVE_VFORK_H
5541# include <vfork.h>
5542#endif
5543/* On some sparc systems, changes by the child to local and incoming
5544   argument registers are propagated back to the parent.  The compiler
5545   is told about this with #include <vfork.h>, but some compilers
5546   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5547   static variable whose address is put into a register that is
5548   clobbered by the vfork.  */
5549static void
5550#ifdef __cplusplus
5551sparc_address_test (int arg)
5552# else
5553sparc_address_test (arg) int arg;
5554#endif
5555{
5556  static pid_t child;
5557  if (!child) {
5558    child = vfork ();
5559    if (child < 0) {
5560      perror ("vfork");
5561      _exit(2);
5562    }
5563    if (!child) {
5564      arg = getpid();
5565      write(-1, "", 0);
5566      _exit (arg);
5567    }
5568  }
5569}
5570
5571int
5572main ()
5573{
5574  pid_t parent = getpid ();
5575  pid_t child;
5576
5577  sparc_address_test (0);
5578
5579  child = vfork ();
5580
5581  if (child == 0) {
5582    /* Here is another test for sparc vfork register problems.  This
5583       test uses lots of local variables, at least as many local
5584       variables as main has allocated so far including compiler
5585       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5586       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5587       reuse the register of parent for one of the local variables,
5588       since it will think that parent can't possibly be used any more
5589       in this routine.  Assigning to the local variable will thus
5590       munge parent in the parent process.  */
5591    pid_t
5592      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5593      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5594    /* Convince the compiler that p..p7 are live; otherwise, it might
5595       use the same hardware register for all 8 local variables.  */
5596    if (p != p1 || p != p2 || p != p3 || p != p4
5597	|| p != p5 || p != p6 || p != p7)
5598      _exit(1);
5599
5600    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5601       from child file descriptors.  If the child closes a descriptor
5602       before it execs or exits, this munges the parent's descriptor
5603       as well.  Test for this by closing stdout in the child.  */
5604    _exit(close(fileno(stdout)) != 0);
5605  } else {
5606    int status;
5607    struct stat st;
5608
5609    while (wait(&status) != child)
5610      ;
5611    return (
5612	 /* Was there some problem with vforking?  */
5613	 child < 0
5614
5615	 /* Did the child fail?  (This shouldn't happen.)  */
5616	 || status
5617
5618	 /* Did the vfork/compiler bug occur?  */
5619	 || parent != getpid()
5620
5621	 /* Did the file descriptor bug occur?  */
5622	 || fstat(fileno(stdout), &st) != 0
5623	 );
5624  }
5625}
5626_ACEOF
5627if ac_fn_c_try_run "$LINENO"; then :
5628  ac_cv_func_vfork_works=yes
5629else
5630  ac_cv_func_vfork_works=no
5631fi
5632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5633  conftest.$ac_objext conftest.beam conftest.$ac_ext
5634fi
5635
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5638$as_echo "$ac_cv_func_vfork_works" >&6; }
5639
5640fi;
5641if test "x$ac_cv_func_fork_works" = xcross; then
5642  ac_cv_func_vfork_works=$ac_cv_func_vfork
5643  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5644$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5645fi
5646
5647if test "x$ac_cv_func_vfork_works" = xyes; then
5648
5649$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5650
5651else
5652
5653$as_echo "#define vfork fork" >>confdefs.h
5654
5655fi
5656if test "x$ac_cv_func_fork_works" = xyes; then
5657
5658$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5659
5660fi
5661
5662for ac_header in stdlib.h
5663do :
5664  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5665if test "x$ac_cv_header_stdlib_h" = xyes; then :
5666  cat >>confdefs.h <<_ACEOF
5667#define HAVE_STDLIB_H 1
5668_ACEOF
5669
5670fi
5671
5672done
5673
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5675$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5676if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  if test "$cross_compiling" = yes; then :
5680  ac_cv_func_malloc_0_nonnull=no
5681else
5682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h.  */
5684#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5685# include <stdlib.h>
5686#else
5687char *malloc ();
5688#endif
5689
5690int
5691main ()
5692{
5693return ! malloc (0);
5694  ;
5695  return 0;
5696}
5697_ACEOF
5698if ac_fn_c_try_run "$LINENO"; then :
5699  ac_cv_func_malloc_0_nonnull=yes
5700else
5701  ac_cv_func_malloc_0_nonnull=no
5702fi
5703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5704  conftest.$ac_objext conftest.beam conftest.$ac_ext
5705fi
5706
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5709$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5710if test $ac_cv_func_malloc_0_nonnull = yes; then :
5711
5712$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5713
5714else
5715  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5716
5717   case " $LIBOBJS " in
5718  *" malloc.$ac_objext "* ) ;;
5719  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5720 ;;
5721esac
5722
5723
5724$as_echo "#define malloc rpl_malloc" >>confdefs.h
5725
5726fi
5727
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5730$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5731if ${ac_cv_header_time+:} false; then :
5732  $as_echo_n "(cached) " >&6
5733else
5734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h.  */
5736#include <sys/types.h>
5737#include <sys/time.h>
5738#include <time.h>
5739
5740int
5741main ()
5742{
5743if ((struct tm *) 0)
5744return 0;
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then :
5750  ac_cv_header_time=yes
5751else
5752  ac_cv_header_time=no
5753fi
5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755fi
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5757$as_echo "$ac_cv_header_time" >&6; }
5758if test $ac_cv_header_time = yes; then
5759
5760$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5761
5762fi
5763
5764
5765
5766
5767  for ac_header in $ac_header_list
5768do :
5769  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5770ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5771"
5772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5773  cat >>confdefs.h <<_ACEOF
5774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5775_ACEOF
5776
5777fi
5778
5779done
5780
5781
5782
5783
5784
5785
5786
5787
5788  for ac_func in $ac_func_list
5789do :
5790  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5791ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5792if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5793  cat >>confdefs.h <<_ACEOF
5794#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5795_ACEOF
5796
5797fi
5798done
5799
5800
5801
5802
5803
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
5805$as_echo_n "checking for working mktime... " >&6; }
5806if ${ac_cv_func_working_mktime+:} false; then :
5807  $as_echo_n "(cached) " >&6
5808else
5809  if test "$cross_compiling" = yes; then :
5810  ac_cv_func_working_mktime=no
5811else
5812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h.  */
5814/* Test program from Paul Eggert and Tony Leneis.  */
5815#ifdef TIME_WITH_SYS_TIME
5816# include <sys/time.h>
5817# include <time.h>
5818#else
5819# ifdef HAVE_SYS_TIME_H
5820#  include <sys/time.h>
5821# else
5822#  include <time.h>
5823# endif
5824#endif
5825
5826#include <limits.h>
5827#include <stdlib.h>
5828
5829#ifdef HAVE_UNISTD_H
5830# include <unistd.h>
5831#endif
5832
5833#ifndef HAVE_ALARM
5834# define alarm(X) /* empty */
5835#endif
5836
5837/* Work around redefinition to rpl_putenv by other config tests.  */
5838#undef putenv
5839
5840static time_t time_t_max;
5841static time_t time_t_min;
5842
5843/* Values we'll use to set the TZ environment variable.  */
5844static const char *tz_strings[] = {
5845  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
5846  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5847};
5848#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5849
5850/* Return 0 if mktime fails to convert a date in the spring-forward gap.
5851   Based on a problem report from Andreas Jaeger.  */
5852static int
5853spring_forward_gap ()
5854{
5855  /* glibc (up to about 1998-10-07) failed this test. */
5856  struct tm tm;
5857
5858  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5859     instead of "TZ=America/Vancouver" in order to detect the bug even
5860     on systems that don't support the Olson extension, or don't have the
5861     full zoneinfo tables installed.  */
5862  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
5863
5864  tm.tm_year = 98;
5865  tm.tm_mon = 3;
5866  tm.tm_mday = 5;
5867  tm.tm_hour = 2;
5868  tm.tm_min = 0;
5869  tm.tm_sec = 0;
5870  tm.tm_isdst = -1;
5871  return mktime (&tm) != (time_t) -1;
5872}
5873
5874static int
5875mktime_test1 (time_t now)
5876{
5877  struct tm *lt;
5878  return ! (lt = localtime (&now)) || mktime (lt) == now;
5879}
5880
5881static int
5882mktime_test (time_t now)
5883{
5884  return (mktime_test1 (now)
5885	  && mktime_test1 ((time_t) (time_t_max - now))
5886	  && mktime_test1 ((time_t) (time_t_min + now)));
5887}
5888
5889static int
5890irix_6_4_bug ()
5891{
5892  /* Based on code from Ariel Faigon.  */
5893  struct tm tm;
5894  tm.tm_year = 96;
5895  tm.tm_mon = 3;
5896  tm.tm_mday = 0;
5897  tm.tm_hour = 0;
5898  tm.tm_min = 0;
5899  tm.tm_sec = 0;
5900  tm.tm_isdst = -1;
5901  mktime (&tm);
5902  return tm.tm_mon == 2 && tm.tm_mday == 31;
5903}
5904
5905static int
5906bigtime_test (int j)
5907{
5908  struct tm tm;
5909  time_t now;
5910  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5911  now = mktime (&tm);
5912  if (now != (time_t) -1)
5913    {
5914      struct tm *lt = localtime (&now);
5915      if (! (lt
5916	     && lt->tm_year == tm.tm_year
5917	     && lt->tm_mon == tm.tm_mon
5918	     && lt->tm_mday == tm.tm_mday
5919	     && lt->tm_hour == tm.tm_hour
5920	     && lt->tm_min == tm.tm_min
5921	     && lt->tm_sec == tm.tm_sec
5922	     && lt->tm_yday == tm.tm_yday
5923	     && lt->tm_wday == tm.tm_wday
5924	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5925		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5926	return 0;
5927    }
5928  return 1;
5929}
5930
5931static int
5932year_2050_test ()
5933{
5934  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
5935     ignoring leap seconds.  */
5936  unsigned long int answer = 2527315200UL;
5937
5938  struct tm tm;
5939  time_t t;
5940  tm.tm_year = 2050 - 1900;
5941  tm.tm_mon = 2 - 1;
5942  tm.tm_mday = 1;
5943  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
5944  tm.tm_isdst = -1;
5945
5946  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5947     instead of "TZ=America/Vancouver" in order to detect the bug even
5948     on systems that don't support the Olson extension, or don't have the
5949     full zoneinfo tables installed.  */
5950  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
5951
5952  t = mktime (&tm);
5953
5954  /* Check that the result is either a failure, or close enough
5955     to the correct answer that we can assume the discrepancy is
5956     due to leap seconds.  */
5957  return (t == (time_t) -1
5958	  || (0 < t && answer - 120 <= t && t <= answer + 120));
5959}
5960
5961int
5962main ()
5963{
5964  time_t t, delta;
5965  int i, j;
5966
5967  /* This test makes some buggy mktime implementations loop.
5968     Give up after 60 seconds; a mktime slower than that
5969     isn't worth using anyway.  */
5970  alarm (60);
5971
5972  for (;;)
5973    {
5974      t = (time_t_max << 1) + 1;
5975      if (t <= time_t_max)
5976	break;
5977      time_t_max = t;
5978    }
5979  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
5980
5981  delta = time_t_max / 997; /* a suitable prime number */
5982  for (i = 0; i < N_STRINGS; i++)
5983    {
5984      if (tz_strings[i])
5985	putenv ((char*) tz_strings[i]);
5986
5987      for (t = 0; t <= time_t_max - delta; t += delta)
5988	if (! mktime_test (t))
5989	  return 1;
5990      if (! (mktime_test ((time_t) 1)
5991	     && mktime_test ((time_t) (60 * 60))
5992	     && mktime_test ((time_t) (60 * 60 * 24))))
5993	return 1;
5994
5995      for (j = 1; ; j <<= 1)
5996	if (! bigtime_test (j))
5997	  return 1;
5998	else if (INT_MAX / 2 < j)
5999	  break;
6000      if (! bigtime_test (INT_MAX))
6001	return 1;
6002    }
6003  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
6004}
6005_ACEOF
6006if ac_fn_c_try_run "$LINENO"; then :
6007  ac_cv_func_working_mktime=yes
6008else
6009  ac_cv_func_working_mktime=no
6010fi
6011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6012  conftest.$ac_objext conftest.beam conftest.$ac_ext
6013fi
6014
6015fi
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
6017$as_echo "$ac_cv_func_working_mktime" >&6; }
6018if test $ac_cv_func_working_mktime = no; then
6019  case " $LIBOBJS " in
6020  *" mktime.$ac_objext "* ) ;;
6021  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
6022 ;;
6023esac
6024
6025fi
6026
6027for ac_header in stdlib.h
6028do :
6029  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6030if test "x$ac_cv_header_stdlib_h" = xyes; then :
6031  cat >>confdefs.h <<_ACEOF
6032#define HAVE_STDLIB_H 1
6033_ACEOF
6034
6035fi
6036
6037done
6038
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6040$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6041if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  if test "$cross_compiling" = yes; then :
6045  ac_cv_func_realloc_0_nonnull=no
6046else
6047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h.  */
6049#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6050# include <stdlib.h>
6051#else
6052char *realloc ();
6053#endif
6054
6055int
6056main ()
6057{
6058return ! realloc (0, 0);
6059  ;
6060  return 0;
6061}
6062_ACEOF
6063if ac_fn_c_try_run "$LINENO"; then :
6064  ac_cv_func_realloc_0_nonnull=yes
6065else
6066  ac_cv_func_realloc_0_nonnull=no
6067fi
6068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6069  conftest.$ac_objext conftest.beam conftest.$ac_ext
6070fi
6071
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6074$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6075if test $ac_cv_func_realloc_0_nonnull = yes; then :
6076
6077$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6078
6079else
6080  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6081
6082   case " $LIBOBJS " in
6083  *" realloc.$ac_objext "* ) ;;
6084  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6085 ;;
6086esac
6087
6088
6089$as_echo "#define realloc rpl_realloc" >>confdefs.h
6090
6091fi
6092
6093
6094for ac_func in alarm bzero clock_gettime mach_timebase_info ftruncate gethostname gethrtime gettimeofday memset select socket strerror strncasecmp strptime tzset
6095do :
6096  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6097ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6098if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6099  cat >>confdefs.h <<_ACEOF
6100#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6101_ACEOF
6102
6103fi
6104done
6105
6106
6107
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsystre" >&5
6109$as_echo_n "checking for main in -lsystre... " >&6; }
6110if ${ac_cv_lib_systre_main+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  ac_check_lib_save_LIBS=$LIBS
6114LIBS="-lsystre  $LIBS"
6115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117
6118
6119int
6120main ()
6121{
6122return main ();
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_link "$LINENO"; then :
6128  ac_cv_lib_systre_main=yes
6129else
6130  ac_cv_lib_systre_main=no
6131fi
6132rm -f core conftest.err conftest.$ac_objext \
6133    conftest$ac_exeext conftest.$ac_ext
6134LIBS=$ac_check_lib_save_LIBS
6135fi
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systre_main" >&5
6137$as_echo "$ac_cv_lib_systre_main" >&6; }
6138if test "x$ac_cv_lib_systre_main" = xyes; then :
6139  cat >>confdefs.h <<_ACEOF
6140#define HAVE_LIBSYSTRE 1
6141_ACEOF
6142
6143  LIBS="-lsystre $LIBS"
6144
6145fi
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
6148$as_echo_n "checking for main in -lcrypt... " >&6; }
6149if ${ac_cv_lib_crypt_main+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  ac_check_lib_save_LIBS=$LIBS
6153LIBS="-lcrypt  $LIBS"
6154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156
6157
6158int
6159main ()
6160{
6161return main ();
6162  ;
6163  return 0;
6164}
6165_ACEOF
6166if ac_fn_c_try_link "$LINENO"; then :
6167  ac_cv_lib_crypt_main=yes
6168else
6169  ac_cv_lib_crypt_main=no
6170fi
6171rm -f core conftest.err conftest.$ac_objext \
6172    conftest$ac_exeext conftest.$ac_ext
6173LIBS=$ac_check_lib_save_LIBS
6174fi
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
6176$as_echo "$ac_cv_lib_crypt_main" >&6; }
6177if test "x$ac_cv_lib_crypt_main" = xyes; then :
6178  cat >>confdefs.h <<_ACEOF
6179#define HAVE_LIBCRYPT 1
6180_ACEOF
6181
6182  LIBS="-lcrypt $LIBS"
6183
6184fi
6185
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
6187$as_echo_n "checking for main in -lrt... " >&6; }
6188if ${ac_cv_lib_rt_main+:} false; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  ac_check_lib_save_LIBS=$LIBS
6192LIBS="-lrt  $LIBS"
6193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195
6196
6197int
6198main ()
6199{
6200return main ();
6201  ;
6202  return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_link "$LINENO"; then :
6206  ac_cv_lib_rt_main=yes
6207else
6208  ac_cv_lib_rt_main=no
6209fi
6210rm -f core conftest.err conftest.$ac_objext \
6211    conftest$ac_exeext conftest.$ac_ext
6212LIBS=$ac_check_lib_save_LIBS
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
6215$as_echo "$ac_cv_lib_rt_main" >&6; }
6216if test "x$ac_cv_lib_rt_main" = xyes; then :
6217  cat >>confdefs.h <<_ACEOF
6218#define HAVE_LIBRT 1
6219_ACEOF
6220
6221  LIBS="-lrt $LIBS"
6222
6223fi
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6226$as_echo_n "checking for main in -lpthread... " >&6; }
6227if ${ac_cv_lib_pthread_main+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  ac_check_lib_save_LIBS=$LIBS
6231LIBS="-lpthread  $LIBS"
6232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h.  */
6234
6235
6236int
6237main ()
6238{
6239return main ();
6240  ;
6241  return 0;
6242}
6243_ACEOF
6244if ac_fn_c_try_link "$LINENO"; then :
6245  ac_cv_lib_pthread_main=yes
6246else
6247  ac_cv_lib_pthread_main=no
6248fi
6249rm -f core conftest.err conftest.$ac_objext \
6250    conftest$ac_exeext conftest.$ac_ext
6251LIBS=$ac_check_lib_save_LIBS
6252fi
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
6254$as_echo "$ac_cv_lib_pthread_main" >&6; }
6255if test "x$ac_cv_lib_pthread_main" = xyes; then :
6256  cat >>confdefs.h <<_ACEOF
6257#define HAVE_LIBPTHREAD 1
6258_ACEOF
6259
6260  LIBS="-lpthread $LIBS"
6261
6262fi
6263
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
6265$as_echo_n "checking for main in -lnsl... " >&6; }
6266if ${ac_cv_lib_nsl_main+:} false; then :
6267  $as_echo_n "(cached) " >&6
6268else
6269  ac_check_lib_save_LIBS=$LIBS
6270LIBS="-lnsl  $LIBS"
6271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273
6274
6275int
6276main ()
6277{
6278return main ();
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283if ac_fn_c_try_link "$LINENO"; then :
6284  ac_cv_lib_nsl_main=yes
6285else
6286  ac_cv_lib_nsl_main=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext \
6289    conftest$ac_exeext conftest.$ac_ext
6290LIBS=$ac_check_lib_save_LIBS
6291fi
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
6293$as_echo "$ac_cv_lib_nsl_main" >&6; }
6294if test "x$ac_cv_lib_nsl_main" = xyes; then :
6295  cat >>confdefs.h <<_ACEOF
6296#define HAVE_LIBNSL 1
6297_ACEOF
6298
6299  LIBS="-lnsl $LIBS"
6300
6301fi
6302
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
6304$as_echo_n "checking for main in -lsocket... " >&6; }
6305if ${ac_cv_lib_socket_main+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  ac_check_lib_save_LIBS=$LIBS
6309LIBS="-lsocket  $LIBS"
6310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h.  */
6312
6313
6314int
6315main ()
6316{
6317return main ();
6318  ;
6319  return 0;
6320}
6321_ACEOF
6322if ac_fn_c_try_link "$LINENO"; then :
6323  ac_cv_lib_socket_main=yes
6324else
6325  ac_cv_lib_socket_main=no
6326fi
6327rm -f core conftest.err conftest.$ac_objext \
6328    conftest$ac_exeext conftest.$ac_ext
6329LIBS=$ac_check_lib_save_LIBS
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
6332$as_echo "$ac_cv_lib_socket_main" >&6; }
6333if test "x$ac_cv_lib_socket_main" = xyes; then :
6334  cat >>confdefs.h <<_ACEOF
6335#define HAVE_LIBSOCKET 1
6336_ACEOF
6337
6338  LIBS="-lsocket $LIBS"
6339
6340fi
6341
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
6343$as_echo_n "checking for main in -lcurses... " >&6; }
6344if ${ac_cv_lib_curses_main+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  ac_check_lib_save_LIBS=$LIBS
6348LIBS="-lcurses  $LIBS"
6349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351
6352
6353int
6354main ()
6355{
6356return main ();
6357  ;
6358  return 0;
6359}
6360_ACEOF
6361if ac_fn_c_try_link "$LINENO"; then :
6362  ac_cv_lib_curses_main=yes
6363else
6364  ac_cv_lib_curses_main=no
6365fi
6366rm -f core conftest.err conftest.$ac_objext \
6367    conftest$ac_exeext conftest.$ac_ext
6368LIBS=$ac_check_lib_save_LIBS
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
6371$as_echo "$ac_cv_lib_curses_main" >&6; }
6372if test "x$ac_cv_lib_curses_main" = xyes; then :
6373  cat >>confdefs.h <<_ACEOF
6374#define HAVE_LIBCURSES 1
6375_ACEOF
6376
6377  LIBS="-lcurses $LIBS"
6378
6379fi
6380
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
6382$as_echo_n "checking for main in -lncurses... " >&6; }
6383if ${ac_cv_lib_ncurses_main+:} false; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  ac_check_lib_save_LIBS=$LIBS
6387LIBS="-lncurses  $LIBS"
6388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h.  */
6390
6391
6392int
6393main ()
6394{
6395return main ();
6396  ;
6397  return 0;
6398}
6399_ACEOF
6400if ac_fn_c_try_link "$LINENO"; then :
6401  ac_cv_lib_ncurses_main=yes
6402else
6403  ac_cv_lib_ncurses_main=no
6404fi
6405rm -f core conftest.err conftest.$ac_objext \
6406    conftest$ac_exeext conftest.$ac_ext
6407LIBS=$ac_check_lib_save_LIBS
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
6410$as_echo "$ac_cv_lib_ncurses_main" >&6; }
6411if test "x$ac_cv_lib_ncurses_main" = xyes; then :
6412  cat >>confdefs.h <<_ACEOF
6413#define HAVE_LIBNCURSES 1
6414_ACEOF
6415
6416  LIBS="-lncurses $LIBS"
6417
6418fi
6419
6420
6421
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
6423$as_echo_n "checking for main in -lws2_32... " >&6; }
6424if ${ac_cv_lib_ws2_32_main+:} false; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  ac_check_lib_save_LIBS=$LIBS
6428LIBS="-lws2_32  $LIBS"
6429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431
6432
6433int
6434main ()
6435{
6436return main ();
6437  ;
6438  return 0;
6439}
6440_ACEOF
6441if ac_fn_c_try_link "$LINENO"; then :
6442  ac_cv_lib_ws2_32_main=yes
6443else
6444  ac_cv_lib_ws2_32_main=no
6445fi
6446rm -f core conftest.err conftest.$ac_objext \
6447    conftest$ac_exeext conftest.$ac_ext
6448LIBS=$ac_check_lib_save_LIBS
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
6451$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
6452if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
6453  cat >>confdefs.h <<_ACEOF
6454#define HAVE_LIBWS2_32 1
6455_ACEOF
6456
6457  LIBS="-lws2_32 $LIBS"
6458
6459fi
6460
6461# libsystre is used for regcom / regexec
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsystre" >&5
6463$as_echo_n "checking for main in -lsystre... " >&6; }
6464if ${ac_cv_lib_systre_main+:} false; then :
6465  $as_echo_n "(cached) " >&6
6466else
6467  ac_check_lib_save_LIBS=$LIBS
6468LIBS="-lsystre  $LIBS"
6469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470/* end confdefs.h.  */
6471
6472
6473int
6474main ()
6475{
6476return main ();
6477  ;
6478  return 0;
6479}
6480_ACEOF
6481if ac_fn_c_try_link "$LINENO"; then :
6482  ac_cv_lib_systre_main=yes
6483else
6484  ac_cv_lib_systre_main=no
6485fi
6486rm -f core conftest.err conftest.$ac_objext \
6487    conftest$ac_exeext conftest.$ac_ext
6488LIBS=$ac_check_lib_save_LIBS
6489fi
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systre_main" >&5
6491$as_echo "$ac_cv_lib_systre_main" >&6; }
6492if test "x$ac_cv_lib_systre_main" = xyes; then :
6493  cat >>confdefs.h <<_ACEOF
6494#define HAVE_LIBSYSTRE 1
6495_ACEOF
6496
6497  LIBS="-lsystre $LIBS"
6498
6499fi
6500
6501
6502case `pwd` in
6503  *\ * | *\	*)
6504    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6505$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6506esac
6507
6508
6509
6510macro_version='2.4.6'
6511macro_revision='2.4.6'
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525ltmain=$ac_aux_dir/ltmain.sh
6526
6527# Backslashify metacharacters that are still active within
6528# double-quoted strings.
6529sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6530
6531# Same as above, but do not quote variable references.
6532double_quote_subst='s/\(["`\\]\)/\\\1/g'
6533
6534# Sed substitution to delay expansion of an escaped shell variable in a
6535# double_quote_subst'ed string.
6536delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6537
6538# Sed substitution to delay expansion of an escaped single quote.
6539delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6540
6541# Sed substitution to avoid accidental globbing in evaled expressions
6542no_glob_subst='s/\*/\\\*/g'
6543
6544ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6545ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6546ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6547
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6549$as_echo_n "checking how to print strings... " >&6; }
6550# Test print first, because it will be a builtin if present.
6551if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6552   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6553  ECHO='print -r --'
6554elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6555  ECHO='printf %s\n'
6556else
6557  # Use this function as a fallback that always works.
6558  func_fallback_echo ()
6559  {
6560    eval 'cat <<_LTECHO_EOF
6561$1
6562_LTECHO_EOF'
6563  }
6564  ECHO='func_fallback_echo'
6565fi
6566
6567# func_echo_all arg...
6568# Invoke $ECHO with all args, space-separated.
6569func_echo_all ()
6570{
6571    $ECHO ""
6572}
6573
6574case $ECHO in
6575  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6576$as_echo "printf" >&6; } ;;
6577  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6578$as_echo "print -r" >&6; } ;;
6579  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6580$as_echo "cat" >&6; } ;;
6581esac
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6597$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6598if ${ac_cv_path_SED+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6602     for ac_i in 1 2 3 4 5 6 7; do
6603       ac_script="$ac_script$as_nl$ac_script"
6604     done
6605     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6606     { ac_script=; unset ac_script;}
6607     if test -z "$SED"; then
6608  ac_path_SED_found=false
6609  # Loop through the user's path and test for each of PROGNAME-LIST
6610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613  IFS=$as_save_IFS
6614  test -z "$as_dir" && as_dir=.
6615    for ac_prog in sed gsed; do
6616    for ac_exec_ext in '' $ac_executable_extensions; do
6617      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6618      as_fn_executable_p "$ac_path_SED" || continue
6619# Check for GNU ac_path_SED and select it if it is found.
6620  # Check for GNU $ac_path_SED
6621case `"$ac_path_SED" --version 2>&1` in
6622*GNU*)
6623  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6624*)
6625  ac_count=0
6626  $as_echo_n 0123456789 >"conftest.in"
6627  while :
6628  do
6629    cat "conftest.in" "conftest.in" >"conftest.tmp"
6630    mv "conftest.tmp" "conftest.in"
6631    cp "conftest.in" "conftest.nl"
6632    $as_echo '' >> "conftest.nl"
6633    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6634    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6635    as_fn_arith $ac_count + 1 && ac_count=$as_val
6636    if test $ac_count -gt ${ac_path_SED_max-0}; then
6637      # Best one so far, save it but keep looking for a better one
6638      ac_cv_path_SED="$ac_path_SED"
6639      ac_path_SED_max=$ac_count
6640    fi
6641    # 10*(2^10) chars as input seems more than enough
6642    test $ac_count -gt 10 && break
6643  done
6644  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6645esac
6646
6647      $ac_path_SED_found && break 3
6648    done
6649  done
6650  done
6651IFS=$as_save_IFS
6652  if test -z "$ac_cv_path_SED"; then
6653    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6654  fi
6655else
6656  ac_cv_path_SED=$SED
6657fi
6658
6659fi
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6661$as_echo "$ac_cv_path_SED" >&6; }
6662 SED="$ac_cv_path_SED"
6663  rm -f conftest.sed
6664
6665test -z "$SED" && SED=sed
6666Xsed="$SED -e 1s/^X//"
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6679$as_echo_n "checking for fgrep... " >&6; }
6680if ${ac_cv_path_FGREP+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6684   then ac_cv_path_FGREP="$GREP -F"
6685   else
6686     if test -z "$FGREP"; then
6687  ac_path_FGREP_found=false
6688  # Loop through the user's path and test for each of PROGNAME-LIST
6689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6691do
6692  IFS=$as_save_IFS
6693  test -z "$as_dir" && as_dir=.
6694    for ac_prog in fgrep; do
6695    for ac_exec_ext in '' $ac_executable_extensions; do
6696      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6697      as_fn_executable_p "$ac_path_FGREP" || continue
6698# Check for GNU ac_path_FGREP and select it if it is found.
6699  # Check for GNU $ac_path_FGREP
6700case `"$ac_path_FGREP" --version 2>&1` in
6701*GNU*)
6702  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6703*)
6704  ac_count=0
6705  $as_echo_n 0123456789 >"conftest.in"
6706  while :
6707  do
6708    cat "conftest.in" "conftest.in" >"conftest.tmp"
6709    mv "conftest.tmp" "conftest.in"
6710    cp "conftest.in" "conftest.nl"
6711    $as_echo 'FGREP' >> "conftest.nl"
6712    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6713    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6714    as_fn_arith $ac_count + 1 && ac_count=$as_val
6715    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6716      # Best one so far, save it but keep looking for a better one
6717      ac_cv_path_FGREP="$ac_path_FGREP"
6718      ac_path_FGREP_max=$ac_count
6719    fi
6720    # 10*(2^10) chars as input seems more than enough
6721    test $ac_count -gt 10 && break
6722  done
6723  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6724esac
6725
6726      $ac_path_FGREP_found && break 3
6727    done
6728  done
6729  done
6730IFS=$as_save_IFS
6731  if test -z "$ac_cv_path_FGREP"; then
6732    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6733  fi
6734else
6735  ac_cv_path_FGREP=$FGREP
6736fi
6737
6738   fi
6739fi
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6741$as_echo "$ac_cv_path_FGREP" >&6; }
6742 FGREP="$ac_cv_path_FGREP"
6743
6744
6745test -z "$GREP" && GREP=grep
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765# Check whether --with-gnu-ld was given.
6766if test "${with_gnu_ld+set}" = set; then :
6767  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6768else
6769  with_gnu_ld=no
6770fi
6771
6772ac_prog=ld
6773if test yes = "$GCC"; then
6774  # Check if gcc -print-prog-name=ld gives a path.
6775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6776$as_echo_n "checking for ld used by $CC... " >&6; }
6777  case $host in
6778  *-*-mingw*)
6779    # gcc leaves a trailing carriage return, which upsets mingw
6780    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6781  *)
6782    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6783  esac
6784  case $ac_prog in
6785    # Accept absolute paths.
6786    [\\/]* | ?:[\\/]*)
6787      re_direlt='/[^/][^/]*/\.\./'
6788      # Canonicalize the pathname of ld
6789      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6790      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6791	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6792      done
6793      test -z "$LD" && LD=$ac_prog
6794      ;;
6795  "")
6796    # If it fails, then pretend we aren't using GCC.
6797    ac_prog=ld
6798    ;;
6799  *)
6800    # If it is relative, then search for the first ld in PATH.
6801    with_gnu_ld=unknown
6802    ;;
6803  esac
6804elif test yes = "$with_gnu_ld"; then
6805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6806$as_echo_n "checking for GNU ld... " >&6; }
6807else
6808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6809$as_echo_n "checking for non-GNU ld... " >&6; }
6810fi
6811if ${lt_cv_path_LD+:} false; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  if test -z "$LD"; then
6815  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6816  for ac_dir in $PATH; do
6817    IFS=$lt_save_ifs
6818    test -z "$ac_dir" && ac_dir=.
6819    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6820      lt_cv_path_LD=$ac_dir/$ac_prog
6821      # Check to see if the program is GNU ld.  I'd rather use --version,
6822      # but apparently some variants of GNU ld only accept -v.
6823      # Break only if it was the GNU/non-GNU ld that we prefer.
6824      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6825      *GNU* | *'with BFD'*)
6826	test no != "$with_gnu_ld" && break
6827	;;
6828      *)
6829	test yes != "$with_gnu_ld" && break
6830	;;
6831      esac
6832    fi
6833  done
6834  IFS=$lt_save_ifs
6835else
6836  lt_cv_path_LD=$LD # Let the user override the test with a path.
6837fi
6838fi
6839
6840LD=$lt_cv_path_LD
6841if test -n "$LD"; then
6842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6843$as_echo "$LD" >&6; }
6844else
6845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846$as_echo "no" >&6; }
6847fi
6848test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6850$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6851if ${lt_cv_prog_gnu_ld+:} false; then :
6852  $as_echo_n "(cached) " >&6
6853else
6854  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6855case `$LD -v 2>&1 </dev/null` in
6856*GNU* | *'with BFD'*)
6857  lt_cv_prog_gnu_ld=yes
6858  ;;
6859*)
6860  lt_cv_prog_gnu_ld=no
6861  ;;
6862esac
6863fi
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6865$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6866with_gnu_ld=$lt_cv_prog_gnu_ld
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6877$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6878if ${lt_cv_path_NM+:} false; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  if test -n "$NM"; then
6882  # Let the user override the test.
6883  lt_cv_path_NM=$NM
6884else
6885  lt_nm_to_check=${ac_tool_prefix}nm
6886  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6887    lt_nm_to_check="$lt_nm_to_check nm"
6888  fi
6889  for lt_tmp_nm in $lt_nm_to_check; do
6890    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6891    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6892      IFS=$lt_save_ifs
6893      test -z "$ac_dir" && ac_dir=.
6894      tmp_nm=$ac_dir/$lt_tmp_nm
6895      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6896	# Check to see if the nm accepts a BSD-compat flag.
6897	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6898	#   nm: unknown option "B" ignored
6899	# Tru64's nm complains that /dev/null is an invalid object file
6900	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6901	case $build_os in
6902	mingw*) lt_bad_file=conftest.nm/nofile ;;
6903	*) lt_bad_file=/dev/null ;;
6904	esac
6905	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6906	*$lt_bad_file* | *'Invalid file or object type'*)
6907	  lt_cv_path_NM="$tmp_nm -B"
6908	  break 2
6909	  ;;
6910	*)
6911	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6912	  */dev/null*)
6913	    lt_cv_path_NM="$tmp_nm -p"
6914	    break 2
6915	    ;;
6916	  *)
6917	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6918	    continue # so that we can try to find one that supports BSD flags
6919	    ;;
6920	  esac
6921	  ;;
6922	esac
6923      fi
6924    done
6925    IFS=$lt_save_ifs
6926  done
6927  : ${lt_cv_path_NM=no}
6928fi
6929fi
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6931$as_echo "$lt_cv_path_NM" >&6; }
6932if test no != "$lt_cv_path_NM"; then
6933  NM=$lt_cv_path_NM
6934else
6935  # Didn't find any BSD compatible name lister, look for dumpbin.
6936  if test -n "$DUMPBIN"; then :
6937    # Let the user override the test.
6938  else
6939    if test -n "$ac_tool_prefix"; then
6940  for ac_prog in dumpbin "link -dump"
6941  do
6942    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945$as_echo_n "checking for $ac_word... " >&6; }
6946if ${ac_cv_prog_DUMPBIN+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  if test -n "$DUMPBIN"; then
6950  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955  IFS=$as_save_IFS
6956  test -z "$as_dir" && as_dir=.
6957    for ac_exec_ext in '' $ac_executable_extensions; do
6958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961    break 2
6962  fi
6963done
6964  done
6965IFS=$as_save_IFS
6966
6967fi
6968fi
6969DUMPBIN=$ac_cv_prog_DUMPBIN
6970if test -n "$DUMPBIN"; then
6971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6972$as_echo "$DUMPBIN" >&6; }
6973else
6974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975$as_echo "no" >&6; }
6976fi
6977
6978
6979    test -n "$DUMPBIN" && break
6980  done
6981fi
6982if test -z "$DUMPBIN"; then
6983  ac_ct_DUMPBIN=$DUMPBIN
6984  for ac_prog in dumpbin "link -dump"
6985do
6986  # Extract the first word of "$ac_prog", so it can be a program name with args.
6987set dummy $ac_prog; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
6990if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  if test -n "$ac_ct_DUMPBIN"; then
6994  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  test -z "$as_dir" && as_dir=.
7001    for ac_exec_ext in '' $ac_executable_extensions; do
7002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005    break 2
7006  fi
7007done
7008  done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7014if test -n "$ac_ct_DUMPBIN"; then
7015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7016$as_echo "$ac_ct_DUMPBIN" >&6; }
7017else
7018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022
7023  test -n "$ac_ct_DUMPBIN" && break
7024done
7025
7026  if test "x$ac_ct_DUMPBIN" = x; then
7027    DUMPBIN=":"
7028  else
7029    case $cross_compiling:$ac_tool_warned in
7030yes:)
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033ac_tool_warned=yes ;;
7034esac
7035    DUMPBIN=$ac_ct_DUMPBIN
7036  fi
7037fi
7038
7039    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7040    *COFF*)
7041      DUMPBIN="$DUMPBIN -symbols -headers"
7042      ;;
7043    *)
7044      DUMPBIN=:
7045      ;;
7046    esac
7047  fi
7048
7049  if test : != "$DUMPBIN"; then
7050    NM=$DUMPBIN
7051  fi
7052fi
7053test -z "$NM" && NM=nm
7054
7055
7056
7057
7058
7059
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7061$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7062if ${lt_cv_nm_interface+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  lt_cv_nm_interface="BSD nm"
7066  echo "int some_variable = 0;" > conftest.$ac_ext
7067  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7068  (eval "$ac_compile" 2>conftest.err)
7069  cat conftest.err >&5
7070  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7071  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7072  cat conftest.err >&5
7073  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7074  cat conftest.out >&5
7075  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7076    lt_cv_nm_interface="MS dumpbin"
7077  fi
7078  rm -f conftest*
7079fi
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7081$as_echo "$lt_cv_nm_interface" >&6; }
7082
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7084$as_echo_n "checking whether ln -s works... " >&6; }
7085LN_S=$as_ln_s
7086if test "$LN_S" = "ln -s"; then
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7088$as_echo "yes" >&6; }
7089else
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7091$as_echo "no, using $LN_S" >&6; }
7092fi
7093
7094# find the maximum length of command line arguments
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7096$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7097if ${lt_cv_sys_max_cmd_len+:} false; then :
7098  $as_echo_n "(cached) " >&6
7099else
7100    i=0
7101  teststring=ABCD
7102
7103  case $build_os in
7104  msdosdjgpp*)
7105    # On DJGPP, this test can blow up pretty badly due to problems in libc
7106    # (any single argument exceeding 2000 bytes causes a buffer overrun
7107    # during glob expansion).  Even if it were fixed, the result of this
7108    # check would be larger than it should be.
7109    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7110    ;;
7111
7112  gnu*)
7113    # Under GNU Hurd, this test is not required because there is
7114    # no limit to the length of command line arguments.
7115    # Libtool will interpret -1 as no limit whatsoever
7116    lt_cv_sys_max_cmd_len=-1;
7117    ;;
7118
7119  cygwin* | mingw* | cegcc*)
7120    # On Win9x/ME, this test blows up -- it succeeds, but takes
7121    # about 5 minutes as the teststring grows exponentially.
7122    # Worse, since 9x/ME are not pre-emptively multitasking,
7123    # you end up with a "frozen" computer, even though with patience
7124    # the test eventually succeeds (with a max line length of 256k).
7125    # Instead, let's just punt: use the minimum linelength reported by
7126    # all of the supported platforms: 8192 (on NT/2K/XP).
7127    lt_cv_sys_max_cmd_len=8192;
7128    ;;
7129
7130  mint*)
7131    # On MiNT this can take a long time and run out of memory.
7132    lt_cv_sys_max_cmd_len=8192;
7133    ;;
7134
7135  amigaos*)
7136    # On AmigaOS with pdksh, this test takes hours, literally.
7137    # So we just punt and use a minimum line length of 8192.
7138    lt_cv_sys_max_cmd_len=8192;
7139    ;;
7140
7141  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7142    # This has been around since 386BSD, at least.  Likely further.
7143    if test -x /sbin/sysctl; then
7144      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7145    elif test -x /usr/sbin/sysctl; then
7146      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7147    else
7148      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7149    fi
7150    # And add a safety zone
7151    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7152    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7153    ;;
7154
7155  interix*)
7156    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7157    lt_cv_sys_max_cmd_len=196608
7158    ;;
7159
7160  os2*)
7161    # The test takes a long time on OS/2.
7162    lt_cv_sys_max_cmd_len=8192
7163    ;;
7164
7165  osf*)
7166    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7167    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7168    # nice to cause kernel panics so lets avoid the loop below.
7169    # First set a reasonable default.
7170    lt_cv_sys_max_cmd_len=16384
7171    #
7172    if test -x /sbin/sysconfig; then
7173      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7174        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7175      esac
7176    fi
7177    ;;
7178  sco3.2v5*)
7179    lt_cv_sys_max_cmd_len=102400
7180    ;;
7181  sysv5* | sco5v6* | sysv4.2uw2*)
7182    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7183    if test -n "$kargmax"; then
7184      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7185    else
7186      lt_cv_sys_max_cmd_len=32768
7187    fi
7188    ;;
7189  *)
7190    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7191    if test -n "$lt_cv_sys_max_cmd_len" && \
7192       test undefined != "$lt_cv_sys_max_cmd_len"; then
7193      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7194      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7195    else
7196      # Make teststring a little bigger before we do anything with it.
7197      # a 1K string should be a reasonable start.
7198      for i in 1 2 3 4 5 6 7 8; do
7199        teststring=$teststring$teststring
7200      done
7201      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7202      # If test is not a shell built-in, we'll probably end up computing a
7203      # maximum length that is only half of the actual maximum length, but
7204      # we can't tell.
7205      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7206	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7207	      test 17 != "$i" # 1/2 MB should be enough
7208      do
7209        i=`expr $i + 1`
7210        teststring=$teststring$teststring
7211      done
7212      # Only check the string length outside the loop.
7213      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7214      teststring=
7215      # Add a significant safety factor because C++ compilers can tack on
7216      # massive amounts of additional arguments before passing them to the
7217      # linker.  It appears as though 1/2 is a usable value.
7218      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7219    fi
7220    ;;
7221  esac
7222
7223fi
7224
7225if test -n "$lt_cv_sys_max_cmd_len"; then
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7227$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7228else
7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7230$as_echo "none" >&6; }
7231fi
7232max_cmd_len=$lt_cv_sys_max_cmd_len
7233
7234
7235
7236
7237
7238
7239: ${CP="cp -f"}
7240: ${MV="mv -f"}
7241: ${RM="rm -f"}
7242
7243if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7244  lt_unset=unset
7245else
7246  lt_unset=false
7247fi
7248
7249
7250
7251
7252
7253# test EBCDIC or ASCII
7254case `echo X|tr X '\101'` in
7255 A) # ASCII based system
7256    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7257  lt_SP2NL='tr \040 \012'
7258  lt_NL2SP='tr \015\012 \040\040'
7259  ;;
7260 *) # EBCDIC based system
7261  lt_SP2NL='tr \100 \n'
7262  lt_NL2SP='tr \r\n \100\100'
7263  ;;
7264esac
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7275$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7276if ${lt_cv_to_host_file_cmd+:} false; then :
7277  $as_echo_n "(cached) " >&6
7278else
7279  case $host in
7280  *-*-mingw* )
7281    case $build in
7282      *-*-mingw* ) # actually msys
7283        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7284        ;;
7285      *-*-cygwin* )
7286        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7287        ;;
7288      * ) # otherwise, assume *nix
7289        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7290        ;;
7291    esac
7292    ;;
7293  *-*-cygwin* )
7294    case $build in
7295      *-*-mingw* ) # actually msys
7296        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7297        ;;
7298      *-*-cygwin* )
7299        lt_cv_to_host_file_cmd=func_convert_file_noop
7300        ;;
7301      * ) # otherwise, assume *nix
7302        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7303        ;;
7304    esac
7305    ;;
7306  * ) # unhandled hosts (and "normal" native builds)
7307    lt_cv_to_host_file_cmd=func_convert_file_noop
7308    ;;
7309esac
7310
7311fi
7312
7313to_host_file_cmd=$lt_cv_to_host_file_cmd
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7315$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7316
7317
7318
7319
7320
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7322$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7323if ${lt_cv_to_tool_file_cmd+:} false; then :
7324  $as_echo_n "(cached) " >&6
7325else
7326  #assume ordinary cross tools, or native build.
7327lt_cv_to_tool_file_cmd=func_convert_file_noop
7328case $host in
7329  *-*-mingw* )
7330    case $build in
7331      *-*-mingw* ) # actually msys
7332        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7333        ;;
7334    esac
7335    ;;
7336esac
7337
7338fi
7339
7340to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7342$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7343
7344
7345
7346
7347
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7349$as_echo_n "checking for $LD option to reload object files... " >&6; }
7350if ${lt_cv_ld_reload_flag+:} false; then :
7351  $as_echo_n "(cached) " >&6
7352else
7353  lt_cv_ld_reload_flag='-r'
7354fi
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7356$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357reload_flag=$lt_cv_ld_reload_flag
7358case $reload_flag in
7359"" | " "*) ;;
7360*) reload_flag=" $reload_flag" ;;
7361esac
7362reload_cmds='$LD$reload_flag -o $output$reload_objs'
7363case $host_os in
7364  cygwin* | mingw* | pw32* | cegcc*)
7365    if test yes != "$GCC"; then
7366      reload_cmds=false
7367    fi
7368    ;;
7369  darwin*)
7370    if test yes = "$GCC"; then
7371      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7372    else
7373      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7374    fi
7375    ;;
7376esac
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386if test -n "$ac_tool_prefix"; then
7387  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7388set dummy ${ac_tool_prefix}objdump; ac_word=$2
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if ${ac_cv_prog_OBJDUMP+:} false; then :
7392  $as_echo_n "(cached) " >&6
7393else
7394  if test -n "$OBJDUMP"; then
7395  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402    for ac_exec_ext in '' $ac_executable_extensions; do
7403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409  done
7410IFS=$as_save_IFS
7411
7412fi
7413fi
7414OBJDUMP=$ac_cv_prog_OBJDUMP
7415if test -n "$OBJDUMP"; then
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7417$as_echo "$OBJDUMP" >&6; }
7418else
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
7421fi
7422
7423
7424fi
7425if test -z "$ac_cv_prog_OBJDUMP"; then
7426  ac_ct_OBJDUMP=$OBJDUMP
7427  # Extract the first word of "objdump", so it can be a program name with args.
7428set dummy objdump; ac_word=$2
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430$as_echo_n "checking for $ac_word... " >&6; }
7431if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  if test -n "$ac_ct_OBJDUMP"; then
7435  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7436else
7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440  IFS=$as_save_IFS
7441  test -z "$as_dir" && as_dir=.
7442    for ac_exec_ext in '' $ac_executable_extensions; do
7443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446    break 2
7447  fi
7448done
7449  done
7450IFS=$as_save_IFS
7451
7452fi
7453fi
7454ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7455if test -n "$ac_ct_OBJDUMP"; then
7456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7457$as_echo "$ac_ct_OBJDUMP" >&6; }
7458else
7459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460$as_echo "no" >&6; }
7461fi
7462
7463  if test "x$ac_ct_OBJDUMP" = x; then
7464    OBJDUMP="false"
7465  else
7466    case $cross_compiling:$ac_tool_warned in
7467yes:)
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7470ac_tool_warned=yes ;;
7471esac
7472    OBJDUMP=$ac_ct_OBJDUMP
7473  fi
7474else
7475  OBJDUMP="$ac_cv_prog_OBJDUMP"
7476fi
7477
7478test -z "$OBJDUMP" && OBJDUMP=objdump
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7489$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7490if ${lt_cv_deplibs_check_method+:} false; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  lt_cv_file_magic_cmd='$MAGIC_CMD'
7494lt_cv_file_magic_test_file=
7495lt_cv_deplibs_check_method='unknown'
7496# Need to set the preceding variable on all platforms that support
7497# interlibrary dependencies.
7498# 'none' -- dependencies not supported.
7499# 'unknown' -- same as none, but documents that we really don't know.
7500# 'pass_all' -- all dependencies passed with no checks.
7501# 'test_compile' -- check by making test program.
7502# 'file_magic [[regex]]' -- check by looking for files in library path
7503# that responds to the $file_magic_cmd with a given extended regex.
7504# If you have 'file' or equivalent on your system and you're not sure
7505# whether 'pass_all' will *always* work, you probably want this one.
7506
7507case $host_os in
7508aix[4-9]*)
7509  lt_cv_deplibs_check_method=pass_all
7510  ;;
7511
7512beos*)
7513  lt_cv_deplibs_check_method=pass_all
7514  ;;
7515
7516bsdi[45]*)
7517  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7518  lt_cv_file_magic_cmd='/usr/bin/file -L'
7519  lt_cv_file_magic_test_file=/shlib/libc.so
7520  ;;
7521
7522cygwin*)
7523  # func_win32_libid is a shell function defined in ltmain.sh
7524  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7525  lt_cv_file_magic_cmd='func_win32_libid'
7526  ;;
7527
7528mingw* | pw32*)
7529  # Base MSYS/MinGW do not provide the 'file' command needed by
7530  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7531  # unless we find 'file', for example because we are cross-compiling.
7532  if ( file / ) >/dev/null 2>&1; then
7533    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7534    lt_cv_file_magic_cmd='func_win32_libid'
7535  else
7536    # Keep this pattern in sync with the one in func_win32_libid.
7537    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7538    lt_cv_file_magic_cmd='$OBJDUMP -f'
7539  fi
7540  ;;
7541
7542cegcc*)
7543  # use the weaker test based on 'objdump'. See mingw*.
7544  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7545  lt_cv_file_magic_cmd='$OBJDUMP -f'
7546  ;;
7547
7548darwin* | rhapsody*)
7549  lt_cv_deplibs_check_method=pass_all
7550  ;;
7551
7552freebsd* | dragonfly*)
7553  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7554    case $host_cpu in
7555    i*86 )
7556      # Not sure whether the presence of OpenBSD here was a mistake.
7557      # Let's accept both of them until this is cleared up.
7558      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7559      lt_cv_file_magic_cmd=/usr/bin/file
7560      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7561      ;;
7562    esac
7563  else
7564    lt_cv_deplibs_check_method=pass_all
7565  fi
7566  ;;
7567
7568haiku*)
7569  lt_cv_deplibs_check_method=pass_all
7570  ;;
7571
7572hpux10.20* | hpux11*)
7573  lt_cv_file_magic_cmd=/usr/bin/file
7574  case $host_cpu in
7575  ia64*)
7576    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7577    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7578    ;;
7579  hppa*64*)
7580    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]'
7581    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7582    ;;
7583  *)
7584    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7585    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7586    ;;
7587  esac
7588  ;;
7589
7590interix[3-9]*)
7591  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7592  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7593  ;;
7594
7595irix5* | irix6* | nonstopux*)
7596  case $LD in
7597  *-32|*"-32 ") libmagic=32-bit;;
7598  *-n32|*"-n32 ") libmagic=N32;;
7599  *-64|*"-64 ") libmagic=64-bit;;
7600  *) libmagic=never-match;;
7601  esac
7602  lt_cv_deplibs_check_method=pass_all
7603  ;;
7604
7605# This must be glibc/ELF.
7606linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7607  lt_cv_deplibs_check_method=pass_all
7608  ;;
7609
7610netbsd*)
7611  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7612    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7613  else
7614    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7615  fi
7616  ;;
7617
7618newos6*)
7619  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7620  lt_cv_file_magic_cmd=/usr/bin/file
7621  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7622  ;;
7623
7624*nto* | *qnx*)
7625  lt_cv_deplibs_check_method=pass_all
7626  ;;
7627
7628openbsd* | bitrig*)
7629  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7630    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7631  else
7632    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7633  fi
7634  ;;
7635
7636osf3* | osf4* | osf5*)
7637  lt_cv_deplibs_check_method=pass_all
7638  ;;
7639
7640rdos*)
7641  lt_cv_deplibs_check_method=pass_all
7642  ;;
7643
7644solaris*)
7645  lt_cv_deplibs_check_method=pass_all
7646  ;;
7647
7648sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7649  lt_cv_deplibs_check_method=pass_all
7650  ;;
7651
7652sysv4 | sysv4.3*)
7653  case $host_vendor in
7654  motorola)
7655    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]'
7656    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7657    ;;
7658  ncr)
7659    lt_cv_deplibs_check_method=pass_all
7660    ;;
7661  sequent)
7662    lt_cv_file_magic_cmd='/bin/file'
7663    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7664    ;;
7665  sni)
7666    lt_cv_file_magic_cmd='/bin/file'
7667    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7668    lt_cv_file_magic_test_file=/lib/libc.so
7669    ;;
7670  siemens)
7671    lt_cv_deplibs_check_method=pass_all
7672    ;;
7673  pc)
7674    lt_cv_deplibs_check_method=pass_all
7675    ;;
7676  esac
7677  ;;
7678
7679tpf*)
7680  lt_cv_deplibs_check_method=pass_all
7681  ;;
7682os2*)
7683  lt_cv_deplibs_check_method=pass_all
7684  ;;
7685esac
7686
7687fi
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7689$as_echo "$lt_cv_deplibs_check_method" >&6; }
7690
7691file_magic_glob=
7692want_nocaseglob=no
7693if test "$build" = "$host"; then
7694  case $host_os in
7695  mingw* | pw32*)
7696    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7697      want_nocaseglob=yes
7698    else
7699      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7700    fi
7701    ;;
7702  esac
7703fi
7704
7705file_magic_cmd=$lt_cv_file_magic_cmd
7706deplibs_check_method=$lt_cv_deplibs_check_method
7707test -z "$deplibs_check_method" && deplibs_check_method=unknown
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730if test -n "$ac_tool_prefix"; then
7731  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7732set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734$as_echo_n "checking for $ac_word... " >&6; }
7735if ${ac_cv_prog_DLLTOOL+:} false; then :
7736  $as_echo_n "(cached) " >&6
7737else
7738  if test -n "$DLLTOOL"; then
7739  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7740else
7741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742for as_dir in $PATH
7743do
7744  IFS=$as_save_IFS
7745  test -z "$as_dir" && as_dir=.
7746    for ac_exec_ext in '' $ac_executable_extensions; do
7747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750    break 2
7751  fi
7752done
7753  done
7754IFS=$as_save_IFS
7755
7756fi
7757fi
7758DLLTOOL=$ac_cv_prog_DLLTOOL
7759if test -n "$DLLTOOL"; then
7760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7761$as_echo "$DLLTOOL" >&6; }
7762else
7763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764$as_echo "no" >&6; }
7765fi
7766
7767
7768fi
7769if test -z "$ac_cv_prog_DLLTOOL"; then
7770  ac_ct_DLLTOOL=$DLLTOOL
7771  # Extract the first word of "dlltool", so it can be a program name with args.
7772set dummy dlltool; ac_word=$2
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774$as_echo_n "checking for $ac_word... " >&6; }
7775if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7776  $as_echo_n "(cached) " >&6
7777else
7778  if test -n "$ac_ct_DLLTOOL"; then
7779  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7780else
7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784  IFS=$as_save_IFS
7785  test -z "$as_dir" && as_dir=.
7786    for ac_exec_ext in '' $ac_executable_extensions; do
7787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790    break 2
7791  fi
7792done
7793  done
7794IFS=$as_save_IFS
7795
7796fi
7797fi
7798ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7799if test -n "$ac_ct_DLLTOOL"; then
7800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7801$as_echo "$ac_ct_DLLTOOL" >&6; }
7802else
7803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804$as_echo "no" >&6; }
7805fi
7806
7807  if test "x$ac_ct_DLLTOOL" = x; then
7808    DLLTOOL="false"
7809  else
7810    case $cross_compiling:$ac_tool_warned in
7811yes:)
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7814ac_tool_warned=yes ;;
7815esac
7816    DLLTOOL=$ac_ct_DLLTOOL
7817  fi
7818else
7819  DLLTOOL="$ac_cv_prog_DLLTOOL"
7820fi
7821
7822test -z "$DLLTOOL" && DLLTOOL=dlltool
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7834$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7835if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7836  $as_echo_n "(cached) " >&6
7837else
7838  lt_cv_sharedlib_from_linklib_cmd='unknown'
7839
7840case $host_os in
7841cygwin* | mingw* | pw32* | cegcc*)
7842  # two different shell functions defined in ltmain.sh;
7843  # decide which one to use based on capabilities of $DLLTOOL
7844  case `$DLLTOOL --help 2>&1` in
7845  *--identify-strict*)
7846    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7847    ;;
7848  *)
7849    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7850    ;;
7851  esac
7852  ;;
7853*)
7854  # fallback: assume linklib IS sharedlib
7855  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7856  ;;
7857esac
7858
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7861$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7862sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7863test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7864
7865
7866
7867
7868
7869
7870
7871if test -n "$ac_tool_prefix"; then
7872  for ac_prog in ar
7873  do
7874    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877$as_echo_n "checking for $ac_word... " >&6; }
7878if ${ac_cv_prog_AR+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  if test -n "$AR"; then
7882  ac_cv_prog_AR="$AR" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887  IFS=$as_save_IFS
7888  test -z "$as_dir" && as_dir=.
7889    for ac_exec_ext in '' $ac_executable_extensions; do
7890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896  done
7897IFS=$as_save_IFS
7898
7899fi
7900fi
7901AR=$ac_cv_prog_AR
7902if test -n "$AR"; then
7903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7904$as_echo "$AR" >&6; }
7905else
7906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
7908fi
7909
7910
7911    test -n "$AR" && break
7912  done
7913fi
7914if test -z "$AR"; then
7915  ac_ct_AR=$AR
7916  for ac_prog in ar
7917do
7918  # Extract the first word of "$ac_prog", so it can be a program name with args.
7919set dummy $ac_prog; ac_word=$2
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921$as_echo_n "checking for $ac_word... " >&6; }
7922if ${ac_cv_prog_ac_ct_AR+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925  if test -n "$ac_ct_AR"; then
7926  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7927else
7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929for as_dir in $PATH
7930do
7931  IFS=$as_save_IFS
7932  test -z "$as_dir" && as_dir=.
7933    for ac_exec_ext in '' $ac_executable_extensions; do
7934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7935    ac_cv_prog_ac_ct_AR="$ac_prog"
7936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937    break 2
7938  fi
7939done
7940  done
7941IFS=$as_save_IFS
7942
7943fi
7944fi
7945ac_ct_AR=$ac_cv_prog_ac_ct_AR
7946if test -n "$ac_ct_AR"; then
7947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7948$as_echo "$ac_ct_AR" >&6; }
7949else
7950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951$as_echo "no" >&6; }
7952fi
7953
7954
7955  test -n "$ac_ct_AR" && break
7956done
7957
7958  if test "x$ac_ct_AR" = x; then
7959    AR="false"
7960  else
7961    case $cross_compiling:$ac_tool_warned in
7962yes:)
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965ac_tool_warned=yes ;;
7966esac
7967    AR=$ac_ct_AR
7968  fi
7969fi
7970
7971: ${AR=ar}
7972: ${AR_FLAGS=cru}
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7985$as_echo_n "checking for archiver @FILE support... " >&6; }
7986if ${lt_cv_ar_at_file+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  lt_cv_ar_at_file=no
7990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991/* end confdefs.h.  */
7992
7993int
7994main ()
7995{
7996
7997  ;
7998  return 0;
7999}
8000_ACEOF
8001if ac_fn_c_try_compile "$LINENO"; then :
8002  echo conftest.$ac_objext > conftest.lst
8003      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8004      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8005  (eval $lt_ar_try) 2>&5
8006  ac_status=$?
8007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8008  test $ac_status = 0; }
8009      if test 0 -eq "$ac_status"; then
8010	# Ensure the archiver fails upon bogus file names.
8011	rm -f conftest.$ac_objext libconftest.a
8012	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8013  (eval $lt_ar_try) 2>&5
8014  ac_status=$?
8015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8016  test $ac_status = 0; }
8017	if test 0 -ne "$ac_status"; then
8018          lt_cv_ar_at_file=@
8019        fi
8020      fi
8021      rm -f conftest.* libconftest.a
8022
8023fi
8024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025
8026fi
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8028$as_echo "$lt_cv_ar_at_file" >&6; }
8029
8030if test no = "$lt_cv_ar_at_file"; then
8031  archiver_list_spec=
8032else
8033  archiver_list_spec=$lt_cv_ar_at_file
8034fi
8035
8036
8037
8038
8039
8040
8041
8042if test -n "$ac_tool_prefix"; then
8043  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8044set dummy ${ac_tool_prefix}strip; ac_word=$2
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8046$as_echo_n "checking for $ac_word... " >&6; }
8047if ${ac_cv_prog_STRIP+:} false; then :
8048  $as_echo_n "(cached) " >&6
8049else
8050  if test -n "$STRIP"; then
8051  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8052else
8053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054for as_dir in $PATH
8055do
8056  IFS=$as_save_IFS
8057  test -z "$as_dir" && as_dir=.
8058    for ac_exec_ext in '' $ac_executable_extensions; do
8059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062    break 2
8063  fi
8064done
8065  done
8066IFS=$as_save_IFS
8067
8068fi
8069fi
8070STRIP=$ac_cv_prog_STRIP
8071if test -n "$STRIP"; then
8072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8073$as_echo "$STRIP" >&6; }
8074else
8075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076$as_echo "no" >&6; }
8077fi
8078
8079
8080fi
8081if test -z "$ac_cv_prog_STRIP"; then
8082  ac_ct_STRIP=$STRIP
8083  # Extract the first word of "strip", so it can be a program name with args.
8084set dummy strip; ac_word=$2
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086$as_echo_n "checking for $ac_word... " >&6; }
8087if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090  if test -n "$ac_ct_STRIP"; then
8091  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8092else
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096  IFS=$as_save_IFS
8097  test -z "$as_dir" && as_dir=.
8098    for ac_exec_ext in '' $ac_executable_extensions; do
8099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100    ac_cv_prog_ac_ct_STRIP="strip"
8101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102    break 2
8103  fi
8104done
8105  done
8106IFS=$as_save_IFS
8107
8108fi
8109fi
8110ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8111if test -n "$ac_ct_STRIP"; then
8112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8113$as_echo "$ac_ct_STRIP" >&6; }
8114else
8115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116$as_echo "no" >&6; }
8117fi
8118
8119  if test "x$ac_ct_STRIP" = x; then
8120    STRIP=":"
8121  else
8122    case $cross_compiling:$ac_tool_warned in
8123yes:)
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8126ac_tool_warned=yes ;;
8127esac
8128    STRIP=$ac_ct_STRIP
8129  fi
8130else
8131  STRIP="$ac_cv_prog_STRIP"
8132fi
8133
8134test -z "$STRIP" && STRIP=:
8135
8136
8137
8138
8139
8140
8141if test -n "$ac_tool_prefix"; then
8142  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8143set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145$as_echo_n "checking for $ac_word... " >&6; }
8146if ${ac_cv_prog_RANLIB+:} false; then :
8147  $as_echo_n "(cached) " >&6
8148else
8149  if test -n "$RANLIB"; then
8150  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8151else
8152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153for as_dir in $PATH
8154do
8155  IFS=$as_save_IFS
8156  test -z "$as_dir" && as_dir=.
8157    for ac_exec_ext in '' $ac_executable_extensions; do
8158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8159    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161    break 2
8162  fi
8163done
8164  done
8165IFS=$as_save_IFS
8166
8167fi
8168fi
8169RANLIB=$ac_cv_prog_RANLIB
8170if test -n "$RANLIB"; then
8171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8172$as_echo "$RANLIB" >&6; }
8173else
8174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175$as_echo "no" >&6; }
8176fi
8177
8178
8179fi
8180if test -z "$ac_cv_prog_RANLIB"; then
8181  ac_ct_RANLIB=$RANLIB
8182  # Extract the first word of "ranlib", so it can be a program name with args.
8183set dummy ranlib; ac_word=$2
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185$as_echo_n "checking for $ac_word... " >&6; }
8186if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  if test -n "$ac_ct_RANLIB"; then
8190  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8191else
8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193for as_dir in $PATH
8194do
8195  IFS=$as_save_IFS
8196  test -z "$as_dir" && as_dir=.
8197    for ac_exec_ext in '' $ac_executable_extensions; do
8198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199    ac_cv_prog_ac_ct_RANLIB="ranlib"
8200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201    break 2
8202  fi
8203done
8204  done
8205IFS=$as_save_IFS
8206
8207fi
8208fi
8209ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8210if test -n "$ac_ct_RANLIB"; then
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8212$as_echo "$ac_ct_RANLIB" >&6; }
8213else
8214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215$as_echo "no" >&6; }
8216fi
8217
8218  if test "x$ac_ct_RANLIB" = x; then
8219    RANLIB=":"
8220  else
8221    case $cross_compiling:$ac_tool_warned in
8222yes:)
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8225ac_tool_warned=yes ;;
8226esac
8227    RANLIB=$ac_ct_RANLIB
8228  fi
8229else
8230  RANLIB="$ac_cv_prog_RANLIB"
8231fi
8232
8233test -z "$RANLIB" && RANLIB=:
8234
8235
8236
8237
8238
8239
8240# Determine commands to create old-style static archives.
8241old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8242old_postinstall_cmds='chmod 644 $oldlib'
8243old_postuninstall_cmds=
8244
8245if test -n "$RANLIB"; then
8246  case $host_os in
8247  bitrig* | openbsd*)
8248    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8249    ;;
8250  *)
8251    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8252    ;;
8253  esac
8254  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8255fi
8256
8257case $host_os in
8258  darwin*)
8259    lock_old_archive_extraction=yes ;;
8260  *)
8261    lock_old_archive_extraction=no ;;
8262esac
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302# If no C compiler was specified, use CC.
8303LTCC=${LTCC-"$CC"}
8304
8305# If no C compiler flags were specified, use CFLAGS.
8306LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8307
8308# Allow CC to be a program name with arguments.
8309compiler=$CC
8310
8311
8312# Check for command to grab the raw symbol name followed by C symbol from nm.
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8314$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8315if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8316  $as_echo_n "(cached) " >&6
8317else
8318
8319# These are sane defaults that work on at least a few old systems.
8320# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8321
8322# Character class describing NM global symbol codes.
8323symcode='[BCDEGRST]'
8324
8325# Regexp to match symbols that can be accessed directly from C.
8326sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8327
8328# Define system-specific variables.
8329case $host_os in
8330aix*)
8331  symcode='[BCDT]'
8332  ;;
8333cygwin* | mingw* | pw32* | cegcc*)
8334  symcode='[ABCDGISTW]'
8335  ;;
8336hpux*)
8337  if test ia64 = "$host_cpu"; then
8338    symcode='[ABCDEGRST]'
8339  fi
8340  ;;
8341irix* | nonstopux*)
8342  symcode='[BCDEGRST]'
8343  ;;
8344osf*)
8345  symcode='[BCDEGQRST]'
8346  ;;
8347solaris*)
8348  symcode='[BDRT]'
8349  ;;
8350sco3.2v5*)
8351  symcode='[DT]'
8352  ;;
8353sysv4.2uw2*)
8354  symcode='[DT]'
8355  ;;
8356sysv5* | sco5v6* | unixware* | OpenUNIX*)
8357  symcode='[ABDT]'
8358  ;;
8359sysv4)
8360  symcode='[DFNSTU]'
8361  ;;
8362esac
8363
8364# If we're using GNU nm, then use its standard symbol codes.
8365case `$NM -V 2>&1` in
8366*GNU* | *'with BFD'*)
8367  symcode='[ABCDGIRSTW]' ;;
8368esac
8369
8370if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8371  # Gets list of data symbols to import.
8372  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8373  # Adjust the below global symbol transforms to fixup imported variables.
8374  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8375  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8376  lt_c_name_lib_hook="\
8377  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8378  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8379else
8380  # Disable hooks by default.
8381  lt_cv_sys_global_symbol_to_import=
8382  lt_cdecl_hook=
8383  lt_c_name_hook=
8384  lt_c_name_lib_hook=
8385fi
8386
8387# Transform an extracted symbol line into a proper C declaration.
8388# Some systems (esp. on ia64) link data and code symbols differently,
8389# so use this general approach.
8390lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8391$lt_cdecl_hook\
8392" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8393" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8394
8395# Transform an extracted symbol line into symbol name and symbol address
8396lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8397$lt_c_name_hook\
8398" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8399" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8400
8401# Transform an extracted symbol line into symbol name with lib prefix and
8402# symbol address.
8403lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8404$lt_c_name_lib_hook\
8405" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8406" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8407" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8408
8409# Handle CRLF in mingw tool chain
8410opt_cr=
8411case $build_os in
8412mingw*)
8413  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8414  ;;
8415esac
8416
8417# Try without a prefix underscore, then with it.
8418for ac_symprfx in "" "_"; do
8419
8420  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8421  symxfrm="\\1 $ac_symprfx\\2 \\2"
8422
8423  # Write the raw and C identifiers.
8424  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8425    # Fake it for dumpbin and say T for any non-static function,
8426    # D for any global variable and I for any imported variable.
8427    # Also find C++ and __fastcall symbols from MSVC++,
8428    # which start with @ or ?.
8429    lt_cv_sys_global_symbol_pipe="$AWK '"\
8430"     {last_section=section; section=\$ 3};"\
8431"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8432"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8433"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8434"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8435"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8436"     \$ 0!~/External *\|/{next};"\
8437"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8438"     {if(hide[section]) next};"\
8439"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8440"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8441"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8442"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8443"     ' prfx=^$ac_symprfx"
8444  else
8445    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8446  fi
8447  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8448
8449  # Check to see that the pipe works correctly.
8450  pipe_works=no
8451
8452  rm -f conftest*
8453  cat > conftest.$ac_ext <<_LT_EOF
8454#ifdef __cplusplus
8455extern "C" {
8456#endif
8457char nm_test_var;
8458void nm_test_func(void);
8459void nm_test_func(void){}
8460#ifdef __cplusplus
8461}
8462#endif
8463int main(){nm_test_var='a';nm_test_func();return(0);}
8464_LT_EOF
8465
8466  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8467  (eval $ac_compile) 2>&5
8468  ac_status=$?
8469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8470  test $ac_status = 0; }; then
8471    # Now try to grab the symbols.
8472    nlist=conftest.nm
8473    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8474  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8475  ac_status=$?
8476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8477  test $ac_status = 0; } && test -s "$nlist"; then
8478      # Try sorting and uniquifying the output.
8479      if sort "$nlist" | uniq > "$nlist"T; then
8480	mv -f "$nlist"T "$nlist"
8481      else
8482	rm -f "$nlist"T
8483      fi
8484
8485      # Make sure that we snagged all the symbols we need.
8486      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8487	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8488	  cat <<_LT_EOF > conftest.$ac_ext
8489/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8490#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8491/* DATA imports from DLLs on WIN32 can't be const, because runtime
8492   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8493# define LT_DLSYM_CONST
8494#elif defined __osf__
8495/* This system does not cope well with relocations in const data.  */
8496# define LT_DLSYM_CONST
8497#else
8498# define LT_DLSYM_CONST const
8499#endif
8500
8501#ifdef __cplusplus
8502extern "C" {
8503#endif
8504
8505_LT_EOF
8506	  # Now generate the symbol file.
8507	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8508
8509	  cat <<_LT_EOF >> conftest.$ac_ext
8510
8511/* The mapping between symbol names and symbols.  */
8512LT_DLSYM_CONST struct {
8513  const char *name;
8514  void       *address;
8515}
8516lt__PROGRAM__LTX_preloaded_symbols[] =
8517{
8518  { "@PROGRAM@", (void *) 0 },
8519_LT_EOF
8520	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8521	  cat <<\_LT_EOF >> conftest.$ac_ext
8522  {0, (void *) 0}
8523};
8524
8525/* This works around a problem in FreeBSD linker */
8526#ifdef FREEBSD_WORKAROUND
8527static const void *lt_preloaded_setup() {
8528  return lt__PROGRAM__LTX_preloaded_symbols;
8529}
8530#endif
8531
8532#ifdef __cplusplus
8533}
8534#endif
8535_LT_EOF
8536	  # Now try linking the two files.
8537	  mv conftest.$ac_objext conftstm.$ac_objext
8538	  lt_globsym_save_LIBS=$LIBS
8539	  lt_globsym_save_CFLAGS=$CFLAGS
8540	  LIBS=conftstm.$ac_objext
8541	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8542	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8543  (eval $ac_link) 2>&5
8544  ac_status=$?
8545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8546  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8547	    pipe_works=yes
8548	  fi
8549	  LIBS=$lt_globsym_save_LIBS
8550	  CFLAGS=$lt_globsym_save_CFLAGS
8551	else
8552	  echo "cannot find nm_test_func in $nlist" >&5
8553	fi
8554      else
8555	echo "cannot find nm_test_var in $nlist" >&5
8556      fi
8557    else
8558      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8559    fi
8560  else
8561    echo "$progname: failed program was:" >&5
8562    cat conftest.$ac_ext >&5
8563  fi
8564  rm -rf conftest* conftst*
8565
8566  # Do not use the global_symbol_pipe unless it works.
8567  if test yes = "$pipe_works"; then
8568    break
8569  else
8570    lt_cv_sys_global_symbol_pipe=
8571  fi
8572done
8573
8574fi
8575
8576if test -z "$lt_cv_sys_global_symbol_pipe"; then
8577  lt_cv_sys_global_symbol_to_cdecl=
8578fi
8579if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8581$as_echo "failed" >&6; }
8582else
8583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8584$as_echo "ok" >&6; }
8585fi
8586
8587# Response file support.
8588if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8589  nm_file_list_spec='@'
8590elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8591  nm_file_list_spec='@'
8592fi
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8631$as_echo_n "checking for sysroot... " >&6; }
8632
8633# Check whether --with-sysroot was given.
8634if test "${with_sysroot+set}" = set; then :
8635  withval=$with_sysroot;
8636else
8637  with_sysroot=no
8638fi
8639
8640
8641lt_sysroot=
8642case $with_sysroot in #(
8643 yes)
8644   if test yes = "$GCC"; then
8645     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8646   fi
8647   ;; #(
8648 /*)
8649   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8650   ;; #(
8651 no|'')
8652   ;; #(
8653 *)
8654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8655$as_echo "$with_sysroot" >&6; }
8656   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8657   ;;
8658esac
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8661$as_echo "${lt_sysroot:-no}" >&6; }
8662
8663
8664
8665
8666
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8668$as_echo_n "checking for a working dd... " >&6; }
8669if ${ac_cv_path_lt_DD+:} false; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  printf 0123456789abcdef0123456789abcdef >conftest.i
8673cat conftest.i conftest.i >conftest2.i
8674: ${lt_DD:=$DD}
8675if test -z "$lt_DD"; then
8676  ac_path_lt_DD_found=false
8677  # Loop through the user's path and test for each of PROGNAME-LIST
8678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679for as_dir in $PATH
8680do
8681  IFS=$as_save_IFS
8682  test -z "$as_dir" && as_dir=.
8683    for ac_prog in dd; do
8684    for ac_exec_ext in '' $ac_executable_extensions; do
8685      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8686      as_fn_executable_p "$ac_path_lt_DD" || continue
8687if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8688  cmp -s conftest.i conftest.out \
8689  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8690fi
8691      $ac_path_lt_DD_found && break 3
8692    done
8693  done
8694  done
8695IFS=$as_save_IFS
8696  if test -z "$ac_cv_path_lt_DD"; then
8697    :
8698  fi
8699else
8700  ac_cv_path_lt_DD=$lt_DD
8701fi
8702
8703rm -f conftest.i conftest2.i conftest.out
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8706$as_echo "$ac_cv_path_lt_DD" >&6; }
8707
8708
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8710$as_echo_n "checking how to truncate binary pipes... " >&6; }
8711if ${lt_cv_truncate_bin+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  printf 0123456789abcdef0123456789abcdef >conftest.i
8715cat conftest.i conftest.i >conftest2.i
8716lt_cv_truncate_bin=
8717if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8718  cmp -s conftest.i conftest.out \
8719  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8720fi
8721rm -f conftest.i conftest2.i conftest.out
8722test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8723fi
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8725$as_echo "$lt_cv_truncate_bin" >&6; }
8726
8727
8728
8729
8730
8731
8732
8733# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8734func_cc_basename ()
8735{
8736    for cc_temp in $*""; do
8737      case $cc_temp in
8738        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8739        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8740        \-*) ;;
8741        *) break;;
8742      esac
8743    done
8744    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8745}
8746
8747# Check whether --enable-libtool-lock was given.
8748if test "${enable_libtool_lock+set}" = set; then :
8749  enableval=$enable_libtool_lock;
8750fi
8751
8752test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8753
8754# Some flags need to be propagated to the compiler or linker for good
8755# libtool support.
8756case $host in
8757ia64-*-hpux*)
8758  # Find out what ABI is being produced by ac_compile, and set mode
8759  # options accordingly.
8760  echo 'int i;' > conftest.$ac_ext
8761  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8762  (eval $ac_compile) 2>&5
8763  ac_status=$?
8764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8765  test $ac_status = 0; }; then
8766    case `/usr/bin/file conftest.$ac_objext` in
8767      *ELF-32*)
8768	HPUX_IA64_MODE=32
8769	;;
8770      *ELF-64*)
8771	HPUX_IA64_MODE=64
8772	;;
8773    esac
8774  fi
8775  rm -rf conftest*
8776  ;;
8777*-*-irix6*)
8778  # Find out what ABI is being produced by ac_compile, and set linker
8779  # options accordingly.
8780  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8781  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8782  (eval $ac_compile) 2>&5
8783  ac_status=$?
8784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8785  test $ac_status = 0; }; then
8786    if test yes = "$lt_cv_prog_gnu_ld"; then
8787      case `/usr/bin/file conftest.$ac_objext` in
8788	*32-bit*)
8789	  LD="${LD-ld} -melf32bsmip"
8790	  ;;
8791	*N32*)
8792	  LD="${LD-ld} -melf32bmipn32"
8793	  ;;
8794	*64-bit*)
8795	  LD="${LD-ld} -melf64bmip"
8796	;;
8797      esac
8798    else
8799      case `/usr/bin/file conftest.$ac_objext` in
8800	*32-bit*)
8801	  LD="${LD-ld} -32"
8802	  ;;
8803	*N32*)
8804	  LD="${LD-ld} -n32"
8805	  ;;
8806	*64-bit*)
8807	  LD="${LD-ld} -64"
8808	  ;;
8809      esac
8810    fi
8811  fi
8812  rm -rf conftest*
8813  ;;
8814
8815mips64*-*linux*)
8816  # Find out what ABI is being produced by ac_compile, and set linker
8817  # options accordingly.
8818  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8819  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8820  (eval $ac_compile) 2>&5
8821  ac_status=$?
8822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8823  test $ac_status = 0; }; then
8824    emul=elf
8825    case `/usr/bin/file conftest.$ac_objext` in
8826      *32-bit*)
8827	emul="${emul}32"
8828	;;
8829      *64-bit*)
8830	emul="${emul}64"
8831	;;
8832    esac
8833    case `/usr/bin/file conftest.$ac_objext` in
8834      *MSB*)
8835	emul="${emul}btsmip"
8836	;;
8837      *LSB*)
8838	emul="${emul}ltsmip"
8839	;;
8840    esac
8841    case `/usr/bin/file conftest.$ac_objext` in
8842      *N32*)
8843	emul="${emul}n32"
8844	;;
8845    esac
8846    LD="${LD-ld} -m $emul"
8847  fi
8848  rm -rf conftest*
8849  ;;
8850
8851x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8852s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8853  # Find out what ABI is being produced by ac_compile, and set linker
8854  # options accordingly.  Note that the listed cases only cover the
8855  # situations where additional linker options are needed (such as when
8856  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8857  # vice versa); the common cases where no linker options are needed do
8858  # not appear in the list.
8859  echo 'int i;' > conftest.$ac_ext
8860  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8861  (eval $ac_compile) 2>&5
8862  ac_status=$?
8863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8864  test $ac_status = 0; }; then
8865    case `/usr/bin/file conftest.o` in
8866      *32-bit*)
8867	case $host in
8868	  x86_64-*kfreebsd*-gnu)
8869	    LD="${LD-ld} -m elf_i386_fbsd"
8870	    ;;
8871	  x86_64-*linux*)
8872	    case `/usr/bin/file conftest.o` in
8873	      *x86-64*)
8874		LD="${LD-ld} -m elf32_x86_64"
8875		;;
8876	      *)
8877		LD="${LD-ld} -m elf_i386"
8878		;;
8879	    esac
8880	    ;;
8881	  powerpc64le-*linux*)
8882	    LD="${LD-ld} -m elf32lppclinux"
8883	    ;;
8884	  powerpc64-*linux*)
8885	    LD="${LD-ld} -m elf32ppclinux"
8886	    ;;
8887	  s390x-*linux*)
8888	    LD="${LD-ld} -m elf_s390"
8889	    ;;
8890	  sparc64-*linux*)
8891	    LD="${LD-ld} -m elf32_sparc"
8892	    ;;
8893	esac
8894	;;
8895      *64-bit*)
8896	case $host in
8897	  x86_64-*kfreebsd*-gnu)
8898	    LD="${LD-ld} -m elf_x86_64_fbsd"
8899	    ;;
8900	  x86_64-*linux*)
8901	    LD="${LD-ld} -m elf_x86_64"
8902	    ;;
8903	  powerpcle-*linux*)
8904	    LD="${LD-ld} -m elf64lppc"
8905	    ;;
8906	  powerpc-*linux*)
8907	    LD="${LD-ld} -m elf64ppc"
8908	    ;;
8909	  s390*-*linux*|s390*-*tpf*)
8910	    LD="${LD-ld} -m elf64_s390"
8911	    ;;
8912	  sparc*-*linux*)
8913	    LD="${LD-ld} -m elf64_sparc"
8914	    ;;
8915	esac
8916	;;
8917    esac
8918  fi
8919  rm -rf conftest*
8920  ;;
8921
8922*-*-sco3.2v5*)
8923  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8924  SAVE_CFLAGS=$CFLAGS
8925  CFLAGS="$CFLAGS -belf"
8926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8927$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8928if ${lt_cv_cc_needs_belf+:} false; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  ac_ext=c
8932ac_cpp='$CPP $CPPFLAGS'
8933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936
8937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939
8940int
8941main ()
8942{
8943
8944  ;
8945  return 0;
8946}
8947_ACEOF
8948if ac_fn_c_try_link "$LINENO"; then :
8949  lt_cv_cc_needs_belf=yes
8950else
8951  lt_cv_cc_needs_belf=no
8952fi
8953rm -f core conftest.err conftest.$ac_objext \
8954    conftest$ac_exeext conftest.$ac_ext
8955     ac_ext=c
8956ac_cpp='$CPP $CPPFLAGS'
8957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8959ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8963$as_echo "$lt_cv_cc_needs_belf" >&6; }
8964  if test yes != "$lt_cv_cc_needs_belf"; then
8965    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8966    CFLAGS=$SAVE_CFLAGS
8967  fi
8968  ;;
8969*-*solaris*)
8970  # Find out what ABI is being produced by ac_compile, and set linker
8971  # options accordingly.
8972  echo 'int i;' > conftest.$ac_ext
8973  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8974  (eval $ac_compile) 2>&5
8975  ac_status=$?
8976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8977  test $ac_status = 0; }; then
8978    case `/usr/bin/file conftest.o` in
8979    *64-bit*)
8980      case $lt_cv_prog_gnu_ld in
8981      yes*)
8982        case $host in
8983        i?86-*-solaris*|x86_64-*-solaris*)
8984          LD="${LD-ld} -m elf_x86_64"
8985          ;;
8986        sparc*-*-solaris*)
8987          LD="${LD-ld} -m elf64_sparc"
8988          ;;
8989        esac
8990        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8991        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8992          LD=${LD-ld}_sol2
8993        fi
8994        ;;
8995      *)
8996	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8997	  LD="${LD-ld} -64"
8998	fi
8999	;;
9000      esac
9001      ;;
9002    esac
9003  fi
9004  rm -rf conftest*
9005  ;;
9006esac
9007
9008need_locks=$enable_libtool_lock
9009
9010if test -n "$ac_tool_prefix"; then
9011  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9012set dummy ${ac_tool_prefix}mt; ac_word=$2
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014$as_echo_n "checking for $ac_word... " >&6; }
9015if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9016  $as_echo_n "(cached) " >&6
9017else
9018  if test -n "$MANIFEST_TOOL"; then
9019  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9020else
9021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022for as_dir in $PATH
9023do
9024  IFS=$as_save_IFS
9025  test -z "$as_dir" && as_dir=.
9026    for ac_exec_ext in '' $ac_executable_extensions; do
9027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9028    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030    break 2
9031  fi
9032done
9033  done
9034IFS=$as_save_IFS
9035
9036fi
9037fi
9038MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9039if test -n "$MANIFEST_TOOL"; then
9040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9041$as_echo "$MANIFEST_TOOL" >&6; }
9042else
9043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
9045fi
9046
9047
9048fi
9049if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9050  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9051  # Extract the first word of "mt", so it can be a program name with args.
9052set dummy mt; ac_word=$2
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054$as_echo_n "checking for $ac_word... " >&6; }
9055if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9056  $as_echo_n "(cached) " >&6
9057else
9058  if test -n "$ac_ct_MANIFEST_TOOL"; then
9059  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9060else
9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
9063do
9064  IFS=$as_save_IFS
9065  test -z "$as_dir" && as_dir=.
9066    for ac_exec_ext in '' $ac_executable_extensions; do
9067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9068    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9070    break 2
9071  fi
9072done
9073  done
9074IFS=$as_save_IFS
9075
9076fi
9077fi
9078ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9079if test -n "$ac_ct_MANIFEST_TOOL"; then
9080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9081$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9082else
9083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084$as_echo "no" >&6; }
9085fi
9086
9087  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9088    MANIFEST_TOOL=":"
9089  else
9090    case $cross_compiling:$ac_tool_warned in
9091yes:)
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9094ac_tool_warned=yes ;;
9095esac
9096    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9097  fi
9098else
9099  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9100fi
9101
9102test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9104$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9105if ${lt_cv_path_mainfest_tool+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  lt_cv_path_mainfest_tool=no
9109  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9110  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9111  cat conftest.err >&5
9112  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9113    lt_cv_path_mainfest_tool=yes
9114  fi
9115  rm -f conftest*
9116fi
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9118$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9119if test yes != "$lt_cv_path_mainfest_tool"; then
9120  MANIFEST_TOOL=:
9121fi
9122
9123
9124
9125
9126
9127
9128  case $host_os in
9129    rhapsody* | darwin*)
9130    if test -n "$ac_tool_prefix"; then
9131  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9132set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134$as_echo_n "checking for $ac_word... " >&6; }
9135if ${ac_cv_prog_DSYMUTIL+:} false; then :
9136  $as_echo_n "(cached) " >&6
9137else
9138  if test -n "$DSYMUTIL"; then
9139  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9140else
9141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142for as_dir in $PATH
9143do
9144  IFS=$as_save_IFS
9145  test -z "$as_dir" && as_dir=.
9146    for ac_exec_ext in '' $ac_executable_extensions; do
9147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9148    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9150    break 2
9151  fi
9152done
9153  done
9154IFS=$as_save_IFS
9155
9156fi
9157fi
9158DSYMUTIL=$ac_cv_prog_DSYMUTIL
9159if test -n "$DSYMUTIL"; then
9160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9161$as_echo "$DSYMUTIL" >&6; }
9162else
9163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164$as_echo "no" >&6; }
9165fi
9166
9167
9168fi
9169if test -z "$ac_cv_prog_DSYMUTIL"; then
9170  ac_ct_DSYMUTIL=$DSYMUTIL
9171  # Extract the first word of "dsymutil", so it can be a program name with args.
9172set dummy dsymutil; ac_word=$2
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174$as_echo_n "checking for $ac_word... " >&6; }
9175if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  if test -n "$ac_ct_DSYMUTIL"; then
9179  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9180else
9181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182for as_dir in $PATH
9183do
9184  IFS=$as_save_IFS
9185  test -z "$as_dir" && as_dir=.
9186    for ac_exec_ext in '' $ac_executable_extensions; do
9187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9188    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190    break 2
9191  fi
9192done
9193  done
9194IFS=$as_save_IFS
9195
9196fi
9197fi
9198ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9199if test -n "$ac_ct_DSYMUTIL"; then
9200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9201$as_echo "$ac_ct_DSYMUTIL" >&6; }
9202else
9203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204$as_echo "no" >&6; }
9205fi
9206
9207  if test "x$ac_ct_DSYMUTIL" = x; then
9208    DSYMUTIL=":"
9209  else
9210    case $cross_compiling:$ac_tool_warned in
9211yes:)
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9214ac_tool_warned=yes ;;
9215esac
9216    DSYMUTIL=$ac_ct_DSYMUTIL
9217  fi
9218else
9219  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9220fi
9221
9222    if test -n "$ac_tool_prefix"; then
9223  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9224set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226$as_echo_n "checking for $ac_word... " >&6; }
9227if ${ac_cv_prog_NMEDIT+:} false; then :
9228  $as_echo_n "(cached) " >&6
9229else
9230  if test -n "$NMEDIT"; then
9231  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9232else
9233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234for as_dir in $PATH
9235do
9236  IFS=$as_save_IFS
9237  test -z "$as_dir" && as_dir=.
9238    for ac_exec_ext in '' $ac_executable_extensions; do
9239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9240    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9242    break 2
9243  fi
9244done
9245  done
9246IFS=$as_save_IFS
9247
9248fi
9249fi
9250NMEDIT=$ac_cv_prog_NMEDIT
9251if test -n "$NMEDIT"; then
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9253$as_echo "$NMEDIT" >&6; }
9254else
9255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256$as_echo "no" >&6; }
9257fi
9258
9259
9260fi
9261if test -z "$ac_cv_prog_NMEDIT"; then
9262  ac_ct_NMEDIT=$NMEDIT
9263  # Extract the first word of "nmedit", so it can be a program name with args.
9264set dummy nmedit; ac_word=$2
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266$as_echo_n "checking for $ac_word... " >&6; }
9267if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9268  $as_echo_n "(cached) " >&6
9269else
9270  if test -n "$ac_ct_NMEDIT"; then
9271  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9272else
9273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274for as_dir in $PATH
9275do
9276  IFS=$as_save_IFS
9277  test -z "$as_dir" && as_dir=.
9278    for ac_exec_ext in '' $ac_executable_extensions; do
9279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9280    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282    break 2
9283  fi
9284done
9285  done
9286IFS=$as_save_IFS
9287
9288fi
9289fi
9290ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9291if test -n "$ac_ct_NMEDIT"; then
9292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9293$as_echo "$ac_ct_NMEDIT" >&6; }
9294else
9295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296$as_echo "no" >&6; }
9297fi
9298
9299  if test "x$ac_ct_NMEDIT" = x; then
9300    NMEDIT=":"
9301  else
9302    case $cross_compiling:$ac_tool_warned in
9303yes:)
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9306ac_tool_warned=yes ;;
9307esac
9308    NMEDIT=$ac_ct_NMEDIT
9309  fi
9310else
9311  NMEDIT="$ac_cv_prog_NMEDIT"
9312fi
9313
9314    if test -n "$ac_tool_prefix"; then
9315  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9316set dummy ${ac_tool_prefix}lipo; ac_word=$2
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318$as_echo_n "checking for $ac_word... " >&6; }
9319if ${ac_cv_prog_LIPO+:} false; then :
9320  $as_echo_n "(cached) " >&6
9321else
9322  if test -n "$LIPO"; then
9323  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9324else
9325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326for as_dir in $PATH
9327do
9328  IFS=$as_save_IFS
9329  test -z "$as_dir" && as_dir=.
9330    for ac_exec_ext in '' $ac_executable_extensions; do
9331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334    break 2
9335  fi
9336done
9337  done
9338IFS=$as_save_IFS
9339
9340fi
9341fi
9342LIPO=$ac_cv_prog_LIPO
9343if test -n "$LIPO"; then
9344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9345$as_echo "$LIPO" >&6; }
9346else
9347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348$as_echo "no" >&6; }
9349fi
9350
9351
9352fi
9353if test -z "$ac_cv_prog_LIPO"; then
9354  ac_ct_LIPO=$LIPO
9355  # Extract the first word of "lipo", so it can be a program name with args.
9356set dummy lipo; ac_word=$2
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358$as_echo_n "checking for $ac_word... " >&6; }
9359if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9360  $as_echo_n "(cached) " >&6
9361else
9362  if test -n "$ac_ct_LIPO"; then
9363  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9364else
9365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366for as_dir in $PATH
9367do
9368  IFS=$as_save_IFS
9369  test -z "$as_dir" && as_dir=.
9370    for ac_exec_ext in '' $ac_executable_extensions; do
9371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9372    ac_cv_prog_ac_ct_LIPO="lipo"
9373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374    break 2
9375  fi
9376done
9377  done
9378IFS=$as_save_IFS
9379
9380fi
9381fi
9382ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9383if test -n "$ac_ct_LIPO"; then
9384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9385$as_echo "$ac_ct_LIPO" >&6; }
9386else
9387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388$as_echo "no" >&6; }
9389fi
9390
9391  if test "x$ac_ct_LIPO" = x; then
9392    LIPO=":"
9393  else
9394    case $cross_compiling:$ac_tool_warned in
9395yes:)
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9398ac_tool_warned=yes ;;
9399esac
9400    LIPO=$ac_ct_LIPO
9401  fi
9402else
9403  LIPO="$ac_cv_prog_LIPO"
9404fi
9405
9406    if test -n "$ac_tool_prefix"; then
9407  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9408set dummy ${ac_tool_prefix}otool; ac_word=$2
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410$as_echo_n "checking for $ac_word... " >&6; }
9411if ${ac_cv_prog_OTOOL+:} false; then :
9412  $as_echo_n "(cached) " >&6
9413else
9414  if test -n "$OTOOL"; then
9415  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9416else
9417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420  IFS=$as_save_IFS
9421  test -z "$as_dir" && as_dir=.
9422    for ac_exec_ext in '' $ac_executable_extensions; do
9423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426    break 2
9427  fi
9428done
9429  done
9430IFS=$as_save_IFS
9431
9432fi
9433fi
9434OTOOL=$ac_cv_prog_OTOOL
9435if test -n "$OTOOL"; then
9436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9437$as_echo "$OTOOL" >&6; }
9438else
9439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440$as_echo "no" >&6; }
9441fi
9442
9443
9444fi
9445if test -z "$ac_cv_prog_OTOOL"; then
9446  ac_ct_OTOOL=$OTOOL
9447  # Extract the first word of "otool", so it can be a program name with args.
9448set dummy otool; ac_word=$2
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450$as_echo_n "checking for $ac_word... " >&6; }
9451if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9452  $as_echo_n "(cached) " >&6
9453else
9454  if test -n "$ac_ct_OTOOL"; then
9455  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9456else
9457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458for as_dir in $PATH
9459do
9460  IFS=$as_save_IFS
9461  test -z "$as_dir" && as_dir=.
9462    for ac_exec_ext in '' $ac_executable_extensions; do
9463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464    ac_cv_prog_ac_ct_OTOOL="otool"
9465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466    break 2
9467  fi
9468done
9469  done
9470IFS=$as_save_IFS
9471
9472fi
9473fi
9474ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9475if test -n "$ac_ct_OTOOL"; then
9476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9477$as_echo "$ac_ct_OTOOL" >&6; }
9478else
9479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480$as_echo "no" >&6; }
9481fi
9482
9483  if test "x$ac_ct_OTOOL" = x; then
9484    OTOOL=":"
9485  else
9486    case $cross_compiling:$ac_tool_warned in
9487yes:)
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9490ac_tool_warned=yes ;;
9491esac
9492    OTOOL=$ac_ct_OTOOL
9493  fi
9494else
9495  OTOOL="$ac_cv_prog_OTOOL"
9496fi
9497
9498    if test -n "$ac_tool_prefix"; then
9499  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9500set dummy ${ac_tool_prefix}otool64; ac_word=$2
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9502$as_echo_n "checking for $ac_word... " >&6; }
9503if ${ac_cv_prog_OTOOL64+:} false; then :
9504  $as_echo_n "(cached) " >&6
9505else
9506  if test -n "$OTOOL64"; then
9507  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9508else
9509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510for as_dir in $PATH
9511do
9512  IFS=$as_save_IFS
9513  test -z "$as_dir" && as_dir=.
9514    for ac_exec_ext in '' $ac_executable_extensions; do
9515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9516    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9518    break 2
9519  fi
9520done
9521  done
9522IFS=$as_save_IFS
9523
9524fi
9525fi
9526OTOOL64=$ac_cv_prog_OTOOL64
9527if test -n "$OTOOL64"; then
9528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9529$as_echo "$OTOOL64" >&6; }
9530else
9531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532$as_echo "no" >&6; }
9533fi
9534
9535
9536fi
9537if test -z "$ac_cv_prog_OTOOL64"; then
9538  ac_ct_OTOOL64=$OTOOL64
9539  # Extract the first word of "otool64", so it can be a program name with args.
9540set dummy otool64; ac_word=$2
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542$as_echo_n "checking for $ac_word... " >&6; }
9543if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9544  $as_echo_n "(cached) " >&6
9545else
9546  if test -n "$ac_ct_OTOOL64"; then
9547  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9548else
9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550for as_dir in $PATH
9551do
9552  IFS=$as_save_IFS
9553  test -z "$as_dir" && as_dir=.
9554    for ac_exec_ext in '' $ac_executable_extensions; do
9555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9556    ac_cv_prog_ac_ct_OTOOL64="otool64"
9557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558    break 2
9559  fi
9560done
9561  done
9562IFS=$as_save_IFS
9563
9564fi
9565fi
9566ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9567if test -n "$ac_ct_OTOOL64"; then
9568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9569$as_echo "$ac_ct_OTOOL64" >&6; }
9570else
9571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572$as_echo "no" >&6; }
9573fi
9574
9575  if test "x$ac_ct_OTOOL64" = x; then
9576    OTOOL64=":"
9577  else
9578    case $cross_compiling:$ac_tool_warned in
9579yes:)
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9582ac_tool_warned=yes ;;
9583esac
9584    OTOOL64=$ac_ct_OTOOL64
9585  fi
9586else
9587  OTOOL64="$ac_cv_prog_OTOOL64"
9588fi
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9617$as_echo_n "checking for -single_module linker flag... " >&6; }
9618if ${lt_cv_apple_cc_single_mod+:} false; then :
9619  $as_echo_n "(cached) " >&6
9620else
9621  lt_cv_apple_cc_single_mod=no
9622      if test -z "$LT_MULTI_MODULE"; then
9623	# By default we will add the -single_module flag. You can override
9624	# by either setting the environment variable LT_MULTI_MODULE
9625	# non-empty at configure time, or by adding -multi_module to the
9626	# link flags.
9627	rm -rf libconftest.dylib*
9628	echo "int foo(void){return 1;}" > conftest.c
9629	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9630-dynamiclib -Wl,-single_module conftest.c" >&5
9631	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9632	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9633        _lt_result=$?
9634	# If there is a non-empty error log, and "single_module"
9635	# appears in it, assume the flag caused a linker warning
9636        if test -s conftest.err && $GREP single_module conftest.err; then
9637	  cat conftest.err >&5
9638	# Otherwise, if the output was created with a 0 exit code from
9639	# the compiler, it worked.
9640	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9641	  lt_cv_apple_cc_single_mod=yes
9642	else
9643	  cat conftest.err >&5
9644	fi
9645	rm -rf libconftest.dylib*
9646	rm -f conftest.*
9647      fi
9648fi
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9650$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9651
9652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9653$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9654if ${lt_cv_ld_exported_symbols_list+:} false; then :
9655  $as_echo_n "(cached) " >&6
9656else
9657  lt_cv_ld_exported_symbols_list=no
9658      save_LDFLAGS=$LDFLAGS
9659      echo "_main" > conftest.sym
9660      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9661      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662/* end confdefs.h.  */
9663
9664int
9665main ()
9666{
9667
9668  ;
9669  return 0;
9670}
9671_ACEOF
9672if ac_fn_c_try_link "$LINENO"; then :
9673  lt_cv_ld_exported_symbols_list=yes
9674else
9675  lt_cv_ld_exported_symbols_list=no
9676fi
9677rm -f core conftest.err conftest.$ac_objext \
9678    conftest$ac_exeext conftest.$ac_ext
9679	LDFLAGS=$save_LDFLAGS
9680
9681fi
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9683$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9684
9685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9686$as_echo_n "checking for -force_load linker flag... " >&6; }
9687if ${lt_cv_ld_force_load+:} false; then :
9688  $as_echo_n "(cached) " >&6
9689else
9690  lt_cv_ld_force_load=no
9691      cat > conftest.c << _LT_EOF
9692int forced_loaded() { return 2;}
9693_LT_EOF
9694      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9695      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9696      echo "$AR cru libconftest.a conftest.o" >&5
9697      $AR cru libconftest.a conftest.o 2>&5
9698      echo "$RANLIB libconftest.a" >&5
9699      $RANLIB libconftest.a 2>&5
9700      cat > conftest.c << _LT_EOF
9701int main() { return 0;}
9702_LT_EOF
9703      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9704      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9705      _lt_result=$?
9706      if test -s conftest.err && $GREP force_load conftest.err; then
9707	cat conftest.err >&5
9708      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9709	lt_cv_ld_force_load=yes
9710      else
9711	cat conftest.err >&5
9712      fi
9713        rm -f conftest.err libconftest.a conftest conftest.c
9714        rm -rf conftest.dSYM
9715
9716fi
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9718$as_echo "$lt_cv_ld_force_load" >&6; }
9719    case $host_os in
9720    rhapsody* | darwin1.[012])
9721      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9722    darwin1.*)
9723      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9724    darwin*) # darwin 5.x on
9725      # if running on 10.5 or later, the deployment target defaults
9726      # to the OS version, if on x86, and 10.4, the deployment
9727      # target defaults to 10.4. Don't you love it?
9728      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9729	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9730	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9731	10.[012][,.]*)
9732	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9733	10.*)
9734	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9735      esac
9736    ;;
9737  esac
9738    if test yes = "$lt_cv_apple_cc_single_mod"; then
9739      _lt_dar_single_mod='$single_module'
9740    fi
9741    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9742      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9743    else
9744      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9745    fi
9746    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9747      _lt_dsymutil='~$DSYMUTIL $lib || :'
9748    else
9749      _lt_dsymutil=
9750    fi
9751    ;;
9752  esac
9753
9754# func_munge_path_list VARIABLE PATH
9755# -----------------------------------
9756# VARIABLE is name of variable containing _space_ separated list of
9757# directories to be munged by the contents of PATH, which is string
9758# having a format:
9759# "DIR[:DIR]:"
9760#       string "DIR[ DIR]" will be prepended to VARIABLE
9761# ":DIR[:DIR]"
9762#       string "DIR[ DIR]" will be appended to VARIABLE
9763# "DIRP[:DIRP]::[DIRA:]DIRA"
9764#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9765#       "DIRA[ DIRA]" will be appended to VARIABLE
9766# "DIR[:DIR]"
9767#       VARIABLE will be replaced by "DIR[ DIR]"
9768func_munge_path_list ()
9769{
9770    case x$2 in
9771    x)
9772        ;;
9773    *:)
9774        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9775        ;;
9776    x:*)
9777        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9778        ;;
9779    *::*)
9780        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9781        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9782        ;;
9783    *)
9784        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9785        ;;
9786    esac
9787}
9788
9789for ac_header in dlfcn.h
9790do :
9791  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9792"
9793if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9794  cat >>confdefs.h <<_ACEOF
9795#define HAVE_DLFCN_H 1
9796_ACEOF
9797
9798fi
9799
9800done
9801
9802
9803
9804
9805func_stripname_cnf ()
9806{
9807  case $2 in
9808  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9809  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9810  esac
9811} # func_stripname_cnf
9812
9813
9814
9815
9816
9817# Set options
9818
9819
9820
9821        enable_dlopen=no
9822
9823
9824  enable_win32_dll=no
9825
9826
9827            # Check whether --enable-shared was given.
9828if test "${enable_shared+set}" = set; then :
9829  enableval=$enable_shared; p=${PACKAGE-default}
9830    case $enableval in
9831    yes) enable_shared=yes ;;
9832    no) enable_shared=no ;;
9833    *)
9834      enable_shared=no
9835      # Look at the argument we got.  We use all the common list separators.
9836      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9837      for pkg in $enableval; do
9838	IFS=$lt_save_ifs
9839	if test "X$pkg" = "X$p"; then
9840	  enable_shared=yes
9841	fi
9842      done
9843      IFS=$lt_save_ifs
9844      ;;
9845    esac
9846else
9847  enable_shared=yes
9848fi
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858  # Check whether --enable-static was given.
9859if test "${enable_static+set}" = set; then :
9860  enableval=$enable_static; p=${PACKAGE-default}
9861    case $enableval in
9862    yes) enable_static=yes ;;
9863    no) enable_static=no ;;
9864    *)
9865     enable_static=no
9866      # Look at the argument we got.  We use all the common list separators.
9867      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9868      for pkg in $enableval; do
9869	IFS=$lt_save_ifs
9870	if test "X$pkg" = "X$p"; then
9871	  enable_static=yes
9872	fi
9873      done
9874      IFS=$lt_save_ifs
9875      ;;
9876    esac
9877else
9878  enable_static=yes
9879fi
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890# Check whether --with-pic was given.
9891if test "${with_pic+set}" = set; then :
9892  withval=$with_pic; lt_p=${PACKAGE-default}
9893    case $withval in
9894    yes|no) pic_mode=$withval ;;
9895    *)
9896      pic_mode=default
9897      # Look at the argument we got.  We use all the common list separators.
9898      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9899      for lt_pkg in $withval; do
9900	IFS=$lt_save_ifs
9901	if test "X$lt_pkg" = "X$lt_p"; then
9902	  pic_mode=yes
9903	fi
9904      done
9905      IFS=$lt_save_ifs
9906      ;;
9907    esac
9908else
9909  pic_mode=default
9910fi
9911
9912
9913
9914
9915
9916
9917
9918
9919  # Check whether --enable-fast-install was given.
9920if test "${enable_fast_install+set}" = set; then :
9921  enableval=$enable_fast_install; p=${PACKAGE-default}
9922    case $enableval in
9923    yes) enable_fast_install=yes ;;
9924    no) enable_fast_install=no ;;
9925    *)
9926      enable_fast_install=no
9927      # Look at the argument we got.  We use all the common list separators.
9928      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9929      for pkg in $enableval; do
9930	IFS=$lt_save_ifs
9931	if test "X$pkg" = "X$p"; then
9932	  enable_fast_install=yes
9933	fi
9934      done
9935      IFS=$lt_save_ifs
9936      ;;
9937    esac
9938else
9939  enable_fast_install=yes
9940fi
9941
9942
9943
9944
9945
9946
9947
9948
9949  shared_archive_member_spec=
9950case $host,$enable_shared in
9951power*-*-aix[5-9]*,yes)
9952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9953$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9954
9955# Check whether --with-aix-soname was given.
9956if test "${with_aix_soname+set}" = set; then :
9957  withval=$with_aix_soname; case $withval in
9958    aix|svr4|both)
9959      ;;
9960    *)
9961      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9962      ;;
9963    esac
9964    lt_cv_with_aix_soname=$with_aix_soname
9965else
9966  if ${lt_cv_with_aix_soname+:} false; then :
9967  $as_echo_n "(cached) " >&6
9968else
9969  lt_cv_with_aix_soname=aix
9970fi
9971
9972    with_aix_soname=$lt_cv_with_aix_soname
9973fi
9974
9975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9976$as_echo "$with_aix_soname" >&6; }
9977  if test aix != "$with_aix_soname"; then
9978    # For the AIX way of multilib, we name the shared archive member
9979    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9980    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9981    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9982    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9983    if test 64 = "${OBJECT_MODE-32}"; then
9984      shared_archive_member_spec=shr_64
9985    else
9986      shared_archive_member_spec=shr
9987    fi
9988  fi
9989  ;;
9990*)
9991  with_aix_soname=aix
9992  ;;
9993esac
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004# This can be used to rebuild libtool when needed
10005LIBTOOL_DEPS=$ltmain
10006
10007# Always use our own libtool.
10008LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039test -z "$LN_S" && LN_S="ln -s"
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054if test -n "${ZSH_VERSION+set}"; then
10055   setopt NO_GLOB_SUBST
10056fi
10057
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10059$as_echo_n "checking for objdir... " >&6; }
10060if ${lt_cv_objdir+:} false; then :
10061  $as_echo_n "(cached) " >&6
10062else
10063  rm -f .libs 2>/dev/null
10064mkdir .libs 2>/dev/null
10065if test -d .libs; then
10066  lt_cv_objdir=.libs
10067else
10068  # MS-DOS does not allow filenames that begin with a dot.
10069  lt_cv_objdir=_libs
10070fi
10071rmdir .libs 2>/dev/null
10072fi
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10074$as_echo "$lt_cv_objdir" >&6; }
10075objdir=$lt_cv_objdir
10076
10077
10078
10079
10080
10081cat >>confdefs.h <<_ACEOF
10082#define LT_OBJDIR "$lt_cv_objdir/"
10083_ACEOF
10084
10085
10086
10087
10088case $host_os in
10089aix3*)
10090  # AIX sometimes has problems with the GCC collect2 program.  For some
10091  # reason, if we set the COLLECT_NAMES environment variable, the problems
10092  # vanish in a puff of smoke.
10093  if test set != "${COLLECT_NAMES+set}"; then
10094    COLLECT_NAMES=
10095    export COLLECT_NAMES
10096  fi
10097  ;;
10098esac
10099
10100# Global variables:
10101ofile=libtool
10102can_build_shared=yes
10103
10104# All known linkers require a '.a' archive for static linking (except MSVC,
10105# which needs '.lib').
10106libext=a
10107
10108with_gnu_ld=$lt_cv_prog_gnu_ld
10109
10110old_CC=$CC
10111old_CFLAGS=$CFLAGS
10112
10113# Set sane defaults for various variables
10114test -z "$CC" && CC=cc
10115test -z "$LTCC" && LTCC=$CC
10116test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10117test -z "$LD" && LD=ld
10118test -z "$ac_objext" && ac_objext=o
10119
10120func_cc_basename $compiler
10121cc_basename=$func_cc_basename_result
10122
10123
10124# Only perform the check for file, if the check method requires it
10125test -z "$MAGIC_CMD" && MAGIC_CMD=file
10126case $deplibs_check_method in
10127file_magic*)
10128  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10129    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10130$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10131if ${lt_cv_path_MAGIC_CMD+:} false; then :
10132  $as_echo_n "(cached) " >&6
10133else
10134  case $MAGIC_CMD in
10135[\\/*] |  ?:[\\/]*)
10136  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10137  ;;
10138*)
10139  lt_save_MAGIC_CMD=$MAGIC_CMD
10140  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10141  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10142  for ac_dir in $ac_dummy; do
10143    IFS=$lt_save_ifs
10144    test -z "$ac_dir" && ac_dir=.
10145    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10146      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10147      if test -n "$file_magic_test_file"; then
10148	case $deplibs_check_method in
10149	"file_magic "*)
10150	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10151	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10152	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10153	    $EGREP "$file_magic_regex" > /dev/null; then
10154	    :
10155	  else
10156	    cat <<_LT_EOF 1>&2
10157
10158*** Warning: the command libtool uses to detect shared libraries,
10159*** $file_magic_cmd, produces output that libtool cannot recognize.
10160*** The result is that libtool may fail to recognize shared libraries
10161*** as such.  This will affect the creation of libtool libraries that
10162*** depend on shared libraries, but programs linked with such libtool
10163*** libraries will work regardless of this problem.  Nevertheless, you
10164*** may want to report the problem to your system manager and/or to
10165*** bug-libtool@gnu.org
10166
10167_LT_EOF
10168	  fi ;;
10169	esac
10170      fi
10171      break
10172    fi
10173  done
10174  IFS=$lt_save_ifs
10175  MAGIC_CMD=$lt_save_MAGIC_CMD
10176  ;;
10177esac
10178fi
10179
10180MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10181if test -n "$MAGIC_CMD"; then
10182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10183$as_echo "$MAGIC_CMD" >&6; }
10184else
10185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186$as_echo "no" >&6; }
10187fi
10188
10189
10190
10191
10192
10193if test -z "$lt_cv_path_MAGIC_CMD"; then
10194  if test -n "$ac_tool_prefix"; then
10195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10196$as_echo_n "checking for file... " >&6; }
10197if ${lt_cv_path_MAGIC_CMD+:} false; then :
10198  $as_echo_n "(cached) " >&6
10199else
10200  case $MAGIC_CMD in
10201[\\/*] |  ?:[\\/]*)
10202  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10203  ;;
10204*)
10205  lt_save_MAGIC_CMD=$MAGIC_CMD
10206  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10207  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10208  for ac_dir in $ac_dummy; do
10209    IFS=$lt_save_ifs
10210    test -z "$ac_dir" && ac_dir=.
10211    if test -f "$ac_dir/file"; then
10212      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10213      if test -n "$file_magic_test_file"; then
10214	case $deplibs_check_method in
10215	"file_magic "*)
10216	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10217	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10218	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10219	    $EGREP "$file_magic_regex" > /dev/null; then
10220	    :
10221	  else
10222	    cat <<_LT_EOF 1>&2
10223
10224*** Warning: the command libtool uses to detect shared libraries,
10225*** $file_magic_cmd, produces output that libtool cannot recognize.
10226*** The result is that libtool may fail to recognize shared libraries
10227*** as such.  This will affect the creation of libtool libraries that
10228*** depend on shared libraries, but programs linked with such libtool
10229*** libraries will work regardless of this problem.  Nevertheless, you
10230*** may want to report the problem to your system manager and/or to
10231*** bug-libtool@gnu.org
10232
10233_LT_EOF
10234	  fi ;;
10235	esac
10236      fi
10237      break
10238    fi
10239  done
10240  IFS=$lt_save_ifs
10241  MAGIC_CMD=$lt_save_MAGIC_CMD
10242  ;;
10243esac
10244fi
10245
10246MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10247if test -n "$MAGIC_CMD"; then
10248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10249$as_echo "$MAGIC_CMD" >&6; }
10250else
10251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252$as_echo "no" >&6; }
10253fi
10254
10255
10256  else
10257    MAGIC_CMD=:
10258  fi
10259fi
10260
10261  fi
10262  ;;
10263esac
10264
10265# Use C for the default configuration in the libtool script
10266
10267lt_save_CC=$CC
10268ac_ext=c
10269ac_cpp='$CPP $CPPFLAGS'
10270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10272ac_compiler_gnu=$ac_cv_c_compiler_gnu
10273
10274
10275# Source file extension for C test sources.
10276ac_ext=c
10277
10278# Object file extension for compiled C test sources.
10279objext=o
10280objext=$objext
10281
10282# Code to be used in simple compile tests
10283lt_simple_compile_test_code="int some_variable = 0;"
10284
10285# Code to be used in simple link tests
10286lt_simple_link_test_code='int main(){return(0);}'
10287
10288
10289
10290
10291
10292
10293
10294# If no C compiler was specified, use CC.
10295LTCC=${LTCC-"$CC"}
10296
10297# If no C compiler flags were specified, use CFLAGS.
10298LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10299
10300# Allow CC to be a program name with arguments.
10301compiler=$CC
10302
10303# Save the default compiler, since it gets overwritten when the other
10304# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10305compiler_DEFAULT=$CC
10306
10307# save warnings/boilerplate of simple test code
10308ac_outfile=conftest.$ac_objext
10309echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10310eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10311_lt_compiler_boilerplate=`cat conftest.err`
10312$RM conftest*
10313
10314ac_outfile=conftest.$ac_objext
10315echo "$lt_simple_link_test_code" >conftest.$ac_ext
10316eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10317_lt_linker_boilerplate=`cat conftest.err`
10318$RM -r conftest*
10319
10320
10321## CAVEAT EMPTOR:
10322## There is no encapsulation within the following macros, do not change
10323## the running order or otherwise move them around unless you know exactly
10324## what you are doing...
10325if test -n "$compiler"; then
10326
10327lt_prog_compiler_no_builtin_flag=
10328
10329if test yes = "$GCC"; then
10330  case $cc_basename in
10331  nvcc*)
10332    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10333  *)
10334    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10335  esac
10336
10337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10338$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10339if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10340  $as_echo_n "(cached) " >&6
10341else
10342  lt_cv_prog_compiler_rtti_exceptions=no
10343   ac_outfile=conftest.$ac_objext
10344   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10345   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10346   # Insert the option either (1) after the last *FLAGS variable, or
10347   # (2) before a word containing "conftest.", or (3) at the end.
10348   # Note that $ac_compile itself does not contain backslashes and begins
10349   # with a dollar sign (not a hyphen), so the echo should work correctly.
10350   # The option is referenced via a variable to avoid confusing sed.
10351   lt_compile=`echo "$ac_compile" | $SED \
10352   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10353   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10354   -e 's:$: $lt_compiler_flag:'`
10355   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10356   (eval "$lt_compile" 2>conftest.err)
10357   ac_status=$?
10358   cat conftest.err >&5
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   if (exit $ac_status) && test -s "$ac_outfile"; then
10361     # The compiler can only warn and ignore the option if not recognized
10362     # So say no if there are warnings other than the usual output.
10363     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10364     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10365     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10366       lt_cv_prog_compiler_rtti_exceptions=yes
10367     fi
10368   fi
10369   $RM conftest*
10370
10371fi
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10373$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10374
10375if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10376    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10377else
10378    :
10379fi
10380
10381fi
10382
10383
10384
10385
10386
10387
10388  lt_prog_compiler_wl=
10389lt_prog_compiler_pic=
10390lt_prog_compiler_static=
10391
10392
10393  if test yes = "$GCC"; then
10394    lt_prog_compiler_wl='-Wl,'
10395    lt_prog_compiler_static='-static'
10396
10397    case $host_os in
10398      aix*)
10399      # All AIX code is PIC.
10400      if test ia64 = "$host_cpu"; then
10401	# AIX 5 now supports IA64 processor
10402	lt_prog_compiler_static='-Bstatic'
10403      fi
10404      lt_prog_compiler_pic='-fPIC'
10405      ;;
10406
10407    amigaos*)
10408      case $host_cpu in
10409      powerpc)
10410            # see comment about AmigaOS4 .so support
10411            lt_prog_compiler_pic='-fPIC'
10412        ;;
10413      m68k)
10414            # FIXME: we need at least 68020 code to build shared libraries, but
10415            # adding the '-m68020' flag to GCC prevents building anything better,
10416            # like '-m68040'.
10417            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10418        ;;
10419      esac
10420      ;;
10421
10422    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10423      # PIC is the default for these OSes.
10424      ;;
10425
10426    mingw* | cygwin* | pw32* | os2* | cegcc*)
10427      # This hack is so that the source file can tell whether it is being
10428      # built for inclusion in a dll (and should export symbols for example).
10429      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10430      # (--disable-auto-import) libraries
10431      lt_prog_compiler_pic='-DDLL_EXPORT'
10432      case $host_os in
10433      os2*)
10434	lt_prog_compiler_static='$wl-static'
10435	;;
10436      esac
10437      ;;
10438
10439    darwin* | rhapsody*)
10440      # PIC is the default on this platform
10441      # Common symbols not allowed in MH_DYLIB files
10442      lt_prog_compiler_pic='-fno-common'
10443      ;;
10444
10445    haiku*)
10446      # PIC is the default for Haiku.
10447      # The "-static" flag exists, but is broken.
10448      lt_prog_compiler_static=
10449      ;;
10450
10451    hpux*)
10452      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10453      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10454      # sets the default TLS model and affects inlining.
10455      case $host_cpu in
10456      hppa*64*)
10457	# +Z the default
10458	;;
10459      *)
10460	lt_prog_compiler_pic='-fPIC'
10461	;;
10462      esac
10463      ;;
10464
10465    interix[3-9]*)
10466      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10467      # Instead, we relocate shared libraries at runtime.
10468      ;;
10469
10470    msdosdjgpp*)
10471      # Just because we use GCC doesn't mean we suddenly get shared libraries
10472      # on systems that don't support them.
10473      lt_prog_compiler_can_build_shared=no
10474      enable_shared=no
10475      ;;
10476
10477    *nto* | *qnx*)
10478      # QNX uses GNU C++, but need to define -shared option too, otherwise
10479      # it will coredump.
10480      lt_prog_compiler_pic='-fPIC -shared'
10481      ;;
10482
10483    sysv4*MP*)
10484      if test -d /usr/nec; then
10485	lt_prog_compiler_pic=-Kconform_pic
10486      fi
10487      ;;
10488
10489    *)
10490      lt_prog_compiler_pic='-fPIC'
10491      ;;
10492    esac
10493
10494    case $cc_basename in
10495    nvcc*) # Cuda Compiler Driver 2.2
10496      lt_prog_compiler_wl='-Xlinker '
10497      if test -n "$lt_prog_compiler_pic"; then
10498        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10499      fi
10500      ;;
10501    esac
10502  else
10503    # PORTME Check for flag to pass linker flags through the system compiler.
10504    case $host_os in
10505    aix*)
10506      lt_prog_compiler_wl='-Wl,'
10507      if test ia64 = "$host_cpu"; then
10508	# AIX 5 now supports IA64 processor
10509	lt_prog_compiler_static='-Bstatic'
10510      else
10511	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10512      fi
10513      ;;
10514
10515    darwin* | rhapsody*)
10516      # PIC is the default on this platform
10517      # Common symbols not allowed in MH_DYLIB files
10518      lt_prog_compiler_pic='-fno-common'
10519      case $cc_basename in
10520      nagfor*)
10521        # NAG Fortran compiler
10522        lt_prog_compiler_wl='-Wl,-Wl,,'
10523        lt_prog_compiler_pic='-PIC'
10524        lt_prog_compiler_static='-Bstatic'
10525        ;;
10526      esac
10527      ;;
10528
10529    mingw* | cygwin* | pw32* | os2* | cegcc*)
10530      # This hack is so that the source file can tell whether it is being
10531      # built for inclusion in a dll (and should export symbols for example).
10532      lt_prog_compiler_pic='-DDLL_EXPORT'
10533      case $host_os in
10534      os2*)
10535	lt_prog_compiler_static='$wl-static'
10536	;;
10537      esac
10538      ;;
10539
10540    hpux9* | hpux10* | hpux11*)
10541      lt_prog_compiler_wl='-Wl,'
10542      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10543      # not for PA HP-UX.
10544      case $host_cpu in
10545      hppa*64*|ia64*)
10546	# +Z the default
10547	;;
10548      *)
10549	lt_prog_compiler_pic='+Z'
10550	;;
10551      esac
10552      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10553      lt_prog_compiler_static='$wl-a ${wl}archive'
10554      ;;
10555
10556    irix5* | irix6* | nonstopux*)
10557      lt_prog_compiler_wl='-Wl,'
10558      # PIC (with -KPIC) is the default.
10559      lt_prog_compiler_static='-non_shared'
10560      ;;
10561
10562    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10563      case $cc_basename in
10564      # old Intel for x86_64, which still supported -KPIC.
10565      ecc*)
10566	lt_prog_compiler_wl='-Wl,'
10567	lt_prog_compiler_pic='-KPIC'
10568	lt_prog_compiler_static='-static'
10569        ;;
10570      # icc used to be incompatible with GCC.
10571      # ICC 10 doesn't accept -KPIC any more.
10572      icc* | ifort*)
10573	lt_prog_compiler_wl='-Wl,'
10574	lt_prog_compiler_pic='-fPIC'
10575	lt_prog_compiler_static='-static'
10576        ;;
10577      # Lahey Fortran 8.1.
10578      lf95*)
10579	lt_prog_compiler_wl='-Wl,'
10580	lt_prog_compiler_pic='--shared'
10581	lt_prog_compiler_static='--static'
10582	;;
10583      nagfor*)
10584	# NAG Fortran compiler
10585	lt_prog_compiler_wl='-Wl,-Wl,,'
10586	lt_prog_compiler_pic='-PIC'
10587	lt_prog_compiler_static='-Bstatic'
10588	;;
10589      tcc*)
10590	# Fabrice Bellard et al's Tiny C Compiler
10591	lt_prog_compiler_wl='-Wl,'
10592	lt_prog_compiler_pic='-fPIC'
10593	lt_prog_compiler_static='-static'
10594	;;
10595      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10596        # Portland Group compilers (*not* the Pentium gcc compiler,
10597	# which looks to be a dead project)
10598	lt_prog_compiler_wl='-Wl,'
10599	lt_prog_compiler_pic='-fpic'
10600	lt_prog_compiler_static='-Bstatic'
10601        ;;
10602      ccc*)
10603        lt_prog_compiler_wl='-Wl,'
10604        # All Alpha code is PIC.
10605        lt_prog_compiler_static='-non_shared'
10606        ;;
10607      xl* | bgxl* | bgf* | mpixl*)
10608	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10609	lt_prog_compiler_wl='-Wl,'
10610	lt_prog_compiler_pic='-qpic'
10611	lt_prog_compiler_static='-qstaticlink'
10612	;;
10613      *)
10614	case `$CC -V 2>&1 | sed 5q` in
10615	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10616	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10617	  lt_prog_compiler_pic='-KPIC'
10618	  lt_prog_compiler_static='-Bstatic'
10619	  lt_prog_compiler_wl=''
10620	  ;;
10621	*Sun\ F* | *Sun*Fortran*)
10622	  lt_prog_compiler_pic='-KPIC'
10623	  lt_prog_compiler_static='-Bstatic'
10624	  lt_prog_compiler_wl='-Qoption ld '
10625	  ;;
10626	*Sun\ C*)
10627	  # Sun C 5.9
10628	  lt_prog_compiler_pic='-KPIC'
10629	  lt_prog_compiler_static='-Bstatic'
10630	  lt_prog_compiler_wl='-Wl,'
10631	  ;;
10632        *Intel*\ [CF]*Compiler*)
10633	  lt_prog_compiler_wl='-Wl,'
10634	  lt_prog_compiler_pic='-fPIC'
10635	  lt_prog_compiler_static='-static'
10636	  ;;
10637	*Portland\ Group*)
10638	  lt_prog_compiler_wl='-Wl,'
10639	  lt_prog_compiler_pic='-fpic'
10640	  lt_prog_compiler_static='-Bstatic'
10641	  ;;
10642	esac
10643	;;
10644      esac
10645      ;;
10646
10647    newsos6)
10648      lt_prog_compiler_pic='-KPIC'
10649      lt_prog_compiler_static='-Bstatic'
10650      ;;
10651
10652    *nto* | *qnx*)
10653      # QNX uses GNU C++, but need to define -shared option too, otherwise
10654      # it will coredump.
10655      lt_prog_compiler_pic='-fPIC -shared'
10656      ;;
10657
10658    osf3* | osf4* | osf5*)
10659      lt_prog_compiler_wl='-Wl,'
10660      # All OSF/1 code is PIC.
10661      lt_prog_compiler_static='-non_shared'
10662      ;;
10663
10664    rdos*)
10665      lt_prog_compiler_static='-non_shared'
10666      ;;
10667
10668    solaris*)
10669      lt_prog_compiler_pic='-KPIC'
10670      lt_prog_compiler_static='-Bstatic'
10671      case $cc_basename in
10672      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10673	lt_prog_compiler_wl='-Qoption ld ';;
10674      *)
10675	lt_prog_compiler_wl='-Wl,';;
10676      esac
10677      ;;
10678
10679    sunos4*)
10680      lt_prog_compiler_wl='-Qoption ld '
10681      lt_prog_compiler_pic='-PIC'
10682      lt_prog_compiler_static='-Bstatic'
10683      ;;
10684
10685    sysv4 | sysv4.2uw2* | sysv4.3*)
10686      lt_prog_compiler_wl='-Wl,'
10687      lt_prog_compiler_pic='-KPIC'
10688      lt_prog_compiler_static='-Bstatic'
10689      ;;
10690
10691    sysv4*MP*)
10692      if test -d /usr/nec; then
10693	lt_prog_compiler_pic='-Kconform_pic'
10694	lt_prog_compiler_static='-Bstatic'
10695      fi
10696      ;;
10697
10698    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10699      lt_prog_compiler_wl='-Wl,'
10700      lt_prog_compiler_pic='-KPIC'
10701      lt_prog_compiler_static='-Bstatic'
10702      ;;
10703
10704    unicos*)
10705      lt_prog_compiler_wl='-Wl,'
10706      lt_prog_compiler_can_build_shared=no
10707      ;;
10708
10709    uts4*)
10710      lt_prog_compiler_pic='-pic'
10711      lt_prog_compiler_static='-Bstatic'
10712      ;;
10713
10714    *)
10715      lt_prog_compiler_can_build_shared=no
10716      ;;
10717    esac
10718  fi
10719
10720case $host_os in
10721  # For platforms that do not support PIC, -DPIC is meaningless:
10722  *djgpp*)
10723    lt_prog_compiler_pic=
10724    ;;
10725  *)
10726    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10727    ;;
10728esac
10729
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10731$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10732if ${lt_cv_prog_compiler_pic+:} false; then :
10733  $as_echo_n "(cached) " >&6
10734else
10735  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10736fi
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10738$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10739lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10740
10741#
10742# Check to make sure the PIC flag actually works.
10743#
10744if test -n "$lt_prog_compiler_pic"; then
10745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10746$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10747if ${lt_cv_prog_compiler_pic_works+:} false; then :
10748  $as_echo_n "(cached) " >&6
10749else
10750  lt_cv_prog_compiler_pic_works=no
10751   ac_outfile=conftest.$ac_objext
10752   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10753   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10754   # Insert the option either (1) after the last *FLAGS variable, or
10755   # (2) before a word containing "conftest.", or (3) at the end.
10756   # Note that $ac_compile itself does not contain backslashes and begins
10757   # with a dollar sign (not a hyphen), so the echo should work correctly.
10758   # The option is referenced via a variable to avoid confusing sed.
10759   lt_compile=`echo "$ac_compile" | $SED \
10760   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10761   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10762   -e 's:$: $lt_compiler_flag:'`
10763   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10764   (eval "$lt_compile" 2>conftest.err)
10765   ac_status=$?
10766   cat conftest.err >&5
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   if (exit $ac_status) && test -s "$ac_outfile"; then
10769     # The compiler can only warn and ignore the option if not recognized
10770     # So say no if there are warnings other than the usual output.
10771     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10772     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10773     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10774       lt_cv_prog_compiler_pic_works=yes
10775     fi
10776   fi
10777   $RM conftest*
10778
10779fi
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10781$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10782
10783if test yes = "$lt_cv_prog_compiler_pic_works"; then
10784    case $lt_prog_compiler_pic in
10785     "" | " "*) ;;
10786     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10787     esac
10788else
10789    lt_prog_compiler_pic=
10790     lt_prog_compiler_can_build_shared=no
10791fi
10792
10793fi
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805#
10806# Check to make sure the static flag actually works.
10807#
10808wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10810$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10811if ${lt_cv_prog_compiler_static_works+:} false; then :
10812  $as_echo_n "(cached) " >&6
10813else
10814  lt_cv_prog_compiler_static_works=no
10815   save_LDFLAGS=$LDFLAGS
10816   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10817   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10818   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10819     # The linker can only warn and ignore the option if not recognized
10820     # So say no if there are warnings
10821     if test -s conftest.err; then
10822       # Append any errors to the config.log.
10823       cat conftest.err 1>&5
10824       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10825       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10826       if diff conftest.exp conftest.er2 >/dev/null; then
10827         lt_cv_prog_compiler_static_works=yes
10828       fi
10829     else
10830       lt_cv_prog_compiler_static_works=yes
10831     fi
10832   fi
10833   $RM -r conftest*
10834   LDFLAGS=$save_LDFLAGS
10835
10836fi
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10838$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10839
10840if test yes = "$lt_cv_prog_compiler_static_works"; then
10841    :
10842else
10843    lt_prog_compiler_static=
10844fi
10845
10846
10847
10848
10849
10850
10851
10852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10854if ${lt_cv_prog_compiler_c_o+:} false; then :
10855  $as_echo_n "(cached) " >&6
10856else
10857  lt_cv_prog_compiler_c_o=no
10858   $RM -r conftest 2>/dev/null
10859   mkdir conftest
10860   cd conftest
10861   mkdir out
10862   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10863
10864   lt_compiler_flag="-o out/conftest2.$ac_objext"
10865   # Insert the option either (1) after the last *FLAGS variable, or
10866   # (2) before a word containing "conftest.", or (3) at the end.
10867   # Note that $ac_compile itself does not contain backslashes and begins
10868   # with a dollar sign (not a hyphen), so the echo should work correctly.
10869   lt_compile=`echo "$ac_compile" | $SED \
10870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10872   -e 's:$: $lt_compiler_flag:'`
10873   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10874   (eval "$lt_compile" 2>out/conftest.err)
10875   ac_status=$?
10876   cat out/conftest.err >&5
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10879   then
10880     # The compiler can only warn and ignore the option if not recognized
10881     # So say no if there are warnings
10882     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10883     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10884     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10885       lt_cv_prog_compiler_c_o=yes
10886     fi
10887   fi
10888   chmod u+w . 2>&5
10889   $RM conftest*
10890   # SGI C++ compiler will create directory out/ii_files/ for
10891   # template instantiation
10892   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10893   $RM out/* && rmdir out
10894   cd ..
10895   $RM -r conftest
10896   $RM conftest*
10897
10898fi
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10900$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10901
10902
10903
10904
10905
10906
10907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10909if ${lt_cv_prog_compiler_c_o+:} false; then :
10910  $as_echo_n "(cached) " >&6
10911else
10912  lt_cv_prog_compiler_c_o=no
10913   $RM -r conftest 2>/dev/null
10914   mkdir conftest
10915   cd conftest
10916   mkdir out
10917   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10918
10919   lt_compiler_flag="-o out/conftest2.$ac_objext"
10920   # Insert the option either (1) after the last *FLAGS variable, or
10921   # (2) before a word containing "conftest.", or (3) at the end.
10922   # Note that $ac_compile itself does not contain backslashes and begins
10923   # with a dollar sign (not a hyphen), so the echo should work correctly.
10924   lt_compile=`echo "$ac_compile" | $SED \
10925   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10926   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10927   -e 's:$: $lt_compiler_flag:'`
10928   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10929   (eval "$lt_compile" 2>out/conftest.err)
10930   ac_status=$?
10931   cat out/conftest.err >&5
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10934   then
10935     # The compiler can only warn and ignore the option if not recognized
10936     # So say no if there are warnings
10937     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10938     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10939     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10940       lt_cv_prog_compiler_c_o=yes
10941     fi
10942   fi
10943   chmod u+w . 2>&5
10944   $RM conftest*
10945   # SGI C++ compiler will create directory out/ii_files/ for
10946   # template instantiation
10947   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10948   $RM out/* && rmdir out
10949   cd ..
10950   $RM -r conftest
10951   $RM conftest*
10952
10953fi
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10955$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10956
10957
10958
10959
10960hard_links=nottested
10961if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10962  # do not overwrite the value of need_locks provided by the user
10963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10964$as_echo_n "checking if we can lock with hard links... " >&6; }
10965  hard_links=yes
10966  $RM conftest*
10967  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10968  touch conftest.a
10969  ln conftest.a conftest.b 2>&5 || hard_links=no
10970  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10972$as_echo "$hard_links" >&6; }
10973  if test no = "$hard_links"; then
10974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10975$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10976    need_locks=warn
10977  fi
10978else
10979  need_locks=no
10980fi
10981
10982
10983
10984
10985
10986
10987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10988$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10989
10990  runpath_var=
10991  allow_undefined_flag=
10992  always_export_symbols=no
10993  archive_cmds=
10994  archive_expsym_cmds=
10995  compiler_needs_object=no
10996  enable_shared_with_static_runtimes=no
10997  export_dynamic_flag_spec=
10998  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10999  hardcode_automatic=no
11000  hardcode_direct=no
11001  hardcode_direct_absolute=no
11002  hardcode_libdir_flag_spec=
11003  hardcode_libdir_separator=
11004  hardcode_minus_L=no
11005  hardcode_shlibpath_var=unsupported
11006  inherit_rpath=no
11007  link_all_deplibs=unknown
11008  module_cmds=
11009  module_expsym_cmds=
11010  old_archive_from_new_cmds=
11011  old_archive_from_expsyms_cmds=
11012  thread_safe_flag_spec=
11013  whole_archive_flag_spec=
11014  # include_expsyms should be a list of space-separated symbols to be *always*
11015  # included in the symbol list
11016  include_expsyms=
11017  # exclude_expsyms can be an extended regexp of symbols to exclude
11018  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11019  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11020  # as well as any symbol that contains 'd'.
11021  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11022  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11023  # platforms (ab)use it in PIC code, but their linkers get confused if
11024  # the symbol is explicitly referenced.  Since portable code cannot
11025  # rely on this symbol name, it's probably fine to never include it in
11026  # preloaded symbol tables.
11027  # Exclude shared library initialization/finalization symbols.
11028  extract_expsyms_cmds=
11029
11030  case $host_os in
11031  cygwin* | mingw* | pw32* | cegcc*)
11032    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11033    # When not using gcc, we currently assume that we are using
11034    # Microsoft Visual C++.
11035    if test yes != "$GCC"; then
11036      with_gnu_ld=no
11037    fi
11038    ;;
11039  interix*)
11040    # we just hope/assume this is gcc and not c89 (= MSVC++)
11041    with_gnu_ld=yes
11042    ;;
11043  openbsd* | bitrig*)
11044    with_gnu_ld=no
11045    ;;
11046  esac
11047
11048  ld_shlibs=yes
11049
11050  # On some targets, GNU ld is compatible enough with the native linker
11051  # that we're better off using the native interface for both.
11052  lt_use_gnu_ld_interface=no
11053  if test yes = "$with_gnu_ld"; then
11054    case $host_os in
11055      aix*)
11056	# The AIX port of GNU ld has always aspired to compatibility
11057	# with the native linker.  However, as the warning in the GNU ld
11058	# block says, versions before 2.19.5* couldn't really create working
11059	# shared libraries, regardless of the interface used.
11060	case `$LD -v 2>&1` in
11061	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11062	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11063	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11064	  *)
11065	    lt_use_gnu_ld_interface=yes
11066	    ;;
11067	esac
11068	;;
11069      *)
11070	lt_use_gnu_ld_interface=yes
11071	;;
11072    esac
11073  fi
11074
11075  if test yes = "$lt_use_gnu_ld_interface"; then
11076    # If archive_cmds runs LD, not CC, wlarc should be empty
11077    wlarc='$wl'
11078
11079    # Set some defaults for GNU ld with shared library support. These
11080    # are reset later if shared libraries are not supported. Putting them
11081    # here allows them to be overridden if necessary.
11082    runpath_var=LD_RUN_PATH
11083    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11084    export_dynamic_flag_spec='$wl--export-dynamic'
11085    # ancient GNU ld didn't support --whole-archive et. al.
11086    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11087      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11088    else
11089      whole_archive_flag_spec=
11090    fi
11091    supports_anon_versioning=no
11092    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11093      *GNU\ gold*) supports_anon_versioning=yes ;;
11094      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11095      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11096      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11097      *\ 2.11.*) ;; # other 2.11 versions
11098      *) supports_anon_versioning=yes ;;
11099    esac
11100
11101    # See if GNU ld supports shared libraries.
11102    case $host_os in
11103    aix[3-9]*)
11104      # On AIX/PPC, the GNU linker is very broken
11105      if test ia64 != "$host_cpu"; then
11106	ld_shlibs=no
11107	cat <<_LT_EOF 1>&2
11108
11109*** Warning: the GNU linker, at least up to release 2.19, is reported
11110*** to be unable to reliably create shared libraries on AIX.
11111*** Therefore, libtool is disabling shared libraries support.  If you
11112*** really care for shared libraries, you may want to install binutils
11113*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11114*** You will then need to restart the configuration process.
11115
11116_LT_EOF
11117      fi
11118      ;;
11119
11120    amigaos*)
11121      case $host_cpu in
11122      powerpc)
11123            # see comment about AmigaOS4 .so support
11124            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11125            archive_expsym_cmds=''
11126        ;;
11127      m68k)
11128            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)'
11129            hardcode_libdir_flag_spec='-L$libdir'
11130            hardcode_minus_L=yes
11131        ;;
11132      esac
11133      ;;
11134
11135    beos*)
11136      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11137	allow_undefined_flag=unsupported
11138	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11139	# support --undefined.  This deserves some investigation.  FIXME
11140	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11141      else
11142	ld_shlibs=no
11143      fi
11144      ;;
11145
11146    cygwin* | mingw* | pw32* | cegcc*)
11147      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11148      # as there is no search path for DLLs.
11149      hardcode_libdir_flag_spec='-L$libdir'
11150      export_dynamic_flag_spec='$wl--export-all-symbols'
11151      allow_undefined_flag=unsupported
11152      always_export_symbols=no
11153      enable_shared_with_static_runtimes=yes
11154      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11155      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11156
11157      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11158        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11159	# If the export-symbols file already is a .def file, use it as
11160	# is; otherwise, prepend EXPORTS...
11161	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11162          cp $export_symbols $output_objdir/$soname.def;
11163        else
11164          echo EXPORTS > $output_objdir/$soname.def;
11165          cat $export_symbols >> $output_objdir/$soname.def;
11166        fi~
11167        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11168      else
11169	ld_shlibs=no
11170      fi
11171      ;;
11172
11173    haiku*)
11174      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11175      link_all_deplibs=yes
11176      ;;
11177
11178    os2*)
11179      hardcode_libdir_flag_spec='-L$libdir'
11180      hardcode_minus_L=yes
11181      allow_undefined_flag=unsupported
11182      shrext_cmds=.dll
11183      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11184	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11185	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11186	$ECHO EXPORTS >> $output_objdir/$libname.def~
11187	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11188	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11189	emximp -o $lib $output_objdir/$libname.def'
11190      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11191	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11192	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11193	$ECHO EXPORTS >> $output_objdir/$libname.def~
11194	prefix_cmds="$SED"~
11195	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11196	  prefix_cmds="$prefix_cmds -e 1d";
11197	fi~
11198	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11199	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11200	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11201	emximp -o $lib $output_objdir/$libname.def'
11202      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11203      enable_shared_with_static_runtimes=yes
11204      ;;
11205
11206    interix[3-9]*)
11207      hardcode_direct=no
11208      hardcode_shlibpath_var=no
11209      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11210      export_dynamic_flag_spec='$wl-E'
11211      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11212      # Instead, shared libraries are loaded at an image base (0x10000000 by
11213      # default) and relocated if they conflict, which is a slow very memory
11214      # consuming and fragmenting process.  To avoid this, we pick a random,
11215      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11216      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11217      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11218      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'
11219      ;;
11220
11221    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11222      tmp_diet=no
11223      if test linux-dietlibc = "$host_os"; then
11224	case $cc_basename in
11225	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11226	esac
11227      fi
11228      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11229	 && test no = "$tmp_diet"
11230      then
11231	tmp_addflag=' $pic_flag'
11232	tmp_sharedflag='-shared'
11233	case $cc_basename,$host_cpu in
11234        pgcc*)				# Portland Group C compiler
11235	  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'
11236	  tmp_addflag=' $pic_flag'
11237	  ;;
11238	pgf77* | pgf90* | pgf95* | pgfortran*)
11239					# Portland Group f77 and f90 compilers
11240	  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'
11241	  tmp_addflag=' $pic_flag -Mnomain' ;;
11242	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11243	  tmp_addflag=' -i_dynamic' ;;
11244	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11245	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11246	ifc* | ifort*)			# Intel Fortran compiler
11247	  tmp_addflag=' -nofor_main' ;;
11248	lf95*)				# Lahey Fortran 8.1
11249	  whole_archive_flag_spec=
11250	  tmp_sharedflag='--shared' ;;
11251        nagfor*)                        # NAGFOR 5.3
11252          tmp_sharedflag='-Wl,-shared' ;;
11253	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11254	  tmp_sharedflag='-qmkshrobj'
11255	  tmp_addflag= ;;
11256	nvcc*)	# Cuda Compiler Driver 2.2
11257	  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'
11258	  compiler_needs_object=yes
11259	  ;;
11260	esac
11261	case `$CC -V 2>&1 | sed 5q` in
11262	*Sun\ C*)			# Sun C 5.9
11263	  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'
11264	  compiler_needs_object=yes
11265	  tmp_sharedflag='-G' ;;
11266	*Sun\ F*)			# Sun Fortran 8.3
11267	  tmp_sharedflag='-G' ;;
11268	esac
11269	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11270
11271        if test yes = "$supports_anon_versioning"; then
11272          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11273            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11274            echo "local: *; };" >> $output_objdir/$libname.ver~
11275            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11276        fi
11277
11278	case $cc_basename in
11279	tcc*)
11280	  export_dynamic_flag_spec='-rdynamic'
11281	  ;;
11282	xlf* | bgf* | bgxlf* | mpixlf*)
11283	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11284	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11285	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11286	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11287	  if test yes = "$supports_anon_versioning"; then
11288	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11289              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11290              echo "local: *; };" >> $output_objdir/$libname.ver~
11291              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11292	  fi
11293	  ;;
11294	esac
11295      else
11296        ld_shlibs=no
11297      fi
11298      ;;
11299
11300    netbsd*)
11301      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11302	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11303	wlarc=
11304      else
11305	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11306	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11307      fi
11308      ;;
11309
11310    solaris*)
11311      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11312	ld_shlibs=no
11313	cat <<_LT_EOF 1>&2
11314
11315*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11316*** create shared libraries on Solaris systems.  Therefore, libtool
11317*** is disabling shared libraries support.  We urge you to upgrade GNU
11318*** binutils to release 2.9.1 or newer.  Another option is to modify
11319*** your PATH or compiler configuration so that the native linker is
11320*** used, and then restart.
11321
11322_LT_EOF
11323      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11324	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11325	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11326      else
11327	ld_shlibs=no
11328      fi
11329      ;;
11330
11331    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11332      case `$LD -v 2>&1` in
11333        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11334	ld_shlibs=no
11335	cat <<_LT_EOF 1>&2
11336
11337*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11338*** reliably create shared libraries on SCO systems.  Therefore, libtool
11339*** is disabling shared libraries support.  We urge you to upgrade GNU
11340*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11341*** your PATH or compiler configuration so that the native linker is
11342*** used, and then restart.
11343
11344_LT_EOF
11345	;;
11346	*)
11347	  # For security reasons, it is highly recommended that you always
11348	  # use absolute paths for naming shared libraries, and exclude the
11349	  # DT_RUNPATH tag from executables and libraries.  But doing so
11350	  # requires that you compile everything twice, which is a pain.
11351	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11352	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11353	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11354	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11355	  else
11356	    ld_shlibs=no
11357	  fi
11358	;;
11359      esac
11360      ;;
11361
11362    sunos4*)
11363      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11364      wlarc=
11365      hardcode_direct=yes
11366      hardcode_shlibpath_var=no
11367      ;;
11368
11369    *)
11370      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11371	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11372	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11373      else
11374	ld_shlibs=no
11375      fi
11376      ;;
11377    esac
11378
11379    if test no = "$ld_shlibs"; then
11380      runpath_var=
11381      hardcode_libdir_flag_spec=
11382      export_dynamic_flag_spec=
11383      whole_archive_flag_spec=
11384    fi
11385  else
11386    # PORTME fill in a description of your system's linker (not GNU ld)
11387    case $host_os in
11388    aix3*)
11389      allow_undefined_flag=unsupported
11390      always_export_symbols=yes
11391      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'
11392      # Note: this linker hardcodes the directories in LIBPATH if there
11393      # are no directories specified by -L.
11394      hardcode_minus_L=yes
11395      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11396	# Neither direct hardcoding nor static linking is supported with a
11397	# broken collect2.
11398	hardcode_direct=unsupported
11399      fi
11400      ;;
11401
11402    aix[4-9]*)
11403      if test ia64 = "$host_cpu"; then
11404	# On IA64, the linker does run time linking by default, so we don't
11405	# have to do anything special.
11406	aix_use_runtimelinking=no
11407	exp_sym_flag='-Bexport'
11408	no_entry_flag=
11409      else
11410	# If we're using GNU nm, then we don't want the "-C" option.
11411	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11412	# Without the "-l" option, or with the "-B" option, AIX nm treats
11413	# weak defined symbols like other global defined symbols, whereas
11414	# GNU nm marks them as "W".
11415	# While the 'weak' keyword is ignored in the Export File, we need
11416	# it in the Import File for the 'aix-soname' feature, so we have
11417	# to replace the "-B" option with "-P" for AIX nm.
11418	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11419	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11420	else
11421	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11422	fi
11423	aix_use_runtimelinking=no
11424
11425	# Test if we are trying to use run time linking or normal
11426	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11427	# have runtime linking enabled, and use it for executables.
11428	# For shared libraries, we enable/disable runtime linking
11429	# depending on the kind of the shared library created -
11430	# when "with_aix_soname,aix_use_runtimelinking" is:
11431	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11432	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11433	#            lib.a           static archive
11434	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11435	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11436	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11437	#            lib.a(lib.so.V) shared, rtl:no
11438	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11439	#            lib.a           static archive
11440	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11441	  for ld_flag in $LDFLAGS; do
11442	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11443	    aix_use_runtimelinking=yes
11444	    break
11445	  fi
11446	  done
11447	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11448	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11449	    # so we don't have lib.a shared libs to link our executables.
11450	    # We have to force runtime linking in this case.
11451	    aix_use_runtimelinking=yes
11452	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11453	  fi
11454	  ;;
11455	esac
11456
11457	exp_sym_flag='-bexport'
11458	no_entry_flag='-bnoentry'
11459      fi
11460
11461      # When large executables or shared objects are built, AIX ld can
11462      # have problems creating the table of contents.  If linking a library
11463      # or program results in "error TOC overflow" add -mminimal-toc to
11464      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11465      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11466
11467      archive_cmds=''
11468      hardcode_direct=yes
11469      hardcode_direct_absolute=yes
11470      hardcode_libdir_separator=':'
11471      link_all_deplibs=yes
11472      file_list_spec='$wl-f,'
11473      case $with_aix_soname,$aix_use_runtimelinking in
11474      aix,*) ;; # traditional, no import file
11475      svr4,* | *,yes) # use import file
11476	# The Import File defines what to hardcode.
11477	hardcode_direct=no
11478	hardcode_direct_absolute=no
11479	;;
11480      esac
11481
11482      if test yes = "$GCC"; then
11483	case $host_os in aix4.[012]|aix4.[012].*)
11484	# We only want to do this on AIX 4.2 and lower, the check
11485	# below for broken collect2 doesn't work under 4.3+
11486	  collect2name=`$CC -print-prog-name=collect2`
11487	  if test -f "$collect2name" &&
11488	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11489	  then
11490	  # We have reworked collect2
11491	  :
11492	  else
11493	  # We have old collect2
11494	  hardcode_direct=unsupported
11495	  # It fails to find uninstalled libraries when the uninstalled
11496	  # path is not listed in the libpath.  Setting hardcode_minus_L
11497	  # to unsupported forces relinking
11498	  hardcode_minus_L=yes
11499	  hardcode_libdir_flag_spec='-L$libdir'
11500	  hardcode_libdir_separator=
11501	  fi
11502	  ;;
11503	esac
11504	shared_flag='-shared'
11505	if test yes = "$aix_use_runtimelinking"; then
11506	  shared_flag="$shared_flag "'$wl-G'
11507	fi
11508	# Need to ensure runtime linking is disabled for the traditional
11509	# shared library, or the linker may eventually find shared libraries
11510	# /with/ Import File - we do not want to mix them.
11511	shared_flag_aix='-shared'
11512	shared_flag_svr4='-shared $wl-G'
11513      else
11514	# not using gcc
11515	if test ia64 = "$host_cpu"; then
11516	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11517	# chokes on -Wl,-G. The following line is correct:
11518	  shared_flag='-G'
11519	else
11520	  if test yes = "$aix_use_runtimelinking"; then
11521	    shared_flag='$wl-G'
11522	  else
11523	    shared_flag='$wl-bM:SRE'
11524	  fi
11525	  shared_flag_aix='$wl-bM:SRE'
11526	  shared_flag_svr4='$wl-G'
11527	fi
11528      fi
11529
11530      export_dynamic_flag_spec='$wl-bexpall'
11531      # It seems that -bexpall does not export symbols beginning with
11532      # underscore (_), so it is better to generate a list of symbols to export.
11533      always_export_symbols=yes
11534      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11535	# Warning - without using the other runtime loading flags (-brtl),
11536	# -berok will link without error, but may produce a broken library.
11537	allow_undefined_flag='-berok'
11538        # Determine the default libpath from the value encoded in an
11539        # empty executable.
11540        if test set = "${lt_cv_aix_libpath+set}"; then
11541  aix_libpath=$lt_cv_aix_libpath
11542else
11543  if ${lt_cv_aix_libpath_+:} false; then :
11544  $as_echo_n "(cached) " >&6
11545else
11546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547/* end confdefs.h.  */
11548
11549int
11550main ()
11551{
11552
11553  ;
11554  return 0;
11555}
11556_ACEOF
11557if ac_fn_c_try_link "$LINENO"; then :
11558
11559  lt_aix_libpath_sed='
11560      /Import File Strings/,/^$/ {
11561	  /^0/ {
11562	      s/^0  *\([^ ]*\) *$/\1/
11563	      p
11564	  }
11565      }'
11566  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11567  # Check for a 64-bit object if we didn't find anything.
11568  if test -z "$lt_cv_aix_libpath_"; then
11569    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11570  fi
11571fi
11572rm -f core conftest.err conftest.$ac_objext \
11573    conftest$ac_exeext conftest.$ac_ext
11574  if test -z "$lt_cv_aix_libpath_"; then
11575    lt_cv_aix_libpath_=/usr/lib:/lib
11576  fi
11577
11578fi
11579
11580  aix_libpath=$lt_cv_aix_libpath_
11581fi
11582
11583        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11584        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11585      else
11586	if test ia64 = "$host_cpu"; then
11587	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11588	  allow_undefined_flag="-z nodefs"
11589	  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"
11590	else
11591	 # Determine the default libpath from the value encoded in an
11592	 # empty executable.
11593	 if test set = "${lt_cv_aix_libpath+set}"; then
11594  aix_libpath=$lt_cv_aix_libpath
11595else
11596  if ${lt_cv_aix_libpath_+:} false; then :
11597  $as_echo_n "(cached) " >&6
11598else
11599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600/* end confdefs.h.  */
11601
11602int
11603main ()
11604{
11605
11606  ;
11607  return 0;
11608}
11609_ACEOF
11610if ac_fn_c_try_link "$LINENO"; then :
11611
11612  lt_aix_libpath_sed='
11613      /Import File Strings/,/^$/ {
11614	  /^0/ {
11615	      s/^0  *\([^ ]*\) *$/\1/
11616	      p
11617	  }
11618      }'
11619  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11620  # Check for a 64-bit object if we didn't find anything.
11621  if test -z "$lt_cv_aix_libpath_"; then
11622    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11623  fi
11624fi
11625rm -f core conftest.err conftest.$ac_objext \
11626    conftest$ac_exeext conftest.$ac_ext
11627  if test -z "$lt_cv_aix_libpath_"; then
11628    lt_cv_aix_libpath_=/usr/lib:/lib
11629  fi
11630
11631fi
11632
11633  aix_libpath=$lt_cv_aix_libpath_
11634fi
11635
11636	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11637	  # Warning - without using the other run time loading flags,
11638	  # -berok will link without error, but may produce a broken library.
11639	  no_undefined_flag=' $wl-bernotok'
11640	  allow_undefined_flag=' $wl-berok'
11641	  if test yes = "$with_gnu_ld"; then
11642	    # We only use this code for GNU lds that support --whole-archive.
11643	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11644	  else
11645	    # Exported symbols can be pulled into shared objects from archives
11646	    whole_archive_flag_spec='$convenience'
11647	  fi
11648	  archive_cmds_need_lc=yes
11649	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11650	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11651	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11652	  if test svr4 != "$with_aix_soname"; then
11653	    # This is similar to how AIX traditionally builds its shared libraries.
11654	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11655	  fi
11656	  if test aix != "$with_aix_soname"; then
11657	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11658	  else
11659	    # used by -dlpreopen to get the symbols
11660	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11661	  fi
11662	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11663	fi
11664      fi
11665      ;;
11666
11667    amigaos*)
11668      case $host_cpu in
11669      powerpc)
11670            # see comment about AmigaOS4 .so support
11671            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11672            archive_expsym_cmds=''
11673        ;;
11674      m68k)
11675            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)'
11676            hardcode_libdir_flag_spec='-L$libdir'
11677            hardcode_minus_L=yes
11678        ;;
11679      esac
11680      ;;
11681
11682    bsdi[45]*)
11683      export_dynamic_flag_spec=-rdynamic
11684      ;;
11685
11686    cygwin* | mingw* | pw32* | cegcc*)
11687      # When not using gcc, we currently assume that we are using
11688      # Microsoft Visual C++.
11689      # hardcode_libdir_flag_spec is actually meaningless, as there is
11690      # no search path for DLLs.
11691      case $cc_basename in
11692      cl*)
11693	# Native MSVC
11694	hardcode_libdir_flag_spec=' '
11695	allow_undefined_flag=unsupported
11696	always_export_symbols=yes
11697	file_list_spec='@'
11698	# Tell ltmain to make .lib files, not .a files.
11699	libext=lib
11700	# Tell ltmain to make .dll files, not .so files.
11701	shrext_cmds=.dll
11702	# FIXME: Setting linknames here is a bad hack.
11703	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11704	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11705            cp "$export_symbols" "$output_objdir/$soname.def";
11706            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11707          else
11708            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11709          fi~
11710          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11711          linknames='
11712	# The linker will not automatically build a static lib if we build a DLL.
11713	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11714	enable_shared_with_static_runtimes=yes
11715	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11716	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11717	# Don't use ranlib
11718	old_postinstall_cmds='chmod 644 $oldlib'
11719	postlink_cmds='lt_outputfile="@OUTPUT@"~
11720          lt_tool_outputfile="@TOOL_OUTPUT@"~
11721          case $lt_outputfile in
11722            *.exe|*.EXE) ;;
11723            *)
11724              lt_outputfile=$lt_outputfile.exe
11725              lt_tool_outputfile=$lt_tool_outputfile.exe
11726              ;;
11727          esac~
11728          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11729            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11730            $RM "$lt_outputfile.manifest";
11731          fi'
11732	;;
11733      *)
11734	# Assume MSVC wrapper
11735	hardcode_libdir_flag_spec=' '
11736	allow_undefined_flag=unsupported
11737	# Tell ltmain to make .lib files, not .a files.
11738	libext=lib
11739	# Tell ltmain to make .dll files, not .so files.
11740	shrext_cmds=.dll
11741	# FIXME: Setting linknames here is a bad hack.
11742	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11743	# The linker will automatically build a .lib file if we build a DLL.
11744	old_archive_from_new_cmds='true'
11745	# FIXME: Should let the user specify the lib program.
11746	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11747	enable_shared_with_static_runtimes=yes
11748	;;
11749      esac
11750      ;;
11751
11752    darwin* | rhapsody*)
11753
11754
11755  archive_cmds_need_lc=no
11756  hardcode_direct=no
11757  hardcode_automatic=yes
11758  hardcode_shlibpath_var=unsupported
11759  if test yes = "$lt_cv_ld_force_load"; then
11760    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\"`'
11761
11762  else
11763    whole_archive_flag_spec=''
11764  fi
11765  link_all_deplibs=yes
11766  allow_undefined_flag=$_lt_dar_allow_undefined
11767  case $cc_basename in
11768     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11769     *) _lt_dar_can_shared=$GCC ;;
11770  esac
11771  if test yes = "$_lt_dar_can_shared"; then
11772    output_verbose_link_cmd=func_echo_all
11773    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11774    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11775    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"
11776    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"
11777
11778  else
11779  ld_shlibs=no
11780  fi
11781
11782      ;;
11783
11784    dgux*)
11785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11786      hardcode_libdir_flag_spec='-L$libdir'
11787      hardcode_shlibpath_var=no
11788      ;;
11789
11790    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11791    # support.  Future versions do this automatically, but an explicit c++rt0.o
11792    # does not break anything, and helps significantly (at the cost of a little
11793    # extra space).
11794    freebsd2.2*)
11795      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11796      hardcode_libdir_flag_spec='-R$libdir'
11797      hardcode_direct=yes
11798      hardcode_shlibpath_var=no
11799      ;;
11800
11801    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11802    freebsd2.*)
11803      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11804      hardcode_direct=yes
11805      hardcode_minus_L=yes
11806      hardcode_shlibpath_var=no
11807      ;;
11808
11809    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11810    freebsd* | dragonfly*)
11811      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11812      hardcode_libdir_flag_spec='-R$libdir'
11813      hardcode_direct=yes
11814      hardcode_shlibpath_var=no
11815      ;;
11816
11817    hpux9*)
11818      if test yes = "$GCC"; then
11819	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11820      else
11821	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11822      fi
11823      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11824      hardcode_libdir_separator=:
11825      hardcode_direct=yes
11826
11827      # hardcode_minus_L: Not really in the search PATH,
11828      # but as the default location of the library.
11829      hardcode_minus_L=yes
11830      export_dynamic_flag_spec='$wl-E'
11831      ;;
11832
11833    hpux10*)
11834      if test yes,no = "$GCC,$with_gnu_ld"; then
11835	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11836      else
11837	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11838      fi
11839      if test no = "$with_gnu_ld"; then
11840	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11841	hardcode_libdir_separator=:
11842	hardcode_direct=yes
11843	hardcode_direct_absolute=yes
11844	export_dynamic_flag_spec='$wl-E'
11845	# hardcode_minus_L: Not really in the search PATH,
11846	# but as the default location of the library.
11847	hardcode_minus_L=yes
11848      fi
11849      ;;
11850
11851    hpux11*)
11852      if test yes,no = "$GCC,$with_gnu_ld"; then
11853	case $host_cpu in
11854	hppa*64*)
11855	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11856	  ;;
11857	ia64*)
11858	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11859	  ;;
11860	*)
11861	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11862	  ;;
11863	esac
11864      else
11865	case $host_cpu in
11866	hppa*64*)
11867	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11868	  ;;
11869	ia64*)
11870	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11871	  ;;
11872	*)
11873
11874	  # Older versions of the 11.00 compiler do not understand -b yet
11875	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11876	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11877$as_echo_n "checking if $CC understands -b... " >&6; }
11878if ${lt_cv_prog_compiler__b+:} false; then :
11879  $as_echo_n "(cached) " >&6
11880else
11881  lt_cv_prog_compiler__b=no
11882   save_LDFLAGS=$LDFLAGS
11883   LDFLAGS="$LDFLAGS -b"
11884   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11885   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11886     # The linker can only warn and ignore the option if not recognized
11887     # So say no if there are warnings
11888     if test -s conftest.err; then
11889       # Append any errors to the config.log.
11890       cat conftest.err 1>&5
11891       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11892       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11893       if diff conftest.exp conftest.er2 >/dev/null; then
11894         lt_cv_prog_compiler__b=yes
11895       fi
11896     else
11897       lt_cv_prog_compiler__b=yes
11898     fi
11899   fi
11900   $RM -r conftest*
11901   LDFLAGS=$save_LDFLAGS
11902
11903fi
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11905$as_echo "$lt_cv_prog_compiler__b" >&6; }
11906
11907if test yes = "$lt_cv_prog_compiler__b"; then
11908    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11909else
11910    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11911fi
11912
11913	  ;;
11914	esac
11915      fi
11916      if test no = "$with_gnu_ld"; then
11917	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11918	hardcode_libdir_separator=:
11919
11920	case $host_cpu in
11921	hppa*64*|ia64*)
11922	  hardcode_direct=no
11923	  hardcode_shlibpath_var=no
11924	  ;;
11925	*)
11926	  hardcode_direct=yes
11927	  hardcode_direct_absolute=yes
11928	  export_dynamic_flag_spec='$wl-E'
11929
11930	  # hardcode_minus_L: Not really in the search PATH,
11931	  # but as the default location of the library.
11932	  hardcode_minus_L=yes
11933	  ;;
11934	esac
11935      fi
11936      ;;
11937
11938    irix5* | irix6* | nonstopux*)
11939      if test yes = "$GCC"; then
11940	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11941	# Try to use the -exported_symbol ld option, if it does not
11942	# work, assume that -exports_file does not work either and
11943	# implicitly export all symbols.
11944	# This should be the same for all languages, so no per-tag cache variable.
11945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11946$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11947if ${lt_cv_irix_exported_symbol+:} false; then :
11948  $as_echo_n "(cached) " >&6
11949else
11950  save_LDFLAGS=$LDFLAGS
11951	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11952	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h.  */
11954int foo (void) { return 0; }
11955_ACEOF
11956if ac_fn_c_try_link "$LINENO"; then :
11957  lt_cv_irix_exported_symbol=yes
11958else
11959  lt_cv_irix_exported_symbol=no
11960fi
11961rm -f core conftest.err conftest.$ac_objext \
11962    conftest$ac_exeext conftest.$ac_ext
11963           LDFLAGS=$save_LDFLAGS
11964fi
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11966$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11967	if test yes = "$lt_cv_irix_exported_symbol"; then
11968          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11969	fi
11970      else
11971	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'
11972	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'
11973      fi
11974      archive_cmds_need_lc='no'
11975      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11976      hardcode_libdir_separator=:
11977      inherit_rpath=yes
11978      link_all_deplibs=yes
11979      ;;
11980
11981    linux*)
11982      case $cc_basename in
11983      tcc*)
11984	# Fabrice Bellard et al's Tiny C Compiler
11985	ld_shlibs=yes
11986	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11987	;;
11988      esac
11989      ;;
11990
11991    netbsd*)
11992      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11993	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11994      else
11995	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11996      fi
11997      hardcode_libdir_flag_spec='-R$libdir'
11998      hardcode_direct=yes
11999      hardcode_shlibpath_var=no
12000      ;;
12001
12002    newsos6)
12003      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12004      hardcode_direct=yes
12005      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12006      hardcode_libdir_separator=:
12007      hardcode_shlibpath_var=no
12008      ;;
12009
12010    *nto* | *qnx*)
12011      ;;
12012
12013    openbsd* | bitrig*)
12014      if test -f /usr/libexec/ld.so; then
12015	hardcode_direct=yes
12016	hardcode_shlibpath_var=no
12017	hardcode_direct_absolute=yes
12018	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12019	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12020	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12021	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12022	  export_dynamic_flag_spec='$wl-E'
12023	else
12024	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12025	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12026	fi
12027      else
12028	ld_shlibs=no
12029      fi
12030      ;;
12031
12032    os2*)
12033      hardcode_libdir_flag_spec='-L$libdir'
12034      hardcode_minus_L=yes
12035      allow_undefined_flag=unsupported
12036      shrext_cmds=.dll
12037      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12038	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12039	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12040	$ECHO EXPORTS >> $output_objdir/$libname.def~
12041	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12042	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12043	emximp -o $lib $output_objdir/$libname.def'
12044      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12045	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12046	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12047	$ECHO EXPORTS >> $output_objdir/$libname.def~
12048	prefix_cmds="$SED"~
12049	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12050	  prefix_cmds="$prefix_cmds -e 1d";
12051	fi~
12052	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12053	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12054	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12055	emximp -o $lib $output_objdir/$libname.def'
12056      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12057      enable_shared_with_static_runtimes=yes
12058      ;;
12059
12060    osf3*)
12061      if test yes = "$GCC"; then
12062	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12063	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'
12064      else
12065	allow_undefined_flag=' -expect_unresolved \*'
12066	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'
12067      fi
12068      archive_cmds_need_lc='no'
12069      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12070      hardcode_libdir_separator=:
12071      ;;
12072
12073    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12074      if test yes = "$GCC"; then
12075	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12076	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12077	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12078      else
12079	allow_undefined_flag=' -expect_unresolved \*'
12080	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'
12081	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~
12082          $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'
12083
12084	# Both c and cxx compiler support -rpath directly
12085	hardcode_libdir_flag_spec='-rpath $libdir'
12086      fi
12087      archive_cmds_need_lc='no'
12088      hardcode_libdir_separator=:
12089      ;;
12090
12091    solaris*)
12092      no_undefined_flag=' -z defs'
12093      if test yes = "$GCC"; then
12094	wlarc='$wl'
12095	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12096	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12097          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12098      else
12099	case `$CC -V 2>&1` in
12100	*"Compilers 5.0"*)
12101	  wlarc=''
12102	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12103	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12104            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12105	  ;;
12106	*)
12107	  wlarc='$wl'
12108	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12109	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12110            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12111	  ;;
12112	esac
12113      fi
12114      hardcode_libdir_flag_spec='-R$libdir'
12115      hardcode_shlibpath_var=no
12116      case $host_os in
12117      solaris2.[0-5] | solaris2.[0-5].*) ;;
12118      *)
12119	# The compiler driver will combine and reorder linker options,
12120	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12121	# but is careful enough not to reorder.
12122	# Supported since Solaris 2.6 (maybe 2.5.1?)
12123	if test yes = "$GCC"; then
12124	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12125	else
12126	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12127	fi
12128	;;
12129      esac
12130      link_all_deplibs=yes
12131      ;;
12132
12133    sunos4*)
12134      if test sequent = "$host_vendor"; then
12135	# Use $CC to link under sequent, because it throws in some extra .o
12136	# files that make .init and .fini sections work.
12137	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12138      else
12139	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12140      fi
12141      hardcode_libdir_flag_spec='-L$libdir'
12142      hardcode_direct=yes
12143      hardcode_minus_L=yes
12144      hardcode_shlibpath_var=no
12145      ;;
12146
12147    sysv4)
12148      case $host_vendor in
12149	sni)
12150	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12151	  hardcode_direct=yes # is this really true???
12152	;;
12153	siemens)
12154	  ## LD is ld it makes a PLAMLIB
12155	  ## CC just makes a GrossModule.
12156	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12157	  reload_cmds='$CC -r -o $output$reload_objs'
12158	  hardcode_direct=no
12159        ;;
12160	motorola)
12161	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12162	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12163	;;
12164      esac
12165      runpath_var='LD_RUN_PATH'
12166      hardcode_shlibpath_var=no
12167      ;;
12168
12169    sysv4.3*)
12170      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12171      hardcode_shlibpath_var=no
12172      export_dynamic_flag_spec='-Bexport'
12173      ;;
12174
12175    sysv4*MP*)
12176      if test -d /usr/nec; then
12177	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12178	hardcode_shlibpath_var=no
12179	runpath_var=LD_RUN_PATH
12180	hardcode_runpath_var=yes
12181	ld_shlibs=yes
12182      fi
12183      ;;
12184
12185    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12186      no_undefined_flag='$wl-z,text'
12187      archive_cmds_need_lc=no
12188      hardcode_shlibpath_var=no
12189      runpath_var='LD_RUN_PATH'
12190
12191      if test yes = "$GCC"; then
12192	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12193	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12194      else
12195	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12196	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12197      fi
12198      ;;
12199
12200    sysv5* | sco3.2v5* | sco5v6*)
12201      # Note: We CANNOT use -z defs as we might desire, because we do not
12202      # link with -lc, and that would cause any symbols used from libc to
12203      # always be unresolved, which means just about no library would
12204      # ever link correctly.  If we're not using GNU ld we use -z text
12205      # though, which does catch some bad symbols but isn't as heavy-handed
12206      # as -z defs.
12207      no_undefined_flag='$wl-z,text'
12208      allow_undefined_flag='$wl-z,nodefs'
12209      archive_cmds_need_lc=no
12210      hardcode_shlibpath_var=no
12211      hardcode_libdir_flag_spec='$wl-R,$libdir'
12212      hardcode_libdir_separator=':'
12213      link_all_deplibs=yes
12214      export_dynamic_flag_spec='$wl-Bexport'
12215      runpath_var='LD_RUN_PATH'
12216
12217      if test yes = "$GCC"; then
12218	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12219	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12220      else
12221	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12222	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12223      fi
12224      ;;
12225
12226    uts4*)
12227      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12228      hardcode_libdir_flag_spec='-L$libdir'
12229      hardcode_shlibpath_var=no
12230      ;;
12231
12232    *)
12233      ld_shlibs=no
12234      ;;
12235    esac
12236
12237    if test sni = "$host_vendor"; then
12238      case $host in
12239      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12240	export_dynamic_flag_spec='$wl-Blargedynsym'
12241	;;
12242      esac
12243    fi
12244  fi
12245
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12247$as_echo "$ld_shlibs" >&6; }
12248test no = "$ld_shlibs" && can_build_shared=no
12249
12250with_gnu_ld=$with_gnu_ld
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266#
12267# Do we need to explicitly link libc?
12268#
12269case "x$archive_cmds_need_lc" in
12270x|xyes)
12271  # Assume -lc should be added
12272  archive_cmds_need_lc=yes
12273
12274  if test yes,yes = "$GCC,$enable_shared"; then
12275    case $archive_cmds in
12276    *'~'*)
12277      # FIXME: we may have to deal with multi-command sequences.
12278      ;;
12279    '$CC '*)
12280      # Test whether the compiler implicitly links with -lc since on some
12281      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12282      # to ld, don't add -lc before -lgcc.
12283      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12284$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12285if ${lt_cv_archive_cmds_need_lc+:} false; then :
12286  $as_echo_n "(cached) " >&6
12287else
12288  $RM conftest*
12289	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12290
12291	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12292  (eval $ac_compile) 2>&5
12293  ac_status=$?
12294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12295  test $ac_status = 0; } 2>conftest.err; then
12296	  soname=conftest
12297	  lib=conftest
12298	  libobjs=conftest.$ac_objext
12299	  deplibs=
12300	  wl=$lt_prog_compiler_wl
12301	  pic_flag=$lt_prog_compiler_pic
12302	  compiler_flags=-v
12303	  linker_flags=-v
12304	  verstring=
12305	  output_objdir=.
12306	  libname=conftest
12307	  lt_save_allow_undefined_flag=$allow_undefined_flag
12308	  allow_undefined_flag=
12309	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12310  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12311  ac_status=$?
12312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12313  test $ac_status = 0; }
12314	  then
12315	    lt_cv_archive_cmds_need_lc=no
12316	  else
12317	    lt_cv_archive_cmds_need_lc=yes
12318	  fi
12319	  allow_undefined_flag=$lt_save_allow_undefined_flag
12320	else
12321	  cat conftest.err 1>&5
12322	fi
12323	$RM conftest*
12324
12325fi
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12327$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12328      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12329      ;;
12330    esac
12331  fi
12332  ;;
12333esac
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12487$as_echo_n "checking dynamic linker characteristics... " >&6; }
12488
12489if test yes = "$GCC"; then
12490  case $host_os in
12491    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12492    *) lt_awk_arg='/^libraries:/' ;;
12493  esac
12494  case $host_os in
12495    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12496    *) lt_sed_strip_eq='s|=/|/|g' ;;
12497  esac
12498  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12499  case $lt_search_path_spec in
12500  *\;*)
12501    # if the path contains ";" then we assume it to be the separator
12502    # otherwise default to the standard path separator (i.e. ":") - it is
12503    # assumed that no part of a normal pathname contains ";" but that should
12504    # okay in the real world where ";" in dirpaths is itself problematic.
12505    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12506    ;;
12507  *)
12508    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12509    ;;
12510  esac
12511  # Ok, now we have the path, separated by spaces, we can step through it
12512  # and add multilib dir if necessary...
12513  lt_tmp_lt_search_path_spec=
12514  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12515  # ...but if some path component already ends with the multilib dir we assume
12516  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12517  case "$lt_multi_os_dir; $lt_search_path_spec " in
12518  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12519    lt_multi_os_dir=
12520    ;;
12521  esac
12522  for lt_sys_path in $lt_search_path_spec; do
12523    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12524      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12525    elif test -n "$lt_multi_os_dir"; then
12526      test -d "$lt_sys_path" && \
12527	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12528    fi
12529  done
12530  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12531BEGIN {RS = " "; FS = "/|\n";} {
12532  lt_foo = "";
12533  lt_count = 0;
12534  for (lt_i = NF; lt_i > 0; lt_i--) {
12535    if ($lt_i != "" && $lt_i != ".") {
12536      if ($lt_i == "..") {
12537        lt_count++;
12538      } else {
12539        if (lt_count == 0) {
12540          lt_foo = "/" $lt_i lt_foo;
12541        } else {
12542          lt_count--;
12543        }
12544      }
12545    }
12546  }
12547  if (lt_foo != "") { lt_freq[lt_foo]++; }
12548  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12549}'`
12550  # AWK program above erroneously prepends '/' to C:/dos/paths
12551  # for these hosts.
12552  case $host_os in
12553    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12554      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12555  esac
12556  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12557else
12558  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12559fi
12560library_names_spec=
12561libname_spec='lib$name'
12562soname_spec=
12563shrext_cmds=.so
12564postinstall_cmds=
12565postuninstall_cmds=
12566finish_cmds=
12567finish_eval=
12568shlibpath_var=
12569shlibpath_overrides_runpath=unknown
12570version_type=none
12571dynamic_linker="$host_os ld.so"
12572sys_lib_dlsearch_path_spec="/lib /usr/lib"
12573need_lib_prefix=unknown
12574hardcode_into_libs=no
12575
12576# when you set need_version to no, make sure it does not cause -set_version
12577# flags to be left without arguments
12578need_version=unknown
12579
12580
12581
12582case $host_os in
12583aix3*)
12584  version_type=linux # correct to gnu/linux during the next big refactor
12585  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12586  shlibpath_var=LIBPATH
12587
12588  # AIX 3 has no versioning support, so we append a major version to the name.
12589  soname_spec='$libname$release$shared_ext$major'
12590  ;;
12591
12592aix[4-9]*)
12593  version_type=linux # correct to gnu/linux during the next big refactor
12594  need_lib_prefix=no
12595  need_version=no
12596  hardcode_into_libs=yes
12597  if test ia64 = "$host_cpu"; then
12598    # AIX 5 supports IA64
12599    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12600    shlibpath_var=LD_LIBRARY_PATH
12601  else
12602    # With GCC up to 2.95.x, collect2 would create an import file
12603    # for dependence libraries.  The import file would start with
12604    # the line '#! .'.  This would cause the generated library to
12605    # depend on '.', always an invalid library.  This was fixed in
12606    # development snapshots of GCC prior to 3.0.
12607    case $host_os in
12608      aix4 | aix4.[01] | aix4.[01].*)
12609      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12610	   echo ' yes '
12611	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12612	:
12613      else
12614	can_build_shared=no
12615      fi
12616      ;;
12617    esac
12618    # Using Import Files as archive members, it is possible to support
12619    # filename-based versioning of shared library archives on AIX. While
12620    # this would work for both with and without runtime linking, it will
12621    # prevent static linking of such archives. So we do filename-based
12622    # shared library versioning with .so extension only, which is used
12623    # when both runtime linking and shared linking is enabled.
12624    # Unfortunately, runtime linking may impact performance, so we do
12625    # not want this to be the default eventually. Also, we use the
12626    # versioned .so libs for executables only if there is the -brtl
12627    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12628    # To allow for filename-based versioning support, we need to create
12629    # libNAME.so.V as an archive file, containing:
12630    # *) an Import File, referring to the versioned filename of the
12631    #    archive as well as the shared archive member, telling the
12632    #    bitwidth (32 or 64) of that shared object, and providing the
12633    #    list of exported symbols of that shared object, eventually
12634    #    decorated with the 'weak' keyword
12635    # *) the shared object with the F_LOADONLY flag set, to really avoid
12636    #    it being seen by the linker.
12637    # At run time we better use the real file rather than another symlink,
12638    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12639
12640    case $with_aix_soname,$aix_use_runtimelinking in
12641    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12642    # soname into executable. Probably we can add versioning support to
12643    # collect2, so additional links can be useful in future.
12644    aix,yes) # traditional libtool
12645      dynamic_linker='AIX unversionable lib.so'
12646      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12647      # instead of lib<name>.a to let people know that these are not
12648      # typical AIX shared libraries.
12649      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12650      ;;
12651    aix,no) # traditional AIX only
12652      dynamic_linker='AIX lib.a(lib.so.V)'
12653      # We preserve .a as extension for shared libraries through AIX4.2
12654      # and later when we are not doing run time linking.
12655      library_names_spec='$libname$release.a $libname.a'
12656      soname_spec='$libname$release$shared_ext$major'
12657      ;;
12658    svr4,*) # full svr4 only
12659      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12660      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12661      # We do not specify a path in Import Files, so LIBPATH fires.
12662      shlibpath_overrides_runpath=yes
12663      ;;
12664    *,yes) # both, prefer svr4
12665      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12666      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12667      # unpreferred sharedlib libNAME.a needs extra handling
12668      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12669      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12670      # We do not specify a path in Import Files, so LIBPATH fires.
12671      shlibpath_overrides_runpath=yes
12672      ;;
12673    *,no) # both, prefer aix
12674      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12675      library_names_spec='$libname$release.a $libname.a'
12676      soname_spec='$libname$release$shared_ext$major'
12677      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12678      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12679      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12680      ;;
12681    esac
12682    shlibpath_var=LIBPATH
12683  fi
12684  ;;
12685
12686amigaos*)
12687  case $host_cpu in
12688  powerpc)
12689    # Since July 2007 AmigaOS4 officially supports .so libraries.
12690    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12691    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12692    ;;
12693  m68k)
12694    library_names_spec='$libname.ixlibrary $libname.a'
12695    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12696    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12697    ;;
12698  esac
12699  ;;
12700
12701beos*)
12702  library_names_spec='$libname$shared_ext'
12703  dynamic_linker="$host_os ld.so"
12704  shlibpath_var=LIBRARY_PATH
12705  ;;
12706
12707bsdi[45]*)
12708  version_type=linux # correct to gnu/linux during the next big refactor
12709  need_version=no
12710  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12711  soname_spec='$libname$release$shared_ext$major'
12712  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12713  shlibpath_var=LD_LIBRARY_PATH
12714  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12715  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12716  # the default ld.so.conf also contains /usr/contrib/lib and
12717  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12718  # libtool to hard-code these into programs
12719  ;;
12720
12721cygwin* | mingw* | pw32* | cegcc*)
12722  version_type=windows
12723  shrext_cmds=.dll
12724  need_version=no
12725  need_lib_prefix=no
12726
12727  case $GCC,$cc_basename in
12728  yes,*)
12729    # gcc
12730    library_names_spec='$libname.dll.a'
12731    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12732    postinstall_cmds='base_file=`basename \$file`~
12733      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12734      dldir=$destdir/`dirname \$dlpath`~
12735      test -d \$dldir || mkdir -p \$dldir~
12736      $install_prog $dir/$dlname \$dldir/$dlname~
12737      chmod a+x \$dldir/$dlname~
12738      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12739        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12740      fi'
12741    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12742      dlpath=$dir/\$dldll~
12743       $RM \$dlpath'
12744    shlibpath_overrides_runpath=yes
12745
12746    case $host_os in
12747    cygwin*)
12748      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12749      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12750
12751      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12752      ;;
12753    mingw* | cegcc*)
12754      # MinGW DLLs use traditional 'lib' prefix
12755      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12756      ;;
12757    pw32*)
12758      # pw32 DLLs use 'pw' prefix rather than 'lib'
12759      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12760      ;;
12761    esac
12762    dynamic_linker='Win32 ld.exe'
12763    ;;
12764
12765  *,cl*)
12766    # Native MSVC
12767    libname_spec='$name'
12768    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12769    library_names_spec='$libname.dll.lib'
12770
12771    case $build_os in
12772    mingw*)
12773      sys_lib_search_path_spec=
12774      lt_save_ifs=$IFS
12775      IFS=';'
12776      for lt_path in $LIB
12777      do
12778        IFS=$lt_save_ifs
12779        # Let DOS variable expansion print the short 8.3 style file name.
12780        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12781        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12782      done
12783      IFS=$lt_save_ifs
12784      # Convert to MSYS style.
12785      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12786      ;;
12787    cygwin*)
12788      # Convert to unix form, then to dos form, then back to unix form
12789      # but this time dos style (no spaces!) so that the unix form looks
12790      # like /cygdrive/c/PROGRA~1:/cygdr...
12791      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12792      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12793      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12794      ;;
12795    *)
12796      sys_lib_search_path_spec=$LIB
12797      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12798        # It is most probably a Windows format PATH.
12799        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12800      else
12801        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12802      fi
12803      # FIXME: find the short name or the path components, as spaces are
12804      # common. (e.g. "Program Files" -> "PROGRA~1")
12805      ;;
12806    esac
12807
12808    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12809    postinstall_cmds='base_file=`basename \$file`~
12810      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12811      dldir=$destdir/`dirname \$dlpath`~
12812      test -d \$dldir || mkdir -p \$dldir~
12813      $install_prog $dir/$dlname \$dldir/$dlname'
12814    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12815      dlpath=$dir/\$dldll~
12816       $RM \$dlpath'
12817    shlibpath_overrides_runpath=yes
12818    dynamic_linker='Win32 link.exe'
12819    ;;
12820
12821  *)
12822    # Assume MSVC wrapper
12823    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12824    dynamic_linker='Win32 ld.exe'
12825    ;;
12826  esac
12827  # FIXME: first we should search . and the directory the executable is in
12828  shlibpath_var=PATH
12829  ;;
12830
12831darwin* | rhapsody*)
12832  dynamic_linker="$host_os dyld"
12833  version_type=darwin
12834  need_lib_prefix=no
12835  need_version=no
12836  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12837  soname_spec='$libname$release$major$shared_ext'
12838  shlibpath_overrides_runpath=yes
12839  shlibpath_var=DYLD_LIBRARY_PATH
12840  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12841
12842  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12843  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12844  ;;
12845
12846dgux*)
12847  version_type=linux # correct to gnu/linux during the next big refactor
12848  need_lib_prefix=no
12849  need_version=no
12850  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12851  soname_spec='$libname$release$shared_ext$major'
12852  shlibpath_var=LD_LIBRARY_PATH
12853  ;;
12854
12855freebsd* | dragonfly*)
12856  # DragonFly does not have aout.  When/if they implement a new
12857  # versioning mechanism, adjust this.
12858  if test -x /usr/bin/objformat; then
12859    objformat=`/usr/bin/objformat`
12860  else
12861    case $host_os in
12862    freebsd[23].*) objformat=aout ;;
12863    *) objformat=elf ;;
12864    esac
12865  fi
12866  version_type=freebsd-$objformat
12867  case $version_type in
12868    freebsd-elf*)
12869      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12870      soname_spec='$libname$release$shared_ext$major'
12871      need_version=no
12872      need_lib_prefix=no
12873      ;;
12874    freebsd-*)
12875      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12876      need_version=yes
12877      ;;
12878  esac
12879  shlibpath_var=LD_LIBRARY_PATH
12880  case $host_os in
12881  freebsd2.*)
12882    shlibpath_overrides_runpath=yes
12883    ;;
12884  freebsd3.[01]* | freebsdelf3.[01]*)
12885    shlibpath_overrides_runpath=yes
12886    hardcode_into_libs=yes
12887    ;;
12888  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12889  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12890    shlibpath_overrides_runpath=no
12891    hardcode_into_libs=yes
12892    ;;
12893  *) # from 4.6 on, and DragonFly
12894    shlibpath_overrides_runpath=yes
12895    hardcode_into_libs=yes
12896    ;;
12897  esac
12898  ;;
12899
12900haiku*)
12901  version_type=linux # correct to gnu/linux during the next big refactor
12902  need_lib_prefix=no
12903  need_version=no
12904  dynamic_linker="$host_os runtime_loader"
12905  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12906  soname_spec='$libname$release$shared_ext$major'
12907  shlibpath_var=LIBRARY_PATH
12908  shlibpath_overrides_runpath=no
12909  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12910  hardcode_into_libs=yes
12911  ;;
12912
12913hpux9* | hpux10* | hpux11*)
12914  # Give a soname corresponding to the major version so that dld.sl refuses to
12915  # link against other versions.
12916  version_type=sunos
12917  need_lib_prefix=no
12918  need_version=no
12919  case $host_cpu in
12920  ia64*)
12921    shrext_cmds='.so'
12922    hardcode_into_libs=yes
12923    dynamic_linker="$host_os dld.so"
12924    shlibpath_var=LD_LIBRARY_PATH
12925    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12926    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12927    soname_spec='$libname$release$shared_ext$major'
12928    if test 32 = "$HPUX_IA64_MODE"; then
12929      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12930      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12931    else
12932      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12933      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12934    fi
12935    ;;
12936  hppa*64*)
12937    shrext_cmds='.sl'
12938    hardcode_into_libs=yes
12939    dynamic_linker="$host_os dld.sl"
12940    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12941    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12942    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12943    soname_spec='$libname$release$shared_ext$major'
12944    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12945    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12946    ;;
12947  *)
12948    shrext_cmds='.sl'
12949    dynamic_linker="$host_os dld.sl"
12950    shlibpath_var=SHLIB_PATH
12951    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12952    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12953    soname_spec='$libname$release$shared_ext$major'
12954    ;;
12955  esac
12956  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12957  postinstall_cmds='chmod 555 $lib'
12958  # or fails outright, so override atomically:
12959  install_override_mode=555
12960  ;;
12961
12962interix[3-9]*)
12963  version_type=linux # correct to gnu/linux during the next big refactor
12964  need_lib_prefix=no
12965  need_version=no
12966  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12967  soname_spec='$libname$release$shared_ext$major'
12968  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12969  shlibpath_var=LD_LIBRARY_PATH
12970  shlibpath_overrides_runpath=no
12971  hardcode_into_libs=yes
12972  ;;
12973
12974irix5* | irix6* | nonstopux*)
12975  case $host_os in
12976    nonstopux*) version_type=nonstopux ;;
12977    *)
12978	if test yes = "$lt_cv_prog_gnu_ld"; then
12979		version_type=linux # correct to gnu/linux during the next big refactor
12980	else
12981		version_type=irix
12982	fi ;;
12983  esac
12984  need_lib_prefix=no
12985  need_version=no
12986  soname_spec='$libname$release$shared_ext$major'
12987  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12988  case $host_os in
12989  irix5* | nonstopux*)
12990    libsuff= shlibsuff=
12991    ;;
12992  *)
12993    case $LD in # libtool.m4 will add one of these switches to LD
12994    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12995      libsuff= shlibsuff= libmagic=32-bit;;
12996    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12997      libsuff=32 shlibsuff=N32 libmagic=N32;;
12998    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12999      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13000    *) libsuff= shlibsuff= libmagic=never-match;;
13001    esac
13002    ;;
13003  esac
13004  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13005  shlibpath_overrides_runpath=no
13006  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13007  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13008  hardcode_into_libs=yes
13009  ;;
13010
13011# No shared lib support for Linux oldld, aout, or coff.
13012linux*oldld* | linux*aout* | linux*coff*)
13013  dynamic_linker=no
13014  ;;
13015
13016linux*android*)
13017  version_type=none # Android doesn't support versioned libraries.
13018  need_lib_prefix=no
13019  need_version=no
13020  library_names_spec='$libname$release$shared_ext'
13021  soname_spec='$libname$release$shared_ext'
13022  finish_cmds=
13023  shlibpath_var=LD_LIBRARY_PATH
13024  shlibpath_overrides_runpath=yes
13025
13026  # This implies no fast_install, which is unacceptable.
13027  # Some rework will be needed to allow for fast_install
13028  # before this can be enabled.
13029  hardcode_into_libs=yes
13030
13031  dynamic_linker='Android linker'
13032  # Don't embed -rpath directories since the linker doesn't support them.
13033  hardcode_libdir_flag_spec='-L$libdir'
13034  ;;
13035
13036# This must be glibc/ELF.
13037linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13038  version_type=linux # correct to gnu/linux during the next big refactor
13039  need_lib_prefix=no
13040  need_version=no
13041  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13042  soname_spec='$libname$release$shared_ext$major'
13043  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13044  shlibpath_var=LD_LIBRARY_PATH
13045  shlibpath_overrides_runpath=no
13046
13047  # Some binutils ld are patched to set DT_RUNPATH
13048  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13049  $as_echo_n "(cached) " >&6
13050else
13051  lt_cv_shlibpath_overrides_runpath=no
13052    save_LDFLAGS=$LDFLAGS
13053    save_libdir=$libdir
13054    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13055	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13056    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057/* end confdefs.h.  */
13058
13059int
13060main ()
13061{
13062
13063  ;
13064  return 0;
13065}
13066_ACEOF
13067if ac_fn_c_try_link "$LINENO"; then :
13068  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13069  lt_cv_shlibpath_overrides_runpath=yes
13070fi
13071fi
13072rm -f core conftest.err conftest.$ac_objext \
13073    conftest$ac_exeext conftest.$ac_ext
13074    LDFLAGS=$save_LDFLAGS
13075    libdir=$save_libdir
13076
13077fi
13078
13079  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13080
13081  # This implies no fast_install, which is unacceptable.
13082  # Some rework will be needed to allow for fast_install
13083  # before this can be enabled.
13084  hardcode_into_libs=yes
13085
13086  # Ideally, we could use ldconfig to report *all* directores which are
13087  # searched for libraries, however this is still not possible.  Aside from not
13088  # being certain /sbin/ldconfig is available, command
13089  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13090  # even though it is searched at run-time.  Try to do the best guess by
13091  # appending ld.so.conf contents (and includes) to the search path.
13092  if test -f /etc/ld.so.conf; then
13093    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' ' '`
13094    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13095  fi
13096
13097  # We used to test for /lib/ld.so.1 and disable shared libraries on
13098  # powerpc, because MkLinux only supported shared libraries with the
13099  # GNU dynamic linker.  Since this was broken with cross compilers,
13100  # most powerpc-linux boxes support dynamic linking these days and
13101  # people can always --disable-shared, the test was removed, and we
13102  # assume the GNU/Linux dynamic linker is in use.
13103  dynamic_linker='GNU/Linux ld.so'
13104  ;;
13105
13106netbsd*)
13107  version_type=sunos
13108  need_lib_prefix=no
13109  need_version=no
13110  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13111    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13112    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13113    dynamic_linker='NetBSD (a.out) ld.so'
13114  else
13115    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13116    soname_spec='$libname$release$shared_ext$major'
13117    dynamic_linker='NetBSD ld.elf_so'
13118  fi
13119  shlibpath_var=LD_LIBRARY_PATH
13120  shlibpath_overrides_runpath=yes
13121  hardcode_into_libs=yes
13122  ;;
13123
13124newsos6)
13125  version_type=linux # correct to gnu/linux during the next big refactor
13126  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13127  shlibpath_var=LD_LIBRARY_PATH
13128  shlibpath_overrides_runpath=yes
13129  ;;
13130
13131*nto* | *qnx*)
13132  version_type=qnx
13133  need_lib_prefix=no
13134  need_version=no
13135  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13136  soname_spec='$libname$release$shared_ext$major'
13137  shlibpath_var=LD_LIBRARY_PATH
13138  shlibpath_overrides_runpath=no
13139  hardcode_into_libs=yes
13140  dynamic_linker='ldqnx.so'
13141  ;;
13142
13143openbsd* | bitrig*)
13144  version_type=sunos
13145  sys_lib_dlsearch_path_spec=/usr/lib
13146  need_lib_prefix=no
13147  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13148    need_version=no
13149  else
13150    need_version=yes
13151  fi
13152  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13153  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13154  shlibpath_var=LD_LIBRARY_PATH
13155  shlibpath_overrides_runpath=yes
13156  ;;
13157
13158os2*)
13159  libname_spec='$name'
13160  version_type=windows
13161  shrext_cmds=.dll
13162  need_version=no
13163  need_lib_prefix=no
13164  # OS/2 can only load a DLL with a base name of 8 characters or less.
13165  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13166    v=$($ECHO $release$versuffix | tr -d .-);
13167    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13168    $ECHO $n$v`$shared_ext'
13169  library_names_spec='${libname}_dll.$libext'
13170  dynamic_linker='OS/2 ld.exe'
13171  shlibpath_var=BEGINLIBPATH
13172  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13173  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13174  postinstall_cmds='base_file=`basename \$file`~
13175    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13176    dldir=$destdir/`dirname \$dlpath`~
13177    test -d \$dldir || mkdir -p \$dldir~
13178    $install_prog $dir/$dlname \$dldir/$dlname~
13179    chmod a+x \$dldir/$dlname~
13180    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13181      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13182    fi'
13183  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13184    dlpath=$dir/\$dldll~
13185    $RM \$dlpath'
13186  ;;
13187
13188osf3* | osf4* | osf5*)
13189  version_type=osf
13190  need_lib_prefix=no
13191  need_version=no
13192  soname_spec='$libname$release$shared_ext$major'
13193  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13194  shlibpath_var=LD_LIBRARY_PATH
13195  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13196  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13197  ;;
13198
13199rdos*)
13200  dynamic_linker=no
13201  ;;
13202
13203solaris*)
13204  version_type=linux # correct to gnu/linux during the next big refactor
13205  need_lib_prefix=no
13206  need_version=no
13207  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13208  soname_spec='$libname$release$shared_ext$major'
13209  shlibpath_var=LD_LIBRARY_PATH
13210  shlibpath_overrides_runpath=yes
13211  hardcode_into_libs=yes
13212  # ldd complains unless libraries are executable
13213  postinstall_cmds='chmod +x $lib'
13214  ;;
13215
13216sunos4*)
13217  version_type=sunos
13218  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13219  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13220  shlibpath_var=LD_LIBRARY_PATH
13221  shlibpath_overrides_runpath=yes
13222  if test yes = "$with_gnu_ld"; then
13223    need_lib_prefix=no
13224  fi
13225  need_version=yes
13226  ;;
13227
13228sysv4 | sysv4.3*)
13229  version_type=linux # correct to gnu/linux during the next big refactor
13230  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13231  soname_spec='$libname$release$shared_ext$major'
13232  shlibpath_var=LD_LIBRARY_PATH
13233  case $host_vendor in
13234    sni)
13235      shlibpath_overrides_runpath=no
13236      need_lib_prefix=no
13237      runpath_var=LD_RUN_PATH
13238      ;;
13239    siemens)
13240      need_lib_prefix=no
13241      ;;
13242    motorola)
13243      need_lib_prefix=no
13244      need_version=no
13245      shlibpath_overrides_runpath=no
13246      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13247      ;;
13248  esac
13249  ;;
13250
13251sysv4*MP*)
13252  if test -d /usr/nec; then
13253    version_type=linux # correct to gnu/linux during the next big refactor
13254    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13255    soname_spec='$libname$shared_ext.$major'
13256    shlibpath_var=LD_LIBRARY_PATH
13257  fi
13258  ;;
13259
13260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13261  version_type=sco
13262  need_lib_prefix=no
13263  need_version=no
13264  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13265  soname_spec='$libname$release$shared_ext$major'
13266  shlibpath_var=LD_LIBRARY_PATH
13267  shlibpath_overrides_runpath=yes
13268  hardcode_into_libs=yes
13269  if test yes = "$with_gnu_ld"; then
13270    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13271  else
13272    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13273    case $host_os in
13274      sco3.2v5*)
13275        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13276	;;
13277    esac
13278  fi
13279  sys_lib_dlsearch_path_spec='/usr/lib'
13280  ;;
13281
13282tpf*)
13283  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13284  version_type=linux # correct to gnu/linux during the next big refactor
13285  need_lib_prefix=no
13286  need_version=no
13287  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13288  shlibpath_var=LD_LIBRARY_PATH
13289  shlibpath_overrides_runpath=no
13290  hardcode_into_libs=yes
13291  ;;
13292
13293uts4*)
13294  version_type=linux # correct to gnu/linux during the next big refactor
13295  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13296  soname_spec='$libname$release$shared_ext$major'
13297  shlibpath_var=LD_LIBRARY_PATH
13298  ;;
13299
13300*)
13301  dynamic_linker=no
13302  ;;
13303esac
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13305$as_echo "$dynamic_linker" >&6; }
13306test no = "$dynamic_linker" && can_build_shared=no
13307
13308variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13309if test yes = "$GCC"; then
13310  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13311fi
13312
13313if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13314  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13315fi
13316
13317if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13318  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13319fi
13320
13321# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13322configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13323
13324# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13325func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13326
13327# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13328configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13427$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13428hardcode_action=
13429if test -n "$hardcode_libdir_flag_spec" ||
13430   test -n "$runpath_var" ||
13431   test yes = "$hardcode_automatic"; then
13432
13433  # We can hardcode non-existent directories.
13434  if test no != "$hardcode_direct" &&
13435     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13436     # have to relink, otherwise we might link with an installed library
13437     # when we should be linking with a yet-to-be-installed one
13438     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13439     test no != "$hardcode_minus_L"; then
13440    # Linking always hardcodes the temporary library directory.
13441    hardcode_action=relink
13442  else
13443    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13444    hardcode_action=immediate
13445  fi
13446else
13447  # We cannot hardcode anything, or else we can only hardcode existing
13448  # directories.
13449  hardcode_action=unsupported
13450fi
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13452$as_echo "$hardcode_action" >&6; }
13453
13454if test relink = "$hardcode_action" ||
13455   test yes = "$inherit_rpath"; then
13456  # Fast installation is not supported
13457  enable_fast_install=no
13458elif test yes = "$shlibpath_overrides_runpath" ||
13459     test no = "$enable_shared"; then
13460  # Fast installation is not necessary
13461  enable_fast_install=needless
13462fi
13463
13464
13465
13466
13467
13468
13469  if test yes != "$enable_dlopen"; then
13470  enable_dlopen=unknown
13471  enable_dlopen_self=unknown
13472  enable_dlopen_self_static=unknown
13473else
13474  lt_cv_dlopen=no
13475  lt_cv_dlopen_libs=
13476
13477  case $host_os in
13478  beos*)
13479    lt_cv_dlopen=load_add_on
13480    lt_cv_dlopen_libs=
13481    lt_cv_dlopen_self=yes
13482    ;;
13483
13484  mingw* | pw32* | cegcc*)
13485    lt_cv_dlopen=LoadLibrary
13486    lt_cv_dlopen_libs=
13487    ;;
13488
13489  cygwin*)
13490    lt_cv_dlopen=dlopen
13491    lt_cv_dlopen_libs=
13492    ;;
13493
13494  darwin*)
13495    # if libdl is installed we need to link against it
13496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13497$as_echo_n "checking for dlopen in -ldl... " >&6; }
13498if ${ac_cv_lib_dl_dlopen+:} false; then :
13499  $as_echo_n "(cached) " >&6
13500else
13501  ac_check_lib_save_LIBS=$LIBS
13502LIBS="-ldl  $LIBS"
13503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504/* end confdefs.h.  */
13505
13506/* Override any GCC internal prototype to avoid an error.
13507   Use char because int might match the return type of a GCC
13508   builtin and then its argument prototype would still apply.  */
13509#ifdef __cplusplus
13510extern "C"
13511#endif
13512char dlopen ();
13513int
13514main ()
13515{
13516return dlopen ();
13517  ;
13518  return 0;
13519}
13520_ACEOF
13521if ac_fn_c_try_link "$LINENO"; then :
13522  ac_cv_lib_dl_dlopen=yes
13523else
13524  ac_cv_lib_dl_dlopen=no
13525fi
13526rm -f core conftest.err conftest.$ac_objext \
13527    conftest$ac_exeext conftest.$ac_ext
13528LIBS=$ac_check_lib_save_LIBS
13529fi
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13531$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13532if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13533  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13534else
13535
13536    lt_cv_dlopen=dyld
13537    lt_cv_dlopen_libs=
13538    lt_cv_dlopen_self=yes
13539
13540fi
13541
13542    ;;
13543
13544  tpf*)
13545    # Don't try to run any link tests for TPF.  We know it's impossible
13546    # because TPF is a cross-compiler, and we know how we open DSOs.
13547    lt_cv_dlopen=dlopen
13548    lt_cv_dlopen_libs=
13549    lt_cv_dlopen_self=no
13550    ;;
13551
13552  *)
13553    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13554if test "x$ac_cv_func_shl_load" = xyes; then :
13555  lt_cv_dlopen=shl_load
13556else
13557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13558$as_echo_n "checking for shl_load in -ldld... " >&6; }
13559if ${ac_cv_lib_dld_shl_load+:} false; then :
13560  $as_echo_n "(cached) " >&6
13561else
13562  ac_check_lib_save_LIBS=$LIBS
13563LIBS="-ldld  $LIBS"
13564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566
13567/* Override any GCC internal prototype to avoid an error.
13568   Use char because int might match the return type of a GCC
13569   builtin and then its argument prototype would still apply.  */
13570#ifdef __cplusplus
13571extern "C"
13572#endif
13573char shl_load ();
13574int
13575main ()
13576{
13577return shl_load ();
13578  ;
13579  return 0;
13580}
13581_ACEOF
13582if ac_fn_c_try_link "$LINENO"; then :
13583  ac_cv_lib_dld_shl_load=yes
13584else
13585  ac_cv_lib_dld_shl_load=no
13586fi
13587rm -f core conftest.err conftest.$ac_objext \
13588    conftest$ac_exeext conftest.$ac_ext
13589LIBS=$ac_check_lib_save_LIBS
13590fi
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13592$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13593if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13594  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13595else
13596  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13597if test "x$ac_cv_func_dlopen" = xyes; then :
13598  lt_cv_dlopen=dlopen
13599else
13600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13601$as_echo_n "checking for dlopen in -ldl... " >&6; }
13602if ${ac_cv_lib_dl_dlopen+:} false; then :
13603  $as_echo_n "(cached) " >&6
13604else
13605  ac_check_lib_save_LIBS=$LIBS
13606LIBS="-ldl  $LIBS"
13607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608/* end confdefs.h.  */
13609
13610/* Override any GCC internal prototype to avoid an error.
13611   Use char because int might match the return type of a GCC
13612   builtin and then its argument prototype would still apply.  */
13613#ifdef __cplusplus
13614extern "C"
13615#endif
13616char dlopen ();
13617int
13618main ()
13619{
13620return dlopen ();
13621  ;
13622  return 0;
13623}
13624_ACEOF
13625if ac_fn_c_try_link "$LINENO"; then :
13626  ac_cv_lib_dl_dlopen=yes
13627else
13628  ac_cv_lib_dl_dlopen=no
13629fi
13630rm -f core conftest.err conftest.$ac_objext \
13631    conftest$ac_exeext conftest.$ac_ext
13632LIBS=$ac_check_lib_save_LIBS
13633fi
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13635$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13636if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13637  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13638else
13639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13640$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13641if ${ac_cv_lib_svld_dlopen+:} false; then :
13642  $as_echo_n "(cached) " >&6
13643else
13644  ac_check_lib_save_LIBS=$LIBS
13645LIBS="-lsvld  $LIBS"
13646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647/* end confdefs.h.  */
13648
13649/* Override any GCC internal prototype to avoid an error.
13650   Use char because int might match the return type of a GCC
13651   builtin and then its argument prototype would still apply.  */
13652#ifdef __cplusplus
13653extern "C"
13654#endif
13655char dlopen ();
13656int
13657main ()
13658{
13659return dlopen ();
13660  ;
13661  return 0;
13662}
13663_ACEOF
13664if ac_fn_c_try_link "$LINENO"; then :
13665  ac_cv_lib_svld_dlopen=yes
13666else
13667  ac_cv_lib_svld_dlopen=no
13668fi
13669rm -f core conftest.err conftest.$ac_objext \
13670    conftest$ac_exeext conftest.$ac_ext
13671LIBS=$ac_check_lib_save_LIBS
13672fi
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13674$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13675if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13676  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13677else
13678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13679$as_echo_n "checking for dld_link in -ldld... " >&6; }
13680if ${ac_cv_lib_dld_dld_link+:} false; then :
13681  $as_echo_n "(cached) " >&6
13682else
13683  ac_check_lib_save_LIBS=$LIBS
13684LIBS="-ldld  $LIBS"
13685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686/* end confdefs.h.  */
13687
13688/* Override any GCC internal prototype to avoid an error.
13689   Use char because int might match the return type of a GCC
13690   builtin and then its argument prototype would still apply.  */
13691#ifdef __cplusplus
13692extern "C"
13693#endif
13694char dld_link ();
13695int
13696main ()
13697{
13698return dld_link ();
13699  ;
13700  return 0;
13701}
13702_ACEOF
13703if ac_fn_c_try_link "$LINENO"; then :
13704  ac_cv_lib_dld_dld_link=yes
13705else
13706  ac_cv_lib_dld_dld_link=no
13707fi
13708rm -f core conftest.err conftest.$ac_objext \
13709    conftest$ac_exeext conftest.$ac_ext
13710LIBS=$ac_check_lib_save_LIBS
13711fi
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13713$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13714if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13715  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13716fi
13717
13718
13719fi
13720
13721
13722fi
13723
13724
13725fi
13726
13727
13728fi
13729
13730
13731fi
13732
13733    ;;
13734  esac
13735
13736  if test no = "$lt_cv_dlopen"; then
13737    enable_dlopen=no
13738  else
13739    enable_dlopen=yes
13740  fi
13741
13742  case $lt_cv_dlopen in
13743  dlopen)
13744    save_CPPFLAGS=$CPPFLAGS
13745    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13746
13747    save_LDFLAGS=$LDFLAGS
13748    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13749
13750    save_LIBS=$LIBS
13751    LIBS="$lt_cv_dlopen_libs $LIBS"
13752
13753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13754$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13755if ${lt_cv_dlopen_self+:} false; then :
13756  $as_echo_n "(cached) " >&6
13757else
13758  	  if test yes = "$cross_compiling"; then :
13759  lt_cv_dlopen_self=cross
13760else
13761  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13762  lt_status=$lt_dlunknown
13763  cat > conftest.$ac_ext <<_LT_EOF
13764#line $LINENO "configure"
13765#include "confdefs.h"
13766
13767#if HAVE_DLFCN_H
13768#include <dlfcn.h>
13769#endif
13770
13771#include <stdio.h>
13772
13773#ifdef RTLD_GLOBAL
13774#  define LT_DLGLOBAL		RTLD_GLOBAL
13775#else
13776#  ifdef DL_GLOBAL
13777#    define LT_DLGLOBAL		DL_GLOBAL
13778#  else
13779#    define LT_DLGLOBAL		0
13780#  endif
13781#endif
13782
13783/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13784   find out it does not work in some platform. */
13785#ifndef LT_DLLAZY_OR_NOW
13786#  ifdef RTLD_LAZY
13787#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13788#  else
13789#    ifdef DL_LAZY
13790#      define LT_DLLAZY_OR_NOW		DL_LAZY
13791#    else
13792#      ifdef RTLD_NOW
13793#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13794#      else
13795#        ifdef DL_NOW
13796#          define LT_DLLAZY_OR_NOW	DL_NOW
13797#        else
13798#          define LT_DLLAZY_OR_NOW	0
13799#        endif
13800#      endif
13801#    endif
13802#  endif
13803#endif
13804
13805/* When -fvisibility=hidden is used, assume the code has been annotated
13806   correspondingly for the symbols needed.  */
13807#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13808int fnord () __attribute__((visibility("default")));
13809#endif
13810
13811int fnord () { return 42; }
13812int main ()
13813{
13814  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13815  int status = $lt_dlunknown;
13816
13817  if (self)
13818    {
13819      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13820      else
13821        {
13822	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13823          else puts (dlerror ());
13824	}
13825      /* dlclose (self); */
13826    }
13827  else
13828    puts (dlerror ());
13829
13830  return status;
13831}
13832_LT_EOF
13833  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13834  (eval $ac_link) 2>&5
13835  ac_status=$?
13836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13838    (./conftest; exit; ) >&5 2>/dev/null
13839    lt_status=$?
13840    case x$lt_status in
13841      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13842      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13843      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13844    esac
13845  else :
13846    # compilation failed
13847    lt_cv_dlopen_self=no
13848  fi
13849fi
13850rm -fr conftest*
13851
13852
13853fi
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13855$as_echo "$lt_cv_dlopen_self" >&6; }
13856
13857    if test yes = "$lt_cv_dlopen_self"; then
13858      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13859      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13860$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13861if ${lt_cv_dlopen_self_static+:} false; then :
13862  $as_echo_n "(cached) " >&6
13863else
13864  	  if test yes = "$cross_compiling"; then :
13865  lt_cv_dlopen_self_static=cross
13866else
13867  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13868  lt_status=$lt_dlunknown
13869  cat > conftest.$ac_ext <<_LT_EOF
13870#line $LINENO "configure"
13871#include "confdefs.h"
13872
13873#if HAVE_DLFCN_H
13874#include <dlfcn.h>
13875#endif
13876
13877#include <stdio.h>
13878
13879#ifdef RTLD_GLOBAL
13880#  define LT_DLGLOBAL		RTLD_GLOBAL
13881#else
13882#  ifdef DL_GLOBAL
13883#    define LT_DLGLOBAL		DL_GLOBAL
13884#  else
13885#    define LT_DLGLOBAL		0
13886#  endif
13887#endif
13888
13889/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13890   find out it does not work in some platform. */
13891#ifndef LT_DLLAZY_OR_NOW
13892#  ifdef RTLD_LAZY
13893#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13894#  else
13895#    ifdef DL_LAZY
13896#      define LT_DLLAZY_OR_NOW		DL_LAZY
13897#    else
13898#      ifdef RTLD_NOW
13899#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13900#      else
13901#        ifdef DL_NOW
13902#          define LT_DLLAZY_OR_NOW	DL_NOW
13903#        else
13904#          define LT_DLLAZY_OR_NOW	0
13905#        endif
13906#      endif
13907#    endif
13908#  endif
13909#endif
13910
13911/* When -fvisibility=hidden is used, assume the code has been annotated
13912   correspondingly for the symbols needed.  */
13913#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13914int fnord () __attribute__((visibility("default")));
13915#endif
13916
13917int fnord () { return 42; }
13918int main ()
13919{
13920  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13921  int status = $lt_dlunknown;
13922
13923  if (self)
13924    {
13925      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13926      else
13927        {
13928	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13929          else puts (dlerror ());
13930	}
13931      /* dlclose (self); */
13932    }
13933  else
13934    puts (dlerror ());
13935
13936  return status;
13937}
13938_LT_EOF
13939  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13940  (eval $ac_link) 2>&5
13941  ac_status=$?
13942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13943  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13944    (./conftest; exit; ) >&5 2>/dev/null
13945    lt_status=$?
13946    case x$lt_status in
13947      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13948      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13949      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13950    esac
13951  else :
13952    # compilation failed
13953    lt_cv_dlopen_self_static=no
13954  fi
13955fi
13956rm -fr conftest*
13957
13958
13959fi
13960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13961$as_echo "$lt_cv_dlopen_self_static" >&6; }
13962    fi
13963
13964    CPPFLAGS=$save_CPPFLAGS
13965    LDFLAGS=$save_LDFLAGS
13966    LIBS=$save_LIBS
13967    ;;
13968  esac
13969
13970  case $lt_cv_dlopen_self in
13971  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13972  *) enable_dlopen_self=unknown ;;
13973  esac
13974
13975  case $lt_cv_dlopen_self_static in
13976  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13977  *) enable_dlopen_self_static=unknown ;;
13978  esac
13979fi
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997striplib=
13998old_striplib=
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14000$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14001if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14002  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14003  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14005$as_echo "yes" >&6; }
14006else
14007# FIXME - insert some real tests, host_os isn't really good enough
14008  case $host_os in
14009  darwin*)
14010    if test -n "$STRIP"; then
14011      striplib="$STRIP -x"
14012      old_striplib="$STRIP -S"
14013      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14014$as_echo "yes" >&6; }
14015    else
14016      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017$as_echo "no" >&6; }
14018    fi
14019    ;;
14020  *)
14021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022$as_echo "no" >&6; }
14023    ;;
14024  esac
14025fi
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038  # Report what library types will actually be built
14039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14040$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14042$as_echo "$can_build_shared" >&6; }
14043
14044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14045$as_echo_n "checking whether to build shared libraries... " >&6; }
14046  test no = "$can_build_shared" && enable_shared=no
14047
14048  # On AIX, shared libraries and static libraries use the same namespace, and
14049  # are all built from PIC.
14050  case $host_os in
14051  aix3*)
14052    test yes = "$enable_shared" && enable_static=no
14053    if test -n "$RANLIB"; then
14054      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14055      postinstall_cmds='$RANLIB $lib'
14056    fi
14057    ;;
14058
14059  aix[4-9]*)
14060    if test ia64 != "$host_cpu"; then
14061      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14062      yes,aix,yes) ;;			# shared object as lib.so file only
14063      yes,svr4,*) ;;			# shared object as lib.so archive member only
14064      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14065      esac
14066    fi
14067    ;;
14068  esac
14069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14070$as_echo "$enable_shared" >&6; }
14071
14072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14073$as_echo_n "checking whether to build static libraries... " >&6; }
14074  # Make sure either enable_shared or enable_static is yes.
14075  test yes = "$enable_shared" || enable_static=yes
14076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14077$as_echo "$enable_static" >&6; }
14078
14079
14080
14081
14082fi
14083ac_ext=c
14084ac_cpp='$CPP $CPPFLAGS'
14085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14087ac_compiler_gnu=$ac_cv_c_compiler_gnu
14088
14089CC=$lt_save_CC
14090
14091      if test -n "$CXX" && ( test no != "$CXX" &&
14092    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14093    (test g++ != "$CXX"))); then
14094  ac_ext=cpp
14095ac_cpp='$CXXCPP $CPPFLAGS'
14096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14100$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14101if test -z "$CXXCPP"; then
14102  if ${ac_cv_prog_CXXCPP+:} false; then :
14103  $as_echo_n "(cached) " >&6
14104else
14105      # Double quotes because CXXCPP needs to be expanded
14106    for CXXCPP in "$CXX -E" "/lib/cpp"
14107    do
14108      ac_preproc_ok=false
14109for ac_cxx_preproc_warn_flag in '' yes
14110do
14111  # Use a header file that comes with gcc, so configuring glibc
14112  # with a fresh cross-compiler works.
14113  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14114  # <limits.h> exists even on freestanding compilers.
14115  # On the NeXT, cc -E runs the code through the compiler's parser,
14116  # not just through cpp. "Syntax error" is here to catch this case.
14117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118/* end confdefs.h.  */
14119#ifdef __STDC__
14120# include <limits.h>
14121#else
14122# include <assert.h>
14123#endif
14124		     Syntax error
14125_ACEOF
14126if ac_fn_cxx_try_cpp "$LINENO"; then :
14127
14128else
14129  # Broken: fails on valid input.
14130continue
14131fi
14132rm -f conftest.err conftest.i conftest.$ac_ext
14133
14134  # OK, works on sane cases.  Now check whether nonexistent headers
14135  # can be detected and how.
14136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137/* end confdefs.h.  */
14138#include <ac_nonexistent.h>
14139_ACEOF
14140if ac_fn_cxx_try_cpp "$LINENO"; then :
14141  # Broken: success on invalid input.
14142continue
14143else
14144  # Passes both tests.
14145ac_preproc_ok=:
14146break
14147fi
14148rm -f conftest.err conftest.i conftest.$ac_ext
14149
14150done
14151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14152rm -f conftest.i conftest.err conftest.$ac_ext
14153if $ac_preproc_ok; then :
14154  break
14155fi
14156
14157    done
14158    ac_cv_prog_CXXCPP=$CXXCPP
14159
14160fi
14161  CXXCPP=$ac_cv_prog_CXXCPP
14162else
14163  ac_cv_prog_CXXCPP=$CXXCPP
14164fi
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14166$as_echo "$CXXCPP" >&6; }
14167ac_preproc_ok=false
14168for ac_cxx_preproc_warn_flag in '' yes
14169do
14170  # Use a header file that comes with gcc, so configuring glibc
14171  # with a fresh cross-compiler works.
14172  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14173  # <limits.h> exists even on freestanding compilers.
14174  # On the NeXT, cc -E runs the code through the compiler's parser,
14175  # not just through cpp. "Syntax error" is here to catch this case.
14176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177/* end confdefs.h.  */
14178#ifdef __STDC__
14179# include <limits.h>
14180#else
14181# include <assert.h>
14182#endif
14183		     Syntax error
14184_ACEOF
14185if ac_fn_cxx_try_cpp "$LINENO"; then :
14186
14187else
14188  # Broken: fails on valid input.
14189continue
14190fi
14191rm -f conftest.err conftest.i conftest.$ac_ext
14192
14193  # OK, works on sane cases.  Now check whether nonexistent headers
14194  # can be detected and how.
14195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196/* end confdefs.h.  */
14197#include <ac_nonexistent.h>
14198_ACEOF
14199if ac_fn_cxx_try_cpp "$LINENO"; then :
14200  # Broken: success on invalid input.
14201continue
14202else
14203  # Passes both tests.
14204ac_preproc_ok=:
14205break
14206fi
14207rm -f conftest.err conftest.i conftest.$ac_ext
14208
14209done
14210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14211rm -f conftest.i conftest.err conftest.$ac_ext
14212if $ac_preproc_ok; then :
14213
14214else
14215  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14217as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14218See \`config.log' for more details" "$LINENO" 5; }
14219fi
14220
14221ac_ext=c
14222ac_cpp='$CPP $CPPFLAGS'
14223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14225ac_compiler_gnu=$ac_cv_c_compiler_gnu
14226
14227else
14228  _lt_caught_CXX_error=yes
14229fi
14230
14231ac_ext=cpp
14232ac_cpp='$CXXCPP $CPPFLAGS'
14233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14236
14237archive_cmds_need_lc_CXX=no
14238allow_undefined_flag_CXX=
14239always_export_symbols_CXX=no
14240archive_expsym_cmds_CXX=
14241compiler_needs_object_CXX=no
14242export_dynamic_flag_spec_CXX=
14243hardcode_direct_CXX=no
14244hardcode_direct_absolute_CXX=no
14245hardcode_libdir_flag_spec_CXX=
14246hardcode_libdir_separator_CXX=
14247hardcode_minus_L_CXX=no
14248hardcode_shlibpath_var_CXX=unsupported
14249hardcode_automatic_CXX=no
14250inherit_rpath_CXX=no
14251module_cmds_CXX=
14252module_expsym_cmds_CXX=
14253link_all_deplibs_CXX=unknown
14254old_archive_cmds_CXX=$old_archive_cmds
14255reload_flag_CXX=$reload_flag
14256reload_cmds_CXX=$reload_cmds
14257no_undefined_flag_CXX=
14258whole_archive_flag_spec_CXX=
14259enable_shared_with_static_runtimes_CXX=no
14260
14261# Source file extension for C++ test sources.
14262ac_ext=cpp
14263
14264# Object file extension for compiled C++ test sources.
14265objext=o
14266objext_CXX=$objext
14267
14268# No sense in running all these tests if we already determined that
14269# the CXX compiler isn't working.  Some variables (like enable_shared)
14270# are currently assumed to apply to all compilers on this platform,
14271# and will be corrupted by setting them based on a non-working compiler.
14272if test yes != "$_lt_caught_CXX_error"; then
14273  # Code to be used in simple compile tests
14274  lt_simple_compile_test_code="int some_variable = 0;"
14275
14276  # Code to be used in simple link tests
14277  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14278
14279  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14280
14281
14282
14283
14284
14285
14286# If no C compiler was specified, use CC.
14287LTCC=${LTCC-"$CC"}
14288
14289# If no C compiler flags were specified, use CFLAGS.
14290LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14291
14292# Allow CC to be a program name with arguments.
14293compiler=$CC
14294
14295
14296  # save warnings/boilerplate of simple test code
14297  ac_outfile=conftest.$ac_objext
14298echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14299eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14300_lt_compiler_boilerplate=`cat conftest.err`
14301$RM conftest*
14302
14303  ac_outfile=conftest.$ac_objext
14304echo "$lt_simple_link_test_code" >conftest.$ac_ext
14305eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14306_lt_linker_boilerplate=`cat conftest.err`
14307$RM -r conftest*
14308
14309
14310  # Allow CC to be a program name with arguments.
14311  lt_save_CC=$CC
14312  lt_save_CFLAGS=$CFLAGS
14313  lt_save_LD=$LD
14314  lt_save_GCC=$GCC
14315  GCC=$GXX
14316  lt_save_with_gnu_ld=$with_gnu_ld
14317  lt_save_path_LD=$lt_cv_path_LD
14318  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14319    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14320  else
14321    $as_unset lt_cv_prog_gnu_ld
14322  fi
14323  if test -n "${lt_cv_path_LDCXX+set}"; then
14324    lt_cv_path_LD=$lt_cv_path_LDCXX
14325  else
14326    $as_unset lt_cv_path_LD
14327  fi
14328  test -z "${LDCXX+set}" || LD=$LDCXX
14329  CC=${CXX-"c++"}
14330  CFLAGS=$CXXFLAGS
14331  compiler=$CC
14332  compiler_CXX=$CC
14333  func_cc_basename $compiler
14334cc_basename=$func_cc_basename_result
14335
14336
14337  if test -n "$compiler"; then
14338    # We don't want -fno-exception when compiling C++ code, so set the
14339    # no_builtin_flag separately
14340    if test yes = "$GXX"; then
14341      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14342    else
14343      lt_prog_compiler_no_builtin_flag_CXX=
14344    fi
14345
14346    if test yes = "$GXX"; then
14347      # Set up default GNU C++ configuration
14348
14349
14350
14351# Check whether --with-gnu-ld was given.
14352if test "${with_gnu_ld+set}" = set; then :
14353  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14354else
14355  with_gnu_ld=no
14356fi
14357
14358ac_prog=ld
14359if test yes = "$GCC"; then
14360  # Check if gcc -print-prog-name=ld gives a path.
14361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14362$as_echo_n "checking for ld used by $CC... " >&6; }
14363  case $host in
14364  *-*-mingw*)
14365    # gcc leaves a trailing carriage return, which upsets mingw
14366    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14367  *)
14368    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14369  esac
14370  case $ac_prog in
14371    # Accept absolute paths.
14372    [\\/]* | ?:[\\/]*)
14373      re_direlt='/[^/][^/]*/\.\./'
14374      # Canonicalize the pathname of ld
14375      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14376      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14377	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14378      done
14379      test -z "$LD" && LD=$ac_prog
14380      ;;
14381  "")
14382    # If it fails, then pretend we aren't using GCC.
14383    ac_prog=ld
14384    ;;
14385  *)
14386    # If it is relative, then search for the first ld in PATH.
14387    with_gnu_ld=unknown
14388    ;;
14389  esac
14390elif test yes = "$with_gnu_ld"; then
14391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14392$as_echo_n "checking for GNU ld... " >&6; }
14393else
14394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14395$as_echo_n "checking for non-GNU ld... " >&6; }
14396fi
14397if ${lt_cv_path_LD+:} false; then :
14398  $as_echo_n "(cached) " >&6
14399else
14400  if test -z "$LD"; then
14401  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14402  for ac_dir in $PATH; do
14403    IFS=$lt_save_ifs
14404    test -z "$ac_dir" && ac_dir=.
14405    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14406      lt_cv_path_LD=$ac_dir/$ac_prog
14407      # Check to see if the program is GNU ld.  I'd rather use --version,
14408      # but apparently some variants of GNU ld only accept -v.
14409      # Break only if it was the GNU/non-GNU ld that we prefer.
14410      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14411      *GNU* | *'with BFD'*)
14412	test no != "$with_gnu_ld" && break
14413	;;
14414      *)
14415	test yes != "$with_gnu_ld" && break
14416	;;
14417      esac
14418    fi
14419  done
14420  IFS=$lt_save_ifs
14421else
14422  lt_cv_path_LD=$LD # Let the user override the test with a path.
14423fi
14424fi
14425
14426LD=$lt_cv_path_LD
14427if test -n "$LD"; then
14428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14429$as_echo "$LD" >&6; }
14430else
14431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432$as_echo "no" >&6; }
14433fi
14434test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14436$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14437if ${lt_cv_prog_gnu_ld+:} false; then :
14438  $as_echo_n "(cached) " >&6
14439else
14440  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14441case `$LD -v 2>&1 </dev/null` in
14442*GNU* | *'with BFD'*)
14443  lt_cv_prog_gnu_ld=yes
14444  ;;
14445*)
14446  lt_cv_prog_gnu_ld=no
14447  ;;
14448esac
14449fi
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14451$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14452with_gnu_ld=$lt_cv_prog_gnu_ld
14453
14454
14455
14456
14457
14458
14459
14460      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14461      # archiving commands below assume that GNU ld is being used.
14462      if test yes = "$with_gnu_ld"; then
14463        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14464        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'
14465
14466        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14467        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14468
14469        # If archive_cmds runs LD, not CC, wlarc should be empty
14470        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14471        #     investigate it a little bit more. (MM)
14472        wlarc='$wl'
14473
14474        # ancient GNU ld didn't support --whole-archive et. al.
14475        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14476	  $GREP 'no-whole-archive' > /dev/null; then
14477          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14478        else
14479          whole_archive_flag_spec_CXX=
14480        fi
14481      else
14482        with_gnu_ld=no
14483        wlarc=
14484
14485        # A generic and very simple default shared library creation
14486        # command for GNU C++ for the case where it uses the native
14487        # linker, instead of GNU ld.  If possible, this setting should
14488        # overridden to take advantage of the native linker features on
14489        # the platform it is being used on.
14490        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14491      fi
14492
14493      # Commands to make compiler produce verbose output that lists
14494      # what "hidden" libraries, object files and flags are used when
14495      # linking a shared library.
14496      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14497
14498    else
14499      GXX=no
14500      with_gnu_ld=no
14501      wlarc=
14502    fi
14503
14504    # PORTME: fill in a description of your system's C++ link characteristics
14505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14506$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14507    ld_shlibs_CXX=yes
14508    case $host_os in
14509      aix3*)
14510        # FIXME: insert proper C++ library support
14511        ld_shlibs_CXX=no
14512        ;;
14513      aix[4-9]*)
14514        if test ia64 = "$host_cpu"; then
14515          # On IA64, the linker does run time linking by default, so we don't
14516          # have to do anything special.
14517          aix_use_runtimelinking=no
14518          exp_sym_flag='-Bexport'
14519          no_entry_flag=
14520        else
14521          aix_use_runtimelinking=no
14522
14523          # Test if we are trying to use run time linking or normal
14524          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14525          # have runtime linking enabled, and use it for executables.
14526          # For shared libraries, we enable/disable runtime linking
14527          # depending on the kind of the shared library created -
14528          # when "with_aix_soname,aix_use_runtimelinking" is:
14529          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14530          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14531          #            lib.a           static archive
14532          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14533          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14534          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14535          #            lib.a(lib.so.V) shared, rtl:no
14536          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14537          #            lib.a           static archive
14538          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14539	    for ld_flag in $LDFLAGS; do
14540	      case $ld_flag in
14541	      *-brtl*)
14542	        aix_use_runtimelinking=yes
14543	        break
14544	        ;;
14545	      esac
14546	    done
14547	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14548	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14549	      # so we don't have lib.a shared libs to link our executables.
14550	      # We have to force runtime linking in this case.
14551	      aix_use_runtimelinking=yes
14552	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14553	    fi
14554	    ;;
14555          esac
14556
14557          exp_sym_flag='-bexport'
14558          no_entry_flag='-bnoentry'
14559        fi
14560
14561        # When large executables or shared objects are built, AIX ld can
14562        # have problems creating the table of contents.  If linking a library
14563        # or program results in "error TOC overflow" add -mminimal-toc to
14564        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14565        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14566
14567        archive_cmds_CXX=''
14568        hardcode_direct_CXX=yes
14569        hardcode_direct_absolute_CXX=yes
14570        hardcode_libdir_separator_CXX=':'
14571        link_all_deplibs_CXX=yes
14572        file_list_spec_CXX='$wl-f,'
14573        case $with_aix_soname,$aix_use_runtimelinking in
14574        aix,*) ;;	# no import file
14575        svr4,* | *,yes) # use import file
14576          # The Import File defines what to hardcode.
14577          hardcode_direct_CXX=no
14578          hardcode_direct_absolute_CXX=no
14579          ;;
14580        esac
14581
14582        if test yes = "$GXX"; then
14583          case $host_os in aix4.[012]|aix4.[012].*)
14584          # We only want to do this on AIX 4.2 and lower, the check
14585          # below for broken collect2 doesn't work under 4.3+
14586	  collect2name=`$CC -print-prog-name=collect2`
14587	  if test -f "$collect2name" &&
14588	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14589	  then
14590	    # We have reworked collect2
14591	    :
14592	  else
14593	    # We have old collect2
14594	    hardcode_direct_CXX=unsupported
14595	    # It fails to find uninstalled libraries when the uninstalled
14596	    # path is not listed in the libpath.  Setting hardcode_minus_L
14597	    # to unsupported forces relinking
14598	    hardcode_minus_L_CXX=yes
14599	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14600	    hardcode_libdir_separator_CXX=
14601	  fi
14602          esac
14603          shared_flag='-shared'
14604	  if test yes = "$aix_use_runtimelinking"; then
14605	    shared_flag=$shared_flag' $wl-G'
14606	  fi
14607	  # Need to ensure runtime linking is disabled for the traditional
14608	  # shared library, or the linker may eventually find shared libraries
14609	  # /with/ Import File - we do not want to mix them.
14610	  shared_flag_aix='-shared'
14611	  shared_flag_svr4='-shared $wl-G'
14612        else
14613          # not using gcc
14614          if test ia64 = "$host_cpu"; then
14615	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14616	  # chokes on -Wl,-G. The following line is correct:
14617	  shared_flag='-G'
14618          else
14619	    if test yes = "$aix_use_runtimelinking"; then
14620	      shared_flag='$wl-G'
14621	    else
14622	      shared_flag='$wl-bM:SRE'
14623	    fi
14624	    shared_flag_aix='$wl-bM:SRE'
14625	    shared_flag_svr4='$wl-G'
14626          fi
14627        fi
14628
14629        export_dynamic_flag_spec_CXX='$wl-bexpall'
14630        # It seems that -bexpall does not export symbols beginning with
14631        # underscore (_), so it is better to generate a list of symbols to
14632	# export.
14633        always_export_symbols_CXX=yes
14634	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14635          # Warning - without using the other runtime loading flags (-brtl),
14636          # -berok will link without error, but may produce a broken library.
14637          # The "-G" linker flag allows undefined symbols.
14638          no_undefined_flag_CXX='-bernotok'
14639          # Determine the default libpath from the value encoded in an empty
14640          # executable.
14641          if test set = "${lt_cv_aix_libpath+set}"; then
14642  aix_libpath=$lt_cv_aix_libpath
14643else
14644  if ${lt_cv_aix_libpath__CXX+:} false; then :
14645  $as_echo_n "(cached) " >&6
14646else
14647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648/* end confdefs.h.  */
14649
14650int
14651main ()
14652{
14653
14654  ;
14655  return 0;
14656}
14657_ACEOF
14658if ac_fn_cxx_try_link "$LINENO"; then :
14659
14660  lt_aix_libpath_sed='
14661      /Import File Strings/,/^$/ {
14662	  /^0/ {
14663	      s/^0  *\([^ ]*\) *$/\1/
14664	      p
14665	  }
14666      }'
14667  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14668  # Check for a 64-bit object if we didn't find anything.
14669  if test -z "$lt_cv_aix_libpath__CXX"; then
14670    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14671  fi
14672fi
14673rm -f core conftest.err conftest.$ac_objext \
14674    conftest$ac_exeext conftest.$ac_ext
14675  if test -z "$lt_cv_aix_libpath__CXX"; then
14676    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14677  fi
14678
14679fi
14680
14681  aix_libpath=$lt_cv_aix_libpath__CXX
14682fi
14683
14684          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14685
14686          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14687        else
14688          if test ia64 = "$host_cpu"; then
14689	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14690	    allow_undefined_flag_CXX="-z nodefs"
14691	    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"
14692          else
14693	    # Determine the default libpath from the value encoded in an
14694	    # empty executable.
14695	    if test set = "${lt_cv_aix_libpath+set}"; then
14696  aix_libpath=$lt_cv_aix_libpath
14697else
14698  if ${lt_cv_aix_libpath__CXX+:} false; then :
14699  $as_echo_n "(cached) " >&6
14700else
14701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702/* end confdefs.h.  */
14703
14704int
14705main ()
14706{
14707
14708  ;
14709  return 0;
14710}
14711_ACEOF
14712if ac_fn_cxx_try_link "$LINENO"; then :
14713
14714  lt_aix_libpath_sed='
14715      /Import File Strings/,/^$/ {
14716	  /^0/ {
14717	      s/^0  *\([^ ]*\) *$/\1/
14718	      p
14719	  }
14720      }'
14721  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14722  # Check for a 64-bit object if we didn't find anything.
14723  if test -z "$lt_cv_aix_libpath__CXX"; then
14724    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14725  fi
14726fi
14727rm -f core conftest.err conftest.$ac_objext \
14728    conftest$ac_exeext conftest.$ac_ext
14729  if test -z "$lt_cv_aix_libpath__CXX"; then
14730    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14731  fi
14732
14733fi
14734
14735  aix_libpath=$lt_cv_aix_libpath__CXX
14736fi
14737
14738	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14739	    # Warning - without using the other run time loading flags,
14740	    # -berok will link without error, but may produce a broken library.
14741	    no_undefined_flag_CXX=' $wl-bernotok'
14742	    allow_undefined_flag_CXX=' $wl-berok'
14743	    if test yes = "$with_gnu_ld"; then
14744	      # We only use this code for GNU lds that support --whole-archive.
14745	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14746	    else
14747	      # Exported symbols can be pulled into shared objects from archives
14748	      whole_archive_flag_spec_CXX='$convenience'
14749	    fi
14750	    archive_cmds_need_lc_CXX=yes
14751	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14752	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14753	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14754	    if test svr4 != "$with_aix_soname"; then
14755	      # This is similar to how AIX traditionally builds its shared
14756	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14757	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14758	    fi
14759	    if test aix != "$with_aix_soname"; then
14760	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14761	    else
14762	      # used by -dlpreopen to get the symbols
14763	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14764	    fi
14765	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14766          fi
14767        fi
14768        ;;
14769
14770      beos*)
14771	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14772	  allow_undefined_flag_CXX=unsupported
14773	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14774	  # support --undefined.  This deserves some investigation.  FIXME
14775	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14776	else
14777	  ld_shlibs_CXX=no
14778	fi
14779	;;
14780
14781      chorus*)
14782        case $cc_basename in
14783          *)
14784	  # FIXME: insert proper C++ library support
14785	  ld_shlibs_CXX=no
14786	  ;;
14787        esac
14788        ;;
14789
14790      cygwin* | mingw* | pw32* | cegcc*)
14791	case $GXX,$cc_basename in
14792	,cl* | no,cl*)
14793	  # Native MSVC
14794	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14795	  # no search path for DLLs.
14796	  hardcode_libdir_flag_spec_CXX=' '
14797	  allow_undefined_flag_CXX=unsupported
14798	  always_export_symbols_CXX=yes
14799	  file_list_spec_CXX='@'
14800	  # Tell ltmain to make .lib files, not .a files.
14801	  libext=lib
14802	  # Tell ltmain to make .dll files, not .so files.
14803	  shrext_cmds=.dll
14804	  # FIXME: Setting linknames here is a bad hack.
14805	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14806	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14807              cp "$export_symbols" "$output_objdir/$soname.def";
14808              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14809            else
14810              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14811            fi~
14812            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14813            linknames='
14814	  # The linker will not automatically build a static lib if we build a DLL.
14815	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14816	  enable_shared_with_static_runtimes_CXX=yes
14817	  # Don't use ranlib
14818	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14819	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14820            lt_tool_outputfile="@TOOL_OUTPUT@"~
14821            case $lt_outputfile in
14822              *.exe|*.EXE) ;;
14823              *)
14824                lt_outputfile=$lt_outputfile.exe
14825                lt_tool_outputfile=$lt_tool_outputfile.exe
14826                ;;
14827            esac~
14828            func_to_tool_file "$lt_outputfile"~
14829            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14830              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14831              $RM "$lt_outputfile.manifest";
14832            fi'
14833	  ;;
14834	*)
14835	  # g++
14836	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14837	  # as there is no search path for DLLs.
14838	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14839	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14840	  allow_undefined_flag_CXX=unsupported
14841	  always_export_symbols_CXX=no
14842	  enable_shared_with_static_runtimes_CXX=yes
14843
14844	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14845	    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'
14846	    # If the export-symbols file already is a .def file, use it as
14847	    # is; otherwise, prepend EXPORTS...
14848	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14849              cp $export_symbols $output_objdir/$soname.def;
14850            else
14851              echo EXPORTS > $output_objdir/$soname.def;
14852              cat $export_symbols >> $output_objdir/$soname.def;
14853            fi~
14854            $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'
14855	  else
14856	    ld_shlibs_CXX=no
14857	  fi
14858	  ;;
14859	esac
14860	;;
14861      darwin* | rhapsody*)
14862
14863
14864  archive_cmds_need_lc_CXX=no
14865  hardcode_direct_CXX=no
14866  hardcode_automatic_CXX=yes
14867  hardcode_shlibpath_var_CXX=unsupported
14868  if test yes = "$lt_cv_ld_force_load"; then
14869    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\"`'
14870
14871  else
14872    whole_archive_flag_spec_CXX=''
14873  fi
14874  link_all_deplibs_CXX=yes
14875  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14876  case $cc_basename in
14877     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14878     *) _lt_dar_can_shared=$GCC ;;
14879  esac
14880  if test yes = "$_lt_dar_can_shared"; then
14881    output_verbose_link_cmd=func_echo_all
14882    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"
14883    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14884    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"
14885    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"
14886       if test yes != "$lt_cv_apple_cc_single_mod"; then
14887      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"
14888      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"
14889    fi
14890
14891  else
14892  ld_shlibs_CXX=no
14893  fi
14894
14895	;;
14896
14897      os2*)
14898	hardcode_libdir_flag_spec_CXX='-L$libdir'
14899	hardcode_minus_L_CXX=yes
14900	allow_undefined_flag_CXX=unsupported
14901	shrext_cmds=.dll
14902	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14903	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14904	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14905	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14906	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14907	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14908	  emximp -o $lib $output_objdir/$libname.def'
14909	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14910	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14911	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14912	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14913	  prefix_cmds="$SED"~
14914	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14915	    prefix_cmds="$prefix_cmds -e 1d";
14916	  fi~
14917	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14918	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14919	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14920	  emximp -o $lib $output_objdir/$libname.def'
14921	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14922	enable_shared_with_static_runtimes_CXX=yes
14923	;;
14924
14925      dgux*)
14926        case $cc_basename in
14927          ec++*)
14928	    # FIXME: insert proper C++ library support
14929	    ld_shlibs_CXX=no
14930	    ;;
14931          ghcx*)
14932	    # Green Hills C++ Compiler
14933	    # FIXME: insert proper C++ library support
14934	    ld_shlibs_CXX=no
14935	    ;;
14936          *)
14937	    # FIXME: insert proper C++ library support
14938	    ld_shlibs_CXX=no
14939	    ;;
14940        esac
14941        ;;
14942
14943      freebsd2.*)
14944        # C++ shared libraries reported to be fairly broken before
14945	# switch to ELF
14946        ld_shlibs_CXX=no
14947        ;;
14948
14949      freebsd-elf*)
14950        archive_cmds_need_lc_CXX=no
14951        ;;
14952
14953      freebsd* | dragonfly*)
14954        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14955        # conventions
14956        ld_shlibs_CXX=yes
14957        ;;
14958
14959      haiku*)
14960        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14961        link_all_deplibs_CXX=yes
14962        ;;
14963
14964      hpux9*)
14965        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14966        hardcode_libdir_separator_CXX=:
14967        export_dynamic_flag_spec_CXX='$wl-E'
14968        hardcode_direct_CXX=yes
14969        hardcode_minus_L_CXX=yes # Not in the search PATH,
14970				             # but as the default
14971				             # location of the library.
14972
14973        case $cc_basename in
14974          CC*)
14975            # FIXME: insert proper C++ library support
14976            ld_shlibs_CXX=no
14977            ;;
14978          aCC*)
14979            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14980            # Commands to make compiler produce verbose output that lists
14981            # what "hidden" libraries, object files and flags are used when
14982            # linking a shared library.
14983            #
14984            # There doesn't appear to be a way to prevent this compiler from
14985            # explicitly linking system object files so we need to strip them
14986            # from the output so that they don't get included in the library
14987            # dependencies.
14988            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"'
14989            ;;
14990          *)
14991            if test yes = "$GXX"; then
14992              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14993            else
14994              # FIXME: insert proper C++ library support
14995              ld_shlibs_CXX=no
14996            fi
14997            ;;
14998        esac
14999        ;;
15000
15001      hpux10*|hpux11*)
15002        if test no = "$with_gnu_ld"; then
15003	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15004	  hardcode_libdir_separator_CXX=:
15005
15006          case $host_cpu in
15007            hppa*64*|ia64*)
15008              ;;
15009            *)
15010	      export_dynamic_flag_spec_CXX='$wl-E'
15011              ;;
15012          esac
15013        fi
15014        case $host_cpu in
15015          hppa*64*|ia64*)
15016            hardcode_direct_CXX=no
15017            hardcode_shlibpath_var_CXX=no
15018            ;;
15019          *)
15020            hardcode_direct_CXX=yes
15021            hardcode_direct_absolute_CXX=yes
15022            hardcode_minus_L_CXX=yes # Not in the search PATH,
15023					         # but as the default
15024					         # location of the library.
15025            ;;
15026        esac
15027
15028        case $cc_basename in
15029          CC*)
15030	    # FIXME: insert proper C++ library support
15031	    ld_shlibs_CXX=no
15032	    ;;
15033          aCC*)
15034	    case $host_cpu in
15035	      hppa*64*)
15036	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15037	        ;;
15038	      ia64*)
15039	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15040	        ;;
15041	      *)
15042	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15043	        ;;
15044	    esac
15045	    # Commands to make compiler produce verbose output that lists
15046	    # what "hidden" libraries, object files and flags are used when
15047	    # linking a shared library.
15048	    #
15049	    # There doesn't appear to be a way to prevent this compiler from
15050	    # explicitly linking system object files so we need to strip them
15051	    # from the output so that they don't get included in the library
15052	    # dependencies.
15053	    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"'
15054	    ;;
15055          *)
15056	    if test yes = "$GXX"; then
15057	      if test no = "$with_gnu_ld"; then
15058	        case $host_cpu in
15059	          hppa*64*)
15060	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15061	            ;;
15062	          ia64*)
15063	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15064	            ;;
15065	          *)
15066	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15067	            ;;
15068	        esac
15069	      fi
15070	    else
15071	      # FIXME: insert proper C++ library support
15072	      ld_shlibs_CXX=no
15073	    fi
15074	    ;;
15075        esac
15076        ;;
15077
15078      interix[3-9]*)
15079	hardcode_direct_CXX=no
15080	hardcode_shlibpath_var_CXX=no
15081	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15082	export_dynamic_flag_spec_CXX='$wl-E'
15083	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15084	# Instead, shared libraries are loaded at an image base (0x10000000 by
15085	# default) and relocated if they conflict, which is a slow very memory
15086	# consuming and fragmenting process.  To avoid this, we pick a random,
15087	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15088	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15089	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'
15090	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'
15091	;;
15092      irix5* | irix6*)
15093        case $cc_basename in
15094          CC*)
15095	    # SGI C++
15096	    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'
15097
15098	    # Archives containing C++ object files must be created using
15099	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15100	    # necessary to make sure instantiated templates are included
15101	    # in the archive.
15102	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15103	    ;;
15104          *)
15105	    if test yes = "$GXX"; then
15106	      if test no = "$with_gnu_ld"; then
15107	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15108	      else
15109	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15110	      fi
15111	    fi
15112	    link_all_deplibs_CXX=yes
15113	    ;;
15114        esac
15115        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15116        hardcode_libdir_separator_CXX=:
15117        inherit_rpath_CXX=yes
15118        ;;
15119
15120      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15121        case $cc_basename in
15122          KCC*)
15123	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15124
15125	    # KCC will only create a shared library if the output file
15126	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15127	    # to its proper name (with version) after linking.
15128	    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'
15129	    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'
15130	    # Commands to make compiler produce verbose output that lists
15131	    # what "hidden" libraries, object files and flags are used when
15132	    # linking a shared library.
15133	    #
15134	    # There doesn't appear to be a way to prevent this compiler from
15135	    # explicitly linking system object files so we need to strip them
15136	    # from the output so that they don't get included in the library
15137	    # dependencies.
15138	    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"'
15139
15140	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15141	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15142
15143	    # Archives containing C++ object files must be created using
15144	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15145	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15146	    ;;
15147	  icpc* | ecpc* )
15148	    # Intel C++
15149	    with_gnu_ld=yes
15150	    # version 8.0 and above of icpc choke on multiply defined symbols
15151	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15152	    # earlier do not add the objects themselves.
15153	    case `$CC -V 2>&1` in
15154	      *"Version 7."*)
15155	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15156		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'
15157		;;
15158	      *)  # Version 8.0 or newer
15159	        tmp_idyn=
15160	        case $host_cpu in
15161		  ia64*) tmp_idyn=' -i_dynamic';;
15162		esac
15163	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15164		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'
15165		;;
15166	    esac
15167	    archive_cmds_need_lc_CXX=no
15168	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15169	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15170	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15171	    ;;
15172          pgCC* | pgcpp*)
15173            # Portland Group C++ compiler
15174	    case `$CC -V` in
15175	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15176	      prelink_cmds_CXX='tpldir=Template.dir~
15177               rm -rf $tpldir~
15178               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15179               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15180	      old_archive_cmds_CXX='tpldir=Template.dir~
15181                rm -rf $tpldir~
15182                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15183                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15184                $RANLIB $oldlib'
15185	      archive_cmds_CXX='tpldir=Template.dir~
15186                rm -rf $tpldir~
15187                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15188                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15189	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15190                rm -rf $tpldir~
15191                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15192                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15193	      ;;
15194	    *) # Version 6 and above use weak symbols
15195	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15196	      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'
15197	      ;;
15198	    esac
15199
15200	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15201	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15202	    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'
15203            ;;
15204	  cxx*)
15205	    # Compaq C++
15206	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15207	    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'
15208
15209	    runpath_var=LD_RUN_PATH
15210	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15211	    hardcode_libdir_separator_CXX=:
15212
15213	    # Commands to make compiler produce verbose output that lists
15214	    # what "hidden" libraries, object files and flags are used when
15215	    # linking a shared library.
15216	    #
15217	    # There doesn't appear to be a way to prevent this compiler from
15218	    # explicitly linking system object files so we need to strip them
15219	    # from the output so that they don't get included in the library
15220	    # dependencies.
15221	    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'
15222	    ;;
15223	  xl* | mpixl* | bgxl*)
15224	    # IBM XL 8.0 on PPC, with GNU ld
15225	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15226	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15227	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15228	    if test yes = "$supports_anon_versioning"; then
15229	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15230                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15231                echo "local: *; };" >> $output_objdir/$libname.ver~
15232                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15233	    fi
15234	    ;;
15235	  *)
15236	    case `$CC -V 2>&1 | sed 5q` in
15237	    *Sun\ C*)
15238	      # Sun C++ 5.9
15239	      no_undefined_flag_CXX=' -zdefs'
15240	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15241	      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'
15242	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15243	      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'
15244	      compiler_needs_object_CXX=yes
15245
15246	      # Not sure whether something based on
15247	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15248	      # would be better.
15249	      output_verbose_link_cmd='func_echo_all'
15250
15251	      # Archives containing C++ object files must be created using
15252	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15253	      # necessary to make sure instantiated templates are included
15254	      # in the archive.
15255	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15256	      ;;
15257	    esac
15258	    ;;
15259	esac
15260	;;
15261
15262      lynxos*)
15263        # FIXME: insert proper C++ library support
15264	ld_shlibs_CXX=no
15265	;;
15266
15267      m88k*)
15268        # FIXME: insert proper C++ library support
15269        ld_shlibs_CXX=no
15270	;;
15271
15272      mvs*)
15273        case $cc_basename in
15274          cxx*)
15275	    # FIXME: insert proper C++ library support
15276	    ld_shlibs_CXX=no
15277	    ;;
15278	  *)
15279	    # FIXME: insert proper C++ library support
15280	    ld_shlibs_CXX=no
15281	    ;;
15282	esac
15283	;;
15284
15285      netbsd*)
15286        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15287	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15288	  wlarc=
15289	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15290	  hardcode_direct_CXX=yes
15291	  hardcode_shlibpath_var_CXX=no
15292	fi
15293	# Workaround some broken pre-1.5 toolchains
15294	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15295	;;
15296
15297      *nto* | *qnx*)
15298        ld_shlibs_CXX=yes
15299	;;
15300
15301      openbsd* | bitrig*)
15302	if test -f /usr/libexec/ld.so; then
15303	  hardcode_direct_CXX=yes
15304	  hardcode_shlibpath_var_CXX=no
15305	  hardcode_direct_absolute_CXX=yes
15306	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15307	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15308	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15309	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15310	    export_dynamic_flag_spec_CXX='$wl-E'
15311	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15312	  fi
15313	  output_verbose_link_cmd=func_echo_all
15314	else
15315	  ld_shlibs_CXX=no
15316	fi
15317	;;
15318
15319      osf3* | osf4* | osf5*)
15320        case $cc_basename in
15321          KCC*)
15322	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15323
15324	    # KCC will only create a shared library if the output file
15325	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15326	    # to its proper name (with version) after linking.
15327	    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'
15328
15329	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15330	    hardcode_libdir_separator_CXX=:
15331
15332	    # Archives containing C++ object files must be created using
15333	    # the KAI C++ compiler.
15334	    case $host in
15335	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15336	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15337	    esac
15338	    ;;
15339          RCC*)
15340	    # Rational C++ 2.4.1
15341	    # FIXME: insert proper C++ library support
15342	    ld_shlibs_CXX=no
15343	    ;;
15344          cxx*)
15345	    case $host in
15346	      osf3*)
15347	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15348	        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'
15349	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15350		;;
15351	      *)
15352	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15353	        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'
15354	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15355                  echo "-hidden">> $lib.exp~
15356                  $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~
15357                  $RM $lib.exp'
15358	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15359		;;
15360	    esac
15361
15362	    hardcode_libdir_separator_CXX=:
15363
15364	    # Commands to make compiler produce verbose output that lists
15365	    # what "hidden" libraries, object files and flags are used when
15366	    # linking a shared library.
15367	    #
15368	    # There doesn't appear to be a way to prevent this compiler from
15369	    # explicitly linking system object files so we need to strip them
15370	    # from the output so that they don't get included in the library
15371	    # dependencies.
15372	    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"'
15373	    ;;
15374	  *)
15375	    if test yes,no = "$GXX,$with_gnu_ld"; then
15376	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15377	      case $host in
15378	        osf3*)
15379	          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'
15380		  ;;
15381	        *)
15382	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15383		  ;;
15384	      esac
15385
15386	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15387	      hardcode_libdir_separator_CXX=:
15388
15389	      # Commands to make compiler produce verbose output that lists
15390	      # what "hidden" libraries, object files and flags are used when
15391	      # linking a shared library.
15392	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15393
15394	    else
15395	      # FIXME: insert proper C++ library support
15396	      ld_shlibs_CXX=no
15397	    fi
15398	    ;;
15399        esac
15400        ;;
15401
15402      psos*)
15403        # FIXME: insert proper C++ library support
15404        ld_shlibs_CXX=no
15405        ;;
15406
15407      sunos4*)
15408        case $cc_basename in
15409          CC*)
15410	    # Sun C++ 4.x
15411	    # FIXME: insert proper C++ library support
15412	    ld_shlibs_CXX=no
15413	    ;;
15414          lcc*)
15415	    # Lucid
15416	    # FIXME: insert proper C++ library support
15417	    ld_shlibs_CXX=no
15418	    ;;
15419          *)
15420	    # FIXME: insert proper C++ library support
15421	    ld_shlibs_CXX=no
15422	    ;;
15423        esac
15424        ;;
15425
15426      solaris*)
15427        case $cc_basename in
15428          CC* | sunCC*)
15429	    # Sun C++ 4.2, 5.x and Centerline C++
15430            archive_cmds_need_lc_CXX=yes
15431	    no_undefined_flag_CXX=' -zdefs'
15432	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15433	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15434              $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'
15435
15436	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15437	    hardcode_shlibpath_var_CXX=no
15438	    case $host_os in
15439	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15440	      *)
15441		# The compiler driver will combine and reorder linker options,
15442		# but understands '-z linker_flag'.
15443	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15444		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15445	        ;;
15446	    esac
15447	    link_all_deplibs_CXX=yes
15448
15449	    output_verbose_link_cmd='func_echo_all'
15450
15451	    # Archives containing C++ object files must be created using
15452	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15453	    # necessary to make sure instantiated templates are included
15454	    # in the archive.
15455	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15456	    ;;
15457          gcx*)
15458	    # Green Hills C++ Compiler
15459	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15460
15461	    # The C++ compiler must be used to create the archive.
15462	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15463	    ;;
15464          *)
15465	    # GNU C++ compiler with Solaris linker
15466	    if test yes,no = "$GXX,$with_gnu_ld"; then
15467	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15468	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15469	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15470	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15471                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15472
15473	        # Commands to make compiler produce verbose output that lists
15474	        # what "hidden" libraries, object files and flags are used when
15475	        # linking a shared library.
15476	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15477	      else
15478	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15479	        # platform.
15480	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15481	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15482                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15483
15484	        # Commands to make compiler produce verbose output that lists
15485	        # what "hidden" libraries, object files and flags are used when
15486	        # linking a shared library.
15487	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15488	      fi
15489
15490	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15491	      case $host_os in
15492		solaris2.[0-5] | solaris2.[0-5].*) ;;
15493		*)
15494		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15495		  ;;
15496	      esac
15497	    fi
15498	    ;;
15499        esac
15500        ;;
15501
15502    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15503      no_undefined_flag_CXX='$wl-z,text'
15504      archive_cmds_need_lc_CXX=no
15505      hardcode_shlibpath_var_CXX=no
15506      runpath_var='LD_RUN_PATH'
15507
15508      case $cc_basename in
15509        CC*)
15510	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15511	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15512	  ;;
15513	*)
15514	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15515	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15516	  ;;
15517      esac
15518      ;;
15519
15520      sysv5* | sco3.2v5* | sco5v6*)
15521	# Note: We CANNOT use -z defs as we might desire, because we do not
15522	# link with -lc, and that would cause any symbols used from libc to
15523	# always be unresolved, which means just about no library would
15524	# ever link correctly.  If we're not using GNU ld we use -z text
15525	# though, which does catch some bad symbols but isn't as heavy-handed
15526	# as -z defs.
15527	no_undefined_flag_CXX='$wl-z,text'
15528	allow_undefined_flag_CXX='$wl-z,nodefs'
15529	archive_cmds_need_lc_CXX=no
15530	hardcode_shlibpath_var_CXX=no
15531	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15532	hardcode_libdir_separator_CXX=':'
15533	link_all_deplibs_CXX=yes
15534	export_dynamic_flag_spec_CXX='$wl-Bexport'
15535	runpath_var='LD_RUN_PATH'
15536
15537	case $cc_basename in
15538          CC*)
15539	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15540	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15541	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15542              '"$old_archive_cmds_CXX"
15543	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15544              '"$reload_cmds_CXX"
15545	    ;;
15546	  *)
15547	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15548	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15549	    ;;
15550	esac
15551      ;;
15552
15553      tandem*)
15554        case $cc_basename in
15555          NCC*)
15556	    # NonStop-UX NCC 3.20
15557	    # FIXME: insert proper C++ library support
15558	    ld_shlibs_CXX=no
15559	    ;;
15560          *)
15561	    # FIXME: insert proper C++ library support
15562	    ld_shlibs_CXX=no
15563	    ;;
15564        esac
15565        ;;
15566
15567      vxworks*)
15568        # FIXME: insert proper C++ library support
15569        ld_shlibs_CXX=no
15570        ;;
15571
15572      *)
15573        # FIXME: insert proper C++ library support
15574        ld_shlibs_CXX=no
15575        ;;
15576    esac
15577
15578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15579$as_echo "$ld_shlibs_CXX" >&6; }
15580    test no = "$ld_shlibs_CXX" && can_build_shared=no
15581
15582    GCC_CXX=$GXX
15583    LD_CXX=$LD
15584
15585    ## CAVEAT EMPTOR:
15586    ## There is no encapsulation within the following macros, do not change
15587    ## the running order or otherwise move them around unless you know exactly
15588    ## what you are doing...
15589    # Dependencies to place before and after the object being linked:
15590predep_objects_CXX=
15591postdep_objects_CXX=
15592predeps_CXX=
15593postdeps_CXX=
15594compiler_lib_search_path_CXX=
15595
15596cat > conftest.$ac_ext <<_LT_EOF
15597class Foo
15598{
15599public:
15600  Foo (void) { a = 0; }
15601private:
15602  int a;
15603};
15604_LT_EOF
15605
15606
15607_lt_libdeps_save_CFLAGS=$CFLAGS
15608case "$CC $CFLAGS " in #(
15609*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15610*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15611*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15612esac
15613
15614if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15615  (eval $ac_compile) 2>&5
15616  ac_status=$?
15617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15618  test $ac_status = 0; }; then
15619  # Parse the compiler output and extract the necessary
15620  # objects, libraries and library flags.
15621
15622  # Sentinel used to keep track of whether or not we are before
15623  # the conftest object file.
15624  pre_test_object_deps_done=no
15625
15626  for p in `eval "$output_verbose_link_cmd"`; do
15627    case $prev$p in
15628
15629    -L* | -R* | -l*)
15630       # Some compilers place space between "-{L,R}" and the path.
15631       # Remove the space.
15632       if test x-L = "$p" ||
15633          test x-R = "$p"; then
15634	 prev=$p
15635	 continue
15636       fi
15637
15638       # Expand the sysroot to ease extracting the directories later.
15639       if test -z "$prev"; then
15640         case $p in
15641         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15642         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15643         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15644         esac
15645       fi
15646       case $p in
15647       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15648       esac
15649       if test no = "$pre_test_object_deps_done"; then
15650	 case $prev in
15651	 -L | -R)
15652	   # Internal compiler library paths should come after those
15653	   # provided the user.  The postdeps already come after the
15654	   # user supplied libs so there is no need to process them.
15655	   if test -z "$compiler_lib_search_path_CXX"; then
15656	     compiler_lib_search_path_CXX=$prev$p
15657	   else
15658	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15659	   fi
15660	   ;;
15661	 # The "-l" case would never come before the object being
15662	 # linked, so don't bother handling this case.
15663	 esac
15664       else
15665	 if test -z "$postdeps_CXX"; then
15666	   postdeps_CXX=$prev$p
15667	 else
15668	   postdeps_CXX="${postdeps_CXX} $prev$p"
15669	 fi
15670       fi
15671       prev=
15672       ;;
15673
15674    *.lto.$objext) ;; # Ignore GCC LTO objects
15675    *.$objext)
15676       # This assumes that the test object file only shows up
15677       # once in the compiler output.
15678       if test "$p" = "conftest.$objext"; then
15679	 pre_test_object_deps_done=yes
15680	 continue
15681       fi
15682
15683       if test no = "$pre_test_object_deps_done"; then
15684	 if test -z "$predep_objects_CXX"; then
15685	   predep_objects_CXX=$p
15686	 else
15687	   predep_objects_CXX="$predep_objects_CXX $p"
15688	 fi
15689       else
15690	 if test -z "$postdep_objects_CXX"; then
15691	   postdep_objects_CXX=$p
15692	 else
15693	   postdep_objects_CXX="$postdep_objects_CXX $p"
15694	 fi
15695       fi
15696       ;;
15697
15698    *) ;; # Ignore the rest.
15699
15700    esac
15701  done
15702
15703  # Clean up.
15704  rm -f a.out a.exe
15705else
15706  echo "libtool.m4: error: problem compiling CXX test program"
15707fi
15708
15709$RM -f confest.$objext
15710CFLAGS=$_lt_libdeps_save_CFLAGS
15711
15712# PORTME: override above test on systems where it is broken
15713case $host_os in
15714interix[3-9]*)
15715  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15716  # hack all around it, let's just trust "g++" to DTRT.
15717  predep_objects_CXX=
15718  postdep_objects_CXX=
15719  postdeps_CXX=
15720  ;;
15721esac
15722
15723
15724case " $postdeps_CXX " in
15725*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15726esac
15727 compiler_lib_search_dirs_CXX=
15728if test -n "${compiler_lib_search_path_CXX}"; then
15729 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15730fi
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762    lt_prog_compiler_wl_CXX=
15763lt_prog_compiler_pic_CXX=
15764lt_prog_compiler_static_CXX=
15765
15766
15767  # C++ specific cases for pic, static, wl, etc.
15768  if test yes = "$GXX"; then
15769    lt_prog_compiler_wl_CXX='-Wl,'
15770    lt_prog_compiler_static_CXX='-static'
15771
15772    case $host_os in
15773    aix*)
15774      # All AIX code is PIC.
15775      if test ia64 = "$host_cpu"; then
15776	# AIX 5 now supports IA64 processor
15777	lt_prog_compiler_static_CXX='-Bstatic'
15778      fi
15779      lt_prog_compiler_pic_CXX='-fPIC'
15780      ;;
15781
15782    amigaos*)
15783      case $host_cpu in
15784      powerpc)
15785            # see comment about AmigaOS4 .so support
15786            lt_prog_compiler_pic_CXX='-fPIC'
15787        ;;
15788      m68k)
15789            # FIXME: we need at least 68020 code to build shared libraries, but
15790            # adding the '-m68020' flag to GCC prevents building anything better,
15791            # like '-m68040'.
15792            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15793        ;;
15794      esac
15795      ;;
15796
15797    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15798      # PIC is the default for these OSes.
15799      ;;
15800    mingw* | cygwin* | os2* | pw32* | cegcc*)
15801      # This hack is so that the source file can tell whether it is being
15802      # built for inclusion in a dll (and should export symbols for example).
15803      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15804      # (--disable-auto-import) libraries
15805      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15806      case $host_os in
15807      os2*)
15808	lt_prog_compiler_static_CXX='$wl-static'
15809	;;
15810      esac
15811      ;;
15812    darwin* | rhapsody*)
15813      # PIC is the default on this platform
15814      # Common symbols not allowed in MH_DYLIB files
15815      lt_prog_compiler_pic_CXX='-fno-common'
15816      ;;
15817    *djgpp*)
15818      # DJGPP does not support shared libraries at all
15819      lt_prog_compiler_pic_CXX=
15820      ;;
15821    haiku*)
15822      # PIC is the default for Haiku.
15823      # The "-static" flag exists, but is broken.
15824      lt_prog_compiler_static_CXX=
15825      ;;
15826    interix[3-9]*)
15827      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15828      # Instead, we relocate shared libraries at runtime.
15829      ;;
15830    sysv4*MP*)
15831      if test -d /usr/nec; then
15832	lt_prog_compiler_pic_CXX=-Kconform_pic
15833      fi
15834      ;;
15835    hpux*)
15836      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15837      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15838      # sets the default TLS model and affects inlining.
15839      case $host_cpu in
15840      hppa*64*)
15841	;;
15842      *)
15843	lt_prog_compiler_pic_CXX='-fPIC'
15844	;;
15845      esac
15846      ;;
15847    *qnx* | *nto*)
15848      # QNX uses GNU C++, but need to define -shared option too, otherwise
15849      # it will coredump.
15850      lt_prog_compiler_pic_CXX='-fPIC -shared'
15851      ;;
15852    *)
15853      lt_prog_compiler_pic_CXX='-fPIC'
15854      ;;
15855    esac
15856  else
15857    case $host_os in
15858      aix[4-9]*)
15859	# All AIX code is PIC.
15860	if test ia64 = "$host_cpu"; then
15861	  # AIX 5 now supports IA64 processor
15862	  lt_prog_compiler_static_CXX='-Bstatic'
15863	else
15864	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15865	fi
15866	;;
15867      chorus*)
15868	case $cc_basename in
15869	cxch68*)
15870	  # Green Hills C++ Compiler
15871	  # _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"
15872	  ;;
15873	esac
15874	;;
15875      mingw* | cygwin* | os2* | pw32* | cegcc*)
15876	# This hack is so that the source file can tell whether it is being
15877	# built for inclusion in a dll (and should export symbols for example).
15878	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15879	;;
15880      dgux*)
15881	case $cc_basename in
15882	  ec++*)
15883	    lt_prog_compiler_pic_CXX='-KPIC'
15884	    ;;
15885	  ghcx*)
15886	    # Green Hills C++ Compiler
15887	    lt_prog_compiler_pic_CXX='-pic'
15888	    ;;
15889	  *)
15890	    ;;
15891	esac
15892	;;
15893      freebsd* | dragonfly*)
15894	# FreeBSD uses GNU C++
15895	;;
15896      hpux9* | hpux10* | hpux11*)
15897	case $cc_basename in
15898	  CC*)
15899	    lt_prog_compiler_wl_CXX='-Wl,'
15900	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15901	    if test ia64 != "$host_cpu"; then
15902	      lt_prog_compiler_pic_CXX='+Z'
15903	    fi
15904	    ;;
15905	  aCC*)
15906	    lt_prog_compiler_wl_CXX='-Wl,'
15907	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15908	    case $host_cpu in
15909	    hppa*64*|ia64*)
15910	      # +Z the default
15911	      ;;
15912	    *)
15913	      lt_prog_compiler_pic_CXX='+Z'
15914	      ;;
15915	    esac
15916	    ;;
15917	  *)
15918	    ;;
15919	esac
15920	;;
15921      interix*)
15922	# This is c89, which is MS Visual C++ (no shared libs)
15923	# Anyone wants to do a port?
15924	;;
15925      irix5* | irix6* | nonstopux*)
15926	case $cc_basename in
15927	  CC*)
15928	    lt_prog_compiler_wl_CXX='-Wl,'
15929	    lt_prog_compiler_static_CXX='-non_shared'
15930	    # CC pic flag -KPIC is the default.
15931	    ;;
15932	  *)
15933	    ;;
15934	esac
15935	;;
15936      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15937	case $cc_basename in
15938	  KCC*)
15939	    # KAI C++ Compiler
15940	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15941	    lt_prog_compiler_pic_CXX='-fPIC'
15942	    ;;
15943	  ecpc* )
15944	    # old Intel C++ for x86_64, which still supported -KPIC.
15945	    lt_prog_compiler_wl_CXX='-Wl,'
15946	    lt_prog_compiler_pic_CXX='-KPIC'
15947	    lt_prog_compiler_static_CXX='-static'
15948	    ;;
15949	  icpc* )
15950	    # Intel C++, used to be incompatible with GCC.
15951	    # ICC 10 doesn't accept -KPIC any more.
15952	    lt_prog_compiler_wl_CXX='-Wl,'
15953	    lt_prog_compiler_pic_CXX='-fPIC'
15954	    lt_prog_compiler_static_CXX='-static'
15955	    ;;
15956	  pgCC* | pgcpp*)
15957	    # Portland Group C++ compiler
15958	    lt_prog_compiler_wl_CXX='-Wl,'
15959	    lt_prog_compiler_pic_CXX='-fpic'
15960	    lt_prog_compiler_static_CXX='-Bstatic'
15961	    ;;
15962	  cxx*)
15963	    # Compaq C++
15964	    # Make sure the PIC flag is empty.  It appears that all Alpha
15965	    # Linux and Compaq Tru64 Unix objects are PIC.
15966	    lt_prog_compiler_pic_CXX=
15967	    lt_prog_compiler_static_CXX='-non_shared'
15968	    ;;
15969	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15970	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15971	    lt_prog_compiler_wl_CXX='-Wl,'
15972	    lt_prog_compiler_pic_CXX='-qpic'
15973	    lt_prog_compiler_static_CXX='-qstaticlink'
15974	    ;;
15975	  *)
15976	    case `$CC -V 2>&1 | sed 5q` in
15977	    *Sun\ C*)
15978	      # Sun C++ 5.9
15979	      lt_prog_compiler_pic_CXX='-KPIC'
15980	      lt_prog_compiler_static_CXX='-Bstatic'
15981	      lt_prog_compiler_wl_CXX='-Qoption ld '
15982	      ;;
15983	    esac
15984	    ;;
15985	esac
15986	;;
15987      lynxos*)
15988	;;
15989      m88k*)
15990	;;
15991      mvs*)
15992	case $cc_basename in
15993	  cxx*)
15994	    lt_prog_compiler_pic_CXX='-W c,exportall'
15995	    ;;
15996	  *)
15997	    ;;
15998	esac
15999	;;
16000      netbsd*)
16001	;;
16002      *qnx* | *nto*)
16003        # QNX uses GNU C++, but need to define -shared option too, otherwise
16004        # it will coredump.
16005        lt_prog_compiler_pic_CXX='-fPIC -shared'
16006        ;;
16007      osf3* | osf4* | osf5*)
16008	case $cc_basename in
16009	  KCC*)
16010	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16011	    ;;
16012	  RCC*)
16013	    # Rational C++ 2.4.1
16014	    lt_prog_compiler_pic_CXX='-pic'
16015	    ;;
16016	  cxx*)
16017	    # Digital/Compaq C++
16018	    lt_prog_compiler_wl_CXX='-Wl,'
16019	    # Make sure the PIC flag is empty.  It appears that all Alpha
16020	    # Linux and Compaq Tru64 Unix objects are PIC.
16021	    lt_prog_compiler_pic_CXX=
16022	    lt_prog_compiler_static_CXX='-non_shared'
16023	    ;;
16024	  *)
16025	    ;;
16026	esac
16027	;;
16028      psos*)
16029	;;
16030      solaris*)
16031	case $cc_basename in
16032	  CC* | sunCC*)
16033	    # Sun C++ 4.2, 5.x and Centerline C++
16034	    lt_prog_compiler_pic_CXX='-KPIC'
16035	    lt_prog_compiler_static_CXX='-Bstatic'
16036	    lt_prog_compiler_wl_CXX='-Qoption ld '
16037	    ;;
16038	  gcx*)
16039	    # Green Hills C++ Compiler
16040	    lt_prog_compiler_pic_CXX='-PIC'
16041	    ;;
16042	  *)
16043	    ;;
16044	esac
16045	;;
16046      sunos4*)
16047	case $cc_basename in
16048	  CC*)
16049	    # Sun C++ 4.x
16050	    lt_prog_compiler_pic_CXX='-pic'
16051	    lt_prog_compiler_static_CXX='-Bstatic'
16052	    ;;
16053	  lcc*)
16054	    # Lucid
16055	    lt_prog_compiler_pic_CXX='-pic'
16056	    ;;
16057	  *)
16058	    ;;
16059	esac
16060	;;
16061      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16062	case $cc_basename in
16063	  CC*)
16064	    lt_prog_compiler_wl_CXX='-Wl,'
16065	    lt_prog_compiler_pic_CXX='-KPIC'
16066	    lt_prog_compiler_static_CXX='-Bstatic'
16067	    ;;
16068	esac
16069	;;
16070      tandem*)
16071	case $cc_basename in
16072	  NCC*)
16073	    # NonStop-UX NCC 3.20
16074	    lt_prog_compiler_pic_CXX='-KPIC'
16075	    ;;
16076	  *)
16077	    ;;
16078	esac
16079	;;
16080      vxworks*)
16081	;;
16082      *)
16083	lt_prog_compiler_can_build_shared_CXX=no
16084	;;
16085    esac
16086  fi
16087
16088case $host_os in
16089  # For platforms that do not support PIC, -DPIC is meaningless:
16090  *djgpp*)
16091    lt_prog_compiler_pic_CXX=
16092    ;;
16093  *)
16094    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16095    ;;
16096esac
16097
16098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16099$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16100if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16101  $as_echo_n "(cached) " >&6
16102else
16103  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16104fi
16105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16106$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16107lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16108
16109#
16110# Check to make sure the PIC flag actually works.
16111#
16112if test -n "$lt_prog_compiler_pic_CXX"; then
16113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16114$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16115if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16116  $as_echo_n "(cached) " >&6
16117else
16118  lt_cv_prog_compiler_pic_works_CXX=no
16119   ac_outfile=conftest.$ac_objext
16120   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16121   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16122   # Insert the option either (1) after the last *FLAGS variable, or
16123   # (2) before a word containing "conftest.", or (3) at the end.
16124   # Note that $ac_compile itself does not contain backslashes and begins
16125   # with a dollar sign (not a hyphen), so the echo should work correctly.
16126   # The option is referenced via a variable to avoid confusing sed.
16127   lt_compile=`echo "$ac_compile" | $SED \
16128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16130   -e 's:$: $lt_compiler_flag:'`
16131   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16132   (eval "$lt_compile" 2>conftest.err)
16133   ac_status=$?
16134   cat conftest.err >&5
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   if (exit $ac_status) && test -s "$ac_outfile"; then
16137     # The compiler can only warn and ignore the option if not recognized
16138     # So say no if there are warnings other than the usual output.
16139     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16140     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16141     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16142       lt_cv_prog_compiler_pic_works_CXX=yes
16143     fi
16144   fi
16145   $RM conftest*
16146
16147fi
16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16149$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16150
16151if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16152    case $lt_prog_compiler_pic_CXX in
16153     "" | " "*) ;;
16154     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16155     esac
16156else
16157    lt_prog_compiler_pic_CXX=
16158     lt_prog_compiler_can_build_shared_CXX=no
16159fi
16160
16161fi
16162
16163
16164
16165
16166
16167#
16168# Check to make sure the static flag actually works.
16169#
16170wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16172$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16173if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16174  $as_echo_n "(cached) " >&6
16175else
16176  lt_cv_prog_compiler_static_works_CXX=no
16177   save_LDFLAGS=$LDFLAGS
16178   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16179   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16180   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16181     # The linker can only warn and ignore the option if not recognized
16182     # So say no if there are warnings
16183     if test -s conftest.err; then
16184       # Append any errors to the config.log.
16185       cat conftest.err 1>&5
16186       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16187       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16188       if diff conftest.exp conftest.er2 >/dev/null; then
16189         lt_cv_prog_compiler_static_works_CXX=yes
16190       fi
16191     else
16192       lt_cv_prog_compiler_static_works_CXX=yes
16193     fi
16194   fi
16195   $RM -r conftest*
16196   LDFLAGS=$save_LDFLAGS
16197
16198fi
16199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16200$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16201
16202if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16203    :
16204else
16205    lt_prog_compiler_static_CXX=
16206fi
16207
16208
16209
16210
16211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16212$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16213if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16214  $as_echo_n "(cached) " >&6
16215else
16216  lt_cv_prog_compiler_c_o_CXX=no
16217   $RM -r conftest 2>/dev/null
16218   mkdir conftest
16219   cd conftest
16220   mkdir out
16221   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16222
16223   lt_compiler_flag="-o out/conftest2.$ac_objext"
16224   # Insert the option either (1) after the last *FLAGS variable, or
16225   # (2) before a word containing "conftest.", or (3) at the end.
16226   # Note that $ac_compile itself does not contain backslashes and begins
16227   # with a dollar sign (not a hyphen), so the echo should work correctly.
16228   lt_compile=`echo "$ac_compile" | $SED \
16229   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16230   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16231   -e 's:$: $lt_compiler_flag:'`
16232   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16233   (eval "$lt_compile" 2>out/conftest.err)
16234   ac_status=$?
16235   cat out/conftest.err >&5
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16238   then
16239     # The compiler can only warn and ignore the option if not recognized
16240     # So say no if there are warnings
16241     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16242     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16243     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16244       lt_cv_prog_compiler_c_o_CXX=yes
16245     fi
16246   fi
16247   chmod u+w . 2>&5
16248   $RM conftest*
16249   # SGI C++ compiler will create directory out/ii_files/ for
16250   # template instantiation
16251   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16252   $RM out/* && rmdir out
16253   cd ..
16254   $RM -r conftest
16255   $RM conftest*
16256
16257fi
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16259$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16260
16261
16262
16263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16264$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16265if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16266  $as_echo_n "(cached) " >&6
16267else
16268  lt_cv_prog_compiler_c_o_CXX=no
16269   $RM -r conftest 2>/dev/null
16270   mkdir conftest
16271   cd conftest
16272   mkdir out
16273   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16274
16275   lt_compiler_flag="-o out/conftest2.$ac_objext"
16276   # Insert the option either (1) after the last *FLAGS variable, or
16277   # (2) before a word containing "conftest.", or (3) at the end.
16278   # Note that $ac_compile itself does not contain backslashes and begins
16279   # with a dollar sign (not a hyphen), so the echo should work correctly.
16280   lt_compile=`echo "$ac_compile" | $SED \
16281   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16282   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16283   -e 's:$: $lt_compiler_flag:'`
16284   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16285   (eval "$lt_compile" 2>out/conftest.err)
16286   ac_status=$?
16287   cat out/conftest.err >&5
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16290   then
16291     # The compiler can only warn and ignore the option if not recognized
16292     # So say no if there are warnings
16293     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16294     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16295     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16296       lt_cv_prog_compiler_c_o_CXX=yes
16297     fi
16298   fi
16299   chmod u+w . 2>&5
16300   $RM conftest*
16301   # SGI C++ compiler will create directory out/ii_files/ for
16302   # template instantiation
16303   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16304   $RM out/* && rmdir out
16305   cd ..
16306   $RM -r conftest
16307   $RM conftest*
16308
16309fi
16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16311$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16312
16313
16314
16315
16316hard_links=nottested
16317if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16318  # do not overwrite the value of need_locks provided by the user
16319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16320$as_echo_n "checking if we can lock with hard links... " >&6; }
16321  hard_links=yes
16322  $RM conftest*
16323  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16324  touch conftest.a
16325  ln conftest.a conftest.b 2>&5 || hard_links=no
16326  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16328$as_echo "$hard_links" >&6; }
16329  if test no = "$hard_links"; then
16330    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16331$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16332    need_locks=warn
16333  fi
16334else
16335  need_locks=no
16336fi
16337
16338
16339
16340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16341$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16342
16343  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16344  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16345  case $host_os in
16346  aix[4-9]*)
16347    # If we're using GNU nm, then we don't want the "-C" option.
16348    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16349    # Without the "-l" option, or with the "-B" option, AIX nm treats
16350    # weak defined symbols like other global defined symbols, whereas
16351    # GNU nm marks them as "W".
16352    # While the 'weak' keyword is ignored in the Export File, we need
16353    # it in the Import File for the 'aix-soname' feature, so we have
16354    # to replace the "-B" option with "-P" for AIX nm.
16355    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16356      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16357    else
16358      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16359    fi
16360    ;;
16361  pw32*)
16362    export_symbols_cmds_CXX=$ltdll_cmds
16363    ;;
16364  cygwin* | mingw* | cegcc*)
16365    case $cc_basename in
16366    cl*)
16367      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16368      ;;
16369    *)
16370      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16371      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16372      ;;
16373    esac
16374    ;;
16375  *)
16376    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16377    ;;
16378  esac
16379
16380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16381$as_echo "$ld_shlibs_CXX" >&6; }
16382test no = "$ld_shlibs_CXX" && can_build_shared=no
16383
16384with_gnu_ld_CXX=$with_gnu_ld
16385
16386
16387
16388
16389
16390
16391#
16392# Do we need to explicitly link libc?
16393#
16394case "x$archive_cmds_need_lc_CXX" in
16395x|xyes)
16396  # Assume -lc should be added
16397  archive_cmds_need_lc_CXX=yes
16398
16399  if test yes,yes = "$GCC,$enable_shared"; then
16400    case $archive_cmds_CXX in
16401    *'~'*)
16402      # FIXME: we may have to deal with multi-command sequences.
16403      ;;
16404    '$CC '*)
16405      # Test whether the compiler implicitly links with -lc since on some
16406      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16407      # to ld, don't add -lc before -lgcc.
16408      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16409$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16410if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16411  $as_echo_n "(cached) " >&6
16412else
16413  $RM conftest*
16414	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16415
16416	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16417  (eval $ac_compile) 2>&5
16418  ac_status=$?
16419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16420  test $ac_status = 0; } 2>conftest.err; then
16421	  soname=conftest
16422	  lib=conftest
16423	  libobjs=conftest.$ac_objext
16424	  deplibs=
16425	  wl=$lt_prog_compiler_wl_CXX
16426	  pic_flag=$lt_prog_compiler_pic_CXX
16427	  compiler_flags=-v
16428	  linker_flags=-v
16429	  verstring=
16430	  output_objdir=.
16431	  libname=conftest
16432	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16433	  allow_undefined_flag_CXX=
16434	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16435  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16436  ac_status=$?
16437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16438  test $ac_status = 0; }
16439	  then
16440	    lt_cv_archive_cmds_need_lc_CXX=no
16441	  else
16442	    lt_cv_archive_cmds_need_lc_CXX=yes
16443	  fi
16444	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16445	else
16446	  cat conftest.err 1>&5
16447	fi
16448	$RM conftest*
16449
16450fi
16451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16452$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16453      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16454      ;;
16455    esac
16456  fi
16457  ;;
16458esac
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16522$as_echo_n "checking dynamic linker characteristics... " >&6; }
16523
16524library_names_spec=
16525libname_spec='lib$name'
16526soname_spec=
16527shrext_cmds=.so
16528postinstall_cmds=
16529postuninstall_cmds=
16530finish_cmds=
16531finish_eval=
16532shlibpath_var=
16533shlibpath_overrides_runpath=unknown
16534version_type=none
16535dynamic_linker="$host_os ld.so"
16536sys_lib_dlsearch_path_spec="/lib /usr/lib"
16537need_lib_prefix=unknown
16538hardcode_into_libs=no
16539
16540# when you set need_version to no, make sure it does not cause -set_version
16541# flags to be left without arguments
16542need_version=unknown
16543
16544
16545
16546case $host_os in
16547aix3*)
16548  version_type=linux # correct to gnu/linux during the next big refactor
16549  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16550  shlibpath_var=LIBPATH
16551
16552  # AIX 3 has no versioning support, so we append a major version to the name.
16553  soname_spec='$libname$release$shared_ext$major'
16554  ;;
16555
16556aix[4-9]*)
16557  version_type=linux # correct to gnu/linux during the next big refactor
16558  need_lib_prefix=no
16559  need_version=no
16560  hardcode_into_libs=yes
16561  if test ia64 = "$host_cpu"; then
16562    # AIX 5 supports IA64
16563    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16564    shlibpath_var=LD_LIBRARY_PATH
16565  else
16566    # With GCC up to 2.95.x, collect2 would create an import file
16567    # for dependence libraries.  The import file would start with
16568    # the line '#! .'.  This would cause the generated library to
16569    # depend on '.', always an invalid library.  This was fixed in
16570    # development snapshots of GCC prior to 3.0.
16571    case $host_os in
16572      aix4 | aix4.[01] | aix4.[01].*)
16573      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16574	   echo ' yes '
16575	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16576	:
16577      else
16578	can_build_shared=no
16579      fi
16580      ;;
16581    esac
16582    # Using Import Files as archive members, it is possible to support
16583    # filename-based versioning of shared library archives on AIX. While
16584    # this would work for both with and without runtime linking, it will
16585    # prevent static linking of such archives. So we do filename-based
16586    # shared library versioning with .so extension only, which is used
16587    # when both runtime linking and shared linking is enabled.
16588    # Unfortunately, runtime linking may impact performance, so we do
16589    # not want this to be the default eventually. Also, we use the
16590    # versioned .so libs for executables only if there is the -brtl
16591    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16592    # To allow for filename-based versioning support, we need to create
16593    # libNAME.so.V as an archive file, containing:
16594    # *) an Import File, referring to the versioned filename of the
16595    #    archive as well as the shared archive member, telling the
16596    #    bitwidth (32 or 64) of that shared object, and providing the
16597    #    list of exported symbols of that shared object, eventually
16598    #    decorated with the 'weak' keyword
16599    # *) the shared object with the F_LOADONLY flag set, to really avoid
16600    #    it being seen by the linker.
16601    # At run time we better use the real file rather than another symlink,
16602    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16603
16604    case $with_aix_soname,$aix_use_runtimelinking in
16605    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16606    # soname into executable. Probably we can add versioning support to
16607    # collect2, so additional links can be useful in future.
16608    aix,yes) # traditional libtool
16609      dynamic_linker='AIX unversionable lib.so'
16610      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16611      # instead of lib<name>.a to let people know that these are not
16612      # typical AIX shared libraries.
16613      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16614      ;;
16615    aix,no) # traditional AIX only
16616      dynamic_linker='AIX lib.a(lib.so.V)'
16617      # We preserve .a as extension for shared libraries through AIX4.2
16618      # and later when we are not doing run time linking.
16619      library_names_spec='$libname$release.a $libname.a'
16620      soname_spec='$libname$release$shared_ext$major'
16621      ;;
16622    svr4,*) # full svr4 only
16623      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16624      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16625      # We do not specify a path in Import Files, so LIBPATH fires.
16626      shlibpath_overrides_runpath=yes
16627      ;;
16628    *,yes) # both, prefer svr4
16629      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16630      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16631      # unpreferred sharedlib libNAME.a needs extra handling
16632      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16633      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16634      # We do not specify a path in Import Files, so LIBPATH fires.
16635      shlibpath_overrides_runpath=yes
16636      ;;
16637    *,no) # both, prefer aix
16638      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16639      library_names_spec='$libname$release.a $libname.a'
16640      soname_spec='$libname$release$shared_ext$major'
16641      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16642      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16643      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16644      ;;
16645    esac
16646    shlibpath_var=LIBPATH
16647  fi
16648  ;;
16649
16650amigaos*)
16651  case $host_cpu in
16652  powerpc)
16653    # Since July 2007 AmigaOS4 officially supports .so libraries.
16654    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16655    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16656    ;;
16657  m68k)
16658    library_names_spec='$libname.ixlibrary $libname.a'
16659    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16660    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16661    ;;
16662  esac
16663  ;;
16664
16665beos*)
16666  library_names_spec='$libname$shared_ext'
16667  dynamic_linker="$host_os ld.so"
16668  shlibpath_var=LIBRARY_PATH
16669  ;;
16670
16671bsdi[45]*)
16672  version_type=linux # correct to gnu/linux during the next big refactor
16673  need_version=no
16674  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16675  soname_spec='$libname$release$shared_ext$major'
16676  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16677  shlibpath_var=LD_LIBRARY_PATH
16678  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16679  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16680  # the default ld.so.conf also contains /usr/contrib/lib and
16681  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16682  # libtool to hard-code these into programs
16683  ;;
16684
16685cygwin* | mingw* | pw32* | cegcc*)
16686  version_type=windows
16687  shrext_cmds=.dll
16688  need_version=no
16689  need_lib_prefix=no
16690
16691  case $GCC,$cc_basename in
16692  yes,*)
16693    # gcc
16694    library_names_spec='$libname.dll.a'
16695    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16696    postinstall_cmds='base_file=`basename \$file`~
16697      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16698      dldir=$destdir/`dirname \$dlpath`~
16699      test -d \$dldir || mkdir -p \$dldir~
16700      $install_prog $dir/$dlname \$dldir/$dlname~
16701      chmod a+x \$dldir/$dlname~
16702      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16703        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16704      fi'
16705    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16706      dlpath=$dir/\$dldll~
16707       $RM \$dlpath'
16708    shlibpath_overrides_runpath=yes
16709
16710    case $host_os in
16711    cygwin*)
16712      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16713      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16714
16715      ;;
16716    mingw* | cegcc*)
16717      # MinGW DLLs use traditional 'lib' prefix
16718      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16719      ;;
16720    pw32*)
16721      # pw32 DLLs use 'pw' prefix rather than 'lib'
16722      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16723      ;;
16724    esac
16725    dynamic_linker='Win32 ld.exe'
16726    ;;
16727
16728  *,cl*)
16729    # Native MSVC
16730    libname_spec='$name'
16731    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16732    library_names_spec='$libname.dll.lib'
16733
16734    case $build_os in
16735    mingw*)
16736      sys_lib_search_path_spec=
16737      lt_save_ifs=$IFS
16738      IFS=';'
16739      for lt_path in $LIB
16740      do
16741        IFS=$lt_save_ifs
16742        # Let DOS variable expansion print the short 8.3 style file name.
16743        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16744        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16745      done
16746      IFS=$lt_save_ifs
16747      # Convert to MSYS style.
16748      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16749      ;;
16750    cygwin*)
16751      # Convert to unix form, then to dos form, then back to unix form
16752      # but this time dos style (no spaces!) so that the unix form looks
16753      # like /cygdrive/c/PROGRA~1:/cygdr...
16754      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16755      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16756      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16757      ;;
16758    *)
16759      sys_lib_search_path_spec=$LIB
16760      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16761        # It is most probably a Windows format PATH.
16762        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16763      else
16764        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16765      fi
16766      # FIXME: find the short name or the path components, as spaces are
16767      # common. (e.g. "Program Files" -> "PROGRA~1")
16768      ;;
16769    esac
16770
16771    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16772    postinstall_cmds='base_file=`basename \$file`~
16773      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16774      dldir=$destdir/`dirname \$dlpath`~
16775      test -d \$dldir || mkdir -p \$dldir~
16776      $install_prog $dir/$dlname \$dldir/$dlname'
16777    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16778      dlpath=$dir/\$dldll~
16779       $RM \$dlpath'
16780    shlibpath_overrides_runpath=yes
16781    dynamic_linker='Win32 link.exe'
16782    ;;
16783
16784  *)
16785    # Assume MSVC wrapper
16786    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16787    dynamic_linker='Win32 ld.exe'
16788    ;;
16789  esac
16790  # FIXME: first we should search . and the directory the executable is in
16791  shlibpath_var=PATH
16792  ;;
16793
16794darwin* | rhapsody*)
16795  dynamic_linker="$host_os dyld"
16796  version_type=darwin
16797  need_lib_prefix=no
16798  need_version=no
16799  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16800  soname_spec='$libname$release$major$shared_ext'
16801  shlibpath_overrides_runpath=yes
16802  shlibpath_var=DYLD_LIBRARY_PATH
16803  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16804
16805  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16806  ;;
16807
16808dgux*)
16809  version_type=linux # correct to gnu/linux during the next big refactor
16810  need_lib_prefix=no
16811  need_version=no
16812  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16813  soname_spec='$libname$release$shared_ext$major'
16814  shlibpath_var=LD_LIBRARY_PATH
16815  ;;
16816
16817freebsd* | dragonfly*)
16818  # DragonFly does not have aout.  When/if they implement a new
16819  # versioning mechanism, adjust this.
16820  if test -x /usr/bin/objformat; then
16821    objformat=`/usr/bin/objformat`
16822  else
16823    case $host_os in
16824    freebsd[23].*) objformat=aout ;;
16825    *) objformat=elf ;;
16826    esac
16827  fi
16828  version_type=freebsd-$objformat
16829  case $version_type in
16830    freebsd-elf*)
16831      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16832      soname_spec='$libname$release$shared_ext$major'
16833      need_version=no
16834      need_lib_prefix=no
16835      ;;
16836    freebsd-*)
16837      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16838      need_version=yes
16839      ;;
16840  esac
16841  shlibpath_var=LD_LIBRARY_PATH
16842  case $host_os in
16843  freebsd2.*)
16844    shlibpath_overrides_runpath=yes
16845    ;;
16846  freebsd3.[01]* | freebsdelf3.[01]*)
16847    shlibpath_overrides_runpath=yes
16848    hardcode_into_libs=yes
16849    ;;
16850  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16851  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16852    shlibpath_overrides_runpath=no
16853    hardcode_into_libs=yes
16854    ;;
16855  *) # from 4.6 on, and DragonFly
16856    shlibpath_overrides_runpath=yes
16857    hardcode_into_libs=yes
16858    ;;
16859  esac
16860  ;;
16861
16862haiku*)
16863  version_type=linux # correct to gnu/linux during the next big refactor
16864  need_lib_prefix=no
16865  need_version=no
16866  dynamic_linker="$host_os runtime_loader"
16867  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16868  soname_spec='$libname$release$shared_ext$major'
16869  shlibpath_var=LIBRARY_PATH
16870  shlibpath_overrides_runpath=no
16871  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16872  hardcode_into_libs=yes
16873  ;;
16874
16875hpux9* | hpux10* | hpux11*)
16876  # Give a soname corresponding to the major version so that dld.sl refuses to
16877  # link against other versions.
16878  version_type=sunos
16879  need_lib_prefix=no
16880  need_version=no
16881  case $host_cpu in
16882  ia64*)
16883    shrext_cmds='.so'
16884    hardcode_into_libs=yes
16885    dynamic_linker="$host_os dld.so"
16886    shlibpath_var=LD_LIBRARY_PATH
16887    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16888    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16889    soname_spec='$libname$release$shared_ext$major'
16890    if test 32 = "$HPUX_IA64_MODE"; then
16891      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16892      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16893    else
16894      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16895      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16896    fi
16897    ;;
16898  hppa*64*)
16899    shrext_cmds='.sl'
16900    hardcode_into_libs=yes
16901    dynamic_linker="$host_os dld.sl"
16902    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16903    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16904    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16905    soname_spec='$libname$release$shared_ext$major'
16906    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16907    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16908    ;;
16909  *)
16910    shrext_cmds='.sl'
16911    dynamic_linker="$host_os dld.sl"
16912    shlibpath_var=SHLIB_PATH
16913    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16914    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16915    soname_spec='$libname$release$shared_ext$major'
16916    ;;
16917  esac
16918  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16919  postinstall_cmds='chmod 555 $lib'
16920  # or fails outright, so override atomically:
16921  install_override_mode=555
16922  ;;
16923
16924interix[3-9]*)
16925  version_type=linux # correct to gnu/linux during the next big refactor
16926  need_lib_prefix=no
16927  need_version=no
16928  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16929  soname_spec='$libname$release$shared_ext$major'
16930  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16931  shlibpath_var=LD_LIBRARY_PATH
16932  shlibpath_overrides_runpath=no
16933  hardcode_into_libs=yes
16934  ;;
16935
16936irix5* | irix6* | nonstopux*)
16937  case $host_os in
16938    nonstopux*) version_type=nonstopux ;;
16939    *)
16940	if test yes = "$lt_cv_prog_gnu_ld"; then
16941		version_type=linux # correct to gnu/linux during the next big refactor
16942	else
16943		version_type=irix
16944	fi ;;
16945  esac
16946  need_lib_prefix=no
16947  need_version=no
16948  soname_spec='$libname$release$shared_ext$major'
16949  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16950  case $host_os in
16951  irix5* | nonstopux*)
16952    libsuff= shlibsuff=
16953    ;;
16954  *)
16955    case $LD in # libtool.m4 will add one of these switches to LD
16956    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16957      libsuff= shlibsuff= libmagic=32-bit;;
16958    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16959      libsuff=32 shlibsuff=N32 libmagic=N32;;
16960    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16961      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16962    *) libsuff= shlibsuff= libmagic=never-match;;
16963    esac
16964    ;;
16965  esac
16966  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16967  shlibpath_overrides_runpath=no
16968  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16969  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16970  hardcode_into_libs=yes
16971  ;;
16972
16973# No shared lib support for Linux oldld, aout, or coff.
16974linux*oldld* | linux*aout* | linux*coff*)
16975  dynamic_linker=no
16976  ;;
16977
16978linux*android*)
16979  version_type=none # Android doesn't support versioned libraries.
16980  need_lib_prefix=no
16981  need_version=no
16982  library_names_spec='$libname$release$shared_ext'
16983  soname_spec='$libname$release$shared_ext'
16984  finish_cmds=
16985  shlibpath_var=LD_LIBRARY_PATH
16986  shlibpath_overrides_runpath=yes
16987
16988  # This implies no fast_install, which is unacceptable.
16989  # Some rework will be needed to allow for fast_install
16990  # before this can be enabled.
16991  hardcode_into_libs=yes
16992
16993  dynamic_linker='Android linker'
16994  # Don't embed -rpath directories since the linker doesn't support them.
16995  hardcode_libdir_flag_spec_CXX='-L$libdir'
16996  ;;
16997
16998# This must be glibc/ELF.
16999linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17000  version_type=linux # correct to gnu/linux during the next big refactor
17001  need_lib_prefix=no
17002  need_version=no
17003  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17004  soname_spec='$libname$release$shared_ext$major'
17005  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17006  shlibpath_var=LD_LIBRARY_PATH
17007  shlibpath_overrides_runpath=no
17008
17009  # Some binutils ld are patched to set DT_RUNPATH
17010  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17011  $as_echo_n "(cached) " >&6
17012else
17013  lt_cv_shlibpath_overrides_runpath=no
17014    save_LDFLAGS=$LDFLAGS
17015    save_libdir=$libdir
17016    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17017	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17018    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019/* end confdefs.h.  */
17020
17021int
17022main ()
17023{
17024
17025  ;
17026  return 0;
17027}
17028_ACEOF
17029if ac_fn_cxx_try_link "$LINENO"; then :
17030  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17031  lt_cv_shlibpath_overrides_runpath=yes
17032fi
17033fi
17034rm -f core conftest.err conftest.$ac_objext \
17035    conftest$ac_exeext conftest.$ac_ext
17036    LDFLAGS=$save_LDFLAGS
17037    libdir=$save_libdir
17038
17039fi
17040
17041  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17042
17043  # This implies no fast_install, which is unacceptable.
17044  # Some rework will be needed to allow for fast_install
17045  # before this can be enabled.
17046  hardcode_into_libs=yes
17047
17048  # Ideally, we could use ldconfig to report *all* directores which are
17049  # searched for libraries, however this is still not possible.  Aside from not
17050  # being certain /sbin/ldconfig is available, command
17051  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17052  # even though it is searched at run-time.  Try to do the best guess by
17053  # appending ld.so.conf contents (and includes) to the search path.
17054  if test -f /etc/ld.so.conf; then
17055    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' ' '`
17056    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17057  fi
17058
17059  # We used to test for /lib/ld.so.1 and disable shared libraries on
17060  # powerpc, because MkLinux only supported shared libraries with the
17061  # GNU dynamic linker.  Since this was broken with cross compilers,
17062  # most powerpc-linux boxes support dynamic linking these days and
17063  # people can always --disable-shared, the test was removed, and we
17064  # assume the GNU/Linux dynamic linker is in use.
17065  dynamic_linker='GNU/Linux ld.so'
17066  ;;
17067
17068netbsd*)
17069  version_type=sunos
17070  need_lib_prefix=no
17071  need_version=no
17072  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17073    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17074    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17075    dynamic_linker='NetBSD (a.out) ld.so'
17076  else
17077    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17078    soname_spec='$libname$release$shared_ext$major'
17079    dynamic_linker='NetBSD ld.elf_so'
17080  fi
17081  shlibpath_var=LD_LIBRARY_PATH
17082  shlibpath_overrides_runpath=yes
17083  hardcode_into_libs=yes
17084  ;;
17085
17086newsos6)
17087  version_type=linux # correct to gnu/linux during the next big refactor
17088  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17089  shlibpath_var=LD_LIBRARY_PATH
17090  shlibpath_overrides_runpath=yes
17091  ;;
17092
17093*nto* | *qnx*)
17094  version_type=qnx
17095  need_lib_prefix=no
17096  need_version=no
17097  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17098  soname_spec='$libname$release$shared_ext$major'
17099  shlibpath_var=LD_LIBRARY_PATH
17100  shlibpath_overrides_runpath=no
17101  hardcode_into_libs=yes
17102  dynamic_linker='ldqnx.so'
17103  ;;
17104
17105openbsd* | bitrig*)
17106  version_type=sunos
17107  sys_lib_dlsearch_path_spec=/usr/lib
17108  need_lib_prefix=no
17109  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17110    need_version=no
17111  else
17112    need_version=yes
17113  fi
17114  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17115  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17116  shlibpath_var=LD_LIBRARY_PATH
17117  shlibpath_overrides_runpath=yes
17118  ;;
17119
17120os2*)
17121  libname_spec='$name'
17122  version_type=windows
17123  shrext_cmds=.dll
17124  need_version=no
17125  need_lib_prefix=no
17126  # OS/2 can only load a DLL with a base name of 8 characters or less.
17127  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17128    v=$($ECHO $release$versuffix | tr -d .-);
17129    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17130    $ECHO $n$v`$shared_ext'
17131  library_names_spec='${libname}_dll.$libext'
17132  dynamic_linker='OS/2 ld.exe'
17133  shlibpath_var=BEGINLIBPATH
17134  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17135  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17136  postinstall_cmds='base_file=`basename \$file`~
17137    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17138    dldir=$destdir/`dirname \$dlpath`~
17139    test -d \$dldir || mkdir -p \$dldir~
17140    $install_prog $dir/$dlname \$dldir/$dlname~
17141    chmod a+x \$dldir/$dlname~
17142    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17143      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17144    fi'
17145  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17146    dlpath=$dir/\$dldll~
17147    $RM \$dlpath'
17148  ;;
17149
17150osf3* | osf4* | osf5*)
17151  version_type=osf
17152  need_lib_prefix=no
17153  need_version=no
17154  soname_spec='$libname$release$shared_ext$major'
17155  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17156  shlibpath_var=LD_LIBRARY_PATH
17157  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17158  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17159  ;;
17160
17161rdos*)
17162  dynamic_linker=no
17163  ;;
17164
17165solaris*)
17166  version_type=linux # correct to gnu/linux during the next big refactor
17167  need_lib_prefix=no
17168  need_version=no
17169  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17170  soname_spec='$libname$release$shared_ext$major'
17171  shlibpath_var=LD_LIBRARY_PATH
17172  shlibpath_overrides_runpath=yes
17173  hardcode_into_libs=yes
17174  # ldd complains unless libraries are executable
17175  postinstall_cmds='chmod +x $lib'
17176  ;;
17177
17178sunos4*)
17179  version_type=sunos
17180  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17181  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17182  shlibpath_var=LD_LIBRARY_PATH
17183  shlibpath_overrides_runpath=yes
17184  if test yes = "$with_gnu_ld"; then
17185    need_lib_prefix=no
17186  fi
17187  need_version=yes
17188  ;;
17189
17190sysv4 | sysv4.3*)
17191  version_type=linux # correct to gnu/linux during the next big refactor
17192  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17193  soname_spec='$libname$release$shared_ext$major'
17194  shlibpath_var=LD_LIBRARY_PATH
17195  case $host_vendor in
17196    sni)
17197      shlibpath_overrides_runpath=no
17198      need_lib_prefix=no
17199      runpath_var=LD_RUN_PATH
17200      ;;
17201    siemens)
17202      need_lib_prefix=no
17203      ;;
17204    motorola)
17205      need_lib_prefix=no
17206      need_version=no
17207      shlibpath_overrides_runpath=no
17208      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17209      ;;
17210  esac
17211  ;;
17212
17213sysv4*MP*)
17214  if test -d /usr/nec; then
17215    version_type=linux # correct to gnu/linux during the next big refactor
17216    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17217    soname_spec='$libname$shared_ext.$major'
17218    shlibpath_var=LD_LIBRARY_PATH
17219  fi
17220  ;;
17221
17222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17223  version_type=sco
17224  need_lib_prefix=no
17225  need_version=no
17226  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17227  soname_spec='$libname$release$shared_ext$major'
17228  shlibpath_var=LD_LIBRARY_PATH
17229  shlibpath_overrides_runpath=yes
17230  hardcode_into_libs=yes
17231  if test yes = "$with_gnu_ld"; then
17232    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17233  else
17234    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17235    case $host_os in
17236      sco3.2v5*)
17237        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17238	;;
17239    esac
17240  fi
17241  sys_lib_dlsearch_path_spec='/usr/lib'
17242  ;;
17243
17244tpf*)
17245  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17246  version_type=linux # correct to gnu/linux during the next big refactor
17247  need_lib_prefix=no
17248  need_version=no
17249  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17250  shlibpath_var=LD_LIBRARY_PATH
17251  shlibpath_overrides_runpath=no
17252  hardcode_into_libs=yes
17253  ;;
17254
17255uts4*)
17256  version_type=linux # correct to gnu/linux during the next big refactor
17257  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17258  soname_spec='$libname$release$shared_ext$major'
17259  shlibpath_var=LD_LIBRARY_PATH
17260  ;;
17261
17262*)
17263  dynamic_linker=no
17264  ;;
17265esac
17266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17267$as_echo "$dynamic_linker" >&6; }
17268test no = "$dynamic_linker" && can_build_shared=no
17269
17270variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17271if test yes = "$GCC"; then
17272  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17273fi
17274
17275if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17276  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17277fi
17278
17279if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17280  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17281fi
17282
17283# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17284configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17285
17286# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17287func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17288
17289# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17290configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17332$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17333hardcode_action_CXX=
17334if test -n "$hardcode_libdir_flag_spec_CXX" ||
17335   test -n "$runpath_var_CXX" ||
17336   test yes = "$hardcode_automatic_CXX"; then
17337
17338  # We can hardcode non-existent directories.
17339  if test no != "$hardcode_direct_CXX" &&
17340     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17341     # have to relink, otherwise we might link with an installed library
17342     # when we should be linking with a yet-to-be-installed one
17343     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17344     test no != "$hardcode_minus_L_CXX"; then
17345    # Linking always hardcodes the temporary library directory.
17346    hardcode_action_CXX=relink
17347  else
17348    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17349    hardcode_action_CXX=immediate
17350  fi
17351else
17352  # We cannot hardcode anything, or else we can only hardcode existing
17353  # directories.
17354  hardcode_action_CXX=unsupported
17355fi
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17357$as_echo "$hardcode_action_CXX" >&6; }
17358
17359if test relink = "$hardcode_action_CXX" ||
17360   test yes = "$inherit_rpath_CXX"; then
17361  # Fast installation is not supported
17362  enable_fast_install=no
17363elif test yes = "$shlibpath_overrides_runpath" ||
17364     test no = "$enable_shared"; then
17365  # Fast installation is not necessary
17366  enable_fast_install=needless
17367fi
17368
17369
17370
17371
17372
17373
17374
17375  fi # test -n "$compiler"
17376
17377  CC=$lt_save_CC
17378  CFLAGS=$lt_save_CFLAGS
17379  LDCXX=$LD
17380  LD=$lt_save_LD
17381  GCC=$lt_save_GCC
17382  with_gnu_ld=$lt_save_with_gnu_ld
17383  lt_cv_path_LDCXX=$lt_cv_path_LD
17384  lt_cv_path_LD=$lt_save_path_LD
17385  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17386  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17387fi # test yes != "$_lt_caught_CXX_error"
17388
17389ac_ext=c
17390ac_cpp='$CPP $CPPFLAGS'
17391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17393ac_compiler_gnu=$ac_cv_c_compiler_gnu
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409        ac_config_commands="$ac_config_commands libtool"
17410
17411
17412
17413
17414# Only expand once:
17415
17416
17417
17418
17419cat >confcache <<\_ACEOF
17420# This file is a shell script that caches the results of configure
17421# tests run on this system so they can be shared between configure
17422# scripts and configure runs, see configure's option --config-cache.
17423# It is not useful on other systems.  If it contains results you don't
17424# want to keep, you may remove or edit it.
17425#
17426# config.status only pays attention to the cache file if you give it
17427# the --recheck option to rerun configure.
17428#
17429# `ac_cv_env_foo' variables (set or unset) will be overridden when
17430# loading this file, other *unset* `ac_cv_foo' will be assigned the
17431# following values.
17432
17433_ACEOF
17434
17435# The following way of writing the cache mishandles newlines in values,
17436# but we know of no workaround that is simple, portable, and efficient.
17437# So, we kill variables containing newlines.
17438# Ultrix sh set writes to stderr and can't be redirected directly,
17439# and sets the high bit in the cache file unless we assign to the vars.
17440(
17441  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17442    eval ac_val=\$$ac_var
17443    case $ac_val in #(
17444    *${as_nl}*)
17445      case $ac_var in #(
17446      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17447$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17448      esac
17449      case $ac_var in #(
17450      _ | IFS | as_nl) ;; #(
17451      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17452      *) { eval $ac_var=; unset $ac_var;} ;;
17453      esac ;;
17454    esac
17455  done
17456
17457  (set) 2>&1 |
17458    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17459    *${as_nl}ac_space=\ *)
17460      # `set' does not quote correctly, so add quotes: double-quote
17461      # substitution turns \\\\ into \\, and sed turns \\ into \.
17462      sed -n \
17463	"s/'/'\\\\''/g;
17464	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17465      ;; #(
17466    *)
17467      # `set' quotes correctly as required by POSIX, so do not add quotes.
17468      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17469      ;;
17470    esac |
17471    sort
17472) |
17473  sed '
17474     /^ac_cv_env_/b end
17475     t clear
17476     :clear
17477     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17478     t end
17479     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17480     :end' >>confcache
17481if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17482  if test -w "$cache_file"; then
17483    if test "x$cache_file" != "x/dev/null"; then
17484      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17485$as_echo "$as_me: updating cache $cache_file" >&6;}
17486      if test ! -f "$cache_file" || test -h "$cache_file"; then
17487	cat confcache >"$cache_file"
17488      else
17489        case $cache_file in #(
17490        */* | ?:*)
17491	  mv -f confcache "$cache_file"$$ &&
17492	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17493        *)
17494	  mv -f confcache "$cache_file" ;;
17495	esac
17496      fi
17497    fi
17498  else
17499    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17500$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17501  fi
17502fi
17503rm -f confcache
17504
17505test "x$prefix" = xNONE && prefix=$ac_default_prefix
17506# Let make expand exec_prefix.
17507test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17508
17509DEFS=-DHAVE_CONFIG_H
17510
17511ac_libobjs=
17512ac_ltlibobjs=
17513U=
17514for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17515  # 1. Remove the extension, and $U if already installed.
17516  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17517  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17518  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17519  #    will be set to the directory where LIBOBJS objects are built.
17520  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17521  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17522done
17523LIBOBJS=$ac_libobjs
17524
17525LTLIBOBJS=$ac_ltlibobjs
17526
17527
17528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17529$as_echo_n "checking that generated files are newer than configure... " >&6; }
17530   if test -n "$am_sleep_pid"; then
17531     # Hide warnings about reused PIDs.
17532     wait $am_sleep_pid 2>/dev/null
17533   fi
17534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17535$as_echo "done" >&6; }
17536 if test -n "$EXEEXT"; then
17537  am__EXEEXT_TRUE=
17538  am__EXEEXT_FALSE='#'
17539else
17540  am__EXEEXT_TRUE='#'
17541  am__EXEEXT_FALSE=
17542fi
17543
17544if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17545  as_fn_error $? "conditional \"AMDEP\" was never defined.
17546Usually this means the macro was only invoked conditionally." "$LINENO" 5
17547fi
17548if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17549  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17550Usually this means the macro was only invoked conditionally." "$LINENO" 5
17551fi
17552if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17553  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17554Usually this means the macro was only invoked conditionally." "$LINENO" 5
17555fi
17556if test -z "${HAS_MINGW_TRUE}" && test -z "${HAS_MINGW_FALSE}"; then
17557  as_fn_error $? "conditional \"HAS_MINGW\" was never defined.
17558Usually this means the macro was only invoked conditionally." "$LINENO" 5
17559fi
17560
17561: "${CONFIG_STATUS=./config.status}"
17562ac_write_fail=0
17563ac_clean_files_save=$ac_clean_files
17564ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17565{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17566$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17567as_write_fail=0
17568cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17569#! $SHELL
17570# Generated by $as_me.
17571# Run this file to recreate the current configuration.
17572# Compiler output produced by configure, useful for debugging
17573# configure, is in config.log if it exists.
17574
17575debug=false
17576ac_cs_recheck=false
17577ac_cs_silent=false
17578
17579SHELL=\${CONFIG_SHELL-$SHELL}
17580export SHELL
17581_ASEOF
17582cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17583## -------------------- ##
17584## M4sh Initialization. ##
17585## -------------------- ##
17586
17587# Be more Bourne compatible
17588DUALCASE=1; export DUALCASE # for MKS sh
17589if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17590  emulate sh
17591  NULLCMD=:
17592  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17593  # is contrary to our usage.  Disable this feature.
17594  alias -g '${1+"$@"}'='"$@"'
17595  setopt NO_GLOB_SUBST
17596else
17597  case `(set -o) 2>/dev/null` in #(
17598  *posix*) :
17599    set -o posix ;; #(
17600  *) :
17601     ;;
17602esac
17603fi
17604
17605
17606as_nl='
17607'
17608export as_nl
17609# Printing a long string crashes Solaris 7 /usr/bin/printf.
17610as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17611as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17612as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17613# Prefer a ksh shell builtin over an external printf program on Solaris,
17614# but without wasting forks for bash or zsh.
17615if test -z "$BASH_VERSION$ZSH_VERSION" \
17616    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17617  as_echo='print -r --'
17618  as_echo_n='print -rn --'
17619elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17620  as_echo='printf %s\n'
17621  as_echo_n='printf %s'
17622else
17623  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17624    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17625    as_echo_n='/usr/ucb/echo -n'
17626  else
17627    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17628    as_echo_n_body='eval
17629      arg=$1;
17630      case $arg in #(
17631      *"$as_nl"*)
17632	expr "X$arg" : "X\\(.*\\)$as_nl";
17633	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17634      esac;
17635      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17636    '
17637    export as_echo_n_body
17638    as_echo_n='sh -c $as_echo_n_body as_echo'
17639  fi
17640  export as_echo_body
17641  as_echo='sh -c $as_echo_body as_echo'
17642fi
17643
17644# The user is always right.
17645if test "${PATH_SEPARATOR+set}" != set; then
17646  PATH_SEPARATOR=:
17647  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17648    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17649      PATH_SEPARATOR=';'
17650  }
17651fi
17652
17653
17654# IFS
17655# We need space, tab and new line, in precisely that order.  Quoting is
17656# there to prevent editors from complaining about space-tab.
17657# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17658# splitting by setting IFS to empty value.)
17659IFS=" ""	$as_nl"
17660
17661# Find who we are.  Look in the path if we contain no directory separator.
17662as_myself=
17663case $0 in #((
17664  *[\\/]* ) as_myself=$0 ;;
17665  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17666for as_dir in $PATH
17667do
17668  IFS=$as_save_IFS
17669  test -z "$as_dir" && as_dir=.
17670    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17671  done
17672IFS=$as_save_IFS
17673
17674     ;;
17675esac
17676# We did not find ourselves, most probably we were run as `sh COMMAND'
17677# in which case we are not to be found in the path.
17678if test "x$as_myself" = x; then
17679  as_myself=$0
17680fi
17681if test ! -f "$as_myself"; then
17682  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17683  exit 1
17684fi
17685
17686# Unset variables that we do not need and which cause bugs (e.g. in
17687# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17688# suppresses any "Segmentation fault" message there.  '((' could
17689# trigger a bug in pdksh 5.2.14.
17690for as_var in BASH_ENV ENV MAIL MAILPATH
17691do eval test x\${$as_var+set} = xset \
17692  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17693done
17694PS1='$ '
17695PS2='> '
17696PS4='+ '
17697
17698# NLS nuisances.
17699LC_ALL=C
17700export LC_ALL
17701LANGUAGE=C
17702export LANGUAGE
17703
17704# CDPATH.
17705(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17706
17707
17708# as_fn_error STATUS ERROR [LINENO LOG_FD]
17709# ----------------------------------------
17710# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17711# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17712# script with STATUS, using 1 if that was 0.
17713as_fn_error ()
17714{
17715  as_status=$1; test $as_status -eq 0 && as_status=1
17716  if test "$4"; then
17717    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17718    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17719  fi
17720  $as_echo "$as_me: error: $2" >&2
17721  as_fn_exit $as_status
17722} # as_fn_error
17723
17724
17725# as_fn_set_status STATUS
17726# -----------------------
17727# Set $? to STATUS, without forking.
17728as_fn_set_status ()
17729{
17730  return $1
17731} # as_fn_set_status
17732
17733# as_fn_exit STATUS
17734# -----------------
17735# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17736as_fn_exit ()
17737{
17738  set +e
17739  as_fn_set_status $1
17740  exit $1
17741} # as_fn_exit
17742
17743# as_fn_unset VAR
17744# ---------------
17745# Portably unset VAR.
17746as_fn_unset ()
17747{
17748  { eval $1=; unset $1;}
17749}
17750as_unset=as_fn_unset
17751# as_fn_append VAR VALUE
17752# ----------------------
17753# Append the text in VALUE to the end of the definition contained in VAR. Take
17754# advantage of any shell optimizations that allow amortized linear growth over
17755# repeated appends, instead of the typical quadratic growth present in naive
17756# implementations.
17757if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17758  eval 'as_fn_append ()
17759  {
17760    eval $1+=\$2
17761  }'
17762else
17763  as_fn_append ()
17764  {
17765    eval $1=\$$1\$2
17766  }
17767fi # as_fn_append
17768
17769# as_fn_arith ARG...
17770# ------------------
17771# Perform arithmetic evaluation on the ARGs, and store the result in the
17772# global $as_val. Take advantage of shells that can avoid forks. The arguments
17773# must be portable across $(()) and expr.
17774if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17775  eval 'as_fn_arith ()
17776  {
17777    as_val=$(( $* ))
17778  }'
17779else
17780  as_fn_arith ()
17781  {
17782    as_val=`expr "$@" || test $? -eq 1`
17783  }
17784fi # as_fn_arith
17785
17786
17787if expr a : '\(a\)' >/dev/null 2>&1 &&
17788   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17789  as_expr=expr
17790else
17791  as_expr=false
17792fi
17793
17794if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17795  as_basename=basename
17796else
17797  as_basename=false
17798fi
17799
17800if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17801  as_dirname=dirname
17802else
17803  as_dirname=false
17804fi
17805
17806as_me=`$as_basename -- "$0" ||
17807$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17808	 X"$0" : 'X\(//\)$' \| \
17809	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17810$as_echo X/"$0" |
17811    sed '/^.*\/\([^/][^/]*\)\/*$/{
17812	    s//\1/
17813	    q
17814	  }
17815	  /^X\/\(\/\/\)$/{
17816	    s//\1/
17817	    q
17818	  }
17819	  /^X\/\(\/\).*/{
17820	    s//\1/
17821	    q
17822	  }
17823	  s/.*/./; q'`
17824
17825# Avoid depending upon Character Ranges.
17826as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17827as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17828as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17829as_cr_digits='0123456789'
17830as_cr_alnum=$as_cr_Letters$as_cr_digits
17831
17832ECHO_C= ECHO_N= ECHO_T=
17833case `echo -n x` in #(((((
17834-n*)
17835  case `echo 'xy\c'` in
17836  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17837  xy)  ECHO_C='\c';;
17838  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17839       ECHO_T='	';;
17840  esac;;
17841*)
17842  ECHO_N='-n';;
17843esac
17844
17845rm -f conf$$ conf$$.exe conf$$.file
17846if test -d conf$$.dir; then
17847  rm -f conf$$.dir/conf$$.file
17848else
17849  rm -f conf$$.dir
17850  mkdir conf$$.dir 2>/dev/null
17851fi
17852if (echo >conf$$.file) 2>/dev/null; then
17853  if ln -s conf$$.file conf$$ 2>/dev/null; then
17854    as_ln_s='ln -s'
17855    # ... but there are two gotchas:
17856    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17857    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17858    # In both cases, we have to default to `cp -pR'.
17859    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17860      as_ln_s='cp -pR'
17861  elif ln conf$$.file conf$$ 2>/dev/null; then
17862    as_ln_s=ln
17863  else
17864    as_ln_s='cp -pR'
17865  fi
17866else
17867  as_ln_s='cp -pR'
17868fi
17869rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17870rmdir conf$$.dir 2>/dev/null
17871
17872
17873# as_fn_mkdir_p
17874# -------------
17875# Create "$as_dir" as a directory, including parents if necessary.
17876as_fn_mkdir_p ()
17877{
17878
17879  case $as_dir in #(
17880  -*) as_dir=./$as_dir;;
17881  esac
17882  test -d "$as_dir" || eval $as_mkdir_p || {
17883    as_dirs=
17884    while :; do
17885      case $as_dir in #(
17886      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17887      *) as_qdir=$as_dir;;
17888      esac
17889      as_dirs="'$as_qdir' $as_dirs"
17890      as_dir=`$as_dirname -- "$as_dir" ||
17891$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17892	 X"$as_dir" : 'X\(//\)[^/]' \| \
17893	 X"$as_dir" : 'X\(//\)$' \| \
17894	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17895$as_echo X"$as_dir" |
17896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17897	    s//\1/
17898	    q
17899	  }
17900	  /^X\(\/\/\)[^/].*/{
17901	    s//\1/
17902	    q
17903	  }
17904	  /^X\(\/\/\)$/{
17905	    s//\1/
17906	    q
17907	  }
17908	  /^X\(\/\).*/{
17909	    s//\1/
17910	    q
17911	  }
17912	  s/.*/./; q'`
17913      test -d "$as_dir" && break
17914    done
17915    test -z "$as_dirs" || eval "mkdir $as_dirs"
17916  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17917
17918
17919} # as_fn_mkdir_p
17920if mkdir -p . 2>/dev/null; then
17921  as_mkdir_p='mkdir -p "$as_dir"'
17922else
17923  test -d ./-p && rmdir ./-p
17924  as_mkdir_p=false
17925fi
17926
17927
17928# as_fn_executable_p FILE
17929# -----------------------
17930# Test if FILE is an executable regular file.
17931as_fn_executable_p ()
17932{
17933  test -f "$1" && test -x "$1"
17934} # as_fn_executable_p
17935as_test_x='test -x'
17936as_executable_p=as_fn_executable_p
17937
17938# Sed expression to map a string onto a valid CPP name.
17939as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17940
17941# Sed expression to map a string onto a valid variable name.
17942as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17943
17944
17945exec 6>&1
17946## ----------------------------------- ##
17947## Main body of $CONFIG_STATUS script. ##
17948## ----------------------------------- ##
17949_ASEOF
17950test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17951
17952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17953# Save the log message, to keep $0 and so on meaningful, and to
17954# report actual input values of CONFIG_FILES etc. instead of their
17955# values after options handling.
17956ac_log="
17957This file was extended by lfcbase $as_me 1.16.2, which was
17958generated by GNU Autoconf 2.69.  Invocation command line was
17959
17960  CONFIG_FILES    = $CONFIG_FILES
17961  CONFIG_HEADERS  = $CONFIG_HEADERS
17962  CONFIG_LINKS    = $CONFIG_LINKS
17963  CONFIG_COMMANDS = $CONFIG_COMMANDS
17964  $ $0 $@
17965
17966on `(hostname || uname -n) 2>/dev/null | sed 1q`
17967"
17968
17969_ACEOF
17970
17971case $ac_config_files in *"
17972"*) set x $ac_config_files; shift; ac_config_files=$*;;
17973esac
17974
17975case $ac_config_headers in *"
17976"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17977esac
17978
17979
17980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17981# Files that config.status was made for.
17982config_files="$ac_config_files"
17983config_headers="$ac_config_headers"
17984config_commands="$ac_config_commands"
17985
17986_ACEOF
17987
17988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17989ac_cs_usage="\
17990\`$as_me' instantiates files and other configuration actions
17991from templates according to the current configuration.  Unless the files
17992and actions are specified as TAGs, all are instantiated by default.
17993
17994Usage: $0 [OPTION]... [TAG]...
17995
17996  -h, --help       print this help, then exit
17997  -V, --version    print version number and configuration settings, then exit
17998      --config     print configuration, then exit
17999  -q, --quiet, --silent
18000                   do not print progress messages
18001  -d, --debug      don't remove temporary files
18002      --recheck    update $as_me by reconfiguring in the same conditions
18003      --file=FILE[:TEMPLATE]
18004                   instantiate the configuration file FILE
18005      --header=FILE[:TEMPLATE]
18006                   instantiate the configuration header FILE
18007
18008Configuration files:
18009$config_files
18010
18011Configuration headers:
18012$config_headers
18013
18014Configuration commands:
18015$config_commands
18016
18017Report bugs to <lemke@lemke-it.com>."
18018
18019_ACEOF
18020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18021ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18022ac_cs_version="\\
18023lfcbase config.status 1.16.2
18024configured by $0, generated by GNU Autoconf 2.69,
18025  with options \\"\$ac_cs_config\\"
18026
18027Copyright (C) 2012 Free Software Foundation, Inc.
18028This config.status script is free software; the Free Software Foundation
18029gives unlimited permission to copy, distribute and modify it."
18030
18031ac_pwd='$ac_pwd'
18032srcdir='$srcdir'
18033INSTALL='$INSTALL'
18034MKDIR_P='$MKDIR_P'
18035AWK='$AWK'
18036test -n "\$AWK" || AWK=awk
18037_ACEOF
18038
18039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18040# The default lists apply if the user does not specify any file.
18041ac_need_defaults=:
18042while test $# != 0
18043do
18044  case $1 in
18045  --*=?*)
18046    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18047    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18048    ac_shift=:
18049    ;;
18050  --*=)
18051    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18052    ac_optarg=
18053    ac_shift=:
18054    ;;
18055  *)
18056    ac_option=$1
18057    ac_optarg=$2
18058    ac_shift=shift
18059    ;;
18060  esac
18061
18062  case $ac_option in
18063  # Handling of the options.
18064  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18065    ac_cs_recheck=: ;;
18066  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18067    $as_echo "$ac_cs_version"; exit ;;
18068  --config | --confi | --conf | --con | --co | --c )
18069    $as_echo "$ac_cs_config"; exit ;;
18070  --debug | --debu | --deb | --de | --d | -d )
18071    debug=: ;;
18072  --file | --fil | --fi | --f )
18073    $ac_shift
18074    case $ac_optarg in
18075    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18076    '') as_fn_error $? "missing file argument" ;;
18077    esac
18078    as_fn_append CONFIG_FILES " '$ac_optarg'"
18079    ac_need_defaults=false;;
18080  --header | --heade | --head | --hea )
18081    $ac_shift
18082    case $ac_optarg in
18083    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18084    esac
18085    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18086    ac_need_defaults=false;;
18087  --he | --h)
18088    # Conflict between --help and --header
18089    as_fn_error $? "ambiguous option: \`$1'
18090Try \`$0 --help' for more information.";;
18091  --help | --hel | -h )
18092    $as_echo "$ac_cs_usage"; exit ;;
18093  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18094  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18095    ac_cs_silent=: ;;
18096
18097  # This is an error.
18098  -*) as_fn_error $? "unrecognized option: \`$1'
18099Try \`$0 --help' for more information." ;;
18100
18101  *) as_fn_append ac_config_targets " $1"
18102     ac_need_defaults=false ;;
18103
18104  esac
18105  shift
18106done
18107
18108ac_configure_extra_args=
18109
18110if $ac_cs_silent; then
18111  exec 6>/dev/null
18112  ac_configure_extra_args="$ac_configure_extra_args --silent"
18113fi
18114
18115_ACEOF
18116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18117if \$ac_cs_recheck; then
18118  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18119  shift
18120  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18121  CONFIG_SHELL='$SHELL'
18122  export CONFIG_SHELL
18123  exec "\$@"
18124fi
18125
18126_ACEOF
18127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18128exec 5>>config.log
18129{
18130  echo
18131  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18132## Running $as_me. ##
18133_ASBOX
18134  $as_echo "$ac_log"
18135} >&5
18136
18137_ACEOF
18138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18139#
18140# INIT-COMMANDS
18141#
18142AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18143
18144
18145# The HP-UX ksh and POSIX shell print the target directory to stdout
18146# if CDPATH is set.
18147(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18148
18149sed_quote_subst='$sed_quote_subst'
18150double_quote_subst='$double_quote_subst'
18151delay_variable_subst='$delay_variable_subst'
18152macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18153macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18154enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18155enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18156pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18157enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18158shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18159SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18160ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18161PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18162host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18163host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18164host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18165build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18166build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18167build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18168SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18169Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18170GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18171EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18172FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18173LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18174NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18175LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18176max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18177ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18178exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18179lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18180lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18181lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18182lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18183lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18184reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18185reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18186OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18187deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18188file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18189file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18190want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18191DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18192sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18193AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18194AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18195archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18196STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18197RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18198old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18199old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18200old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18201lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18202CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18203CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18204compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18205GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18206lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18207lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18208lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18209lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18210lt_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"`'
18211lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18212nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18213lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18214lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18215objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18216MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18217lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18218lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18219lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18220lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18221lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18222need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18223MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18224DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18225NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18226LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18227OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18228OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18229libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18230shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18231extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18232archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18233enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18234export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18235whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18236compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18237old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18238old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18239archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18240archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18241module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18242module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18243with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18244allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18245no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18246hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18247hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18248hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18249hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18250hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18251hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18252hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18253inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18254link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18255always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18256export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18257exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18258include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18259prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18260postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18261file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18262variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18263need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18264need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18265version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18266runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18267shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18268shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18269libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18270library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18271soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18272install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18273postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18274postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18275finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18276finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18277hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18278sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18279configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18280configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18281hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18282enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18283enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18284enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18285old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18286striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18287compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18288predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18289postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18290predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18291postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18292compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18293LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18294reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18295reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18296old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18297compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18298GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18299lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18300lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18301lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18302lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18303lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18304archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18305enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18306export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18307whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18308compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18309old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18310old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18311archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18312archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18313module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18314module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18315with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18316allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18317no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18318hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18319hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18320hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18321hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18322hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18323hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18324hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18325inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18326link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18327always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18328export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18329exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18330include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18331prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18332postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18333file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18334hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18335compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18336predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18337postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18338predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18339postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18340compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18341
18342LTCC='$LTCC'
18343LTCFLAGS='$LTCFLAGS'
18344compiler='$compiler_DEFAULT'
18345
18346# A function that is used when there is no print builtin or printf.
18347func_fallback_echo ()
18348{
18349  eval 'cat <<_LTECHO_EOF
18350\$1
18351_LTECHO_EOF'
18352}
18353
18354# Quote evaled strings.
18355for var in SHELL \
18356ECHO \
18357PATH_SEPARATOR \
18358SED \
18359GREP \
18360EGREP \
18361FGREP \
18362LD \
18363NM \
18364LN_S \
18365lt_SP2NL \
18366lt_NL2SP \
18367reload_flag \
18368OBJDUMP \
18369deplibs_check_method \
18370file_magic_cmd \
18371file_magic_glob \
18372want_nocaseglob \
18373DLLTOOL \
18374sharedlib_from_linklib_cmd \
18375AR \
18376AR_FLAGS \
18377archiver_list_spec \
18378STRIP \
18379RANLIB \
18380CC \
18381CFLAGS \
18382compiler \
18383lt_cv_sys_global_symbol_pipe \
18384lt_cv_sys_global_symbol_to_cdecl \
18385lt_cv_sys_global_symbol_to_import \
18386lt_cv_sys_global_symbol_to_c_name_address \
18387lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18388lt_cv_nm_interface \
18389nm_file_list_spec \
18390lt_cv_truncate_bin \
18391lt_prog_compiler_no_builtin_flag \
18392lt_prog_compiler_pic \
18393lt_prog_compiler_wl \
18394lt_prog_compiler_static \
18395lt_cv_prog_compiler_c_o \
18396need_locks \
18397MANIFEST_TOOL \
18398DSYMUTIL \
18399NMEDIT \
18400LIPO \
18401OTOOL \
18402OTOOL64 \
18403shrext_cmds \
18404export_dynamic_flag_spec \
18405whole_archive_flag_spec \
18406compiler_needs_object \
18407with_gnu_ld \
18408allow_undefined_flag \
18409no_undefined_flag \
18410hardcode_libdir_flag_spec \
18411hardcode_libdir_separator \
18412exclude_expsyms \
18413include_expsyms \
18414file_list_spec \
18415variables_saved_for_relink \
18416libname_spec \
18417library_names_spec \
18418soname_spec \
18419install_override_mode \
18420finish_eval \
18421old_striplib \
18422striplib \
18423compiler_lib_search_dirs \
18424predep_objects \
18425postdep_objects \
18426predeps \
18427postdeps \
18428compiler_lib_search_path \
18429LD_CXX \
18430reload_flag_CXX \
18431compiler_CXX \
18432lt_prog_compiler_no_builtin_flag_CXX \
18433lt_prog_compiler_pic_CXX \
18434lt_prog_compiler_wl_CXX \
18435lt_prog_compiler_static_CXX \
18436lt_cv_prog_compiler_c_o_CXX \
18437export_dynamic_flag_spec_CXX \
18438whole_archive_flag_spec_CXX \
18439compiler_needs_object_CXX \
18440with_gnu_ld_CXX \
18441allow_undefined_flag_CXX \
18442no_undefined_flag_CXX \
18443hardcode_libdir_flag_spec_CXX \
18444hardcode_libdir_separator_CXX \
18445exclude_expsyms_CXX \
18446include_expsyms_CXX \
18447file_list_spec_CXX \
18448compiler_lib_search_dirs_CXX \
18449predep_objects_CXX \
18450postdep_objects_CXX \
18451predeps_CXX \
18452postdeps_CXX \
18453compiler_lib_search_path_CXX; do
18454    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18455    *[\\\\\\\`\\"\\\$]*)
18456      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18457      ;;
18458    *)
18459      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18460      ;;
18461    esac
18462done
18463
18464# Double-quote double-evaled strings.
18465for var in reload_cmds \
18466old_postinstall_cmds \
18467old_postuninstall_cmds \
18468old_archive_cmds \
18469extract_expsyms_cmds \
18470old_archive_from_new_cmds \
18471old_archive_from_expsyms_cmds \
18472archive_cmds \
18473archive_expsym_cmds \
18474module_cmds \
18475module_expsym_cmds \
18476export_symbols_cmds \
18477prelink_cmds \
18478postlink_cmds \
18479postinstall_cmds \
18480postuninstall_cmds \
18481finish_cmds \
18482sys_lib_search_path_spec \
18483configure_time_dlsearch_path \
18484configure_time_lt_sys_library_path \
18485reload_cmds_CXX \
18486old_archive_cmds_CXX \
18487old_archive_from_new_cmds_CXX \
18488old_archive_from_expsyms_cmds_CXX \
18489archive_cmds_CXX \
18490archive_expsym_cmds_CXX \
18491module_cmds_CXX \
18492module_expsym_cmds_CXX \
18493export_symbols_cmds_CXX \
18494prelink_cmds_CXX \
18495postlink_cmds_CXX; do
18496    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18497    *[\\\\\\\`\\"\\\$]*)
18498      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18499      ;;
18500    *)
18501      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18502      ;;
18503    esac
18504done
18505
18506ac_aux_dir='$ac_aux_dir'
18507
18508# See if we are running on zsh, and set the options that allow our
18509# commands through without removal of \ escapes INIT.
18510if test -n "\${ZSH_VERSION+set}"; then
18511   setopt NO_GLOB_SUBST
18512fi
18513
18514
18515    PACKAGE='$PACKAGE'
18516    VERSION='$VERSION'
18517    RM='$RM'
18518    ofile='$ofile'
18519
18520
18521
18522
18523
18524
18525_ACEOF
18526
18527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18528
18529# Handling of arguments.
18530for ac_config_target in $ac_config_targets
18531do
18532  case $ac_config_target in
18533    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18534    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18535    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18536    "basecheck/Makefile") CONFIG_FILES="$CONFIG_FILES basecheck/Makefile" ;;
18537    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18538    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18539
18540  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18541  esac
18542done
18543
18544
18545# If the user did not use the arguments to specify the items to instantiate,
18546# then the envvar interface is used.  Set only those that are not.
18547# We use the long form for the default assignment because of an extremely
18548# bizarre bug on SunOS 4.1.3.
18549if $ac_need_defaults; then
18550  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18551  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18552  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18553fi
18554
18555# Have a temporary directory for convenience.  Make it in the build tree
18556# simply because there is no reason against having it here, and in addition,
18557# creating and moving files from /tmp can sometimes cause problems.
18558# Hook for its removal unless debugging.
18559# Note that there is a small window in which the directory will not be cleaned:
18560# after its creation but before its name has been assigned to `$tmp'.
18561$debug ||
18562{
18563  tmp= ac_tmp=
18564  trap 'exit_status=$?
18565  : "${ac_tmp:=$tmp}"
18566  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18567' 0
18568  trap 'as_fn_exit 1' 1 2 13 15
18569}
18570# Create a (secure) tmp directory for tmp files.
18571
18572{
18573  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18574  test -d "$tmp"
18575}  ||
18576{
18577  tmp=./conf$$-$RANDOM
18578  (umask 077 && mkdir "$tmp")
18579} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18580ac_tmp=$tmp
18581
18582# Set up the scripts for CONFIG_FILES section.
18583# No need to generate them if there are no CONFIG_FILES.
18584# This happens for instance with `./config.status config.h'.
18585if test -n "$CONFIG_FILES"; then
18586
18587
18588ac_cr=`echo X | tr X '\015'`
18589# On cygwin, bash can eat \r inside `` if the user requested igncr.
18590# But we know of no other shell where ac_cr would be empty at this
18591# point, so we can use a bashism as a fallback.
18592if test "x$ac_cr" = x; then
18593  eval ac_cr=\$\'\\r\'
18594fi
18595ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18596if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18597  ac_cs_awk_cr='\\r'
18598else
18599  ac_cs_awk_cr=$ac_cr
18600fi
18601
18602echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18603_ACEOF
18604
18605
18606{
18607  echo "cat >conf$$subs.awk <<_ACEOF" &&
18608  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18609  echo "_ACEOF"
18610} >conf$$subs.sh ||
18611  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18612ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18613ac_delim='%!_!# '
18614for ac_last_try in false false false false false :; do
18615  . ./conf$$subs.sh ||
18616    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18617
18618  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18619  if test $ac_delim_n = $ac_delim_num; then
18620    break
18621  elif $ac_last_try; then
18622    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18623  else
18624    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18625  fi
18626done
18627rm -f conf$$subs.sh
18628
18629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18630cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18631_ACEOF
18632sed -n '
18633h
18634s/^/S["/; s/!.*/"]=/
18635p
18636g
18637s/^[^!]*!//
18638:repl
18639t repl
18640s/'"$ac_delim"'$//
18641t delim
18642:nl
18643h
18644s/\(.\{148\}\)..*/\1/
18645t more1
18646s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18647p
18648n
18649b repl
18650:more1
18651s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18652p
18653g
18654s/.\{148\}//
18655t nl
18656:delim
18657h
18658s/\(.\{148\}\)..*/\1/
18659t more2
18660s/["\\]/\\&/g; s/^/"/; s/$/"/
18661p
18662b
18663:more2
18664s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18665p
18666g
18667s/.\{148\}//
18668t delim
18669' <conf$$subs.awk | sed '
18670/^[^""]/{
18671  N
18672  s/\n//
18673}
18674' >>$CONFIG_STATUS || ac_write_fail=1
18675rm -f conf$$subs.awk
18676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18677_ACAWK
18678cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18679  for (key in S) S_is_set[key] = 1
18680  FS = ""
18681
18682}
18683{
18684  line = $ 0
18685  nfields = split(line, field, "@")
18686  substed = 0
18687  len = length(field[1])
18688  for (i = 2; i < nfields; i++) {
18689    key = field[i]
18690    keylen = length(key)
18691    if (S_is_set[key]) {
18692      value = S[key]
18693      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18694      len += length(value) + length(field[++i])
18695      substed = 1
18696    } else
18697      len += 1 + keylen
18698  }
18699
18700  print line
18701}
18702
18703_ACAWK
18704_ACEOF
18705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18707  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18708else
18709  cat
18710fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18711  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18712_ACEOF
18713
18714# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18715# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18716# trailing colons and then remove the whole line if VPATH becomes empty
18717# (actually we leave an empty line to preserve line numbers).
18718if test "x$srcdir" = x.; then
18719  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18720h
18721s///
18722s/^/:/
18723s/[	 ]*$/:/
18724s/:\$(srcdir):/:/g
18725s/:\${srcdir}:/:/g
18726s/:@srcdir@:/:/g
18727s/^:*//
18728s/:*$//
18729x
18730s/\(=[	 ]*\).*/\1/
18731G
18732s/\n//
18733s/^[^=]*=[	 ]*$//
18734}'
18735fi
18736
18737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18738fi # test -n "$CONFIG_FILES"
18739
18740# Set up the scripts for CONFIG_HEADERS section.
18741# No need to generate them if there are no CONFIG_HEADERS.
18742# This happens for instance with `./config.status Makefile'.
18743if test -n "$CONFIG_HEADERS"; then
18744cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18745BEGIN {
18746_ACEOF
18747
18748# Transform confdefs.h into an awk script `defines.awk', embedded as
18749# here-document in config.status, that substitutes the proper values into
18750# config.h.in to produce config.h.
18751
18752# Create a delimiter string that does not exist in confdefs.h, to ease
18753# handling of long lines.
18754ac_delim='%!_!# '
18755for ac_last_try in false false :; do
18756  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18757  if test -z "$ac_tt"; then
18758    break
18759  elif $ac_last_try; then
18760    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18761  else
18762    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18763  fi
18764done
18765
18766# For the awk script, D is an array of macro values keyed by name,
18767# likewise P contains macro parameters if any.  Preserve backslash
18768# newline sequences.
18769
18770ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18771sed -n '
18772s/.\{148\}/&'"$ac_delim"'/g
18773t rset
18774:rset
18775s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18776t def
18777d
18778:def
18779s/\\$//
18780t bsnl
18781s/["\\]/\\&/g
18782s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18783D["\1"]=" \3"/p
18784s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18785d
18786:bsnl
18787s/["\\]/\\&/g
18788s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18789D["\1"]=" \3\\\\\\n"\\/p
18790t cont
18791s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18792t cont
18793d
18794:cont
18795n
18796s/.\{148\}/&'"$ac_delim"'/g
18797t clear
18798:clear
18799s/\\$//
18800t bsnlc
18801s/["\\]/\\&/g; s/^/"/; s/$/"/p
18802d
18803:bsnlc
18804s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18805b cont
18806' <confdefs.h | sed '
18807s/'"$ac_delim"'/"\\\
18808"/g' >>$CONFIG_STATUS || ac_write_fail=1
18809
18810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18811  for (key in D) D_is_set[key] = 1
18812  FS = ""
18813}
18814/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18815  line = \$ 0
18816  split(line, arg, " ")
18817  if (arg[1] == "#") {
18818    defundef = arg[2]
18819    mac1 = arg[3]
18820  } else {
18821    defundef = substr(arg[1], 2)
18822    mac1 = arg[2]
18823  }
18824  split(mac1, mac2, "(") #)
18825  macro = mac2[1]
18826  prefix = substr(line, 1, index(line, defundef) - 1)
18827  if (D_is_set[macro]) {
18828    # Preserve the white space surrounding the "#".
18829    print prefix "define", macro P[macro] D[macro]
18830    next
18831  } else {
18832    # Replace #undef with comments.  This is necessary, for example,
18833    # in the case of _POSIX_SOURCE, which is predefined and required
18834    # on some systems where configure will not decide to define it.
18835    if (defundef == "undef") {
18836      print "/*", prefix defundef, macro, "*/"
18837      next
18838    }
18839  }
18840}
18841{ print }
18842_ACAWK
18843_ACEOF
18844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18845  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18846fi # test -n "$CONFIG_HEADERS"
18847
18848
18849eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18850shift
18851for ac_tag
18852do
18853  case $ac_tag in
18854  :[FHLC]) ac_mode=$ac_tag; continue;;
18855  esac
18856  case $ac_mode$ac_tag in
18857  :[FHL]*:*);;
18858  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18859  :[FH]-) ac_tag=-:-;;
18860  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18861  esac
18862  ac_save_IFS=$IFS
18863  IFS=:
18864  set x $ac_tag
18865  IFS=$ac_save_IFS
18866  shift
18867  ac_file=$1
18868  shift
18869
18870  case $ac_mode in
18871  :L) ac_source=$1;;
18872  :[FH])
18873    ac_file_inputs=
18874    for ac_f
18875    do
18876      case $ac_f in
18877      -) ac_f="$ac_tmp/stdin";;
18878      *) # Look for the file first in the build tree, then in the source tree
18879	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18880	 # because $ac_f cannot contain `:'.
18881	 test -f "$ac_f" ||
18882	   case $ac_f in
18883	   [\\/$]*) false;;
18884	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18885	   esac ||
18886	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18887      esac
18888      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18889      as_fn_append ac_file_inputs " '$ac_f'"
18890    done
18891
18892    # Let's still pretend it is `configure' which instantiates (i.e., don't
18893    # use $as_me), people would be surprised to read:
18894    #    /* config.h.  Generated by config.status.  */
18895    configure_input='Generated from '`
18896	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18897	`' by configure.'
18898    if test x"$ac_file" != x-; then
18899      configure_input="$ac_file.  $configure_input"
18900      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18901$as_echo "$as_me: creating $ac_file" >&6;}
18902    fi
18903    # Neutralize special characters interpreted by sed in replacement strings.
18904    case $configure_input in #(
18905    *\&* | *\|* | *\\* )
18906       ac_sed_conf_input=`$as_echo "$configure_input" |
18907       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18908    *) ac_sed_conf_input=$configure_input;;
18909    esac
18910
18911    case $ac_tag in
18912    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18913      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18914    esac
18915    ;;
18916  esac
18917
18918  ac_dir=`$as_dirname -- "$ac_file" ||
18919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18920	 X"$ac_file" : 'X\(//\)[^/]' \| \
18921	 X"$ac_file" : 'X\(//\)$' \| \
18922	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18923$as_echo X"$ac_file" |
18924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18925	    s//\1/
18926	    q
18927	  }
18928	  /^X\(\/\/\)[^/].*/{
18929	    s//\1/
18930	    q
18931	  }
18932	  /^X\(\/\/\)$/{
18933	    s//\1/
18934	    q
18935	  }
18936	  /^X\(\/\).*/{
18937	    s//\1/
18938	    q
18939	  }
18940	  s/.*/./; q'`
18941  as_dir="$ac_dir"; as_fn_mkdir_p
18942  ac_builddir=.
18943
18944case "$ac_dir" in
18945.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18946*)
18947  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18948  # A ".." for each directory in $ac_dir_suffix.
18949  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18950  case $ac_top_builddir_sub in
18951  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18952  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18953  esac ;;
18954esac
18955ac_abs_top_builddir=$ac_pwd
18956ac_abs_builddir=$ac_pwd$ac_dir_suffix
18957# for backward compatibility:
18958ac_top_builddir=$ac_top_build_prefix
18959
18960case $srcdir in
18961  .)  # We are building in place.
18962    ac_srcdir=.
18963    ac_top_srcdir=$ac_top_builddir_sub
18964    ac_abs_top_srcdir=$ac_pwd ;;
18965  [\\/]* | ?:[\\/]* )  # Absolute name.
18966    ac_srcdir=$srcdir$ac_dir_suffix;
18967    ac_top_srcdir=$srcdir
18968    ac_abs_top_srcdir=$srcdir ;;
18969  *) # Relative name.
18970    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18971    ac_top_srcdir=$ac_top_build_prefix$srcdir
18972    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18973esac
18974ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18975
18976
18977  case $ac_mode in
18978  :F)
18979  #
18980  # CONFIG_FILE
18981  #
18982
18983  case $INSTALL in
18984  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18985  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18986  esac
18987  ac_MKDIR_P=$MKDIR_P
18988  case $MKDIR_P in
18989  [\\/$]* | ?:[\\/]* ) ;;
18990  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18991  esac
18992_ACEOF
18993
18994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18995# If the template does not know about datarootdir, expand it.
18996# FIXME: This hack should be removed a few years after 2.60.
18997ac_datarootdir_hack=; ac_datarootdir_seen=
18998ac_sed_dataroot='
18999/datarootdir/ {
19000  p
19001  q
19002}
19003/@datadir@/p
19004/@docdir@/p
19005/@infodir@/p
19006/@localedir@/p
19007/@mandir@/p'
19008case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19009*datarootdir*) ac_datarootdir_seen=yes;;
19010*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19011  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19012$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19013_ACEOF
19014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19015  ac_datarootdir_hack='
19016  s&@datadir@&$datadir&g
19017  s&@docdir@&$docdir&g
19018  s&@infodir@&$infodir&g
19019  s&@localedir@&$localedir&g
19020  s&@mandir@&$mandir&g
19021  s&\\\${datarootdir}&$datarootdir&g' ;;
19022esac
19023_ACEOF
19024
19025# Neutralize VPATH when `$srcdir' = `.'.
19026# Shell code in configure.ac might set extrasub.
19027# FIXME: do we really want to maintain this feature?
19028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19029ac_sed_extra="$ac_vpsub
19030$extrasub
19031_ACEOF
19032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033:t
19034/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19035s|@configure_input@|$ac_sed_conf_input|;t t
19036s&@top_builddir@&$ac_top_builddir_sub&;t t
19037s&@top_build_prefix@&$ac_top_build_prefix&;t t
19038s&@srcdir@&$ac_srcdir&;t t
19039s&@abs_srcdir@&$ac_abs_srcdir&;t t
19040s&@top_srcdir@&$ac_top_srcdir&;t t
19041s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19042s&@builddir@&$ac_builddir&;t t
19043s&@abs_builddir@&$ac_abs_builddir&;t t
19044s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19045s&@INSTALL@&$ac_INSTALL&;t t
19046s&@MKDIR_P@&$ac_MKDIR_P&;t t
19047$ac_datarootdir_hack
19048"
19049eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19050  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19051
19052test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19053  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19054  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19055      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19056  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19057which seems to be undefined.  Please make sure it is defined" >&5
19058$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19059which seems to be undefined.  Please make sure it is defined" >&2;}
19060
19061  rm -f "$ac_tmp/stdin"
19062  case $ac_file in
19063  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19064  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19065  esac \
19066  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19067 ;;
19068  :H)
19069  #
19070  # CONFIG_HEADER
19071  #
19072  if test x"$ac_file" != x-; then
19073    {
19074      $as_echo "/* $configure_input  */" \
19075      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19076    } >"$ac_tmp/config.h" \
19077      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19078    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19079      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19080$as_echo "$as_me: $ac_file is unchanged" >&6;}
19081    else
19082      rm -f "$ac_file"
19083      mv "$ac_tmp/config.h" "$ac_file" \
19084	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19085    fi
19086  else
19087    $as_echo "/* $configure_input  */" \
19088      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19089      || as_fn_error $? "could not create -" "$LINENO" 5
19090  fi
19091# Compute "$ac_file"'s index in $config_headers.
19092_am_arg="$ac_file"
19093_am_stamp_count=1
19094for _am_header in $config_headers :; do
19095  case $_am_header in
19096    $_am_arg | $_am_arg:* )
19097      break ;;
19098    * )
19099      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19100  esac
19101done
19102echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19103$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19104	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19105	 X"$_am_arg" : 'X\(//\)$' \| \
19106	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19107$as_echo X"$_am_arg" |
19108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19109	    s//\1/
19110	    q
19111	  }
19112	  /^X\(\/\/\)[^/].*/{
19113	    s//\1/
19114	    q
19115	  }
19116	  /^X\(\/\/\)$/{
19117	    s//\1/
19118	    q
19119	  }
19120	  /^X\(\/\).*/{
19121	    s//\1/
19122	    q
19123	  }
19124	  s/.*/./; q'`/stamp-h$_am_stamp_count
19125 ;;
19126
19127  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19128$as_echo "$as_me: executing $ac_file commands" >&6;}
19129 ;;
19130  esac
19131
19132
19133  case $ac_file$ac_mode in
19134    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19135  # Older Autoconf quotes --file arguments for eval, but not when files
19136  # are listed without --file.  Let's play safe and only enable the eval
19137  # if we detect the quoting.
19138  case $CONFIG_FILES in
19139  *\'*) eval set x "$CONFIG_FILES" ;;
19140  *)   set x $CONFIG_FILES ;;
19141  esac
19142  shift
19143  for mf
19144  do
19145    # Strip MF so we end up with the name of the file.
19146    mf=`echo "$mf" | sed -e 's/:.*$//'`
19147    # Check whether this is an Automake generated Makefile or not.
19148    # We used to match only the files named 'Makefile.in', but
19149    # some people rename them; so instead we look at the file content.
19150    # Grep'ing the first line is not enough: some people post-process
19151    # each Makefile.in and add a new line on top of each file to say so.
19152    # Grep'ing the whole file is not good either: AIX grep has a line
19153    # limit of 2048, but all sed's we know have understand at least 4000.
19154    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19155      dirpart=`$as_dirname -- "$mf" ||
19156$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19157	 X"$mf" : 'X\(//\)[^/]' \| \
19158	 X"$mf" : 'X\(//\)$' \| \
19159	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19160$as_echo X"$mf" |
19161    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19162	    s//\1/
19163	    q
19164	  }
19165	  /^X\(\/\/\)[^/].*/{
19166	    s//\1/
19167	    q
19168	  }
19169	  /^X\(\/\/\)$/{
19170	    s//\1/
19171	    q
19172	  }
19173	  /^X\(\/\).*/{
19174	    s//\1/
19175	    q
19176	  }
19177	  s/.*/./; q'`
19178    else
19179      continue
19180    fi
19181    # Extract the definition of DEPDIR, am__include, and am__quote
19182    # from the Makefile without running 'make'.
19183    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19184    test -z "$DEPDIR" && continue
19185    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19186    test -z "am__include" && continue
19187    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19188    # Find all dependency output files, they are included files with
19189    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19190    # simplest approach to changing $(DEPDIR) to its actual value in the
19191    # expansion.
19192    for file in `sed -n "
19193      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19194	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19195      # Make sure the directory exists.
19196      test -f "$dirpart/$file" && continue
19197      fdir=`$as_dirname -- "$file" ||
19198$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19199	 X"$file" : 'X\(//\)[^/]' \| \
19200	 X"$file" : 'X\(//\)$' \| \
19201	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19202$as_echo X"$file" |
19203    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19204	    s//\1/
19205	    q
19206	  }
19207	  /^X\(\/\/\)[^/].*/{
19208	    s//\1/
19209	    q
19210	  }
19211	  /^X\(\/\/\)$/{
19212	    s//\1/
19213	    q
19214	  }
19215	  /^X\(\/\).*/{
19216	    s//\1/
19217	    q
19218	  }
19219	  s/.*/./; q'`
19220      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19221      # echo "creating $dirpart/$file"
19222      echo '# dummy' > "$dirpart/$file"
19223    done
19224  done
19225}
19226 ;;
19227    "libtool":C)
19228
19229    # See if we are running on zsh, and set the options that allow our
19230    # commands through without removal of \ escapes.
19231    if test -n "${ZSH_VERSION+set}"; then
19232      setopt NO_GLOB_SUBST
19233    fi
19234
19235    cfgfile=${ofile}T
19236    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19237    $RM "$cfgfile"
19238
19239    cat <<_LT_EOF >> "$cfgfile"
19240#! $SHELL
19241# Generated automatically by $as_me ($PACKAGE) $VERSION
19242# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19243# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19244
19245# Provide generalized library-building support services.
19246# Written by Gordon Matzigkeit, 1996
19247
19248# Copyright (C) 2014 Free Software Foundation, Inc.
19249# This is free software; see the source for copying conditions.  There is NO
19250# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19251
19252# GNU Libtool is free software; you can redistribute it and/or modify
19253# it under the terms of the GNU General Public License as published by
19254# the Free Software Foundation; either version 2 of of the License, or
19255# (at your option) any later version.
19256#
19257# As a special exception to the GNU General Public License, if you
19258# distribute this file as part of a program or library that is built
19259# using GNU Libtool, you may include this file under the  same
19260# distribution terms that you use for the rest of that program.
19261#
19262# GNU Libtool is distributed in the hope that it will be useful, but
19263# WITHOUT ANY WARRANTY; without even the implied warranty of
19264# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19265# GNU General Public License for more details.
19266#
19267# You should have received a copy of the GNU General Public License
19268# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19269
19270
19271# The names of the tagged configurations supported by this script.
19272available_tags='CXX '
19273
19274# Configured defaults for sys_lib_dlsearch_path munging.
19275: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19276
19277# ### BEGIN LIBTOOL CONFIG
19278
19279# Which release of libtool.m4 was used?
19280macro_version=$macro_version
19281macro_revision=$macro_revision
19282
19283# Whether or not to build shared libraries.
19284build_libtool_libs=$enable_shared
19285
19286# Whether or not to build static libraries.
19287build_old_libs=$enable_static
19288
19289# What type of objects to build.
19290pic_mode=$pic_mode
19291
19292# Whether or not to optimize for fast installation.
19293fast_install=$enable_fast_install
19294
19295# Shared archive member basename,for filename based shared library versioning on AIX.
19296shared_archive_member_spec=$shared_archive_member_spec
19297
19298# Shell to use when invoking shell scripts.
19299SHELL=$lt_SHELL
19300
19301# An echo program that protects backslashes.
19302ECHO=$lt_ECHO
19303
19304# The PATH separator for the build system.
19305PATH_SEPARATOR=$lt_PATH_SEPARATOR
19306
19307# The host system.
19308host_alias=$host_alias
19309host=$host
19310host_os=$host_os
19311
19312# The build system.
19313build_alias=$build_alias
19314build=$build
19315build_os=$build_os
19316
19317# A sed program that does not truncate output.
19318SED=$lt_SED
19319
19320# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19321Xsed="\$SED -e 1s/^X//"
19322
19323# A grep program that handles long lines.
19324GREP=$lt_GREP
19325
19326# An ERE matcher.
19327EGREP=$lt_EGREP
19328
19329# A literal string matcher.
19330FGREP=$lt_FGREP
19331
19332# A BSD- or MS-compatible name lister.
19333NM=$lt_NM
19334
19335# Whether we need soft or hard links.
19336LN_S=$lt_LN_S
19337
19338# What is the maximum length of a command?
19339max_cmd_len=$max_cmd_len
19340
19341# Object file suffix (normally "o").
19342objext=$ac_objext
19343
19344# Executable file suffix (normally "").
19345exeext=$exeext
19346
19347# whether the shell understands "unset".
19348lt_unset=$lt_unset
19349
19350# turn spaces into newlines.
19351SP2NL=$lt_lt_SP2NL
19352
19353# turn newlines into spaces.
19354NL2SP=$lt_lt_NL2SP
19355
19356# convert \$build file names to \$host format.
19357to_host_file_cmd=$lt_cv_to_host_file_cmd
19358
19359# convert \$build files to toolchain format.
19360to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19361
19362# An object symbol dumper.
19363OBJDUMP=$lt_OBJDUMP
19364
19365# Method to check whether dependent libraries are shared objects.
19366deplibs_check_method=$lt_deplibs_check_method
19367
19368# Command to use when deplibs_check_method = "file_magic".
19369file_magic_cmd=$lt_file_magic_cmd
19370
19371# How to find potential files when deplibs_check_method = "file_magic".
19372file_magic_glob=$lt_file_magic_glob
19373
19374# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19375want_nocaseglob=$lt_want_nocaseglob
19376
19377# DLL creation program.
19378DLLTOOL=$lt_DLLTOOL
19379
19380# Command to associate shared and link libraries.
19381sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19382
19383# The archiver.
19384AR=$lt_AR
19385
19386# Flags to create an archive.
19387AR_FLAGS=$lt_AR_FLAGS
19388
19389# How to feed a file listing to the archiver.
19390archiver_list_spec=$lt_archiver_list_spec
19391
19392# A symbol stripping program.
19393STRIP=$lt_STRIP
19394
19395# Commands used to install an old-style archive.
19396RANLIB=$lt_RANLIB
19397old_postinstall_cmds=$lt_old_postinstall_cmds
19398old_postuninstall_cmds=$lt_old_postuninstall_cmds
19399
19400# Whether to use a lock for old archive extraction.
19401lock_old_archive_extraction=$lock_old_archive_extraction
19402
19403# A C compiler.
19404LTCC=$lt_CC
19405
19406# LTCC compiler flags.
19407LTCFLAGS=$lt_CFLAGS
19408
19409# Take the output of nm and produce a listing of raw symbols and C names.
19410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19411
19412# Transform the output of nm in a proper C declaration.
19413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19414
19415# Transform the output of nm into a list of symbols to manually relocate.
19416global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19417
19418# Transform the output of nm in a C name address pair.
19419global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19420
19421# Transform the output of nm in a C name address pair when lib prefix is needed.
19422global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19423
19424# The name lister interface.
19425nm_interface=$lt_lt_cv_nm_interface
19426
19427# Specify filename containing input files for \$NM.
19428nm_file_list_spec=$lt_nm_file_list_spec
19429
19430# The root where to search for dependent libraries,and where our libraries should be installed.
19431lt_sysroot=$lt_sysroot
19432
19433# Command to truncate a binary pipe.
19434lt_truncate_bin=$lt_lt_cv_truncate_bin
19435
19436# The name of the directory that contains temporary libtool files.
19437objdir=$objdir
19438
19439# Used to examine libraries when file_magic_cmd begins with "file".
19440MAGIC_CMD=$MAGIC_CMD
19441
19442# Must we lock files when doing compilation?
19443need_locks=$lt_need_locks
19444
19445# Manifest tool.
19446MANIFEST_TOOL=$lt_MANIFEST_TOOL
19447
19448# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19449DSYMUTIL=$lt_DSYMUTIL
19450
19451# Tool to change global to local symbols on Mac OS X.
19452NMEDIT=$lt_NMEDIT
19453
19454# Tool to manipulate fat objects and archives on Mac OS X.
19455LIPO=$lt_LIPO
19456
19457# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19458OTOOL=$lt_OTOOL
19459
19460# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19461OTOOL64=$lt_OTOOL64
19462
19463# Old archive suffix (normally "a").
19464libext=$libext
19465
19466# Shared library suffix (normally ".so").
19467shrext_cmds=$lt_shrext_cmds
19468
19469# The commands to extract the exported symbol list from a shared archive.
19470extract_expsyms_cmds=$lt_extract_expsyms_cmds
19471
19472# Variables whose values should be saved in libtool wrapper scripts and
19473# restored at link time.
19474variables_saved_for_relink=$lt_variables_saved_for_relink
19475
19476# Do we need the "lib" prefix for modules?
19477need_lib_prefix=$need_lib_prefix
19478
19479# Do we need a version for libraries?
19480need_version=$need_version
19481
19482# Library versioning type.
19483version_type=$version_type
19484
19485# Shared library runtime path variable.
19486runpath_var=$runpath_var
19487
19488# Shared library path variable.
19489shlibpath_var=$shlibpath_var
19490
19491# Is shlibpath searched before the hard-coded library search path?
19492shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19493
19494# Format of library name prefix.
19495libname_spec=$lt_libname_spec
19496
19497# List of archive names.  First name is the real one, the rest are links.
19498# The last name is the one that the linker finds with -lNAME
19499library_names_spec=$lt_library_names_spec
19500
19501# The coded name of the library, if different from the real name.
19502soname_spec=$lt_soname_spec
19503
19504# Permission mode override for installation of shared libraries.
19505install_override_mode=$lt_install_override_mode
19506
19507# Command to use after installation of a shared archive.
19508postinstall_cmds=$lt_postinstall_cmds
19509
19510# Command to use after uninstallation of a shared archive.
19511postuninstall_cmds=$lt_postuninstall_cmds
19512
19513# Commands used to finish a libtool library installation in a directory.
19514finish_cmds=$lt_finish_cmds
19515
19516# As "finish_cmds", except a single script fragment to be evaled but
19517# not shown.
19518finish_eval=$lt_finish_eval
19519
19520# Whether we should hardcode library paths into libraries.
19521hardcode_into_libs=$hardcode_into_libs
19522
19523# Compile-time system search path for libraries.
19524sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19525
19526# Detected run-time system search path for libraries.
19527sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19528
19529# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19530configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19531
19532# Whether dlopen is supported.
19533dlopen_support=$enable_dlopen
19534
19535# Whether dlopen of programs is supported.
19536dlopen_self=$enable_dlopen_self
19537
19538# Whether dlopen of statically linked programs is supported.
19539dlopen_self_static=$enable_dlopen_self_static
19540
19541# Commands to strip libraries.
19542old_striplib=$lt_old_striplib
19543striplib=$lt_striplib
19544
19545
19546# The linker used to build libraries.
19547LD=$lt_LD
19548
19549# How to create reloadable object files.
19550reload_flag=$lt_reload_flag
19551reload_cmds=$lt_reload_cmds
19552
19553# Commands used to build an old-style archive.
19554old_archive_cmds=$lt_old_archive_cmds
19555
19556# A language specific compiler.
19557CC=$lt_compiler
19558
19559# Is the compiler the GNU compiler?
19560with_gcc=$GCC
19561
19562# Compiler flag to turn off builtin functions.
19563no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19564
19565# Additional compiler flags for building library objects.
19566pic_flag=$lt_lt_prog_compiler_pic
19567
19568# How to pass a linker flag through the compiler.
19569wl=$lt_lt_prog_compiler_wl
19570
19571# Compiler flag to prevent dynamic linking.
19572link_static_flag=$lt_lt_prog_compiler_static
19573
19574# Does compiler simultaneously support -c and -o options?
19575compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19576
19577# Whether or not to add -lc for building shared libraries.
19578build_libtool_need_lc=$archive_cmds_need_lc
19579
19580# Whether or not to disallow shared libs when runtime libs are static.
19581allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19582
19583# Compiler flag to allow reflexive dlopens.
19584export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19585
19586# Compiler flag to generate shared objects directly from archives.
19587whole_archive_flag_spec=$lt_whole_archive_flag_spec
19588
19589# Whether the compiler copes with passing no objects directly.
19590compiler_needs_object=$lt_compiler_needs_object
19591
19592# Create an old-style archive from a shared archive.
19593old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19594
19595# Create a temporary old-style archive to link instead of a shared archive.
19596old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19597
19598# Commands used to build a shared archive.
19599archive_cmds=$lt_archive_cmds
19600archive_expsym_cmds=$lt_archive_expsym_cmds
19601
19602# Commands used to build a loadable module if different from building
19603# a shared archive.
19604module_cmds=$lt_module_cmds
19605module_expsym_cmds=$lt_module_expsym_cmds
19606
19607# Whether we are building with GNU ld or not.
19608with_gnu_ld=$lt_with_gnu_ld
19609
19610# Flag that allows shared libraries with undefined symbols to be built.
19611allow_undefined_flag=$lt_allow_undefined_flag
19612
19613# Flag that enforces no undefined symbols.
19614no_undefined_flag=$lt_no_undefined_flag
19615
19616# Flag to hardcode \$libdir into a binary during linking.
19617# This must work even if \$libdir does not exist
19618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19619
19620# Whether we need a single "-rpath" flag with a separated argument.
19621hardcode_libdir_separator=$lt_hardcode_libdir_separator
19622
19623# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19624# DIR into the resulting binary.
19625hardcode_direct=$hardcode_direct
19626
19627# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19628# DIR into the resulting binary and the resulting library dependency is
19629# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19630# library is relocated.
19631hardcode_direct_absolute=$hardcode_direct_absolute
19632
19633# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19634# into the resulting binary.
19635hardcode_minus_L=$hardcode_minus_L
19636
19637# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19638# into the resulting binary.
19639hardcode_shlibpath_var=$hardcode_shlibpath_var
19640
19641# Set to "yes" if building a shared library automatically hardcodes DIR
19642# into the library and all subsequent libraries and executables linked
19643# against it.
19644hardcode_automatic=$hardcode_automatic
19645
19646# Set to yes if linker adds runtime paths of dependent libraries
19647# to runtime path list.
19648inherit_rpath=$inherit_rpath
19649
19650# Whether libtool must link a program against all its dependency libraries.
19651link_all_deplibs=$link_all_deplibs
19652
19653# Set to "yes" if exported symbols are required.
19654always_export_symbols=$always_export_symbols
19655
19656# The commands to list exported symbols.
19657export_symbols_cmds=$lt_export_symbols_cmds
19658
19659# Symbols that should not be listed in the preloaded symbols.
19660exclude_expsyms=$lt_exclude_expsyms
19661
19662# Symbols that must always be exported.
19663include_expsyms=$lt_include_expsyms
19664
19665# Commands necessary for linking programs (against libraries) with templates.
19666prelink_cmds=$lt_prelink_cmds
19667
19668# Commands necessary for finishing linking programs.
19669postlink_cmds=$lt_postlink_cmds
19670
19671# Specify filename containing input files.
19672file_list_spec=$lt_file_list_spec
19673
19674# How to hardcode a shared library path into an executable.
19675hardcode_action=$hardcode_action
19676
19677# The directories searched by this compiler when creating a shared library.
19678compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19679
19680# Dependencies to place before and after the objects being linked to
19681# create a shared library.
19682predep_objects=$lt_predep_objects
19683postdep_objects=$lt_postdep_objects
19684predeps=$lt_predeps
19685postdeps=$lt_postdeps
19686
19687# The library search path used internally by the compiler when linking
19688# a shared library.
19689compiler_lib_search_path=$lt_compiler_lib_search_path
19690
19691# ### END LIBTOOL CONFIG
19692
19693_LT_EOF
19694
19695    cat <<'_LT_EOF' >> "$cfgfile"
19696
19697# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19698
19699# func_munge_path_list VARIABLE PATH
19700# -----------------------------------
19701# VARIABLE is name of variable containing _space_ separated list of
19702# directories to be munged by the contents of PATH, which is string
19703# having a format:
19704# "DIR[:DIR]:"
19705#       string "DIR[ DIR]" will be prepended to VARIABLE
19706# ":DIR[:DIR]"
19707#       string "DIR[ DIR]" will be appended to VARIABLE
19708# "DIRP[:DIRP]::[DIRA:]DIRA"
19709#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19710#       "DIRA[ DIRA]" will be appended to VARIABLE
19711# "DIR[:DIR]"
19712#       VARIABLE will be replaced by "DIR[ DIR]"
19713func_munge_path_list ()
19714{
19715    case x$2 in
19716    x)
19717        ;;
19718    *:)
19719        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19720        ;;
19721    x:*)
19722        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19723        ;;
19724    *::*)
19725        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19726        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19727        ;;
19728    *)
19729        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19730        ;;
19731    esac
19732}
19733
19734
19735# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19736func_cc_basename ()
19737{
19738    for cc_temp in $*""; do
19739      case $cc_temp in
19740        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19741        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19742        \-*) ;;
19743        *) break;;
19744      esac
19745    done
19746    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19747}
19748
19749
19750# ### END FUNCTIONS SHARED WITH CONFIGURE
19751
19752_LT_EOF
19753
19754  case $host_os in
19755  aix3*)
19756    cat <<\_LT_EOF >> "$cfgfile"
19757# AIX sometimes has problems with the GCC collect2 program.  For some
19758# reason, if we set the COLLECT_NAMES environment variable, the problems
19759# vanish in a puff of smoke.
19760if test set != "${COLLECT_NAMES+set}"; then
19761  COLLECT_NAMES=
19762  export COLLECT_NAMES
19763fi
19764_LT_EOF
19765    ;;
19766  esac
19767
19768
19769ltmain=$ac_aux_dir/ltmain.sh
19770
19771
19772  # We use sed instead of cat because bash on DJGPP gets confused if
19773  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19774  # text mode, it properly converts lines to CR/LF.  This bash problem
19775  # is reportedly fixed, but why not run on old versions too?
19776  sed '$q' "$ltmain" >> "$cfgfile" \
19777     || (rm -f "$cfgfile"; exit 1)
19778
19779   mv -f "$cfgfile" "$ofile" ||
19780    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19781  chmod +x "$ofile"
19782
19783
19784    cat <<_LT_EOF >> "$ofile"
19785
19786# ### BEGIN LIBTOOL TAG CONFIG: CXX
19787
19788# The linker used to build libraries.
19789LD=$lt_LD_CXX
19790
19791# How to create reloadable object files.
19792reload_flag=$lt_reload_flag_CXX
19793reload_cmds=$lt_reload_cmds_CXX
19794
19795# Commands used to build an old-style archive.
19796old_archive_cmds=$lt_old_archive_cmds_CXX
19797
19798# A language specific compiler.
19799CC=$lt_compiler_CXX
19800
19801# Is the compiler the GNU compiler?
19802with_gcc=$GCC_CXX
19803
19804# Compiler flag to turn off builtin functions.
19805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19806
19807# Additional compiler flags for building library objects.
19808pic_flag=$lt_lt_prog_compiler_pic_CXX
19809
19810# How to pass a linker flag through the compiler.
19811wl=$lt_lt_prog_compiler_wl_CXX
19812
19813# Compiler flag to prevent dynamic linking.
19814link_static_flag=$lt_lt_prog_compiler_static_CXX
19815
19816# Does compiler simultaneously support -c and -o options?
19817compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19818
19819# Whether or not to add -lc for building shared libraries.
19820build_libtool_need_lc=$archive_cmds_need_lc_CXX
19821
19822# Whether or not to disallow shared libs when runtime libs are static.
19823allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19824
19825# Compiler flag to allow reflexive dlopens.
19826export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19827
19828# Compiler flag to generate shared objects directly from archives.
19829whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19830
19831# Whether the compiler copes with passing no objects directly.
19832compiler_needs_object=$lt_compiler_needs_object_CXX
19833
19834# Create an old-style archive from a shared archive.
19835old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19836
19837# Create a temporary old-style archive to link instead of a shared archive.
19838old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19839
19840# Commands used to build a shared archive.
19841archive_cmds=$lt_archive_cmds_CXX
19842archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19843
19844# Commands used to build a loadable module if different from building
19845# a shared archive.
19846module_cmds=$lt_module_cmds_CXX
19847module_expsym_cmds=$lt_module_expsym_cmds_CXX
19848
19849# Whether we are building with GNU ld or not.
19850with_gnu_ld=$lt_with_gnu_ld_CXX
19851
19852# Flag that allows shared libraries with undefined symbols to be built.
19853allow_undefined_flag=$lt_allow_undefined_flag_CXX
19854
19855# Flag that enforces no undefined symbols.
19856no_undefined_flag=$lt_no_undefined_flag_CXX
19857
19858# Flag to hardcode \$libdir into a binary during linking.
19859# This must work even if \$libdir does not exist
19860hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19861
19862# Whether we need a single "-rpath" flag with a separated argument.
19863hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19864
19865# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19866# DIR into the resulting binary.
19867hardcode_direct=$hardcode_direct_CXX
19868
19869# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19870# DIR into the resulting binary and the resulting library dependency is
19871# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19872# library is relocated.
19873hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19874
19875# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19876# into the resulting binary.
19877hardcode_minus_L=$hardcode_minus_L_CXX
19878
19879# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19880# into the resulting binary.
19881hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19882
19883# Set to "yes" if building a shared library automatically hardcodes DIR
19884# into the library and all subsequent libraries and executables linked
19885# against it.
19886hardcode_automatic=$hardcode_automatic_CXX
19887
19888# Set to yes if linker adds runtime paths of dependent libraries
19889# to runtime path list.
19890inherit_rpath=$inherit_rpath_CXX
19891
19892# Whether libtool must link a program against all its dependency libraries.
19893link_all_deplibs=$link_all_deplibs_CXX
19894
19895# Set to "yes" if exported symbols are required.
19896always_export_symbols=$always_export_symbols_CXX
19897
19898# The commands to list exported symbols.
19899export_symbols_cmds=$lt_export_symbols_cmds_CXX
19900
19901# Symbols that should not be listed in the preloaded symbols.
19902exclude_expsyms=$lt_exclude_expsyms_CXX
19903
19904# Symbols that must always be exported.
19905include_expsyms=$lt_include_expsyms_CXX
19906
19907# Commands necessary for linking programs (against libraries) with templates.
19908prelink_cmds=$lt_prelink_cmds_CXX
19909
19910# Commands necessary for finishing linking programs.
19911postlink_cmds=$lt_postlink_cmds_CXX
19912
19913# Specify filename containing input files.
19914file_list_spec=$lt_file_list_spec_CXX
19915
19916# How to hardcode a shared library path into an executable.
19917hardcode_action=$hardcode_action_CXX
19918
19919# The directories searched by this compiler when creating a shared library.
19920compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19921
19922# Dependencies to place before and after the objects being linked to
19923# create a shared library.
19924predep_objects=$lt_predep_objects_CXX
19925postdep_objects=$lt_postdep_objects_CXX
19926predeps=$lt_predeps_CXX
19927postdeps=$lt_postdeps_CXX
19928
19929# The library search path used internally by the compiler when linking
19930# a shared library.
19931compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19932
19933# ### END LIBTOOL TAG CONFIG: CXX
19934_LT_EOF
19935
19936 ;;
19937
19938  esac
19939done # for ac_tag
19940
19941
19942as_fn_exit 0
19943_ACEOF
19944ac_clean_files=$ac_clean_files_save
19945
19946test $ac_write_fail = 0 ||
19947  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19948
19949
19950# configure is writing to config.log, and then calls config.status.
19951# config.status does its own redirection, appending to config.log.
19952# Unfortunately, on DOS this fails, as config.log is still kept open
19953# by configure, so config.status won't be able to write to it; its
19954# output is simply discarded.  So we exec the FD to /dev/null,
19955# effectively closing config.log, so it can be properly (re)opened and
19956# appended to by config.status.  When coming back to configure, we
19957# need to make the FD available again.
19958if test "$no_create" != yes; then
19959  ac_cs_success=:
19960  ac_config_status_args=
19961  test "$silent" = yes &&
19962    ac_config_status_args="$ac_config_status_args --quiet"
19963  exec 5>/dev/null
19964  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19965  exec 5>>config.log
19966  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19967  # would make configure fail if this is the last instruction.
19968  $ac_cs_success || as_fn_exit 1
19969fi
19970if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19971  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19972$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19973fi
19974
19975