xref: /netbsd-src/external/gpl3/binutils/dist/ld/configure (revision dd7241df2fae9da4ea2bd20a68f001fa86ecf909)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ld 2.42.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='ld'
589PACKAGE_TARNAME='ld'
590PACKAGE_VERSION='2.42'
591PACKAGE_STRING='ld 2.42'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="ldmain.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632gt_needs=
633ac_header_list=
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638TESTSFRAMELIB
639TESTCTFLIB
640TESTBFDLIB
641EMULATION_LIBPATH
642LIB_PATH
643EMUL_EXTRA_OFILES
644EMULATION_OFILES
645TDIRS
646EMUL
647elf_plt_unwind_list_options
648elf_shlib_list_options
649elf_list_options
650ZSTD_LIBS
651ZSTD_CFLAGS
652zlibinc
653zlibdir
654NATIVE_LIB_DIRS
655HDEFINES
656do_compare
657GENINSRC_NEVER_FALSE
658GENINSRC_NEVER_TRUE
659LEXLIB
660LEX_OUTPUT_ROOT
661LEX
662YFLAGS
663YACC
664CATOBJEXT
665GENCAT
666INSTOBJEXT
667DATADIRNAME
668CATALOGS
669INCINTL
670LIBINTL_DEP
671POSUB
672LTLIBINTL
673LIBINTL
674INTLLIBS
675LTLIBICONV
676LIBICONV
677INTL_MACOSX_LIBS
678MSGMERGE
679XGETTEXT
680GMSGFMT
681MSGFMT
682USE_NLS
683MKINSTALLDIRS
684WARN_WRITE_STRINGS
685NO_WERROR
686WARN_CFLAGS_FOR_BUILD
687WARN_CFLAGS
688JANSSON_LIBS
689JANSSON_CFLAGS
690enable_libctf
691ENABLE_LIBCTF_FALSE
692ENABLE_LIBCTF_TRUE
693enable_initfini_array
694installed_linker
695install_as_default
696TARGET_SYSTEM_ROOT_DEFINE
697TARGET_SYSTEM_ROOT
698use_sysroot
699ENABLE_BFD_64_BIT_FALSE
700ENABLE_BFD_64_BIT_TRUE
701LARGEFILE_CPPFLAGS
702CXXCPP
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
708RANLIB
709AR
710OBJDUMP
711LN_S
712NM
713ac_ct_DUMPBIN
714DUMPBIN
715LD
716FGREP
717SED
718LIBTOOL
719PKG_CONFIG_LIBDIR
720PKG_CONFIG_PATH
721PKG_CONFIG
722EGREP
723CPP
724GREP
725am__fastdepCXX_FALSE
726am__fastdepCXX_TRUE
727CXXDEPMODE
728ac_ct_CXX
729CXXFLAGS
730CXX
731am__fastdepCC_FALSE
732am__fastdepCC_TRUE
733CCDEPMODE
734am__nodep
735AMDEPBACKSLASH
736AMDEP_FALSE
737AMDEP_TRUE
738am__quote
739am__include
740DEPDIR
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748MAINT
749MAINTAINER_MODE_FALSE
750MAINTAINER_MODE_TRUE
751AM_BACKSLASH
752AM_DEFAULT_VERBOSITY
753AM_DEFAULT_V
754AM_V
755am__untar
756am__tar
757AMTAR
758am__leading_dot
759SET_MAKE
760AWK
761mkdir_p
762MKDIR_P
763INSTALL_STRIP_PROGRAM
764STRIP
765install_sh
766MAKEINFO
767AUTOHEADER
768AUTOMAKE
769AUTOCONF
770ACLOCAL
771VERSION
772PACKAGE
773CYGPATH_W
774am__isrc
775INSTALL_DATA
776INSTALL_SCRIPT
777INSTALL_PROGRAM
778target_os
779target_vendor
780target_cpu
781target
782host_os
783host_vendor
784host_cpu
785host
786build_os
787build_vendor
788build_cpu
789build
790target_alias
791host_alias
792build_alias
793LIBS
794ECHO_T
795ECHO_N
796ECHO_C
797DEFS
798mandir
799localedir
800libdir
801psdir
802pdfdir
803dvidir
804htmldir
805infodir
806docdir
807oldincludedir
808includedir
809localstatedir
810sharedstatedir
811sysconfdir
812datadir
813datarootdir
814libexecdir
815sbindir
816bindir
817program_transform_name
818prefix
819exec_prefix
820PACKAGE_URL
821PACKAGE_BUGREPORT
822PACKAGE_STRING
823PACKAGE_VERSION
824PACKAGE_TARNAME
825PACKAGE_NAME
826PATH_SEPARATOR
827SHELL'
828ac_subst_files=''
829ac_user_opts='
830enable_option_checking
831enable_silent_rules
832enable_maintainer_mode
833enable_dependency_tracking
834enable_shared
835enable_static
836with_pic
837enable_fast_install
838with_gnu_ld
839enable_libtool_lock
840enable_plugins
841enable_largefile
842enable_checking
843with_lib_path
844enable_targets
845enable_64_bit_bfd
846with_sysroot
847enable_gold
848enable_got
849enable_compressed_debug_sections
850enable_default_compressed_debug_sections_algorithm
851enable_new_dtags
852enable_relro
853enable_textrel_check
854enable_separate_code
855enable_mark_plt
856enable_warn_execstack
857enable_error_execstack
858enable_warn_rwx_segments
859enable_error_rwx_segments
860enable_default_execstack
861enable_error_handling_script
862enable_default_hash_style
863enable_initfini_array
864enable_libctf
865enable_jansson
866enable_werror
867enable_build_warnings
868enable_nls
869enable_rpath
870with_libiconv_prefix
871with_libiconv_type
872with_libintl_prefix
873with_libintl_type
874with_system_zlib
875with_zstd
876'
877      ac_precious_vars='build_alias
878host_alias
879target_alias
880CC
881CFLAGS
882LDFLAGS
883LIBS
884CPPFLAGS
885CXX
886CXXFLAGS
887CCC
888CPP
889PKG_CONFIG
890PKG_CONFIG_PATH
891PKG_CONFIG_LIBDIR
892CXXCPP
893JANSSON_CFLAGS
894JANSSON_LIBS
895YACC
896YFLAGS
897ZSTD_CFLAGS
898ZSTD_LIBS'
899
900
901# Initialize some variables set by options.
902ac_init_help=
903ac_init_version=false
904ac_unrecognized_opts=
905ac_unrecognized_sep=
906# The variables have the same names as the options, with
907# dashes changed to underlines.
908cache_file=/dev/null
909exec_prefix=NONE
910no_create=
911no_recursion=
912prefix=NONE
913program_prefix=NONE
914program_suffix=NONE
915program_transform_name=s,x,x,
916silent=
917site=
918srcdir=
919verbose=
920x_includes=NONE
921x_libraries=NONE
922
923# Installation directory options.
924# These are left unexpanded so users can "make install exec_prefix=/foo"
925# and all the variables that are supposed to be based on exec_prefix
926# by default will actually change.
927# Use braces instead of parens because sh, perl, etc. also accept them.
928# (The list follows the same order as the GNU Coding Standards.)
929bindir='${exec_prefix}/bin'
930sbindir='${exec_prefix}/sbin'
931libexecdir='${exec_prefix}/libexec'
932datarootdir='${prefix}/share'
933datadir='${datarootdir}'
934sysconfdir='${prefix}/etc'
935sharedstatedir='${prefix}/com'
936localstatedir='${prefix}/var'
937includedir='${prefix}/include'
938oldincludedir='/usr/include'
939docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940infodir='${datarootdir}/info'
941htmldir='${docdir}'
942dvidir='${docdir}'
943pdfdir='${docdir}'
944psdir='${docdir}'
945libdir='${exec_prefix}/lib'
946localedir='${datarootdir}/locale'
947mandir='${datarootdir}/man'
948
949ac_prev=
950ac_dashdash=
951for ac_option
952do
953  # If the previous option needs an argument, assign it.
954  if test -n "$ac_prev"; then
955    eval $ac_prev=\$ac_option
956    ac_prev=
957    continue
958  fi
959
960  case $ac_option in
961  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962  *=)   ac_optarg= ;;
963  *)    ac_optarg=yes ;;
964  esac
965
966  # Accept the important Cygnus configure options, so we can diagnose typos.
967
968  case $ac_dashdash$ac_option in
969  --)
970    ac_dashdash=yes ;;
971
972  -bindir | --bindir | --bindi | --bind | --bin | --bi)
973    ac_prev=bindir ;;
974  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975    bindir=$ac_optarg ;;
976
977  -build | --build | --buil | --bui | --bu)
978    ac_prev=build_alias ;;
979  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980    build_alias=$ac_optarg ;;
981
982  -cache-file | --cache-file | --cache-fil | --cache-fi \
983  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984    ac_prev=cache_file ;;
985  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987    cache_file=$ac_optarg ;;
988
989  --config-cache | -C)
990    cache_file=config.cache ;;
991
992  -datadir | --datadir | --datadi | --datad)
993    ac_prev=datadir ;;
994  -datadir=* | --datadir=* | --datadi=* | --datad=*)
995    datadir=$ac_optarg ;;
996
997  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998  | --dataroo | --dataro | --datar)
999    ac_prev=datarootdir ;;
1000  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002    datarootdir=$ac_optarg ;;
1003
1004  -disable-* | --disable-*)
1005    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006    # Reject names that are not valid shell variable names.
1007    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008      as_fn_error $? "invalid feature name: $ac_useropt"
1009    ac_useropt_orig=$ac_useropt
1010    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011    case $ac_user_opts in
1012      *"
1013"enable_$ac_useropt"
1014"*) ;;
1015      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016	 ac_unrecognized_sep=', ';;
1017    esac
1018    eval enable_$ac_useropt=no ;;
1019
1020  -docdir | --docdir | --docdi | --doc | --do)
1021    ac_prev=docdir ;;
1022  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023    docdir=$ac_optarg ;;
1024
1025  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026    ac_prev=dvidir ;;
1027  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028    dvidir=$ac_optarg ;;
1029
1030  -enable-* | --enable-*)
1031    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032    # Reject names that are not valid shell variable names.
1033    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034      as_fn_error $? "invalid feature name: $ac_useropt"
1035    ac_useropt_orig=$ac_useropt
1036    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037    case $ac_user_opts in
1038      *"
1039"enable_$ac_useropt"
1040"*) ;;
1041      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042	 ac_unrecognized_sep=', ';;
1043    esac
1044    eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048  | --exec | --exe | --ex)
1049    ac_prev=exec_prefix ;;
1050  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052  | --exec=* | --exe=* | --ex=*)
1053    exec_prefix=$ac_optarg ;;
1054
1055  -gas | --gas | --ga | --g)
1056    # Obsolete; use --with-gas.
1057    with_gas=yes ;;
1058
1059  -help | --help | --hel | --he | -h)
1060    ac_init_help=long ;;
1061  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062    ac_init_help=recursive ;;
1063  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064    ac_init_help=short ;;
1065
1066  -host | --host | --hos | --ho)
1067    ac_prev=host_alias ;;
1068  -host=* | --host=* | --hos=* | --ho=*)
1069    host_alias=$ac_optarg ;;
1070
1071  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072    ac_prev=htmldir ;;
1073  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074  | --ht=*)
1075    htmldir=$ac_optarg ;;
1076
1077  -includedir | --includedir | --includedi | --included | --include \
1078  | --includ | --inclu | --incl | --inc)
1079    ac_prev=includedir ;;
1080  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081  | --includ=* | --inclu=* | --incl=* | --inc=*)
1082    includedir=$ac_optarg ;;
1083
1084  -infodir | --infodir | --infodi | --infod | --info | --inf)
1085    ac_prev=infodir ;;
1086  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087    infodir=$ac_optarg ;;
1088
1089  -libdir | --libdir | --libdi | --libd)
1090    ac_prev=libdir ;;
1091  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092    libdir=$ac_optarg ;;
1093
1094  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095  | --libexe | --libex | --libe)
1096    ac_prev=libexecdir ;;
1097  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098  | --libexe=* | --libex=* | --libe=*)
1099    libexecdir=$ac_optarg ;;
1100
1101  -localedir | --localedir | --localedi | --localed | --locale)
1102    ac_prev=localedir ;;
1103  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104    localedir=$ac_optarg ;;
1105
1106  -localstatedir | --localstatedir | --localstatedi | --localstated \
1107  | --localstate | --localstat | --localsta | --localst | --locals)
1108    ac_prev=localstatedir ;;
1109  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111    localstatedir=$ac_optarg ;;
1112
1113  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114    ac_prev=mandir ;;
1115  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116    mandir=$ac_optarg ;;
1117
1118  -nfp | --nfp | --nf)
1119    # Obsolete; use --without-fp.
1120    with_fp=no ;;
1121
1122  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123  | --no-cr | --no-c | -n)
1124    no_create=yes ;;
1125
1126  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128    no_recursion=yes ;;
1129
1130  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132  | --oldin | --oldi | --old | --ol | --o)
1133    ac_prev=oldincludedir ;;
1134  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137    oldincludedir=$ac_optarg ;;
1138
1139  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140    ac_prev=prefix ;;
1141  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142    prefix=$ac_optarg ;;
1143
1144  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145  | --program-pre | --program-pr | --program-p)
1146    ac_prev=program_prefix ;;
1147  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149    program_prefix=$ac_optarg ;;
1150
1151  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152  | --program-suf | --program-su | --program-s)
1153    ac_prev=program_suffix ;;
1154  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156    program_suffix=$ac_optarg ;;
1157
1158  -program-transform-name | --program-transform-name \
1159  | --program-transform-nam | --program-transform-na \
1160  | --program-transform-n | --program-transform- \
1161  | --program-transform | --program-transfor \
1162  | --program-transfo | --program-transf \
1163  | --program-trans | --program-tran \
1164  | --progr-tra | --program-tr | --program-t)
1165    ac_prev=program_transform_name ;;
1166  -program-transform-name=* | --program-transform-name=* \
1167  | --program-transform-nam=* | --program-transform-na=* \
1168  | --program-transform-n=* | --program-transform-=* \
1169  | --program-transform=* | --program-transfor=* \
1170  | --program-transfo=* | --program-transf=* \
1171  | --program-trans=* | --program-tran=* \
1172  | --progr-tra=* | --program-tr=* | --program-t=*)
1173    program_transform_name=$ac_optarg ;;
1174
1175  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176    ac_prev=pdfdir ;;
1177  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178    pdfdir=$ac_optarg ;;
1179
1180  -psdir | --psdir | --psdi | --psd | --ps)
1181    ac_prev=psdir ;;
1182  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183    psdir=$ac_optarg ;;
1184
1185  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186  | -silent | --silent | --silen | --sile | --sil)
1187    silent=yes ;;
1188
1189  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190    ac_prev=sbindir ;;
1191  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192  | --sbi=* | --sb=*)
1193    sbindir=$ac_optarg ;;
1194
1195  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197  | --sharedst | --shareds | --shared | --share | --shar \
1198  | --sha | --sh)
1199    ac_prev=sharedstatedir ;;
1200  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203  | --sha=* | --sh=*)
1204    sharedstatedir=$ac_optarg ;;
1205
1206  -site | --site | --sit)
1207    ac_prev=site ;;
1208  -site=* | --site=* | --sit=*)
1209    site=$ac_optarg ;;
1210
1211  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212    ac_prev=srcdir ;;
1213  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214    srcdir=$ac_optarg ;;
1215
1216  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217  | --syscon | --sysco | --sysc | --sys | --sy)
1218    ac_prev=sysconfdir ;;
1219  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221    sysconfdir=$ac_optarg ;;
1222
1223  -target | --target | --targe | --targ | --tar | --ta | --t)
1224    ac_prev=target_alias ;;
1225  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226    target_alias=$ac_optarg ;;
1227
1228  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229    verbose=yes ;;
1230
1231  -version | --version | --versio | --versi | --vers | -V)
1232    ac_init_version=: ;;
1233
1234  -with-* | --with-*)
1235    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236    # Reject names that are not valid shell variable names.
1237    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238      as_fn_error $? "invalid package name: $ac_useropt"
1239    ac_useropt_orig=$ac_useropt
1240    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241    case $ac_user_opts in
1242      *"
1243"with_$ac_useropt"
1244"*) ;;
1245      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246	 ac_unrecognized_sep=', ';;
1247    esac
1248    eval with_$ac_useropt=\$ac_optarg ;;
1249
1250  -without-* | --without-*)
1251    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252    # Reject names that are not valid shell variable names.
1253    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254      as_fn_error $? "invalid package name: $ac_useropt"
1255    ac_useropt_orig=$ac_useropt
1256    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257    case $ac_user_opts in
1258      *"
1259"with_$ac_useropt"
1260"*) ;;
1261      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262	 ac_unrecognized_sep=', ';;
1263    esac
1264    eval with_$ac_useropt=no ;;
1265
1266  --x)
1267    # Obsolete; use --with-x.
1268    with_x=yes ;;
1269
1270  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271  | --x-incl | --x-inc | --x-in | --x-i)
1272    ac_prev=x_includes ;;
1273  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275    x_includes=$ac_optarg ;;
1276
1277  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279    ac_prev=x_libraries ;;
1280  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282    x_libraries=$ac_optarg ;;
1283
1284  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285Try \`$0 --help' for more information"
1286    ;;
1287
1288  *=*)
1289    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290    # Reject names that are not valid shell variable names.
1291    case $ac_envvar in #(
1292      '' | [0-9]* | *[!_$as_cr_alnum]* )
1293      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294    esac
1295    eval $ac_envvar=\$ac_optarg
1296    export $ac_envvar ;;
1297
1298  *)
1299    # FIXME: should be removed in autoconf 3.0.
1300    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304    ;;
1305
1306  esac
1307done
1308
1309if test -n "$ac_prev"; then
1310  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311  as_fn_error $? "missing argument to $ac_option"
1312fi
1313
1314if test -n "$ac_unrecognized_opts"; then
1315  case $enable_option_checking in
1316    no) ;;
1317    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319  esac
1320fi
1321
1322# Check all directory arguments for consistency.
1323for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324		datadir sysconfdir sharedstatedir localstatedir includedir \
1325		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326		libdir localedir mandir
1327do
1328  eval ac_val=\$$ac_var
1329  # Remove trailing slashes.
1330  case $ac_val in
1331    */ )
1332      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333      eval $ac_var=\$ac_val;;
1334  esac
1335  # Be sure to have absolute directory names.
1336  case $ac_val in
1337    [\\/$]* | ?:[\\/]* )  continue;;
1338    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339  esac
1340  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341done
1342
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352  if test "x$build_alias" = x; then
1353    cross_compiling=maybe
1354  elif test "x$build_alias" != "x$host_alias"; then
1355    cross_compiling=yes
1356  fi
1357fi
1358
1359ac_tool_prefix=
1360test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362test "$silent" = yes && exec 6>/dev/null
1363
1364
1365ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366ac_ls_di=`ls -di .` &&
1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368  as_fn_error $? "working directory cannot be determined"
1369test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370  as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373# Find the source files, if location was not specified.
1374if test -z "$srcdir"; then
1375  ac_srcdir_defaulted=yes
1376  # Try the directory containing this script, then the parent directory.
1377  ac_confdir=`$as_dirname -- "$as_myself" ||
1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379	 X"$as_myself" : 'X\(//\)[^/]' \| \
1380	 X"$as_myself" : 'X\(//\)$' \| \
1381	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382$as_echo X"$as_myself" |
1383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384	    s//\1/
1385	    q
1386	  }
1387	  /^X\(\/\/\)[^/].*/{
1388	    s//\1/
1389	    q
1390	  }
1391	  /^X\(\/\/\)$/{
1392	    s//\1/
1393	    q
1394	  }
1395	  /^X\(\/\).*/{
1396	    s//\1/
1397	    q
1398	  }
1399	  s/.*/./; q'`
1400  srcdir=$ac_confdir
1401  if test ! -r "$srcdir/$ac_unique_file"; then
1402    srcdir=..
1403  fi
1404else
1405  ac_srcdir_defaulted=no
1406fi
1407if test ! -r "$srcdir/$ac_unique_file"; then
1408  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410fi
1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412ac_abs_confdir=`(
1413	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414	pwd)`
1415# When building in place, set srcdir=.
1416if test "$ac_abs_confdir" = "$ac_pwd"; then
1417  srcdir=.
1418fi
1419# Remove unnecessary trailing slashes from srcdir.
1420# Double slashes in file names in object file debugging info
1421# mess up M-x gdb in Emacs.
1422case $srcdir in
1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424esac
1425for ac_var in $ac_precious_vars; do
1426  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427  eval ac_env_${ac_var}_value=\$${ac_var}
1428  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430done
1431
1432#
1433# Report the --help message.
1434#
1435if test "$ac_init_help" = "long"; then
1436  # Omit some internal or obsolete options to make the list less imposing.
1437  # This message is too long to be a string in the A/UX 3.1 sh.
1438  cat <<_ACEOF
1439\`configure' configures ld 2.42 to adapt to many kinds of systems.
1440
1441Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444VAR=VALUE.  See below for descriptions of some of the useful variables.
1445
1446Defaults for the options are specified in brackets.
1447
1448Configuration:
1449  -h, --help              display this help and exit
1450      --help=short        display options specific to this package
1451      --help=recursive    display the short help of all the included packages
1452  -V, --version           display version information and exit
1453  -q, --quiet, --silent   do not print \`checking ...' messages
1454      --cache-file=FILE   cache test results in FILE [disabled]
1455  -C, --config-cache      alias for \`--cache-file=config.cache'
1456  -n, --no-create         do not create output files
1457      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1458
1459Installation directories:
1460  --prefix=PREFIX         install architecture-independent files in PREFIX
1461                          [$ac_default_prefix]
1462  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1463                          [PREFIX]
1464
1465By default, \`make install' will install all the files in
1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1467an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468for instance \`--prefix=\$HOME'.
1469
1470For better control, use the options below.
1471
1472Fine tuning of the installation directories:
1473  --bindir=DIR            user executables [EPREFIX/bin]
1474  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1475  --libexecdir=DIR        program executables [EPREFIX/libexec]
1476  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1477  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1478  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1479  --libdir=DIR            object code libraries [EPREFIX/lib]
1480  --includedir=DIR        C header files [PREFIX/include]
1481  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1482  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1483  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1484  --infodir=DIR           info documentation [DATAROOTDIR/info]
1485  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1486  --mandir=DIR            man documentation [DATAROOTDIR/man]
1487  --docdir=DIR            documentation root [DATAROOTDIR/doc/ld]
1488  --htmldir=DIR           html documentation [DOCDIR]
1489  --dvidir=DIR            dvi documentation [DOCDIR]
1490  --pdfdir=DIR            pdf documentation [DOCDIR]
1491  --psdir=DIR             ps documentation [DOCDIR]
1492_ACEOF
1493
1494  cat <<\_ACEOF
1495
1496Program names:
1497  --program-prefix=PREFIX            prepend PREFIX to installed program names
1498  --program-suffix=SUFFIX            append SUFFIX to installed program names
1499  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1500
1501System types:
1502  --build=BUILD     configure for building on BUILD [guessed]
1503  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1504  --target=TARGET   configure for building compilers for TARGET [HOST]
1505_ACEOF
1506fi
1507
1508if test -n "$ac_init_help"; then
1509  case $ac_init_help in
1510     short | recursive ) echo "Configuration of ld 2.42:";;
1511   esac
1512  cat <<\_ACEOF
1513
1514Optional Features:
1515  --disable-option-checking  ignore unrecognized --enable/--with options
1516  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518  --enable-silent-rules   less verbose build output (undo: "make V=1")
1519  --disable-silent-rules  verbose build output (undo: "make V=0")
1520  --enable-maintainer-mode
1521                          enable make rules and dependencies not useful (and
1522                          sometimes confusing) to the casual installer
1523  --enable-dependency-tracking
1524                          do not reject slow dependency extractors
1525  --disable-dependency-tracking
1526                          speeds up one-time build
1527  --enable-shared[=PKGS]  build shared libraries [default=yes]
1528  --enable-static[=PKGS]  build static libraries [default=yes]
1529  --enable-fast-install[=PKGS]
1530                          optimize for fast installation [default=yes]
1531  --disable-libtool-lock  avoid locking (might break parallel builds)
1532  --enable-plugins        Enable support for plugins
1533  --disable-largefile     omit support for large files
1534  --enable-checking       enable run-time checks
1535  --enable-targets        alternative target configurations
1536  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1537  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1538  --enable-got=<type>     GOT handling scheme (target, single, negative,
1539                          multigot)
1540  --enable-compressed-debug-sections={all,ld,none}
1541                          compress debug sections by default]
1542  --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1543                          Default compression algorithm for
1544                          --enable-compressed-debug-sections.
1545  --enable-new-dtags      set DT_RUNPATH instead of DT_RPATH by default]
1546  --enable-relro          enable -z relro in ELF linker by default
1547  --enable-textrel-check=[yes|no|warning|error]
1548                          enable DT_TEXTREL check in ELF linker
1549  --enable-separate-code  enable -z separate-code in ELF linker by default
1550  --enable-mark-plt       enable -z mark-plt in ELF x86-64 linker by default
1551  --enable-warn-execstack enable warnings when creating an executable stack
1552  --enable-error-execstack
1553                          turn executable stack warnings into errors
1554  --enable-warn-rwx-segments
1555                          enable warnings when creating segments with RWX
1556                          permissions
1557  --enable-error-rwx-segments
1558                          turn executable segment warnings into errors
1559  --enable-default-execstack
1560                          create an executable stack if an input file is
1561                          missing a .note.GNU-stack section
1562  --enable-error-handling-script
1563                          enable/disable support for the
1564                          --error-handling-script option
1565  --enable-default-hash-style={sysv,gnu,both}
1566                          use this default hash style
1567  --disable-initfini-array do not use .init_array/.fini_array sections
1568  --enable-libctf         Handle .ctf type-info sections [default=yes]
1569  --enable-jansson        enable jansson [default=no]
1570  --enable-werror         treat compile warnings as errors
1571  --enable-build-warnings enable build-time compiler warnings
1572  --disable-nls           do not use Native Language Support
1573  --disable-rpath         do not hardcode runtime library paths
1574
1575Optional Packages:
1576  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1577  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1578  --with-pic              try to use only PIC/non-PIC objects [default=use
1579                          both]
1580  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1581  --with-lib-path=dir1:dir2...  set default LIB_PATH
1582  --with-sysroot=DIR Search for usr/lib et al within DIR.
1583  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1584  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1585  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1586  --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1587  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1588  --without-libintl-prefix     don't search for libintl in includedir and libdir
1589  --with-libintl-type=TYPE     type of library to search for (auto/static/shared)
1590  --with-system-zlib      use installed libz
1591  --with-zstd             support zstd compressed debug sections
1592                          (default=auto)
1593
1594Some influential environment variables:
1595  CC          C compiler command
1596  CFLAGS      C compiler flags
1597  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1598              nonstandard directory <lib dir>
1599  LIBS        libraries to pass to the linker, e.g. -l<library>
1600  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601              you have headers in a nonstandard directory <include dir>
1602  CXX         C++ compiler command
1603  CXXFLAGS    C++ compiler flags
1604  CPP         C preprocessor
1605  PKG_CONFIG  path to pkg-config utility
1606  PKG_CONFIG_PATH
1607              directories to add to pkg-config's search path
1608  PKG_CONFIG_LIBDIR
1609              path overriding pkg-config's built-in search path
1610  CXXCPP      C++ preprocessor
1611  JANSSON_CFLAGS
1612              C compiler flags for JANSSON, overriding pkg-config
1613  JANSSON_LIBS
1614              linker flags for JANSSON, overriding pkg-config
1615  YACC        The `Yet Another Compiler Compiler' implementation to use.
1616              Defaults to the first program found out of: `bison -y', `byacc',
1617              `yacc'.
1618  YFLAGS      The list of arguments that will be passed by default to $YACC.
1619              This script will default YFLAGS to the empty string to avoid a
1620              default value of `-d' given by some make applications.
1621  ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1622  ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
1623
1624Use these variables to override the choices made by `configure' or to help
1625it to find libraries and programs with nonstandard names/locations.
1626
1627Report bugs to the package provider.
1628_ACEOF
1629ac_status=$?
1630fi
1631
1632if test "$ac_init_help" = "recursive"; then
1633  # If there are subdirs, report their specific --help.
1634  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635    test -d "$ac_dir" ||
1636      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637      continue
1638    ac_builddir=.
1639
1640case "$ac_dir" in
1641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642*)
1643  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1644  # A ".." for each directory in $ac_dir_suffix.
1645  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1646  case $ac_top_builddir_sub in
1647  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649  esac ;;
1650esac
1651ac_abs_top_builddir=$ac_pwd
1652ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653# for backward compatibility:
1654ac_top_builddir=$ac_top_build_prefix
1655
1656case $srcdir in
1657  .)  # We are building in place.
1658    ac_srcdir=.
1659    ac_top_srcdir=$ac_top_builddir_sub
1660    ac_abs_top_srcdir=$ac_pwd ;;
1661  [\\/]* | ?:[\\/]* )  # Absolute name.
1662    ac_srcdir=$srcdir$ac_dir_suffix;
1663    ac_top_srcdir=$srcdir
1664    ac_abs_top_srcdir=$srcdir ;;
1665  *) # Relative name.
1666    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667    ac_top_srcdir=$ac_top_build_prefix$srcdir
1668    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669esac
1670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672    cd "$ac_dir" || { ac_status=$?; continue; }
1673    # Check for guested configure.
1674    if test -f "$ac_srcdir/configure.gnu"; then
1675      echo &&
1676      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677    elif test -f "$ac_srcdir/configure"; then
1678      echo &&
1679      $SHELL "$ac_srcdir/configure" --help=recursive
1680    else
1681      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682    fi || ac_status=$?
1683    cd "$ac_pwd" || { ac_status=$?; break; }
1684  done
1685fi
1686
1687test -n "$ac_init_help" && exit $ac_status
1688if $ac_init_version; then
1689  cat <<\_ACEOF
1690ld configure 2.42
1691generated by GNU Autoconf 2.69
1692
1693Copyright (C) 2012 Free Software Foundation, Inc.
1694This configure script is free software; the Free Software Foundation
1695gives unlimited permission to copy, distribute and modify it.
1696_ACEOF
1697  exit
1698fi
1699
1700## ------------------------ ##
1701## Autoconf initialization. ##
1702## ------------------------ ##
1703
1704# ac_fn_c_try_compile LINENO
1705# --------------------------
1706# Try to compile conftest.$ac_ext, and return whether this succeeded.
1707ac_fn_c_try_compile ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  rm -f conftest.$ac_objext
1711  if { { ac_try="$ac_compile"
1712case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_compile") 2>conftest.err
1719  ac_status=$?
1720  if test -s conftest.err; then
1721    grep -v '^ *+' conftest.err >conftest.er1
1722    cat conftest.er1 >&5
1723    mv -f conftest.er1 conftest.err
1724  fi
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; } && {
1727	 test -z "$ac_c_werror_flag" ||
1728	 test ! -s conftest.err
1729       } && test -s conftest.$ac_objext; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735	ac_retval=1
1736fi
1737  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738  as_fn_set_status $ac_retval
1739
1740} # ac_fn_c_try_compile
1741
1742# ac_fn_cxx_try_compile LINENO
1743# ----------------------------
1744# Try to compile conftest.$ac_ext, and return whether this succeeded.
1745ac_fn_cxx_try_compile ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  rm -f conftest.$ac_objext
1749  if { { ac_try="$ac_compile"
1750case "(($ac_try" in
1751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752  *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756  (eval "$ac_compile") 2>conftest.err
1757  ac_status=$?
1758  if test -s conftest.err; then
1759    grep -v '^ *+' conftest.err >conftest.er1
1760    cat conftest.er1 >&5
1761    mv -f conftest.er1 conftest.err
1762  fi
1763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764  test $ac_status = 0; } && {
1765	 test -z "$ac_cxx_werror_flag" ||
1766	 test ! -s conftest.err
1767       } && test -s conftest.$ac_objext; then :
1768  ac_retval=0
1769else
1770  $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773	ac_retval=1
1774fi
1775  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776  as_fn_set_status $ac_retval
1777
1778} # ac_fn_cxx_try_compile
1779
1780# ac_fn_c_try_cpp LINENO
1781# ----------------------
1782# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_cpp ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  if { { ac_try="$ac_cpp conftest.$ac_ext"
1787case "(($ac_try" in
1788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789  *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794  ac_status=$?
1795  if test -s conftest.err; then
1796    grep -v '^ *+' conftest.err >conftest.er1
1797    cat conftest.er1 >&5
1798    mv -f conftest.er1 conftest.err
1799  fi
1800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801  test $ac_status = 0; } > conftest.i && {
1802	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803	 test ! -s conftest.err
1804       }; then :
1805  ac_retval=0
1806else
1807  $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810    ac_retval=1
1811fi
1812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813  as_fn_set_status $ac_retval
1814
1815} # ac_fn_c_try_cpp
1816
1817# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818# -------------------------------------------------------
1819# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820# the include files in INCLUDES and setting the cache variable VAR
1821# accordingly.
1822ac_fn_c_check_header_mongrel ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  if eval \${$3+:} false; then :
1826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if eval \${$3+:} false; then :
1829  $as_echo_n "(cached) " >&6
1830fi
1831eval ac_res=\$$3
1832	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834else
1835  # Is the header compilable?
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837$as_echo_n "checking $2 usability... " >&6; }
1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h.  */
1840$4
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"; then :
1844  ac_header_compiler=yes
1845else
1846  ac_header_compiler=no
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850$as_echo "$ac_header_compiler" >&6; }
1851
1852# Is the header present?
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854$as_echo_n "checking $2 presence... " >&6; }
1855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857#include <$2>
1858_ACEOF
1859if ac_fn_c_try_cpp "$LINENO"; then :
1860  ac_header_preproc=yes
1861else
1862  ac_header_preproc=no
1863fi
1864rm -f conftest.err conftest.i conftest.$ac_ext
1865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866$as_echo "$ac_header_preproc" >&6; }
1867
1868# So?  What about this header?
1869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870  yes:no: )
1871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875    ;;
1876  no:yes:* )
1877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1880$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1881    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1884$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1885    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887    ;;
1888esac
1889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890$as_echo_n "checking for $2... " >&6; }
1891if eval \${$3+:} false; then :
1892  $as_echo_n "(cached) " >&6
1893else
1894  eval "$3=\$ac_header_compiler"
1895fi
1896eval ac_res=\$$3
1897	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898$as_echo "$ac_res" >&6; }
1899fi
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_header_mongrel
1903
1904# ac_fn_c_try_run LINENO
1905# ----------------------
1906# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1907# that executables *can* be run.
1908ac_fn_c_try_run ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  if { { ac_try="$ac_link"
1912case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918  (eval "$ac_link") 2>&5
1919  ac_status=$?
1920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1922  { { case "(($ac_try" in
1923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924  *) ac_try_echo=$ac_try;;
1925esac
1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927$as_echo "$ac_try_echo"; } >&5
1928  (eval "$ac_try") 2>&5
1929  ac_status=$?
1930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931  test $ac_status = 0; }; }; then :
1932  ac_retval=0
1933else
1934  $as_echo "$as_me: program exited with status $ac_status" >&5
1935       $as_echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938       ac_retval=$ac_status
1939fi
1940  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942  as_fn_set_status $ac_retval
1943
1944} # ac_fn_c_try_run
1945
1946# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1947# -------------------------------------------------------
1948# Tests whether HEADER exists and can be compiled using the include files in
1949# INCLUDES, setting the cache variable VAR accordingly.
1950ac_fn_c_check_header_compile ()
1951{
1952  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954$as_echo_n "checking for $2... " >&6; }
1955if eval \${$3+:} false; then :
1956  $as_echo_n "(cached) " >&6
1957else
1958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h.  */
1960$4
1961#include <$2>
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964  eval "$3=yes"
1965else
1966  eval "$3=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975} # ac_fn_c_check_header_compile
1976
1977# ac_fn_c_try_link LINENO
1978# -----------------------
1979# Try to link conftest.$ac_ext, and return whether this succeeded.
1980ac_fn_c_try_link ()
1981{
1982  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983  rm -f conftest.$ac_objext conftest$ac_exeext
1984  if { { ac_try="$ac_link"
1985case "(($ac_try" in
1986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987  *) ac_try_echo=$ac_try;;
1988esac
1989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990$as_echo "$ac_try_echo"; } >&5
1991  (eval "$ac_link") 2>conftest.err
1992  ac_status=$?
1993  if test -s conftest.err; then
1994    grep -v '^ *+' conftest.err >conftest.er1
1995    cat conftest.er1 >&5
1996    mv -f conftest.er1 conftest.err
1997  fi
1998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999  test $ac_status = 0; } && {
2000	 test -z "$ac_c_werror_flag" ||
2001	 test ! -s conftest.err
2002       } && test -s conftest$ac_exeext && {
2003	 test "$cross_compiling" = yes ||
2004	 test -x conftest$ac_exeext
2005       }; then :
2006  ac_retval=0
2007else
2008  $as_echo "$as_me: failed program was:" >&5
2009sed 's/^/| /' conftest.$ac_ext >&5
2010
2011	ac_retval=1
2012fi
2013  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015  # interfere with the next link command; also delete a directory that is
2016  # left behind by Apple's compiler.  We do this before executing the actions.
2017  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019  as_fn_set_status $ac_retval
2020
2021} # ac_fn_c_try_link
2022
2023# ac_fn_c_check_func LINENO FUNC VAR
2024# ----------------------------------
2025# Tests whether FUNC exists, setting the cache variable VAR accordingly
2026ac_fn_c_check_func ()
2027{
2028  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030$as_echo_n "checking for $2... " >&6; }
2031if eval \${$3+:} false; then :
2032  $as_echo_n "(cached) " >&6
2033else
2034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2037   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2038#define $2 innocuous_$2
2039
2040/* System header to define __stub macros and hopefully few prototypes,
2041    which can conflict with char $2 (); below.
2042    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2043    <limits.h> exists even on freestanding compilers.  */
2044
2045#ifdef __STDC__
2046# include <limits.h>
2047#else
2048# include <assert.h>
2049#endif
2050
2051#undef $2
2052
2053/* Override any GCC internal prototype to avoid an error.
2054   Use char because int might match the return type of a GCC
2055   builtin and then its argument prototype would still apply.  */
2056#ifdef __cplusplus
2057extern "C"
2058#endif
2059char $2 ();
2060/* The GNU C library defines this for functions which it implements
2061    to always fail with ENOSYS.  Some functions are actually named
2062    something starting with __ and the normal name is an alias.  */
2063#if defined __stub_$2 || defined __stub___$2
2064choke me
2065#endif
2066
2067int
2068main ()
2069{
2070return $2 ();
2071  ;
2072  return 0;
2073}
2074_ACEOF
2075if ac_fn_c_try_link "$LINENO"; then :
2076  eval "$3=yes"
2077else
2078  eval "$3=no"
2079fi
2080rm -f core conftest.err conftest.$ac_objext \
2081    conftest$ac_exeext conftest.$ac_ext
2082fi
2083eval ac_res=\$$3
2084	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085$as_echo "$ac_res" >&6; }
2086  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087
2088} # ac_fn_c_check_func
2089
2090# ac_fn_cxx_try_cpp LINENO
2091# ------------------------
2092# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2093ac_fn_cxx_try_cpp ()
2094{
2095  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096  if { { ac_try="$ac_cpp conftest.$ac_ext"
2097case "(($ac_try" in
2098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099  *) ac_try_echo=$ac_try;;
2100esac
2101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102$as_echo "$ac_try_echo"; } >&5
2103  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2104  ac_status=$?
2105  if test -s conftest.err; then
2106    grep -v '^ *+' conftest.err >conftest.er1
2107    cat conftest.er1 >&5
2108    mv -f conftest.er1 conftest.err
2109  fi
2110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111  test $ac_status = 0; } > conftest.i && {
2112	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2113	 test ! -s conftest.err
2114       }; then :
2115  ac_retval=0
2116else
2117  $as_echo "$as_me: failed program was:" >&5
2118sed 's/^/| /' conftest.$ac_ext >&5
2119
2120    ac_retval=1
2121fi
2122  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123  as_fn_set_status $ac_retval
2124
2125} # ac_fn_cxx_try_cpp
2126
2127# ac_fn_cxx_try_link LINENO
2128# -------------------------
2129# Try to link conftest.$ac_ext, and return whether this succeeded.
2130ac_fn_cxx_try_link ()
2131{
2132  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133  rm -f conftest.$ac_objext conftest$ac_exeext
2134  if { { ac_try="$ac_link"
2135case "(($ac_try" in
2136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137  *) ac_try_echo=$ac_try;;
2138esac
2139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140$as_echo "$ac_try_echo"; } >&5
2141  (eval "$ac_link") 2>conftest.err
2142  ac_status=$?
2143  if test -s conftest.err; then
2144    grep -v '^ *+' conftest.err >conftest.er1
2145    cat conftest.er1 >&5
2146    mv -f conftest.er1 conftest.err
2147  fi
2148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149  test $ac_status = 0; } && {
2150	 test -z "$ac_cxx_werror_flag" ||
2151	 test ! -s conftest.err
2152       } && test -s conftest$ac_exeext && {
2153	 test "$cross_compiling" = yes ||
2154	 test -x conftest$ac_exeext
2155       }; then :
2156  ac_retval=0
2157else
2158  $as_echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
2160
2161	ac_retval=1
2162fi
2163  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2164  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2165  # interfere with the next link command; also delete a directory that is
2166  # left behind by Apple's compiler.  We do this before executing the actions.
2167  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2168  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169  as_fn_set_status $ac_retval
2170
2171} # ac_fn_cxx_try_link
2172
2173# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2174# --------------------------------------------
2175# Tries to find the compile-time value of EXPR in a program that includes
2176# INCLUDES, setting VAR accordingly. Returns whether the value could be
2177# computed
2178ac_fn_c_compute_int ()
2179{
2180  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181  if test "$cross_compiling" = yes; then
2182    # Depending upon the size, compute the lo and hi bounds.
2183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h.  */
2185$4
2186int
2187main ()
2188{
2189static int test_array [1 - 2 * !(($2) >= 0)];
2190test_array [0] = 0;
2191return test_array [0];
2192
2193  ;
2194  return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198  ac_lo=0 ac_mid=0
2199  while :; do
2200    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201/* end confdefs.h.  */
2202$4
2203int
2204main ()
2205{
2206static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207test_array [0] = 0;
2208return test_array [0];
2209
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215  ac_hi=$ac_mid; break
2216else
2217  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2218			if test $ac_lo -le $ac_mid; then
2219			  ac_lo= ac_hi=
2220			  break
2221			fi
2222			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2223fi
2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225  done
2226else
2227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228/* end confdefs.h.  */
2229$4
2230int
2231main ()
2232{
2233static int test_array [1 - 2 * !(($2) < 0)];
2234test_array [0] = 0;
2235return test_array [0];
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241if ac_fn_c_try_compile "$LINENO"; then :
2242  ac_hi=-1 ac_mid=-1
2243  while :; do
2244    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245/* end confdefs.h.  */
2246$4
2247int
2248main ()
2249{
2250static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2251test_array [0] = 0;
2252return test_array [0];
2253
2254  ;
2255  return 0;
2256}
2257_ACEOF
2258if ac_fn_c_try_compile "$LINENO"; then :
2259  ac_lo=$ac_mid; break
2260else
2261  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2262			if test $ac_mid -le $ac_hi; then
2263			  ac_lo= ac_hi=
2264			  break
2265			fi
2266			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2267fi
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269  done
2270else
2271  ac_lo= ac_hi=
2272fi
2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276# Binary search between lo and hi bounds.
2277while test "x$ac_lo" != "x$ac_hi"; do
2278  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h.  */
2281$4
2282int
2283main ()
2284{
2285static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2286test_array [0] = 0;
2287return test_array [0];
2288
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293if ac_fn_c_try_compile "$LINENO"; then :
2294  ac_hi=$ac_mid
2295else
2296  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2297fi
2298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299done
2300case $ac_lo in #((
2301?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2302'') ac_retval=1 ;;
2303esac
2304  else
2305    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306/* end confdefs.h.  */
2307$4
2308static long int longval () { return $2; }
2309static unsigned long int ulongval () { return $2; }
2310#include <stdio.h>
2311#include <stdlib.h>
2312int
2313main ()
2314{
2315
2316  FILE *f = fopen ("conftest.val", "w");
2317  if (! f)
2318    return 1;
2319  if (($2) < 0)
2320    {
2321      long int i = longval ();
2322      if (i != ($2))
2323	return 1;
2324      fprintf (f, "%ld", i);
2325    }
2326  else
2327    {
2328      unsigned long int i = ulongval ();
2329      if (i != ($2))
2330	return 1;
2331      fprintf (f, "%lu", i);
2332    }
2333  /* Do not output a trailing newline, as this causes \r\n confusion
2334     on some platforms.  */
2335  return ferror (f) || fclose (f) != 0;
2336
2337  ;
2338  return 0;
2339}
2340_ACEOF
2341if ac_fn_c_try_run "$LINENO"; then :
2342  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2343else
2344  ac_retval=1
2345fi
2346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2347  conftest.$ac_objext conftest.beam conftest.$ac_ext
2348rm -f conftest.val
2349
2350  fi
2351  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352  as_fn_set_status $ac_retval
2353
2354} # ac_fn_c_compute_int
2355
2356# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2357# ---------------------------------------------
2358# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2359# accordingly.
2360ac_fn_c_check_decl ()
2361{
2362  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363  as_decl_name=`echo $2|sed 's/ *(.*//'`
2364  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2366$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2367if eval \${$3+:} false; then :
2368  $as_echo_n "(cached) " >&6
2369else
2370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371/* end confdefs.h.  */
2372$4
2373int
2374main ()
2375{
2376#ifndef $as_decl_name
2377#ifdef __cplusplus
2378  (void) $as_decl_use;
2379#else
2380  (void) $as_decl_name;
2381#endif
2382#endif
2383
2384  ;
2385  return 0;
2386}
2387_ACEOF
2388if ac_fn_c_try_compile "$LINENO"; then :
2389  eval "$3=yes"
2390else
2391  eval "$3=no"
2392fi
2393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394fi
2395eval ac_res=\$$3
2396	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397$as_echo "$ac_res" >&6; }
2398  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399
2400} # ac_fn_c_check_decl
2401cat >config.log <<_ACEOF
2402This file contains any messages produced by compilers while
2403running configure, to aid debugging if configure makes a mistake.
2404
2405It was created by ld $as_me 2.42, which was
2406generated by GNU Autoconf 2.69.  Invocation command line was
2407
2408  $ $0 $@
2409
2410_ACEOF
2411exec 5>>config.log
2412{
2413cat <<_ASUNAME
2414## --------- ##
2415## Platform. ##
2416## --------- ##
2417
2418hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2419uname -m = `(uname -m) 2>/dev/null || echo unknown`
2420uname -r = `(uname -r) 2>/dev/null || echo unknown`
2421uname -s = `(uname -s) 2>/dev/null || echo unknown`
2422uname -v = `(uname -v) 2>/dev/null || echo unknown`
2423
2424/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2425/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2426
2427/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2428/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2429/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2430/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2431/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2432/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2433/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2434
2435_ASUNAME
2436
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442    $as_echo "PATH: $as_dir"
2443  done
2444IFS=$as_save_IFS
2445
2446} >&5
2447
2448cat >&5 <<_ACEOF
2449
2450
2451## ----------- ##
2452## Core tests. ##
2453## ----------- ##
2454
2455_ACEOF
2456
2457
2458# Keep a trace of the command line.
2459# Strip out --no-create and --no-recursion so they do not pile up.
2460# Strip out --silent because we don't want to record it for future runs.
2461# Also quote any args containing shell meta-characters.
2462# Make two passes to allow for proper duplicate-argument suppression.
2463ac_configure_args=
2464ac_configure_args0=
2465ac_configure_args1=
2466ac_must_keep_next=false
2467for ac_pass in 1 2
2468do
2469  for ac_arg
2470  do
2471    case $ac_arg in
2472    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2473    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2474    | -silent | --silent | --silen | --sile | --sil)
2475      continue ;;
2476    *\'*)
2477      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2478    esac
2479    case $ac_pass in
2480    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2481    2)
2482      as_fn_append ac_configure_args1 " '$ac_arg'"
2483      if test $ac_must_keep_next = true; then
2484	ac_must_keep_next=false # Got value, back to normal.
2485      else
2486	case $ac_arg in
2487	  *=* | --config-cache | -C | -disable-* | --disable-* \
2488	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2489	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2490	  | -with-* | --with-* | -without-* | --without-* | --x)
2491	    case "$ac_configure_args0 " in
2492	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2493	    esac
2494	    ;;
2495	  -* ) ac_must_keep_next=true ;;
2496	esac
2497      fi
2498      as_fn_append ac_configure_args " '$ac_arg'"
2499      ;;
2500    esac
2501  done
2502done
2503{ ac_configure_args0=; unset ac_configure_args0;}
2504{ ac_configure_args1=; unset ac_configure_args1;}
2505
2506# When interrupted or exit'd, cleanup temporary files, and complete
2507# config.log.  We remove comments because anyway the quotes in there
2508# would cause problems or look ugly.
2509# WARNING: Use '\'' to represent an apostrophe within the trap.
2510# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2511trap 'exit_status=$?
2512  # Save into config.log some information that might help in debugging.
2513  {
2514    echo
2515
2516    $as_echo "## ---------------- ##
2517## Cache variables. ##
2518## ---------------- ##"
2519    echo
2520    # The following way of writing the cache mishandles newlines in values,
2521(
2522  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2523    eval ac_val=\$$ac_var
2524    case $ac_val in #(
2525    *${as_nl}*)
2526      case $ac_var in #(
2527      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2528$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2529      esac
2530      case $ac_var in #(
2531      _ | IFS | as_nl) ;; #(
2532      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2533      *) { eval $ac_var=; unset $ac_var;} ;;
2534      esac ;;
2535    esac
2536  done
2537  (set) 2>&1 |
2538    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2539    *${as_nl}ac_space=\ *)
2540      sed -n \
2541	"s/'\''/'\''\\\\'\'''\''/g;
2542	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2543      ;; #(
2544    *)
2545      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2546      ;;
2547    esac |
2548    sort
2549)
2550    echo
2551
2552    $as_echo "## ----------------- ##
2553## Output variables. ##
2554## ----------------- ##"
2555    echo
2556    for ac_var in $ac_subst_vars
2557    do
2558      eval ac_val=\$$ac_var
2559      case $ac_val in
2560      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2561      esac
2562      $as_echo "$ac_var='\''$ac_val'\''"
2563    done | sort
2564    echo
2565
2566    if test -n "$ac_subst_files"; then
2567      $as_echo "## ------------------- ##
2568## File substitutions. ##
2569## ------------------- ##"
2570      echo
2571      for ac_var in $ac_subst_files
2572      do
2573	eval ac_val=\$$ac_var
2574	case $ac_val in
2575	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2576	esac
2577	$as_echo "$ac_var='\''$ac_val'\''"
2578      done | sort
2579      echo
2580    fi
2581
2582    if test -s confdefs.h; then
2583      $as_echo "## ----------- ##
2584## confdefs.h. ##
2585## ----------- ##"
2586      echo
2587      cat confdefs.h
2588      echo
2589    fi
2590    test "$ac_signal" != 0 &&
2591      $as_echo "$as_me: caught signal $ac_signal"
2592    $as_echo "$as_me: exit $exit_status"
2593  } >&5
2594  rm -f core *.core core.conftest.* &&
2595    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2596    exit $exit_status
2597' 0
2598for ac_signal in 1 2 13 15; do
2599  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2600done
2601ac_signal=0
2602
2603# confdefs.h avoids OS command line length limits that DEFS can exceed.
2604rm -f -r conftest* confdefs.h
2605
2606$as_echo "/* confdefs.h */" > confdefs.h
2607
2608# Predefined preprocessor variables.
2609
2610cat >>confdefs.h <<_ACEOF
2611#define PACKAGE_NAME "$PACKAGE_NAME"
2612_ACEOF
2613
2614cat >>confdefs.h <<_ACEOF
2615#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2616_ACEOF
2617
2618cat >>confdefs.h <<_ACEOF
2619#define PACKAGE_VERSION "$PACKAGE_VERSION"
2620_ACEOF
2621
2622cat >>confdefs.h <<_ACEOF
2623#define PACKAGE_STRING "$PACKAGE_STRING"
2624_ACEOF
2625
2626cat >>confdefs.h <<_ACEOF
2627#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2628_ACEOF
2629
2630cat >>confdefs.h <<_ACEOF
2631#define PACKAGE_URL "$PACKAGE_URL"
2632_ACEOF
2633
2634
2635# Let the site file select an alternate cache file if it wants to.
2636# Prefer an explicitly selected file to automatically selected ones.
2637ac_site_file1=NONE
2638ac_site_file2=NONE
2639if test -n "$CONFIG_SITE"; then
2640  # We do not want a PATH search for config.site.
2641  case $CONFIG_SITE in #((
2642    -*)  ac_site_file1=./$CONFIG_SITE;;
2643    */*) ac_site_file1=$CONFIG_SITE;;
2644    *)   ac_site_file1=./$CONFIG_SITE;;
2645  esac
2646elif test "x$prefix" != xNONE; then
2647  ac_site_file1=$prefix/share/config.site
2648  ac_site_file2=$prefix/etc/config.site
2649else
2650  ac_site_file1=$ac_default_prefix/share/config.site
2651  ac_site_file2=$ac_default_prefix/etc/config.site
2652fi
2653for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2654do
2655  test "x$ac_site_file" = xNONE && continue
2656  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2657    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2658$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2659    sed 's/^/| /' "$ac_site_file" >&5
2660    . "$ac_site_file" \
2661      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663as_fn_error $? "failed to load site script $ac_site_file
2664See \`config.log' for more details" "$LINENO" 5; }
2665  fi
2666done
2667
2668if test -r "$cache_file"; then
2669  # Some versions of bash will fail to source /dev/null (special files
2670  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2671  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2672    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2673$as_echo "$as_me: loading cache $cache_file" >&6;}
2674    case $cache_file in
2675      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2676      *)                      . "./$cache_file";;
2677    esac
2678  fi
2679else
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2681$as_echo "$as_me: creating cache $cache_file" >&6;}
2682  >$cache_file
2683fi
2684
2685gt_needs="$gt_needs "
2686as_fn_append ac_header_list " stdlib.h"
2687as_fn_append ac_header_list " unistd.h"
2688as_fn_append ac_header_list " sys/param.h"
2689# Check that the precious variables saved in the cache have kept the same
2690# value.
2691ac_cache_corrupted=false
2692for ac_var in $ac_precious_vars; do
2693  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2694  eval ac_new_set=\$ac_env_${ac_var}_set
2695  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2696  eval ac_new_val=\$ac_env_${ac_var}_value
2697  case $ac_old_set,$ac_new_set in
2698    set,)
2699      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2700$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2701      ac_cache_corrupted=: ;;
2702    ,set)
2703      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2704$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2705      ac_cache_corrupted=: ;;
2706    ,);;
2707    *)
2708      if test "x$ac_old_val" != "x$ac_new_val"; then
2709	# differences in whitespace do not lead to failure.
2710	ac_old_val_w=`echo x $ac_old_val`
2711	ac_new_val_w=`echo x $ac_new_val`
2712	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2713	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2714$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2715	  ac_cache_corrupted=:
2716	else
2717	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2718$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2719	  eval $ac_var=\$ac_old_val
2720	fi
2721	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2722$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2723	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2724$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2725      fi;;
2726  esac
2727  # Pass precious variables to config.status.
2728  if test "$ac_new_set" = set; then
2729    case $ac_new_val in
2730    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2731    *) ac_arg=$ac_var=$ac_new_val ;;
2732    esac
2733    case " $ac_configure_args " in
2734      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2735      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2736    esac
2737  fi
2738done
2739if $ac_cache_corrupted; then
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2743$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2744  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2745fi
2746## -------------------- ##
2747## Main body of script. ##
2748## -------------------- ##
2749
2750ac_ext=c
2751ac_cpp='$CPP $CPPFLAGS'
2752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755
2756
2757
2758
2759
2760
2761
2762ac_aux_dir=
2763for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2764  if test -f "$ac_dir/install-sh"; then
2765    ac_aux_dir=$ac_dir
2766    ac_install_sh="$ac_aux_dir/install-sh -c"
2767    break
2768  elif test -f "$ac_dir/install.sh"; then
2769    ac_aux_dir=$ac_dir
2770    ac_install_sh="$ac_aux_dir/install.sh -c"
2771    break
2772  elif test -f "$ac_dir/shtool"; then
2773    ac_aux_dir=$ac_dir
2774    ac_install_sh="$ac_aux_dir/shtool install -c"
2775    break
2776  fi
2777done
2778if test -z "$ac_aux_dir"; then
2779  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2780fi
2781
2782# These three variables are undocumented and unsupported,
2783# and are intended to be withdrawn in a future Autoconf release.
2784# They can cause serious problems if a builder's source tree is in a directory
2785# whose full name contains unusual characters.
2786ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2787ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2788ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2789
2790
2791# Make sure we can run config.sub.
2792$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2793  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2794
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2796$as_echo_n "checking build system type... " >&6; }
2797if ${ac_cv_build+:} false; then :
2798  $as_echo_n "(cached) " >&6
2799else
2800  ac_build_alias=$build_alias
2801test "x$ac_build_alias" = x &&
2802  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2803test "x$ac_build_alias" = x &&
2804  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2805ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2806  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2807
2808fi
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2810$as_echo "$ac_cv_build" >&6; }
2811case $ac_cv_build in
2812*-*-*) ;;
2813*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2814esac
2815build=$ac_cv_build
2816ac_save_IFS=$IFS; IFS='-'
2817set x $ac_cv_build
2818shift
2819build_cpu=$1
2820build_vendor=$2
2821shift; shift
2822# Remember, the first character of IFS is used to create $*,
2823# except with old shells:
2824build_os=$*
2825IFS=$ac_save_IFS
2826case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2827
2828
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2830$as_echo_n "checking host system type... " >&6; }
2831if ${ac_cv_host+:} false; then :
2832  $as_echo_n "(cached) " >&6
2833else
2834  if test "x$host_alias" = x; then
2835  ac_cv_host=$ac_cv_build
2836else
2837  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2838    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2839fi
2840
2841fi
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2843$as_echo "$ac_cv_host" >&6; }
2844case $ac_cv_host in
2845*-*-*) ;;
2846*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2847esac
2848host=$ac_cv_host
2849ac_save_IFS=$IFS; IFS='-'
2850set x $ac_cv_host
2851shift
2852host_cpu=$1
2853host_vendor=$2
2854shift; shift
2855# Remember, the first character of IFS is used to create $*,
2856# except with old shells:
2857host_os=$*
2858IFS=$ac_save_IFS
2859case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2860
2861
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2863$as_echo_n "checking target system type... " >&6; }
2864if ${ac_cv_target+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  if test "x$target_alias" = x; then
2868  ac_cv_target=$ac_cv_host
2869else
2870  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2871    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2872fi
2873
2874fi
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2876$as_echo "$ac_cv_target" >&6; }
2877case $ac_cv_target in
2878*-*-*) ;;
2879*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2880esac
2881target=$ac_cv_target
2882ac_save_IFS=$IFS; IFS='-'
2883set x $ac_cv_target
2884shift
2885target_cpu=$1
2886target_vendor=$2
2887shift; shift
2888# Remember, the first character of IFS is used to create $*,
2889# except with old shells:
2890target_os=$*
2891IFS=$ac_save_IFS
2892case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2893
2894
2895# The aliases save the names the user supplied, while $host etc.
2896# will get canonicalized.
2897test -n "$target_alias" &&
2898  test "$program_prefix$program_suffix$program_transform_name" = \
2899    NONENONEs,x,x, &&
2900  program_prefix=${target_alias}-
2901
2902
2903am__api_version='1.15'
2904
2905# Find a good install program.  We prefer a C program (faster),
2906# so one script is as good as another.  But avoid the broken or
2907# incompatible versions:
2908# SysV /etc/install, /usr/sbin/install
2909# SunOS /usr/etc/install
2910# IRIX /sbin/install
2911# AIX /bin/install
2912# AmigaOS /C/install, which installs bootblocks on floppy discs
2913# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2914# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2915# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2916# OS/2's system install, which has a completely different semantic
2917# ./install, which can be erroneously created by make from ./install.sh.
2918# Reject install programs that cannot install multiple files.
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2920$as_echo_n "checking for a BSD-compatible install... " >&6; }
2921if test -z "$INSTALL"; then
2922if ${ac_cv_path_install+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928  IFS=$as_save_IFS
2929  test -z "$as_dir" && as_dir=.
2930    # Account for people who put trailing slashes in PATH elements.
2931case $as_dir/ in #((
2932  ./ | .// | /[cC]/* | \
2933  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2934  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2935  /usr/ucb/* ) ;;
2936  *)
2937    # OSF1 and SCO ODT 3.0 have their own names for install.
2938    # Don't use installbsd from OSF since it installs stuff as root
2939    # by default.
2940    for ac_prog in ginstall scoinst install; do
2941      for ac_exec_ext in '' $ac_executable_extensions; do
2942	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2943	  if test $ac_prog = install &&
2944	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2945	    # AIX install.  It has an incompatible calling convention.
2946	    :
2947	  elif test $ac_prog = install &&
2948	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2949	    # program-specific install script used by HP pwplus--don't use.
2950	    :
2951	  else
2952	    rm -rf conftest.one conftest.two conftest.dir
2953	    echo one > conftest.one
2954	    echo two > conftest.two
2955	    mkdir conftest.dir
2956	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2957	      test -s conftest.one && test -s conftest.two &&
2958	      test -s conftest.dir/conftest.one &&
2959	      test -s conftest.dir/conftest.two
2960	    then
2961	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2962	      break 3
2963	    fi
2964	  fi
2965	fi
2966      done
2967    done
2968    ;;
2969esac
2970
2971  done
2972IFS=$as_save_IFS
2973
2974rm -rf conftest.one conftest.two conftest.dir
2975
2976fi
2977  if test "${ac_cv_path_install+set}" = set; then
2978    INSTALL=$ac_cv_path_install
2979  else
2980    # As a last resort, use the slow shell script.  Don't cache a
2981    # value for INSTALL within a source directory, because that will
2982    # break other packages using the cache if that directory is
2983    # removed, or if the value is a relative name.
2984    INSTALL=$ac_install_sh
2985  fi
2986fi
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2988$as_echo "$INSTALL" >&6; }
2989
2990# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2991# It thinks the first close brace ends the variable substitution.
2992test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2993
2994test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2995
2996test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2997
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2999$as_echo_n "checking whether build environment is sane... " >&6; }
3000# Reject unsafe characters in $srcdir or the absolute working directory
3001# name.  Accept space and tab only in the latter.
3002am_lf='
3003'
3004case `pwd` in
3005  *[\\\"\#\$\&\'\`$am_lf]*)
3006    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3007esac
3008case $srcdir in
3009  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3010    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3011esac
3012
3013# Do 'set' in a subshell so we don't clobber the current shell's
3014# arguments.  Must try -L first in case configure is actually a
3015# symlink; some systems play weird games with the mod time of symlinks
3016# (eg FreeBSD returns the mod time of the symlink's containing
3017# directory).
3018if (
3019   am_has_slept=no
3020   for am_try in 1 2; do
3021     echo "timestamp, slept: $am_has_slept" > conftest.file
3022     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3023     if test "$*" = "X"; then
3024	# -L didn't work.
3025	set X `ls -t "$srcdir/configure" conftest.file`
3026     fi
3027     if test "$*" != "X $srcdir/configure conftest.file" \
3028	&& test "$*" != "X conftest.file $srcdir/configure"; then
3029
3030	# If neither matched, then we have a broken ls.  This can happen
3031	# if, for instance, CONFIG_SHELL is bash and it inherits a
3032	# broken ls alias from the environment.  This has actually
3033	# happened.  Such a system could not be considered "sane".
3034	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3035  alias in your environment" "$LINENO" 5
3036     fi
3037     if test "$2" = conftest.file || test $am_try -eq 2; then
3038       break
3039     fi
3040     # Just in case.
3041     sleep 1
3042     am_has_slept=yes
3043   done
3044   test "$2" = conftest.file
3045   )
3046then
3047   # Ok.
3048   :
3049else
3050   as_fn_error $? "newly created file is older than distributed files!
3051Check your system clock" "$LINENO" 5
3052fi
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054$as_echo "yes" >&6; }
3055# If we didn't sleep, we still need to ensure time stamps of config.status and
3056# generated files are strictly newer.
3057am_sleep_pid=
3058if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3059  ( sleep 1 ) &
3060  am_sleep_pid=$!
3061fi
3062
3063rm -f conftest.file
3064
3065test "$program_prefix" != NONE &&
3066  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3067# Use a double $ so make ignores it.
3068test "$program_suffix" != NONE &&
3069  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3070# Double any \ or $.
3071# By default was `s,x,x', remove it if useless.
3072ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3073program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3074
3075# Expand $ac_aux_dir to an absolute path.
3076am_aux_dir=`cd "$ac_aux_dir" && pwd`
3077
3078if test x"${MISSING+set}" != xset; then
3079  case $am_aux_dir in
3080  *\ * | *\	*)
3081    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3082  *)
3083    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3084  esac
3085fi
3086# Use eval to expand $SHELL
3087if eval "$MISSING --is-lightweight"; then
3088  am_missing_run="$MISSING "
3089else
3090  am_missing_run=
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3092$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3093fi
3094
3095if test x"${install_sh+set}" != xset; then
3096  case $am_aux_dir in
3097  *\ * | *\	*)
3098    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3099  *)
3100    install_sh="\${SHELL} $am_aux_dir/install-sh"
3101  esac
3102fi
3103
3104# Installed binaries are usually stripped using 'strip' when the user
3105# run "make install-strip".  However 'strip' might not be the right
3106# tool to use in cross-compilation environments, therefore Automake
3107# will honor the 'STRIP' environment variable to overrule this program.
3108if test "$cross_compiling" != no; then
3109  if test -n "$ac_tool_prefix"; then
3110  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3111set dummy ${ac_tool_prefix}strip; ac_word=$2
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if ${ac_cv_prog_STRIP+:} false; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -n "$STRIP"; then
3118  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125    for ac_exec_ext in '' $ac_executable_extensions; do
3126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137STRIP=$ac_cv_prog_STRIP
3138if test -n "$STRIP"; then
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3140$as_echo "$STRIP" >&6; }
3141else
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
3144fi
3145
3146
3147fi
3148if test -z "$ac_cv_prog_STRIP"; then
3149  ac_ct_STRIP=$STRIP
3150  # Extract the first word of "strip", so it can be a program name with args.
3151set dummy strip; ac_word=$2
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153$as_echo_n "checking for $ac_word... " >&6; }
3154if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  if test -n "$ac_ct_STRIP"; then
3158  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163  IFS=$as_save_IFS
3164  test -z "$as_dir" && as_dir=.
3165    for ac_exec_ext in '' $ac_executable_extensions; do
3166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167    ac_cv_prog_ac_ct_STRIP="strip"
3168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172  done
3173IFS=$as_save_IFS
3174
3175fi
3176fi
3177ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3178if test -n "$ac_ct_STRIP"; then
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3180$as_echo "$ac_ct_STRIP" >&6; }
3181else
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184fi
3185
3186  if test "x$ac_ct_STRIP" = x; then
3187    STRIP=":"
3188  else
3189    case $cross_compiling:$ac_tool_warned in
3190yes:)
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193ac_tool_warned=yes ;;
3194esac
3195    STRIP=$ac_ct_STRIP
3196  fi
3197else
3198  STRIP="$ac_cv_prog_STRIP"
3199fi
3200
3201fi
3202INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3203
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3205$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3206if test -z "$MKDIR_P"; then
3207  if ${ac_cv_path_mkdir+:} false; then :
3208  $as_echo_n "(cached) " >&6
3209else
3210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3212do
3213  IFS=$as_save_IFS
3214  test -z "$as_dir" && as_dir=.
3215    for ac_prog in mkdir gmkdir; do
3216	 for ac_exec_ext in '' $ac_executable_extensions; do
3217	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3218	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3219	     'mkdir (GNU coreutils) '* | \
3220	     'mkdir (coreutils) '* | \
3221	     'mkdir (fileutils) '4.1*)
3222	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3223	       break 3;;
3224	   esac
3225	 done
3226       done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231
3232  test -d ./--version && rmdir ./--version
3233  if test "${ac_cv_path_mkdir+set}" = set; then
3234    MKDIR_P="$ac_cv_path_mkdir -p"
3235  else
3236    # As a last resort, use the slow shell script.  Don't cache a
3237    # value for MKDIR_P within a source directory, because that will
3238    # break other packages using the cache if that directory is
3239    # removed, or if the value is a relative name.
3240    MKDIR_P="$ac_install_sh -d"
3241  fi
3242fi
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3244$as_echo "$MKDIR_P" >&6; }
3245
3246for ac_prog in gawk mawk nawk awk
3247do
3248  # Extract the first word of "$ac_prog", so it can be a program name with args.
3249set dummy $ac_prog; ac_word=$2
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251$as_echo_n "checking for $ac_word... " >&6; }
3252if ${ac_cv_prog_AWK+:} false; then :
3253  $as_echo_n "(cached) " >&6
3254else
3255  if test -n "$AWK"; then
3256  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3257else
3258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259for as_dir in $PATH
3260do
3261  IFS=$as_save_IFS
3262  test -z "$as_dir" && as_dir=.
3263    for ac_exec_ext in '' $ac_executable_extensions; do
3264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265    ac_cv_prog_AWK="$ac_prog"
3266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267    break 2
3268  fi
3269done
3270  done
3271IFS=$as_save_IFS
3272
3273fi
3274fi
3275AWK=$ac_cv_prog_AWK
3276if test -n "$AWK"; then
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3278$as_echo "$AWK" >&6; }
3279else
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281$as_echo "no" >&6; }
3282fi
3283
3284
3285  test -n "$AWK" && break
3286done
3287
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3289$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3290set x ${MAKE-make}
3291ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3292if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3293  $as_echo_n "(cached) " >&6
3294else
3295  cat >conftest.make <<\_ACEOF
3296SHELL = /bin/sh
3297all:
3298	@echo '@@@%%%=$(MAKE)=@@@%%%'
3299_ACEOF
3300# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3301case `${MAKE-make} -f conftest.make 2>/dev/null` in
3302  *@@@%%%=?*=@@@%%%*)
3303    eval ac_cv_prog_make_${ac_make}_set=yes;;
3304  *)
3305    eval ac_cv_prog_make_${ac_make}_set=no;;
3306esac
3307rm -f conftest.make
3308fi
3309if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311$as_echo "yes" >&6; }
3312  SET_MAKE=
3313else
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315$as_echo "no" >&6; }
3316  SET_MAKE="MAKE=${MAKE-make}"
3317fi
3318
3319rm -rf .tst 2>/dev/null
3320mkdir .tst 2>/dev/null
3321if test -d .tst; then
3322  am__leading_dot=.
3323else
3324  am__leading_dot=_
3325fi
3326rmdir .tst 2>/dev/null
3327
3328# Check whether --enable-silent-rules was given.
3329if test "${enable_silent_rules+set}" = set; then :
3330  enableval=$enable_silent_rules;
3331fi
3332
3333case $enable_silent_rules in # (((
3334  yes) AM_DEFAULT_VERBOSITY=0;;
3335   no) AM_DEFAULT_VERBOSITY=1;;
3336    *) AM_DEFAULT_VERBOSITY=1;;
3337esac
3338am_make=${MAKE-make}
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3340$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3341if ${am_cv_make_support_nested_variables+:} false; then :
3342  $as_echo_n "(cached) " >&6
3343else
3344  if $as_echo 'TRUE=$(BAR$(V))
3345BAR0=false
3346BAR1=true
3347V=1
3348am__doit:
3349	@$(TRUE)
3350.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3351  am_cv_make_support_nested_variables=yes
3352else
3353  am_cv_make_support_nested_variables=no
3354fi
3355fi
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3357$as_echo "$am_cv_make_support_nested_variables" >&6; }
3358if test $am_cv_make_support_nested_variables = yes; then
3359    AM_V='$(V)'
3360  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3361else
3362  AM_V=$AM_DEFAULT_VERBOSITY
3363  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3364fi
3365AM_BACKSLASH='\'
3366
3367if test "`cd $srcdir && pwd`" != "`pwd`"; then
3368  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3369  # is not polluted with repeated "-I."
3370  am__isrc=' -I$(srcdir)'
3371  # test to see if srcdir already configured
3372  if test -f $srcdir/config.status; then
3373    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3374  fi
3375fi
3376
3377# test whether we have cygpath
3378if test -z "$CYGPATH_W"; then
3379  if (cygpath --version) >/dev/null 2>/dev/null; then
3380    CYGPATH_W='cygpath -w'
3381  else
3382    CYGPATH_W=echo
3383  fi
3384fi
3385
3386
3387# Define the identity of the package.
3388 PACKAGE='ld'
3389 VERSION='2.42'
3390
3391
3392cat >>confdefs.h <<_ACEOF
3393#define PACKAGE "$PACKAGE"
3394_ACEOF
3395
3396
3397cat >>confdefs.h <<_ACEOF
3398#define VERSION "$VERSION"
3399_ACEOF
3400
3401# Some tools Automake needs.
3402
3403ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3404
3405
3406AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3407
3408
3409AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3410
3411
3412AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3413
3414
3415MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3416
3417# For better backward compatibility.  To be removed once Automake 1.9.x
3418# dies out for good.  For more background, see:
3419# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3420# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3421mkdir_p='$(MKDIR_P)'
3422
3423# We need awk for the "check" target (and possibly the TAP driver).  The
3424# system "awk" is bad on some platforms.
3425# Always define AMTAR for backward compatibility.  Yes, it's still used
3426# in the wild :-(  We should find a proper way to deprecate it ...
3427AMTAR='$${TAR-tar}'
3428
3429
3430# We'll loop over all known methods to create a tar archive until one works.
3431_am_tools='gnutar  pax cpio none'
3432
3433am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3434
3435
3436
3437
3438
3439
3440# POSIX will say in a future version that running "rm -f" with no argument
3441# is OK; and we want to be able to make that assumption in our Makefile
3442# recipes.  So use an aggressive probe to check that the usage we want is
3443# actually supported "in the wild" to an acceptable degree.
3444# See automake bug#10828.
3445# To make any issue more visible, cause the running configure to be aborted
3446# by default if the 'rm' program in use doesn't match our expectations; the
3447# user can still override this though.
3448if rm -f && rm -fr && rm -rf; then : OK; else
3449  cat >&2 <<'END'
3450Oops!
3451
3452Your 'rm' program seems unable to run without file operands specified
3453on the command line, even when the '-f' option is present.  This is contrary
3454to the behaviour of most rm programs out there, and not conforming with
3455the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3456
3457Please tell bug-automake@gnu.org about your system, including the value
3458of your $PATH and any error possibly output before this message.  This
3459can help us improve future automake versions.
3460
3461END
3462  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3463    echo 'Configuration will proceed anyway, since you have set the' >&2
3464    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3465    echo >&2
3466  else
3467    cat >&2 <<'END'
3468Aborting the configuration process, to ensure you take notice of the issue.
3469
3470You can download and install GNU coreutils to get an 'rm' implementation
3471that behaves properly: <http://www.gnu.org/software/coreutils/>.
3472
3473If you want to complete the configuration process using your problematic
3474'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3475to "yes", and re-run configure.
3476
3477END
3478    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3479  fi
3480fi
3481
3482# Check whether --enable-silent-rules was given.
3483if test "${enable_silent_rules+set}" = set; then :
3484  enableval=$enable_silent_rules;
3485fi
3486
3487case $enable_silent_rules in # (((
3488  yes) AM_DEFAULT_VERBOSITY=0;;
3489   no) AM_DEFAULT_VERBOSITY=1;;
3490    *) AM_DEFAULT_VERBOSITY=0;;
3491esac
3492am_make=${MAKE-make}
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3494$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3495if ${am_cv_make_support_nested_variables+:} false; then :
3496  $as_echo_n "(cached) " >&6
3497else
3498  if $as_echo 'TRUE=$(BAR$(V))
3499BAR0=false
3500BAR1=true
3501V=1
3502am__doit:
3503	@$(TRUE)
3504.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3505  am_cv_make_support_nested_variables=yes
3506else
3507  am_cv_make_support_nested_variables=no
3508fi
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3511$as_echo "$am_cv_make_support_nested_variables" >&6; }
3512if test $am_cv_make_support_nested_variables = yes; then
3513    AM_V='$(V)'
3514  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3515else
3516  AM_V=$AM_DEFAULT_VERBOSITY
3517  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3518fi
3519AM_BACKSLASH='\'
3520
3521
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3523$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3524    # Check whether --enable-maintainer-mode was given.
3525if test "${enable_maintainer_mode+set}" = set; then :
3526  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3527else
3528  USE_MAINTAINER_MODE=no
3529fi
3530
3531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3532$as_echo "$USE_MAINTAINER_MODE" >&6; }
3533   if test $USE_MAINTAINER_MODE = yes; then
3534  MAINTAINER_MODE_TRUE=
3535  MAINTAINER_MODE_FALSE='#'
3536else
3537  MAINTAINER_MODE_TRUE='#'
3538  MAINTAINER_MODE_FALSE=
3539fi
3540
3541  MAINT=$MAINTAINER_MODE_TRUE
3542
3543
3544
3545ac_ext=c
3546ac_cpp='$CPP $CPPFLAGS'
3547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550if test -n "$ac_tool_prefix"; then
3551  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3552set dummy ${ac_tool_prefix}gcc; ac_word=$2
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554$as_echo_n "checking for $ac_word... " >&6; }
3555if ${ac_cv_prog_CC+:} false; then :
3556  $as_echo_n "(cached) " >&6
3557else
3558  if test -n "$CC"; then
3559  ac_cv_prog_CC="$CC" # Let the user override the test.
3560else
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564  IFS=$as_save_IFS
3565  test -z "$as_dir" && as_dir=.
3566    for ac_exec_ext in '' $ac_executable_extensions; do
3567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570    break 2
3571  fi
3572done
3573  done
3574IFS=$as_save_IFS
3575
3576fi
3577fi
3578CC=$ac_cv_prog_CC
3579if test -n "$CC"; then
3580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581$as_echo "$CC" >&6; }
3582else
3583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584$as_echo "no" >&6; }
3585fi
3586
3587
3588fi
3589if test -z "$ac_cv_prog_CC"; then
3590  ac_ct_CC=$CC
3591  # Extract the first word of "gcc", so it can be a program name with args.
3592set dummy gcc; ac_word=$2
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594$as_echo_n "checking for $ac_word... " >&6; }
3595if ${ac_cv_prog_ac_ct_CC+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  if test -n "$ac_ct_CC"; then
3599  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604  IFS=$as_save_IFS
3605  test -z "$as_dir" && as_dir=.
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_ac_ct_CC="gcc"
3609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619if test -n "$ac_ct_CC"; then
3620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621$as_echo "$ac_ct_CC" >&6; }
3622else
3623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624$as_echo "no" >&6; }
3625fi
3626
3627  if test "x$ac_ct_CC" = x; then
3628    CC=""
3629  else
3630    case $cross_compiling:$ac_tool_warned in
3631yes:)
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634ac_tool_warned=yes ;;
3635esac
3636    CC=$ac_ct_CC
3637  fi
3638else
3639  CC="$ac_cv_prog_CC"
3640fi
3641
3642if test -z "$CC"; then
3643          if test -n "$ac_tool_prefix"; then
3644    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3645set dummy ${ac_tool_prefix}cc; ac_word=$2
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647$as_echo_n "checking for $ac_word... " >&6; }
3648if ${ac_cv_prog_CC+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  if test -n "$CC"; then
3652  ac_cv_prog_CC="$CC" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657  IFS=$as_save_IFS
3658  test -z "$as_dir" && as_dir=.
3659    for ac_exec_ext in '' $ac_executable_extensions; do
3660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661    ac_cv_prog_CC="${ac_tool_prefix}cc"
3662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663    break 2
3664  fi
3665done
3666  done
3667IFS=$as_save_IFS
3668
3669fi
3670fi
3671CC=$ac_cv_prog_CC
3672if test -n "$CC"; then
3673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674$as_echo "$CC" >&6; }
3675else
3676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677$as_echo "no" >&6; }
3678fi
3679
3680
3681  fi
3682fi
3683if test -z "$CC"; then
3684  # Extract the first word of "cc", so it can be a program name with args.
3685set dummy cc; ac_word=$2
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687$as_echo_n "checking for $ac_word... " >&6; }
3688if ${ac_cv_prog_CC+:} false; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  if test -n "$CC"; then
3692  ac_cv_prog_CC="$CC" # Let the user override the test.
3693else
3694  ac_prog_rejected=no
3695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696for as_dir in $PATH
3697do
3698  IFS=$as_save_IFS
3699  test -z "$as_dir" && as_dir=.
3700    for ac_exec_ext in '' $ac_executable_extensions; do
3701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703       ac_prog_rejected=yes
3704       continue
3705     fi
3706    ac_cv_prog_CC="cc"
3707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708    break 2
3709  fi
3710done
3711  done
3712IFS=$as_save_IFS
3713
3714if test $ac_prog_rejected = yes; then
3715  # We found a bogon in the path, so make sure we never use it.
3716  set dummy $ac_cv_prog_CC
3717  shift
3718  if test $# != 0; then
3719    # We chose a different compiler from the bogus one.
3720    # However, it has the same basename, so the bogon will be chosen
3721    # first if we set CC to just the basename; use the full file name.
3722    shift
3723    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3724  fi
3725fi
3726fi
3727fi
3728CC=$ac_cv_prog_CC
3729if test -n "$CC"; then
3730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731$as_echo "$CC" >&6; }
3732else
3733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734$as_echo "no" >&6; }
3735fi
3736
3737
3738fi
3739if test -z "$CC"; then
3740  if test -n "$ac_tool_prefix"; then
3741  for ac_prog in cl.exe
3742  do
3743    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746$as_echo_n "checking for $ac_word... " >&6; }
3747if ${ac_cv_prog_CC+:} false; then :
3748  $as_echo_n "(cached) " >&6
3749else
3750  if test -n "$CC"; then
3751  ac_cv_prog_CC="$CC" # Let the user override the test.
3752else
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH
3755do
3756  IFS=$as_save_IFS
3757  test -z "$as_dir" && as_dir=.
3758    for ac_exec_ext in '' $ac_executable_extensions; do
3759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762    break 2
3763  fi
3764done
3765  done
3766IFS=$as_save_IFS
3767
3768fi
3769fi
3770CC=$ac_cv_prog_CC
3771if test -n "$CC"; then
3772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773$as_echo "$CC" >&6; }
3774else
3775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776$as_echo "no" >&6; }
3777fi
3778
3779
3780    test -n "$CC" && break
3781  done
3782fi
3783if test -z "$CC"; then
3784  ac_ct_CC=$CC
3785  for ac_prog in cl.exe
3786do
3787  # Extract the first word of "$ac_prog", so it can be a program name with args.
3788set dummy $ac_prog; ac_word=$2
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790$as_echo_n "checking for $ac_word... " >&6; }
3791if ${ac_cv_prog_ac_ct_CC+:} false; then :
3792  $as_echo_n "(cached) " >&6
3793else
3794  if test -n "$ac_ct_CC"; then
3795  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796else
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800  IFS=$as_save_IFS
3801  test -z "$as_dir" && as_dir=.
3802    for ac_exec_ext in '' $ac_executable_extensions; do
3803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804    ac_cv_prog_ac_ct_CC="$ac_prog"
3805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806    break 2
3807  fi
3808done
3809  done
3810IFS=$as_save_IFS
3811
3812fi
3813fi
3814ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815if test -n "$ac_ct_CC"; then
3816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817$as_echo "$ac_ct_CC" >&6; }
3818else
3819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820$as_echo "no" >&6; }
3821fi
3822
3823
3824  test -n "$ac_ct_CC" && break
3825done
3826
3827  if test "x$ac_ct_CC" = x; then
3828    CC=""
3829  else
3830    case $cross_compiling:$ac_tool_warned in
3831yes:)
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834ac_tool_warned=yes ;;
3835esac
3836    CC=$ac_ct_CC
3837  fi
3838fi
3839
3840fi
3841
3842
3843test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845as_fn_error $? "no acceptable C compiler found in \$PATH
3846See \`config.log' for more details" "$LINENO" 5; }
3847
3848# Provide some information about the compiler.
3849$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3850set X $ac_compile
3851ac_compiler=$2
3852for ac_option in --version -v -V -qversion; do
3853  { { ac_try="$ac_compiler $ac_option >&5"
3854case "(($ac_try" in
3855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856  *) ac_try_echo=$ac_try;;
3857esac
3858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859$as_echo "$ac_try_echo"; } >&5
3860  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3861  ac_status=$?
3862  if test -s conftest.err; then
3863    sed '10a\
3864... rest of stderr output deleted ...
3865         10q' conftest.err >conftest.er1
3866    cat conftest.er1 >&5
3867  fi
3868  rm -f conftest.er1 conftest.err
3869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870  test $ac_status = 0; }
3871done
3872
3873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h.  */
3875
3876int
3877main ()
3878{
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884ac_clean_files_save=$ac_clean_files
3885ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3886# Try to create an executable without -o first, disregard a.out.
3887# It will help us diagnose broken compilers, and finding out an intuition
3888# of exeext.
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3890$as_echo_n "checking whether the C compiler works... " >&6; }
3891ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3892
3893# The possible output files:
3894ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3895
3896ac_rmfiles=
3897for ac_file in $ac_files
3898do
3899  case $ac_file in
3900    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3901    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3902  esac
3903done
3904rm -f $ac_rmfiles
3905
3906if { { ac_try="$ac_link_default"
3907case "(($ac_try" in
3908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909  *) ac_try_echo=$ac_try;;
3910esac
3911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912$as_echo "$ac_try_echo"; } >&5
3913  (eval "$ac_link_default") 2>&5
3914  ac_status=$?
3915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916  test $ac_status = 0; }; then :
3917  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3918# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3919# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3920# so that the user can short-circuit this test for compilers unknown to
3921# Autoconf.
3922for ac_file in $ac_files ''
3923do
3924  test -f "$ac_file" || continue
3925  case $ac_file in
3926    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3927	;;
3928    [ab].out )
3929	# We found the default executable, but exeext='' is most
3930	# certainly right.
3931	break;;
3932    *.* )
3933	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3934	then :; else
3935	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3936	fi
3937	# We set ac_cv_exeext here because the later test for it is not
3938	# safe: cross compilers may not add the suffix if given an `-o'
3939	# argument, so we may need to know it at that point already.
3940	# Even if this section looks crufty: it has the advantage of
3941	# actually working.
3942	break;;
3943    * )
3944	break;;
3945  esac
3946done
3947test "$ac_cv_exeext" = no && ac_cv_exeext=
3948
3949else
3950  ac_file=''
3951fi
3952if test -z "$ac_file"; then :
3953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954$as_echo "no" >&6; }
3955$as_echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960as_fn_error 77 "C compiler cannot create executables
3961See \`config.log' for more details" "$LINENO" 5; }
3962else
3963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964$as_echo "yes" >&6; }
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3967$as_echo_n "checking for C compiler default output file name... " >&6; }
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3969$as_echo "$ac_file" >&6; }
3970ac_exeext=$ac_cv_exeext
3971
3972rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3973ac_clean_files=$ac_clean_files_save
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3975$as_echo_n "checking for suffix of executables... " >&6; }
3976if { { ac_try="$ac_link"
3977case "(($ac_try" in
3978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979  *) ac_try_echo=$ac_try;;
3980esac
3981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982$as_echo "$ac_try_echo"; } >&5
3983  (eval "$ac_link") 2>&5
3984  ac_status=$?
3985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986  test $ac_status = 0; }; then :
3987  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3988# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3989# work properly (i.e., refer to `conftest.exe'), while it won't with
3990# `rm'.
3991for ac_file in conftest.exe conftest conftest.*; do
3992  test -f "$ac_file" || continue
3993  case $ac_file in
3994    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3995    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3996	  break;;
3997    * ) break;;
3998  esac
3999done
4000else
4001  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4004See \`config.log' for more details" "$LINENO" 5; }
4005fi
4006rm -f conftest conftest$ac_cv_exeext
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4008$as_echo "$ac_cv_exeext" >&6; }
4009
4010rm -f conftest.$ac_ext
4011EXEEXT=$ac_cv_exeext
4012ac_exeext=$EXEEXT
4013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014/* end confdefs.h.  */
4015#include <stdio.h>
4016int
4017main ()
4018{
4019FILE *f = fopen ("conftest.out", "w");
4020 return ferror (f) || fclose (f) != 0;
4021
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026ac_clean_files="$ac_clean_files conftest.out"
4027# Check that the compiler produces executables we can run.  If not, either
4028# the compiler is broken, or we cross compile.
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4030$as_echo_n "checking whether we are cross compiling... " >&6; }
4031if test "$cross_compiling" != yes; then
4032  { { ac_try="$ac_link"
4033case "(($ac_try" in
4034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035  *) ac_try_echo=$ac_try;;
4036esac
4037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038$as_echo "$ac_try_echo"; } >&5
4039  (eval "$ac_link") 2>&5
4040  ac_status=$?
4041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042  test $ac_status = 0; }
4043  if { ac_try='./conftest$ac_cv_exeext'
4044  { { case "(($ac_try" in
4045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046  *) ac_try_echo=$ac_try;;
4047esac
4048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049$as_echo "$ac_try_echo"; } >&5
4050  (eval "$ac_try") 2>&5
4051  ac_status=$?
4052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053  test $ac_status = 0; }; }; then
4054    cross_compiling=no
4055  else
4056    if test "$cross_compiling" = maybe; then
4057	cross_compiling=yes
4058    else
4059	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061as_fn_error $? "cannot run C compiled programs.
4062If you meant to cross compile, use \`--host'.
4063See \`config.log' for more details" "$LINENO" 5; }
4064    fi
4065  fi
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4068$as_echo "$cross_compiling" >&6; }
4069
4070rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4071ac_clean_files=$ac_clean_files_save
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4073$as_echo_n "checking for suffix of object files... " >&6; }
4074if ${ac_cv_objext+:} false; then :
4075  $as_echo_n "(cached) " >&6
4076else
4077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h.  */
4079
4080int
4081main ()
4082{
4083
4084  ;
4085  return 0;
4086}
4087_ACEOF
4088rm -f conftest.o conftest.obj
4089if { { ac_try="$ac_compile"
4090case "(($ac_try" in
4091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092  *) ac_try_echo=$ac_try;;
4093esac
4094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095$as_echo "$ac_try_echo"; } >&5
4096  (eval "$ac_compile") 2>&5
4097  ac_status=$?
4098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099  test $ac_status = 0; }; then :
4100  for ac_file in conftest.o conftest.obj conftest.*; do
4101  test -f "$ac_file" || continue;
4102  case $ac_file in
4103    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4104    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4105       break;;
4106  esac
4107done
4108else
4109  $as_echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4114as_fn_error $? "cannot compute suffix of object files: cannot compile
4115See \`config.log' for more details" "$LINENO" 5; }
4116fi
4117rm -f conftest.$ac_cv_objext conftest.$ac_ext
4118fi
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4120$as_echo "$ac_cv_objext" >&6; }
4121OBJEXT=$ac_cv_objext
4122ac_objext=$OBJEXT
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4124$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4125if ${ac_cv_c_compiler_gnu+:} false; then :
4126  $as_echo_n "(cached) " >&6
4127else
4128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130
4131int
4132main ()
4133{
4134#ifndef __GNUC__
4135       choke me
4136#endif
4137
4138  ;
4139  return 0;
4140}
4141_ACEOF
4142if ac_fn_c_try_compile "$LINENO"; then :
4143  ac_compiler_gnu=yes
4144else
4145  ac_compiler_gnu=no
4146fi
4147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148ac_cv_c_compiler_gnu=$ac_compiler_gnu
4149
4150fi
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4152$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4153if test $ac_compiler_gnu = yes; then
4154  GCC=yes
4155else
4156  GCC=
4157fi
4158ac_test_CFLAGS=${CFLAGS+set}
4159ac_save_CFLAGS=$CFLAGS
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4161$as_echo_n "checking whether $CC accepts -g... " >&6; }
4162if ${ac_cv_prog_cc_g+:} false; then :
4163  $as_echo_n "(cached) " >&6
4164else
4165  ac_save_c_werror_flag=$ac_c_werror_flag
4166   ac_c_werror_flag=yes
4167   ac_cv_prog_cc_g=no
4168   CFLAGS="-g"
4169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h.  */
4171
4172int
4173main ()
4174{
4175
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180if ac_fn_c_try_compile "$LINENO"; then :
4181  ac_cv_prog_cc_g=yes
4182else
4183  CFLAGS=""
4184      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h.  */
4186
4187int
4188main ()
4189{
4190
4191  ;
4192  return 0;
4193}
4194_ACEOF
4195if ac_fn_c_try_compile "$LINENO"; then :
4196
4197else
4198  ac_c_werror_flag=$ac_save_c_werror_flag
4199	 CFLAGS="-g"
4200	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h.  */
4202
4203int
4204main ()
4205{
4206
4207  ;
4208  return 0;
4209}
4210_ACEOF
4211if ac_fn_c_try_compile "$LINENO"; then :
4212  ac_cv_prog_cc_g=yes
4213fi
4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215fi
4216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217fi
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219   ac_c_werror_flag=$ac_save_c_werror_flag
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4222$as_echo "$ac_cv_prog_cc_g" >&6; }
4223if test "$ac_test_CFLAGS" = set; then
4224  CFLAGS=$ac_save_CFLAGS
4225elif test $ac_cv_prog_cc_g = yes; then
4226  if test "$GCC" = yes; then
4227    CFLAGS="-g -O2"
4228  else
4229    CFLAGS="-g"
4230  fi
4231else
4232  if test "$GCC" = yes; then
4233    CFLAGS="-O2"
4234  else
4235    CFLAGS=
4236  fi
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4239$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4240if ${ac_cv_prog_cc_c89+:} false; then :
4241  $as_echo_n "(cached) " >&6
4242else
4243  ac_cv_prog_cc_c89=no
4244ac_save_CC=$CC
4245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h.  */
4247#include <stdarg.h>
4248#include <stdio.h>
4249struct stat;
4250/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4251struct buf { int x; };
4252FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253static char *e (p, i)
4254     char **p;
4255     int i;
4256{
4257  return p[i];
4258}
4259static char *f (char * (*g) (char **, int), char **p, ...)
4260{
4261  char *s;
4262  va_list v;
4263  va_start (v,p);
4264  s = g (p, va_arg (v,int));
4265  va_end (v);
4266  return s;
4267}
4268
4269/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4270   function prototypes and stuff, but not '\xHH' hex character constants.
4271   These don't provoke an error unfortunately, instead are silently treated
4272   as 'x'.  The following induces an error, until -std is added to get
4273   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4274   array size at least.  It's necessary to write '\x00'==0 to get something
4275   that's true only with -std.  */
4276int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4277
4278/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279   inside strings and character constants.  */
4280#define FOO(x) 'x'
4281int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4282
4283int test (int i, double x);
4284struct s1 {int (*f) (int a);};
4285struct s2 {int (*f) (double a);};
4286int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287int argc;
4288char **argv;
4289int
4290main ()
4291{
4292return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4293  ;
4294  return 0;
4295}
4296_ACEOF
4297for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4299do
4300  CC="$ac_save_CC $ac_arg"
4301  if ac_fn_c_try_compile "$LINENO"; then :
4302  ac_cv_prog_cc_c89=$ac_arg
4303fi
4304rm -f core conftest.err conftest.$ac_objext
4305  test "x$ac_cv_prog_cc_c89" != "xno" && break
4306done
4307rm -f conftest.$ac_ext
4308CC=$ac_save_CC
4309
4310fi
4311# AC_CACHE_VAL
4312case "x$ac_cv_prog_cc_c89" in
4313  x)
4314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315$as_echo "none needed" >&6; } ;;
4316  xno)
4317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318$as_echo "unsupported" >&6; } ;;
4319  *)
4320    CC="$CC $ac_cv_prog_cc_c89"
4321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4323esac
4324if test "x$ac_cv_prog_cc_c89" != xno; then :
4325
4326fi
4327
4328ac_ext=c
4329ac_cpp='$CPP $CPPFLAGS'
4330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333
4334ac_ext=c
4335ac_cpp='$CPP $CPPFLAGS'
4336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4340$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4341if ${am_cv_prog_cc_c_o+:} false; then :
4342  $as_echo_n "(cached) " >&6
4343else
4344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h.  */
4346
4347int
4348main ()
4349{
4350
4351  ;
4352  return 0;
4353}
4354_ACEOF
4355  # Make sure it works both with $CC and with simple cc.
4356  # Following AC_PROG_CC_C_O, we do the test twice because some
4357  # compilers refuse to overwrite an existing .o file with -o,
4358  # though they will create one.
4359  am_cv_prog_cc_c_o=yes
4360  for am_i in 1 2; do
4361    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4362   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } \
4366         && test -f conftest2.$ac_objext; then
4367      : OK
4368    else
4369      am_cv_prog_cc_c_o=no
4370      break
4371    fi
4372  done
4373  rm -f core conftest*
4374  unset am_i
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4377$as_echo "$am_cv_prog_cc_c_o" >&6; }
4378if test "$am_cv_prog_cc_c_o" != yes; then
4379   # Losing compiler, so override with the script.
4380   # FIXME: It is wrong to rewrite CC.
4381   # But if we don't then we get into trouble of one sort or another.
4382   # A longer-term fix would be to have automake use am__CC in this case,
4383   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4384   CC="$am_aux_dir/compile $CC"
4385fi
4386ac_ext=c
4387ac_cpp='$CPP $CPPFLAGS'
4388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391
4392DEPDIR="${am__leading_dot}deps"
4393
4394ac_config_commands="$ac_config_commands depfiles"
4395
4396
4397am_make=${MAKE-make}
4398cat > confinc << 'END'
4399am__doit:
4400	@echo this is the am__doit target
4401.PHONY: am__doit
4402END
4403# If we don't find an include directive, just comment out the code.
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4405$as_echo_n "checking for style of include used by $am_make... " >&6; }
4406am__include="#"
4407am__quote=
4408_am_result=none
4409# First try GNU make style include.
4410echo "include confinc" > confmf
4411# Ignore all kinds of additional output from 'make'.
4412case `$am_make -s -f confmf 2> /dev/null` in #(
4413*the\ am__doit\ target*)
4414  am__include=include
4415  am__quote=
4416  _am_result=GNU
4417  ;;
4418esac
4419# Now try BSD make style include.
4420if test "$am__include" = "#"; then
4421   echo '.include "confinc"' > confmf
4422   case `$am_make -s -f confmf 2> /dev/null` in #(
4423   *the\ am__doit\ target*)
4424     am__include=.include
4425     am__quote="\""
4426     _am_result=BSD
4427     ;;
4428   esac
4429fi
4430
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4433$as_echo "$_am_result" >&6; }
4434rm -f confinc confmf
4435
4436# Check whether --enable-dependency-tracking was given.
4437if test "${enable_dependency_tracking+set}" = set; then :
4438  enableval=$enable_dependency_tracking;
4439fi
4440
4441if test "x$enable_dependency_tracking" != xno; then
4442  am_depcomp="$ac_aux_dir/depcomp"
4443  AMDEPBACKSLASH='\'
4444  am__nodep='_no'
4445fi
4446 if test "x$enable_dependency_tracking" != xno; then
4447  AMDEP_TRUE=
4448  AMDEP_FALSE='#'
4449else
4450  AMDEP_TRUE='#'
4451  AMDEP_FALSE=
4452fi
4453
4454
4455
4456depcc="$CC"   am_compiler_list=
4457
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4459$as_echo_n "checking dependency style of $depcc... " >&6; }
4460if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4461  $as_echo_n "(cached) " >&6
4462else
4463  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4464  # We make a subdir and do the tests there.  Otherwise we can end up
4465  # making bogus files that we don't know about and never remove.  For
4466  # instance it was reported that on HP-UX the gcc test will end up
4467  # making a dummy file named 'D' -- because '-MD' means "put the output
4468  # in D".
4469  rm -rf conftest.dir
4470  mkdir conftest.dir
4471  # Copy depcomp to subdir because otherwise we won't find it if we're
4472  # using a relative directory.
4473  cp "$am_depcomp" conftest.dir
4474  cd conftest.dir
4475  # We will build objects and dependencies in a subdirectory because
4476  # it helps to detect inapplicable dependency modes.  For instance
4477  # both Tru64's cc and ICC support -MD to output dependencies as a
4478  # side effect of compilation, but ICC will put the dependencies in
4479  # the current directory while Tru64 will put them in the object
4480  # directory.
4481  mkdir sub
4482
4483  am_cv_CC_dependencies_compiler_type=none
4484  if test "$am_compiler_list" = ""; then
4485     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4486  fi
4487  am__universal=false
4488  case " $depcc " in #(
4489     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4490     esac
4491
4492  for depmode in $am_compiler_list; do
4493    # Setup a source with many dependencies, because some compilers
4494    # like to wrap large dependency lists on column 80 (with \), and
4495    # we should not choose a depcomp mode which is confused by this.
4496    #
4497    # We need to recreate these files for each test, as the compiler may
4498    # overwrite some of them when testing with obscure command lines.
4499    # This happens at least with the AIX C compiler.
4500    : > sub/conftest.c
4501    for i in 1 2 3 4 5 6; do
4502      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4503      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4504      # Solaris 10 /bin/sh.
4505      echo '/* dummy */' > sub/conftst$i.h
4506    done
4507    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4508
4509    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4510    # mode.  It turns out that the SunPro C++ compiler does not properly
4511    # handle '-M -o', and we need to detect this.  Also, some Intel
4512    # versions had trouble with output in subdirs.
4513    am__obj=sub/conftest.${OBJEXT-o}
4514    am__minus_obj="-o $am__obj"
4515    case $depmode in
4516    gcc)
4517      # This depmode causes a compiler race in universal mode.
4518      test "$am__universal" = false || continue
4519      ;;
4520    nosideeffect)
4521      # After this tag, mechanisms are not by side-effect, so they'll
4522      # only be used when explicitly requested.
4523      if test "x$enable_dependency_tracking" = xyes; then
4524	continue
4525      else
4526	break
4527      fi
4528      ;;
4529    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4530      # This compiler won't grok '-c -o', but also, the minuso test has
4531      # not run yet.  These depmodes are late enough in the game, and
4532      # so weak that their functioning should not be impacted.
4533      am__obj=conftest.${OBJEXT-o}
4534      am__minus_obj=
4535      ;;
4536    none) break ;;
4537    esac
4538    if depmode=$depmode \
4539       source=sub/conftest.c object=$am__obj \
4540       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4541       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4542         >/dev/null 2>conftest.err &&
4543       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4544       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4545       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4546       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4547      # icc doesn't choke on unknown options, it will just issue warnings
4548      # or remarks (even with -Werror).  So we grep stderr for any message
4549      # that says an option was ignored or not supported.
4550      # When given -MP, icc 7.0 and 7.1 complain thusly:
4551      #   icc: Command line warning: ignoring option '-M'; no argument required
4552      # The diagnosis changed in icc 8.0:
4553      #   icc: Command line remark: option '-MP' not supported
4554      if (grep 'ignoring option' conftest.err ||
4555          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4556        am_cv_CC_dependencies_compiler_type=$depmode
4557        break
4558      fi
4559    fi
4560  done
4561
4562  cd ..
4563  rm -rf conftest.dir
4564else
4565  am_cv_CC_dependencies_compiler_type=none
4566fi
4567
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4570$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4571CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4572
4573 if
4574  test "x$enable_dependency_tracking" != xno \
4575  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4576  am__fastdepCC_TRUE=
4577  am__fastdepCC_FALSE='#'
4578else
4579  am__fastdepCC_TRUE='#'
4580  am__fastdepCC_FALSE=
4581fi
4582
4583
4584ac_ext=cpp
4585ac_cpp='$CXXCPP $CPPFLAGS'
4586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4589if test -z "$CXX"; then
4590  if test -n "$CCC"; then
4591    CXX=$CCC
4592  else
4593    if test -n "$ac_tool_prefix"; then
4594  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4595  do
4596    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599$as_echo_n "checking for $ac_word... " >&6; }
4600if ${ac_cv_prog_CXX+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  if test -n "$CXX"; then
4604  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4605else
4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609  IFS=$as_save_IFS
4610  test -z "$as_dir" && as_dir=.
4611    for ac_exec_ext in '' $ac_executable_extensions; do
4612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615    break 2
4616  fi
4617done
4618  done
4619IFS=$as_save_IFS
4620
4621fi
4622fi
4623CXX=$ac_cv_prog_CXX
4624if test -n "$CXX"; then
4625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4626$as_echo "$CXX" >&6; }
4627else
4628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629$as_echo "no" >&6; }
4630fi
4631
4632
4633    test -n "$CXX" && break
4634  done
4635fi
4636if test -z "$CXX"; then
4637  ac_ct_CXX=$CXX
4638  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4639do
4640  # Extract the first word of "$ac_prog", so it can be a program name with args.
4641set dummy $ac_prog; ac_word=$2
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643$as_echo_n "checking for $ac_word... " >&6; }
4644if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  if test -n "$ac_ct_CXX"; then
4648  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653  IFS=$as_save_IFS
4654  test -z "$as_dir" && as_dir=.
4655    for ac_exec_ext in '' $ac_executable_extensions; do
4656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657    ac_cv_prog_ac_ct_CXX="$ac_prog"
4658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659    break 2
4660  fi
4661done
4662  done
4663IFS=$as_save_IFS
4664
4665fi
4666fi
4667ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4668if test -n "$ac_ct_CXX"; then
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4670$as_echo "$ac_ct_CXX" >&6; }
4671else
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673$as_echo "no" >&6; }
4674fi
4675
4676
4677  test -n "$ac_ct_CXX" && break
4678done
4679
4680  if test "x$ac_ct_CXX" = x; then
4681    CXX="g++"
4682  else
4683    case $cross_compiling:$ac_tool_warned in
4684yes:)
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687ac_tool_warned=yes ;;
4688esac
4689    CXX=$ac_ct_CXX
4690  fi
4691fi
4692
4693  fi
4694fi
4695# Provide some information about the compiler.
4696$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4697set X $ac_compile
4698ac_compiler=$2
4699for ac_option in --version -v -V -qversion; do
4700  { { ac_try="$ac_compiler $ac_option >&5"
4701case "(($ac_try" in
4702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703  *) ac_try_echo=$ac_try;;
4704esac
4705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706$as_echo "$ac_try_echo"; } >&5
4707  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4708  ac_status=$?
4709  if test -s conftest.err; then
4710    sed '10a\
4711... rest of stderr output deleted ...
4712         10q' conftest.err >conftest.er1
4713    cat conftest.er1 >&5
4714  fi
4715  rm -f conftest.er1 conftest.err
4716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717  test $ac_status = 0; }
4718done
4719
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4721$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4722if ${ac_cv_cxx_compiler_gnu+:} false; then :
4723  $as_echo_n "(cached) " >&6
4724else
4725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h.  */
4727
4728int
4729main ()
4730{
4731#ifndef __GNUC__
4732       choke me
4733#endif
4734
4735  ;
4736  return 0;
4737}
4738_ACEOF
4739if ac_fn_cxx_try_compile "$LINENO"; then :
4740  ac_compiler_gnu=yes
4741else
4742  ac_compiler_gnu=no
4743fi
4744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4746
4747fi
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4749$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4750if test $ac_compiler_gnu = yes; then
4751  GXX=yes
4752else
4753  GXX=
4754fi
4755ac_test_CXXFLAGS=${CXXFLAGS+set}
4756ac_save_CXXFLAGS=$CXXFLAGS
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4758$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4759if ${ac_cv_prog_cxx_g+:} false; then :
4760  $as_echo_n "(cached) " >&6
4761else
4762  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4763   ac_cxx_werror_flag=yes
4764   ac_cv_prog_cxx_g=no
4765   CXXFLAGS="-g"
4766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h.  */
4768
4769int
4770main ()
4771{
4772
4773  ;
4774  return 0;
4775}
4776_ACEOF
4777if ac_fn_cxx_try_compile "$LINENO"; then :
4778  ac_cv_prog_cxx_g=yes
4779else
4780  CXXFLAGS=""
4781      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h.  */
4783
4784int
4785main ()
4786{
4787
4788  ;
4789  return 0;
4790}
4791_ACEOF
4792if ac_fn_cxx_try_compile "$LINENO"; then :
4793
4794else
4795  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4796	 CXXFLAGS="-g"
4797	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h.  */
4799
4800int
4801main ()
4802{
4803
4804  ;
4805  return 0;
4806}
4807_ACEOF
4808if ac_fn_cxx_try_compile "$LINENO"; then :
4809  ac_cv_prog_cxx_g=yes
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4819$as_echo "$ac_cv_prog_cxx_g" >&6; }
4820if test "$ac_test_CXXFLAGS" = set; then
4821  CXXFLAGS=$ac_save_CXXFLAGS
4822elif test $ac_cv_prog_cxx_g = yes; then
4823  if test "$GXX" = yes; then
4824    CXXFLAGS="-g -O2"
4825  else
4826    CXXFLAGS="-g"
4827  fi
4828else
4829  if test "$GXX" = yes; then
4830    CXXFLAGS="-O2"
4831  else
4832    CXXFLAGS=
4833  fi
4834fi
4835ac_ext=c
4836ac_cpp='$CPP $CPPFLAGS'
4837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
4841depcc="$CXX"  am_compiler_list=
4842
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4844$as_echo_n "checking dependency style of $depcc... " >&6; }
4845if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4849  # We make a subdir and do the tests there.  Otherwise we can end up
4850  # making bogus files that we don't know about and never remove.  For
4851  # instance it was reported that on HP-UX the gcc test will end up
4852  # making a dummy file named 'D' -- because '-MD' means "put the output
4853  # in D".
4854  rm -rf conftest.dir
4855  mkdir conftest.dir
4856  # Copy depcomp to subdir because otherwise we won't find it if we're
4857  # using a relative directory.
4858  cp "$am_depcomp" conftest.dir
4859  cd conftest.dir
4860  # We will build objects and dependencies in a subdirectory because
4861  # it helps to detect inapplicable dependency modes.  For instance
4862  # both Tru64's cc and ICC support -MD to output dependencies as a
4863  # side effect of compilation, but ICC will put the dependencies in
4864  # the current directory while Tru64 will put them in the object
4865  # directory.
4866  mkdir sub
4867
4868  am_cv_CXX_dependencies_compiler_type=none
4869  if test "$am_compiler_list" = ""; then
4870     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4871  fi
4872  am__universal=false
4873  case " $depcc " in #(
4874     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4875     esac
4876
4877  for depmode in $am_compiler_list; do
4878    # Setup a source with many dependencies, because some compilers
4879    # like to wrap large dependency lists on column 80 (with \), and
4880    # we should not choose a depcomp mode which is confused by this.
4881    #
4882    # We need to recreate these files for each test, as the compiler may
4883    # overwrite some of them when testing with obscure command lines.
4884    # This happens at least with the AIX C compiler.
4885    : > sub/conftest.c
4886    for i in 1 2 3 4 5 6; do
4887      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4888      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4889      # Solaris 10 /bin/sh.
4890      echo '/* dummy */' > sub/conftst$i.h
4891    done
4892    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4893
4894    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4895    # mode.  It turns out that the SunPro C++ compiler does not properly
4896    # handle '-M -o', and we need to detect this.  Also, some Intel
4897    # versions had trouble with output in subdirs.
4898    am__obj=sub/conftest.${OBJEXT-o}
4899    am__minus_obj="-o $am__obj"
4900    case $depmode in
4901    gcc)
4902      # This depmode causes a compiler race in universal mode.
4903      test "$am__universal" = false || continue
4904      ;;
4905    nosideeffect)
4906      # After this tag, mechanisms are not by side-effect, so they'll
4907      # only be used when explicitly requested.
4908      if test "x$enable_dependency_tracking" = xyes; then
4909	continue
4910      else
4911	break
4912      fi
4913      ;;
4914    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4915      # This compiler won't grok '-c -o', but also, the minuso test has
4916      # not run yet.  These depmodes are late enough in the game, and
4917      # so weak that their functioning should not be impacted.
4918      am__obj=conftest.${OBJEXT-o}
4919      am__minus_obj=
4920      ;;
4921    none) break ;;
4922    esac
4923    if depmode=$depmode \
4924       source=sub/conftest.c object=$am__obj \
4925       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4926       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4927         >/dev/null 2>conftest.err &&
4928       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4929       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4930       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4931       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4932      # icc doesn't choke on unknown options, it will just issue warnings
4933      # or remarks (even with -Werror).  So we grep stderr for any message
4934      # that says an option was ignored or not supported.
4935      # When given -MP, icc 7.0 and 7.1 complain thusly:
4936      #   icc: Command line warning: ignoring option '-M'; no argument required
4937      # The diagnosis changed in icc 8.0:
4938      #   icc: Command line remark: option '-MP' not supported
4939      if (grep 'ignoring option' conftest.err ||
4940          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4941        am_cv_CXX_dependencies_compiler_type=$depmode
4942        break
4943      fi
4944    fi
4945  done
4946
4947  cd ..
4948  rm -rf conftest.dir
4949else
4950  am_cv_CXX_dependencies_compiler_type=none
4951fi
4952
4953fi
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4955$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4956CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4957
4958 if
4959  test "x$enable_dependency_tracking" != xno \
4960  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4961  am__fastdepCXX_TRUE=
4962  am__fastdepCXX_FALSE='#'
4963else
4964  am__fastdepCXX_TRUE='#'
4965  am__fastdepCXX_FALSE=
4966fi
4967
4968
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4970$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4971if ${ac_cv_path_GREP+:} false; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  if test -z "$GREP"; then
4975  ac_path_GREP_found=false
4976  # Loop through the user's path and test for each of PROGNAME-LIST
4977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982    for ac_prog in grep ggrep; do
4983    for ac_exec_ext in '' $ac_executable_extensions; do
4984      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4985      as_fn_executable_p "$ac_path_GREP" || continue
4986# Check for GNU ac_path_GREP and select it if it is found.
4987  # Check for GNU $ac_path_GREP
4988case `"$ac_path_GREP" --version 2>&1` in
4989*GNU*)
4990  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4991*)
4992  ac_count=0
4993  $as_echo_n 0123456789 >"conftest.in"
4994  while :
4995  do
4996    cat "conftest.in" "conftest.in" >"conftest.tmp"
4997    mv "conftest.tmp" "conftest.in"
4998    cp "conftest.in" "conftest.nl"
4999    $as_echo 'GREP' >> "conftest.nl"
5000    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002    as_fn_arith $ac_count + 1 && ac_count=$as_val
5003    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5004      # Best one so far, save it but keep looking for a better one
5005      ac_cv_path_GREP="$ac_path_GREP"
5006      ac_path_GREP_max=$ac_count
5007    fi
5008    # 10*(2^10) chars as input seems more than enough
5009    test $ac_count -gt 10 && break
5010  done
5011  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5012esac
5013
5014      $ac_path_GREP_found && break 3
5015    done
5016  done
5017  done
5018IFS=$as_save_IFS
5019  if test -z "$ac_cv_path_GREP"; then
5020    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5021  fi
5022else
5023  ac_cv_path_GREP=$GREP
5024fi
5025
5026fi
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5028$as_echo "$ac_cv_path_GREP" >&6; }
5029 GREP="$ac_cv_path_GREP"
5030
5031
5032
5033ac_ext=c
5034ac_cpp='$CPP $CPPFLAGS'
5035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5039$as_echo_n "checking how to run the C preprocessor... " >&6; }
5040# On Suns, sometimes $CPP names a directory.
5041if test -n "$CPP" && test -d "$CPP"; then
5042  CPP=
5043fi
5044if test -z "$CPP"; then
5045  if ${ac_cv_prog_CPP+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048      # Double quotes because CPP needs to be expanded
5049    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5050    do
5051      ac_preproc_ok=false
5052for ac_c_preproc_warn_flag in '' yes
5053do
5054  # Use a header file that comes with gcc, so configuring glibc
5055  # with a fresh cross-compiler works.
5056  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057  # <limits.h> exists even on freestanding compilers.
5058  # On the NeXT, cc -E runs the code through the compiler's parser,
5059  # not just through cpp. "Syntax error" is here to catch this case.
5060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h.  */
5062#ifdef __STDC__
5063# include <limits.h>
5064#else
5065# include <assert.h>
5066#endif
5067		     Syntax error
5068_ACEOF
5069if ac_fn_c_try_cpp "$LINENO"; then :
5070
5071else
5072  # Broken: fails on valid input.
5073continue
5074fi
5075rm -f conftest.err conftest.i conftest.$ac_ext
5076
5077  # OK, works on sane cases.  Now check whether nonexistent headers
5078  # can be detected and how.
5079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h.  */
5081#include <ac_nonexistent.h>
5082_ACEOF
5083if ac_fn_c_try_cpp "$LINENO"; then :
5084  # Broken: success on invalid input.
5085continue
5086else
5087  # Passes both tests.
5088ac_preproc_ok=:
5089break
5090fi
5091rm -f conftest.err conftest.i conftest.$ac_ext
5092
5093done
5094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095rm -f conftest.i conftest.err conftest.$ac_ext
5096if $ac_preproc_ok; then :
5097  break
5098fi
5099
5100    done
5101    ac_cv_prog_CPP=$CPP
5102
5103fi
5104  CPP=$ac_cv_prog_CPP
5105else
5106  ac_cv_prog_CPP=$CPP
5107fi
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5109$as_echo "$CPP" >&6; }
5110ac_preproc_ok=false
5111for ac_c_preproc_warn_flag in '' yes
5112do
5113  # Use a header file that comes with gcc, so configuring glibc
5114  # with a fresh cross-compiler works.
5115  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116  # <limits.h> exists even on freestanding compilers.
5117  # On the NeXT, cc -E runs the code through the compiler's parser,
5118  # not just through cpp. "Syntax error" is here to catch this case.
5119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121#ifdef __STDC__
5122# include <limits.h>
5123#else
5124# include <assert.h>
5125#endif
5126		     Syntax error
5127_ACEOF
5128if ac_fn_c_try_cpp "$LINENO"; then :
5129
5130else
5131  # Broken: fails on valid input.
5132continue
5133fi
5134rm -f conftest.err conftest.i conftest.$ac_ext
5135
5136  # OK, works on sane cases.  Now check whether nonexistent headers
5137  # can be detected and how.
5138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140#include <ac_nonexistent.h>
5141_ACEOF
5142if ac_fn_c_try_cpp "$LINENO"; then :
5143  # Broken: success on invalid input.
5144continue
5145else
5146  # Passes both tests.
5147ac_preproc_ok=:
5148break
5149fi
5150rm -f conftest.err conftest.i conftest.$ac_ext
5151
5152done
5153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154rm -f conftest.i conftest.err conftest.$ac_ext
5155if $ac_preproc_ok; then :
5156
5157else
5158  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5160as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5161See \`config.log' for more details" "$LINENO" 5; }
5162fi
5163
5164ac_ext=c
5165ac_cpp='$CPP $CPPFLAGS'
5166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169
5170
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5172$as_echo_n "checking for egrep... " >&6; }
5173if ${ac_cv_path_EGREP+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5177   then ac_cv_path_EGREP="$GREP -E"
5178   else
5179     if test -z "$EGREP"; then
5180  ac_path_EGREP_found=false
5181  # Loop through the user's path and test for each of PROGNAME-LIST
5182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5184do
5185  IFS=$as_save_IFS
5186  test -z "$as_dir" && as_dir=.
5187    for ac_prog in egrep; do
5188    for ac_exec_ext in '' $ac_executable_extensions; do
5189      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5190      as_fn_executable_p "$ac_path_EGREP" || continue
5191# Check for GNU ac_path_EGREP and select it if it is found.
5192  # Check for GNU $ac_path_EGREP
5193case `"$ac_path_EGREP" --version 2>&1` in
5194*GNU*)
5195  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5196*)
5197  ac_count=0
5198  $as_echo_n 0123456789 >"conftest.in"
5199  while :
5200  do
5201    cat "conftest.in" "conftest.in" >"conftest.tmp"
5202    mv "conftest.tmp" "conftest.in"
5203    cp "conftest.in" "conftest.nl"
5204    $as_echo 'EGREP' >> "conftest.nl"
5205    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207    as_fn_arith $ac_count + 1 && ac_count=$as_val
5208    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209      # Best one so far, save it but keep looking for a better one
5210      ac_cv_path_EGREP="$ac_path_EGREP"
5211      ac_path_EGREP_max=$ac_count
5212    fi
5213    # 10*(2^10) chars as input seems more than enough
5214    test $ac_count -gt 10 && break
5215  done
5216  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217esac
5218
5219      $ac_path_EGREP_found && break 3
5220    done
5221  done
5222  done
5223IFS=$as_save_IFS
5224  if test -z "$ac_cv_path_EGREP"; then
5225    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226  fi
5227else
5228  ac_cv_path_EGREP=$EGREP
5229fi
5230
5231   fi
5232fi
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5234$as_echo "$ac_cv_path_EGREP" >&6; }
5235 EGREP="$ac_cv_path_EGREP"
5236
5237
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5239$as_echo_n "checking for ANSI C header files... " >&6; }
5240if ${ac_cv_header_stdc+:} false; then :
5241  $as_echo_n "(cached) " >&6
5242else
5243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h.  */
5245#include <stdlib.h>
5246#include <stdarg.h>
5247#include <string.h>
5248#include <float.h>
5249
5250int
5251main ()
5252{
5253
5254  ;
5255  return 0;
5256}
5257_ACEOF
5258if ac_fn_c_try_compile "$LINENO"; then :
5259  ac_cv_header_stdc=yes
5260else
5261  ac_cv_header_stdc=no
5262fi
5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264
5265if test $ac_cv_header_stdc = yes; then
5266  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268/* end confdefs.h.  */
5269#include <string.h>
5270
5271_ACEOF
5272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273  $EGREP "memchr" >/dev/null 2>&1; then :
5274
5275else
5276  ac_cv_header_stdc=no
5277fi
5278rm -f conftest*
5279
5280fi
5281
5282if test $ac_cv_header_stdc = yes; then
5283  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286#include <stdlib.h>
5287
5288_ACEOF
5289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290  $EGREP "free" >/dev/null 2>&1; then :
5291
5292else
5293  ac_cv_header_stdc=no
5294fi
5295rm -f conftest*
5296
5297fi
5298
5299if test $ac_cv_header_stdc = yes; then
5300  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301  if test "$cross_compiling" = yes; then :
5302  :
5303else
5304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305/* end confdefs.h.  */
5306#include <ctype.h>
5307#include <stdlib.h>
5308#if ((' ' & 0x0FF) == 0x020)
5309# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5310# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5311#else
5312# define ISLOWER(c) \
5313		   (('a' <= (c) && (c) <= 'i') \
5314		     || ('j' <= (c) && (c) <= 'r') \
5315		     || ('s' <= (c) && (c) <= 'z'))
5316# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5317#endif
5318
5319#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5320int
5321main ()
5322{
5323  int i;
5324  for (i = 0; i < 256; i++)
5325    if (XOR (islower (i), ISLOWER (i))
5326	|| toupper (i) != TOUPPER (i))
5327      return 2;
5328  return 0;
5329}
5330_ACEOF
5331if ac_fn_c_try_run "$LINENO"; then :
5332
5333else
5334  ac_cv_header_stdc=no
5335fi
5336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5337  conftest.$ac_objext conftest.beam conftest.$ac_ext
5338fi
5339
5340fi
5341fi
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5343$as_echo "$ac_cv_header_stdc" >&6; }
5344if test $ac_cv_header_stdc = yes; then
5345
5346$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5347
5348fi
5349
5350# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5351for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5352		  inttypes.h stdint.h unistd.h
5353do :
5354  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5356"
5357if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5358  cat >>confdefs.h <<_ACEOF
5359#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360_ACEOF
5361
5362fi
5363
5364done
5365
5366
5367
5368  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5369if test "x$ac_cv_header_minix_config_h" = xyes; then :
5370  MINIX=yes
5371else
5372  MINIX=
5373fi
5374
5375
5376  if test "$MINIX" = yes; then
5377
5378$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5379
5380
5381$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5382
5383
5384$as_echo "#define _MINIX 1" >>confdefs.h
5385
5386  fi
5387
5388
5389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5390$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5391if ${ac_cv_safe_to_define___extensions__+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396
5397#         define __EXTENSIONS__ 1
5398          $ac_includes_default
5399int
5400main ()
5401{
5402
5403  ;
5404  return 0;
5405}
5406_ACEOF
5407if ac_fn_c_try_compile "$LINENO"; then :
5408  ac_cv_safe_to_define___extensions__=yes
5409else
5410  ac_cv_safe_to_define___extensions__=no
5411fi
5412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5415$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5416  test $ac_cv_safe_to_define___extensions__ = yes &&
5417    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5418
5419  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5420
5421  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5422
5423  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5424
5425  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5439	if test -n "$ac_tool_prefix"; then
5440  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5441set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443$as_echo_n "checking for $ac_word... " >&6; }
5444if ${ac_cv_path_PKG_CONFIG+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  case $PKG_CONFIG in
5448  [\\/]* | ?:[\\/]*)
5449  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5450  ;;
5451  *)
5452  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455  IFS=$as_save_IFS
5456  test -z "$as_dir" && as_dir=.
5457    for ac_exec_ext in '' $ac_executable_extensions; do
5458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461    break 2
5462  fi
5463done
5464  done
5465IFS=$as_save_IFS
5466
5467  ;;
5468esac
5469fi
5470PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5471if test -n "$PKG_CONFIG"; then
5472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5473$as_echo "$PKG_CONFIG" >&6; }
5474else
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476$as_echo "no" >&6; }
5477fi
5478
5479
5480fi
5481if test -z "$ac_cv_path_PKG_CONFIG"; then
5482  ac_pt_PKG_CONFIG=$PKG_CONFIG
5483  # Extract the first word of "pkg-config", so it can be a program name with args.
5484set dummy pkg-config; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
5487if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5488  $as_echo_n "(cached) " >&6
5489else
5490  case $ac_pt_PKG_CONFIG in
5491  [\\/]* | ?:[\\/]*)
5492  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5493  ;;
5494  *)
5495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498  IFS=$as_save_IFS
5499  test -z "$as_dir" && as_dir=.
5500    for ac_exec_ext in '' $ac_executable_extensions; do
5501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504    break 2
5505  fi
5506done
5507  done
5508IFS=$as_save_IFS
5509
5510  ;;
5511esac
5512fi
5513ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5514if test -n "$ac_pt_PKG_CONFIG"; then
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5516$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5517else
5518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }
5520fi
5521
5522  if test "x$ac_pt_PKG_CONFIG" = x; then
5523    PKG_CONFIG=""
5524  else
5525    case $cross_compiling:$ac_tool_warned in
5526yes:)
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529ac_tool_warned=yes ;;
5530esac
5531    PKG_CONFIG=$ac_pt_PKG_CONFIG
5532  fi
5533else
5534  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5535fi
5536
5537fi
5538if test -n "$PKG_CONFIG"; then
5539	_pkg_min_version=0.9.0
5540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5541$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5542	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5544$as_echo "yes" >&6; }
5545	else
5546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547$as_echo "no" >&6; }
5548		PKG_CONFIG=""
5549	fi
5550fi
5551
5552case `pwd` in
5553  *\ * | *\	*)
5554    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5555$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5556esac
5557
5558
5559
5560macro_version='2.2.7a'
5561macro_revision='1.3134'
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575ltmain="$ac_aux_dir/ltmain.sh"
5576
5577# Backslashify metacharacters that are still active within
5578# double-quoted strings.
5579sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5580
5581# Same as above, but do not quote variable references.
5582double_quote_subst='s/\(["`\\]\)/\\\1/g'
5583
5584# Sed substitution to delay expansion of an escaped shell variable in a
5585# double_quote_subst'ed string.
5586delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5587
5588# Sed substitution to delay expansion of an escaped single quote.
5589delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5590
5591# Sed substitution to avoid accidental globbing in evaled expressions
5592no_glob_subst='s/\*/\\\*/g'
5593
5594ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5595ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5596ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5597
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5599$as_echo_n "checking how to print strings... " >&6; }
5600# Test print first, because it will be a builtin if present.
5601if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5602   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5603  ECHO='print -r --'
5604elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5605  ECHO='printf %s\n'
5606else
5607  # Use this function as a fallback that always works.
5608  func_fallback_echo ()
5609  {
5610    eval 'cat <<_LTECHO_EOF
5611$1
5612_LTECHO_EOF'
5613  }
5614  ECHO='func_fallback_echo'
5615fi
5616
5617# func_echo_all arg...
5618# Invoke $ECHO with all args, space-separated.
5619func_echo_all ()
5620{
5621    $ECHO ""
5622}
5623
5624case "$ECHO" in
5625  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5626$as_echo "printf" >&6; } ;;
5627  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5628$as_echo "print -r" >&6; } ;;
5629  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5630$as_echo "cat" >&6; } ;;
5631esac
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5647$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5648if ${ac_cv_path_SED+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5652     for ac_i in 1 2 3 4 5 6 7; do
5653       ac_script="$ac_script$as_nl$ac_script"
5654     done
5655     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5656     { ac_script=; unset ac_script;}
5657     if test -z "$SED"; then
5658  ac_path_SED_found=false
5659  # Loop through the user's path and test for each of PROGNAME-LIST
5660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663  IFS=$as_save_IFS
5664  test -z "$as_dir" && as_dir=.
5665    for ac_prog in sed gsed; do
5666    for ac_exec_ext in '' $ac_executable_extensions; do
5667      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5668      as_fn_executable_p "$ac_path_SED" || continue
5669# Check for GNU ac_path_SED and select it if it is found.
5670  # Check for GNU $ac_path_SED
5671case `"$ac_path_SED" --version 2>&1` in
5672*GNU*)
5673  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5674*)
5675  ac_count=0
5676  $as_echo_n 0123456789 >"conftest.in"
5677  while :
5678  do
5679    cat "conftest.in" "conftest.in" >"conftest.tmp"
5680    mv "conftest.tmp" "conftest.in"
5681    cp "conftest.in" "conftest.nl"
5682    $as_echo '' >> "conftest.nl"
5683    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5684    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5685    as_fn_arith $ac_count + 1 && ac_count=$as_val
5686    if test $ac_count -gt ${ac_path_SED_max-0}; then
5687      # Best one so far, save it but keep looking for a better one
5688      ac_cv_path_SED="$ac_path_SED"
5689      ac_path_SED_max=$ac_count
5690    fi
5691    # 10*(2^10) chars as input seems more than enough
5692    test $ac_count -gt 10 && break
5693  done
5694  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5695esac
5696
5697      $ac_path_SED_found && break 3
5698    done
5699  done
5700  done
5701IFS=$as_save_IFS
5702  if test -z "$ac_cv_path_SED"; then
5703    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5704  fi
5705else
5706  ac_cv_path_SED=$SED
5707fi
5708
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5711$as_echo "$ac_cv_path_SED" >&6; }
5712 SED="$ac_cv_path_SED"
5713  rm -f conftest.sed
5714
5715test -z "$SED" && SED=sed
5716Xsed="$SED -e 1s/^X//"
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5729$as_echo_n "checking for fgrep... " >&6; }
5730if ${ac_cv_path_FGREP+:} false; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5734   then ac_cv_path_FGREP="$GREP -F"
5735   else
5736     if test -z "$FGREP"; then
5737  ac_path_FGREP_found=false
5738  # Loop through the user's path and test for each of PROGNAME-LIST
5739  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5741do
5742  IFS=$as_save_IFS
5743  test -z "$as_dir" && as_dir=.
5744    for ac_prog in fgrep; do
5745    for ac_exec_ext in '' $ac_executable_extensions; do
5746      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5747      as_fn_executable_p "$ac_path_FGREP" || continue
5748# Check for GNU ac_path_FGREP and select it if it is found.
5749  # Check for GNU $ac_path_FGREP
5750case `"$ac_path_FGREP" --version 2>&1` in
5751*GNU*)
5752  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5753*)
5754  ac_count=0
5755  $as_echo_n 0123456789 >"conftest.in"
5756  while :
5757  do
5758    cat "conftest.in" "conftest.in" >"conftest.tmp"
5759    mv "conftest.tmp" "conftest.in"
5760    cp "conftest.in" "conftest.nl"
5761    $as_echo 'FGREP' >> "conftest.nl"
5762    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764    as_fn_arith $ac_count + 1 && ac_count=$as_val
5765    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5766      # Best one so far, save it but keep looking for a better one
5767      ac_cv_path_FGREP="$ac_path_FGREP"
5768      ac_path_FGREP_max=$ac_count
5769    fi
5770    # 10*(2^10) chars as input seems more than enough
5771    test $ac_count -gt 10 && break
5772  done
5773  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774esac
5775
5776      $ac_path_FGREP_found && break 3
5777    done
5778  done
5779  done
5780IFS=$as_save_IFS
5781  if test -z "$ac_cv_path_FGREP"; then
5782    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5783  fi
5784else
5785  ac_cv_path_FGREP=$FGREP
5786fi
5787
5788   fi
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5791$as_echo "$ac_cv_path_FGREP" >&6; }
5792 FGREP="$ac_cv_path_FGREP"
5793
5794
5795test -z "$GREP" && GREP=grep
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815# Check whether --with-gnu-ld was given.
5816if test "${with_gnu_ld+set}" = set; then :
5817  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5818else
5819  with_gnu_ld=no
5820fi
5821
5822ac_prog=ld
5823if test "$GCC" = yes; then
5824  # Check if gcc -print-prog-name=ld gives a path.
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5826$as_echo_n "checking for ld used by $CC... " >&6; }
5827  case $host in
5828  *-*-mingw*)
5829    # gcc leaves a trailing carriage return which upsets mingw
5830    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5831  *)
5832    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5833  esac
5834  case $ac_prog in
5835    # Accept absolute paths.
5836    [\\/]* | ?:[\\/]*)
5837      re_direlt='/[^/][^/]*/\.\./'
5838      # Canonicalize the pathname of ld
5839      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5840      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5841	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5842      done
5843      test -z "$LD" && LD="$ac_prog"
5844      ;;
5845  "")
5846    # If it fails, then pretend we aren't using GCC.
5847    ac_prog=ld
5848    ;;
5849  *)
5850    # If it is relative, then search for the first ld in PATH.
5851    with_gnu_ld=unknown
5852    ;;
5853  esac
5854elif test "$with_gnu_ld" = yes; then
5855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5856$as_echo_n "checking for GNU ld... " >&6; }
5857else
5858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5859$as_echo_n "checking for non-GNU ld... " >&6; }
5860fi
5861if ${lt_cv_path_LD+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  if test -z "$LD"; then
5865  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5866  for ac_dir in $PATH; do
5867    IFS="$lt_save_ifs"
5868    test -z "$ac_dir" && ac_dir=.
5869    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5870      lt_cv_path_LD="$ac_dir/$ac_prog"
5871      # Check to see if the program is GNU ld.  I'd rather use --version,
5872      # but apparently some variants of GNU ld only accept -v.
5873      # Break only if it was the GNU/non-GNU ld that we prefer.
5874      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5875      *GNU* | *'with BFD'*)
5876	test "$with_gnu_ld" != no && break
5877	;;
5878      *)
5879	test "$with_gnu_ld" != yes && break
5880	;;
5881      esac
5882    fi
5883  done
5884  IFS="$lt_save_ifs"
5885else
5886  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5887fi
5888fi
5889
5890LD="$lt_cv_path_LD"
5891if test -n "$LD"; then
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5893$as_echo "$LD" >&6; }
5894else
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5900$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5901if ${lt_cv_prog_gnu_ld+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5905case `$LD -v 2>&1 </dev/null` in
5906*GNU* | *'with BFD'*)
5907  lt_cv_prog_gnu_ld=yes
5908  ;;
5909*)
5910  lt_cv_prog_gnu_ld=no
5911  ;;
5912esac
5913fi
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5915$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5916with_gnu_ld=$lt_cv_prog_gnu_ld
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5927$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5928if ${lt_cv_path_NM+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  if test -n "$NM"; then
5932   # Let the user override the nm to test.
5933   lt_nm_to_check="$NM"
5934 else
5935   lt_nm_to_check="${ac_tool_prefix}nm"
5936   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5937     lt_nm_to_check="$lt_nm_to_check nm"
5938   fi
5939 fi
5940 for lt_tmp_nm in "$lt_nm_to_check"; do
5941   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5942   for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5943     IFS="$lt_save_ifs"
5944     test -z "$ac_dir" && ac_dir=.
5945     # Strip out any user-provided options from the nm to test twice,
5946     # the first time to test to see if nm (rather than its options) has
5947     # an explicit path, the second time to yield a file which can be
5948     # nm'ed itself.
5949     tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5950     case "$tmp_nm_path" in
5951     */*|*\\*) tmp_nm="$lt_tmp_nm";;
5952     *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5953     esac
5954     tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5955     if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5956       # Check to see if the nm accepts a BSD-compat flag.
5957       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5958       #   nm: unknown option "B" ignored
5959       case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5960       *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5961	 break
5962	 ;;
5963       *)
5964	 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5965	 *$tmp_nm*)
5966	   lt_cv_path_NM="$tmp_nm -p"
5967	   break
5968	   ;;
5969	 *)
5970	   lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5971	   continue # so that we can try to find one that supports BSD flags
5972	   ;;
5973	 esac
5974	 ;;
5975       esac
5976     fi
5977   done
5978   IFS="$lt_save_ifs"
5979 done
5980 : ${lt_cv_path_NM=no}
5981fi
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5983$as_echo "$lt_cv_path_NM" >&6; }
5984if test "$lt_cv_path_NM" != "no"; then
5985  NM="$lt_cv_path_NM"
5986else
5987  # Didn't find any BSD compatible name lister, look for dumpbin.
5988  if test -n "$DUMPBIN"; then :
5989    # Let the user override the test.
5990  else
5991    if test -n "$ac_tool_prefix"; then
5992  for ac_prog in dumpbin "link -dump"
5993  do
5994    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997$as_echo_n "checking for $ac_word... " >&6; }
5998if ${ac_cv_prog_DUMPBIN+:} false; then :
5999  $as_echo_n "(cached) " >&6
6000else
6001  if test -n "$DUMPBIN"; then
6002  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007  IFS=$as_save_IFS
6008  test -z "$as_dir" && as_dir=.
6009    for ac_exec_ext in '' $ac_executable_extensions; do
6010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013    break 2
6014  fi
6015done
6016  done
6017IFS=$as_save_IFS
6018
6019fi
6020fi
6021DUMPBIN=$ac_cv_prog_DUMPBIN
6022if test -n "$DUMPBIN"; then
6023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6024$as_echo "$DUMPBIN" >&6; }
6025else
6026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
6028fi
6029
6030
6031    test -n "$DUMPBIN" && break
6032  done
6033fi
6034if test -z "$DUMPBIN"; then
6035  ac_ct_DUMPBIN=$DUMPBIN
6036  for ac_prog in dumpbin "link -dump"
6037do
6038  # Extract the first word of "$ac_prog", so it can be a program name with args.
6039set dummy $ac_prog; ac_word=$2
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041$as_echo_n "checking for $ac_word... " >&6; }
6042if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  if test -n "$ac_ct_DUMPBIN"; then
6046  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051  IFS=$as_save_IFS
6052  test -z "$as_dir" && as_dir=.
6053    for ac_exec_ext in '' $ac_executable_extensions; do
6054  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057    break 2
6058  fi
6059done
6060  done
6061IFS=$as_save_IFS
6062
6063fi
6064fi
6065ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6066if test -n "$ac_ct_DUMPBIN"; then
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6068$as_echo "$ac_ct_DUMPBIN" >&6; }
6069else
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
6072fi
6073
6074
6075  test -n "$ac_ct_DUMPBIN" && break
6076done
6077
6078  if test "x$ac_ct_DUMPBIN" = x; then
6079    DUMPBIN=":"
6080  else
6081    case $cross_compiling:$ac_tool_warned in
6082yes:)
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085ac_tool_warned=yes ;;
6086esac
6087    DUMPBIN=$ac_ct_DUMPBIN
6088  fi
6089fi
6090
6091    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6092    *COFF*)
6093      DUMPBIN="$DUMPBIN -symbols"
6094      ;;
6095    *)
6096      DUMPBIN=:
6097      ;;
6098    esac
6099  fi
6100
6101  if test "$DUMPBIN" != ":"; then
6102    NM="$DUMPBIN"
6103  fi
6104fi
6105test -z "$NM" && NM=nm
6106
6107
6108
6109
6110
6111
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6113$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6114if ${lt_cv_nm_interface+:} false; then :
6115  $as_echo_n "(cached) " >&6
6116else
6117  lt_cv_nm_interface="BSD nm"
6118  echo "int some_variable = 0;" > conftest.$ac_ext
6119  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6120  (eval "$ac_compile" 2>conftest.err)
6121  cat conftest.err >&5
6122  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6123  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6124  cat conftest.err >&5
6125  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6126  cat conftest.out >&5
6127  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6128    lt_cv_nm_interface="MS dumpbin"
6129  fi
6130  rm -f conftest*
6131fi
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6133$as_echo "$lt_cv_nm_interface" >&6; }
6134
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6136$as_echo_n "checking whether ln -s works... " >&6; }
6137LN_S=$as_ln_s
6138if test "$LN_S" = "ln -s"; then
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6140$as_echo "yes" >&6; }
6141else
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6143$as_echo "no, using $LN_S" >&6; }
6144fi
6145
6146# find the maximum length of command line arguments
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6148$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6149if ${lt_cv_sys_max_cmd_len+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152    i=0
6153  teststring="ABCD"
6154
6155  case $build_os in
6156  msdosdjgpp*)
6157    # On DJGPP, this test can blow up pretty badly due to problems in libc
6158    # (any single argument exceeding 2000 bytes causes a buffer overrun
6159    # during glob expansion).  Even if it were fixed, the result of this
6160    # check would be larger than it should be.
6161    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6162    ;;
6163
6164  gnu*)
6165    # Under GNU Hurd, this test is not required because there is
6166    # no limit to the length of command line arguments.
6167    # Libtool will interpret -1 as no limit whatsoever
6168    lt_cv_sys_max_cmd_len=-1;
6169    ;;
6170
6171  cygwin* | mingw* | cegcc*)
6172    # On Win9x/ME, this test blows up -- it succeeds, but takes
6173    # about 5 minutes as the teststring grows exponentially.
6174    # Worse, since 9x/ME are not pre-emptively multitasking,
6175    # you end up with a "frozen" computer, even though with patience
6176    # the test eventually succeeds (with a max line length of 256k).
6177    # Instead, let's just punt: use the minimum linelength reported by
6178    # all of the supported platforms: 8192 (on NT/2K/XP).
6179    lt_cv_sys_max_cmd_len=8192;
6180    ;;
6181
6182  mint*)
6183    # On MiNT this can take a long time and run out of memory.
6184    lt_cv_sys_max_cmd_len=8192;
6185    ;;
6186
6187  amigaos*)
6188    # On AmigaOS with pdksh, this test takes hours, literally.
6189    # So we just punt and use a minimum line length of 8192.
6190    lt_cv_sys_max_cmd_len=8192;
6191    ;;
6192
6193  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6194    # This has been around since 386BSD, at least.  Likely further.
6195    if test -x /sbin/sysctl; then
6196      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6197    elif test -x /usr/sbin/sysctl; then
6198      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6199    else
6200      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6201    fi
6202    # And add a safety zone
6203    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6204    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6205    ;;
6206
6207  interix*)
6208    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6209    lt_cv_sys_max_cmd_len=196608
6210    ;;
6211
6212  osf*)
6213    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6214    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6215    # nice to cause kernel panics so lets avoid the loop below.
6216    # First set a reasonable default.
6217    lt_cv_sys_max_cmd_len=16384
6218    #
6219    if test -x /sbin/sysconfig; then
6220      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6221        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6222      esac
6223    fi
6224    ;;
6225  sco3.2v5*)
6226    lt_cv_sys_max_cmd_len=102400
6227    ;;
6228  sysv5* | sco5v6* | sysv4.2uw2*)
6229    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6230    if test -n "$kargmax"; then
6231      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6232    else
6233      lt_cv_sys_max_cmd_len=32768
6234    fi
6235    ;;
6236  *)
6237    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6238    if test -n "$lt_cv_sys_max_cmd_len"; then
6239      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6240      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6241    else
6242      # Make teststring a little bigger before we do anything with it.
6243      # a 1K string should be a reasonable start.
6244      for i in 1 2 3 4 5 6 7 8 ; do
6245        teststring=$teststring$teststring
6246      done
6247      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6248      # If test is not a shell built-in, we'll probably end up computing a
6249      # maximum length that is only half of the actual maximum length, but
6250      # we can't tell.
6251      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6252	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6253	      test $i != 17 # 1/2 MB should be enough
6254      do
6255        i=`expr $i + 1`
6256        teststring=$teststring$teststring
6257      done
6258      # Only check the string length outside the loop.
6259      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6260      teststring=
6261      # Add a significant safety factor because C++ compilers can tack on
6262      # massive amounts of additional arguments before passing them to the
6263      # linker.  It appears as though 1/2 is a usable value.
6264      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6265    fi
6266    ;;
6267  esac
6268
6269fi
6270
6271if test -n $lt_cv_sys_max_cmd_len ; then
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6273$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6274else
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6276$as_echo "none" >&6; }
6277fi
6278max_cmd_len=$lt_cv_sys_max_cmd_len
6279
6280
6281
6282
6283
6284
6285: ${CP="cp -f"}
6286: ${MV="mv -f"}
6287: ${RM="rm -f"}
6288
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6290$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6291# Try some XSI features
6292xsi_shell=no
6293( _lt_dummy="a/b/c"
6294  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6295      = c,a/b,, \
6296    && eval 'test $(( 1 + 1 )) -eq 2 \
6297    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6298  && xsi_shell=yes
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6300$as_echo "$xsi_shell" >&6; }
6301
6302
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6304$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6305lt_shell_append=no
6306( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6307    >/dev/null 2>&1 \
6308  && lt_shell_append=yes
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6310$as_echo "$lt_shell_append" >&6; }
6311
6312
6313if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6314  lt_unset=unset
6315else
6316  lt_unset=false
6317fi
6318
6319
6320
6321
6322
6323# test EBCDIC or ASCII
6324case `echo X|tr X '\101'` in
6325 A) # ASCII based system
6326    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6327  lt_SP2NL='tr \040 \012'
6328  lt_NL2SP='tr \015\012 \040\040'
6329  ;;
6330 *) # EBCDIC based system
6331  lt_SP2NL='tr \100 \n'
6332  lt_NL2SP='tr \r\n \100\100'
6333  ;;
6334esac
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6345$as_echo_n "checking for $LD option to reload object files... " >&6; }
6346if ${lt_cv_ld_reload_flag+:} false; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349  lt_cv_ld_reload_flag='-r'
6350fi
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6352$as_echo "$lt_cv_ld_reload_flag" >&6; }
6353reload_flag=$lt_cv_ld_reload_flag
6354case $reload_flag in
6355"" | " "*) ;;
6356*) reload_flag=" $reload_flag" ;;
6357esac
6358reload_cmds='$LD$reload_flag -o $output$reload_objs'
6359case $host_os in
6360  darwin*)
6361    if test "$GCC" = yes; then
6362      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6363    else
6364      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365    fi
6366    ;;
6367esac
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377if test -n "$ac_tool_prefix"; then
6378  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6379set dummy ${ac_tool_prefix}objdump; ac_word=$2
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381$as_echo_n "checking for $ac_word... " >&6; }
6382if ${ac_cv_prog_OBJDUMP+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  if test -n "$OBJDUMP"; then
6386  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391  IFS=$as_save_IFS
6392  test -z "$as_dir" && as_dir=.
6393    for ac_exec_ext in '' $ac_executable_extensions; do
6394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397    break 2
6398  fi
6399done
6400  done
6401IFS=$as_save_IFS
6402
6403fi
6404fi
6405OBJDUMP=$ac_cv_prog_OBJDUMP
6406if test -n "$OBJDUMP"; then
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6408$as_echo "$OBJDUMP" >&6; }
6409else
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414
6415fi
6416if test -z "$ac_cv_prog_OBJDUMP"; then
6417  ac_ct_OBJDUMP=$OBJDUMP
6418  # Extract the first word of "objdump", so it can be a program name with args.
6419set dummy objdump; ac_word=$2
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421$as_echo_n "checking for $ac_word... " >&6; }
6422if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6423  $as_echo_n "(cached) " >&6
6424else
6425  if test -n "$ac_ct_OBJDUMP"; then
6426  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6427else
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431  IFS=$as_save_IFS
6432  test -z "$as_dir" && as_dir=.
6433    for ac_exec_ext in '' $ac_executable_extensions; do
6434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437    break 2
6438  fi
6439done
6440  done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6446if test -n "$ac_ct_OBJDUMP"; then
6447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6448$as_echo "$ac_ct_OBJDUMP" >&6; }
6449else
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451$as_echo "no" >&6; }
6452fi
6453
6454  if test "x$ac_ct_OBJDUMP" = x; then
6455    OBJDUMP="false"
6456  else
6457    case $cross_compiling:$ac_tool_warned in
6458yes:)
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461ac_tool_warned=yes ;;
6462esac
6463    OBJDUMP=$ac_ct_OBJDUMP
6464  fi
6465else
6466  OBJDUMP="$ac_cv_prog_OBJDUMP"
6467fi
6468
6469test -z "$OBJDUMP" && OBJDUMP=objdump
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6480$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6481if ${lt_cv_deplibs_check_method+:} false; then :
6482  $as_echo_n "(cached) " >&6
6483else
6484  lt_cv_file_magic_cmd='$MAGIC_CMD'
6485lt_cv_file_magic_test_file=
6486lt_cv_deplibs_check_method='unknown'
6487# Need to set the preceding variable on all platforms that support
6488# interlibrary dependencies.
6489# 'none' -- dependencies not supported.
6490# `unknown' -- same as none, but documents that we really don't know.
6491# 'pass_all' -- all dependencies passed with no checks.
6492# 'test_compile' -- check by making test program.
6493# 'file_magic [[regex]]' -- check by looking for files in library path
6494# which responds to the $file_magic_cmd with a given extended regex.
6495# If you have `file' or equivalent on your system and you're not sure
6496# whether `pass_all' will *always* work, you probably want this one.
6497
6498case $host_os in
6499aix[4-9]*)
6500  lt_cv_deplibs_check_method=pass_all
6501  ;;
6502
6503beos*)
6504  lt_cv_deplibs_check_method=pass_all
6505  ;;
6506
6507bsdi[45]*)
6508  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6509  lt_cv_file_magic_cmd='/usr/bin/file -L'
6510  lt_cv_file_magic_test_file=/shlib/libc.so
6511  ;;
6512
6513cygwin*)
6514  # func_win32_libid is a shell function defined in ltmain.sh
6515  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6516  lt_cv_file_magic_cmd='func_win32_libid'
6517  ;;
6518
6519mingw* | pw32*)
6520  # Base MSYS/MinGW do not provide the 'file' command needed by
6521  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6522  # unless we find 'file', for example because we are cross-compiling.
6523  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6524  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6525    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6526    lt_cv_file_magic_cmd='func_win32_libid'
6527  else
6528    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6529    lt_cv_file_magic_cmd='$OBJDUMP -f'
6530  fi
6531  ;;
6532
6533cegcc*)
6534  # use the weaker test based on 'objdump'. See mingw*.
6535  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6536  lt_cv_file_magic_cmd='$OBJDUMP -f'
6537  ;;
6538
6539darwin* | rhapsody*)
6540  lt_cv_deplibs_check_method=pass_all
6541  ;;
6542
6543freebsd* | dragonfly*)
6544  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6545    case $host_cpu in
6546    i*86 )
6547      # Not sure whether the presence of OpenBSD here was a mistake.
6548      # Let's accept both of them until this is cleared up.
6549      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6550      lt_cv_file_magic_cmd=/usr/bin/file
6551      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6552      ;;
6553    esac
6554  else
6555    lt_cv_deplibs_check_method=pass_all
6556  fi
6557  ;;
6558
6559gnu*)
6560  lt_cv_deplibs_check_method=pass_all
6561  ;;
6562
6563haiku*)
6564  lt_cv_deplibs_check_method=pass_all
6565  ;;
6566
6567hpux10.20* | hpux11*)
6568  lt_cv_file_magic_cmd=/usr/bin/file
6569  case $host_cpu in
6570  ia64*)
6571    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6572    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6573    ;;
6574  hppa*64*)
6575    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]'
6576    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6577    ;;
6578  *)
6579    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6580    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6581    ;;
6582  esac
6583  ;;
6584
6585interix[3-9]*)
6586  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6587  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6588  ;;
6589
6590irix5* | irix6* | nonstopux*)
6591  case $LD in
6592  *-32|*"-32 ") libmagic=32-bit;;
6593  *-n32|*"-n32 ") libmagic=N32;;
6594  *-64|*"-64 ") libmagic=64-bit;;
6595  *) libmagic=never-match;;
6596  esac
6597  lt_cv_deplibs_check_method=pass_all
6598  ;;
6599
6600# This must be Linux ELF.
6601linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6602  lt_cv_deplibs_check_method=pass_all
6603  ;;
6604
6605netbsd*)
6606  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6607    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6608  else
6609    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6610  fi
6611  ;;
6612
6613newos6*)
6614  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6615  lt_cv_file_magic_cmd=/usr/bin/file
6616  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6617  ;;
6618
6619*nto* | *qnx*)
6620  lt_cv_deplibs_check_method=pass_all
6621  ;;
6622
6623openbsd*)
6624  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6625    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6626  else
6627    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6628  fi
6629  ;;
6630
6631osf3* | osf4* | osf5*)
6632  lt_cv_deplibs_check_method=pass_all
6633  ;;
6634
6635rdos*)
6636  lt_cv_deplibs_check_method=pass_all
6637  ;;
6638
6639solaris*)
6640  lt_cv_deplibs_check_method=pass_all
6641  ;;
6642
6643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6644  lt_cv_deplibs_check_method=pass_all
6645  ;;
6646
6647sysv4 | sysv4.3*)
6648  case $host_vendor in
6649  motorola)
6650    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]'
6651    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6652    ;;
6653  ncr)
6654    lt_cv_deplibs_check_method=pass_all
6655    ;;
6656  sequent)
6657    lt_cv_file_magic_cmd='/bin/file'
6658    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6659    ;;
6660  sni)
6661    lt_cv_file_magic_cmd='/bin/file'
6662    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6663    lt_cv_file_magic_test_file=/lib/libc.so
6664    ;;
6665  siemens)
6666    lt_cv_deplibs_check_method=pass_all
6667    ;;
6668  pc)
6669    lt_cv_deplibs_check_method=pass_all
6670    ;;
6671  esac
6672  ;;
6673
6674tpf*)
6675  lt_cv_deplibs_check_method=pass_all
6676  ;;
6677vxworks*)
6678  # Assume VxWorks cross toolchains are built on Linux, possibly
6679  # as canadian for Windows hosts.
6680  lt_cv_deplibs_check_method=pass_all
6681  ;;
6682esac
6683
6684fi
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6686$as_echo "$lt_cv_deplibs_check_method" >&6; }
6687file_magic_cmd=$lt_cv_file_magic_cmd
6688deplibs_check_method=$lt_cv_deplibs_check_method
6689test -z "$deplibs_check_method" && deplibs_check_method=unknown
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702plugin_option=
6703plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6704for plugin in $plugin_names; do
6705  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6706  if test x$plugin_so = x$plugin; then
6707    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6708  fi
6709  if test x$plugin_so != x$plugin; then
6710    plugin_option="--plugin $plugin_so"
6711    break
6712  fi
6713done
6714
6715if test -n "$ac_tool_prefix"; then
6716  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}ar; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_prog_AR+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  if test -n "$AR"; then
6724  ac_cv_prog_AR="$AR" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731    for ac_exec_ext in '' $ac_executable_extensions; do
6732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733    ac_cv_prog_AR="${ac_tool_prefix}ar"
6734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738  done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743AR=$ac_cv_prog_AR
6744if test -n "$AR"; then
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6746$as_echo "$AR" >&6; }
6747else
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752
6753fi
6754if test -z "$ac_cv_prog_AR"; then
6755  ac_ct_AR=$AR
6756  # Extract the first word of "ar", so it can be a program name with args.
6757set dummy ar; ac_word=$2
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if ${ac_cv_prog_ac_ct_AR+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  if test -n "$ac_ct_AR"; then
6764  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771    for ac_exec_ext in '' $ac_executable_extensions; do
6772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773    ac_cv_prog_ac_ct_AR="ar"
6774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778  done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783ac_ct_AR=$ac_cv_prog_ac_ct_AR
6784if test -n "$ac_ct_AR"; then
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6786$as_echo "$ac_ct_AR" >&6; }
6787else
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792  if test "x$ac_ct_AR" = x; then
6793    AR="false"
6794  else
6795    case $cross_compiling:$ac_tool_warned in
6796yes:)
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799ac_tool_warned=yes ;;
6800esac
6801    AR=$ac_ct_AR
6802  fi
6803else
6804  AR="$ac_cv_prog_AR"
6805fi
6806
6807test -z "$AR" && AR=ar
6808if test -n "$plugin_option"; then
6809  if $AR --help 2>&1 | grep -q "\--plugin"; then
6810    touch conftest.c
6811    $AR $plugin_option rc conftest.a conftest.c
6812    if test "$?" != 0; then
6813      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6814$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6815    else
6816      AR="$AR $plugin_option"
6817    fi
6818    rm -f conftest.*
6819  fi
6820fi
6821test -z "$AR_FLAGS" && AR_FLAGS=cru
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833if test -n "$ac_tool_prefix"; then
6834  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6835set dummy ${ac_tool_prefix}strip; ac_word=$2
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837$as_echo_n "checking for $ac_word... " >&6; }
6838if ${ac_cv_prog_STRIP+:} false; then :
6839  $as_echo_n "(cached) " >&6
6840else
6841  if test -n "$STRIP"; then
6842  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847  IFS=$as_save_IFS
6848  test -z "$as_dir" && as_dir=.
6849    for ac_exec_ext in '' $ac_executable_extensions; do
6850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853    break 2
6854  fi
6855done
6856  done
6857IFS=$as_save_IFS
6858
6859fi
6860fi
6861STRIP=$ac_cv_prog_STRIP
6862if test -n "$STRIP"; then
6863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6864$as_echo "$STRIP" >&6; }
6865else
6866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867$as_echo "no" >&6; }
6868fi
6869
6870
6871fi
6872if test -z "$ac_cv_prog_STRIP"; then
6873  ac_ct_STRIP=$STRIP
6874  # Extract the first word of "strip", so it can be a program name with args.
6875set dummy strip; ac_word=$2
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877$as_echo_n "checking for $ac_word... " >&6; }
6878if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  if test -n "$ac_ct_STRIP"; then
6882  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887  IFS=$as_save_IFS
6888  test -z "$as_dir" && as_dir=.
6889    for ac_exec_ext in '' $ac_executable_extensions; do
6890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891    ac_cv_prog_ac_ct_STRIP="strip"
6892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893    break 2
6894  fi
6895done
6896  done
6897IFS=$as_save_IFS
6898
6899fi
6900fi
6901ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6902if test -n "$ac_ct_STRIP"; then
6903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6904$as_echo "$ac_ct_STRIP" >&6; }
6905else
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907$as_echo "no" >&6; }
6908fi
6909
6910  if test "x$ac_ct_STRIP" = x; then
6911    STRIP=":"
6912  else
6913    case $cross_compiling:$ac_tool_warned in
6914yes:)
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917ac_tool_warned=yes ;;
6918esac
6919    STRIP=$ac_ct_STRIP
6920  fi
6921else
6922  STRIP="$ac_cv_prog_STRIP"
6923fi
6924
6925test -z "$STRIP" && STRIP=:
6926
6927
6928
6929
6930
6931
6932if test -n "$ac_tool_prefix"; then
6933  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6934set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936$as_echo_n "checking for $ac_word... " >&6; }
6937if ${ac_cv_prog_RANLIB+:} false; then :
6938  $as_echo_n "(cached) " >&6
6939else
6940  if test -n "$RANLIB"; then
6941  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6942else
6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944for as_dir in $PATH
6945do
6946  IFS=$as_save_IFS
6947  test -z "$as_dir" && as_dir=.
6948    for ac_exec_ext in '' $ac_executable_extensions; do
6949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952    break 2
6953  fi
6954done
6955  done
6956IFS=$as_save_IFS
6957
6958fi
6959fi
6960RANLIB=$ac_cv_prog_RANLIB
6961if test -n "$RANLIB"; then
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6963$as_echo "$RANLIB" >&6; }
6964else
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966$as_echo "no" >&6; }
6967fi
6968
6969
6970fi
6971if test -z "$ac_cv_prog_RANLIB"; then
6972  ac_ct_RANLIB=$RANLIB
6973  # Extract the first word of "ranlib", so it can be a program name with args.
6974set dummy ranlib; ac_word=$2
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976$as_echo_n "checking for $ac_word... " >&6; }
6977if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  if test -n "$ac_ct_RANLIB"; then
6981  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6982else
6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986  IFS=$as_save_IFS
6987  test -z "$as_dir" && as_dir=.
6988    for ac_exec_ext in '' $ac_executable_extensions; do
6989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990    ac_cv_prog_ac_ct_RANLIB="ranlib"
6991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992    break 2
6993  fi
6994done
6995  done
6996IFS=$as_save_IFS
6997
6998fi
6999fi
7000ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7001if test -n "$ac_ct_RANLIB"; then
7002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7003$as_echo "$ac_ct_RANLIB" >&6; }
7004else
7005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006$as_echo "no" >&6; }
7007fi
7008
7009  if test "x$ac_ct_RANLIB" = x; then
7010    RANLIB=":"
7011  else
7012    case $cross_compiling:$ac_tool_warned in
7013yes:)
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016ac_tool_warned=yes ;;
7017esac
7018    RANLIB=$ac_ct_RANLIB
7019  fi
7020else
7021  RANLIB="$ac_cv_prog_RANLIB"
7022fi
7023
7024test -z "$RANLIB" && RANLIB=:
7025if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7026  if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7027    RANLIB="$RANLIB $plugin_option"
7028  fi
7029fi
7030
7031
7032
7033
7034
7035
7036# Determine commands to create old-style static archives.
7037old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7038old_postinstall_cmds='chmod 644 $oldlib'
7039old_postuninstall_cmds=
7040
7041if test -n "$RANLIB"; then
7042  case $host_os in
7043  openbsd*)
7044    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7045    ;;
7046  *)
7047    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7048    ;;
7049  esac
7050  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7051fi
7052
7053case $host_os in
7054  darwin*)
7055    lock_old_archive_extraction=yes ;;
7056  *)
7057    lock_old_archive_extraction=no ;;
7058esac
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098# If no C compiler was specified, use CC.
7099LTCC=${LTCC-"$CC"}
7100
7101# If no C compiler flags were specified, use CFLAGS.
7102LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7103
7104# Allow CC to be a program name with arguments.
7105compiler=$CC
7106
7107
7108# Check for command to grab the raw symbol name followed by C symbol from nm.
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7110$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7111if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7112  $as_echo_n "(cached) " >&6
7113else
7114
7115# These are sane defaults that work on at least a few old systems.
7116# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7117
7118# Character class describing NM global symbol codes.
7119symcode='[BCDEGRST]'
7120
7121# Regexp to match symbols that can be accessed directly from C.
7122sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7123
7124# Define system-specific variables.
7125case $host_os in
7126aix*)
7127  symcode='[BCDT]'
7128  ;;
7129cygwin* | mingw* | pw32* | cegcc*)
7130  symcode='[ABCDGISTW]'
7131  ;;
7132hpux*)
7133  if test "$host_cpu" = ia64; then
7134    symcode='[ABCDEGRST]'
7135  fi
7136  ;;
7137irix* | nonstopux*)
7138  symcode='[BCDEGRST]'
7139  ;;
7140osf*)
7141  symcode='[BCDEGQRST]'
7142  ;;
7143solaris*)
7144  symcode='[BCDRT]'
7145  ;;
7146sco3.2v5*)
7147  symcode='[DT]'
7148  ;;
7149sysv4.2uw2*)
7150  symcode='[DT]'
7151  ;;
7152sysv5* | sco5v6* | unixware* | OpenUNIX*)
7153  symcode='[ABDT]'
7154  ;;
7155sysv4)
7156  symcode='[DFNSTU]'
7157  ;;
7158esac
7159
7160# If we're using GNU nm, then use its standard symbol codes.
7161case `$NM -V 2>&1` in
7162*GNU* | *'with BFD'*)
7163  symcode='[ABCDGIRSTW]' ;;
7164esac
7165
7166# Transform an extracted symbol line into a proper C declaration.
7167# Some systems (esp. on ia64) link data and code symbols differently,
7168# so use this general approach.
7169lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7170
7171# Transform an extracted symbol line into symbol name and symbol address
7172lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7173lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7174
7175# Handle CRLF in mingw tool chain
7176opt_cr=
7177case $build_os in
7178mingw*)
7179  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7180  ;;
7181esac
7182
7183# Try without a prefix underscore, then with it.
7184for ac_symprfx in "" "_"; do
7185
7186  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7187  symxfrm="\\1 $ac_symprfx\\2 \\2"
7188
7189  # Write the raw and C identifiers.
7190  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7191    # Fake it for dumpbin and say T for any non-static function
7192    # and D for any global variable.
7193    # Also find C++ and __fastcall symbols from MSVC++,
7194    # which start with @ or ?.
7195    lt_cv_sys_global_symbol_pipe="$AWK '"\
7196"     {last_section=section; section=\$ 3};"\
7197"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7198"     \$ 0!~/External *\|/{next};"\
7199"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7200"     {if(hide[section]) next};"\
7201"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7202"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7203"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7204"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7205"     ' prfx=^$ac_symprfx"
7206  else
7207    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7208  fi
7209
7210  # Check to see that the pipe works correctly.
7211  pipe_works=no
7212
7213  rm -f conftest*
7214  cat > conftest.$ac_ext <<_LT_EOF
7215#ifdef __cplusplus
7216extern "C" {
7217#endif
7218char nm_test_var;
7219void nm_test_func(void);
7220void nm_test_func(void){}
7221#ifdef __cplusplus
7222}
7223#endif
7224int main(){nm_test_var='a';nm_test_func();return(0);}
7225_LT_EOF
7226
7227  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7228  (eval $ac_compile) 2>&5
7229  ac_status=$?
7230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231  test $ac_status = 0; }; then
7232    # Now try to grab the symbols.
7233    nlist=conftest.nm
7234    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7235  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7236  ac_status=$?
7237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7238  test $ac_status = 0; } && test -s "$nlist"; then
7239      # Try sorting and uniquifying the output.
7240      if sort "$nlist" | uniq > "$nlist"T; then
7241	mv -f "$nlist"T "$nlist"
7242      else
7243	rm -f "$nlist"T
7244      fi
7245
7246      # Make sure that we snagged all the symbols we need.
7247      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7248	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7249	  cat <<_LT_EOF > conftest.$ac_ext
7250#ifdef __cplusplus
7251extern "C" {
7252#endif
7253
7254_LT_EOF
7255	  # Now generate the symbol file.
7256	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7257
7258	  cat <<_LT_EOF >> conftest.$ac_ext
7259
7260/* The mapping between symbol names and symbols.  */
7261const struct {
7262  const char *name;
7263  void       *address;
7264}
7265lt__PROGRAM__LTX_preloaded_symbols[] =
7266{
7267  { "@PROGRAM@", (void *) 0 },
7268_LT_EOF
7269	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7270	  cat <<\_LT_EOF >> conftest.$ac_ext
7271  {0, (void *) 0}
7272};
7273
7274/* This works around a problem in FreeBSD linker */
7275#ifdef FREEBSD_WORKAROUND
7276static const void *lt_preloaded_setup() {
7277  return lt__PROGRAM__LTX_preloaded_symbols;
7278}
7279#endif
7280
7281#ifdef __cplusplus
7282}
7283#endif
7284_LT_EOF
7285	  # Now try linking the two files.
7286	  mv conftest.$ac_objext conftstm.$ac_objext
7287	  lt_save_LIBS="$LIBS"
7288	  lt_save_CFLAGS="$CFLAGS"
7289	  LIBS="conftstm.$ac_objext"
7290	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7291	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7292  (eval $ac_link) 2>&5
7293  ac_status=$?
7294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7296	    pipe_works=yes
7297	  fi
7298	  LIBS="$lt_save_LIBS"
7299	  CFLAGS="$lt_save_CFLAGS"
7300	else
7301	  echo "cannot find nm_test_func in $nlist" >&5
7302	fi
7303      else
7304	echo "cannot find nm_test_var in $nlist" >&5
7305      fi
7306    else
7307      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7308    fi
7309  else
7310    echo "$progname: failed program was:" >&5
7311    cat conftest.$ac_ext >&5
7312  fi
7313  rm -rf conftest* conftst*
7314
7315  # Do not use the global_symbol_pipe unless it works.
7316  if test "$pipe_works" = yes; then
7317    break
7318  else
7319    lt_cv_sys_global_symbol_pipe=
7320  fi
7321done
7322
7323fi
7324
7325if test -z "$lt_cv_sys_global_symbol_pipe"; then
7326  lt_cv_sys_global_symbol_to_cdecl=
7327fi
7328if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7330$as_echo "failed" >&6; }
7331else
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7333$as_echo "ok" >&6; }
7334fi
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357# Check whether --enable-libtool-lock was given.
7358if test "${enable_libtool_lock+set}" = set; then :
7359  enableval=$enable_libtool_lock;
7360fi
7361
7362test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7363
7364# Some flags need to be propagated to the compiler or linker for good
7365# libtool support.
7366case $host in
7367ia64-*-hpux*)
7368  # Find out which ABI we are using.
7369  echo 'int i;' > conftest.$ac_ext
7370  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7371  (eval $ac_compile) 2>&5
7372  ac_status=$?
7373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374  test $ac_status = 0; }; then
7375    case `/usr/bin/file conftest.$ac_objext` in
7376      *ELF-32*)
7377	HPUX_IA64_MODE="32"
7378	;;
7379      *ELF-64*)
7380	HPUX_IA64_MODE="64"
7381	;;
7382    esac
7383  fi
7384  rm -rf conftest*
7385  ;;
7386*-*-irix6*)
7387  # Find out which ABI we are using.
7388  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7389  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390  (eval $ac_compile) 2>&5
7391  ac_status=$?
7392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393  test $ac_status = 0; }; then
7394    if test "$lt_cv_prog_gnu_ld" = yes; then
7395      case `/usr/bin/file conftest.$ac_objext` in
7396	*32-bit*)
7397	  LD="${LD-ld} -melf32bsmip"
7398	  ;;
7399	*N32*)
7400	  LD="${LD-ld} -melf32bmipn32"
7401	  ;;
7402	*64-bit*)
7403	  LD="${LD-ld} -melf64bmip"
7404	;;
7405      esac
7406    else
7407      case `/usr/bin/file conftest.$ac_objext` in
7408	*32-bit*)
7409	  LD="${LD-ld} -32"
7410	  ;;
7411	*N32*)
7412	  LD="${LD-ld} -n32"
7413	  ;;
7414	*64-bit*)
7415	  LD="${LD-ld} -64"
7416	  ;;
7417      esac
7418    fi
7419  fi
7420  rm -rf conftest*
7421  ;;
7422
7423x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7424s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7425  # Find out which ABI we are using.
7426  echo 'int i;' > conftest.$ac_ext
7427  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428  (eval $ac_compile) 2>&5
7429  ac_status=$?
7430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431  test $ac_status = 0; }; then
7432    case `/usr/bin/file conftest.o` in
7433      *32-bit*)
7434	case $host in
7435	  x86_64-*kfreebsd*-gnu)
7436	    LD="${LD-ld} -m elf_i386_fbsd"
7437	    ;;
7438	  x86_64-*linux*)
7439	    case `/usr/bin/file conftest.o` in
7440	      *x86-64*)
7441		LD="${LD-ld} -m elf32_x86_64"
7442		;;
7443	      *)
7444		LD="${LD-ld} -m elf_i386"
7445		;;
7446	    esac
7447	    ;;
7448	  powerpc64le-*linux*)
7449	    LD="${LD-ld} -m elf32lppclinux"
7450	    ;;
7451	  powerpc64-*linux*)
7452	    LD="${LD-ld} -m elf32ppclinux"
7453	    ;;
7454	  s390x-*linux*)
7455	    LD="${LD-ld} -m elf_s390"
7456	    ;;
7457	  sparc64-*linux*)
7458	    LD="${LD-ld} -m elf32_sparc"
7459	    ;;
7460	esac
7461	;;
7462      *64-bit*)
7463	case $host in
7464	  x86_64-*kfreebsd*-gnu)
7465	    LD="${LD-ld} -m elf_x86_64_fbsd"
7466	    ;;
7467	  x86_64-*linux*)
7468	    LD="${LD-ld} -m elf_x86_64"
7469	    ;;
7470	  powerpcle-*linux*)
7471	    LD="${LD-ld} -m elf64lppc"
7472	    ;;
7473	  powerpc-*linux*)
7474	    LD="${LD-ld} -m elf64ppc"
7475	    ;;
7476	  s390*-*linux*|s390*-*tpf*)
7477	    LD="${LD-ld} -m elf64_s390"
7478	    ;;
7479	  sparc*-*linux*)
7480	    LD="${LD-ld} -m elf64_sparc"
7481	    ;;
7482	esac
7483	;;
7484    esac
7485  fi
7486  rm -rf conftest*
7487  ;;
7488
7489*-*-sco3.2v5*)
7490  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7491  SAVE_CFLAGS="$CFLAGS"
7492  CFLAGS="$CFLAGS -belf"
7493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7494$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7495if ${lt_cv_cc_needs_belf+:} false; then :
7496  $as_echo_n "(cached) " >&6
7497else
7498  ac_ext=c
7499ac_cpp='$CPP $CPPFLAGS'
7500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503
7504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h.  */
7506
7507int
7508main ()
7509{
7510
7511  ;
7512  return 0;
7513}
7514_ACEOF
7515if ac_fn_c_try_link "$LINENO"; then :
7516  lt_cv_cc_needs_belf=yes
7517else
7518  lt_cv_cc_needs_belf=no
7519fi
7520rm -f core conftest.err conftest.$ac_objext \
7521    conftest$ac_exeext conftest.$ac_ext
7522     ac_ext=c
7523ac_cpp='$CPP $CPPFLAGS'
7524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527
7528fi
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7530$as_echo "$lt_cv_cc_needs_belf" >&6; }
7531  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7532    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7533    CFLAGS="$SAVE_CFLAGS"
7534  fi
7535  ;;
7536sparc*-*solaris*)
7537  # Find out which ABI we are using.
7538  echo 'int i;' > conftest.$ac_ext
7539  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540  (eval $ac_compile) 2>&5
7541  ac_status=$?
7542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543  test $ac_status = 0; }; then
7544    case `/usr/bin/file conftest.o` in
7545    *64-bit*)
7546      case $lt_cv_prog_gnu_ld in
7547      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7548      *)
7549	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7550	  LD="${LD-ld} -64"
7551	fi
7552	;;
7553      esac
7554      ;;
7555    esac
7556  fi
7557  rm -rf conftest*
7558  ;;
7559esac
7560
7561need_locks="$enable_libtool_lock"
7562
7563
7564  case $host_os in
7565    rhapsody* | darwin*)
7566    if test -n "$ac_tool_prefix"; then
7567  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7568set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570$as_echo_n "checking for $ac_word... " >&6; }
7571if ${ac_cv_prog_DSYMUTIL+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  if test -n "$DSYMUTIL"; then
7575  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7576else
7577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578for as_dir in $PATH
7579do
7580  IFS=$as_save_IFS
7581  test -z "$as_dir" && as_dir=.
7582    for ac_exec_ext in '' $ac_executable_extensions; do
7583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586    break 2
7587  fi
7588done
7589  done
7590IFS=$as_save_IFS
7591
7592fi
7593fi
7594DSYMUTIL=$ac_cv_prog_DSYMUTIL
7595if test -n "$DSYMUTIL"; then
7596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7597$as_echo "$DSYMUTIL" >&6; }
7598else
7599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; }
7601fi
7602
7603
7604fi
7605if test -z "$ac_cv_prog_DSYMUTIL"; then
7606  ac_ct_DSYMUTIL=$DSYMUTIL
7607  # Extract the first word of "dsymutil", so it can be a program name with args.
7608set dummy dsymutil; ac_word=$2
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610$as_echo_n "checking for $ac_word... " >&6; }
7611if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7612  $as_echo_n "(cached) " >&6
7613else
7614  if test -n "$ac_ct_DSYMUTIL"; then
7615  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7616else
7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620  IFS=$as_save_IFS
7621  test -z "$as_dir" && as_dir=.
7622    for ac_exec_ext in '' $ac_executable_extensions; do
7623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626    break 2
7627  fi
7628done
7629  done
7630IFS=$as_save_IFS
7631
7632fi
7633fi
7634ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7635if test -n "$ac_ct_DSYMUTIL"; then
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7637$as_echo "$ac_ct_DSYMUTIL" >&6; }
7638else
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640$as_echo "no" >&6; }
7641fi
7642
7643  if test "x$ac_ct_DSYMUTIL" = x; then
7644    DSYMUTIL=":"
7645  else
7646    case $cross_compiling:$ac_tool_warned in
7647yes:)
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7650ac_tool_warned=yes ;;
7651esac
7652    DSYMUTIL=$ac_ct_DSYMUTIL
7653  fi
7654else
7655  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7656fi
7657
7658    if test -n "$ac_tool_prefix"; then
7659  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7660set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662$as_echo_n "checking for $ac_word... " >&6; }
7663if ${ac_cv_prog_NMEDIT+:} false; then :
7664  $as_echo_n "(cached) " >&6
7665else
7666  if test -n "$NMEDIT"; then
7667  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7668else
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672  IFS=$as_save_IFS
7673  test -z "$as_dir" && as_dir=.
7674    for ac_exec_ext in '' $ac_executable_extensions; do
7675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678    break 2
7679  fi
7680done
7681  done
7682IFS=$as_save_IFS
7683
7684fi
7685fi
7686NMEDIT=$ac_cv_prog_NMEDIT
7687if test -n "$NMEDIT"; then
7688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7689$as_echo "$NMEDIT" >&6; }
7690else
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692$as_echo "no" >&6; }
7693fi
7694
7695
7696fi
7697if test -z "$ac_cv_prog_NMEDIT"; then
7698  ac_ct_NMEDIT=$NMEDIT
7699  # Extract the first word of "nmedit", so it can be a program name with args.
7700set dummy nmedit; ac_word=$2
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702$as_echo_n "checking for $ac_word... " >&6; }
7703if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  if test -n "$ac_ct_NMEDIT"; then
7707  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7708else
7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712  IFS=$as_save_IFS
7713  test -z "$as_dir" && as_dir=.
7714    for ac_exec_ext in '' $ac_executable_extensions; do
7715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718    break 2
7719  fi
7720done
7721  done
7722IFS=$as_save_IFS
7723
7724fi
7725fi
7726ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7727if test -n "$ac_ct_NMEDIT"; then
7728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7729$as_echo "$ac_ct_NMEDIT" >&6; }
7730else
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732$as_echo "no" >&6; }
7733fi
7734
7735  if test "x$ac_ct_NMEDIT" = x; then
7736    NMEDIT=":"
7737  else
7738    case $cross_compiling:$ac_tool_warned in
7739yes:)
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7742ac_tool_warned=yes ;;
7743esac
7744    NMEDIT=$ac_ct_NMEDIT
7745  fi
7746else
7747  NMEDIT="$ac_cv_prog_NMEDIT"
7748fi
7749
7750    if test -n "$ac_tool_prefix"; then
7751  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7752set dummy ${ac_tool_prefix}lipo; ac_word=$2
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754$as_echo_n "checking for $ac_word... " >&6; }
7755if ${ac_cv_prog_LIPO+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  if test -n "$LIPO"; then
7759  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7760else
7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764  IFS=$as_save_IFS
7765  test -z "$as_dir" && as_dir=.
7766    for ac_exec_ext in '' $ac_executable_extensions; do
7767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770    break 2
7771  fi
7772done
7773  done
7774IFS=$as_save_IFS
7775
7776fi
7777fi
7778LIPO=$ac_cv_prog_LIPO
7779if test -n "$LIPO"; then
7780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7781$as_echo "$LIPO" >&6; }
7782else
7783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784$as_echo "no" >&6; }
7785fi
7786
7787
7788fi
7789if test -z "$ac_cv_prog_LIPO"; then
7790  ac_ct_LIPO=$LIPO
7791  # Extract the first word of "lipo", so it can be a program name with args.
7792set dummy lipo; ac_word=$2
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  if test -n "$ac_ct_LIPO"; then
7799  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804  IFS=$as_save_IFS
7805  test -z "$as_dir" && as_dir=.
7806    for ac_exec_ext in '' $ac_executable_extensions; do
7807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808    ac_cv_prog_ac_ct_LIPO="lipo"
7809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810    break 2
7811  fi
7812done
7813  done
7814IFS=$as_save_IFS
7815
7816fi
7817fi
7818ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7819if test -n "$ac_ct_LIPO"; then
7820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7821$as_echo "$ac_ct_LIPO" >&6; }
7822else
7823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825fi
7826
7827  if test "x$ac_ct_LIPO" = x; then
7828    LIPO=":"
7829  else
7830    case $cross_compiling:$ac_tool_warned in
7831yes:)
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834ac_tool_warned=yes ;;
7835esac
7836    LIPO=$ac_ct_LIPO
7837  fi
7838else
7839  LIPO="$ac_cv_prog_LIPO"
7840fi
7841
7842    if test -n "$ac_tool_prefix"; then
7843  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7844set dummy ${ac_tool_prefix}otool; ac_word=$2
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846$as_echo_n "checking for $ac_word... " >&6; }
7847if ${ac_cv_prog_OTOOL+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  if test -n "$OTOOL"; then
7851  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856  IFS=$as_save_IFS
7857  test -z "$as_dir" && as_dir=.
7858    for ac_exec_ext in '' $ac_executable_extensions; do
7859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862    break 2
7863  fi
7864done
7865  done
7866IFS=$as_save_IFS
7867
7868fi
7869fi
7870OTOOL=$ac_cv_prog_OTOOL
7871if test -n "$OTOOL"; then
7872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7873$as_echo "$OTOOL" >&6; }
7874else
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
7877fi
7878
7879
7880fi
7881if test -z "$ac_cv_prog_OTOOL"; then
7882  ac_ct_OTOOL=$OTOOL
7883  # Extract the first word of "otool", so it can be a program name with args.
7884set dummy otool; ac_word=$2
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886$as_echo_n "checking for $ac_word... " >&6; }
7887if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  if test -n "$ac_ct_OTOOL"; then
7891  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896  IFS=$as_save_IFS
7897  test -z "$as_dir" && as_dir=.
7898    for ac_exec_ext in '' $ac_executable_extensions; do
7899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900    ac_cv_prog_ac_ct_OTOOL="otool"
7901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902    break 2
7903  fi
7904done
7905  done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7911if test -n "$ac_ct_OTOOL"; then
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7913$as_echo "$ac_ct_OTOOL" >&6; }
7914else
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919  if test "x$ac_ct_OTOOL" = x; then
7920    OTOOL=":"
7921  else
7922    case $cross_compiling:$ac_tool_warned in
7923yes:)
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7926ac_tool_warned=yes ;;
7927esac
7928    OTOOL=$ac_ct_OTOOL
7929  fi
7930else
7931  OTOOL="$ac_cv_prog_OTOOL"
7932fi
7933
7934    if test -n "$ac_tool_prefix"; then
7935  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7936set dummy ${ac_tool_prefix}otool64; ac_word=$2
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
7939if ${ac_cv_prog_OTOOL64+:} false; then :
7940  $as_echo_n "(cached) " >&6
7941else
7942  if test -n "$OTOOL64"; then
7943  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7944else
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948  IFS=$as_save_IFS
7949  test -z "$as_dir" && as_dir=.
7950    for ac_exec_ext in '' $ac_executable_extensions; do
7951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954    break 2
7955  fi
7956done
7957  done
7958IFS=$as_save_IFS
7959
7960fi
7961fi
7962OTOOL64=$ac_cv_prog_OTOOL64
7963if test -n "$OTOOL64"; then
7964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7965$as_echo "$OTOOL64" >&6; }
7966else
7967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
7969fi
7970
7971
7972fi
7973if test -z "$ac_cv_prog_OTOOL64"; then
7974  ac_ct_OTOOL64=$OTOOL64
7975  # Extract the first word of "otool64", so it can be a program name with args.
7976set dummy otool64; ac_word=$2
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978$as_echo_n "checking for $ac_word... " >&6; }
7979if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  if test -n "$ac_ct_OTOOL64"; then
7983  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988  IFS=$as_save_IFS
7989  test -z "$as_dir" && as_dir=.
7990    for ac_exec_ext in '' $ac_executable_extensions; do
7991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992    ac_cv_prog_ac_ct_OTOOL64="otool64"
7993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997  done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8003if test -n "$ac_ct_OTOOL64"; then
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8005$as_echo "$ac_ct_OTOOL64" >&6; }
8006else
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
8009fi
8010
8011  if test "x$ac_ct_OTOOL64" = x; then
8012    OTOOL64=":"
8013  else
8014    case $cross_compiling:$ac_tool_warned in
8015yes:)
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018ac_tool_warned=yes ;;
8019esac
8020    OTOOL64=$ac_ct_OTOOL64
8021  fi
8022else
8023  OTOOL64="$ac_cv_prog_OTOOL64"
8024fi
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8053$as_echo_n "checking for -single_module linker flag... " >&6; }
8054if ${lt_cv_apple_cc_single_mod+:} false; then :
8055  $as_echo_n "(cached) " >&6
8056else
8057  lt_cv_apple_cc_single_mod=no
8058      if test -z "${LT_MULTI_MODULE}"; then
8059	# By default we will add the -single_module flag. You can override
8060	# by either setting the environment variable LT_MULTI_MODULE
8061	# non-empty at configure time, or by adding -multi_module to the
8062	# link flags.
8063	rm -rf libconftest.dylib*
8064	echo "int foo(void){return 1;}" > conftest.c
8065	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8066-dynamiclib -Wl,-single_module conftest.c" >&5
8067	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8068	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8069        _lt_result=$?
8070	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8071	  lt_cv_apple_cc_single_mod=yes
8072	else
8073	  cat conftest.err >&5
8074	fi
8075	rm -rf libconftest.dylib*
8076	rm -f conftest.*
8077      fi
8078fi
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8080$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8081    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8082$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8083if ${lt_cv_ld_exported_symbols_list+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  lt_cv_ld_exported_symbols_list=no
8087      save_LDFLAGS=$LDFLAGS
8088      echo "_main" > conftest.sym
8089      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091/* end confdefs.h.  */
8092
8093int
8094main ()
8095{
8096
8097  ;
8098  return 0;
8099}
8100_ACEOF
8101if ac_fn_c_try_link "$LINENO"; then :
8102  lt_cv_ld_exported_symbols_list=yes
8103else
8104  lt_cv_ld_exported_symbols_list=no
8105fi
8106rm -f core conftest.err conftest.$ac_objext \
8107    conftest$ac_exeext conftest.$ac_ext
8108	LDFLAGS="$save_LDFLAGS"
8109
8110fi
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8112$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8114$as_echo_n "checking for -force_load linker flag... " >&6; }
8115if ${lt_cv_ld_force_load+:} false; then :
8116  $as_echo_n "(cached) " >&6
8117else
8118  lt_cv_ld_force_load=no
8119      cat > conftest.c << _LT_EOF
8120int forced_loaded() { return 2;}
8121_LT_EOF
8122      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8123      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8124      echo "$AR cru libconftest.a conftest.o" >&5
8125      $AR cru libconftest.a conftest.o 2>&5
8126      cat > conftest.c << _LT_EOF
8127int main() { return 0;}
8128_LT_EOF
8129      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8130      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8131      _lt_result=$?
8132      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8133	lt_cv_ld_force_load=yes
8134      else
8135	cat conftest.err >&5
8136      fi
8137        rm -f conftest.err libconftest.a conftest conftest.c
8138        rm -rf conftest.dSYM
8139
8140fi
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8142$as_echo "$lt_cv_ld_force_load" >&6; }
8143    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8144    # build without first building modern cctools / linker.
8145    case $host_cpu-$host_os in
8146    *-rhapsody* | *-darwin1.[012])
8147      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8148    *-darwin1.*)
8149      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8150    *-darwin*)
8151      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8152      # deployment target is forced to an earlier version.
8153      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8154	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8155	  ;;
8156	10.[012][,.]*)
8157	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8158	  ;;
8159	*)
8160	  ;;
8161     esac
8162    ;;
8163  esac
8164    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8165      _lt_dar_single_mod='$single_module'
8166    fi
8167    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8168      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8169    else
8170      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8171    fi
8172    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8173      _lt_dsymutil='~$DSYMUTIL $lib || :'
8174    else
8175      _lt_dsymutil=
8176    fi
8177    ;;
8178  esac
8179
8180for ac_header in dlfcn.h
8181do :
8182  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8183"
8184if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8185  cat >>confdefs.h <<_ACEOF
8186#define HAVE_DLFCN_H 1
8187_ACEOF
8188
8189fi
8190
8191done
8192
8193
8194
8195
8196
8197
8198# Set options
8199
8200
8201
8202        enable_dlopen=no
8203
8204
8205  enable_win32_dll=no
8206
8207
8208            # Check whether --enable-shared was given.
8209if test "${enable_shared+set}" = set; then :
8210  enableval=$enable_shared; p=${PACKAGE-default}
8211    case $enableval in
8212    yes) enable_shared=yes ;;
8213    no) enable_shared=no ;;
8214    *)
8215      enable_shared=no
8216      # Look at the argument we got.  We use all the common list separators.
8217      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8218      for pkg in $enableval; do
8219	IFS="$lt_save_ifs"
8220	if test "X$pkg" = "X$p"; then
8221	  enable_shared=yes
8222	fi
8223      done
8224      IFS="$lt_save_ifs"
8225      ;;
8226    esac
8227else
8228  enable_shared=yes
8229fi
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239  # Check whether --enable-static was given.
8240if test "${enable_static+set}" = set; then :
8241  enableval=$enable_static; p=${PACKAGE-default}
8242    case $enableval in
8243    yes) enable_static=yes ;;
8244    no) enable_static=no ;;
8245    *)
8246     enable_static=no
8247      # Look at the argument we got.  We use all the common list separators.
8248      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8249      for pkg in $enableval; do
8250	IFS="$lt_save_ifs"
8251	if test "X$pkg" = "X$p"; then
8252	  enable_static=yes
8253	fi
8254      done
8255      IFS="$lt_save_ifs"
8256      ;;
8257    esac
8258else
8259  enable_static=yes
8260fi
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271# Check whether --with-pic was given.
8272if test "${with_pic+set}" = set; then :
8273  withval=$with_pic; pic_mode="$withval"
8274else
8275  pic_mode=default
8276fi
8277
8278
8279test -z "$pic_mode" && pic_mode=default
8280
8281
8282
8283
8284
8285
8286
8287  # Check whether --enable-fast-install was given.
8288if test "${enable_fast_install+set}" = set; then :
8289  enableval=$enable_fast_install; p=${PACKAGE-default}
8290    case $enableval in
8291    yes) enable_fast_install=yes ;;
8292    no) enable_fast_install=no ;;
8293    *)
8294      enable_fast_install=no
8295      # Look at the argument we got.  We use all the common list separators.
8296      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8297      for pkg in $enableval; do
8298	IFS="$lt_save_ifs"
8299	if test "X$pkg" = "X$p"; then
8300	  enable_fast_install=yes
8301	fi
8302      done
8303      IFS="$lt_save_ifs"
8304      ;;
8305    esac
8306else
8307  enable_fast_install=yes
8308fi
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320# This can be used to rebuild libtool when needed
8321LIBTOOL_DEPS="$ltmain"
8322
8323# Always use our own libtool.
8324LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351test -z "$LN_S" && LN_S="ln -s"
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366if test -n "${ZSH_VERSION+set}" ; then
8367   setopt NO_GLOB_SUBST
8368fi
8369
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8371$as_echo_n "checking for objdir... " >&6; }
8372if ${lt_cv_objdir+:} false; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375  rm -f .libs 2>/dev/null
8376mkdir .libs 2>/dev/null
8377if test -d .libs; then
8378  lt_cv_objdir=.libs
8379else
8380  # MS-DOS does not allow filenames that begin with a dot.
8381  lt_cv_objdir=_libs
8382fi
8383rmdir .libs 2>/dev/null
8384fi
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8386$as_echo "$lt_cv_objdir" >&6; }
8387objdir=$lt_cv_objdir
8388
8389
8390
8391
8392
8393cat >>confdefs.h <<_ACEOF
8394#define LT_OBJDIR "$lt_cv_objdir/"
8395_ACEOF
8396
8397
8398
8399
8400case $host_os in
8401aix3*)
8402  # AIX sometimes has problems with the GCC collect2 program.  For some
8403  # reason, if we set the COLLECT_NAMES environment variable, the problems
8404  # vanish in a puff of smoke.
8405  if test "X${COLLECT_NAMES+set}" != Xset; then
8406    COLLECT_NAMES=
8407    export COLLECT_NAMES
8408  fi
8409  ;;
8410esac
8411
8412# Global variables:
8413ofile=libtool
8414can_build_shared=yes
8415
8416# All known linkers require a `.a' archive for static linking (except MSVC,
8417# which needs '.lib').
8418libext=a
8419
8420with_gnu_ld="$lt_cv_prog_gnu_ld"
8421
8422old_CC="$CC"
8423old_CFLAGS="$CFLAGS"
8424
8425# Set sane defaults for various variables
8426test -z "$CC" && CC=cc
8427test -z "$LTCC" && LTCC=$CC
8428test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8429test -z "$LD" && LD=ld
8430test -z "$ac_objext" && ac_objext=o
8431
8432for cc_temp in $compiler""; do
8433  case $cc_temp in
8434    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8435    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8436    \-*) ;;
8437    *) break;;
8438  esac
8439done
8440cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8441
8442
8443# Only perform the check for file, if the check method requires it
8444test -z "$MAGIC_CMD" && MAGIC_CMD=file
8445case $deplibs_check_method in
8446file_magic*)
8447  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8449$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8450if ${lt_cv_path_MAGIC_CMD+:} false; then :
8451  $as_echo_n "(cached) " >&6
8452else
8453  case $MAGIC_CMD in
8454[\\/*] |  ?:[\\/]*)
8455  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8456  ;;
8457*)
8458  lt_save_MAGIC_CMD="$MAGIC_CMD"
8459  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8460  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8461  for ac_dir in $ac_dummy; do
8462    IFS="$lt_save_ifs"
8463    test -z "$ac_dir" && ac_dir=.
8464    if test -f $ac_dir/${ac_tool_prefix}file; then
8465      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8466      if test -n "$file_magic_test_file"; then
8467	case $deplibs_check_method in
8468	"file_magic "*)
8469	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8470	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8472	    $EGREP "$file_magic_regex" > /dev/null; then
8473	    :
8474	  else
8475	    cat <<_LT_EOF 1>&2
8476
8477*** Warning: the command libtool uses to detect shared libraries,
8478*** $file_magic_cmd, produces output that libtool cannot recognize.
8479*** The result is that libtool may fail to recognize shared libraries
8480*** as such.  This will affect the creation of libtool libraries that
8481*** depend on shared libraries, but programs linked with such libtool
8482*** libraries will work regardless of this problem.  Nevertheless, you
8483*** may want to report the problem to your system manager and/or to
8484*** bug-libtool@gnu.org
8485
8486_LT_EOF
8487	  fi ;;
8488	esac
8489      fi
8490      break
8491    fi
8492  done
8493  IFS="$lt_save_ifs"
8494  MAGIC_CMD="$lt_save_MAGIC_CMD"
8495  ;;
8496esac
8497fi
8498
8499MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8500if test -n "$MAGIC_CMD"; then
8501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8502$as_echo "$MAGIC_CMD" >&6; }
8503else
8504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505$as_echo "no" >&6; }
8506fi
8507
8508
8509
8510
8511
8512if test -z "$lt_cv_path_MAGIC_CMD"; then
8513  if test -n "$ac_tool_prefix"; then
8514    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8515$as_echo_n "checking for file... " >&6; }
8516if ${lt_cv_path_MAGIC_CMD+:} false; then :
8517  $as_echo_n "(cached) " >&6
8518else
8519  case $MAGIC_CMD in
8520[\\/*] |  ?:[\\/]*)
8521  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8522  ;;
8523*)
8524  lt_save_MAGIC_CMD="$MAGIC_CMD"
8525  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8526  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8527  for ac_dir in $ac_dummy; do
8528    IFS="$lt_save_ifs"
8529    test -z "$ac_dir" && ac_dir=.
8530    if test -f $ac_dir/file; then
8531      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8532      if test -n "$file_magic_test_file"; then
8533	case $deplibs_check_method in
8534	"file_magic "*)
8535	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8536	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8538	    $EGREP "$file_magic_regex" > /dev/null; then
8539	    :
8540	  else
8541	    cat <<_LT_EOF 1>&2
8542
8543*** Warning: the command libtool uses to detect shared libraries,
8544*** $file_magic_cmd, produces output that libtool cannot recognize.
8545*** The result is that libtool may fail to recognize shared libraries
8546*** as such.  This will affect the creation of libtool libraries that
8547*** depend on shared libraries, but programs linked with such libtool
8548*** libraries will work regardless of this problem.  Nevertheless, you
8549*** may want to report the problem to your system manager and/or to
8550*** bug-libtool@gnu.org
8551
8552_LT_EOF
8553	  fi ;;
8554	esac
8555      fi
8556      break
8557    fi
8558  done
8559  IFS="$lt_save_ifs"
8560  MAGIC_CMD="$lt_save_MAGIC_CMD"
8561  ;;
8562esac
8563fi
8564
8565MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8566if test -n "$MAGIC_CMD"; then
8567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8568$as_echo "$MAGIC_CMD" >&6; }
8569else
8570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571$as_echo "no" >&6; }
8572fi
8573
8574
8575  else
8576    MAGIC_CMD=:
8577  fi
8578fi
8579
8580  fi
8581  ;;
8582esac
8583
8584# Use C for the default configuration in the libtool script
8585
8586lt_save_CC="$CC"
8587ac_ext=c
8588ac_cpp='$CPP $CPPFLAGS'
8589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591ac_compiler_gnu=$ac_cv_c_compiler_gnu
8592
8593
8594# Source file extension for C test sources.
8595ac_ext=c
8596
8597# Object file extension for compiled C test sources.
8598objext=o
8599objext=$objext
8600
8601# Code to be used in simple compile tests
8602lt_simple_compile_test_code="int some_variable = 0;"
8603
8604# Code to be used in simple link tests
8605lt_simple_link_test_code='int main(){return(0);}'
8606
8607
8608
8609
8610
8611
8612
8613# If no C compiler was specified, use CC.
8614LTCC=${LTCC-"$CC"}
8615
8616# If no C compiler flags were specified, use CFLAGS.
8617LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8618
8619# Allow CC to be a program name with arguments.
8620compiler=$CC
8621
8622# Save the default compiler, since it gets overwritten when the other
8623# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8624compiler_DEFAULT=$CC
8625
8626# save warnings/boilerplate of simple test code
8627ac_outfile=conftest.$ac_objext
8628echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8629eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8630_lt_compiler_boilerplate=`cat conftest.err`
8631$RM conftest*
8632
8633ac_outfile=conftest.$ac_objext
8634echo "$lt_simple_link_test_code" >conftest.$ac_ext
8635eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8636_lt_linker_boilerplate=`cat conftest.err`
8637$RM -r conftest*
8638
8639
8640## CAVEAT EMPTOR:
8641## There is no encapsulation within the following macros, do not change
8642## the running order or otherwise move them around unless you know exactly
8643## what you are doing...
8644if test -n "$compiler"; then
8645
8646lt_prog_compiler_no_builtin_flag=
8647
8648if test "$GCC" = yes; then
8649  case $cc_basename in
8650  nvcc*)
8651    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8652  *)
8653    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8654  esac
8655
8656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8657$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8658if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8659  $as_echo_n "(cached) " >&6
8660else
8661  lt_cv_prog_compiler_rtti_exceptions=no
8662   ac_outfile=conftest.$ac_objext
8663   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8664   lt_compiler_flag="-fno-rtti -fno-exceptions"
8665   # Insert the option either (1) after the last *FLAGS variable, or
8666   # (2) before a word containing "conftest.", or (3) at the end.
8667   # Note that $ac_compile itself does not contain backslashes and begins
8668   # with a dollar sign (not a hyphen), so the echo should work correctly.
8669   # The option is referenced via a variable to avoid confusing sed.
8670   lt_compile=`echo "$ac_compile" | $SED \
8671   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8672   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8673   -e 's:$: $lt_compiler_flag:'`
8674   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8675   (eval "$lt_compile" 2>conftest.err)
8676   ac_status=$?
8677   cat conftest.err >&5
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   if (exit $ac_status) && test -s "$ac_outfile"; then
8680     # The compiler can only warn and ignore the option if not recognized
8681     # So say no if there are warnings other than the usual output.
8682     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8683     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8684     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8685       lt_cv_prog_compiler_rtti_exceptions=yes
8686     fi
8687   fi
8688   $RM conftest*
8689
8690fi
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8692$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8693
8694if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8695    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8696else
8697    :
8698fi
8699
8700fi
8701
8702
8703
8704
8705
8706
8707  lt_prog_compiler_wl=
8708lt_prog_compiler_pic=
8709lt_prog_compiler_static=
8710
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8712$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8713
8714  if test "$GCC" = yes; then
8715    lt_prog_compiler_wl='-Wl,'
8716    lt_prog_compiler_static='-static'
8717
8718    case $host_os in
8719      aix*)
8720      # All AIX code is PIC.
8721      if test "$host_cpu" = ia64; then
8722	# AIX 5 now supports IA64 processor
8723	lt_prog_compiler_static='-Bstatic'
8724      fi
8725      lt_prog_compiler_pic='-fPIC'
8726      ;;
8727
8728    amigaos*)
8729      case $host_cpu in
8730      powerpc)
8731            # see comment about AmigaOS4 .so support
8732            lt_prog_compiler_pic='-fPIC'
8733        ;;
8734      m68k)
8735            # FIXME: we need at least 68020 code to build shared libraries, but
8736            # adding the `-m68020' flag to GCC prevents building anything better,
8737            # like `-m68040'.
8738            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8739        ;;
8740      esac
8741      ;;
8742
8743    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8744      # PIC is the default for these OSes.
8745      ;;
8746
8747    mingw* | cygwin* | pw32* | os2* | cegcc*)
8748      # This hack is so that the source file can tell whether it is being
8749      # built for inclusion in a dll (and should export symbols for example).
8750      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8751      # (--disable-auto-import) libraries
8752      lt_prog_compiler_pic='-DDLL_EXPORT'
8753      ;;
8754
8755    darwin* | rhapsody*)
8756      # PIC is the default on this platform
8757      # Common symbols not allowed in MH_DYLIB files
8758      lt_prog_compiler_pic='-fno-common'
8759      ;;
8760
8761    haiku*)
8762      # PIC is the default for Haiku.
8763      # The "-static" flag exists, but is broken.
8764      lt_prog_compiler_static=
8765      ;;
8766
8767    hpux*)
8768      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8769      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8770      # sets the default TLS model and affects inlining.
8771      case $host_cpu in
8772      hppa*64*)
8773	# +Z the default
8774	;;
8775      *)
8776	lt_prog_compiler_pic='-fPIC'
8777	;;
8778      esac
8779      ;;
8780
8781    interix[3-9]*)
8782      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8783      # Instead, we relocate shared libraries at runtime.
8784      ;;
8785
8786    msdosdjgpp*)
8787      # Just because we use GCC doesn't mean we suddenly get shared libraries
8788      # on systems that don't support them.
8789      lt_prog_compiler_can_build_shared=no
8790      enable_shared=no
8791      ;;
8792
8793    *nto* | *qnx*)
8794      # QNX uses GNU C++, but need to define -shared option too, otherwise
8795      # it will coredump.
8796      lt_prog_compiler_pic='-fPIC -shared'
8797      ;;
8798
8799    sysv4*MP*)
8800      if test -d /usr/nec; then
8801	lt_prog_compiler_pic=-Kconform_pic
8802      fi
8803      ;;
8804
8805    *)
8806      lt_prog_compiler_pic='-fPIC'
8807      ;;
8808    esac
8809
8810    case $cc_basename in
8811    nvcc*) # Cuda Compiler Driver 2.2
8812      lt_prog_compiler_wl='-Xlinker '
8813      lt_prog_compiler_pic='-Xcompiler -fPIC'
8814      ;;
8815    esac
8816  else
8817    # PORTME Check for flag to pass linker flags through the system compiler.
8818    case $host_os in
8819    aix*)
8820      lt_prog_compiler_wl='-Wl,'
8821      if test "$host_cpu" = ia64; then
8822	# AIX 5 now supports IA64 processor
8823	lt_prog_compiler_static='-Bstatic'
8824      else
8825	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8826      fi
8827      ;;
8828
8829    mingw* | cygwin* | pw32* | os2* | cegcc*)
8830      # This hack is so that the source file can tell whether it is being
8831      # built for inclusion in a dll (and should export symbols for example).
8832      lt_prog_compiler_pic='-DDLL_EXPORT'
8833      ;;
8834
8835    hpux9* | hpux10* | hpux11*)
8836      lt_prog_compiler_wl='-Wl,'
8837      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8838      # not for PA HP-UX.
8839      case $host_cpu in
8840      hppa*64*|ia64*)
8841	# +Z the default
8842	;;
8843      *)
8844	lt_prog_compiler_pic='+Z'
8845	;;
8846      esac
8847      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8848      lt_prog_compiler_static='${wl}-a ${wl}archive'
8849      ;;
8850
8851    irix5* | irix6* | nonstopux*)
8852      lt_prog_compiler_wl='-Wl,'
8853      # PIC (with -KPIC) is the default.
8854      lt_prog_compiler_static='-non_shared'
8855      ;;
8856
8857    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8858      case $cc_basename in
8859      # old Intel for x86_64 which still supported -KPIC.
8860      ecc*)
8861	lt_prog_compiler_wl='-Wl,'
8862	lt_prog_compiler_pic='-KPIC'
8863	lt_prog_compiler_static='-static'
8864        ;;
8865      # icc used to be incompatible with GCC.
8866      # ICC 10 doesn't accept -KPIC any more.
8867      icc* | ifort*)
8868	lt_prog_compiler_wl='-Wl,'
8869	lt_prog_compiler_pic='-fPIC'
8870	lt_prog_compiler_static='-static'
8871        ;;
8872      # Lahey Fortran 8.1.
8873      lf95*)
8874	lt_prog_compiler_wl='-Wl,'
8875	lt_prog_compiler_pic='--shared'
8876	lt_prog_compiler_static='--static'
8877	;;
8878      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8879        # Portland Group compilers (*not* the Pentium gcc compiler,
8880	# which looks to be a dead project)
8881	lt_prog_compiler_wl='-Wl,'
8882	lt_prog_compiler_pic='-fpic'
8883	lt_prog_compiler_static='-Bstatic'
8884        ;;
8885      ccc*)
8886        lt_prog_compiler_wl='-Wl,'
8887        # All Alpha code is PIC.
8888        lt_prog_compiler_static='-non_shared'
8889        ;;
8890      xl* | bgxl* | bgf* | mpixl*)
8891	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8892	lt_prog_compiler_wl='-Wl,'
8893	lt_prog_compiler_pic='-qpic'
8894	lt_prog_compiler_static='-qstaticlink'
8895	;;
8896      *)
8897	case `$CC -V 2>&1 | sed 5q` in
8898	*Sun\ F* | *Sun*Fortran*)
8899	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8900	  lt_prog_compiler_pic='-KPIC'
8901	  lt_prog_compiler_static='-Bstatic'
8902	  lt_prog_compiler_wl=''
8903	  ;;
8904	*Sun\ C*)
8905	  # Sun C 5.9
8906	  lt_prog_compiler_pic='-KPIC'
8907	  lt_prog_compiler_static='-Bstatic'
8908	  lt_prog_compiler_wl='-Wl,'
8909	  ;;
8910	esac
8911	;;
8912      esac
8913      ;;
8914
8915    newsos6)
8916      lt_prog_compiler_pic='-KPIC'
8917      lt_prog_compiler_static='-Bstatic'
8918      ;;
8919
8920    *nto* | *qnx*)
8921      # QNX uses GNU C++, but need to define -shared option too, otherwise
8922      # it will coredump.
8923      lt_prog_compiler_pic='-fPIC -shared'
8924      ;;
8925
8926    osf3* | osf4* | osf5*)
8927      lt_prog_compiler_wl='-Wl,'
8928      # All OSF/1 code is PIC.
8929      lt_prog_compiler_static='-non_shared'
8930      ;;
8931
8932    rdos*)
8933      lt_prog_compiler_static='-non_shared'
8934      ;;
8935
8936    solaris*)
8937      lt_prog_compiler_pic='-KPIC'
8938      lt_prog_compiler_static='-Bstatic'
8939      case $cc_basename in
8940      f77* | f90* | f95*)
8941	lt_prog_compiler_wl='-Qoption ld ';;
8942      *)
8943	lt_prog_compiler_wl='-Wl,';;
8944      esac
8945      ;;
8946
8947    sunos4*)
8948      lt_prog_compiler_wl='-Qoption ld '
8949      lt_prog_compiler_pic='-PIC'
8950      lt_prog_compiler_static='-Bstatic'
8951      ;;
8952
8953    sysv4 | sysv4.2uw2* | sysv4.3*)
8954      lt_prog_compiler_wl='-Wl,'
8955      lt_prog_compiler_pic='-KPIC'
8956      lt_prog_compiler_static='-Bstatic'
8957      ;;
8958
8959    sysv4*MP*)
8960      if test -d /usr/nec ;then
8961	lt_prog_compiler_pic='-Kconform_pic'
8962	lt_prog_compiler_static='-Bstatic'
8963      fi
8964      ;;
8965
8966    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8967      lt_prog_compiler_wl='-Wl,'
8968      lt_prog_compiler_pic='-KPIC'
8969      lt_prog_compiler_static='-Bstatic'
8970      ;;
8971
8972    unicos*)
8973      lt_prog_compiler_wl='-Wl,'
8974      lt_prog_compiler_can_build_shared=no
8975      ;;
8976
8977    uts4*)
8978      lt_prog_compiler_pic='-pic'
8979      lt_prog_compiler_static='-Bstatic'
8980      ;;
8981
8982    *)
8983      lt_prog_compiler_can_build_shared=no
8984      ;;
8985    esac
8986  fi
8987
8988case $host_os in
8989  # For platforms which do not support PIC, -DPIC is meaningless:
8990  *djgpp*)
8991    lt_prog_compiler_pic=
8992    ;;
8993  *)
8994    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8995    ;;
8996esac
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8998$as_echo "$lt_prog_compiler_pic" >&6; }
8999
9000
9001
9002
9003
9004
9005#
9006# Check to make sure the PIC flag actually works.
9007#
9008if test -n "$lt_prog_compiler_pic"; then
9009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9010$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9011if ${lt_cv_prog_compiler_pic_works+:} false; then :
9012  $as_echo_n "(cached) " >&6
9013else
9014  lt_cv_prog_compiler_pic_works=no
9015   ac_outfile=conftest.$ac_objext
9016   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9017   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9018   # Insert the option either (1) after the last *FLAGS variable, or
9019   # (2) before a word containing "conftest.", or (3) at the end.
9020   # Note that $ac_compile itself does not contain backslashes and begins
9021   # with a dollar sign (not a hyphen), so the echo should work correctly.
9022   # The option is referenced via a variable to avoid confusing sed.
9023   lt_compile=`echo "$ac_compile" | $SED \
9024   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9025   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9026   -e 's:$: $lt_compiler_flag:'`
9027   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9028   (eval "$lt_compile" 2>conftest.err)
9029   ac_status=$?
9030   cat conftest.err >&5
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   if (exit $ac_status) && test -s "$ac_outfile"; then
9033     # The compiler can only warn and ignore the option if not recognized
9034     # So say no if there are warnings other than the usual output.
9035     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9036     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9037     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9038       lt_cv_prog_compiler_pic_works=yes
9039     fi
9040   fi
9041   $RM conftest*
9042
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9045$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9046
9047if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9048    case $lt_prog_compiler_pic in
9049     "" | " "*) ;;
9050     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9051     esac
9052else
9053    lt_prog_compiler_pic=
9054     lt_prog_compiler_can_build_shared=no
9055fi
9056
9057fi
9058
9059
9060
9061
9062
9063
9064#
9065# Check to make sure the static flag actually works.
9066#
9067wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9069$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9070if ${lt_cv_prog_compiler_static_works+:} false; then :
9071  $as_echo_n "(cached) " >&6
9072else
9073  lt_cv_prog_compiler_static_works=no
9074   save_LDFLAGS="$LDFLAGS"
9075   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9076   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9077   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9078     # The linker can only warn and ignore the option if not recognized
9079     # So say no if there are warnings
9080     if test -s conftest.err; then
9081       # Append any errors to the config.log.
9082       cat conftest.err 1>&5
9083       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9084       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085       if diff conftest.exp conftest.er2 >/dev/null; then
9086         lt_cv_prog_compiler_static_works=yes
9087       fi
9088     else
9089       lt_cv_prog_compiler_static_works=yes
9090     fi
9091   fi
9092   $RM -r conftest*
9093   LDFLAGS="$save_LDFLAGS"
9094
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9097$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9098
9099if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9100    :
9101else
9102    lt_prog_compiler_static=
9103fi
9104
9105
9106
9107
9108
9109
9110
9111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9112$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9113if ${lt_cv_prog_compiler_c_o+:} false; then :
9114  $as_echo_n "(cached) " >&6
9115else
9116  lt_cv_prog_compiler_c_o=no
9117   $RM -r conftest 2>/dev/null
9118   mkdir conftest
9119   cd conftest
9120   mkdir out
9121   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9122
9123   lt_compiler_flag="-o out/conftest2.$ac_objext"
9124   # Insert the option either (1) after the last *FLAGS variable, or
9125   # (2) before a word containing "conftest.", or (3) at the end.
9126   # Note that $ac_compile itself does not contain backslashes and begins
9127   # with a dollar sign (not a hyphen), so the echo should work correctly.
9128   lt_compile=`echo "$ac_compile" | $SED \
9129   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9130   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9131   -e 's:$: $lt_compiler_flag:'`
9132   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9133   (eval "$lt_compile" 2>out/conftest.err)
9134   ac_status=$?
9135   cat out/conftest.err >&5
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9138   then
9139     # The compiler can only warn and ignore the option if not recognized
9140     # So say no if there are warnings
9141     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9142     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9143     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9144       lt_cv_prog_compiler_c_o=yes
9145     fi
9146   fi
9147   chmod u+w . 2>&5
9148   $RM conftest*
9149   # SGI C++ compiler will create directory out/ii_files/ for
9150   # template instantiation
9151   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9152   $RM out/* && rmdir out
9153   cd ..
9154   $RM -r conftest
9155   $RM conftest*
9156
9157fi
9158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9159$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9160
9161
9162
9163
9164
9165
9166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9167$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9168if ${lt_cv_prog_compiler_c_o+:} false; then :
9169  $as_echo_n "(cached) " >&6
9170else
9171  lt_cv_prog_compiler_c_o=no
9172   $RM -r conftest 2>/dev/null
9173   mkdir conftest
9174   cd conftest
9175   mkdir out
9176   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9177
9178   lt_compiler_flag="-o out/conftest2.$ac_objext"
9179   # Insert the option either (1) after the last *FLAGS variable, or
9180   # (2) before a word containing "conftest.", or (3) at the end.
9181   # Note that $ac_compile itself does not contain backslashes and begins
9182   # with a dollar sign (not a hyphen), so the echo should work correctly.
9183   lt_compile=`echo "$ac_compile" | $SED \
9184   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9185   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9186   -e 's:$: $lt_compiler_flag:'`
9187   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9188   (eval "$lt_compile" 2>out/conftest.err)
9189   ac_status=$?
9190   cat out/conftest.err >&5
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9193   then
9194     # The compiler can only warn and ignore the option if not recognized
9195     # So say no if there are warnings
9196     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9197     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9198     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9199       lt_cv_prog_compiler_c_o=yes
9200     fi
9201   fi
9202   chmod u+w . 2>&5
9203   $RM conftest*
9204   # SGI C++ compiler will create directory out/ii_files/ for
9205   # template instantiation
9206   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9207   $RM out/* && rmdir out
9208   cd ..
9209   $RM -r conftest
9210   $RM conftest*
9211
9212fi
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9214$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9215
9216
9217
9218
9219hard_links="nottested"
9220if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9221  # do not overwrite the value of need_locks provided by the user
9222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9223$as_echo_n "checking if we can lock with hard links... " >&6; }
9224  hard_links=yes
9225  $RM conftest*
9226  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9227  touch conftest.a
9228  ln conftest.a conftest.b 2>&5 || hard_links=no
9229  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9231$as_echo "$hard_links" >&6; }
9232  if test "$hard_links" = no; then
9233    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9234$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9235    need_locks=warn
9236  fi
9237else
9238  need_locks=no
9239fi
9240
9241
9242
9243
9244
9245
9246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9247$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9248
9249  runpath_var=
9250  allow_undefined_flag=
9251  always_export_symbols=no
9252  archive_cmds=
9253  archive_expsym_cmds=
9254  compiler_needs_object=no
9255  enable_shared_with_static_runtimes=no
9256  export_dynamic_flag_spec=
9257  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9258  hardcode_automatic=no
9259  hardcode_direct=no
9260  hardcode_direct_absolute=no
9261  hardcode_libdir_flag_spec=
9262  hardcode_libdir_flag_spec_ld=
9263  hardcode_libdir_separator=
9264  hardcode_minus_L=no
9265  hardcode_shlibpath_var=unsupported
9266  inherit_rpath=no
9267  link_all_deplibs=unknown
9268  module_cmds=
9269  module_expsym_cmds=
9270  old_archive_from_new_cmds=
9271  old_archive_from_expsyms_cmds=
9272  thread_safe_flag_spec=
9273  whole_archive_flag_spec=
9274  # include_expsyms should be a list of space-separated symbols to be *always*
9275  # included in the symbol list
9276  include_expsyms=
9277  # exclude_expsyms can be an extended regexp of symbols to exclude
9278  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9279  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9280  # as well as any symbol that contains `d'.
9281  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9282  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9283  # platforms (ab)use it in PIC code, but their linkers get confused if
9284  # the symbol is explicitly referenced.  Since portable code cannot
9285  # rely on this symbol name, it's probably fine to never include it in
9286  # preloaded symbol tables.
9287  # Exclude shared library initialization/finalization symbols.
9288  extract_expsyms_cmds=
9289
9290  case $host_os in
9291  cygwin* | mingw* | pw32* | cegcc*)
9292    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9293    # When not using gcc, we currently assume that we are using
9294    # Microsoft Visual C++.
9295    if test "$GCC" != yes; then
9296      with_gnu_ld=no
9297    fi
9298    ;;
9299  interix*)
9300    # we just hope/assume this is gcc and not c89 (= MSVC++)
9301    with_gnu_ld=yes
9302    ;;
9303  openbsd*)
9304    with_gnu_ld=no
9305    ;;
9306  esac
9307
9308  ld_shlibs=yes
9309
9310  # On some targets, GNU ld is compatible enough with the native linker
9311  # that we're better off using the native interface for both.
9312  lt_use_gnu_ld_interface=no
9313  if test "$with_gnu_ld" = yes; then
9314    case $host_os in
9315      aix*)
9316	# The AIX port of GNU ld has always aspired to compatibility
9317	# with the native linker.  However, as the warning in the GNU ld
9318	# block says, versions before 2.19.5* couldn't really create working
9319	# shared libraries, regardless of the interface used.
9320	case `$LD -v 2>&1` in
9321	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9322	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9323	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9324	  *)
9325	    lt_use_gnu_ld_interface=yes
9326	    ;;
9327	esac
9328	;;
9329      *)
9330	lt_use_gnu_ld_interface=yes
9331	;;
9332    esac
9333  fi
9334
9335  if test "$lt_use_gnu_ld_interface" = yes; then
9336    # If archive_cmds runs LD, not CC, wlarc should be empty
9337    wlarc='${wl}'
9338
9339    # Set some defaults for GNU ld with shared library support. These
9340    # are reset later if shared libraries are not supported. Putting them
9341    # here allows them to be overridden if necessary.
9342    runpath_var=LD_RUN_PATH
9343    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9344    export_dynamic_flag_spec='${wl}--export-dynamic'
9345    # ancient GNU ld didn't support --whole-archive et. al.
9346    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9347      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9348    else
9349      whole_archive_flag_spec=
9350    fi
9351    supports_anon_versioning=no
9352    case `$LD -v 2>&1` in
9353      *GNU\ gold*) supports_anon_versioning=yes ;;
9354      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9355      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9356      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9357      *\ 2.11.*) ;; # other 2.11 versions
9358      *) supports_anon_versioning=yes ;;
9359    esac
9360
9361    # See if GNU ld supports shared libraries.
9362    case $host_os in
9363    aix[3-9]*)
9364      # On AIX/PPC, the GNU linker is very broken
9365      if test "$host_cpu" != ia64; then
9366	ld_shlibs=no
9367	cat <<_LT_EOF 1>&2
9368
9369*** Warning: the GNU linker, at least up to release 2.19, is reported
9370*** to be unable to reliably create shared libraries on AIX.
9371*** Therefore, libtool is disabling shared libraries support.  If you
9372*** really care for shared libraries, you may want to install binutils
9373*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9374*** You will then need to restart the configuration process.
9375
9376_LT_EOF
9377      fi
9378      ;;
9379
9380    amigaos*)
9381      case $host_cpu in
9382      powerpc)
9383            # see comment about AmigaOS4 .so support
9384            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385            archive_expsym_cmds=''
9386        ;;
9387      m68k)
9388            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)'
9389            hardcode_libdir_flag_spec='-L$libdir'
9390            hardcode_minus_L=yes
9391        ;;
9392      esac
9393      ;;
9394
9395    beos*)
9396      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9397	allow_undefined_flag=unsupported
9398	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9399	# support --undefined.  This deserves some investigation.  FIXME
9400	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401      else
9402	ld_shlibs=no
9403      fi
9404      ;;
9405
9406    cygwin* | mingw* | pw32* | cegcc*)
9407      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9408      # as there is no search path for DLLs.
9409      hardcode_libdir_flag_spec='-L$libdir'
9410      export_dynamic_flag_spec='${wl}--export-all-symbols'
9411      allow_undefined_flag=unsupported
9412      always_export_symbols=no
9413      enable_shared_with_static_runtimes=yes
9414      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9415
9416      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9417        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9418	# If the export-symbols file already is a .def file (1st line
9419	# is EXPORTS), use it as is; otherwise, prepend...
9420	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9421	  cp $export_symbols $output_objdir/$soname.def;
9422	else
9423	  echo EXPORTS > $output_objdir/$soname.def;
9424	  cat $export_symbols >> $output_objdir/$soname.def;
9425	fi~
9426	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9427      else
9428	ld_shlibs=no
9429      fi
9430      ;;
9431
9432    haiku*)
9433      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9434      link_all_deplibs=yes
9435      ;;
9436
9437    interix[3-9]*)
9438      hardcode_direct=no
9439      hardcode_shlibpath_var=no
9440      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9441      export_dynamic_flag_spec='${wl}-E'
9442      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9443      # Instead, shared libraries are loaded at an image base (0x10000000 by
9444      # default) and relocated if they conflict, which is a slow very memory
9445      # consuming and fragmenting process.  To avoid this, we pick a random,
9446      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9447      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9448      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9449      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'
9450      ;;
9451
9452    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9453      tmp_diet=no
9454      if test "$host_os" = linux-dietlibc; then
9455	case $cc_basename in
9456	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9457	esac
9458      fi
9459      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9460	 && test "$tmp_diet" = no
9461      then
9462	tmp_addflag=' $pic_flag'
9463	tmp_sharedflag='-shared'
9464	case $cc_basename,$host_cpu in
9465        pgcc*)				# Portland Group C compiler
9466	  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'
9467	  tmp_addflag=' $pic_flag'
9468	  ;;
9469	pgf77* | pgf90* | pgf95* | pgfortran*)
9470					# Portland Group f77 and f90 compilers
9471	  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'
9472	  tmp_addflag=' $pic_flag -Mnomain' ;;
9473	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9474	  tmp_addflag=' -i_dynamic' ;;
9475	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9476	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9477	ifc* | ifort*)			# Intel Fortran compiler
9478	  tmp_addflag=' -nofor_main' ;;
9479	lf95*)				# Lahey Fortran 8.1
9480	  whole_archive_flag_spec=
9481	  tmp_sharedflag='--shared' ;;
9482	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9483	  tmp_sharedflag='-qmkshrobj'
9484	  tmp_addflag= ;;
9485	nvcc*)	# Cuda Compiler Driver 2.2
9486	  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'
9487	  compiler_needs_object=yes
9488	  ;;
9489	esac
9490	case `$CC -V 2>&1 | sed 5q` in
9491	*Sun\ C*)			# Sun C 5.9
9492	  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'
9493	  compiler_needs_object=yes
9494	  tmp_sharedflag='-G' ;;
9495	*Sun\ F*)			# Sun Fortran 8.3
9496	  tmp_sharedflag='-G' ;;
9497	esac
9498	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499
9500        if test "x$supports_anon_versioning" = xyes; then
9501          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9502	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9503	    echo "local: *; };" >> $output_objdir/$libname.ver~
9504	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9505        fi
9506
9507	case $cc_basename in
9508	xlf* | bgf* | bgxlf* | mpixlf*)
9509	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9510	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9511	  hardcode_libdir_flag_spec=
9512	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9513	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9514	  if test "x$supports_anon_versioning" = xyes; then
9515	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9516	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9517	      echo "local: *; };" >> $output_objdir/$libname.ver~
9518	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9519	  fi
9520	  ;;
9521	esac
9522      else
9523        ld_shlibs=no
9524      fi
9525      ;;
9526
9527    netbsd*)
9528      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9529	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9530	wlarc=
9531      else
9532	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9533	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9534      fi
9535      ;;
9536
9537    solaris*)
9538      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9539	ld_shlibs=no
9540	cat <<_LT_EOF 1>&2
9541
9542*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9543*** create shared libraries on Solaris systems.  Therefore, libtool
9544*** is disabling shared libraries support.  We urge you to upgrade GNU
9545*** binutils to release 2.9.1 or newer.  Another option is to modify
9546*** your PATH or compiler configuration so that the native linker is
9547*** used, and then restart.
9548
9549_LT_EOF
9550      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9551	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9553      else
9554	ld_shlibs=no
9555      fi
9556      ;;
9557
9558    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9559      case `$LD -v 2>&1` in
9560        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9561	ld_shlibs=no
9562	cat <<_LT_EOF 1>&2
9563
9564*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9565*** reliably create shared libraries on SCO systems.  Therefore, libtool
9566*** is disabling shared libraries support.  We urge you to upgrade GNU
9567*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9568*** your PATH or compiler configuration so that the native linker is
9569*** used, and then restart.
9570
9571_LT_EOF
9572	;;
9573	*)
9574	  # For security reasons, it is highly recommended that you always
9575	  # use absolute paths for naming shared libraries, and exclude the
9576	  # DT_RUNPATH tag from executables and libraries.  But doing so
9577	  # requires that you compile everything twice, which is a pain.
9578	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9579	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9582	  else
9583	    ld_shlibs=no
9584	  fi
9585	;;
9586      esac
9587      ;;
9588
9589    sunos4*)
9590      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9591      wlarc=
9592      hardcode_direct=yes
9593      hardcode_shlibpath_var=no
9594      ;;
9595
9596    *)
9597      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9598	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9600      else
9601	ld_shlibs=no
9602      fi
9603      ;;
9604    esac
9605
9606    if test "$ld_shlibs" = no; then
9607      runpath_var=
9608      hardcode_libdir_flag_spec=
9609      export_dynamic_flag_spec=
9610      whole_archive_flag_spec=
9611    fi
9612  else
9613    # PORTME fill in a description of your system's linker (not GNU ld)
9614    case $host_os in
9615    aix3*)
9616      allow_undefined_flag=unsupported
9617      always_export_symbols=yes
9618      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'
9619      # Note: this linker hardcodes the directories in LIBPATH if there
9620      # are no directories specified by -L.
9621      hardcode_minus_L=yes
9622      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9623	# Neither direct hardcoding nor static linking is supported with a
9624	# broken collect2.
9625	hardcode_direct=unsupported
9626      fi
9627      ;;
9628
9629    aix[4-9]*)
9630      if test "$host_cpu" = ia64; then
9631	# On IA64, the linker does run time linking by default, so we don't
9632	# have to do anything special.
9633	aix_use_runtimelinking=no
9634	exp_sym_flag='-Bexport'
9635	no_entry_flag=""
9636      else
9637	# If we're using GNU nm, then we don't want the "-C" option.
9638	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9639	# Also, AIX nm treats weak defined symbols like other global
9640	# defined symbols, whereas GNU nm marks them as "W".
9641	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9642	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9643	else
9644	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9645	fi
9646	aix_use_runtimelinking=no
9647
9648	# Test if we are trying to use run time linking or normal
9649	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9650	# need to do runtime linking.
9651	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9652	  for ld_flag in $LDFLAGS; do
9653	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9654	    aix_use_runtimelinking=yes
9655	    break
9656	  fi
9657	  done
9658	  ;;
9659	esac
9660
9661	exp_sym_flag='-bexport'
9662	no_entry_flag='-bnoentry'
9663      fi
9664
9665      # When large executables or shared objects are built, AIX ld can
9666      # have problems creating the table of contents.  If linking a library
9667      # or program results in "error TOC overflow" add -mminimal-toc to
9668      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9669      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9670
9671      archive_cmds=''
9672      hardcode_direct=yes
9673      hardcode_direct_absolute=yes
9674      hardcode_libdir_separator=':'
9675      link_all_deplibs=yes
9676      file_list_spec='${wl}-f,'
9677
9678      if test "$GCC" = yes; then
9679	case $host_os in aix4.[012]|aix4.[012].*)
9680	# We only want to do this on AIX 4.2 and lower, the check
9681	# below for broken collect2 doesn't work under 4.3+
9682	  collect2name=`${CC} -print-prog-name=collect2`
9683	  if test -f "$collect2name" &&
9684	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9685	  then
9686	  # We have reworked collect2
9687	  :
9688	  else
9689	  # We have old collect2
9690	  hardcode_direct=unsupported
9691	  # It fails to find uninstalled libraries when the uninstalled
9692	  # path is not listed in the libpath.  Setting hardcode_minus_L
9693	  # to unsupported forces relinking
9694	  hardcode_minus_L=yes
9695	  hardcode_libdir_flag_spec='-L$libdir'
9696	  hardcode_libdir_separator=
9697	  fi
9698	  ;;
9699	esac
9700	shared_flag='-shared'
9701	if test "$aix_use_runtimelinking" = yes; then
9702	  shared_flag="$shared_flag "'${wl}-G'
9703	fi
9704      else
9705	# not using gcc
9706	if test "$host_cpu" = ia64; then
9707	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9708	# chokes on -Wl,-G. The following line is correct:
9709	  shared_flag='-G'
9710	else
9711	  if test "$aix_use_runtimelinking" = yes; then
9712	    shared_flag='${wl}-G'
9713	  else
9714	    shared_flag='${wl}-bM:SRE'
9715	  fi
9716	fi
9717      fi
9718
9719      export_dynamic_flag_spec='${wl}-bexpall'
9720      # It seems that -bexpall does not export symbols beginning with
9721      # underscore (_), so it is better to generate a list of symbols to export.
9722      always_export_symbols=yes
9723      if test "$aix_use_runtimelinking" = yes; then
9724	# Warning - without using the other runtime loading flags (-brtl),
9725	# -berok will link without error, but may produce a broken library.
9726	allow_undefined_flag='-berok'
9727        # Determine the default libpath from the value encoded in an
9728        # empty executable.
9729        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730/* end confdefs.h.  */
9731
9732int
9733main ()
9734{
9735
9736  ;
9737  return 0;
9738}
9739_ACEOF
9740if ac_fn_c_try_link "$LINENO"; then :
9741
9742lt_aix_libpath_sed='
9743    /Import File Strings/,/^$/ {
9744	/^0/ {
9745	    s/^0  *\(.*\)$/\1/
9746	    p
9747	}
9748    }'
9749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750# Check for a 64-bit object if we didn't find anything.
9751if test -z "$aix_libpath"; then
9752  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9753fi
9754fi
9755rm -f core conftest.err conftest.$ac_objext \
9756    conftest$ac_exeext conftest.$ac_ext
9757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9758
9759        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9760        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9761      else
9762	if test "$host_cpu" = ia64; then
9763	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9764	  allow_undefined_flag="-z nodefs"
9765	  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"
9766	else
9767	 # Determine the default libpath from the value encoded in an
9768	 # empty executable.
9769	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h.  */
9771
9772int
9773main ()
9774{
9775
9776  ;
9777  return 0;
9778}
9779_ACEOF
9780if ac_fn_c_try_link "$LINENO"; then :
9781
9782lt_aix_libpath_sed='
9783    /Import File Strings/,/^$/ {
9784	/^0/ {
9785	    s/^0  *\(.*\)$/\1/
9786	    p
9787	}
9788    }'
9789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9790# Check for a 64-bit object if we didn't find anything.
9791if test -z "$aix_libpath"; then
9792  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9793fi
9794fi
9795rm -f core conftest.err conftest.$ac_objext \
9796    conftest$ac_exeext conftest.$ac_ext
9797if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9798
9799	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9800	  # Warning - without using the other run time loading flags,
9801	  # -berok will link without error, but may produce a broken library.
9802	  no_undefined_flag=' ${wl}-bernotok'
9803	  allow_undefined_flag=' ${wl}-berok'
9804	  if test "$with_gnu_ld" = yes; then
9805	    # We only use this code for GNU lds that support --whole-archive.
9806	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9807	  else
9808	    # Exported symbols can be pulled into shared objects from archives
9809	    whole_archive_flag_spec='$convenience'
9810	  fi
9811	  archive_cmds_need_lc=yes
9812	  # This is similar to how AIX traditionally builds its shared libraries.
9813	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9814	fi
9815      fi
9816      ;;
9817
9818    amigaos*)
9819      case $host_cpu in
9820      powerpc)
9821            # see comment about AmigaOS4 .so support
9822            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823            archive_expsym_cmds=''
9824        ;;
9825      m68k)
9826            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)'
9827            hardcode_libdir_flag_spec='-L$libdir'
9828            hardcode_minus_L=yes
9829        ;;
9830      esac
9831      ;;
9832
9833    bsdi[45]*)
9834      export_dynamic_flag_spec=-rdynamic
9835      ;;
9836
9837    cygwin* | mingw* | pw32* | cegcc*)
9838      # When not using gcc, we currently assume that we are using
9839      # Microsoft Visual C++.
9840      # hardcode_libdir_flag_spec is actually meaningless, as there is
9841      # no search path for DLLs.
9842      hardcode_libdir_flag_spec=' '
9843      allow_undefined_flag=unsupported
9844      # Tell ltmain to make .lib files, not .a files.
9845      libext=lib
9846      # Tell ltmain to make .dll files, not .so files.
9847      shrext_cmds=".dll"
9848      # FIXME: Setting linknames here is a bad hack.
9849      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9850      # The linker will automatically build a .lib file if we build a DLL.
9851      old_archive_from_new_cmds='true'
9852      # FIXME: Should let the user specify the lib program.
9853      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9854      fix_srcfile_path='`cygpath -w "$srcfile"`'
9855      enable_shared_with_static_runtimes=yes
9856      ;;
9857
9858    darwin* | rhapsody*)
9859
9860
9861  archive_cmds_need_lc=no
9862  hardcode_direct=no
9863  hardcode_automatic=yes
9864  hardcode_shlibpath_var=unsupported
9865  if test "$lt_cv_ld_force_load" = "yes"; then
9866    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\"`'
9867  else
9868    whole_archive_flag_spec=''
9869  fi
9870  link_all_deplibs=yes
9871  allow_undefined_flag="$_lt_dar_allow_undefined"
9872  case $cc_basename in
9873     ifort*) _lt_dar_can_shared=yes ;;
9874     *) _lt_dar_can_shared=$GCC ;;
9875  esac
9876  if test "$_lt_dar_can_shared" = "yes"; then
9877    output_verbose_link_cmd=func_echo_all
9878    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9879    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9880    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}"
9881    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}"
9882
9883  else
9884  ld_shlibs=no
9885  fi
9886
9887      ;;
9888
9889    dgux*)
9890      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891      hardcode_libdir_flag_spec='-L$libdir'
9892      hardcode_shlibpath_var=no
9893      ;;
9894
9895    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9896    # support.  Future versions do this automatically, but an explicit c++rt0.o
9897    # does not break anything, and helps significantly (at the cost of a little
9898    # extra space).
9899    freebsd2.2*)
9900      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9901      hardcode_libdir_flag_spec='-R$libdir'
9902      hardcode_direct=yes
9903      hardcode_shlibpath_var=no
9904      ;;
9905
9906    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9907    freebsd2.*)
9908      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9909      hardcode_direct=yes
9910      hardcode_minus_L=yes
9911      hardcode_shlibpath_var=no
9912      ;;
9913
9914    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9915    freebsd* | dragonfly*)
9916      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9917      hardcode_libdir_flag_spec='-R$libdir'
9918      hardcode_direct=yes
9919      hardcode_shlibpath_var=no
9920      ;;
9921
9922    hpux9*)
9923      if test "$GCC" = yes; then
9924	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9925      else
9926	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9927      fi
9928      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9929      hardcode_libdir_separator=:
9930      hardcode_direct=yes
9931
9932      # hardcode_minus_L: Not really in the search PATH,
9933      # but as the default location of the library.
9934      hardcode_minus_L=yes
9935      export_dynamic_flag_spec='${wl}-E'
9936      ;;
9937
9938    hpux10*)
9939      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9940	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9941      else
9942	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9943      fi
9944      if test "$with_gnu_ld" = no; then
9945	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9946	hardcode_libdir_flag_spec_ld='+b $libdir'
9947	hardcode_libdir_separator=:
9948	hardcode_direct=yes
9949	hardcode_direct_absolute=yes
9950	export_dynamic_flag_spec='${wl}-E'
9951	# hardcode_minus_L: Not really in the search PATH,
9952	# but as the default location of the library.
9953	hardcode_minus_L=yes
9954      fi
9955      ;;
9956
9957    hpux11*)
9958      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9959	case $host_cpu in
9960	hppa*64*)
9961	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9962	  ;;
9963	ia64*)
9964	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9965	  ;;
9966	*)
9967	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9968	  ;;
9969	esac
9970      else
9971	case $host_cpu in
9972	hppa*64*)
9973	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9974	  ;;
9975	ia64*)
9976	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9977	  ;;
9978	*)
9979
9980	  # Older versions of the 11.00 compiler do not understand -b yet
9981	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9982	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9983$as_echo_n "checking if $CC understands -b... " >&6; }
9984if ${lt_cv_prog_compiler__b+:} false; then :
9985  $as_echo_n "(cached) " >&6
9986else
9987  lt_cv_prog_compiler__b=no
9988   save_LDFLAGS="$LDFLAGS"
9989   LDFLAGS="$LDFLAGS -b"
9990   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9991   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9992     # The linker can only warn and ignore the option if not recognized
9993     # So say no if there are warnings
9994     if test -s conftest.err; then
9995       # Append any errors to the config.log.
9996       cat conftest.err 1>&5
9997       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9998       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9999       if diff conftest.exp conftest.er2 >/dev/null; then
10000         lt_cv_prog_compiler__b=yes
10001       fi
10002     else
10003       lt_cv_prog_compiler__b=yes
10004     fi
10005   fi
10006   $RM -r conftest*
10007   LDFLAGS="$save_LDFLAGS"
10008
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10011$as_echo "$lt_cv_prog_compiler__b" >&6; }
10012
10013if test x"$lt_cv_prog_compiler__b" = xyes; then
10014    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10015else
10016    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10017fi
10018
10019	  ;;
10020	esac
10021      fi
10022      if test "$with_gnu_ld" = no; then
10023	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10024	hardcode_libdir_separator=:
10025
10026	case $host_cpu in
10027	hppa*64*|ia64*)
10028	  hardcode_direct=no
10029	  hardcode_shlibpath_var=no
10030	  ;;
10031	*)
10032	  hardcode_direct=yes
10033	  hardcode_direct_absolute=yes
10034	  export_dynamic_flag_spec='${wl}-E'
10035
10036	  # hardcode_minus_L: Not really in the search PATH,
10037	  # but as the default location of the library.
10038	  hardcode_minus_L=yes
10039	  ;;
10040	esac
10041      fi
10042      ;;
10043
10044    irix5* | irix6* | nonstopux*)
10045      if test "$GCC" = yes; then
10046	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10047	# Try to use the -exported_symbol ld option, if it does not
10048	# work, assume that -exports_file does not work either and
10049	# implicitly export all symbols.
10050        save_LDFLAGS="$LDFLAGS"
10051        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10052        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053/* end confdefs.h.  */
10054int foo(void) {}
10055_ACEOF
10056if ac_fn_c_try_link "$LINENO"; then :
10057  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10058
10059fi
10060rm -f core conftest.err conftest.$ac_objext \
10061    conftest$ac_exeext conftest.$ac_ext
10062        LDFLAGS="$save_LDFLAGS"
10063      else
10064	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'
10065	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'
10066      fi
10067      archive_cmds_need_lc='no'
10068      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069      hardcode_libdir_separator=:
10070      inherit_rpath=yes
10071      link_all_deplibs=yes
10072      ;;
10073
10074    netbsd*)
10075      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10076	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10077      else
10078	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10079      fi
10080      hardcode_libdir_flag_spec='-R$libdir'
10081      hardcode_direct=yes
10082      hardcode_shlibpath_var=no
10083      ;;
10084
10085    newsos6)
10086      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087      hardcode_direct=yes
10088      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10089      hardcode_libdir_separator=:
10090      hardcode_shlibpath_var=no
10091      ;;
10092
10093    *nto* | *qnx*)
10094      ;;
10095
10096    openbsd*)
10097      if test -f /usr/libexec/ld.so; then
10098	hardcode_direct=yes
10099	hardcode_shlibpath_var=no
10100	hardcode_direct_absolute=yes
10101	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10102	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10103	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10104	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10105	  export_dynamic_flag_spec='${wl}-E'
10106	else
10107	  case $host_os in
10108	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10109	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10110	     hardcode_libdir_flag_spec='-R$libdir'
10111	     ;;
10112	   *)
10113	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10114	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10115	     ;;
10116	  esac
10117	fi
10118      else
10119	ld_shlibs=no
10120      fi
10121      ;;
10122
10123    os2*)
10124      hardcode_libdir_flag_spec='-L$libdir'
10125      hardcode_minus_L=yes
10126      allow_undefined_flag=unsupported
10127      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10128      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10129      ;;
10130
10131    osf3*)
10132      if test "$GCC" = yes; then
10133	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10134	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'
10135      else
10136	allow_undefined_flag=' -expect_unresolved \*'
10137	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'
10138      fi
10139      archive_cmds_need_lc='no'
10140      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10141      hardcode_libdir_separator=:
10142      ;;
10143
10144    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10145      if test "$GCC" = yes; then
10146	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10147	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10148	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10149      else
10150	allow_undefined_flag=' -expect_unresolved \*'
10151	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'
10152	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~
10153	$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'
10154
10155	# Both c and cxx compiler support -rpath directly
10156	hardcode_libdir_flag_spec='-rpath $libdir'
10157      fi
10158      archive_cmds_need_lc='no'
10159      hardcode_libdir_separator=:
10160      ;;
10161
10162    solaris*)
10163      no_undefined_flag=' -z defs'
10164      if test "$GCC" = yes; then
10165	wlarc='${wl}'
10166	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10167	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10168	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10169      else
10170	case `$CC -V 2>&1` in
10171	*"Compilers 5.0"*)
10172	  wlarc=''
10173	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10175	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10176	  ;;
10177	*)
10178	  wlarc='${wl}'
10179	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10180	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10181	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10182	  ;;
10183	esac
10184      fi
10185      hardcode_libdir_flag_spec='-R$libdir'
10186      hardcode_shlibpath_var=no
10187      case $host_os in
10188      solaris2.[0-5] | solaris2.[0-5].*) ;;
10189      *)
10190	# The compiler driver will combine and reorder linker options,
10191	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10192	# but is careful enough not to reorder.
10193	# Supported since Solaris 2.6 (maybe 2.5.1?)
10194	if test "$GCC" = yes; then
10195	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10196	else
10197	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10198	fi
10199	;;
10200      esac
10201      link_all_deplibs=yes
10202      ;;
10203
10204    sunos4*)
10205      if test "x$host_vendor" = xsequent; then
10206	# Use $CC to link under sequent, because it throws in some extra .o
10207	# files that make .init and .fini sections work.
10208	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10209      else
10210	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10211      fi
10212      hardcode_libdir_flag_spec='-L$libdir'
10213      hardcode_direct=yes
10214      hardcode_minus_L=yes
10215      hardcode_shlibpath_var=no
10216      ;;
10217
10218    sysv4)
10219      case $host_vendor in
10220	sni)
10221	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222	  hardcode_direct=yes # is this really true???
10223	;;
10224	siemens)
10225	  ## LD is ld it makes a PLAMLIB
10226	  ## CC just makes a GrossModule.
10227	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10228	  reload_cmds='$CC -r -o $output$reload_objs'
10229	  hardcode_direct=no
10230        ;;
10231	motorola)
10232	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10234	;;
10235      esac
10236      runpath_var='LD_RUN_PATH'
10237      hardcode_shlibpath_var=no
10238      ;;
10239
10240    sysv4.3*)
10241      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242      hardcode_shlibpath_var=no
10243      export_dynamic_flag_spec='-Bexport'
10244      ;;
10245
10246    sysv4*MP*)
10247      if test -d /usr/nec; then
10248	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249	hardcode_shlibpath_var=no
10250	runpath_var=LD_RUN_PATH
10251	hardcode_runpath_var=yes
10252	ld_shlibs=yes
10253      fi
10254      ;;
10255
10256    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10257      no_undefined_flag='${wl}-z,text'
10258      archive_cmds_need_lc=no
10259      hardcode_shlibpath_var=no
10260      runpath_var='LD_RUN_PATH'
10261
10262      if test "$GCC" = yes; then
10263	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265      else
10266	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268      fi
10269      ;;
10270
10271    sysv5* | sco3.2v5* | sco5v6*)
10272      # Note: We can NOT use -z defs as we might desire, because we do not
10273      # link with -lc, and that would cause any symbols used from libc to
10274      # always be unresolved, which means just about no library would
10275      # ever link correctly.  If we're not using GNU ld we use -z text
10276      # though, which does catch some bad symbols but isn't as heavy-handed
10277      # as -z defs.
10278      no_undefined_flag='${wl}-z,text'
10279      allow_undefined_flag='${wl}-z,nodefs'
10280      archive_cmds_need_lc=no
10281      hardcode_shlibpath_var=no
10282      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10283      hardcode_libdir_separator=':'
10284      link_all_deplibs=yes
10285      export_dynamic_flag_spec='${wl}-Bexport'
10286      runpath_var='LD_RUN_PATH'
10287
10288      if test "$GCC" = yes; then
10289	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291      else
10292	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294      fi
10295      ;;
10296
10297    uts4*)
10298      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10299      hardcode_libdir_flag_spec='-L$libdir'
10300      hardcode_shlibpath_var=no
10301      ;;
10302
10303    *)
10304      ld_shlibs=no
10305      ;;
10306    esac
10307
10308    if test x$host_vendor = xsni; then
10309      case $host in
10310      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10311	export_dynamic_flag_spec='${wl}-Blargedynsym'
10312	;;
10313      esac
10314    fi
10315  fi
10316
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10318$as_echo "$ld_shlibs" >&6; }
10319test "$ld_shlibs" = no && can_build_shared=no
10320
10321with_gnu_ld=$with_gnu_ld
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337#
10338# Do we need to explicitly link libc?
10339#
10340case "x$archive_cmds_need_lc" in
10341x|xyes)
10342  # Assume -lc should be added
10343  archive_cmds_need_lc=yes
10344
10345  if test "$enable_shared" = yes && test "$GCC" = yes; then
10346    case $archive_cmds in
10347    *'~'*)
10348      # FIXME: we may have to deal with multi-command sequences.
10349      ;;
10350    '$CC '*)
10351      # Test whether the compiler implicitly links with -lc since on some
10352      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10353      # to ld, don't add -lc before -lgcc.
10354      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10355$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10356if ${lt_cv_archive_cmds_need_lc+:} false; then :
10357  $as_echo_n "(cached) " >&6
10358else
10359  $RM conftest*
10360	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10361
10362	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10363  (eval $ac_compile) 2>&5
10364  ac_status=$?
10365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10366  test $ac_status = 0; } 2>conftest.err; then
10367	  soname=conftest
10368	  lib=conftest
10369	  libobjs=conftest.$ac_objext
10370	  deplibs=
10371	  wl=$lt_prog_compiler_wl
10372	  pic_flag=$lt_prog_compiler_pic
10373	  compiler_flags=-v
10374	  linker_flags=-v
10375	  verstring=
10376	  output_objdir=.
10377	  libname=conftest
10378	  lt_save_allow_undefined_flag=$allow_undefined_flag
10379	  allow_undefined_flag=
10380	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10381  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10382  ac_status=$?
10383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10384  test $ac_status = 0; }
10385	  then
10386	    lt_cv_archive_cmds_need_lc=no
10387	  else
10388	    lt_cv_archive_cmds_need_lc=yes
10389	  fi
10390	  allow_undefined_flag=$lt_save_allow_undefined_flag
10391	else
10392	  cat conftest.err 1>&5
10393	fi
10394	$RM conftest*
10395
10396fi
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10398$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10399      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10400      ;;
10401    esac
10402  fi
10403  ;;
10404esac
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10563$as_echo_n "checking dynamic linker characteristics... " >&6; }
10564
10565if test "$GCC" = yes; then
10566  case $host_os in
10567    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10568    *) lt_awk_arg="/^libraries:/" ;;
10569  esac
10570  case $host_os in
10571    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10572    *) lt_sed_strip_eq="s,=/,/,g" ;;
10573  esac
10574  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10575  case $lt_search_path_spec in
10576  *\;*)
10577    # if the path contains ";" then we assume it to be the separator
10578    # otherwise default to the standard path separator (i.e. ":") - it is
10579    # assumed that no part of a normal pathname contains ";" but that should
10580    # okay in the real world where ";" in dirpaths is itself problematic.
10581    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10582    ;;
10583  *)
10584    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10585    ;;
10586  esac
10587  # Ok, now we have the path, separated by spaces, we can step through it
10588  # and add multilib dir if necessary.
10589  lt_tmp_lt_search_path_spec=
10590  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10591  for lt_sys_path in $lt_search_path_spec; do
10592    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10593      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10594    else
10595      test -d "$lt_sys_path" && \
10596	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10597    fi
10598  done
10599  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10600BEGIN {RS=" "; FS="/|\n";} {
10601  lt_foo="";
10602  lt_count=0;
10603  for (lt_i = NF; lt_i > 0; lt_i--) {
10604    if ($lt_i != "" && $lt_i != ".") {
10605      if ($lt_i == "..") {
10606        lt_count++;
10607      } else {
10608        if (lt_count == 0) {
10609          lt_foo="/" $lt_i lt_foo;
10610        } else {
10611          lt_count--;
10612        }
10613      }
10614    }
10615  }
10616  if (lt_foo != "") { lt_freq[lt_foo]++; }
10617  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10618}'`
10619  # AWK program above erroneously prepends '/' to C:/dos/paths
10620  # for these hosts.
10621  case $host_os in
10622    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10623      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10624  esac
10625  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10626else
10627  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10628fi
10629library_names_spec=
10630libname_spec='lib$name'
10631soname_spec=
10632shrext_cmds=".so"
10633postinstall_cmds=
10634postuninstall_cmds=
10635finish_cmds=
10636finish_eval=
10637shlibpath_var=
10638shlibpath_overrides_runpath=unknown
10639version_type=none
10640dynamic_linker="$host_os ld.so"
10641sys_lib_dlsearch_path_spec="/lib /usr/lib"
10642need_lib_prefix=unknown
10643hardcode_into_libs=no
10644
10645# when you set need_version to no, make sure it does not cause -set_version
10646# flags to be left without arguments
10647need_version=unknown
10648
10649case $host_os in
10650aix3*)
10651  version_type=linux
10652  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10653  shlibpath_var=LIBPATH
10654
10655  # AIX 3 has no versioning support, so we append a major version to the name.
10656  soname_spec='${libname}${release}${shared_ext}$major'
10657  ;;
10658
10659aix[4-9]*)
10660  version_type=linux
10661  need_lib_prefix=no
10662  need_version=no
10663  hardcode_into_libs=yes
10664  if test "$host_cpu" = ia64; then
10665    # AIX 5 supports IA64
10666    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10667    shlibpath_var=LD_LIBRARY_PATH
10668  else
10669    # With GCC up to 2.95.x, collect2 would create an import file
10670    # for dependence libraries.  The import file would start with
10671    # the line `#! .'.  This would cause the generated library to
10672    # depend on `.', always an invalid library.  This was fixed in
10673    # development snapshots of GCC prior to 3.0.
10674    case $host_os in
10675      aix4 | aix4.[01] | aix4.[01].*)
10676      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10677	   echo ' yes '
10678	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10679	:
10680      else
10681	can_build_shared=no
10682      fi
10683      ;;
10684    esac
10685    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10686    # soname into executable. Probably we can add versioning support to
10687    # collect2, so additional links can be useful in future.
10688    if test "$aix_use_runtimelinking" = yes; then
10689      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10690      # instead of lib<name>.a to let people know that these are not
10691      # typical AIX shared libraries.
10692      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693    else
10694      # We preserve .a as extension for shared libraries through AIX4.2
10695      # and later when we are not doing run time linking.
10696      library_names_spec='${libname}${release}.a $libname.a'
10697      soname_spec='${libname}${release}${shared_ext}$major'
10698    fi
10699    shlibpath_var=LIBPATH
10700  fi
10701  ;;
10702
10703amigaos*)
10704  case $host_cpu in
10705  powerpc)
10706    # Since July 2007 AmigaOS4 officially supports .so libraries.
10707    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10708    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709    ;;
10710  m68k)
10711    library_names_spec='$libname.ixlibrary $libname.a'
10712    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10713    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10714    ;;
10715  esac
10716  ;;
10717
10718beos*)
10719  library_names_spec='${libname}${shared_ext}'
10720  dynamic_linker="$host_os ld.so"
10721  shlibpath_var=LIBRARY_PATH
10722  ;;
10723
10724bsdi[45]*)
10725  version_type=linux
10726  need_version=no
10727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728  soname_spec='${libname}${release}${shared_ext}$major'
10729  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10730  shlibpath_var=LD_LIBRARY_PATH
10731  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10732  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10733  # the default ld.so.conf also contains /usr/contrib/lib and
10734  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10735  # libtool to hard-code these into programs
10736  ;;
10737
10738cygwin* | mingw* | pw32* | cegcc*)
10739  version_type=windows
10740  shrext_cmds=".dll"
10741  need_version=no
10742  need_lib_prefix=no
10743
10744  case $GCC,$host_os in
10745  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10746    library_names_spec='$libname.dll.a'
10747    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10748    postinstall_cmds='base_file=`basename \${file}`~
10749      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10750      dldir=$destdir/`dirname \$dlpath`~
10751      test -d \$dldir || mkdir -p \$dldir~
10752      $install_prog $dir/$dlname \$dldir/$dlname~
10753      chmod a+x \$dldir/$dlname~
10754      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10755        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10756      fi'
10757    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10758      dlpath=$dir/\$dldll~
10759       $RM \$dlpath'
10760    shlibpath_overrides_runpath=yes
10761
10762    case $host_os in
10763    cygwin*)
10764      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10765      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10766
10767      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10768      ;;
10769    mingw* | cegcc*)
10770      # MinGW DLLs use traditional 'lib' prefix
10771      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772      ;;
10773    pw32*)
10774      # pw32 DLLs use 'pw' prefix rather than 'lib'
10775      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10776      ;;
10777    esac
10778    ;;
10779
10780  *)
10781    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10782    ;;
10783  esac
10784  dynamic_linker='Win32 ld.exe'
10785  # FIXME: first we should search . and the directory the executable is in
10786  shlibpath_var=PATH
10787  ;;
10788
10789darwin* | rhapsody*)
10790  dynamic_linker="$host_os dyld"
10791  version_type=darwin
10792  need_lib_prefix=no
10793  need_version=no
10794  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10795  soname_spec='${libname}${release}${major}$shared_ext'
10796  shlibpath_overrides_runpath=yes
10797  shlibpath_var=DYLD_LIBRARY_PATH
10798  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10799
10800  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10801  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10802  ;;
10803
10804dgux*)
10805  version_type=linux
10806  need_lib_prefix=no
10807  need_version=no
10808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10809  soname_spec='${libname}${release}${shared_ext}$major'
10810  shlibpath_var=LD_LIBRARY_PATH
10811  ;;
10812
10813freebsd* | dragonfly*)
10814  # DragonFly does not have aout.  When/if they implement a new
10815  # versioning mechanism, adjust this.
10816  if test -x /usr/bin/objformat; then
10817    objformat=`/usr/bin/objformat`
10818  else
10819    case $host_os in
10820    freebsd[23].*) objformat=aout ;;
10821    *) objformat=elf ;;
10822    esac
10823  fi
10824  version_type=freebsd-$objformat
10825  case $version_type in
10826    freebsd-elf*)
10827      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10828      need_version=no
10829      need_lib_prefix=no
10830      ;;
10831    freebsd-*)
10832      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10833      need_version=yes
10834      ;;
10835  esac
10836  shlibpath_var=LD_LIBRARY_PATH
10837  case $host_os in
10838  freebsd2.*)
10839    shlibpath_overrides_runpath=yes
10840    ;;
10841  freebsd3.[01]* | freebsdelf3.[01]*)
10842    shlibpath_overrides_runpath=yes
10843    hardcode_into_libs=yes
10844    ;;
10845  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10846  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10847    shlibpath_overrides_runpath=no
10848    hardcode_into_libs=yes
10849    ;;
10850  *) # from 4.6 on, and DragonFly
10851    shlibpath_overrides_runpath=yes
10852    hardcode_into_libs=yes
10853    ;;
10854  esac
10855  ;;
10856
10857haiku*)
10858  version_type=linux
10859  need_lib_prefix=no
10860  need_version=no
10861  dynamic_linker="$host_os runtime_loader"
10862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10863  soname_spec='${libname}${release}${shared_ext}$major'
10864  shlibpath_var=LIBRARY_PATH
10865  shlibpath_overrides_runpath=yes
10866  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10867  hardcode_into_libs=yes
10868  ;;
10869
10870hpux9* | hpux10* | hpux11*)
10871  # Give a soname corresponding to the major version so that dld.sl refuses to
10872  # link against other versions.
10873  version_type=sunos
10874  need_lib_prefix=no
10875  need_version=no
10876  case $host_cpu in
10877  ia64*)
10878    shrext_cmds='.so'
10879    hardcode_into_libs=yes
10880    dynamic_linker="$host_os dld.so"
10881    shlibpath_var=LD_LIBRARY_PATH
10882    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884    soname_spec='${libname}${release}${shared_ext}$major'
10885    if test "X$HPUX_IA64_MODE" = X32; then
10886      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10887    else
10888      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10889    fi
10890    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10891    ;;
10892  hppa*64*)
10893    shrext_cmds='.sl'
10894    hardcode_into_libs=yes
10895    dynamic_linker="$host_os dld.sl"
10896    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10897    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10898    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899    soname_spec='${libname}${release}${shared_ext}$major'
10900    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10901    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10902    ;;
10903  *)
10904    shrext_cmds='.sl'
10905    dynamic_linker="$host_os dld.sl"
10906    shlibpath_var=SHLIB_PATH
10907    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10908    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909    soname_spec='${libname}${release}${shared_ext}$major'
10910    ;;
10911  esac
10912  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10913  postinstall_cmds='chmod 555 $lib'
10914  # or fails outright, so override atomically:
10915  install_override_mode=555
10916  ;;
10917
10918interix[3-9]*)
10919  version_type=linux
10920  need_lib_prefix=no
10921  need_version=no
10922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10923  soname_spec='${libname}${release}${shared_ext}$major'
10924  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10925  shlibpath_var=LD_LIBRARY_PATH
10926  shlibpath_overrides_runpath=no
10927  hardcode_into_libs=yes
10928  ;;
10929
10930irix5* | irix6* | nonstopux*)
10931  case $host_os in
10932    nonstopux*) version_type=nonstopux ;;
10933    *)
10934	if test "$lt_cv_prog_gnu_ld" = yes; then
10935		version_type=linux
10936	else
10937		version_type=irix
10938	fi ;;
10939  esac
10940  need_lib_prefix=no
10941  need_version=no
10942  soname_spec='${libname}${release}${shared_ext}$major'
10943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10944  case $host_os in
10945  irix5* | nonstopux*)
10946    libsuff= shlibsuff=
10947    ;;
10948  *)
10949    case $LD in # libtool.m4 will add one of these switches to LD
10950    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10951      libsuff= shlibsuff= libmagic=32-bit;;
10952    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10953      libsuff=32 shlibsuff=N32 libmagic=N32;;
10954    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10955      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10956    *) libsuff= shlibsuff= libmagic=never-match;;
10957    esac
10958    ;;
10959  esac
10960  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10961  shlibpath_overrides_runpath=no
10962  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10963  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10964  hardcode_into_libs=yes
10965  ;;
10966
10967# No shared lib support for Linux oldld, aout, or coff.
10968linux*oldld* | linux*aout* | linux*coff*)
10969  dynamic_linker=no
10970  ;;
10971
10972# This must be Linux ELF.
10973
10974# uclinux* changes (here and below) have been submitted to the libtool
10975# project, but have not yet been accepted: they are GCC-local changes
10976# for the time being.  (See
10977# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10978linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10979  version_type=linux
10980  need_lib_prefix=no
10981  need_version=no
10982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983  soname_spec='${libname}${release}${shared_ext}$major'
10984  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10985  shlibpath_var=LD_LIBRARY_PATH
10986  shlibpath_overrides_runpath=no
10987
10988  # Some binutils ld are patched to set DT_RUNPATH
10989  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10990  $as_echo_n "(cached) " >&6
10991else
10992  lt_cv_shlibpath_overrides_runpath=no
10993    save_LDFLAGS=$LDFLAGS
10994    save_libdir=$libdir
10995    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10996	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10997    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998/* end confdefs.h.  */
10999
11000int
11001main ()
11002{
11003
11004  ;
11005  return 0;
11006}
11007_ACEOF
11008if ac_fn_c_try_link "$LINENO"; then :
11009  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11010  lt_cv_shlibpath_overrides_runpath=yes
11011fi
11012fi
11013rm -f core conftest.err conftest.$ac_objext \
11014    conftest$ac_exeext conftest.$ac_ext
11015    LDFLAGS=$save_LDFLAGS
11016    libdir=$save_libdir
11017
11018fi
11019
11020  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11021
11022  # This implies no fast_install, which is unacceptable.
11023  # Some rework will be needed to allow for fast_install
11024  # before this can be enabled.
11025  hardcode_into_libs=yes
11026
11027  # Append ld.so.conf contents to the search path
11028  if test -f /etc/ld.so.conf; then
11029    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' ' '`
11030    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11031  fi
11032
11033  # We used to test for /lib/ld.so.1 and disable shared libraries on
11034  # powerpc, because MkLinux only supported shared libraries with the
11035  # GNU dynamic linker.  Since this was broken with cross compilers,
11036  # most powerpc-linux boxes support dynamic linking these days and
11037  # people can always --disable-shared, the test was removed, and we
11038  # assume the GNU/Linux dynamic linker is in use.
11039  dynamic_linker='GNU/Linux ld.so'
11040  ;;
11041
11042netbsd*)
11043  version_type=sunos
11044  need_lib_prefix=no
11045  need_version=no
11046  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11047    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11048    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11049    dynamic_linker='NetBSD (a.out) ld.so'
11050  else
11051    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11052    soname_spec='${libname}${release}${shared_ext}$major'
11053    dynamic_linker='NetBSD ld.elf_so'
11054  fi
11055  shlibpath_var=LD_LIBRARY_PATH
11056  shlibpath_overrides_runpath=yes
11057  hardcode_into_libs=yes
11058  ;;
11059
11060newsos6)
11061  version_type=linux
11062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063  shlibpath_var=LD_LIBRARY_PATH
11064  shlibpath_overrides_runpath=yes
11065  ;;
11066
11067*nto* | *qnx*)
11068  version_type=qnx
11069  need_lib_prefix=no
11070  need_version=no
11071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072  soname_spec='${libname}${release}${shared_ext}$major'
11073  shlibpath_var=LD_LIBRARY_PATH
11074  shlibpath_overrides_runpath=no
11075  hardcode_into_libs=yes
11076  dynamic_linker='ldqnx.so'
11077  ;;
11078
11079openbsd*)
11080  version_type=sunos
11081  sys_lib_dlsearch_path_spec="/usr/lib"
11082  need_lib_prefix=no
11083  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11084  case $host_os in
11085    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11086    *)				need_version=no  ;;
11087  esac
11088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11089  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11090  shlibpath_var=LD_LIBRARY_PATH
11091  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11092    case $host_os in
11093      openbsd2.[89] | openbsd2.[89].*)
11094	shlibpath_overrides_runpath=no
11095	;;
11096      *)
11097	shlibpath_overrides_runpath=yes
11098	;;
11099      esac
11100  else
11101    shlibpath_overrides_runpath=yes
11102  fi
11103  ;;
11104
11105os2*)
11106  libname_spec='$name'
11107  shrext_cmds=".dll"
11108  need_lib_prefix=no
11109  library_names_spec='$libname${shared_ext} $libname.a'
11110  dynamic_linker='OS/2 ld.exe'
11111  shlibpath_var=LIBPATH
11112  ;;
11113
11114osf3* | osf4* | osf5*)
11115  version_type=osf
11116  need_lib_prefix=no
11117  need_version=no
11118  soname_spec='${libname}${release}${shared_ext}$major'
11119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120  shlibpath_var=LD_LIBRARY_PATH
11121  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11122  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11123  ;;
11124
11125rdos*)
11126  dynamic_linker=no
11127  ;;
11128
11129solaris*)
11130  version_type=linux
11131  need_lib_prefix=no
11132  need_version=no
11133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134  soname_spec='${libname}${release}${shared_ext}$major'
11135  shlibpath_var=LD_LIBRARY_PATH
11136  shlibpath_overrides_runpath=yes
11137  hardcode_into_libs=yes
11138  # ldd complains unless libraries are executable
11139  postinstall_cmds='chmod +x $lib'
11140  ;;
11141
11142sunos4*)
11143  version_type=sunos
11144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11146  shlibpath_var=LD_LIBRARY_PATH
11147  shlibpath_overrides_runpath=yes
11148  if test "$with_gnu_ld" = yes; then
11149    need_lib_prefix=no
11150  fi
11151  need_version=yes
11152  ;;
11153
11154sysv4 | sysv4.3*)
11155  version_type=linux
11156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157  soname_spec='${libname}${release}${shared_ext}$major'
11158  shlibpath_var=LD_LIBRARY_PATH
11159  case $host_vendor in
11160    sni)
11161      shlibpath_overrides_runpath=no
11162      need_lib_prefix=no
11163      runpath_var=LD_RUN_PATH
11164      ;;
11165    siemens)
11166      need_lib_prefix=no
11167      ;;
11168    motorola)
11169      need_lib_prefix=no
11170      need_version=no
11171      shlibpath_overrides_runpath=no
11172      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11173      ;;
11174  esac
11175  ;;
11176
11177sysv4*MP*)
11178  if test -d /usr/nec ;then
11179    version_type=linux
11180    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11181    soname_spec='$libname${shared_ext}.$major'
11182    shlibpath_var=LD_LIBRARY_PATH
11183  fi
11184  ;;
11185
11186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11187  version_type=freebsd-elf
11188  need_lib_prefix=no
11189  need_version=no
11190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11191  soname_spec='${libname}${release}${shared_ext}$major'
11192  shlibpath_var=LD_LIBRARY_PATH
11193  shlibpath_overrides_runpath=yes
11194  hardcode_into_libs=yes
11195  if test "$with_gnu_ld" = yes; then
11196    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11197  else
11198    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11199    case $host_os in
11200      sco3.2v5*)
11201        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11202	;;
11203    esac
11204  fi
11205  sys_lib_dlsearch_path_spec='/usr/lib'
11206  ;;
11207
11208tpf*)
11209  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11210  version_type=linux
11211  need_lib_prefix=no
11212  need_version=no
11213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214  shlibpath_var=LD_LIBRARY_PATH
11215  shlibpath_overrides_runpath=no
11216  hardcode_into_libs=yes
11217  ;;
11218
11219uts4*)
11220  version_type=linux
11221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222  soname_spec='${libname}${release}${shared_ext}$major'
11223  shlibpath_var=LD_LIBRARY_PATH
11224  ;;
11225
11226# Shared libraries for VwWorks, >= 7 only at this stage
11227# and (fpic) still incompatible with "large" code models
11228# in a few configurations. Only for RTP mode in any case,
11229# and upon explicit request at configure time.
11230vxworks7*)
11231  dynamic_linker=no
11232  case ${with_multisubdir}-${enable_shared} in
11233    *large*)
11234      ;;
11235    *mrtp*-yes)
11236      version_type=linux
11237      need_lib_prefix=no
11238      need_version=no
11239      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240      soname_spec='${libname}${release}${shared_ext}$major'
11241      dynamic_linker="$host_os module_loader"
11242      ;;
11243  esac
11244  ;;
11245*)
11246  dynamic_linker=no
11247  ;;
11248esac
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11250$as_echo "$dynamic_linker" >&6; }
11251test "$dynamic_linker" = no && can_build_shared=no
11252
11253variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11254if test "$GCC" = yes; then
11255  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11256fi
11257
11258if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11259  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11260fi
11261if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11262  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11263fi
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11357$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11358hardcode_action=
11359if test -n "$hardcode_libdir_flag_spec" ||
11360   test -n "$runpath_var" ||
11361   test "X$hardcode_automatic" = "Xyes" ; then
11362
11363  # We can hardcode non-existent directories.
11364  if test "$hardcode_direct" != no &&
11365     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11366     # have to relink, otherwise we might link with an installed library
11367     # when we should be linking with a yet-to-be-installed one
11368     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11369     test "$hardcode_minus_L" != no; then
11370    # Linking always hardcodes the temporary library directory.
11371    hardcode_action=relink
11372  else
11373    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11374    hardcode_action=immediate
11375  fi
11376else
11377  # We cannot hardcode anything, or else we can only hardcode existing
11378  # directories.
11379  hardcode_action=unsupported
11380fi
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11382$as_echo "$hardcode_action" >&6; }
11383
11384if test "$hardcode_action" = relink ||
11385   test "$inherit_rpath" = yes; then
11386  # Fast installation is not supported
11387  enable_fast_install=no
11388elif test "$shlibpath_overrides_runpath" = yes ||
11389     test "$enable_shared" = no; then
11390  # Fast installation is not necessary
11391  enable_fast_install=needless
11392fi
11393
11394
11395
11396
11397
11398
11399  if test "x$enable_dlopen" != xyes; then
11400  enable_dlopen=unknown
11401  enable_dlopen_self=unknown
11402  enable_dlopen_self_static=unknown
11403else
11404  lt_cv_dlopen=no
11405  lt_cv_dlopen_libs=
11406
11407  case $host_os in
11408  beos*)
11409    lt_cv_dlopen="load_add_on"
11410    lt_cv_dlopen_libs=
11411    lt_cv_dlopen_self=yes
11412    ;;
11413
11414  mingw* | pw32* | cegcc*)
11415    lt_cv_dlopen="LoadLibrary"
11416    lt_cv_dlopen_libs=
11417    ;;
11418
11419  cygwin*)
11420    lt_cv_dlopen="dlopen"
11421    lt_cv_dlopen_libs=
11422    ;;
11423
11424  darwin*)
11425  # if libdl is installed we need to link against it
11426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11427$as_echo_n "checking for dlopen in -ldl... " >&6; }
11428if ${ac_cv_lib_dl_dlopen+:} false; then :
11429  $as_echo_n "(cached) " >&6
11430else
11431  ac_check_lib_save_LIBS=$LIBS
11432LIBS="-ldl  $LIBS"
11433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434/* end confdefs.h.  */
11435
11436/* Override any GCC internal prototype to avoid an error.
11437   Use char because int might match the return type of a GCC
11438   builtin and then its argument prototype would still apply.  */
11439#ifdef __cplusplus
11440extern "C"
11441#endif
11442char dlopen ();
11443int
11444main ()
11445{
11446return dlopen ();
11447  ;
11448  return 0;
11449}
11450_ACEOF
11451if ac_fn_c_try_link "$LINENO"; then :
11452  ac_cv_lib_dl_dlopen=yes
11453else
11454  ac_cv_lib_dl_dlopen=no
11455fi
11456rm -f core conftest.err conftest.$ac_objext \
11457    conftest$ac_exeext conftest.$ac_ext
11458LIBS=$ac_check_lib_save_LIBS
11459fi
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11461$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11462if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11463  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11464else
11465
11466    lt_cv_dlopen="dyld"
11467    lt_cv_dlopen_libs=
11468    lt_cv_dlopen_self=yes
11469
11470fi
11471
11472    ;;
11473
11474  *)
11475    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11476if test "x$ac_cv_func_shl_load" = xyes; then :
11477  lt_cv_dlopen="shl_load"
11478else
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11480$as_echo_n "checking for shl_load in -ldld... " >&6; }
11481if ${ac_cv_lib_dld_shl_load+:} false; then :
11482  $as_echo_n "(cached) " >&6
11483else
11484  ac_check_lib_save_LIBS=$LIBS
11485LIBS="-ldld  $LIBS"
11486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487/* end confdefs.h.  */
11488
11489/* Override any GCC internal prototype to avoid an error.
11490   Use char because int might match the return type of a GCC
11491   builtin and then its argument prototype would still apply.  */
11492#ifdef __cplusplus
11493extern "C"
11494#endif
11495char shl_load ();
11496int
11497main ()
11498{
11499return shl_load ();
11500  ;
11501  return 0;
11502}
11503_ACEOF
11504if ac_fn_c_try_link "$LINENO"; then :
11505  ac_cv_lib_dld_shl_load=yes
11506else
11507  ac_cv_lib_dld_shl_load=no
11508fi
11509rm -f core conftest.err conftest.$ac_objext \
11510    conftest$ac_exeext conftest.$ac_ext
11511LIBS=$ac_check_lib_save_LIBS
11512fi
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11514$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11515if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11516  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11517else
11518  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11519if test "x$ac_cv_func_dlopen" = xyes; then :
11520  lt_cv_dlopen="dlopen"
11521else
11522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11523$as_echo_n "checking for dlopen in -ldl... " >&6; }
11524if ${ac_cv_lib_dl_dlopen+:} false; then :
11525  $as_echo_n "(cached) " >&6
11526else
11527  ac_check_lib_save_LIBS=$LIBS
11528LIBS="-ldl  $LIBS"
11529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530/* end confdefs.h.  */
11531
11532/* Override any GCC internal prototype to avoid an error.
11533   Use char because int might match the return type of a GCC
11534   builtin and then its argument prototype would still apply.  */
11535#ifdef __cplusplus
11536extern "C"
11537#endif
11538char dlopen ();
11539int
11540main ()
11541{
11542return dlopen ();
11543  ;
11544  return 0;
11545}
11546_ACEOF
11547if ac_fn_c_try_link "$LINENO"; then :
11548  ac_cv_lib_dl_dlopen=yes
11549else
11550  ac_cv_lib_dl_dlopen=no
11551fi
11552rm -f core conftest.err conftest.$ac_objext \
11553    conftest$ac_exeext conftest.$ac_ext
11554LIBS=$ac_check_lib_save_LIBS
11555fi
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11557$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11558if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11559  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11560else
11561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11562$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11563if ${ac_cv_lib_svld_dlopen+:} false; then :
11564  $as_echo_n "(cached) " >&6
11565else
11566  ac_check_lib_save_LIBS=$LIBS
11567LIBS="-lsvld  $LIBS"
11568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569/* end confdefs.h.  */
11570
11571/* Override any GCC internal prototype to avoid an error.
11572   Use char because int might match the return type of a GCC
11573   builtin and then its argument prototype would still apply.  */
11574#ifdef __cplusplus
11575extern "C"
11576#endif
11577char dlopen ();
11578int
11579main ()
11580{
11581return dlopen ();
11582  ;
11583  return 0;
11584}
11585_ACEOF
11586if ac_fn_c_try_link "$LINENO"; then :
11587  ac_cv_lib_svld_dlopen=yes
11588else
11589  ac_cv_lib_svld_dlopen=no
11590fi
11591rm -f core conftest.err conftest.$ac_objext \
11592    conftest$ac_exeext conftest.$ac_ext
11593LIBS=$ac_check_lib_save_LIBS
11594fi
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11596$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11597if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11598  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11599else
11600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11601$as_echo_n "checking for dld_link in -ldld... " >&6; }
11602if ${ac_cv_lib_dld_dld_link+:} false; then :
11603  $as_echo_n "(cached) " >&6
11604else
11605  ac_check_lib_save_LIBS=$LIBS
11606LIBS="-ldld  $LIBS"
11607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608/* end confdefs.h.  */
11609
11610/* Override any GCC internal prototype to avoid an error.
11611   Use char because int might match the return type of a GCC
11612   builtin and then its argument prototype would still apply.  */
11613#ifdef __cplusplus
11614extern "C"
11615#endif
11616char dld_link ();
11617int
11618main ()
11619{
11620return dld_link ();
11621  ;
11622  return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_link "$LINENO"; then :
11626  ac_cv_lib_dld_dld_link=yes
11627else
11628  ac_cv_lib_dld_dld_link=no
11629fi
11630rm -f core conftest.err conftest.$ac_objext \
11631    conftest$ac_exeext conftest.$ac_ext
11632LIBS=$ac_check_lib_save_LIBS
11633fi
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11635$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11636if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11637  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11638fi
11639
11640
11641fi
11642
11643
11644fi
11645
11646
11647fi
11648
11649
11650fi
11651
11652
11653fi
11654
11655    ;;
11656  esac
11657
11658  if test "x$lt_cv_dlopen" != xno; then
11659    enable_dlopen=yes
11660  else
11661    enable_dlopen=no
11662  fi
11663
11664  case $lt_cv_dlopen in
11665  dlopen)
11666    save_CPPFLAGS="$CPPFLAGS"
11667    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11668
11669    save_LDFLAGS="$LDFLAGS"
11670    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11671
11672    save_LIBS="$LIBS"
11673    LIBS="$lt_cv_dlopen_libs $LIBS"
11674
11675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11676$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11677if ${lt_cv_dlopen_self+:} false; then :
11678  $as_echo_n "(cached) " >&6
11679else
11680  	  if test "$cross_compiling" = yes; then :
11681  lt_cv_dlopen_self=cross
11682else
11683  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11684  lt_status=$lt_dlunknown
11685  cat > conftest.$ac_ext <<_LT_EOF
11686#line 11686 "configure"
11687#include "confdefs.h"
11688
11689#if HAVE_DLFCN_H
11690#include <dlfcn.h>
11691#endif
11692
11693#include <stdio.h>
11694
11695#ifdef RTLD_GLOBAL
11696#  define LT_DLGLOBAL		RTLD_GLOBAL
11697#else
11698#  ifdef DL_GLOBAL
11699#    define LT_DLGLOBAL		DL_GLOBAL
11700#  else
11701#    define LT_DLGLOBAL		0
11702#  endif
11703#endif
11704
11705/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11706   find out it does not work in some platform. */
11707#ifndef LT_DLLAZY_OR_NOW
11708#  ifdef RTLD_LAZY
11709#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11710#  else
11711#    ifdef DL_LAZY
11712#      define LT_DLLAZY_OR_NOW		DL_LAZY
11713#    else
11714#      ifdef RTLD_NOW
11715#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11716#      else
11717#        ifdef DL_NOW
11718#          define LT_DLLAZY_OR_NOW	DL_NOW
11719#        else
11720#          define LT_DLLAZY_OR_NOW	0
11721#        endif
11722#      endif
11723#    endif
11724#  endif
11725#endif
11726
11727/* When -fvisbility=hidden is used, assume the code has been annotated
11728   correspondingly for the symbols needed.  */
11729#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11730void fnord () __attribute__((visibility("default")));
11731#endif
11732
11733void fnord () { int i=42; }
11734int main ()
11735{
11736  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11737  int status = $lt_dlunknown;
11738
11739  if (self)
11740    {
11741      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11742      else
11743        {
11744	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11745          else puts (dlerror ());
11746	}
11747      /* dlclose (self); */
11748    }
11749  else
11750    puts (dlerror ());
11751
11752  return status;
11753}
11754_LT_EOF
11755  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11756  (eval $ac_link) 2>&5
11757  ac_status=$?
11758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11759  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11760    (./conftest; exit; ) >&5 2>/dev/null
11761    lt_status=$?
11762    case x$lt_status in
11763      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11764      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11765      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11766    esac
11767  else :
11768    # compilation failed
11769    lt_cv_dlopen_self=no
11770  fi
11771fi
11772rm -fr conftest*
11773
11774
11775fi
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11777$as_echo "$lt_cv_dlopen_self" >&6; }
11778
11779    if test "x$lt_cv_dlopen_self" = xyes; then
11780      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11781      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11782$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11783if ${lt_cv_dlopen_self_static+:} false; then :
11784  $as_echo_n "(cached) " >&6
11785else
11786  	  if test "$cross_compiling" = yes; then :
11787  lt_cv_dlopen_self_static=cross
11788else
11789  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11790  lt_status=$lt_dlunknown
11791  cat > conftest.$ac_ext <<_LT_EOF
11792#line 11792 "configure"
11793#include "confdefs.h"
11794
11795#if HAVE_DLFCN_H
11796#include <dlfcn.h>
11797#endif
11798
11799#include <stdio.h>
11800
11801#ifdef RTLD_GLOBAL
11802#  define LT_DLGLOBAL		RTLD_GLOBAL
11803#else
11804#  ifdef DL_GLOBAL
11805#    define LT_DLGLOBAL		DL_GLOBAL
11806#  else
11807#    define LT_DLGLOBAL		0
11808#  endif
11809#endif
11810
11811/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11812   find out it does not work in some platform. */
11813#ifndef LT_DLLAZY_OR_NOW
11814#  ifdef RTLD_LAZY
11815#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11816#  else
11817#    ifdef DL_LAZY
11818#      define LT_DLLAZY_OR_NOW		DL_LAZY
11819#    else
11820#      ifdef RTLD_NOW
11821#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11822#      else
11823#        ifdef DL_NOW
11824#          define LT_DLLAZY_OR_NOW	DL_NOW
11825#        else
11826#          define LT_DLLAZY_OR_NOW	0
11827#        endif
11828#      endif
11829#    endif
11830#  endif
11831#endif
11832
11833/* When -fvisbility=hidden is used, assume the code has been annotated
11834   correspondingly for the symbols needed.  */
11835#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11836void fnord () __attribute__((visibility("default")));
11837#endif
11838
11839void fnord () { int i=42; }
11840int main ()
11841{
11842  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11843  int status = $lt_dlunknown;
11844
11845  if (self)
11846    {
11847      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11848      else
11849        {
11850	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11851          else puts (dlerror ());
11852	}
11853      /* dlclose (self); */
11854    }
11855  else
11856    puts (dlerror ());
11857
11858  return status;
11859}
11860_LT_EOF
11861  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11862  (eval $ac_link) 2>&5
11863  ac_status=$?
11864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11865  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11866    (./conftest; exit; ) >&5 2>/dev/null
11867    lt_status=$?
11868    case x$lt_status in
11869      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11870      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11871      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11872    esac
11873  else :
11874    # compilation failed
11875    lt_cv_dlopen_self_static=no
11876  fi
11877fi
11878rm -fr conftest*
11879
11880
11881fi
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11883$as_echo "$lt_cv_dlopen_self_static" >&6; }
11884    fi
11885
11886    CPPFLAGS="$save_CPPFLAGS"
11887    LDFLAGS="$save_LDFLAGS"
11888    LIBS="$save_LIBS"
11889    ;;
11890  esac
11891
11892  case $lt_cv_dlopen_self in
11893  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11894  *) enable_dlopen_self=unknown ;;
11895  esac
11896
11897  case $lt_cv_dlopen_self_static in
11898  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11899  *) enable_dlopen_self_static=unknown ;;
11900  esac
11901fi
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919striplib=
11920old_striplib=
11921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11922$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11923if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11924  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11925  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927$as_echo "yes" >&6; }
11928else
11929# FIXME - insert some real tests, host_os isn't really good enough
11930  case $host_os in
11931  darwin*)
11932    if test -n "$STRIP" ; then
11933      striplib="$STRIP -x"
11934      old_striplib="$STRIP -S"
11935      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936$as_echo "yes" >&6; }
11937    else
11938      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
11940    fi
11941    ;;
11942  *)
11943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
11945    ;;
11946  esac
11947fi
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960  # Report which library types will actually be built
11961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11962$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11964$as_echo "$can_build_shared" >&6; }
11965
11966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11967$as_echo_n "checking whether to build shared libraries... " >&6; }
11968  test "$can_build_shared" = "no" && enable_shared=no
11969
11970  # On AIX, shared libraries and static libraries use the same namespace, and
11971  # are all built from PIC.
11972  case $host_os in
11973  aix3*)
11974    test "$enable_shared" = yes && enable_static=no
11975    if test -n "$RANLIB"; then
11976      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11977      postinstall_cmds='$RANLIB $lib'
11978    fi
11979    ;;
11980
11981  aix[4-9]*)
11982    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11983      test "$enable_shared" = yes && enable_static=no
11984    fi
11985    ;;
11986  esac
11987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11988$as_echo "$enable_shared" >&6; }
11989
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11991$as_echo_n "checking whether to build static libraries... " >&6; }
11992  # Make sure either enable_shared or enable_static is yes.
11993  test "$enable_shared" = yes || enable_static=yes
11994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11995$as_echo "$enable_static" >&6; }
11996
11997
11998
11999
12000fi
12001ac_ext=c
12002ac_cpp='$CPP $CPPFLAGS'
12003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005ac_compiler_gnu=$ac_cv_c_compiler_gnu
12006
12007CC="$lt_save_CC"
12008
12009      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12010    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12011    (test "X$CXX" != "Xg++"))) ; then
12012  ac_ext=cpp
12013ac_cpp='$CXXCPP $CPPFLAGS'
12014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12018$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12019if test -z "$CXXCPP"; then
12020  if ${ac_cv_prog_CXXCPP+:} false; then :
12021  $as_echo_n "(cached) " >&6
12022else
12023      # Double quotes because CXXCPP needs to be expanded
12024    for CXXCPP in "$CXX -E" "/lib/cpp"
12025    do
12026      ac_preproc_ok=false
12027for ac_cxx_preproc_warn_flag in '' yes
12028do
12029  # Use a header file that comes with gcc, so configuring glibc
12030  # with a fresh cross-compiler works.
12031  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12032  # <limits.h> exists even on freestanding compilers.
12033  # On the NeXT, cc -E runs the code through the compiler's parser,
12034  # not just through cpp. "Syntax error" is here to catch this case.
12035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036/* end confdefs.h.  */
12037#ifdef __STDC__
12038# include <limits.h>
12039#else
12040# include <assert.h>
12041#endif
12042		     Syntax error
12043_ACEOF
12044if ac_fn_cxx_try_cpp "$LINENO"; then :
12045
12046else
12047  # Broken: fails on valid input.
12048continue
12049fi
12050rm -f conftest.err conftest.i conftest.$ac_ext
12051
12052  # OK, works on sane cases.  Now check whether nonexistent headers
12053  # can be detected and how.
12054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055/* end confdefs.h.  */
12056#include <ac_nonexistent.h>
12057_ACEOF
12058if ac_fn_cxx_try_cpp "$LINENO"; then :
12059  # Broken: success on invalid input.
12060continue
12061else
12062  # Passes both tests.
12063ac_preproc_ok=:
12064break
12065fi
12066rm -f conftest.err conftest.i conftest.$ac_ext
12067
12068done
12069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12070rm -f conftest.i conftest.err conftest.$ac_ext
12071if $ac_preproc_ok; then :
12072  break
12073fi
12074
12075    done
12076    ac_cv_prog_CXXCPP=$CXXCPP
12077
12078fi
12079  CXXCPP=$ac_cv_prog_CXXCPP
12080else
12081  ac_cv_prog_CXXCPP=$CXXCPP
12082fi
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12084$as_echo "$CXXCPP" >&6; }
12085ac_preproc_ok=false
12086for ac_cxx_preproc_warn_flag in '' yes
12087do
12088  # Use a header file that comes with gcc, so configuring glibc
12089  # with a fresh cross-compiler works.
12090  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091  # <limits.h> exists even on freestanding compilers.
12092  # On the NeXT, cc -E runs the code through the compiler's parser,
12093  # not just through cpp. "Syntax error" is here to catch this case.
12094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095/* end confdefs.h.  */
12096#ifdef __STDC__
12097# include <limits.h>
12098#else
12099# include <assert.h>
12100#endif
12101		     Syntax error
12102_ACEOF
12103if ac_fn_cxx_try_cpp "$LINENO"; then :
12104
12105else
12106  # Broken: fails on valid input.
12107continue
12108fi
12109rm -f conftest.err conftest.i conftest.$ac_ext
12110
12111  # OK, works on sane cases.  Now check whether nonexistent headers
12112  # can be detected and how.
12113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h.  */
12115#include <ac_nonexistent.h>
12116_ACEOF
12117if ac_fn_cxx_try_cpp "$LINENO"; then :
12118  # Broken: success on invalid input.
12119continue
12120else
12121  # Passes both tests.
12122ac_preproc_ok=:
12123break
12124fi
12125rm -f conftest.err conftest.i conftest.$ac_ext
12126
12127done
12128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12129rm -f conftest.i conftest.err conftest.$ac_ext
12130if $ac_preproc_ok; then :
12131
12132else
12133  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12135as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12136See \`config.log' for more details" "$LINENO" 5; }
12137fi
12138
12139ac_ext=c
12140ac_cpp='$CPP $CPPFLAGS'
12141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12143ac_compiler_gnu=$ac_cv_c_compiler_gnu
12144
12145else
12146  _lt_caught_CXX_error=yes
12147fi
12148
12149ac_ext=cpp
12150ac_cpp='$CXXCPP $CPPFLAGS'
12151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12154
12155archive_cmds_need_lc_CXX=no
12156allow_undefined_flag_CXX=
12157always_export_symbols_CXX=no
12158archive_expsym_cmds_CXX=
12159compiler_needs_object_CXX=no
12160export_dynamic_flag_spec_CXX=
12161hardcode_direct_CXX=no
12162hardcode_direct_absolute_CXX=no
12163hardcode_libdir_flag_spec_CXX=
12164hardcode_libdir_flag_spec_ld_CXX=
12165hardcode_libdir_separator_CXX=
12166hardcode_minus_L_CXX=no
12167hardcode_shlibpath_var_CXX=unsupported
12168hardcode_automatic_CXX=no
12169inherit_rpath_CXX=no
12170module_cmds_CXX=
12171module_expsym_cmds_CXX=
12172link_all_deplibs_CXX=unknown
12173old_archive_cmds_CXX=$old_archive_cmds
12174reload_flag_CXX=$reload_flag
12175reload_cmds_CXX=$reload_cmds
12176no_undefined_flag_CXX=
12177whole_archive_flag_spec_CXX=
12178enable_shared_with_static_runtimes_CXX=no
12179
12180# Source file extension for C++ test sources.
12181ac_ext=cpp
12182
12183# Object file extension for compiled C++ test sources.
12184objext=o
12185objext_CXX=$objext
12186
12187# No sense in running all these tests if we already determined that
12188# the CXX compiler isn't working.  Some variables (like enable_shared)
12189# are currently assumed to apply to all compilers on this platform,
12190# and will be corrupted by setting them based on a non-working compiler.
12191if test "$_lt_caught_CXX_error" != yes; then
12192  # Code to be used in simple compile tests
12193  lt_simple_compile_test_code="int some_variable = 0;"
12194
12195  # Code to be used in simple link tests
12196  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12197
12198  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12199
12200
12201
12202
12203
12204
12205# If no C compiler was specified, use CC.
12206LTCC=${LTCC-"$CC"}
12207
12208# If no C compiler flags were specified, use CFLAGS.
12209LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12210
12211# Allow CC to be a program name with arguments.
12212compiler=$CC
12213
12214
12215  # save warnings/boilerplate of simple test code
12216  ac_outfile=conftest.$ac_objext
12217echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12218eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12219_lt_compiler_boilerplate=`cat conftest.err`
12220$RM conftest*
12221
12222  ac_outfile=conftest.$ac_objext
12223echo "$lt_simple_link_test_code" >conftest.$ac_ext
12224eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12225_lt_linker_boilerplate=`cat conftest.err`
12226$RM -r conftest*
12227
12228
12229  # Allow CC to be a program name with arguments.
12230  lt_save_CC=$CC
12231  lt_save_LD=$LD
12232  lt_save_GCC=$GCC
12233  GCC=$GXX
12234  lt_save_with_gnu_ld=$with_gnu_ld
12235  lt_save_path_LD=$lt_cv_path_LD
12236  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12237    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12238  else
12239    $as_unset lt_cv_prog_gnu_ld
12240  fi
12241  if test -n "${lt_cv_path_LDCXX+set}"; then
12242    lt_cv_path_LD=$lt_cv_path_LDCXX
12243  else
12244    $as_unset lt_cv_path_LD
12245  fi
12246  test -z "${LDCXX+set}" || LD=$LDCXX
12247  CC=${CXX-"c++"}
12248  compiler=$CC
12249  compiler_CXX=$CC
12250  for cc_temp in $compiler""; do
12251  case $cc_temp in
12252    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12253    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12254    \-*) ;;
12255    *) break;;
12256  esac
12257done
12258cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12259
12260
12261  if test -n "$compiler"; then
12262    # We don't want -fno-exception when compiling C++ code, so set the
12263    # no_builtin_flag separately
12264    if test "$GXX" = yes; then
12265      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12266    else
12267      lt_prog_compiler_no_builtin_flag_CXX=
12268    fi
12269
12270    if test "$GXX" = yes; then
12271      # Set up default GNU C++ configuration
12272
12273
12274
12275# Check whether --with-gnu-ld was given.
12276if test "${with_gnu_ld+set}" = set; then :
12277  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12278else
12279  with_gnu_ld=no
12280fi
12281
12282ac_prog=ld
12283if test "$GCC" = yes; then
12284  # Check if gcc -print-prog-name=ld gives a path.
12285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12286$as_echo_n "checking for ld used by $CC... " >&6; }
12287  case $host in
12288  *-*-mingw*)
12289    # gcc leaves a trailing carriage return which upsets mingw
12290    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12291  *)
12292    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12293  esac
12294  case $ac_prog in
12295    # Accept absolute paths.
12296    [\\/]* | ?:[\\/]*)
12297      re_direlt='/[^/][^/]*/\.\./'
12298      # Canonicalize the pathname of ld
12299      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12300      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12301	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12302      done
12303      test -z "$LD" && LD="$ac_prog"
12304      ;;
12305  "")
12306    # If it fails, then pretend we aren't using GCC.
12307    ac_prog=ld
12308    ;;
12309  *)
12310    # If it is relative, then search for the first ld in PATH.
12311    with_gnu_ld=unknown
12312    ;;
12313  esac
12314elif test "$with_gnu_ld" = yes; then
12315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12316$as_echo_n "checking for GNU ld... " >&6; }
12317else
12318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12319$as_echo_n "checking for non-GNU ld... " >&6; }
12320fi
12321if ${lt_cv_path_LD+:} false; then :
12322  $as_echo_n "(cached) " >&6
12323else
12324  if test -z "$LD"; then
12325  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12326  for ac_dir in $PATH; do
12327    IFS="$lt_save_ifs"
12328    test -z "$ac_dir" && ac_dir=.
12329    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12330      lt_cv_path_LD="$ac_dir/$ac_prog"
12331      # Check to see if the program is GNU ld.  I'd rather use --version,
12332      # but apparently some variants of GNU ld only accept -v.
12333      # Break only if it was the GNU/non-GNU ld that we prefer.
12334      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12335      *GNU* | *'with BFD'*)
12336	test "$with_gnu_ld" != no && break
12337	;;
12338      *)
12339	test "$with_gnu_ld" != yes && break
12340	;;
12341      esac
12342    fi
12343  done
12344  IFS="$lt_save_ifs"
12345else
12346  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12347fi
12348fi
12349
12350LD="$lt_cv_path_LD"
12351if test -n "$LD"; then
12352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12353$as_echo "$LD" >&6; }
12354else
12355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356$as_echo "no" >&6; }
12357fi
12358test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12360$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12361if ${lt_cv_prog_gnu_ld+:} false; then :
12362  $as_echo_n "(cached) " >&6
12363else
12364  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12365case `$LD -v 2>&1 </dev/null` in
12366*GNU* | *'with BFD'*)
12367  lt_cv_prog_gnu_ld=yes
12368  ;;
12369*)
12370  lt_cv_prog_gnu_ld=no
12371  ;;
12372esac
12373fi
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12375$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12376with_gnu_ld=$lt_cv_prog_gnu_ld
12377
12378
12379
12380
12381
12382
12383
12384      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12385      # archiving commands below assume that GNU ld is being used.
12386      if test "$with_gnu_ld" = yes; then
12387        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12388        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'
12389
12390        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12391        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12392
12393        # If archive_cmds runs LD, not CC, wlarc should be empty
12394        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12395        #     investigate it a little bit more. (MM)
12396        wlarc='${wl}'
12397
12398        # ancient GNU ld didn't support --whole-archive et. al.
12399        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12400	  $GREP 'no-whole-archive' > /dev/null; then
12401          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12402        else
12403          whole_archive_flag_spec_CXX=
12404        fi
12405      else
12406        with_gnu_ld=no
12407        wlarc=
12408
12409        # A generic and very simple default shared library creation
12410        # command for GNU C++ for the case where it uses the native
12411        # linker, instead of GNU ld.  If possible, this setting should
12412        # overridden to take advantage of the native linker features on
12413        # the platform it is being used on.
12414        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12415      fi
12416
12417      # Commands to make compiler produce verbose output that lists
12418      # what "hidden" libraries, object files and flags are used when
12419      # linking a shared library.
12420      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12421
12422    else
12423      GXX=no
12424      with_gnu_ld=no
12425      wlarc=
12426    fi
12427
12428    # PORTME: fill in a description of your system's C++ link characteristics
12429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12430$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12431    ld_shlibs_CXX=yes
12432    case $host_os in
12433      aix3*)
12434        # FIXME: insert proper C++ library support
12435        ld_shlibs_CXX=no
12436        ;;
12437      aix[4-9]*)
12438        if test "$host_cpu" = ia64; then
12439          # On IA64, the linker does run time linking by default, so we don't
12440          # have to do anything special.
12441          aix_use_runtimelinking=no
12442          exp_sym_flag='-Bexport'
12443          no_entry_flag=""
12444        else
12445          aix_use_runtimelinking=no
12446
12447          # Test if we are trying to use run time linking or normal
12448          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12449          # need to do runtime linking.
12450          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12451	    for ld_flag in $LDFLAGS; do
12452	      case $ld_flag in
12453	      *-brtl*)
12454	        aix_use_runtimelinking=yes
12455	        break
12456	        ;;
12457	      esac
12458	    done
12459	    ;;
12460          esac
12461
12462          exp_sym_flag='-bexport'
12463          no_entry_flag='-bnoentry'
12464        fi
12465
12466        # When large executables or shared objects are built, AIX ld can
12467        # have problems creating the table of contents.  If linking a library
12468        # or program results in "error TOC overflow" add -mminimal-toc to
12469        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12470        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12471
12472        archive_cmds_CXX=''
12473        hardcode_direct_CXX=yes
12474        hardcode_direct_absolute_CXX=yes
12475        hardcode_libdir_separator_CXX=':'
12476        link_all_deplibs_CXX=yes
12477        file_list_spec_CXX='${wl}-f,'
12478
12479        if test "$GXX" = yes; then
12480          case $host_os in aix4.[012]|aix4.[012].*)
12481          # We only want to do this on AIX 4.2 and lower, the check
12482          # below for broken collect2 doesn't work under 4.3+
12483	  collect2name=`${CC} -print-prog-name=collect2`
12484	  if test -f "$collect2name" &&
12485	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12486	  then
12487	    # We have reworked collect2
12488	    :
12489	  else
12490	    # We have old collect2
12491	    hardcode_direct_CXX=unsupported
12492	    # It fails to find uninstalled libraries when the uninstalled
12493	    # path is not listed in the libpath.  Setting hardcode_minus_L
12494	    # to unsupported forces relinking
12495	    hardcode_minus_L_CXX=yes
12496	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12497	    hardcode_libdir_separator_CXX=
12498	  fi
12499          esac
12500          shared_flag='-shared'
12501	  if test "$aix_use_runtimelinking" = yes; then
12502	    shared_flag="$shared_flag "'${wl}-G'
12503	  fi
12504        else
12505          # not using gcc
12506          if test "$host_cpu" = ia64; then
12507	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12508	  # chokes on -Wl,-G. The following line is correct:
12509	  shared_flag='-G'
12510          else
12511	    if test "$aix_use_runtimelinking" = yes; then
12512	      shared_flag='${wl}-G'
12513	    else
12514	      shared_flag='${wl}-bM:SRE'
12515	    fi
12516          fi
12517        fi
12518
12519        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12520        # It seems that -bexpall does not export symbols beginning with
12521        # underscore (_), so it is better to generate a list of symbols to
12522	# export.
12523        always_export_symbols_CXX=yes
12524        if test "$aix_use_runtimelinking" = yes; then
12525          # Warning - without using the other runtime loading flags (-brtl),
12526          # -berok will link without error, but may produce a broken library.
12527          allow_undefined_flag_CXX='-berok'
12528          # Determine the default libpath from the value encoded in an empty
12529          # executable.
12530          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531/* end confdefs.h.  */
12532
12533int
12534main ()
12535{
12536
12537  ;
12538  return 0;
12539}
12540_ACEOF
12541if ac_fn_cxx_try_link "$LINENO"; then :
12542
12543lt_aix_libpath_sed='
12544    /Import File Strings/,/^$/ {
12545	/^0/ {
12546	    s/^0  *\(.*\)$/\1/
12547	    p
12548	}
12549    }'
12550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12551# Check for a 64-bit object if we didn't find anything.
12552if test -z "$aix_libpath"; then
12553  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12554fi
12555fi
12556rm -f core conftest.err conftest.$ac_objext \
12557    conftest$ac_exeext conftest.$ac_ext
12558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12559
12560          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12561
12562          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12563        else
12564          if test "$host_cpu" = ia64; then
12565	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12566	    allow_undefined_flag_CXX="-z nodefs"
12567	    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"
12568          else
12569	    # Determine the default libpath from the value encoded in an
12570	    # empty executable.
12571	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572/* end confdefs.h.  */
12573
12574int
12575main ()
12576{
12577
12578  ;
12579  return 0;
12580}
12581_ACEOF
12582if ac_fn_cxx_try_link "$LINENO"; then :
12583
12584lt_aix_libpath_sed='
12585    /Import File Strings/,/^$/ {
12586	/^0/ {
12587	    s/^0  *\(.*\)$/\1/
12588	    p
12589	}
12590    }'
12591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592# Check for a 64-bit object if we didn't find anything.
12593if test -z "$aix_libpath"; then
12594  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12595fi
12596fi
12597rm -f core conftest.err conftest.$ac_objext \
12598    conftest$ac_exeext conftest.$ac_ext
12599if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12600
12601	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12602	    # Warning - without using the other run time loading flags,
12603	    # -berok will link without error, but may produce a broken library.
12604	    no_undefined_flag_CXX=' ${wl}-bernotok'
12605	    allow_undefined_flag_CXX=' ${wl}-berok'
12606	    if test "$with_gnu_ld" = yes; then
12607	      # We only use this code for GNU lds that support --whole-archive.
12608	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12609	    else
12610	      # Exported symbols can be pulled into shared objects from archives
12611	      whole_archive_flag_spec_CXX='$convenience'
12612	    fi
12613	    archive_cmds_need_lc_CXX=yes
12614	    # This is similar to how AIX traditionally builds its shared
12615	    # libraries.
12616	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12617          fi
12618        fi
12619        ;;
12620
12621      beos*)
12622	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12623	  allow_undefined_flag_CXX=unsupported
12624	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12625	  # support --undefined.  This deserves some investigation.  FIXME
12626	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12627	else
12628	  ld_shlibs_CXX=no
12629	fi
12630	;;
12631
12632      chorus*)
12633        case $cc_basename in
12634          *)
12635	  # FIXME: insert proper C++ library support
12636	  ld_shlibs_CXX=no
12637	  ;;
12638        esac
12639        ;;
12640
12641      cygwin* | mingw* | pw32* | cegcc*)
12642        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12643        # as there is no search path for DLLs.
12644        hardcode_libdir_flag_spec_CXX='-L$libdir'
12645        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12646        allow_undefined_flag_CXX=unsupported
12647        always_export_symbols_CXX=no
12648        enable_shared_with_static_runtimes_CXX=yes
12649
12650        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12651          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'
12652          # If the export-symbols file already is a .def file (1st line
12653          # is EXPORTS), use it as is; otherwise, prepend...
12654          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12655	    cp $export_symbols $output_objdir/$soname.def;
12656          else
12657	    echo EXPORTS > $output_objdir/$soname.def;
12658	    cat $export_symbols >> $output_objdir/$soname.def;
12659          fi~
12660          $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'
12661        else
12662          ld_shlibs_CXX=no
12663        fi
12664        ;;
12665      darwin* | rhapsody*)
12666
12667
12668  archive_cmds_need_lc_CXX=no
12669  hardcode_direct_CXX=no
12670  hardcode_automatic_CXX=yes
12671  hardcode_shlibpath_var_CXX=unsupported
12672  if test "$lt_cv_ld_force_load" = "yes"; then
12673    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\"`'
12674  else
12675    whole_archive_flag_spec_CXX=''
12676  fi
12677  link_all_deplibs_CXX=yes
12678  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12679  case $cc_basename in
12680     ifort*) _lt_dar_can_shared=yes ;;
12681     *) _lt_dar_can_shared=$GCC ;;
12682  esac
12683  if test "$_lt_dar_can_shared" = "yes"; then
12684    output_verbose_link_cmd=func_echo_all
12685    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}"
12686    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12687    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}"
12688    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}"
12689       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12690      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}"
12691      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}"
12692    fi
12693
12694  else
12695  ld_shlibs_CXX=no
12696  fi
12697
12698	;;
12699
12700      dgux*)
12701        case $cc_basename in
12702          ec++*)
12703	    # FIXME: insert proper C++ library support
12704	    ld_shlibs_CXX=no
12705	    ;;
12706          ghcx*)
12707	    # Green Hills C++ Compiler
12708	    # FIXME: insert proper C++ library support
12709	    ld_shlibs_CXX=no
12710	    ;;
12711          *)
12712	    # FIXME: insert proper C++ library support
12713	    ld_shlibs_CXX=no
12714	    ;;
12715        esac
12716        ;;
12717
12718      freebsd2.*)
12719        # C++ shared libraries reported to be fairly broken before
12720	# switch to ELF
12721        ld_shlibs_CXX=no
12722        ;;
12723
12724      freebsd-elf*)
12725        archive_cmds_need_lc_CXX=no
12726        ;;
12727
12728      freebsd* | dragonfly*)
12729        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12730        # conventions
12731        ld_shlibs_CXX=yes
12732        ;;
12733
12734      gnu*)
12735        ;;
12736
12737      haiku*)
12738        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12739        link_all_deplibs_CXX=yes
12740        ;;
12741
12742      hpux9*)
12743        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12744        hardcode_libdir_separator_CXX=:
12745        export_dynamic_flag_spec_CXX='${wl}-E'
12746        hardcode_direct_CXX=yes
12747        hardcode_minus_L_CXX=yes # Not in the search PATH,
12748				             # but as the default
12749				             # location of the library.
12750
12751        case $cc_basename in
12752          CC*)
12753            # FIXME: insert proper C++ library support
12754            ld_shlibs_CXX=no
12755            ;;
12756          aCC*)
12757            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12758            # Commands to make compiler produce verbose output that lists
12759            # what "hidden" libraries, object files and flags are used when
12760            # linking a shared library.
12761            #
12762            # There doesn't appear to be a way to prevent this compiler from
12763            # explicitly linking system object files so we need to strip them
12764            # from the output so that they don't get included in the library
12765            # dependencies.
12766            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"'
12767            ;;
12768          *)
12769            if test "$GXX" = yes; then
12770              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12771            else
12772              # FIXME: insert proper C++ library support
12773              ld_shlibs_CXX=no
12774            fi
12775            ;;
12776        esac
12777        ;;
12778
12779      hpux10*|hpux11*)
12780        if test $with_gnu_ld = no; then
12781	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12782	  hardcode_libdir_separator_CXX=:
12783
12784          case $host_cpu in
12785            hppa*64*|ia64*)
12786              ;;
12787            *)
12788	      export_dynamic_flag_spec_CXX='${wl}-E'
12789              ;;
12790          esac
12791        fi
12792        case $host_cpu in
12793          hppa*64*|ia64*)
12794            hardcode_direct_CXX=no
12795            hardcode_shlibpath_var_CXX=no
12796            ;;
12797          *)
12798            hardcode_direct_CXX=yes
12799            hardcode_direct_absolute_CXX=yes
12800            hardcode_minus_L_CXX=yes # Not in the search PATH,
12801					         # but as the default
12802					         # location of the library.
12803            ;;
12804        esac
12805
12806        case $cc_basename in
12807          CC*)
12808	    # FIXME: insert proper C++ library support
12809	    ld_shlibs_CXX=no
12810	    ;;
12811          aCC*)
12812	    case $host_cpu in
12813	      hppa*64*)
12814	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12815	        ;;
12816	      ia64*)
12817	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12818	        ;;
12819	      *)
12820	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12821	        ;;
12822	    esac
12823	    # Commands to make compiler produce verbose output that lists
12824	    # what "hidden" libraries, object files and flags are used when
12825	    # linking a shared library.
12826	    #
12827	    # There doesn't appear to be a way to prevent this compiler from
12828	    # explicitly linking system object files so we need to strip them
12829	    # from the output so that they don't get included in the library
12830	    # dependencies.
12831	    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"'
12832	    ;;
12833          *)
12834	    if test "$GXX" = yes; then
12835	      if test $with_gnu_ld = no; then
12836	        case $host_cpu in
12837	          hppa*64*)
12838	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12839	            ;;
12840	          ia64*)
12841	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12842	            ;;
12843	          *)
12844	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12845	            ;;
12846	        esac
12847	      fi
12848	    else
12849	      # FIXME: insert proper C++ library support
12850	      ld_shlibs_CXX=no
12851	    fi
12852	    ;;
12853        esac
12854        ;;
12855
12856      interix[3-9]*)
12857	hardcode_direct_CXX=no
12858	hardcode_shlibpath_var_CXX=no
12859	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12860	export_dynamic_flag_spec_CXX='${wl}-E'
12861	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12862	# Instead, shared libraries are loaded at an image base (0x10000000 by
12863	# default) and relocated if they conflict, which is a slow very memory
12864	# consuming and fragmenting process.  To avoid this, we pick a random,
12865	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12866	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12867	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'
12868	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'
12869	;;
12870      irix5* | irix6*)
12871        case $cc_basename in
12872          CC*)
12873	    # SGI C++
12874	    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'
12875
12876	    # Archives containing C++ object files must be created using
12877	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12878	    # necessary to make sure instantiated templates are included
12879	    # in the archive.
12880	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12881	    ;;
12882          *)
12883	    if test "$GXX" = yes; then
12884	      if test "$with_gnu_ld" = no; then
12885	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12886	      else
12887	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12888	      fi
12889	    fi
12890	    link_all_deplibs_CXX=yes
12891	    ;;
12892        esac
12893        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12894        hardcode_libdir_separator_CXX=:
12895        inherit_rpath_CXX=yes
12896        ;;
12897
12898      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12899        case $cc_basename in
12900          KCC*)
12901	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12902
12903	    # KCC will only create a shared library if the output file
12904	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12905	    # to its proper name (with version) after linking.
12906	    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'
12907	    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'
12908	    # Commands to make compiler produce verbose output that lists
12909	    # what "hidden" libraries, object files and flags are used when
12910	    # linking a shared library.
12911	    #
12912	    # There doesn't appear to be a way to prevent this compiler from
12913	    # explicitly linking system object files so we need to strip them
12914	    # from the output so that they don't get included in the library
12915	    # dependencies.
12916	    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"'
12917
12918	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12919	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12920
12921	    # Archives containing C++ object files must be created using
12922	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12923	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12924	    ;;
12925	  icpc* | ecpc* )
12926	    # Intel C++
12927	    with_gnu_ld=yes
12928	    # version 8.0 and above of icpc choke on multiply defined symbols
12929	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12930	    # earlier do not add the objects themselves.
12931	    case `$CC -V 2>&1` in
12932	      *"Version 7."*)
12933	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934		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'
12935		;;
12936	      *)  # Version 8.0 or newer
12937	        tmp_idyn=
12938	        case $host_cpu in
12939		  ia64*) tmp_idyn=' -i_dynamic';;
12940		esac
12941	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942		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'
12943		;;
12944	    esac
12945	    archive_cmds_need_lc_CXX=no
12946	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12947	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12948	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12949	    ;;
12950          pgCC* | pgcpp*)
12951            # Portland Group C++ compiler
12952	    case `$CC -V` in
12953	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12954	      prelink_cmds_CXX='tpldir=Template.dir~
12955		rm -rf $tpldir~
12956		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12957		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12958	      old_archive_cmds_CXX='tpldir=Template.dir~
12959		rm -rf $tpldir~
12960		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12961		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12962		$RANLIB $oldlib'
12963	      archive_cmds_CXX='tpldir=Template.dir~
12964		rm -rf $tpldir~
12965		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12966		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12967	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12968		rm -rf $tpldir~
12969		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12970		$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'
12971	      ;;
12972	    *) # Version 6 and above use weak symbols
12973	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12974	      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'
12975	      ;;
12976	    esac
12977
12978	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12979	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12980	    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'
12981            ;;
12982	  cxx*)
12983	    # Compaq C++
12984	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12985	    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'
12986
12987	    runpath_var=LD_RUN_PATH
12988	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12989	    hardcode_libdir_separator_CXX=:
12990
12991	    # Commands to make compiler produce verbose output that lists
12992	    # what "hidden" libraries, object files and flags are used when
12993	    # linking a shared library.
12994	    #
12995	    # There doesn't appear to be a way to prevent this compiler from
12996	    # explicitly linking system object files so we need to strip them
12997	    # from the output so that they don't get included in the library
12998	    # dependencies.
12999	    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'
13000	    ;;
13001	  xl* | mpixl* | bgxl*)
13002	    # IBM XL 8.0 on PPC, with GNU ld
13003	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13004	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13005	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13006	    if test "x$supports_anon_versioning" = xyes; then
13007	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13008		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13009		echo "local: *; };" >> $output_objdir/$libname.ver~
13010		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13011	    fi
13012	    ;;
13013	  *)
13014	    case `$CC -V 2>&1 | sed 5q` in
13015	    *Sun\ C*)
13016	      # Sun C++ 5.9
13017	      no_undefined_flag_CXX=' -zdefs'
13018	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13019	      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'
13020	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13021	      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'
13022	      compiler_needs_object_CXX=yes
13023
13024	      # Not sure whether something based on
13025	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13026	      # would be better.
13027	      output_verbose_link_cmd='func_echo_all'
13028
13029	      # Archives containing C++ object files must be created using
13030	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13031	      # necessary to make sure instantiated templates are included
13032	      # in the archive.
13033	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13034	      ;;
13035	    esac
13036	    ;;
13037	esac
13038	;;
13039
13040      lynxos*)
13041        # FIXME: insert proper C++ library support
13042	ld_shlibs_CXX=no
13043	;;
13044
13045      m88k*)
13046        # FIXME: insert proper C++ library support
13047        ld_shlibs_CXX=no
13048	;;
13049
13050      mvs*)
13051        case $cc_basename in
13052          cxx*)
13053	    # FIXME: insert proper C++ library support
13054	    ld_shlibs_CXX=no
13055	    ;;
13056	  *)
13057	    # FIXME: insert proper C++ library support
13058	    ld_shlibs_CXX=no
13059	    ;;
13060	esac
13061	;;
13062
13063      netbsd*)
13064        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13065	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13066	  wlarc=
13067	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13068	  hardcode_direct_CXX=yes
13069	  hardcode_shlibpath_var_CXX=no
13070	fi
13071	# Workaround some broken pre-1.5 toolchains
13072	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13073	;;
13074
13075      *nto* | *qnx*)
13076        ld_shlibs_CXX=yes
13077	;;
13078
13079      openbsd2*)
13080        # C++ shared libraries are fairly broken
13081	ld_shlibs_CXX=no
13082	;;
13083
13084      openbsd*)
13085	if test -f /usr/libexec/ld.so; then
13086	  hardcode_direct_CXX=yes
13087	  hardcode_shlibpath_var_CXX=no
13088	  hardcode_direct_absolute_CXX=yes
13089	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13090	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13091	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13092	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13093	    export_dynamic_flag_spec_CXX='${wl}-E'
13094	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13095	  fi
13096	  output_verbose_link_cmd=func_echo_all
13097	else
13098	  ld_shlibs_CXX=no
13099	fi
13100	;;
13101
13102      osf3* | osf4* | osf5*)
13103        case $cc_basename in
13104          KCC*)
13105	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13106
13107	    # KCC will only create a shared library if the output file
13108	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13109	    # to its proper name (with version) after linking.
13110	    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'
13111
13112	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13113	    hardcode_libdir_separator_CXX=:
13114
13115	    # Archives containing C++ object files must be created using
13116	    # the KAI C++ compiler.
13117	    case $host in
13118	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13119	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13120	    esac
13121	    ;;
13122          RCC*)
13123	    # Rational C++ 2.4.1
13124	    # FIXME: insert proper C++ library support
13125	    ld_shlibs_CXX=no
13126	    ;;
13127          cxx*)
13128	    case $host in
13129	      osf3*)
13130	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13131	        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'
13132	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13133		;;
13134	      *)
13135	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13136	        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'
13137	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13138	          echo "-hidden">> $lib.exp~
13139	          $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~
13140	          $RM $lib.exp'
13141	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13142		;;
13143	    esac
13144
13145	    hardcode_libdir_separator_CXX=:
13146
13147	    # Commands to make compiler produce verbose output that lists
13148	    # what "hidden" libraries, object files and flags are used when
13149	    # linking a shared library.
13150	    #
13151	    # There doesn't appear to be a way to prevent this compiler from
13152	    # explicitly linking system object files so we need to strip them
13153	    # from the output so that they don't get included in the library
13154	    # dependencies.
13155	    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"'
13156	    ;;
13157	  *)
13158	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13159	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13160	      case $host in
13161	        osf3*)
13162	          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'
13163		  ;;
13164	        *)
13165	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13166		  ;;
13167	      esac
13168
13169	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13170	      hardcode_libdir_separator_CXX=:
13171
13172	      # Commands to make compiler produce verbose output that lists
13173	      # what "hidden" libraries, object files and flags are used when
13174	      # linking a shared library.
13175	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13176
13177	    else
13178	      # FIXME: insert proper C++ library support
13179	      ld_shlibs_CXX=no
13180	    fi
13181	    ;;
13182        esac
13183        ;;
13184
13185      psos*)
13186        # FIXME: insert proper C++ library support
13187        ld_shlibs_CXX=no
13188        ;;
13189
13190      sunos4*)
13191        case $cc_basename in
13192          CC*)
13193	    # Sun C++ 4.x
13194	    # FIXME: insert proper C++ library support
13195	    ld_shlibs_CXX=no
13196	    ;;
13197          lcc*)
13198	    # Lucid
13199	    # FIXME: insert proper C++ library support
13200	    ld_shlibs_CXX=no
13201	    ;;
13202          *)
13203	    # FIXME: insert proper C++ library support
13204	    ld_shlibs_CXX=no
13205	    ;;
13206        esac
13207        ;;
13208
13209      solaris*)
13210        case $cc_basename in
13211          CC*)
13212	    # Sun C++ 4.2, 5.x and Centerline C++
13213            archive_cmds_need_lc_CXX=yes
13214	    no_undefined_flag_CXX=' -zdefs'
13215	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13216	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13217	      $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'
13218
13219	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13220	    hardcode_shlibpath_var_CXX=no
13221	    case $host_os in
13222	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13223	      *)
13224		# The compiler driver will combine and reorder linker options,
13225		# but understands `-z linker_flag'.
13226	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13227		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13228	        ;;
13229	    esac
13230	    link_all_deplibs_CXX=yes
13231
13232	    output_verbose_link_cmd='func_echo_all'
13233
13234	    # Archives containing C++ object files must be created using
13235	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13236	    # necessary to make sure instantiated templates are included
13237	    # in the archive.
13238	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13239	    ;;
13240          gcx*)
13241	    # Green Hills C++ Compiler
13242	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13243
13244	    # The C++ compiler must be used to create the archive.
13245	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13246	    ;;
13247          *)
13248	    # GNU C++ compiler with Solaris linker
13249	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13250	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13251	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13252	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13253	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13254		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13255
13256	        # Commands to make compiler produce verbose output that lists
13257	        # what "hidden" libraries, object files and flags are used when
13258	        # linking a shared library.
13259	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13260	      else
13261	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13262	        # platform.
13263	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13264	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13265		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13266
13267	        # Commands to make compiler produce verbose output that lists
13268	        # what "hidden" libraries, object files and flags are used when
13269	        # linking a shared library.
13270	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13271	      fi
13272
13273	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13274	      case $host_os in
13275		solaris2.[0-5] | solaris2.[0-5].*) ;;
13276		*)
13277		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13278		  ;;
13279	      esac
13280	    fi
13281	    ;;
13282        esac
13283        ;;
13284
13285    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13286      no_undefined_flag_CXX='${wl}-z,text'
13287      archive_cmds_need_lc_CXX=no
13288      hardcode_shlibpath_var_CXX=no
13289      runpath_var='LD_RUN_PATH'
13290
13291      case $cc_basename in
13292        CC*)
13293	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13294	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13295	  ;;
13296	*)
13297	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299	  ;;
13300      esac
13301      ;;
13302
13303      sysv5* | sco3.2v5* | sco5v6*)
13304	# Note: We can NOT use -z defs as we might desire, because we do not
13305	# link with -lc, and that would cause any symbols used from libc to
13306	# always be unresolved, which means just about no library would
13307	# ever link correctly.  If we're not using GNU ld we use -z text
13308	# though, which does catch some bad symbols but isn't as heavy-handed
13309	# as -z defs.
13310	no_undefined_flag_CXX='${wl}-z,text'
13311	allow_undefined_flag_CXX='${wl}-z,nodefs'
13312	archive_cmds_need_lc_CXX=no
13313	hardcode_shlibpath_var_CXX=no
13314	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13315	hardcode_libdir_separator_CXX=':'
13316	link_all_deplibs_CXX=yes
13317	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13318	runpath_var='LD_RUN_PATH'
13319
13320	case $cc_basename in
13321          CC*)
13322	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13323	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13325	      '"$old_archive_cmds_CXX"
13326	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13327	      '"$reload_cmds_CXX"
13328	    ;;
13329	  *)
13330	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332	    ;;
13333	esac
13334      ;;
13335
13336      tandem*)
13337        case $cc_basename in
13338          NCC*)
13339	    # NonStop-UX NCC 3.20
13340	    # FIXME: insert proper C++ library support
13341	    ld_shlibs_CXX=no
13342	    ;;
13343          *)
13344	    # FIXME: insert proper C++ library support
13345	    ld_shlibs_CXX=no
13346	    ;;
13347        esac
13348        ;;
13349
13350      vxworks*)
13351        # For VxWorks ports, we assume the use of a GNU linker with
13352        # standard elf conventions.
13353        ld_shlibs_CXX=yes
13354        ;;
13355
13356      *)
13357        # FIXME: insert proper C++ library support
13358        ld_shlibs_CXX=no
13359        ;;
13360    esac
13361
13362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13363$as_echo "$ld_shlibs_CXX" >&6; }
13364    test "$ld_shlibs_CXX" = no && can_build_shared=no
13365
13366    GCC_CXX="$GXX"
13367    LD_CXX="$LD"
13368
13369    ## CAVEAT EMPTOR:
13370    ## There is no encapsulation within the following macros, do not change
13371    ## the running order or otherwise move them around unless you know exactly
13372    ## what you are doing...
13373    # Dependencies to place before and after the object being linked:
13374predep_objects_CXX=
13375postdep_objects_CXX=
13376predeps_CXX=
13377postdeps_CXX=
13378compiler_lib_search_path_CXX=
13379
13380cat > conftest.$ac_ext <<_LT_EOF
13381class Foo
13382{
13383public:
13384  Foo (void) { a = 0; }
13385private:
13386  int a;
13387};
13388_LT_EOF
13389
13390if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13391  (eval $ac_compile) 2>&5
13392  ac_status=$?
13393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13394  test $ac_status = 0; }; then
13395  # Parse the compiler output and extract the necessary
13396  # objects, libraries and library flags.
13397
13398  # Sentinel used to keep track of whether or not we are before
13399  # the conftest object file.
13400  pre_test_object_deps_done=no
13401
13402  for p in `eval "$output_verbose_link_cmd"`; do
13403    case $p in
13404
13405    -L* | -R* | -l*)
13406       # Some compilers place space between "-{L,R}" and the path.
13407       # Remove the space.
13408       if test $p = "-L" ||
13409          test $p = "-R"; then
13410	 prev=$p
13411	 continue
13412       else
13413	 prev=
13414       fi
13415
13416       if test "$pre_test_object_deps_done" = no; then
13417	 case $p in
13418	 -L* | -R*)
13419	   # Internal compiler library paths should come after those
13420	   # provided the user.  The postdeps already come after the
13421	   # user supplied libs so there is no need to process them.
13422	   if test -z "$compiler_lib_search_path_CXX"; then
13423	     compiler_lib_search_path_CXX="${prev}${p}"
13424	   else
13425	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13426	   fi
13427	   ;;
13428	 # The "-l" case would never come before the object being
13429	 # linked, so don't bother handling this case.
13430	 esac
13431       else
13432	 if test -z "$postdeps_CXX"; then
13433	   postdeps_CXX="${prev}${p}"
13434	 else
13435	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13436	 fi
13437       fi
13438       ;;
13439
13440    *.$objext)
13441       # This assumes that the test object file only shows up
13442       # once in the compiler output.
13443       if test "$p" = "conftest.$objext"; then
13444	 pre_test_object_deps_done=yes
13445	 continue
13446       fi
13447
13448       if test "$pre_test_object_deps_done" = no; then
13449	 if test -z "$predep_objects_CXX"; then
13450	   predep_objects_CXX="$p"
13451	 else
13452	   predep_objects_CXX="$predep_objects_CXX $p"
13453	 fi
13454       else
13455	 if test -z "$postdep_objects_CXX"; then
13456	   postdep_objects_CXX="$p"
13457	 else
13458	   postdep_objects_CXX="$postdep_objects_CXX $p"
13459	 fi
13460       fi
13461       ;;
13462
13463    *) ;; # Ignore the rest.
13464
13465    esac
13466  done
13467
13468  # Clean up.
13469  rm -f a.out a.exe
13470else
13471  echo "libtool.m4: error: problem compiling CXX test program"
13472fi
13473
13474$RM -f confest.$objext
13475
13476# PORTME: override above test on systems where it is broken
13477case $host_os in
13478interix[3-9]*)
13479  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13480  # hack all around it, let's just trust "g++" to DTRT.
13481  predep_objects_CXX=
13482  postdep_objects_CXX=
13483  postdeps_CXX=
13484  ;;
13485
13486linux*)
13487  case `$CC -V 2>&1 | sed 5q` in
13488  *Sun\ C*)
13489    # Sun C++ 5.9
13490
13491    # The more standards-conforming stlport4 library is
13492    # incompatible with the Cstd library. Avoid specifying
13493    # it if it's in CXXFLAGS. Ignore libCrun as
13494    # -library=stlport4 depends on it.
13495    case " $CXX $CXXFLAGS " in
13496    *" -library=stlport4 "*)
13497      solaris_use_stlport4=yes
13498      ;;
13499    esac
13500
13501    if test "$solaris_use_stlport4" != yes; then
13502      postdeps_CXX='-library=Cstd -library=Crun'
13503    fi
13504    ;;
13505  esac
13506  ;;
13507
13508solaris*)
13509  case $cc_basename in
13510  CC*)
13511    # The more standards-conforming stlport4 library is
13512    # incompatible with the Cstd library. Avoid specifying
13513    # it if it's in CXXFLAGS. Ignore libCrun as
13514    # -library=stlport4 depends on it.
13515    case " $CXX $CXXFLAGS " in
13516    *" -library=stlport4 "*)
13517      solaris_use_stlport4=yes
13518      ;;
13519    esac
13520
13521    # Adding this requires a known-good setup of shared libraries for
13522    # Sun compiler versions before 5.6, else PIC objects from an old
13523    # archive will be linked into the output, leading to subtle bugs.
13524    if test "$solaris_use_stlport4" != yes; then
13525      postdeps_CXX='-library=Cstd -library=Crun'
13526    fi
13527    ;;
13528  esac
13529  ;;
13530esac
13531
13532
13533case " $postdeps_CXX " in
13534*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13535esac
13536 compiler_lib_search_dirs_CXX=
13537if test -n "${compiler_lib_search_path_CXX}"; then
13538 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13539fi
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571    lt_prog_compiler_wl_CXX=
13572lt_prog_compiler_pic_CXX=
13573lt_prog_compiler_static_CXX=
13574
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13576$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13577
13578  # C++ specific cases for pic, static, wl, etc.
13579  if test "$GXX" = yes; then
13580    lt_prog_compiler_wl_CXX='-Wl,'
13581    lt_prog_compiler_static_CXX='-static'
13582
13583    case $host_os in
13584    aix*)
13585      # All AIX code is PIC.
13586      if test "$host_cpu" = ia64; then
13587	# AIX 5 now supports IA64 processor
13588	lt_prog_compiler_static_CXX='-Bstatic'
13589      fi
13590      lt_prog_compiler_pic_CXX='-fPIC'
13591      ;;
13592
13593    amigaos*)
13594      case $host_cpu in
13595      powerpc)
13596            # see comment about AmigaOS4 .so support
13597            lt_prog_compiler_pic_CXX='-fPIC'
13598        ;;
13599      m68k)
13600            # FIXME: we need at least 68020 code to build shared libraries, but
13601            # adding the `-m68020' flag to GCC prevents building anything better,
13602            # like `-m68040'.
13603            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13604        ;;
13605      esac
13606      ;;
13607
13608    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13609      # PIC is the default for these OSes.
13610      ;;
13611    mingw* | cygwin* | os2* | pw32* | cegcc*)
13612      # This hack is so that the source file can tell whether it is being
13613      # built for inclusion in a dll (and should export symbols for example).
13614      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13615      # (--disable-auto-import) libraries
13616      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13617      ;;
13618    darwin* | rhapsody*)
13619      # PIC is the default on this platform
13620      # Common symbols not allowed in MH_DYLIB files
13621      lt_prog_compiler_pic_CXX='-fno-common'
13622      ;;
13623    *djgpp*)
13624      # DJGPP does not support shared libraries at all
13625      lt_prog_compiler_pic_CXX=
13626      ;;
13627    haiku*)
13628      # PIC is the default for Haiku.
13629      # The "-static" flag exists, but is broken.
13630      lt_prog_compiler_static_CXX=
13631      ;;
13632    interix[3-9]*)
13633      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13634      # Instead, we relocate shared libraries at runtime.
13635      ;;
13636    sysv4*MP*)
13637      if test -d /usr/nec; then
13638	lt_prog_compiler_pic_CXX=-Kconform_pic
13639      fi
13640      ;;
13641    hpux*)
13642      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13643      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13644      # sets the default TLS model and affects inlining.
13645      case $host_cpu in
13646      hppa*64*)
13647	;;
13648      *)
13649	lt_prog_compiler_pic_CXX='-fPIC'
13650	;;
13651      esac
13652      ;;
13653    *qnx* | *nto*)
13654      # QNX uses GNU C++, but need to define -shared option too, otherwise
13655      # it will coredump.
13656      lt_prog_compiler_pic_CXX='-fPIC -shared'
13657      ;;
13658    *)
13659      lt_prog_compiler_pic_CXX='-fPIC'
13660      ;;
13661    esac
13662  else
13663    case $host_os in
13664      aix[4-9]*)
13665	# All AIX code is PIC.
13666	if test "$host_cpu" = ia64; then
13667	  # AIX 5 now supports IA64 processor
13668	  lt_prog_compiler_static_CXX='-Bstatic'
13669	else
13670	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13671	fi
13672	;;
13673      chorus*)
13674	case $cc_basename in
13675	cxch68*)
13676	  # Green Hills C++ Compiler
13677	  # _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"
13678	  ;;
13679	esac
13680	;;
13681      dgux*)
13682	case $cc_basename in
13683	  ec++*)
13684	    lt_prog_compiler_pic_CXX='-KPIC'
13685	    ;;
13686	  ghcx*)
13687	    # Green Hills C++ Compiler
13688	    lt_prog_compiler_pic_CXX='-pic'
13689	    ;;
13690	  *)
13691	    ;;
13692	esac
13693	;;
13694      freebsd* | dragonfly*)
13695	# FreeBSD uses GNU C++
13696	;;
13697      hpux9* | hpux10* | hpux11*)
13698	case $cc_basename in
13699	  CC*)
13700	    lt_prog_compiler_wl_CXX='-Wl,'
13701	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13702	    if test "$host_cpu" != ia64; then
13703	      lt_prog_compiler_pic_CXX='+Z'
13704	    fi
13705	    ;;
13706	  aCC*)
13707	    lt_prog_compiler_wl_CXX='-Wl,'
13708	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13709	    case $host_cpu in
13710	    hppa*64*|ia64*)
13711	      # +Z the default
13712	      ;;
13713	    *)
13714	      lt_prog_compiler_pic_CXX='+Z'
13715	      ;;
13716	    esac
13717	    ;;
13718	  *)
13719	    ;;
13720	esac
13721	;;
13722      interix*)
13723	# This is c89, which is MS Visual C++ (no shared libs)
13724	# Anyone wants to do a port?
13725	;;
13726      irix5* | irix6* | nonstopux*)
13727	case $cc_basename in
13728	  CC*)
13729	    lt_prog_compiler_wl_CXX='-Wl,'
13730	    lt_prog_compiler_static_CXX='-non_shared'
13731	    # CC pic flag -KPIC is the default.
13732	    ;;
13733	  *)
13734	    ;;
13735	esac
13736	;;
13737      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13738	case $cc_basename in
13739	  KCC*)
13740	    # KAI C++ Compiler
13741	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13742	    lt_prog_compiler_pic_CXX='-fPIC'
13743	    ;;
13744	  ecpc* )
13745	    # old Intel C++ for x86_64 which still supported -KPIC.
13746	    lt_prog_compiler_wl_CXX='-Wl,'
13747	    lt_prog_compiler_pic_CXX='-KPIC'
13748	    lt_prog_compiler_static_CXX='-static'
13749	    ;;
13750	  icpc* )
13751	    # Intel C++, used to be incompatible with GCC.
13752	    # ICC 10 doesn't accept -KPIC any more.
13753	    lt_prog_compiler_wl_CXX='-Wl,'
13754	    lt_prog_compiler_pic_CXX='-fPIC'
13755	    lt_prog_compiler_static_CXX='-static'
13756	    ;;
13757	  pgCC* | pgcpp*)
13758	    # Portland Group C++ compiler
13759	    lt_prog_compiler_wl_CXX='-Wl,'
13760	    lt_prog_compiler_pic_CXX='-fpic'
13761	    lt_prog_compiler_static_CXX='-Bstatic'
13762	    ;;
13763	  cxx*)
13764	    # Compaq C++
13765	    # Make sure the PIC flag is empty.  It appears that all Alpha
13766	    # Linux and Compaq Tru64 Unix objects are PIC.
13767	    lt_prog_compiler_pic_CXX=
13768	    lt_prog_compiler_static_CXX='-non_shared'
13769	    ;;
13770	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13771	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13772	    lt_prog_compiler_wl_CXX='-Wl,'
13773	    lt_prog_compiler_pic_CXX='-qpic'
13774	    lt_prog_compiler_static_CXX='-qstaticlink'
13775	    ;;
13776	  *)
13777	    case `$CC -V 2>&1 | sed 5q` in
13778	    *Sun\ C*)
13779	      # Sun C++ 5.9
13780	      lt_prog_compiler_pic_CXX='-KPIC'
13781	      lt_prog_compiler_static_CXX='-Bstatic'
13782	      lt_prog_compiler_wl_CXX='-Qoption ld '
13783	      ;;
13784	    esac
13785	    ;;
13786	esac
13787	;;
13788      lynxos*)
13789	;;
13790      m88k*)
13791	;;
13792      mvs*)
13793	case $cc_basename in
13794	  cxx*)
13795	    lt_prog_compiler_pic_CXX='-W c,exportall'
13796	    ;;
13797	  *)
13798	    ;;
13799	esac
13800	;;
13801      netbsd*)
13802	;;
13803      *qnx* | *nto*)
13804        # QNX uses GNU C++, but need to define -shared option too, otherwise
13805        # it will coredump.
13806        lt_prog_compiler_pic_CXX='-fPIC -shared'
13807        ;;
13808      osf3* | osf4* | osf5*)
13809	case $cc_basename in
13810	  KCC*)
13811	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13812	    ;;
13813	  RCC*)
13814	    # Rational C++ 2.4.1
13815	    lt_prog_compiler_pic_CXX='-pic'
13816	    ;;
13817	  cxx*)
13818	    # Digital/Compaq C++
13819	    lt_prog_compiler_wl_CXX='-Wl,'
13820	    # Make sure the PIC flag is empty.  It appears that all Alpha
13821	    # Linux and Compaq Tru64 Unix objects are PIC.
13822	    lt_prog_compiler_pic_CXX=
13823	    lt_prog_compiler_static_CXX='-non_shared'
13824	    ;;
13825	  *)
13826	    ;;
13827	esac
13828	;;
13829      psos*)
13830	;;
13831      solaris*)
13832	case $cc_basename in
13833	  CC*)
13834	    # Sun C++ 4.2, 5.x and Centerline C++
13835	    lt_prog_compiler_pic_CXX='-KPIC'
13836	    lt_prog_compiler_static_CXX='-Bstatic'
13837	    lt_prog_compiler_wl_CXX='-Qoption ld '
13838	    ;;
13839	  gcx*)
13840	    # Green Hills C++ Compiler
13841	    lt_prog_compiler_pic_CXX='-PIC'
13842	    ;;
13843	  *)
13844	    ;;
13845	esac
13846	;;
13847      sunos4*)
13848	case $cc_basename in
13849	  CC*)
13850	    # Sun C++ 4.x
13851	    lt_prog_compiler_pic_CXX='-pic'
13852	    lt_prog_compiler_static_CXX='-Bstatic'
13853	    ;;
13854	  lcc*)
13855	    # Lucid
13856	    lt_prog_compiler_pic_CXX='-pic'
13857	    ;;
13858	  *)
13859	    ;;
13860	esac
13861	;;
13862      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13863	case $cc_basename in
13864	  CC*)
13865	    lt_prog_compiler_wl_CXX='-Wl,'
13866	    lt_prog_compiler_pic_CXX='-KPIC'
13867	    lt_prog_compiler_static_CXX='-Bstatic'
13868	    ;;
13869	esac
13870	;;
13871      tandem*)
13872	case $cc_basename in
13873	  NCC*)
13874	    # NonStop-UX NCC 3.20
13875	    lt_prog_compiler_pic_CXX='-KPIC'
13876	    ;;
13877	  *)
13878	    ;;
13879	esac
13880	;;
13881      vxworks*)
13882	;;
13883      *)
13884	lt_prog_compiler_can_build_shared_CXX=no
13885	;;
13886    esac
13887  fi
13888
13889case $host_os in
13890  # For platforms which do not support PIC, -DPIC is meaningless:
13891  *djgpp*)
13892    lt_prog_compiler_pic_CXX=
13893    ;;
13894  *)
13895    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13896    ;;
13897esac
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13899$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13900
13901
13902
13903#
13904# Check to make sure the PIC flag actually works.
13905#
13906if test -n "$lt_prog_compiler_pic_CXX"; then
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13908$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13909if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13910  $as_echo_n "(cached) " >&6
13911else
13912  lt_cv_prog_compiler_pic_works_CXX=no
13913   ac_outfile=conftest.$ac_objext
13914   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13915   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13916   # Insert the option either (1) after the last *FLAGS variable, or
13917   # (2) before a word containing "conftest.", or (3) at the end.
13918   # Note that $ac_compile itself does not contain backslashes and begins
13919   # with a dollar sign (not a hyphen), so the echo should work correctly.
13920   # The option is referenced via a variable to avoid confusing sed.
13921   lt_compile=`echo "$ac_compile" | $SED \
13922   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13923   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13924   -e 's:$: $lt_compiler_flag:'`
13925   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13926   (eval "$lt_compile" 2>conftest.err)
13927   ac_status=$?
13928   cat conftest.err >&5
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   if (exit $ac_status) && test -s "$ac_outfile"; then
13931     # The compiler can only warn and ignore the option if not recognized
13932     # So say no if there are warnings other than the usual output.
13933     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13934     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13935     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13936       lt_cv_prog_compiler_pic_works_CXX=yes
13937     fi
13938   fi
13939   $RM conftest*
13940
13941fi
13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13943$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13944
13945if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13946    case $lt_prog_compiler_pic_CXX in
13947     "" | " "*) ;;
13948     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13949     esac
13950else
13951    lt_prog_compiler_pic_CXX=
13952     lt_prog_compiler_can_build_shared_CXX=no
13953fi
13954
13955fi
13956
13957
13958
13959#
13960# Check to make sure the static flag actually works.
13961#
13962wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13964$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13965if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13966  $as_echo_n "(cached) " >&6
13967else
13968  lt_cv_prog_compiler_static_works_CXX=no
13969   save_LDFLAGS="$LDFLAGS"
13970   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13971   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13972   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13973     # The linker can only warn and ignore the option if not recognized
13974     # So say no if there are warnings
13975     if test -s conftest.err; then
13976       # Append any errors to the config.log.
13977       cat conftest.err 1>&5
13978       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13979       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13980       if diff conftest.exp conftest.er2 >/dev/null; then
13981         lt_cv_prog_compiler_static_works_CXX=yes
13982       fi
13983     else
13984       lt_cv_prog_compiler_static_works_CXX=yes
13985     fi
13986   fi
13987   $RM -r conftest*
13988   LDFLAGS="$save_LDFLAGS"
13989
13990fi
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13992$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13993
13994if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13995    :
13996else
13997    lt_prog_compiler_static_CXX=
13998fi
13999
14000
14001
14002
14003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14004$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14005if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14006  $as_echo_n "(cached) " >&6
14007else
14008  lt_cv_prog_compiler_c_o_CXX=no
14009   $RM -r conftest 2>/dev/null
14010   mkdir conftest
14011   cd conftest
14012   mkdir out
14013   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14014
14015   lt_compiler_flag="-o out/conftest2.$ac_objext"
14016   # Insert the option either (1) after the last *FLAGS variable, or
14017   # (2) before a word containing "conftest.", or (3) at the end.
14018   # Note that $ac_compile itself does not contain backslashes and begins
14019   # with a dollar sign (not a hyphen), so the echo should work correctly.
14020   lt_compile=`echo "$ac_compile" | $SED \
14021   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14022   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14023   -e 's:$: $lt_compiler_flag:'`
14024   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14025   (eval "$lt_compile" 2>out/conftest.err)
14026   ac_status=$?
14027   cat out/conftest.err >&5
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14030   then
14031     # The compiler can only warn and ignore the option if not recognized
14032     # So say no if there are warnings
14033     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14034     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14035     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14036       lt_cv_prog_compiler_c_o_CXX=yes
14037     fi
14038   fi
14039   chmod u+w . 2>&5
14040   $RM conftest*
14041   # SGI C++ compiler will create directory out/ii_files/ for
14042   # template instantiation
14043   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14044   $RM out/* && rmdir out
14045   cd ..
14046   $RM -r conftest
14047   $RM conftest*
14048
14049fi
14050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14051$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14052
14053
14054
14055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14056$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14057if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14058  $as_echo_n "(cached) " >&6
14059else
14060  lt_cv_prog_compiler_c_o_CXX=no
14061   $RM -r conftest 2>/dev/null
14062   mkdir conftest
14063   cd conftest
14064   mkdir out
14065   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14066
14067   lt_compiler_flag="-o out/conftest2.$ac_objext"
14068   # Insert the option either (1) after the last *FLAGS variable, or
14069   # (2) before a word containing "conftest.", or (3) at the end.
14070   # Note that $ac_compile itself does not contain backslashes and begins
14071   # with a dollar sign (not a hyphen), so the echo should work correctly.
14072   lt_compile=`echo "$ac_compile" | $SED \
14073   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14074   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14075   -e 's:$: $lt_compiler_flag:'`
14076   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14077   (eval "$lt_compile" 2>out/conftest.err)
14078   ac_status=$?
14079   cat out/conftest.err >&5
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14082   then
14083     # The compiler can only warn and ignore the option if not recognized
14084     # So say no if there are warnings
14085     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14086     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14087     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14088       lt_cv_prog_compiler_c_o_CXX=yes
14089     fi
14090   fi
14091   chmod u+w . 2>&5
14092   $RM conftest*
14093   # SGI C++ compiler will create directory out/ii_files/ for
14094   # template instantiation
14095   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14096   $RM out/* && rmdir out
14097   cd ..
14098   $RM -r conftest
14099   $RM conftest*
14100
14101fi
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14103$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14104
14105
14106
14107
14108hard_links="nottested"
14109if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14110  # do not overwrite the value of need_locks provided by the user
14111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14112$as_echo_n "checking if we can lock with hard links... " >&6; }
14113  hard_links=yes
14114  $RM conftest*
14115  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14116  touch conftest.a
14117  ln conftest.a conftest.b 2>&5 || hard_links=no
14118  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14120$as_echo "$hard_links" >&6; }
14121  if test "$hard_links" = no; then
14122    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14123$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14124    need_locks=warn
14125  fi
14126else
14127  need_locks=no
14128fi
14129
14130
14131
14132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14133$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14134
14135  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14136  case $host_os in
14137  aix[4-9]*)
14138    # If we're using GNU nm, then we don't want the "-C" option.
14139    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14140    # Also, AIX nm treats weak defined symbols like other global defined
14141    # symbols, whereas GNU nm marks them as "W".
14142    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14143      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14144    else
14145      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14146    fi
14147    ;;
14148  pw32*)
14149    export_symbols_cmds_CXX="$ltdll_cmds"
14150  ;;
14151  cygwin* | mingw* | cegcc*)
14152    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14153  ;;
14154  *)
14155    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14156  ;;
14157  esac
14158  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14159
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14161$as_echo "$ld_shlibs_CXX" >&6; }
14162test "$ld_shlibs_CXX" = no && can_build_shared=no
14163
14164with_gnu_ld_CXX=$with_gnu_ld
14165
14166
14167
14168
14169
14170
14171#
14172# Do we need to explicitly link libc?
14173#
14174case "x$archive_cmds_need_lc_CXX" in
14175x|xyes)
14176  # Assume -lc should be added
14177  archive_cmds_need_lc_CXX=yes
14178
14179  if test "$enable_shared" = yes && test "$GCC" = yes; then
14180    case $archive_cmds_CXX in
14181    *'~'*)
14182      # FIXME: we may have to deal with multi-command sequences.
14183      ;;
14184    '$CC '*)
14185      # Test whether the compiler implicitly links with -lc since on some
14186      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14187      # to ld, don't add -lc before -lgcc.
14188      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14189$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14190if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14191  $as_echo_n "(cached) " >&6
14192else
14193  $RM conftest*
14194	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14195
14196	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14197  (eval $ac_compile) 2>&5
14198  ac_status=$?
14199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14200  test $ac_status = 0; } 2>conftest.err; then
14201	  soname=conftest
14202	  lib=conftest
14203	  libobjs=conftest.$ac_objext
14204	  deplibs=
14205	  wl=$lt_prog_compiler_wl_CXX
14206	  pic_flag=$lt_prog_compiler_pic_CXX
14207	  compiler_flags=-v
14208	  linker_flags=-v
14209	  verstring=
14210	  output_objdir=.
14211	  libname=conftest
14212	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14213	  allow_undefined_flag_CXX=
14214	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14215  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14216  ac_status=$?
14217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14218  test $ac_status = 0; }
14219	  then
14220	    lt_cv_archive_cmds_need_lc_CXX=no
14221	  else
14222	    lt_cv_archive_cmds_need_lc_CXX=yes
14223	  fi
14224	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14225	else
14226	  cat conftest.err 1>&5
14227	fi
14228	$RM conftest*
14229
14230fi
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14232$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14233      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14234      ;;
14235    esac
14236  fi
14237  ;;
14238esac
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14304$as_echo_n "checking dynamic linker characteristics... " >&6; }
14305
14306library_names_spec=
14307libname_spec='lib$name'
14308soname_spec=
14309shrext_cmds=".so"
14310postinstall_cmds=
14311postuninstall_cmds=
14312finish_cmds=
14313finish_eval=
14314shlibpath_var=
14315shlibpath_overrides_runpath=unknown
14316version_type=none
14317dynamic_linker="$host_os ld.so"
14318sys_lib_dlsearch_path_spec="/lib /usr/lib"
14319need_lib_prefix=unknown
14320hardcode_into_libs=no
14321
14322# when you set need_version to no, make sure it does not cause -set_version
14323# flags to be left without arguments
14324need_version=unknown
14325
14326case $host_os in
14327aix3*)
14328  version_type=linux
14329  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14330  shlibpath_var=LIBPATH
14331
14332  # AIX 3 has no versioning support, so we append a major version to the name.
14333  soname_spec='${libname}${release}${shared_ext}$major'
14334  ;;
14335
14336aix[4-9]*)
14337  version_type=linux
14338  need_lib_prefix=no
14339  need_version=no
14340  hardcode_into_libs=yes
14341  if test "$host_cpu" = ia64; then
14342    # AIX 5 supports IA64
14343    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14344    shlibpath_var=LD_LIBRARY_PATH
14345  else
14346    # With GCC up to 2.95.x, collect2 would create an import file
14347    # for dependence libraries.  The import file would start with
14348    # the line `#! .'.  This would cause the generated library to
14349    # depend on `.', always an invalid library.  This was fixed in
14350    # development snapshots of GCC prior to 3.0.
14351    case $host_os in
14352      aix4 | aix4.[01] | aix4.[01].*)
14353      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14354	   echo ' yes '
14355	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14356	:
14357      else
14358	can_build_shared=no
14359      fi
14360      ;;
14361    esac
14362    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14363    # soname into executable. Probably we can add versioning support to
14364    # collect2, so additional links can be useful in future.
14365    if test "$aix_use_runtimelinking" = yes; then
14366      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14367      # instead of lib<name>.a to let people know that these are not
14368      # typical AIX shared libraries.
14369      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14370    else
14371      # We preserve .a as extension for shared libraries through AIX4.2
14372      # and later when we are not doing run time linking.
14373      library_names_spec='${libname}${release}.a $libname.a'
14374      soname_spec='${libname}${release}${shared_ext}$major'
14375    fi
14376    shlibpath_var=LIBPATH
14377  fi
14378  ;;
14379
14380amigaos*)
14381  case $host_cpu in
14382  powerpc)
14383    # Since July 2007 AmigaOS4 officially supports .so libraries.
14384    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14385    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14386    ;;
14387  m68k)
14388    library_names_spec='$libname.ixlibrary $libname.a'
14389    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14390    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14391    ;;
14392  esac
14393  ;;
14394
14395beos*)
14396  library_names_spec='${libname}${shared_ext}'
14397  dynamic_linker="$host_os ld.so"
14398  shlibpath_var=LIBRARY_PATH
14399  ;;
14400
14401bsdi[45]*)
14402  version_type=linux
14403  need_version=no
14404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405  soname_spec='${libname}${release}${shared_ext}$major'
14406  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14407  shlibpath_var=LD_LIBRARY_PATH
14408  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14409  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14410  # the default ld.so.conf also contains /usr/contrib/lib and
14411  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14412  # libtool to hard-code these into programs
14413  ;;
14414
14415cygwin* | mingw* | pw32* | cegcc*)
14416  version_type=windows
14417  shrext_cmds=".dll"
14418  need_version=no
14419  need_lib_prefix=no
14420
14421  case $GCC,$host_os in
14422  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14423    library_names_spec='$libname.dll.a'
14424    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14425    postinstall_cmds='base_file=`basename \${file}`~
14426      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14427      dldir=$destdir/`dirname \$dlpath`~
14428      test -d \$dldir || mkdir -p \$dldir~
14429      $install_prog $dir/$dlname \$dldir/$dlname~
14430      chmod a+x \$dldir/$dlname~
14431      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14432        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14433      fi'
14434    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14435      dlpath=$dir/\$dldll~
14436       $RM \$dlpath'
14437    shlibpath_overrides_runpath=yes
14438
14439    case $host_os in
14440    cygwin*)
14441      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14442      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14443
14444      ;;
14445    mingw* | cegcc*)
14446      # MinGW DLLs use traditional 'lib' prefix
14447      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14448      ;;
14449    pw32*)
14450      # pw32 DLLs use 'pw' prefix rather than 'lib'
14451      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14452      ;;
14453    esac
14454    ;;
14455
14456  *)
14457    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14458    ;;
14459  esac
14460  dynamic_linker='Win32 ld.exe'
14461  # FIXME: first we should search . and the directory the executable is in
14462  shlibpath_var=PATH
14463  ;;
14464
14465darwin* | rhapsody*)
14466  dynamic_linker="$host_os dyld"
14467  version_type=darwin
14468  need_lib_prefix=no
14469  need_version=no
14470  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14471  soname_spec='${libname}${release}${major}$shared_ext'
14472  shlibpath_overrides_runpath=yes
14473  shlibpath_var=DYLD_LIBRARY_PATH
14474  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14475
14476  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14477  ;;
14478
14479dgux*)
14480  version_type=linux
14481  need_lib_prefix=no
14482  need_version=no
14483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14484  soname_spec='${libname}${release}${shared_ext}$major'
14485  shlibpath_var=LD_LIBRARY_PATH
14486  ;;
14487
14488freebsd* | dragonfly*)
14489  # DragonFly does not have aout.  When/if they implement a new
14490  # versioning mechanism, adjust this.
14491  if test -x /usr/bin/objformat; then
14492    objformat=`/usr/bin/objformat`
14493  else
14494    case $host_os in
14495    freebsd[23].*) objformat=aout ;;
14496    *) objformat=elf ;;
14497    esac
14498  fi
14499  version_type=freebsd-$objformat
14500  case $version_type in
14501    freebsd-elf*)
14502      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14503      need_version=no
14504      need_lib_prefix=no
14505      ;;
14506    freebsd-*)
14507      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14508      need_version=yes
14509      ;;
14510  esac
14511  shlibpath_var=LD_LIBRARY_PATH
14512  case $host_os in
14513  freebsd2.*)
14514    shlibpath_overrides_runpath=yes
14515    ;;
14516  freebsd3.[01]* | freebsdelf3.[01]*)
14517    shlibpath_overrides_runpath=yes
14518    hardcode_into_libs=yes
14519    ;;
14520  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14521  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14522    shlibpath_overrides_runpath=no
14523    hardcode_into_libs=yes
14524    ;;
14525  *) # from 4.6 on, and DragonFly
14526    shlibpath_overrides_runpath=yes
14527    hardcode_into_libs=yes
14528    ;;
14529  esac
14530  ;;
14531
14532haiku*)
14533  version_type=linux
14534  need_lib_prefix=no
14535  need_version=no
14536  dynamic_linker="$host_os runtime_loader"
14537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14538  soname_spec='${libname}${release}${shared_ext}$major'
14539  shlibpath_var=LIBRARY_PATH
14540  shlibpath_overrides_runpath=yes
14541  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14542  hardcode_into_libs=yes
14543  ;;
14544
14545hpux9* | hpux10* | hpux11*)
14546  # Give a soname corresponding to the major version so that dld.sl refuses to
14547  # link against other versions.
14548  version_type=sunos
14549  need_lib_prefix=no
14550  need_version=no
14551  case $host_cpu in
14552  ia64*)
14553    shrext_cmds='.so'
14554    hardcode_into_libs=yes
14555    dynamic_linker="$host_os dld.so"
14556    shlibpath_var=LD_LIBRARY_PATH
14557    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14558    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559    soname_spec='${libname}${release}${shared_ext}$major'
14560    if test "X$HPUX_IA64_MODE" = X32; then
14561      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14562    else
14563      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14564    fi
14565    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14566    ;;
14567  hppa*64*)
14568    shrext_cmds='.sl'
14569    hardcode_into_libs=yes
14570    dynamic_linker="$host_os dld.sl"
14571    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14572    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14573    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574    soname_spec='${libname}${release}${shared_ext}$major'
14575    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14576    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14577    ;;
14578  *)
14579    shrext_cmds='.sl'
14580    dynamic_linker="$host_os dld.sl"
14581    shlibpath_var=SHLIB_PATH
14582    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14583    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584    soname_spec='${libname}${release}${shared_ext}$major'
14585    ;;
14586  esac
14587  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14588  postinstall_cmds='chmod 555 $lib'
14589  # or fails outright, so override atomically:
14590  install_override_mode=555
14591  ;;
14592
14593interix[3-9]*)
14594  version_type=linux
14595  need_lib_prefix=no
14596  need_version=no
14597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14598  soname_spec='${libname}${release}${shared_ext}$major'
14599  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14600  shlibpath_var=LD_LIBRARY_PATH
14601  shlibpath_overrides_runpath=no
14602  hardcode_into_libs=yes
14603  ;;
14604
14605irix5* | irix6* | nonstopux*)
14606  case $host_os in
14607    nonstopux*) version_type=nonstopux ;;
14608    *)
14609	if test "$lt_cv_prog_gnu_ld" = yes; then
14610		version_type=linux
14611	else
14612		version_type=irix
14613	fi ;;
14614  esac
14615  need_lib_prefix=no
14616  need_version=no
14617  soname_spec='${libname}${release}${shared_ext}$major'
14618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14619  case $host_os in
14620  irix5* | nonstopux*)
14621    libsuff= shlibsuff=
14622    ;;
14623  *)
14624    case $LD in # libtool.m4 will add one of these switches to LD
14625    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14626      libsuff= shlibsuff= libmagic=32-bit;;
14627    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14628      libsuff=32 shlibsuff=N32 libmagic=N32;;
14629    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14630      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14631    *) libsuff= shlibsuff= libmagic=never-match;;
14632    esac
14633    ;;
14634  esac
14635  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14636  shlibpath_overrides_runpath=no
14637  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14638  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14639  hardcode_into_libs=yes
14640  ;;
14641
14642# No shared lib support for Linux oldld, aout, or coff.
14643linux*oldld* | linux*aout* | linux*coff*)
14644  dynamic_linker=no
14645  ;;
14646
14647# This must be Linux ELF.
14648
14649# uclinux* changes (here and below) have been submitted to the libtool
14650# project, but have not yet been accepted: they are GCC-local changes
14651# for the time being.  (See
14652# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14653linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14654  version_type=linux
14655  need_lib_prefix=no
14656  need_version=no
14657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658  soname_spec='${libname}${release}${shared_ext}$major'
14659  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14660  shlibpath_var=LD_LIBRARY_PATH
14661  shlibpath_overrides_runpath=no
14662
14663  # Some binutils ld are patched to set DT_RUNPATH
14664  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14665  $as_echo_n "(cached) " >&6
14666else
14667  lt_cv_shlibpath_overrides_runpath=no
14668    save_LDFLAGS=$LDFLAGS
14669    save_libdir=$libdir
14670    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14671	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14672    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673/* end confdefs.h.  */
14674
14675int
14676main ()
14677{
14678
14679  ;
14680  return 0;
14681}
14682_ACEOF
14683if ac_fn_cxx_try_link "$LINENO"; then :
14684  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14685  lt_cv_shlibpath_overrides_runpath=yes
14686fi
14687fi
14688rm -f core conftest.err conftest.$ac_objext \
14689    conftest$ac_exeext conftest.$ac_ext
14690    LDFLAGS=$save_LDFLAGS
14691    libdir=$save_libdir
14692
14693fi
14694
14695  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14696
14697  # This implies no fast_install, which is unacceptable.
14698  # Some rework will be needed to allow for fast_install
14699  # before this can be enabled.
14700  hardcode_into_libs=yes
14701
14702  # Append ld.so.conf contents to the search path
14703  if test -f /etc/ld.so.conf; then
14704    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' ' '`
14705    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14706  fi
14707
14708  # We used to test for /lib/ld.so.1 and disable shared libraries on
14709  # powerpc, because MkLinux only supported shared libraries with the
14710  # GNU dynamic linker.  Since this was broken with cross compilers,
14711  # most powerpc-linux boxes support dynamic linking these days and
14712  # people can always --disable-shared, the test was removed, and we
14713  # assume the GNU/Linux dynamic linker is in use.
14714  dynamic_linker='GNU/Linux ld.so'
14715  ;;
14716
14717netbsd*)
14718  version_type=sunos
14719  need_lib_prefix=no
14720  need_version=no
14721  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14722    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14723    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14724    dynamic_linker='NetBSD (a.out) ld.so'
14725  else
14726    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14727    soname_spec='${libname}${release}${shared_ext}$major'
14728    dynamic_linker='NetBSD ld.elf_so'
14729  fi
14730  shlibpath_var=LD_LIBRARY_PATH
14731  shlibpath_overrides_runpath=yes
14732  hardcode_into_libs=yes
14733  ;;
14734
14735newsos6)
14736  version_type=linux
14737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738  shlibpath_var=LD_LIBRARY_PATH
14739  shlibpath_overrides_runpath=yes
14740  ;;
14741
14742*nto* | *qnx*)
14743  version_type=qnx
14744  need_lib_prefix=no
14745  need_version=no
14746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747  soname_spec='${libname}${release}${shared_ext}$major'
14748  shlibpath_var=LD_LIBRARY_PATH
14749  shlibpath_overrides_runpath=no
14750  hardcode_into_libs=yes
14751  dynamic_linker='ldqnx.so'
14752  ;;
14753
14754openbsd*)
14755  version_type=sunos
14756  sys_lib_dlsearch_path_spec="/usr/lib"
14757  need_lib_prefix=no
14758  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14759  case $host_os in
14760    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14761    *)				need_version=no  ;;
14762  esac
14763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14764  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14765  shlibpath_var=LD_LIBRARY_PATH
14766  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14767    case $host_os in
14768      openbsd2.[89] | openbsd2.[89].*)
14769	shlibpath_overrides_runpath=no
14770	;;
14771      *)
14772	shlibpath_overrides_runpath=yes
14773	;;
14774      esac
14775  else
14776    shlibpath_overrides_runpath=yes
14777  fi
14778  ;;
14779
14780os2*)
14781  libname_spec='$name'
14782  shrext_cmds=".dll"
14783  need_lib_prefix=no
14784  library_names_spec='$libname${shared_ext} $libname.a'
14785  dynamic_linker='OS/2 ld.exe'
14786  shlibpath_var=LIBPATH
14787  ;;
14788
14789osf3* | osf4* | osf5*)
14790  version_type=osf
14791  need_lib_prefix=no
14792  need_version=no
14793  soname_spec='${libname}${release}${shared_ext}$major'
14794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795  shlibpath_var=LD_LIBRARY_PATH
14796  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14797  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14798  ;;
14799
14800rdos*)
14801  dynamic_linker=no
14802  ;;
14803
14804solaris*)
14805  version_type=linux
14806  need_lib_prefix=no
14807  need_version=no
14808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809  soname_spec='${libname}${release}${shared_ext}$major'
14810  shlibpath_var=LD_LIBRARY_PATH
14811  shlibpath_overrides_runpath=yes
14812  hardcode_into_libs=yes
14813  # ldd complains unless libraries are executable
14814  postinstall_cmds='chmod +x $lib'
14815  ;;
14816
14817sunos4*)
14818  version_type=sunos
14819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14820  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14821  shlibpath_var=LD_LIBRARY_PATH
14822  shlibpath_overrides_runpath=yes
14823  if test "$with_gnu_ld" = yes; then
14824    need_lib_prefix=no
14825  fi
14826  need_version=yes
14827  ;;
14828
14829sysv4 | sysv4.3*)
14830  version_type=linux
14831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832  soname_spec='${libname}${release}${shared_ext}$major'
14833  shlibpath_var=LD_LIBRARY_PATH
14834  case $host_vendor in
14835    sni)
14836      shlibpath_overrides_runpath=no
14837      need_lib_prefix=no
14838      runpath_var=LD_RUN_PATH
14839      ;;
14840    siemens)
14841      need_lib_prefix=no
14842      ;;
14843    motorola)
14844      need_lib_prefix=no
14845      need_version=no
14846      shlibpath_overrides_runpath=no
14847      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14848      ;;
14849  esac
14850  ;;
14851
14852sysv4*MP*)
14853  if test -d /usr/nec ;then
14854    version_type=linux
14855    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14856    soname_spec='$libname${shared_ext}.$major'
14857    shlibpath_var=LD_LIBRARY_PATH
14858  fi
14859  ;;
14860
14861sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14862  version_type=freebsd-elf
14863  need_lib_prefix=no
14864  need_version=no
14865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14866  soname_spec='${libname}${release}${shared_ext}$major'
14867  shlibpath_var=LD_LIBRARY_PATH
14868  shlibpath_overrides_runpath=yes
14869  hardcode_into_libs=yes
14870  if test "$with_gnu_ld" = yes; then
14871    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14872  else
14873    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14874    case $host_os in
14875      sco3.2v5*)
14876        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14877	;;
14878    esac
14879  fi
14880  sys_lib_dlsearch_path_spec='/usr/lib'
14881  ;;
14882
14883tpf*)
14884  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14885  version_type=linux
14886  need_lib_prefix=no
14887  need_version=no
14888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889  shlibpath_var=LD_LIBRARY_PATH
14890  shlibpath_overrides_runpath=no
14891  hardcode_into_libs=yes
14892  ;;
14893
14894uts4*)
14895  version_type=linux
14896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897  soname_spec='${libname}${release}${shared_ext}$major'
14898  shlibpath_var=LD_LIBRARY_PATH
14899  ;;
14900
14901# Shared libraries for VwWorks, >= 7 only at this stage
14902# and (fpic) still incompatible with "large" code models
14903# in a few configurations. Only for RTP mode in any case,
14904# and upon explicit request at configure time.
14905vxworks7*)
14906  dynamic_linker=no
14907  case ${with_multisubdir}-${enable_shared} in
14908    *large*)
14909      ;;
14910    *mrtp*-yes)
14911      version_type=linux
14912      need_lib_prefix=no
14913      need_version=no
14914      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915      soname_spec='${libname}${release}${shared_ext}$major'
14916      dynamic_linker="$host_os module_loader"
14917      ;;
14918  esac
14919  ;;
14920*)
14921  dynamic_linker=no
14922  ;;
14923esac
14924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14925$as_echo "$dynamic_linker" >&6; }
14926test "$dynamic_linker" = no && can_build_shared=no
14927
14928variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14929if test "$GCC" = yes; then
14930  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14931fi
14932
14933if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14934  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14935fi
14936if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14937  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14938fi
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14978$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14979hardcode_action_CXX=
14980if test -n "$hardcode_libdir_flag_spec_CXX" ||
14981   test -n "$runpath_var_CXX" ||
14982   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14983
14984  # We can hardcode non-existent directories.
14985  if test "$hardcode_direct_CXX" != no &&
14986     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14987     # have to relink, otherwise we might link with an installed library
14988     # when we should be linking with a yet-to-be-installed one
14989     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14990     test "$hardcode_minus_L_CXX" != no; then
14991    # Linking always hardcodes the temporary library directory.
14992    hardcode_action_CXX=relink
14993  else
14994    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14995    hardcode_action_CXX=immediate
14996  fi
14997else
14998  # We cannot hardcode anything, or else we can only hardcode existing
14999  # directories.
15000  hardcode_action_CXX=unsupported
15001fi
15002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15003$as_echo "$hardcode_action_CXX" >&6; }
15004
15005if test "$hardcode_action_CXX" = relink ||
15006   test "$inherit_rpath_CXX" = yes; then
15007  # Fast installation is not supported
15008  enable_fast_install=no
15009elif test "$shlibpath_overrides_runpath" = yes ||
15010     test "$enable_shared" = no; then
15011  # Fast installation is not necessary
15012  enable_fast_install=needless
15013fi
15014
15015
15016
15017
15018
15019
15020
15021  fi # test -n "$compiler"
15022
15023  CC=$lt_save_CC
15024  LDCXX=$LD
15025  LD=$lt_save_LD
15026  GCC=$lt_save_GCC
15027  with_gnu_ld=$lt_save_with_gnu_ld
15028  lt_cv_path_LDCXX=$lt_cv_path_LD
15029  lt_cv_path_LD=$lt_save_path_LD
15030  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15031  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15032fi # test "$_lt_caught_CXX_error" != yes
15033
15034ac_ext=c
15035ac_cpp='$CPP $CPPFLAGS'
15036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038ac_compiler_gnu=$ac_cv_c_compiler_gnu
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052        ac_config_commands="$ac_config_commands libtool"
15053
15054
15055
15056
15057# Only expand once:
15058
15059
15060
15061# The tests for host and target for $enable_largefile require
15062# canonical names.
15063
15064
15065
15066# As the $enable_largefile decision depends on --enable-plugins we must set it
15067# even in directories otherwise not depending on the $plugins option.
15068
15069
15070  maybe_plugins=no
15071  for ac_header in dlfcn.h
15072do :
15073  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15074"
15075if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15076  cat >>confdefs.h <<_ACEOF
15077#define HAVE_DLFCN_H 1
15078_ACEOF
15079 maybe_plugins=yes
15080fi
15081
15082done
15083
15084  for ac_header in windows.h
15085do :
15086  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15087"
15088if test "x$ac_cv_header_windows_h" = xyes; then :
15089  cat >>confdefs.h <<_ACEOF
15090#define HAVE_WINDOWS_H 1
15091_ACEOF
15092 maybe_plugins=yes
15093fi
15094
15095done
15096
15097
15098  # Check whether --enable-plugins was given.
15099if test "${enable_plugins+set}" = set; then :
15100  enableval=$enable_plugins; case "${enableval}" in
15101      no) plugins=no ;;
15102      *) plugins=yes
15103         if test "$maybe_plugins" != "yes" ; then
15104	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15105	 fi ;;
15106     esac
15107else
15108  plugins=$maybe_plugins
15109
15110fi
15111
15112  if test "$plugins" = "yes"; then
15113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15114$as_echo_n "checking for library containing dlsym... " >&6; }
15115if ${ac_cv_search_dlsym+:} false; then :
15116  $as_echo_n "(cached) " >&6
15117else
15118  ac_func_search_save_LIBS=$LIBS
15119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120/* end confdefs.h.  */
15121
15122/* Override any GCC internal prototype to avoid an error.
15123   Use char because int might match the return type of a GCC
15124   builtin and then its argument prototype would still apply.  */
15125#ifdef __cplusplus
15126extern "C"
15127#endif
15128char dlsym ();
15129int
15130main ()
15131{
15132return dlsym ();
15133  ;
15134  return 0;
15135}
15136_ACEOF
15137for ac_lib in '' dl; do
15138  if test -z "$ac_lib"; then
15139    ac_res="none required"
15140  else
15141    ac_res=-l$ac_lib
15142    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15143  fi
15144  if ac_fn_c_try_link "$LINENO"; then :
15145  ac_cv_search_dlsym=$ac_res
15146fi
15147rm -f core conftest.err conftest.$ac_objext \
15148    conftest$ac_exeext
15149  if ${ac_cv_search_dlsym+:} false; then :
15150  break
15151fi
15152done
15153if ${ac_cv_search_dlsym+:} false; then :
15154
15155else
15156  ac_cv_search_dlsym=no
15157fi
15158rm conftest.$ac_ext
15159LIBS=$ac_func_search_save_LIBS
15160fi
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15162$as_echo "$ac_cv_search_dlsym" >&6; }
15163ac_res=$ac_cv_search_dlsym
15164if test "$ac_res" != no; then :
15165  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15166
15167fi
15168
15169  fi
15170
15171
15172case "${host}" in
15173  sparc-*-solaris*|i?86-*-solaris*)
15174    # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15175    # were mutually exclusive until Solaris 11.3.  Without procfs support,
15176    # the bfd/ elf module cannot provide certain routines such as
15177    # elfcore_write_prpsinfo or elfcore_write_prstatus.  So unless the user
15178    # explicitly requested large-file support through the
15179    # --enable-largefile switch, disable large-file support in favor of
15180    # procfs support.
15181    #
15182    # Check if <sys/procfs.h> is incompatible with large-file support.
15183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184/* end confdefs.h.  */
15185#define _FILE_OFFSET_BITS 64
15186#define _STRUCTURED_PROC 1
15187#include <sys/procfs.h>
15188int
15189main ()
15190{
15191
15192  ;
15193  return 0;
15194}
15195_ACEOF
15196if ac_fn_c_try_compile "$LINENO"; then :
15197  acx_cv_procfs_lfs=yes
15198else
15199  acx_cv_procfs_lfs=no
15200fi
15201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202    #
15203    # Forcefully disable large-file support only if necessary, gdb is in
15204    # tree and enabled.
15205    if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15206         -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15207      : ${enable_largefile="no"}
15208      if test "$plugins" = yes; then
15209	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15210plugin support disabled; require large-file support which is incompatible with GDB." >&5
15211$as_echo "$as_me: WARNING:
15212plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15213	plugins=no
15214      fi
15215    fi
15216    #
15217    # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15218    # benefit of g++ 9+ which predefines it on Solaris.
15219    if test "$enable_largefile" = no; then
15220      LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15221
15222    fi
15223    ;;
15224esac
15225
15226# Check whether --enable-largefile was given.
15227if test "${enable_largefile+set}" = set; then :
15228  enableval=$enable_largefile;
15229fi
15230
15231if test "$enable_largefile" != no; then
15232
15233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15234$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15235if ${ac_cv_sys_largefile_CC+:} false; then :
15236  $as_echo_n "(cached) " >&6
15237else
15238  ac_cv_sys_largefile_CC=no
15239     if test "$GCC" != yes; then
15240       ac_save_CC=$CC
15241       while :; do
15242	 # IRIX 6.2 and later do not support large files by default,
15243	 # so use the C compiler's -n32 option if that helps.
15244	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245/* end confdefs.h.  */
15246#include <sys/types.h>
15247 /* Check that off_t can represent 2**63 - 1 correctly.
15248    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15249    since some C++ compilers masquerading as C compilers
15250    incorrectly reject 9223372036854775807.  */
15251#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15252  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15253		       && LARGE_OFF_T % 2147483647 == 1)
15254		      ? 1 : -1];
15255int
15256main ()
15257{
15258
15259  ;
15260  return 0;
15261}
15262_ACEOF
15263	 if ac_fn_c_try_compile "$LINENO"; then :
15264  break
15265fi
15266rm -f core conftest.err conftest.$ac_objext
15267	 CC="$CC -n32"
15268	 if ac_fn_c_try_compile "$LINENO"; then :
15269  ac_cv_sys_largefile_CC=' -n32'; break
15270fi
15271rm -f core conftest.err conftest.$ac_objext
15272	 break
15273       done
15274       CC=$ac_save_CC
15275       rm -f conftest.$ac_ext
15276    fi
15277fi
15278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15279$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15280  if test "$ac_cv_sys_largefile_CC" != no; then
15281    CC=$CC$ac_cv_sys_largefile_CC
15282  fi
15283
15284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15285$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15286if ${ac_cv_sys_file_offset_bits+:} false; then :
15287  $as_echo_n "(cached) " >&6
15288else
15289  while :; do
15290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291/* end confdefs.h.  */
15292#include <sys/types.h>
15293 /* Check that off_t can represent 2**63 - 1 correctly.
15294    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15295    since some C++ compilers masquerading as C compilers
15296    incorrectly reject 9223372036854775807.  */
15297#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15298  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15299		       && LARGE_OFF_T % 2147483647 == 1)
15300		      ? 1 : -1];
15301int
15302main ()
15303{
15304
15305  ;
15306  return 0;
15307}
15308_ACEOF
15309if ac_fn_c_try_compile "$LINENO"; then :
15310  ac_cv_sys_file_offset_bits=no; break
15311fi
15312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314/* end confdefs.h.  */
15315#define _FILE_OFFSET_BITS 64
15316#include <sys/types.h>
15317 /* Check that off_t can represent 2**63 - 1 correctly.
15318    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15319    since some C++ compilers masquerading as C compilers
15320    incorrectly reject 9223372036854775807.  */
15321#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15322  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15323		       && LARGE_OFF_T % 2147483647 == 1)
15324		      ? 1 : -1];
15325int
15326main ()
15327{
15328
15329  ;
15330  return 0;
15331}
15332_ACEOF
15333if ac_fn_c_try_compile "$LINENO"; then :
15334  ac_cv_sys_file_offset_bits=64; break
15335fi
15336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337  ac_cv_sys_file_offset_bits=unknown
15338  break
15339done
15340fi
15341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15342$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15343case $ac_cv_sys_file_offset_bits in #(
15344  no | unknown) ;;
15345  *)
15346cat >>confdefs.h <<_ACEOF
15347#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15348_ACEOF
15349;;
15350esac
15351rm -rf conftest*
15352  if test $ac_cv_sys_file_offset_bits = unknown; then
15353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15354$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15355if ${ac_cv_sys_large_files+:} false; then :
15356  $as_echo_n "(cached) " >&6
15357else
15358  while :; do
15359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360/* end confdefs.h.  */
15361#include <sys/types.h>
15362 /* Check that off_t can represent 2**63 - 1 correctly.
15363    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15364    since some C++ compilers masquerading as C compilers
15365    incorrectly reject 9223372036854775807.  */
15366#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15367  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15368		       && LARGE_OFF_T % 2147483647 == 1)
15369		      ? 1 : -1];
15370int
15371main ()
15372{
15373
15374  ;
15375  return 0;
15376}
15377_ACEOF
15378if ac_fn_c_try_compile "$LINENO"; then :
15379  ac_cv_sys_large_files=no; break
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383/* end confdefs.h.  */
15384#define _LARGE_FILES 1
15385#include <sys/types.h>
15386 /* Check that off_t can represent 2**63 - 1 correctly.
15387    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15388    since some C++ compilers masquerading as C compilers
15389    incorrectly reject 9223372036854775807.  */
15390#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15391  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15392		       && LARGE_OFF_T % 2147483647 == 1)
15393		      ? 1 : -1];
15394int
15395main ()
15396{
15397
15398  ;
15399  return 0;
15400}
15401_ACEOF
15402if ac_fn_c_try_compile "$LINENO"; then :
15403  ac_cv_sys_large_files=1; break
15404fi
15405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406  ac_cv_sys_large_files=unknown
15407  break
15408done
15409fi
15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15411$as_echo "$ac_cv_sys_large_files" >&6; }
15412case $ac_cv_sys_large_files in #(
15413  no | unknown) ;;
15414  *)
15415cat >>confdefs.h <<_ACEOF
15416#define _LARGE_FILES $ac_cv_sys_large_files
15417_ACEOF
15418;;
15419esac
15420rm -rf conftest*
15421  fi
15422
15423
15424fi
15425
15426
15427
15428ac_checking=
15429. ${srcdir}/../bfd/development.sh
15430test "$development" = true && ac_checking=yes
15431# Check whether --enable-checking was given.
15432if test "${enable_checking+set}" = set; then :
15433  enableval=$enable_checking; case "${enableval}" in
15434  no|none)  ac_checking= ;;
15435  *)	    ac_checking=yes ;;
15436esac
15437fi
15438if test x$ac_checking != x ; then
15439
15440$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15441
15442fi
15443
15444
15445# Check whether --with-lib-path was given.
15446if test "${with_lib_path+set}" = set; then :
15447  withval=$with_lib_path; LIB_PATH=$withval
15448fi
15449
15450# Check whether --enable-targets was given.
15451if test "${enable_targets+set}" = set; then :
15452  enableval=$enable_targets; case "${enableval}" in
15453  yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15454	    ;;
15455  no)       enable_targets= ;;
15456  *)        enable_targets=$enableval ;;
15457esac
15458fi
15459
15460# Check whether --enable-64-bit-bfd was given.
15461if test "${enable_64_bit_bfd+set}" = set; then :
15462  enableval=$enable_64_bit_bfd; case $enableval in #(
15463  yes|no) :
15464     ;; #(
15465  *) :
15466    as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15467  *) :
15468     ;;
15469esac
15470else
15471  enable_64_bit_bfd=no
15472fi
15473
15474
15475if test "x$enable_64_bit_bfd" = "xno"; then :
15476    # The cast to long int works around a bug in the HP C Compiler
15477# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15478# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15479# This bug is HP SR number 8606223364.
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15481$as_echo_n "checking size of void *... " >&6; }
15482if ${ac_cv_sizeof_void_p+:} false; then :
15483  $as_echo_n "(cached) " >&6
15484else
15485  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15486
15487else
15488  if test "$ac_cv_type_void_p" = yes; then
15489     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15491as_fn_error 77 "cannot compute sizeof (void *)
15492See \`config.log' for more details" "$LINENO" 5; }
15493   else
15494     ac_cv_sizeof_void_p=0
15495   fi
15496fi
15497
15498fi
15499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15500$as_echo "$ac_cv_sizeof_void_p" >&6; }
15501
15502
15503
15504cat >>confdefs.h <<_ACEOF
15505#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15506_ACEOF
15507
15508
15509  if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15510  enable_64_bit_bfd=yes
15511fi
15512
15513fi
15514
15515 if test "x$enable_64_bit_bfd" = "xyes"; then
15516  ENABLE_BFD_64_BIT_TRUE=
15517  ENABLE_BFD_64_BIT_FALSE='#'
15518else
15519  ENABLE_BFD_64_BIT_TRUE='#'
15520  ENABLE_BFD_64_BIT_FALSE=
15521fi
15522
15523
15524
15525
15526# Check whether --with-sysroot was given.
15527if test "${with_sysroot+set}" = set; then :
15528  withval=$with_sysroot;
15529 case ${with_sysroot} in
15530 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15531 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15532 esac
15533
15534 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15535 use_sysroot=yes
15536
15537 if test "x$prefix" = xNONE; then
15538  test_prefix=/usr/local
15539 else
15540  test_prefix=$prefix
15541 fi
15542 if test "x$exec_prefix" = xNONE; then
15543  test_exec_prefix=$test_prefix
15544 else
15545  test_exec_prefix=$exec_prefix
15546 fi
15547 case ${TARGET_SYSTEM_ROOT} in
15548 "${test_prefix}"|"${test_prefix}/"*|\
15549 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15550 '${prefix}'|'${prefix}/'*|\
15551 '${exec_prefix}'|'${exec_prefix}/'*)
15552   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15553   TARGET_SYSTEM_ROOT_DEFINE="$t"
15554   ;;
15555 esac
15556
15557else
15558
15559 use_sysroot=no
15560 TARGET_SYSTEM_ROOT=
15561 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15562
15563fi
15564
15565
15566
15567
15568
15569# Check whether --enable-gold was given.
15570if test "${enable_gold+set}" = set; then :
15571  enableval=$enable_gold; case "${enableval}" in
15572 default)
15573   install_as_default=no
15574   installed_linker=ld.bfd
15575   ;;
15576 yes|no)
15577   install_as_default=yes
15578   installed_linker=ld.bfd
15579   ;;
15580 *)
15581   as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15582   ;;
15583 esac
15584else
15585  install_as_default=yes
15586 installed_linker=ld.bfd
15587fi
15588
15589
15590
15591
15592# Check whether --enable-got was given.
15593if test "${enable_got+set}" = set; then :
15594  enableval=$enable_got; case "${enableval}" in
15595  target | single | negative | multigot)  got_handling=$enableval ;;
15596  *)  as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15597esac
15598else
15599  got_handling=target
15600fi
15601
15602
15603case "${got_handling}" in
15604  target)
15605
15606$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15607 ;;
15608  single)
15609
15610$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15611 ;;
15612  negative)
15613
15614$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15615 ;;
15616  multigot)
15617
15618$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15619 ;;
15620  *)  as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15621esac
15622
15623# PR gas/19109
15624# Decide the default method for compressing debug sections.
15625ac_default_compressed_debug_sections=unset
15626# Provide a configure time option to override our default.
15627# Check whether --enable-compressed_debug_sections was given.
15628if test "${enable_compressed_debug_sections+set}" = set; then :
15629  enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15630  ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15631  ,no, | ,none,)  ac_default_compressed_debug_sections=no ;;
15632esac
15633fi
15634
15635# Select default compression algorithm.
15636ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15637# Check whether --enable-default_compressed_debug_sections_algorithm was given.
15638if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15639  enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15640   zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15641esac
15642fi
15643
15644# Decide setting DT_RUNPATH instead of DT_RPATH by default
15645ac_default_new_dtags=unset
15646# Provide a configure time option to override our default.
15647# Check whether --enable-new_dtags was given.
15648if test "${enable_new_dtags+set}" = set; then :
15649  enableval=$enable_new_dtags; case "${enableval}" in
15650  yes) ac_default_new_dtags=1 ;;
15651  no) ac_default_new_dtags=0 ;;
15652esac
15653fi
15654
15655# Decide if -z relro should be enabled in ELF linker by default.
15656ac_default_ld_z_relro=unset
15657# Provide a configure time option to override our default.
15658# Check whether --enable-relro was given.
15659if test "${enable_relro+set}" = set; then :
15660  enableval=$enable_relro; case "${enableval}" in
15661  yes)  ac_default_ld_z_relro=1 ;;
15662  no)  ac_default_ld_z_relro=0 ;;
15663esac
15664fi
15665
15666# Decide if DT_TEXTREL check should be enabled in ELF linker.
15667ac_default_ld_textrel_check=unset
15668# Check whether --enable-textrel-check was given.
15669if test "${enable_textrel_check+set}" = set; then :
15670  enableval=$enable_textrel_check; case "${enableval}" in
15671  yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15672esac
15673fi
15674
15675
15676# Decide if -z separate-code should be enabled in ELF linker by default.
15677ac_default_ld_z_separate_code=unset
15678# Check whether --enable-separate-code was given.
15679if test "${enable_separate_code+set}" = set; then :
15680  enableval=$enable_separate_code; case "${enableval}" in
15681  yes) ac_default_ld_z_separate_code=1 ;;
15682  no) ac_default_ld_z_separate_code=0 ;;
15683esac
15684fi
15685
15686
15687# Decide if -z mark-plt should be enabled in ELF x86-64 linker by default.
15688ac_default_ld_z_mark_plt=unset
15689# Check whether --enable-mark-plt was given.
15690if test "${enable_mark_plt+set}" = set; then :
15691  enableval=$enable_mark_plt; case "${enableval}" in
15692  yes) ac_default_ld_z_mark_plt=1 ;;
15693  no) ac_default_ld_z_mark_plt=0 ;;
15694esac
15695fi
15696
15697
15698
15699# By default warn when an executable stack is created due to object files
15700# requesting such, not when the user specifies -z execstack.
15701ac_default_ld_warn_execstack=2
15702# Check whether --enable-warn-execstack was given.
15703if test "${enable_warn_execstack+set}" = set; then :
15704  enableval=$enable_warn_execstack; case "${enableval}" in
15705  yes) ac_default_ld_warn_execstack=1 ;;
15706  no)  ac_default_ld_warn_execstack=0 ;;
15707esac
15708fi
15709
15710
15711ac_default_ld_error_execstack=0
15712# Check whether --enable-error-execstack was given.
15713if test "${enable_error_execstack+set}" = set; then :
15714  enableval=$enable_error_execstack; case "${enableval}" in
15715  yes) ac_default_ld_error_execstack=1 ;;
15716  no)  ac_default_ld_error_execstack=0 ;;
15717esac
15718fi
15719
15720
15721ac_default_ld_warn_rwx_segments=unset
15722# Check whether --enable-warn-rwx-segments was given.
15723if test "${enable_warn_rwx_segments+set}" = set; then :
15724  enableval=$enable_warn_rwx_segments; case "${enableval}" in
15725  yes) ac_default_ld_warn_rwx_segments=1 ;;
15726  no)  ac_default_ld_warn_rwx_segments=0 ;;
15727esac
15728fi
15729
15730
15731ac_default_ld_error_rwx_segments=0
15732# Check whether --enable-error-rwx-segments was given.
15733if test "${enable_error_rwx_segments+set}" = set; then :
15734  enableval=$enable_error_rwx_segments; case "${enableval}" in
15735  yes) ac_default_ld_error_rwx_segments=1 ;;
15736  no)  ac_default_ld_error_rwx_segments=0 ;;
15737esac
15738fi
15739
15740
15741ac_default_ld_default_execstack=unset
15742# Check whether --enable-default-execstack was given.
15743if test "${enable_default_execstack+set}" = set; then :
15744  enableval=$enable_default_execstack; case "${enableval}" in
15745  yes) ac_default_ld_default_execstack=1 ;;
15746  no)  ac_default_ld_default_execstack=0 ;;
15747esac
15748fi
15749
15750
15751
15752# Decide if --error-handling-script should be supported.
15753ac_support_error_handling_script=unset
15754# Check whether --enable-error-handling-script was given.
15755if test "${enable_error_handling_script+set}" = set; then :
15756  enableval=$enable_error_handling_script; case "${enableval}" in
15757  yes) ac_support_error_handling_script=1 ;;
15758  no)  ac_support_error_handling_script=0 ;;
15759esac
15760fi
15761
15762
15763# Decide which "--hash-style" to use by default
15764# Provide a configure time option to override our default.
15765# Check whether --enable-default-hash-style was given.
15766if test "${enable_default_hash_style+set}" = set; then :
15767  enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15768  sysv | gnu | both) ;;
15769  *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15770esac
15771else
15772  case "${target}" in
15773  # Enable gnu hash only on GNU targets, but not mips
15774  mips*-*-*) enable_default_hash_style=sysv ;;
15775  *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15776  *) enable_default_hash_style=sysv ;;
15777esac
15778fi
15779
15780
15781case "${enable_default_hash_style}" in
15782  sysv | both) ac_default_emit_sysv_hash=1 ;;
15783  *) ac_default_emit_sysv_hash=0 ;;
15784esac
15785
15786case "${enable_default_hash_style}" in
15787  gnu | both) ac_default_emit_gnu_hash=1 ;;
15788  *) ac_default_emit_gnu_hash=0 ;;
15789esac
15790
15791# Check whether --enable-initfini-array was given.
15792if test "${enable_initfini_array+set}" = set; then :
15793  enableval=$enable_initfini_array; case "${enableval}" in
15794 yes|no) ;;
15795 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15796 esac
15797else
15798  enable_initfini_array=yes
15799fi
15800
15801
15802if test $enable_initfini_array = yes; then
15803
15804$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15805
15806fi
15807
15808 # Check whether --enable-libctf was given.
15809if test "${enable_libctf+set}" = set; then :
15810  enableval=$enable_libctf;
15811      case "$enableval" in
15812       yes|no) ;;
15813       *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15814      esac
15815
15816else
15817  enable_libctf=yes
15818fi
15819
15820
15821if test "${enable_libctf}" = yes; then
15822
15823$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15824
15825fi
15826 if test "${enable_libctf}" = yes; then
15827  ENABLE_LIBCTF_TRUE=
15828  ENABLE_LIBCTF_FALSE='#'
15829else
15830  ENABLE_LIBCTF_TRUE='#'
15831  ENABLE_LIBCTF_FALSE=
15832fi
15833
15834
15835
15836# Used to validate --package-metadata= input. Disabled by default.
15837# Check whether --enable-jansson was given.
15838if test "${enable_jansson+set}" = set; then :
15839  enableval=$enable_jansson; enable_jansson=$enableval
15840else
15841  enable_jansson="no"
15842fi
15843
15844
15845if test "x$enable_jansson" != "xno"; then :
15846
15847pkg_failed=no
15848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15849$as_echo_n "checking for jansson... " >&6; }
15850
15851if test -n "$JANSSON_CFLAGS"; then
15852    pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15853 elif test -n "$PKG_CONFIG"; then
15854    if test -n "$PKG_CONFIG" && \
15855    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15856  ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15857  ac_status=$?
15858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859  test $ac_status = 0; }; then
15860  pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15861		      test "x$?" != "x0" && pkg_failed=yes
15862else
15863  pkg_failed=yes
15864fi
15865 else
15866    pkg_failed=untried
15867fi
15868if test -n "$JANSSON_LIBS"; then
15869    pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15870 elif test -n "$PKG_CONFIG"; then
15871    if test -n "$PKG_CONFIG" && \
15872    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15873  ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15874  ac_status=$?
15875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15876  test $ac_status = 0; }; then
15877  pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15878		      test "x$?" != "x0" && pkg_failed=yes
15879else
15880  pkg_failed=yes
15881fi
15882 else
15883    pkg_failed=untried
15884fi
15885
15886if test $pkg_failed = no; then
15887  pkg_save_LDFLAGS="$LDFLAGS"
15888  LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890/* end confdefs.h.  */
15891
15892int
15893main ()
15894{
15895
15896  ;
15897  return 0;
15898}
15899_ACEOF
15900if ac_fn_c_try_link "$LINENO"; then :
15901
15902else
15903  pkg_failed=yes
15904fi
15905rm -f core conftest.err conftest.$ac_objext \
15906    conftest$ac_exeext conftest.$ac_ext
15907  LDFLAGS=$pkg_save_LDFLAGS
15908fi
15909
15910
15911
15912if test $pkg_failed = yes; then
15913        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15914$as_echo "no" >&6; }
15915
15916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15917        _pkg_short_errors_supported=yes
15918else
15919        _pkg_short_errors_supported=no
15920fi
15921        if test $_pkg_short_errors_supported = yes; then
15922	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15923        else
15924	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15925        fi
15926	# Put the nasty error message in config.log where it belongs
15927	echo "$JANSSON_PKG_ERRORS" >&5
15928
15929	as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15930elif test $pkg_failed = untried; then
15931        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15932$as_echo "no" >&6; }
15933	as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15934else
15935	JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15936	JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15938$as_echo "yes" >&6; }
15939
15940
15941$as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15942
15943
15944
15945
15946fi
15947
15948fi
15949
15950
15951# Set the 'development' global.
15952. $srcdir/../bfd/development.sh
15953
15954# Set acp_cpp_for_build variable
15955ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15956
15957# Default set of GCC warnings to enable.
15958GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15959GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15960
15961# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963/* end confdefs.h.  */
15964__GNUC__
15965_ACEOF
15966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15967  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15968
15969else
15970  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15971fi
15972rm -f conftest*
15973
15974
15975# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15976#cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977#/* end confdefs.h.  */
15978#__GNUC__
15979#_ACEOF
15980#if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15981#  $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15982#
15983#else
15984#  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985#/* end confdefs.h.  */
15986#__clang__
15987#_ACEOF
15988#if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15989#  $EGREP "^__clang__$" >/dev/null 2>&1; then :
15990#  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15991#fi
15992#rm -f conftest*
15993
15994
15995# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15996WARN_WRITE_STRINGS=""
15997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998/* end confdefs.h.  */
15999__GNUC__
16000_ACEOF
16001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16002  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16003
16004else
16005  WARN_WRITE_STRINGS="-Wwrite-strings"
16006fi
16007rm -f conftest*
16008
16009
16010# Verify CC_FOR_BUILD to be compatible with warning flags
16011
16012# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014/* end confdefs.h.  */
16015__GNUC__
16016_ACEOF
16017if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16018  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16019
16020else
16021  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16022fi
16023rm -f conftest*
16024
16025
16026# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16027#cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028#/* end confdefs.h.  */
16029#__GNUC__
16030#_ACEOF
16031#if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16032#  $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16033#
16034#else
16035#  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036#/* end confdefs.h.  */
16037#__clang__
16038#_ACEOF
16039#if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16040#  $EGREP "^__clang__$" >/dev/null 2>&1; then :
16041#  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16042#fi
16043#rm -f conftest*
16044
16045
16046# Check whether --enable-werror was given.
16047if test "${enable_werror+set}" = set; then :
16048  enableval=$enable_werror; case "${enableval}" in
16049     yes | y) ERROR_ON_WARNING="yes" ;;
16050     no | n)  ERROR_ON_WARNING="no" ;;
16051     *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16052   esac
16053fi
16054
16055
16056# Disable -Wformat by default when using gcc on mingw
16057case "${host}" in
16058  *-*-mingw32*)
16059    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16060      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
16061      GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
16062    fi
16063    ;;
16064  *) ;;
16065esac
16066
16067# Enable -Werror by default when using gcc.  Turn it off for releases.
16068if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16069    ERROR_ON_WARNING=yes
16070fi
16071
16072NO_WERROR=
16073if test "${ERROR_ON_WARNING}" = yes ; then
16074    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
16075    GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
16076    NO_WERROR="-Wno-error"
16077fi
16078
16079if test "${GCC}" = yes ; then
16080  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16081  WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
16082fi
16083
16084# Check whether --enable-build-warnings was given.
16085if test "${enable_build_warnings+set}" = set; then :
16086  enableval=$enable_build_warnings; case "${enableval}" in
16087  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16088        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
16089  no)	if test "${GCC}" = yes ; then
16090	  WARN_CFLAGS="-w"
16091      WARN_CFLAGS_FOR_BUILD="-w"
16092	fi;;
16093  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16094        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16095        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
16096  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16097        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16098        WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16099  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16100        WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16101esac
16102fi
16103
16104
16105if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16106  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16107fi
16108
16109
16110
16111
16112
16113
16114
16115
16116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16117$as_echo_n "checking for LC_MESSAGES... " >&6; }
16118if ${am_cv_val_LC_MESSAGES+:} false; then :
16119  $as_echo_n "(cached) " >&6
16120else
16121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122/* end confdefs.h.  */
16123#include <locale.h>
16124int
16125main ()
16126{
16127return LC_MESSAGES
16128  ;
16129  return 0;
16130}
16131_ACEOF
16132if ac_fn_c_try_link "$LINENO"; then :
16133  am_cv_val_LC_MESSAGES=yes
16134else
16135  am_cv_val_LC_MESSAGES=no
16136fi
16137rm -f core conftest.err conftest.$ac_objext \
16138    conftest$ac_exeext conftest.$ac_ext
16139fi
16140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16141$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16142  if test $am_cv_val_LC_MESSAGES = yes; then
16143
16144$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16145
16146  fi
16147
16148
16149ac_config_headers="$ac_config_headers config.h:config.in"
16150
16151
16152# PR 14072
16153
16154
16155if test -z "$target" ; then
16156    as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16157fi
16158if test -z "$host" ; then
16159    as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16160fi
16161
16162# host-specific stuff:
16163
16164ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16165
16166        MKINSTALLDIRS=
16167  if test -n "$ac_aux_dir"; then
16168    case "$ac_aux_dir" in
16169      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16170      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16171    esac
16172  fi
16173  if test -z "$MKINSTALLDIRS"; then
16174    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16175  fi
16176
16177
16178
16179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16180$as_echo_n "checking whether NLS is requested... " >&6; }
16181    # Check whether --enable-nls was given.
16182if test "${enable_nls+set}" = set; then :
16183  enableval=$enable_nls; USE_NLS=$enableval
16184else
16185  USE_NLS=yes
16186fi
16187
16188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16189$as_echo "$USE_NLS" >&6; }
16190
16191
16192
16193
16194
16195
16196# Prepare PATH_SEPARATOR.
16197# The user is always right.
16198if test "${PATH_SEPARATOR+set}" != set; then
16199  echo "#! /bin/sh" >conf$$.sh
16200  echo  "exit 0"   >>conf$$.sh
16201  chmod +x conf$$.sh
16202  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16203    PATH_SEPARATOR=';'
16204  else
16205    PATH_SEPARATOR=:
16206  fi
16207  rm -f conf$$.sh
16208fi
16209
16210# Find out how to test for executable files. Don't use a zero-byte file,
16211# as systems may use methods other than mode bits to determine executability.
16212cat >conf$$.file <<_ASEOF
16213#! /bin/sh
16214exit 0
16215_ASEOF
16216chmod +x conf$$.file
16217if test -x conf$$.file >/dev/null 2>&1; then
16218  ac_executable_p="test -x"
16219else
16220  ac_executable_p="test -f"
16221fi
16222rm -f conf$$.file
16223
16224# Extract the first word of "msgfmt", so it can be a program name with args.
16225set dummy msgfmt; ac_word=$2
16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16227$as_echo_n "checking for $ac_word... " >&6; }
16228if ${ac_cv_path_MSGFMT+:} false; then :
16229  $as_echo_n "(cached) " >&6
16230else
16231  case "$MSGFMT" in
16232  [\\/]* | ?:[\\/]*)
16233    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16234    ;;
16235  *)
16236    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16237    for ac_dir in $PATH; do
16238      IFS="$ac_save_IFS"
16239      test -z "$ac_dir" && ac_dir=.
16240      for ac_exec_ext in '' $ac_executable_extensions; do
16241        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16242          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16243     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16244            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16245            break 2
16246          fi
16247        fi
16248      done
16249    done
16250    IFS="$ac_save_IFS"
16251  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16252    ;;
16253esac
16254fi
16255MSGFMT="$ac_cv_path_MSGFMT"
16256if test "$MSGFMT" != ":"; then
16257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16258$as_echo "$MSGFMT" >&6; }
16259else
16260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16261$as_echo "no" >&6; }
16262fi
16263
16264  # Extract the first word of "gmsgfmt", so it can be a program name with args.
16265set dummy gmsgfmt; ac_word=$2
16266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16267$as_echo_n "checking for $ac_word... " >&6; }
16268if ${ac_cv_path_GMSGFMT+:} false; then :
16269  $as_echo_n "(cached) " >&6
16270else
16271  case $GMSGFMT in
16272  [\\/]* | ?:[\\/]*)
16273  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16274  ;;
16275  *)
16276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16277for as_dir in $PATH
16278do
16279  IFS=$as_save_IFS
16280  test -z "$as_dir" && as_dir=.
16281    for ac_exec_ext in '' $ac_executable_extensions; do
16282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16283    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16285    break 2
16286  fi
16287done
16288  done
16289IFS=$as_save_IFS
16290
16291  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16292  ;;
16293esac
16294fi
16295GMSGFMT=$ac_cv_path_GMSGFMT
16296if test -n "$GMSGFMT"; then
16297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16298$as_echo "$GMSGFMT" >&6; }
16299else
16300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301$as_echo "no" >&6; }
16302fi
16303
16304
16305
16306
16307# Prepare PATH_SEPARATOR.
16308# The user is always right.
16309if test "${PATH_SEPARATOR+set}" != set; then
16310  echo "#! /bin/sh" >conf$$.sh
16311  echo  "exit 0"   >>conf$$.sh
16312  chmod +x conf$$.sh
16313  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16314    PATH_SEPARATOR=';'
16315  else
16316    PATH_SEPARATOR=:
16317  fi
16318  rm -f conf$$.sh
16319fi
16320
16321# Find out how to test for executable files. Don't use a zero-byte file,
16322# as systems may use methods other than mode bits to determine executability.
16323cat >conf$$.file <<_ASEOF
16324#! /bin/sh
16325exit 0
16326_ASEOF
16327chmod +x conf$$.file
16328if test -x conf$$.file >/dev/null 2>&1; then
16329  ac_executable_p="test -x"
16330else
16331  ac_executable_p="test -f"
16332fi
16333rm -f conf$$.file
16334
16335# Extract the first word of "xgettext", so it can be a program name with args.
16336set dummy xgettext; ac_word=$2
16337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16338$as_echo_n "checking for $ac_word... " >&6; }
16339if ${ac_cv_path_XGETTEXT+:} false; then :
16340  $as_echo_n "(cached) " >&6
16341else
16342  case "$XGETTEXT" in
16343  [\\/]* | ?:[\\/]*)
16344    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16345    ;;
16346  *)
16347    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16348    for ac_dir in $PATH; do
16349      IFS="$ac_save_IFS"
16350      test -z "$ac_dir" && ac_dir=.
16351      for ac_exec_ext in '' $ac_executable_extensions; do
16352        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16353          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16354     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16355            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16356            break 2
16357          fi
16358        fi
16359      done
16360    done
16361    IFS="$ac_save_IFS"
16362  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16363    ;;
16364esac
16365fi
16366XGETTEXT="$ac_cv_path_XGETTEXT"
16367if test "$XGETTEXT" != ":"; then
16368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16369$as_echo "$XGETTEXT" >&6; }
16370else
16371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372$as_echo "no" >&6; }
16373fi
16374
16375    rm -f messages.po
16376
16377
16378# Prepare PATH_SEPARATOR.
16379# The user is always right.
16380if test "${PATH_SEPARATOR+set}" != set; then
16381  echo "#! /bin/sh" >conf$$.sh
16382  echo  "exit 0"   >>conf$$.sh
16383  chmod +x conf$$.sh
16384  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16385    PATH_SEPARATOR=';'
16386  else
16387    PATH_SEPARATOR=:
16388  fi
16389  rm -f conf$$.sh
16390fi
16391
16392# Find out how to test for executable files. Don't use a zero-byte file,
16393# as systems may use methods other than mode bits to determine executability.
16394cat >conf$$.file <<_ASEOF
16395#! /bin/sh
16396exit 0
16397_ASEOF
16398chmod +x conf$$.file
16399if test -x conf$$.file >/dev/null 2>&1; then
16400  ac_executable_p="test -x"
16401else
16402  ac_executable_p="test -f"
16403fi
16404rm -f conf$$.file
16405
16406# Extract the first word of "msgmerge", so it can be a program name with args.
16407set dummy msgmerge; ac_word=$2
16408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16409$as_echo_n "checking for $ac_word... " >&6; }
16410if ${ac_cv_path_MSGMERGE+:} false; then :
16411  $as_echo_n "(cached) " >&6
16412else
16413  case "$MSGMERGE" in
16414  [\\/]* | ?:[\\/]*)
16415    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16416    ;;
16417  *)
16418    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16419    for ac_dir in $PATH; do
16420      IFS="$ac_save_IFS"
16421      test -z "$ac_dir" && ac_dir=.
16422      for ac_exec_ext in '' $ac_executable_extensions; do
16423        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16424          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16425            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16426            break 2
16427          fi
16428        fi
16429      done
16430    done
16431    IFS="$ac_save_IFS"
16432  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16433    ;;
16434esac
16435fi
16436MSGMERGE="$ac_cv_path_MSGMERGE"
16437if test "$MSGMERGE" != ":"; then
16438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16439$as_echo "$MSGMERGE" >&6; }
16440else
16441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442$as_echo "no" >&6; }
16443fi
16444
16445
16446      if test "$GMSGFMT" != ":"; then
16447            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16448       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16449      : ;
16450    else
16451      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16452      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16453$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16454      GMSGFMT=":"
16455    fi
16456  fi
16457
16458      if test "$XGETTEXT" != ":"; then
16459            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16460       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16461      : ;
16462    else
16463      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16464$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16465      XGETTEXT=":"
16466    fi
16467        rm -f messages.po
16468  fi
16469
16470  ac_config_commands="$ac_config_commands default-1"
16471
16472
16473
16474      if test "X$prefix" = "XNONE"; then
16475    acl_final_prefix="$ac_default_prefix"
16476  else
16477    acl_final_prefix="$prefix"
16478  fi
16479  if test "X$exec_prefix" = "XNONE"; then
16480    acl_final_exec_prefix='${prefix}'
16481  else
16482    acl_final_exec_prefix="$exec_prefix"
16483  fi
16484  acl_save_prefix="$prefix"
16485  prefix="$acl_final_prefix"
16486  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16487  prefix="$acl_save_prefix"
16488
16489
16490# Check whether --with-gnu-ld was given.
16491if test "${with_gnu_ld+set}" = set; then :
16492  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16493else
16494  with_gnu_ld=no
16495fi
16496
16497# Prepare PATH_SEPARATOR.
16498# The user is always right.
16499if test "${PATH_SEPARATOR+set}" != set; then
16500  echo "#! /bin/sh" >conf$$.sh
16501  echo  "exit 0"   >>conf$$.sh
16502  chmod +x conf$$.sh
16503  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16504    PATH_SEPARATOR=';'
16505  else
16506    PATH_SEPARATOR=:
16507  fi
16508  rm -f conf$$.sh
16509fi
16510ac_prog=ld
16511if test "$GCC" = yes; then
16512  # Check if gcc -print-prog-name=ld gives a path.
16513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16514$as_echo_n "checking for ld used by GCC... " >&6; }
16515  case $host in
16516  *-*-mingw*)
16517    # gcc leaves a trailing carriage return which upsets mingw
16518    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16519  *)
16520    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16521  esac
16522  case $ac_prog in
16523    # Accept absolute paths.
16524    [\\/]* | [A-Za-z]:[\\/]*)
16525      re_direlt='/[^/][^/]*/\.\./'
16526      # Canonicalize the path of ld
16527      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16528      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16529	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16530      done
16531      test -z "$LD" && LD="$ac_prog"
16532      ;;
16533  "")
16534    # If it fails, then pretend we aren't using GCC.
16535    ac_prog=ld
16536    ;;
16537  *)
16538    # If it is relative, then search for the first ld in PATH.
16539    with_gnu_ld=unknown
16540    ;;
16541  esac
16542elif test "$with_gnu_ld" = yes; then
16543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16544$as_echo_n "checking for GNU ld... " >&6; }
16545else
16546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16547$as_echo_n "checking for non-GNU ld... " >&6; }
16548fi
16549if ${acl_cv_path_LD+:} false; then :
16550  $as_echo_n "(cached) " >&6
16551else
16552  if test -z "$LD"; then
16553  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16554  for ac_dir in $PATH; do
16555    test -z "$ac_dir" && ac_dir=.
16556    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16557      acl_cv_path_LD="$ac_dir/$ac_prog"
16558      # Check to see if the program is GNU ld.  I'd rather use --version,
16559      # but apparently some GNU ld's only accept -v.
16560      # Break only if it was the GNU/non-GNU ld that we prefer.
16561      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
16562	test "$with_gnu_ld" != no && break
16563      else
16564	test "$with_gnu_ld" != yes && break
16565      fi
16566    fi
16567  done
16568  IFS="$ac_save_ifs"
16569else
16570  acl_cv_path_LD="$LD" # Let the user override the test with a path.
16571fi
16572fi
16573
16574LD="$acl_cv_path_LD"
16575if test -n "$LD"; then
16576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16577$as_echo "$LD" >&6; }
16578else
16579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580$as_echo "no" >&6; }
16581fi
16582test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16584$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16585if ${acl_cv_prog_gnu_ld+:} false; then :
16586  $as_echo_n "(cached) " >&6
16587else
16588  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16589if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
16590  acl_cv_prog_gnu_ld=yes
16591else
16592  acl_cv_prog_gnu_ld=no
16593fi
16594fi
16595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16596$as_echo "$acl_cv_prog_gnu_ld" >&6; }
16597with_gnu_ld=$acl_cv_prog_gnu_ld
16598
16599
16600
16601                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16602$as_echo_n "checking for shared library run path origin... " >&6; }
16603if ${acl_cv_rpath+:} false; then :
16604  $as_echo_n "(cached) " >&6
16605else
16606
16607    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16608    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16609    . ./conftest.sh
16610    rm -f ./conftest.sh
16611    acl_cv_rpath=done
16612
16613fi
16614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16615$as_echo "$acl_cv_rpath" >&6; }
16616  wl="$acl_cv_wl"
16617  libext="$acl_cv_libext"
16618  shlibext="$acl_cv_shlibext"
16619  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16620  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16621  hardcode_direct="$acl_cv_hardcode_direct"
16622  hardcode_minus_L="$acl_cv_hardcode_minus_L"
16623    # Check whether --enable-rpath was given.
16624if test "${enable_rpath+set}" = set; then :
16625  enableval=$enable_rpath; :
16626else
16627  enable_rpath=yes
16628fi
16629
16630
16631
16632
16633
16634
16635
16636
16637    use_additional=yes
16638
16639  acl_save_prefix="$prefix"
16640  prefix="$acl_final_prefix"
16641  acl_save_exec_prefix="$exec_prefix"
16642  exec_prefix="$acl_final_exec_prefix"
16643
16644    eval additional_includedir=\"$includedir\"
16645    eval additional_libdir=\"$libdir\"
16646
16647  exec_prefix="$acl_save_exec_prefix"
16648  prefix="$acl_save_prefix"
16649
16650
16651# Check whether --with-libiconv-prefix was given.
16652if test "${with_libiconv_prefix+set}" = set; then :
16653  withval=$with_libiconv_prefix;
16654    if test "X$withval" = "Xno"; then
16655      use_additional=no
16656    else
16657      if test "X$withval" = "X"; then
16658
16659  acl_save_prefix="$prefix"
16660  prefix="$acl_final_prefix"
16661  acl_save_exec_prefix="$exec_prefix"
16662  exec_prefix="$acl_final_exec_prefix"
16663
16664          eval additional_includedir=\"$includedir\"
16665          eval additional_libdir=\"$libdir\"
16666
16667  exec_prefix="$acl_save_exec_prefix"
16668  prefix="$acl_save_prefix"
16669
16670      else
16671        additional_includedir="$withval/include"
16672        additional_libdir="$withval/lib"
16673      fi
16674    fi
16675
16676fi
16677
16678
16679# Check whether --with-libiconv-type was given.
16680if test "${with_libiconv_type+set}" = set; then :
16681  withval=$with_libiconv_type;  with_libiconv_type=$withval
16682else
16683   with_libiconv_type=auto
16684fi
16685
16686  lib_type=`eval echo \$with_libiconv_type`
16687
16688      LIBICONV=
16689  LTLIBICONV=
16690  INCICONV=
16691  rpathdirs=
16692  ltrpathdirs=
16693  names_already_handled=
16694  names_next_round='iconv '
16695  while test -n "$names_next_round"; do
16696    names_this_round="$names_next_round"
16697    names_next_round=
16698    for name in $names_this_round; do
16699      already_handled=
16700      for n in $names_already_handled; do
16701        if test "$n" = "$name"; then
16702          already_handled=yes
16703          break
16704        fi
16705      done
16706      if test -z "$already_handled"; then
16707        names_already_handled="$names_already_handled $name"
16708                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16709        eval value=\"\$HAVE_LIB$uppername\"
16710        if test -n "$value"; then
16711          if test "$value" = yes; then
16712            eval value=\"\$LIB$uppername\"
16713            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16714            eval value=\"\$LTLIB$uppername\"
16715            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16716          else
16717                                    :
16718          fi
16719        else
16720                              found_dir=
16721          found_la=
16722          found_so=
16723          found_a=
16724          if test $use_additional = yes; then
16725            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16726              found_dir="$additional_libdir"
16727              found_so="$additional_libdir/lib$name.$shlibext"
16728              if test -f "$additional_libdir/lib$name.la"; then
16729                found_la="$additional_libdir/lib$name.la"
16730              fi
16731            elif test x$lib_type != xshared; then
16732              if test -f "$additional_libdir/lib$name.$libext"; then
16733                found_dir="$additional_libdir"
16734                found_a="$additional_libdir/lib$name.$libext"
16735                if test -f "$additional_libdir/lib$name.la"; then
16736                  found_la="$additional_libdir/lib$name.la"
16737                fi
16738              fi
16739            fi
16740          fi
16741          if test "X$found_dir" = "X"; then
16742            for x in $LDFLAGS $LTLIBICONV; do
16743
16744  acl_save_prefix="$prefix"
16745  prefix="$acl_final_prefix"
16746  acl_save_exec_prefix="$exec_prefix"
16747  exec_prefix="$acl_final_exec_prefix"
16748  eval x=\"$x\"
16749  exec_prefix="$acl_save_exec_prefix"
16750  prefix="$acl_save_prefix"
16751
16752              case "$x" in
16753                -L*)
16754                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16755                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16756                    found_dir="$dir"
16757                    found_so="$dir/lib$name.$shlibext"
16758                    if test -f "$dir/lib$name.la"; then
16759                      found_la="$dir/lib$name.la"
16760                    fi
16761                  elif test x$lib_type != xshared; then
16762                    if test -f "$dir/lib$name.$libext"; then
16763                      found_dir="$dir"
16764                      found_a="$dir/lib$name.$libext"
16765                      if test -f "$dir/lib$name.la"; then
16766                        found_la="$dir/lib$name.la"
16767                      fi
16768                    fi
16769                  fi
16770                  ;;
16771              esac
16772              if test "X$found_dir" != "X"; then
16773                break
16774              fi
16775            done
16776          fi
16777          if test "X$found_dir" != "X"; then
16778                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16779            if test "X$found_so" != "X"; then
16780                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16781                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16782              else
16783                                                                                haveit=
16784                for x in $ltrpathdirs; do
16785                  if test "X$x" = "X$found_dir"; then
16786                    haveit=yes
16787                    break
16788                  fi
16789                done
16790                if test -z "$haveit"; then
16791                  ltrpathdirs="$ltrpathdirs $found_dir"
16792                fi
16793                                if test "$hardcode_direct" = yes; then
16794                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16795                else
16796                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16797                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16798                                                            haveit=
16799                    for x in $rpathdirs; do
16800                      if test "X$x" = "X$found_dir"; then
16801                        haveit=yes
16802                        break
16803                      fi
16804                    done
16805                    if test -z "$haveit"; then
16806                      rpathdirs="$rpathdirs $found_dir"
16807                    fi
16808                  else
16809                                                                                haveit=
16810                    for x in $LDFLAGS $LIBICONV; do
16811
16812  acl_save_prefix="$prefix"
16813  prefix="$acl_final_prefix"
16814  acl_save_exec_prefix="$exec_prefix"
16815  exec_prefix="$acl_final_exec_prefix"
16816  eval x=\"$x\"
16817  exec_prefix="$acl_save_exec_prefix"
16818  prefix="$acl_save_prefix"
16819
16820                      if test "X$x" = "X-L$found_dir"; then
16821                        haveit=yes
16822                        break
16823                      fi
16824                    done
16825                    if test -z "$haveit"; then
16826                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16827                    fi
16828                    if test "$hardcode_minus_L" != no; then
16829                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16830                    else
16831                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16832                    fi
16833                  fi
16834                fi
16835              fi
16836            else
16837              if test "X$found_a" != "X"; then
16838                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16839              else
16840                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16841              fi
16842            fi
16843                        additional_includedir=
16844            case "$found_dir" in
16845              */lib | */lib/)
16846                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16847                additional_includedir="$basedir/include"
16848                ;;
16849            esac
16850            if test "X$additional_includedir" != "X"; then
16851                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16852                haveit=
16853                if test "X$additional_includedir" = "X/usr/local/include"; then
16854                  if test -n "$GCC"; then
16855                    case $host_os in
16856                      linux*) haveit=yes;;
16857                    esac
16858                  fi
16859                fi
16860                if test -z "$haveit"; then
16861                  for x in $CPPFLAGS $INCICONV; do
16862
16863  acl_save_prefix="$prefix"
16864  prefix="$acl_final_prefix"
16865  acl_save_exec_prefix="$exec_prefix"
16866  exec_prefix="$acl_final_exec_prefix"
16867  eval x=\"$x\"
16868  exec_prefix="$acl_save_exec_prefix"
16869  prefix="$acl_save_prefix"
16870
16871                    if test "X$x" = "X-I$additional_includedir"; then
16872                      haveit=yes
16873                      break
16874                    fi
16875                  done
16876                  if test -z "$haveit"; then
16877                    if test -d "$additional_includedir"; then
16878                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16879                    fi
16880                  fi
16881                fi
16882              fi
16883            fi
16884                        if test -n "$found_la"; then
16885                                                        save_libdir="$libdir"
16886              case "$found_la" in
16887                */* | *\\*) . "$found_la" ;;
16888                *) . "./$found_la" ;;
16889              esac
16890              libdir="$save_libdir"
16891                            for dep in $dependency_libs; do
16892                case "$dep" in
16893                  -L*)
16894                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16895                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
16896                      haveit=
16897                      if test "X$additional_libdir" = "X/usr/local/lib"; then
16898                        if test -n "$GCC"; then
16899                          case $host_os in
16900                            linux*) haveit=yes;;
16901                          esac
16902                        fi
16903                      fi
16904                      if test -z "$haveit"; then
16905                        haveit=
16906                        for x in $LDFLAGS $LIBICONV; do
16907
16908  acl_save_prefix="$prefix"
16909  prefix="$acl_final_prefix"
16910  acl_save_exec_prefix="$exec_prefix"
16911  exec_prefix="$acl_final_exec_prefix"
16912  eval x=\"$x\"
16913  exec_prefix="$acl_save_exec_prefix"
16914  prefix="$acl_save_prefix"
16915
16916                          if test "X$x" = "X-L$additional_libdir"; then
16917                            haveit=yes
16918                            break
16919                          fi
16920                        done
16921                        if test -z "$haveit"; then
16922                          if test -d "$additional_libdir"; then
16923                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16924                          fi
16925                        fi
16926                        haveit=
16927                        for x in $LDFLAGS $LTLIBICONV; do
16928
16929  acl_save_prefix="$prefix"
16930  prefix="$acl_final_prefix"
16931  acl_save_exec_prefix="$exec_prefix"
16932  exec_prefix="$acl_final_exec_prefix"
16933  eval x=\"$x\"
16934  exec_prefix="$acl_save_exec_prefix"
16935  prefix="$acl_save_prefix"
16936
16937                          if test "X$x" = "X-L$additional_libdir"; then
16938                            haveit=yes
16939                            break
16940                          fi
16941                        done
16942                        if test -z "$haveit"; then
16943                          if test -d "$additional_libdir"; then
16944                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16945                          fi
16946                        fi
16947                      fi
16948                    fi
16949                    ;;
16950                  -R*)
16951                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16952                    if test "$enable_rpath" != no; then
16953                                                                  haveit=
16954                      for x in $rpathdirs; do
16955                        if test "X$x" = "X$dir"; then
16956                          haveit=yes
16957                          break
16958                        fi
16959                      done
16960                      if test -z "$haveit"; then
16961                        rpathdirs="$rpathdirs $dir"
16962                      fi
16963                                                                  haveit=
16964                      for x in $ltrpathdirs; do
16965                        if test "X$x" = "X$dir"; then
16966                          haveit=yes
16967                          break
16968                        fi
16969                      done
16970                      if test -z "$haveit"; then
16971                        ltrpathdirs="$ltrpathdirs $dir"
16972                      fi
16973                    fi
16974                    ;;
16975                  -l*)
16976                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16977                    ;;
16978                  *.la)
16979                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16980                    ;;
16981                  *)
16982                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16983                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16984                    ;;
16985                esac
16986              done
16987            fi
16988          else
16989                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
16990              LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16991              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16992            else
16993              LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
16994              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
16995            fi
16996          fi
16997        fi
16998      fi
16999    done
17000  done
17001  if test "X$rpathdirs" != "X"; then
17002    if test -n "$hardcode_libdir_separator"; then
17003                        alldirs=
17004      for found_dir in $rpathdirs; do
17005        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17006      done
17007            acl_save_libdir="$libdir"
17008      libdir="$alldirs"
17009      eval flag=\"$hardcode_libdir_flag_spec\"
17010      libdir="$acl_save_libdir"
17011      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17012    else
17013            for found_dir in $rpathdirs; do
17014        acl_save_libdir="$libdir"
17015        libdir="$found_dir"
17016        eval flag=\"$hardcode_libdir_flag_spec\"
17017        libdir="$acl_save_libdir"
17018        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17019      done
17020    fi
17021  fi
17022  if test "X$ltrpathdirs" != "X"; then
17023            for found_dir in $ltrpathdirs; do
17024      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17025    done
17026  fi
17027
17028
17029
17030
17031
17032if test -f ../gettext/uninstalled-config.sh; then
17033  relative_builddir='$(top_builddir)/../gettext'
17034  .  ../gettext/uninstalled-config.sh
17035else
17036  # The sister gettext directory doesn't exist and won't collect information on
17037  # using gettext for us.  Call a bundled AM_GNU_GETTEXT.
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17062$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17063if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17064  $as_echo_n "(cached) " >&6
17065else
17066  gt_save_LIBS="$LIBS"
17067     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17068     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069/* end confdefs.h.  */
17070#include <CoreFoundation/CFPreferences.h>
17071int
17072main ()
17073{
17074CFPreferencesCopyAppValue(NULL, NULL)
17075  ;
17076  return 0;
17077}
17078_ACEOF
17079if ac_fn_c_try_link "$LINENO"; then :
17080  gt_cv_func_CFPreferencesCopyAppValue=yes
17081else
17082  gt_cv_func_CFPreferencesCopyAppValue=no
17083fi
17084rm -f core conftest.err conftest.$ac_objext \
17085    conftest$ac_exeext conftest.$ac_ext
17086     LIBS="$gt_save_LIBS"
17087fi
17088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17089$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17090  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17091
17092$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17093
17094  fi
17095                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17096$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17097if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
17098  $as_echo_n "(cached) " >&6
17099else
17100  gt_save_LIBS="$LIBS"
17101     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17102     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103/* end confdefs.h.  */
17104#include <CoreFoundation/CFLocale.h>
17105int
17106main ()
17107{
17108CFLocaleCopyPreferredLanguages();
17109  ;
17110  return 0;
17111}
17112_ACEOF
17113if ac_fn_c_try_link "$LINENO"; then :
17114  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17115else
17116  gt_cv_func_CFLocaleCopyPreferredLanguages=no
17117fi
17118rm -f core conftest.err conftest.$ac_objext \
17119    conftest$ac_exeext conftest.$ac_ext
17120     LIBS="$gt_save_LIBS"
17121fi
17122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17123$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17124  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17125
17126$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17127
17128  fi
17129  INTL_MACOSX_LIBS=
17130  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17131     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17132                    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17133  fi
17134
17135
17136
17137
17138
17139
17140  LIBINTL=
17141  LTLIBINTL=
17142  POSUB=
17143
17144    case " $gt_needs " in
17145    *" need-formatstring-macros "*) gt_api_version=3 ;;
17146    *" need-ngettext "*) gt_api_version=2 ;;
17147    *) gt_api_version=1 ;;
17148  esac
17149  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17150  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17151
17152    if test "$USE_NLS" = "yes"; then
17153    gt_use_preinstalled_gnugettext=no
17154
17155
17156        if test $gt_api_version -ge 3; then
17157          gt_revision_test_code='
17158#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17159#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17160#endif
17161typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17162'
17163        else
17164          gt_revision_test_code=
17165        fi
17166        if test $gt_api_version -ge 2; then
17167          gt_expression_test_code=' + * ngettext ("", "", 0)'
17168        else
17169          gt_expression_test_code=
17170        fi
17171
17172        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17173$as_echo_n "checking for GNU gettext in libc... " >&6; }
17174if eval \${$gt_func_gnugettext_libc+:} false; then :
17175  $as_echo_n "(cached) " >&6
17176else
17177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178/* end confdefs.h.  */
17179
17180#include <libintl.h>
17181#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17182extern int _nl_msg_cat_cntr;
17183extern int *_nl_domain_bindings;
17184#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17185#else
17186#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17187#endif
17188$gt_revision_test_code
17189
17190int
17191main ()
17192{
17193
17194bindtextdomain ("", "");
17195return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17196
17197  ;
17198  return 0;
17199}
17200_ACEOF
17201if ac_fn_c_try_link "$LINENO"; then :
17202  eval "$gt_func_gnugettext_libc=yes"
17203else
17204  eval "$gt_func_gnugettext_libc=no"
17205fi
17206rm -f core conftest.err conftest.$ac_objext \
17207    conftest$ac_exeext conftest.$ac_ext
17208fi
17209eval ac_res=\$$gt_func_gnugettext_libc
17210	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17211$as_echo "$ac_res" >&6; }
17212
17213        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17214
17215
17216
17217
17218
17219          am_save_CPPFLAGS="$CPPFLAGS"
17220
17221  for element in $INCICONV; do
17222    haveit=
17223    for x in $CPPFLAGS; do
17224
17225  acl_save_prefix="$prefix"
17226  prefix="$acl_final_prefix"
17227  acl_save_exec_prefix="$exec_prefix"
17228  exec_prefix="$acl_final_exec_prefix"
17229  eval x=\"$x\"
17230  exec_prefix="$acl_save_exec_prefix"
17231  prefix="$acl_save_prefix"
17232
17233      if test "X$x" = "X$element"; then
17234        haveit=yes
17235        break
17236      fi
17237    done
17238    if test -z "$haveit"; then
17239      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17240    fi
17241  done
17242
17243
17244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17245$as_echo_n "checking for iconv... " >&6; }
17246if ${am_cv_func_iconv+:} false; then :
17247  $as_echo_n "(cached) " >&6
17248else
17249
17250    am_cv_func_iconv="no, consider installing GNU libiconv"
17251    am_cv_lib_iconv=no
17252    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253/* end confdefs.h.  */
17254
17255#include <stdlib.h>
17256#include <iconv.h>
17257
17258int
17259main ()
17260{
17261iconv_t cd = iconv_open("","");
17262           iconv(cd,NULL,NULL,NULL,NULL);
17263           iconv_close(cd);
17264  ;
17265  return 0;
17266}
17267_ACEOF
17268if ac_fn_c_try_link "$LINENO"; then :
17269  am_cv_func_iconv=yes
17270fi
17271rm -f core conftest.err conftest.$ac_objext \
17272    conftest$ac_exeext conftest.$ac_ext
17273    if test "$am_cv_func_iconv" != yes; then
17274      am_save_LIBS="$LIBS"
17275      LIBS="$LIBS $LIBICONV"
17276      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277/* end confdefs.h.  */
17278
17279#include <stdlib.h>
17280#include <iconv.h>
17281
17282int
17283main ()
17284{
17285iconv_t cd = iconv_open("","");
17286             iconv(cd,NULL,NULL,NULL,NULL);
17287             iconv_close(cd);
17288  ;
17289  return 0;
17290}
17291_ACEOF
17292if ac_fn_c_try_link "$LINENO"; then :
17293  am_cv_lib_iconv=yes
17294        am_cv_func_iconv=yes
17295fi
17296rm -f core conftest.err conftest.$ac_objext \
17297    conftest$ac_exeext conftest.$ac_ext
17298      LIBS="$am_save_LIBS"
17299    fi
17300
17301fi
17302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17303$as_echo "$am_cv_func_iconv" >&6; }
17304  if test "$am_cv_func_iconv" = yes; then
17305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17306$as_echo_n "checking for working iconv... " >&6; }
17307if ${am_cv_func_iconv_works+:} false; then :
17308  $as_echo_n "(cached) " >&6
17309else
17310
17311                  am_save_LIBS="$LIBS"
17312      if test $am_cv_lib_iconv = yes; then
17313        LIBS="$LIBS $LIBICONV"
17314      fi
17315      am_cv_func_iconv_works=no
17316      for ac_iconv_const in '' 'const'; do
17317        if test "$cross_compiling" = yes; then :
17318  case "$host_os" in
17319             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17320             *)            am_cv_func_iconv_works="guessing yes" ;;
17321           esac
17322else
17323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324/* end confdefs.h.  */
17325
17326#include <iconv.h>
17327#include <string.h>
17328
17329#ifndef ICONV_CONST
17330# define ICONV_CONST $ac_iconv_const
17331#endif
17332
17333int
17334main ()
17335{
17336int result = 0;
17337  /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17338     successful returns.  This is even documented in
17339     <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17340  {
17341    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17342    if (cd_utf8_to_88591 != (iconv_t)(-1))
17343      {
17344        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17345        char buf[10];
17346        ICONV_CONST char *inptr = input;
17347        size_t inbytesleft = strlen (input);
17348        char *outptr = buf;
17349        size_t outbytesleft = sizeof (buf);
17350        size_t res = iconv (cd_utf8_to_88591,
17351                            &inptr, &inbytesleft,
17352                            &outptr, &outbytesleft);
17353        if (res == 0)
17354          result |= 1;
17355        iconv_close (cd_utf8_to_88591);
17356      }
17357  }
17358  /* Test against Solaris 10 bug: Failures are not distinguishable from
17359     successful returns.  */
17360  {
17361    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17362    if (cd_ascii_to_88591 != (iconv_t)(-1))
17363      {
17364        static ICONV_CONST char input[] = "\263";
17365        char buf[10];
17366        ICONV_CONST char *inptr = input;
17367        size_t inbytesleft = strlen (input);
17368        char *outptr = buf;
17369        size_t outbytesleft = sizeof (buf);
17370        size_t res = iconv (cd_ascii_to_88591,
17371                            &inptr, &inbytesleft,
17372                            &outptr, &outbytesleft);
17373        if (res == 0)
17374          result |= 2;
17375        iconv_close (cd_ascii_to_88591);
17376      }
17377  }
17378  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
17379  {
17380    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17381    if (cd_88591_to_utf8 != (iconv_t)(-1))
17382      {
17383        static ICONV_CONST char input[] = "\304";
17384        static char buf[2] = { (char)0xDE, (char)0xAD };
17385        ICONV_CONST char *inptr = input;
17386        size_t inbytesleft = 1;
17387        char *outptr = buf;
17388        size_t outbytesleft = 1;
17389        size_t res = iconv (cd_88591_to_utf8,
17390                            &inptr, &inbytesleft,
17391                            &outptr, &outbytesleft);
17392        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17393          result |= 4;
17394        iconv_close (cd_88591_to_utf8);
17395      }
17396  }
17397#if 0 /* This bug could be worked around by the caller.  */
17398  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17399  {
17400    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17401    if (cd_88591_to_utf8 != (iconv_t)(-1))
17402      {
17403        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17404        char buf[50];
17405        ICONV_CONST char *inptr = input;
17406        size_t inbytesleft = strlen (input);
17407        char *outptr = buf;
17408        size_t outbytesleft = sizeof (buf);
17409        size_t res = iconv (cd_88591_to_utf8,
17410                            &inptr, &inbytesleft,
17411                            &outptr, &outbytesleft);
17412        if ((int)res > 0)
17413          result |= 8;
17414        iconv_close (cd_88591_to_utf8);
17415      }
17416  }
17417#endif
17418  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17419     provided.  */
17420  {
17421    /* Try standardized names.  */
17422    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17423    /* Try IRIX, OSF/1 names.  */
17424    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17425    /* Try AIX names.  */
17426    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17427    /* Try HP-UX names.  */
17428    iconv_t cd4 = iconv_open ("utf8", "eucJP");
17429    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17430        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17431      result |= 16;
17432    if (cd1 != (iconv_t)(-1))
17433      iconv_close (cd1);
17434    if (cd2 != (iconv_t)(-1))
17435      iconv_close (cd2);
17436    if (cd3 != (iconv_t)(-1))
17437      iconv_close (cd3);
17438    if (cd4 != (iconv_t)(-1))
17439      iconv_close (cd4);
17440  }
17441  return result;
17442
17443  ;
17444  return 0;
17445}
17446_ACEOF
17447if ac_fn_c_try_run "$LINENO"; then :
17448  am_cv_func_iconv_works=yes
17449fi
17450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17451  conftest.$ac_objext conftest.beam conftest.$ac_ext
17452fi
17453
17454        test "$am_cv_func_iconv_works" = no || break
17455      done
17456      LIBS="$am_save_LIBS"
17457
17458fi
17459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17460$as_echo "$am_cv_func_iconv_works" >&6; }
17461    case "$am_cv_func_iconv_works" in
17462      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17463      *)   am_func_iconv=yes ;;
17464    esac
17465  else
17466    am_func_iconv=no am_cv_lib_iconv=no
17467  fi
17468  if test "$am_func_iconv" = yes; then
17469
17470$as_echo "#define HAVE_ICONV 1" >>confdefs.h
17471
17472  fi
17473  if test "$am_cv_lib_iconv" = yes; then
17474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17475$as_echo_n "checking how to link with libiconv... " >&6; }
17476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17477$as_echo "$LIBICONV" >&6; }
17478  else
17479            CPPFLAGS="$am_save_CPPFLAGS"
17480    LIBICONV=
17481    LTLIBICONV=
17482  fi
17483
17484
17485
17486
17487
17488
17489    use_additional=yes
17490
17491  acl_save_prefix="$prefix"
17492  prefix="$acl_final_prefix"
17493  acl_save_exec_prefix="$exec_prefix"
17494  exec_prefix="$acl_final_exec_prefix"
17495
17496    eval additional_includedir=\"$includedir\"
17497    eval additional_libdir=\"$libdir\"
17498
17499  exec_prefix="$acl_save_exec_prefix"
17500  prefix="$acl_save_prefix"
17501
17502
17503# Check whether --with-libintl-prefix was given.
17504if test "${with_libintl_prefix+set}" = set; then :
17505  withval=$with_libintl_prefix;
17506    if test "X$withval" = "Xno"; then
17507      use_additional=no
17508    else
17509      if test "X$withval" = "X"; then
17510
17511  acl_save_prefix="$prefix"
17512  prefix="$acl_final_prefix"
17513  acl_save_exec_prefix="$exec_prefix"
17514  exec_prefix="$acl_final_exec_prefix"
17515
17516          eval additional_includedir=\"$includedir\"
17517          eval additional_libdir=\"$libdir\"
17518
17519  exec_prefix="$acl_save_exec_prefix"
17520  prefix="$acl_save_prefix"
17521
17522      else
17523        additional_includedir="$withval/include"
17524        additional_libdir="$withval/lib"
17525      fi
17526    fi
17527
17528fi
17529
17530
17531# Check whether --with-libintl-type was given.
17532if test "${with_libintl_type+set}" = set; then :
17533  withval=$with_libintl_type;  with_libintl_type=$withval
17534else
17535   with_libintl_type=auto
17536fi
17537
17538  lib_type=`eval echo \$with_libintl_type`
17539
17540      LIBINTL=
17541  LTLIBINTL=
17542  INCINTL=
17543  rpathdirs=
17544  ltrpathdirs=
17545  names_already_handled=
17546  names_next_round='intl '
17547  while test -n "$names_next_round"; do
17548    names_this_round="$names_next_round"
17549    names_next_round=
17550    for name in $names_this_round; do
17551      already_handled=
17552      for n in $names_already_handled; do
17553        if test "$n" = "$name"; then
17554          already_handled=yes
17555          break
17556        fi
17557      done
17558      if test -z "$already_handled"; then
17559        names_already_handled="$names_already_handled $name"
17560                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17561        eval value=\"\$HAVE_LIB$uppername\"
17562        if test -n "$value"; then
17563          if test "$value" = yes; then
17564            eval value=\"\$LIB$uppername\"
17565            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17566            eval value=\"\$LTLIB$uppername\"
17567            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17568          else
17569                                    :
17570          fi
17571        else
17572                              found_dir=
17573          found_la=
17574          found_so=
17575          found_a=
17576          if test $use_additional = yes; then
17577            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17578              found_dir="$additional_libdir"
17579              found_so="$additional_libdir/lib$name.$shlibext"
17580              if test -f "$additional_libdir/lib$name.la"; then
17581                found_la="$additional_libdir/lib$name.la"
17582              fi
17583            elif test x$lib_type != xshared; then
17584              if test -f "$additional_libdir/lib$name.$libext"; then
17585                found_dir="$additional_libdir"
17586                found_a="$additional_libdir/lib$name.$libext"
17587                if test -f "$additional_libdir/lib$name.la"; then
17588                  found_la="$additional_libdir/lib$name.la"
17589                fi
17590              fi
17591            fi
17592          fi
17593          if test "X$found_dir" = "X"; then
17594            for x in $LDFLAGS $LTLIBINTL; do
17595
17596  acl_save_prefix="$prefix"
17597  prefix="$acl_final_prefix"
17598  acl_save_exec_prefix="$exec_prefix"
17599  exec_prefix="$acl_final_exec_prefix"
17600  eval x=\"$x\"
17601  exec_prefix="$acl_save_exec_prefix"
17602  prefix="$acl_save_prefix"
17603
17604              case "$x" in
17605                -L*)
17606                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17607                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17608                    found_dir="$dir"
17609                    found_so="$dir/lib$name.$shlibext"
17610                    if test -f "$dir/lib$name.la"; then
17611                      found_la="$dir/lib$name.la"
17612                    fi
17613                  elif test x$lib_type != xshared; then
17614                    if test -f "$dir/lib$name.$libext"; then
17615                      found_dir="$dir"
17616                      found_a="$dir/lib$name.$libext"
17617                      if test -f "$dir/lib$name.la"; then
17618                        found_la="$dir/lib$name.la"
17619                      fi
17620                    fi
17621                  fi
17622                  ;;
17623              esac
17624              if test "X$found_dir" != "X"; then
17625                break
17626              fi
17627            done
17628          fi
17629          if test "X$found_dir" != "X"; then
17630                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17631            if test "X$found_so" != "X"; then
17632                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17633                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17634              else
17635                                                                                haveit=
17636                for x in $ltrpathdirs; do
17637                  if test "X$x" = "X$found_dir"; then
17638                    haveit=yes
17639                    break
17640                  fi
17641                done
17642                if test -z "$haveit"; then
17643                  ltrpathdirs="$ltrpathdirs $found_dir"
17644                fi
17645                                if test "$hardcode_direct" = yes; then
17646                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17647                else
17648                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17649                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17650                                                            haveit=
17651                    for x in $rpathdirs; do
17652                      if test "X$x" = "X$found_dir"; then
17653                        haveit=yes
17654                        break
17655                      fi
17656                    done
17657                    if test -z "$haveit"; then
17658                      rpathdirs="$rpathdirs $found_dir"
17659                    fi
17660                  else
17661                                                                                haveit=
17662                    for x in $LDFLAGS $LIBINTL; do
17663
17664  acl_save_prefix="$prefix"
17665  prefix="$acl_final_prefix"
17666  acl_save_exec_prefix="$exec_prefix"
17667  exec_prefix="$acl_final_exec_prefix"
17668  eval x=\"$x\"
17669  exec_prefix="$acl_save_exec_prefix"
17670  prefix="$acl_save_prefix"
17671
17672                      if test "X$x" = "X-L$found_dir"; then
17673                        haveit=yes
17674                        break
17675                      fi
17676                    done
17677                    if test -z "$haveit"; then
17678                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17679                    fi
17680                    if test "$hardcode_minus_L" != no; then
17681                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17682                    else
17683                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17684                    fi
17685                  fi
17686                fi
17687              fi
17688            else
17689              if test "X$found_a" != "X"; then
17690                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17691              else
17692                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17693              fi
17694            fi
17695                        additional_includedir=
17696            case "$found_dir" in
17697              */lib | */lib/)
17698                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17699                additional_includedir="$basedir/include"
17700                ;;
17701            esac
17702            if test "X$additional_includedir" != "X"; then
17703                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17704                haveit=
17705                if test "X$additional_includedir" = "X/usr/local/include"; then
17706                  if test -n "$GCC"; then
17707                    case $host_os in
17708                      linux*) haveit=yes;;
17709                    esac
17710                  fi
17711                fi
17712                if test -z "$haveit"; then
17713                  for x in $CPPFLAGS $INCINTL; do
17714
17715  acl_save_prefix="$prefix"
17716  prefix="$acl_final_prefix"
17717  acl_save_exec_prefix="$exec_prefix"
17718  exec_prefix="$acl_final_exec_prefix"
17719  eval x=\"$x\"
17720  exec_prefix="$acl_save_exec_prefix"
17721  prefix="$acl_save_prefix"
17722
17723                    if test "X$x" = "X-I$additional_includedir"; then
17724                      haveit=yes
17725                      break
17726                    fi
17727                  done
17728                  if test -z "$haveit"; then
17729                    if test -d "$additional_includedir"; then
17730                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17731                    fi
17732                  fi
17733                fi
17734              fi
17735            fi
17736                        if test -n "$found_la"; then
17737                                                        save_libdir="$libdir"
17738              case "$found_la" in
17739                */* | *\\*) . "$found_la" ;;
17740                *) . "./$found_la" ;;
17741              esac
17742              libdir="$save_libdir"
17743                            for dep in $dependency_libs; do
17744                case "$dep" in
17745                  -L*)
17746                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17747                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
17748                      haveit=
17749                      if test "X$additional_libdir" = "X/usr/local/lib"; then
17750                        if test -n "$GCC"; then
17751                          case $host_os in
17752                            linux*) haveit=yes;;
17753                          esac
17754                        fi
17755                      fi
17756                      if test -z "$haveit"; then
17757                        haveit=
17758                        for x in $LDFLAGS $LIBINTL; do
17759
17760  acl_save_prefix="$prefix"
17761  prefix="$acl_final_prefix"
17762  acl_save_exec_prefix="$exec_prefix"
17763  exec_prefix="$acl_final_exec_prefix"
17764  eval x=\"$x\"
17765  exec_prefix="$acl_save_exec_prefix"
17766  prefix="$acl_save_prefix"
17767
17768                          if test "X$x" = "X-L$additional_libdir"; then
17769                            haveit=yes
17770                            break
17771                          fi
17772                        done
17773                        if test -z "$haveit"; then
17774                          if test -d "$additional_libdir"; then
17775                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17776                          fi
17777                        fi
17778                        haveit=
17779                        for x in $LDFLAGS $LTLIBINTL; do
17780
17781  acl_save_prefix="$prefix"
17782  prefix="$acl_final_prefix"
17783  acl_save_exec_prefix="$exec_prefix"
17784  exec_prefix="$acl_final_exec_prefix"
17785  eval x=\"$x\"
17786  exec_prefix="$acl_save_exec_prefix"
17787  prefix="$acl_save_prefix"
17788
17789                          if test "X$x" = "X-L$additional_libdir"; then
17790                            haveit=yes
17791                            break
17792                          fi
17793                        done
17794                        if test -z "$haveit"; then
17795                          if test -d "$additional_libdir"; then
17796                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17797                          fi
17798                        fi
17799                      fi
17800                    fi
17801                    ;;
17802                  -R*)
17803                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17804                    if test "$enable_rpath" != no; then
17805                                                                  haveit=
17806                      for x in $rpathdirs; do
17807                        if test "X$x" = "X$dir"; then
17808                          haveit=yes
17809                          break
17810                        fi
17811                      done
17812                      if test -z "$haveit"; then
17813                        rpathdirs="$rpathdirs $dir"
17814                      fi
17815                                                                  haveit=
17816                      for x in $ltrpathdirs; do
17817                        if test "X$x" = "X$dir"; then
17818                          haveit=yes
17819                          break
17820                        fi
17821                      done
17822                      if test -z "$haveit"; then
17823                        ltrpathdirs="$ltrpathdirs $dir"
17824                      fi
17825                    fi
17826                    ;;
17827                  -l*)
17828                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17829                    ;;
17830                  *.la)
17831                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17832                    ;;
17833                  *)
17834                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17835                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17836                    ;;
17837                esac
17838              done
17839            fi
17840          else
17841                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17842              LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17843              LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17844            else
17845              LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
17846              LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
17847            fi
17848          fi
17849        fi
17850      fi
17851    done
17852  done
17853  if test "X$rpathdirs" != "X"; then
17854    if test -n "$hardcode_libdir_separator"; then
17855                        alldirs=
17856      for found_dir in $rpathdirs; do
17857        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17858      done
17859            acl_save_libdir="$libdir"
17860      libdir="$alldirs"
17861      eval flag=\"$hardcode_libdir_flag_spec\"
17862      libdir="$acl_save_libdir"
17863      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17864    else
17865            for found_dir in $rpathdirs; do
17866        acl_save_libdir="$libdir"
17867        libdir="$found_dir"
17868        eval flag=\"$hardcode_libdir_flag_spec\"
17869        libdir="$acl_save_libdir"
17870        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17871      done
17872    fi
17873  fi
17874  if test "X$ltrpathdirs" != "X"; then
17875            for found_dir in $ltrpathdirs; do
17876      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17877    done
17878  fi
17879
17880          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17881$as_echo_n "checking for GNU gettext in libintl... " >&6; }
17882if eval \${$gt_func_gnugettext_libintl+:} false; then :
17883  $as_echo_n "(cached) " >&6
17884else
17885  gt_save_CPPFLAGS="$CPPFLAGS"
17886            CPPFLAGS="$CPPFLAGS $INCINTL"
17887            gt_save_LIBS="$LIBS"
17888            LIBS="$LIBS $LIBINTL"
17889                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890/* end confdefs.h.  */
17891
17892#include <libintl.h>
17893#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17894extern int _nl_msg_cat_cntr;
17895extern
17896#ifdef __cplusplus
17897"C"
17898#endif
17899const char *_nl_expand_alias (const char *);
17900#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17901#else
17902#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17903#endif
17904$gt_revision_test_code
17905
17906int
17907main ()
17908{
17909
17910bindtextdomain ("", "");
17911return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17912
17913  ;
17914  return 0;
17915}
17916_ACEOF
17917if ac_fn_c_try_link "$LINENO"; then :
17918  eval "$gt_func_gnugettext_libintl=yes"
17919else
17920  eval "$gt_func_gnugettext_libintl=no"
17921fi
17922rm -f core conftest.err conftest.$ac_objext \
17923    conftest$ac_exeext conftest.$ac_ext
17924                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17925              LIBS="$LIBS $LIBICONV"
17926              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927/* end confdefs.h.  */
17928
17929#include <libintl.h>
17930#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17931extern int _nl_msg_cat_cntr;
17932extern
17933#ifdef __cplusplus
17934"C"
17935#endif
17936const char *_nl_expand_alias (const char *);
17937#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17938#else
17939#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17940#endif
17941$gt_revision_test_code
17942
17943int
17944main ()
17945{
17946
17947bindtextdomain ("", "");
17948return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17949
17950  ;
17951  return 0;
17952}
17953_ACEOF
17954if ac_fn_c_try_link "$LINENO"; then :
17955  LIBINTL="$LIBINTL $LIBICONV"
17956                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17957                 eval "$gt_func_gnugettext_libintl=yes"
17958
17959fi
17960rm -f core conftest.err conftest.$ac_objext \
17961    conftest$ac_exeext conftest.$ac_ext
17962            fi
17963            CPPFLAGS="$gt_save_CPPFLAGS"
17964            LIBS="$gt_save_LIBS"
17965fi
17966eval ac_res=\$$gt_func_gnugettext_libintl
17967	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17968$as_echo "$ac_res" >&6; }
17969        fi
17970
17971                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17972           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17973                && test "$PACKAGE" != gettext-runtime \
17974                && test "$PACKAGE" != gettext-tools; }; then
17975          gt_use_preinstalled_gnugettext=yes
17976        else
17977                    LIBINTL=
17978          LTLIBINTL=
17979          INCINTL=
17980        fi
17981
17982
17983
17984    if test -n "$INTL_MACOSX_LIBS"; then
17985      if test "$gt_use_preinstalled_gnugettext" = "yes" \
17986         || test "$nls_cv_use_gnu_gettext" = "yes"; then
17987                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17988        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17989      fi
17990    fi
17991
17992    if test "$gt_use_preinstalled_gnugettext" = "yes" \
17993       || test "$nls_cv_use_gnu_gettext" = "yes"; then
17994
17995$as_echo "#define ENABLE_NLS 1" >>confdefs.h
17996
17997    else
17998      USE_NLS=no
17999    fi
18000  fi
18001
18002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18003$as_echo_n "checking whether to use NLS... " >&6; }
18004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18005$as_echo "$USE_NLS" >&6; }
18006  if test "$USE_NLS" = "yes"; then
18007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18008$as_echo_n "checking where the gettext function comes from... " >&6; }
18009    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18010      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18011        gt_source="external libintl"
18012      else
18013        gt_source="libc"
18014      fi
18015    else
18016      gt_source="included intl directory"
18017    fi
18018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18019$as_echo "$gt_source" >&6; }
18020  fi
18021
18022  if test "$USE_NLS" = "yes"; then
18023
18024    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18025      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18026        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18027$as_echo_n "checking how to link with libintl... " >&6; }
18028        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18029$as_echo "$LIBINTL" >&6; }
18030
18031  for element in $INCINTL; do
18032    haveit=
18033    for x in $CPPFLAGS; do
18034
18035  acl_save_prefix="$prefix"
18036  prefix="$acl_final_prefix"
18037  acl_save_exec_prefix="$exec_prefix"
18038  exec_prefix="$acl_final_exec_prefix"
18039  eval x=\"$x\"
18040  exec_prefix="$acl_save_exec_prefix"
18041  prefix="$acl_save_prefix"
18042
18043      if test "X$x" = "X$element"; then
18044        haveit=yes
18045        break
18046      fi
18047    done
18048    if test -z "$haveit"; then
18049      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18050    fi
18051  done
18052
18053      fi
18054
18055
18056$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18057
18058
18059$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18060
18061    fi
18062
18063        POSUB=po
18064  fi
18065
18066
18067
18068    INTLLIBS="$LIBINTL"
18069
18070
18071
18072
18073
18074
18075fi
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18088$as_echo_n "checking whether NLS is requested... " >&6; }
18089if test x"$USE_NLS" != xyes; then
18090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18091$as_echo "no" >&6; }
18092else
18093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18094$as_echo "yes" >&6; }
18095
18096$as_echo "#define ENABLE_NLS 1" >>confdefs.h
18097
18098
18099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18100$as_echo_n "checking for catalogs to be installed... " >&6; }
18101  # Look for .po and .gmo files in the source directory.
18102  CATALOGS=
18103  XLINGUAS=
18104  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
18105    # If there aren't any .gmo files the shell will give us the
18106    # literal string "../path/to/srcdir/po/*.gmo" which has to be
18107    # weeded out.
18108    case "$cat" in *\**)
18109      continue;;
18110    esac
18111    # The quadruple backslash is collapsed to a double backslash
18112    # by the backticks, then collapsed again by the double quotes,
18113    # leaving us with one backslash in the sed expression (right
18114    # before the dot that mustn't act as a wildcard).
18115    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
18116    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
18117    # The user is allowed to set LINGUAS to a list of languages to
18118    # install catalogs for.  If it's empty that means "all of them."
18119    if test "x$LINGUAS" = x; then
18120      CATALOGS="$CATALOGS $cat"
18121      XLINGUAS="$XLINGUAS $lang"
18122    else
18123      case "$LINGUAS" in *$lang*)
18124        CATALOGS="$CATALOGS $cat"
18125        XLINGUAS="$XLINGUAS $lang"
18126        ;;
18127      esac
18128    fi
18129  done
18130  LINGUAS="$XLINGUAS"
18131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18132$as_echo "$LINGUAS" >&6; }
18133
18134
18135    DATADIRNAME=share
18136
18137  INSTOBJEXT=.mo
18138
18139  GENCAT=gencat
18140
18141  CATOBJEXT=.gmo
18142
18143fi
18144
18145
18146
18147
18148# Prepare PATH_SEPARATOR.
18149# The user is always right.
18150if test "${PATH_SEPARATOR+set}" != set; then
18151  echo "#! /bin/sh" >conf$$.sh
18152  echo  "exit 0"   >>conf$$.sh
18153  chmod +x conf$$.sh
18154  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18155    PATH_SEPARATOR=';'
18156  else
18157    PATH_SEPARATOR=:
18158  fi
18159  rm -f conf$$.sh
18160fi
18161
18162# Find out how to test for executable files. Don't use a zero-byte file,
18163# as systems may use methods other than mode bits to determine executability.
18164cat >conf$$.file <<_ASEOF
18165#! /bin/sh
18166exit 0
18167_ASEOF
18168chmod +x conf$$.file
18169if test -x conf$$.file >/dev/null 2>&1; then
18170  ac_executable_p="test -x"
18171else
18172  ac_executable_p="test -f"
18173fi
18174rm -f conf$$.file
18175
18176# Extract the first word of "msgfmt", so it can be a program name with args.
18177set dummy msgfmt; ac_word=$2
18178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18179$as_echo_n "checking for $ac_word... " >&6; }
18180if ${ac_cv_path_MSGFMT+:} false; then :
18181  $as_echo_n "(cached) " >&6
18182else
18183  case "$MSGFMT" in
18184  [\\/]* | ?:[\\/]*)
18185    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18186    ;;
18187  *)
18188    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18189    for ac_dir in $PATH; do
18190      IFS="$ac_save_IFS"
18191      test -z "$ac_dir" && ac_dir=.
18192      for ac_exec_ext in '' $ac_executable_extensions; do
18193        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18194          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
18195     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18196            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18197            break 2
18198          fi
18199        fi
18200      done
18201    done
18202    IFS="$ac_save_IFS"
18203  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18204    ;;
18205esac
18206fi
18207MSGFMT="$ac_cv_path_MSGFMT"
18208if test "$MSGFMT" != ":"; then
18209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18210$as_echo "$MSGFMT" >&6; }
18211else
18212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18213$as_echo "no" >&6; }
18214fi
18215
18216  # Extract the first word of "gmsgfmt", so it can be a program name with args.
18217set dummy gmsgfmt; ac_word=$2
18218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18219$as_echo_n "checking for $ac_word... " >&6; }
18220if ${ac_cv_path_GMSGFMT+:} false; then :
18221  $as_echo_n "(cached) " >&6
18222else
18223  case $GMSGFMT in
18224  [\\/]* | ?:[\\/]*)
18225  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18226  ;;
18227  *)
18228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18229for as_dir in $PATH
18230do
18231  IFS=$as_save_IFS
18232  test -z "$as_dir" && as_dir=.
18233    for ac_exec_ext in '' $ac_executable_extensions; do
18234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18235    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18237    break 2
18238  fi
18239done
18240  done
18241IFS=$as_save_IFS
18242
18243  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18244  ;;
18245esac
18246fi
18247GMSGFMT=$ac_cv_path_GMSGFMT
18248if test -n "$GMSGFMT"; then
18249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18250$as_echo "$GMSGFMT" >&6; }
18251else
18252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18253$as_echo "no" >&6; }
18254fi
18255
18256
18257
18258
18259# Prepare PATH_SEPARATOR.
18260# The user is always right.
18261if test "${PATH_SEPARATOR+set}" != set; then
18262  echo "#! /bin/sh" >conf$$.sh
18263  echo  "exit 0"   >>conf$$.sh
18264  chmod +x conf$$.sh
18265  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18266    PATH_SEPARATOR=';'
18267  else
18268    PATH_SEPARATOR=:
18269  fi
18270  rm -f conf$$.sh
18271fi
18272
18273# Find out how to test for executable files. Don't use a zero-byte file,
18274# as systems may use methods other than mode bits to determine executability.
18275cat >conf$$.file <<_ASEOF
18276#! /bin/sh
18277exit 0
18278_ASEOF
18279chmod +x conf$$.file
18280if test -x conf$$.file >/dev/null 2>&1; then
18281  ac_executable_p="test -x"
18282else
18283  ac_executable_p="test -f"
18284fi
18285rm -f conf$$.file
18286
18287# Extract the first word of "xgettext", so it can be a program name with args.
18288set dummy xgettext; ac_word=$2
18289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18290$as_echo_n "checking for $ac_word... " >&6; }
18291if ${ac_cv_path_XGETTEXT+:} false; then :
18292  $as_echo_n "(cached) " >&6
18293else
18294  case "$XGETTEXT" in
18295  [\\/]* | ?:[\\/]*)
18296    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18297    ;;
18298  *)
18299    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18300    for ac_dir in $PATH; do
18301      IFS="$ac_save_IFS"
18302      test -z "$ac_dir" && ac_dir=.
18303      for ac_exec_ext in '' $ac_executable_extensions; do
18304        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18305          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18306     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18307            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18308            break 2
18309          fi
18310        fi
18311      done
18312    done
18313    IFS="$ac_save_IFS"
18314  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18315    ;;
18316esac
18317fi
18318XGETTEXT="$ac_cv_path_XGETTEXT"
18319if test "$XGETTEXT" != ":"; then
18320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18321$as_echo "$XGETTEXT" >&6; }
18322else
18323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18324$as_echo "no" >&6; }
18325fi
18326
18327    rm -f messages.po
18328
18329
18330# Prepare PATH_SEPARATOR.
18331# The user is always right.
18332if test "${PATH_SEPARATOR+set}" != set; then
18333  echo "#! /bin/sh" >conf$$.sh
18334  echo  "exit 0"   >>conf$$.sh
18335  chmod +x conf$$.sh
18336  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18337    PATH_SEPARATOR=';'
18338  else
18339    PATH_SEPARATOR=:
18340  fi
18341  rm -f conf$$.sh
18342fi
18343
18344# Find out how to test for executable files. Don't use a zero-byte file,
18345# as systems may use methods other than mode bits to determine executability.
18346cat >conf$$.file <<_ASEOF
18347#! /bin/sh
18348exit 0
18349_ASEOF
18350chmod +x conf$$.file
18351if test -x conf$$.file >/dev/null 2>&1; then
18352  ac_executable_p="test -x"
18353else
18354  ac_executable_p="test -f"
18355fi
18356rm -f conf$$.file
18357
18358# Extract the first word of "msgmerge", so it can be a program name with args.
18359set dummy msgmerge; ac_word=$2
18360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18361$as_echo_n "checking for $ac_word... " >&6; }
18362if ${ac_cv_path_MSGMERGE+:} false; then :
18363  $as_echo_n "(cached) " >&6
18364else
18365  case "$MSGMERGE" in
18366  [\\/]* | ?:[\\/]*)
18367    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18368    ;;
18369  *)
18370    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18371    for ac_dir in $PATH; do
18372      IFS="$ac_save_IFS"
18373      test -z "$ac_dir" && ac_dir=.
18374      for ac_exec_ext in '' $ac_executable_extensions; do
18375        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18376          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
18377            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18378            break 2
18379          fi
18380        fi
18381      done
18382    done
18383    IFS="$ac_save_IFS"
18384  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18385    ;;
18386esac
18387fi
18388MSGMERGE="$ac_cv_path_MSGMERGE"
18389if test "$MSGMERGE" != ":"; then
18390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18391$as_echo "$MSGMERGE" >&6; }
18392else
18393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394$as_echo "no" >&6; }
18395fi
18396
18397
18398      if test "$GMSGFMT" != ":"; then
18399            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
18400       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18401      : ;
18402    else
18403      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18404      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18405$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
18406      GMSGFMT=":"
18407    fi
18408  fi
18409
18410      if test "$XGETTEXT" != ":"; then
18411            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18412       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18413      : ;
18414    else
18415      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18416$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18417      XGETTEXT=":"
18418    fi
18419        rm -f messages.po
18420  fi
18421
18422  ac_config_commands="$ac_config_commands default-2"
18423
18424
18425
18426
18427
18428for ac_prog in 'bison -y' byacc
18429do
18430  # Extract the first word of "$ac_prog", so it can be a program name with args.
18431set dummy $ac_prog; ac_word=$2
18432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18433$as_echo_n "checking for $ac_word... " >&6; }
18434if ${ac_cv_prog_YACC+:} false; then :
18435  $as_echo_n "(cached) " >&6
18436else
18437  if test -n "$YACC"; then
18438  ac_cv_prog_YACC="$YACC" # Let the user override the test.
18439else
18440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18441for as_dir in $PATH
18442do
18443  IFS=$as_save_IFS
18444  test -z "$as_dir" && as_dir=.
18445    for ac_exec_ext in '' $ac_executable_extensions; do
18446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18447    ac_cv_prog_YACC="$ac_prog"
18448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18449    break 2
18450  fi
18451done
18452  done
18453IFS=$as_save_IFS
18454
18455fi
18456fi
18457YACC=$ac_cv_prog_YACC
18458if test -n "$YACC"; then
18459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18460$as_echo "$YACC" >&6; }
18461else
18462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18463$as_echo "no" >&6; }
18464fi
18465
18466
18467  test -n "$YACC" && break
18468done
18469test -n "$YACC" || YACC="yacc"
18470
18471for ac_prog in flex lex
18472do
18473  # Extract the first word of "$ac_prog", so it can be a program name with args.
18474set dummy $ac_prog; ac_word=$2
18475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18476$as_echo_n "checking for $ac_word... " >&6; }
18477if ${ac_cv_prog_LEX+:} false; then :
18478  $as_echo_n "(cached) " >&6
18479else
18480  if test -n "$LEX"; then
18481  ac_cv_prog_LEX="$LEX" # Let the user override the test.
18482else
18483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484for as_dir in $PATH
18485do
18486  IFS=$as_save_IFS
18487  test -z "$as_dir" && as_dir=.
18488    for ac_exec_ext in '' $ac_executable_extensions; do
18489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18490    ac_cv_prog_LEX="$ac_prog"
18491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18492    break 2
18493  fi
18494done
18495  done
18496IFS=$as_save_IFS
18497
18498fi
18499fi
18500LEX=$ac_cv_prog_LEX
18501if test -n "$LEX"; then
18502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18503$as_echo "$LEX" >&6; }
18504else
18505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18506$as_echo "no" >&6; }
18507fi
18508
18509
18510  test -n "$LEX" && break
18511done
18512test -n "$LEX" || LEX=":"
18513
18514case "$LEX" in
18515  :|*"missing "*) ;;
18516  *) cat >conftest.l <<_ACEOF
18517%%
18518a { ECHO; }
18519b { REJECT; }
18520c { yymore (); }
18521d { yyless (1); }
18522e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
18523    yyless ((input () != 0)); }
18524f { unput (yytext[0]); }
18525. { BEGIN INITIAL; }
18526%%
18527#ifdef YYTEXT_POINTER
18528extern char *yytext;
18529#endif
18530int
18531main (void)
18532{
18533  return ! yylex () + ! yywrap ();
18534}
18535_ACEOF
18536{ { ac_try="$LEX conftest.l"
18537case "(($ac_try" in
18538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539  *) ac_try_echo=$ac_try;;
18540esac
18541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18542$as_echo "$ac_try_echo"; } >&5
18543  (eval "$LEX conftest.l") 2>&5
18544  ac_status=$?
18545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18546  test $ac_status = 0; }
18547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18548$as_echo_n "checking lex output file root... " >&6; }
18549if ${ac_cv_prog_lex_root+:} false; then :
18550  $as_echo_n "(cached) " >&6
18551else
18552
18553if test -f lex.yy.c; then
18554  ac_cv_prog_lex_root=lex.yy
18555elif test -f lexyy.c; then
18556  ac_cv_prog_lex_root=lexyy
18557else
18558  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18559fi
18560fi
18561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18562$as_echo "$ac_cv_prog_lex_root" >&6; }
18563LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18564
18565if test -z "${LEXLIB+set}"; then
18566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18567$as_echo_n "checking lex library... " >&6; }
18568if ${ac_cv_lib_lex+:} false; then :
18569  $as_echo_n "(cached) " >&6
18570else
18571
18572    ac_save_LIBS=$LIBS
18573    ac_cv_lib_lex='none needed'
18574    for ac_lib in '' -lfl -ll; do
18575      LIBS="$ac_lib $ac_save_LIBS"
18576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577/* end confdefs.h.  */
18578`cat $LEX_OUTPUT_ROOT.c`
18579_ACEOF
18580if ac_fn_c_try_link "$LINENO"; then :
18581  ac_cv_lib_lex=$ac_lib
18582fi
18583rm -f core conftest.err conftest.$ac_objext \
18584    conftest$ac_exeext conftest.$ac_ext
18585      test "$ac_cv_lib_lex" != 'none needed' && break
18586    done
18587    LIBS=$ac_save_LIBS
18588
18589fi
18590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18591$as_echo "$ac_cv_lib_lex" >&6; }
18592  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18593fi
18594
18595
18596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18597$as_echo_n "checking whether yytext is a pointer... " >&6; }
18598if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18599  $as_echo_n "(cached) " >&6
18600else
18601  # POSIX says lex can declare yytext either as a pointer or an array; the
18602# default is implementation-dependent.  Figure out which it is, since
18603# not all implementations provide the %pointer and %array declarations.
18604ac_cv_prog_lex_yytext_pointer=no
18605ac_save_LIBS=$LIBS
18606LIBS="$LEXLIB $ac_save_LIBS"
18607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608/* end confdefs.h.  */
18609
18610  #define YYTEXT_POINTER 1
18611`cat $LEX_OUTPUT_ROOT.c`
18612_ACEOF
18613if ac_fn_c_try_link "$LINENO"; then :
18614  ac_cv_prog_lex_yytext_pointer=yes
18615fi
18616rm -f core conftest.err conftest.$ac_objext \
18617    conftest$ac_exeext conftest.$ac_ext
18618LIBS=$ac_save_LIBS
18619
18620fi
18621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18622$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18623if test $ac_cv_prog_lex_yytext_pointer = yes; then
18624
18625$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18626
18627fi
18628rm -f conftest.l $LEX_OUTPUT_ROOT.c
18629 ;;
18630esac
18631if test "$LEX" = :; then
18632  LEX=${am_missing_run}flex
18633fi
18634
18635
18636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18637$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18638    # Check whether --enable-maintainer-mode was given.
18639if test "${enable_maintainer_mode+set}" = set; then :
18640  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18641else
18642  USE_MAINTAINER_MODE=no
18643fi
18644
18645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18646$as_echo "$USE_MAINTAINER_MODE" >&6; }
18647   if test $USE_MAINTAINER_MODE = yes; then
18648  MAINTAINER_MODE_TRUE=
18649  MAINTAINER_MODE_FALSE='#'
18650else
18651  MAINTAINER_MODE_TRUE='#'
18652  MAINTAINER_MODE_FALSE=
18653fi
18654
18655  MAINT=$MAINTAINER_MODE_TRUE
18656
18657
18658 if false; then
18659  GENINSRC_NEVER_TRUE=
18660  GENINSRC_NEVER_FALSE='#'
18661else
18662  GENINSRC_NEVER_TRUE='#'
18663  GENINSRC_NEVER_FALSE=
18664fi
18665
18666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
18667$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
18668if ${gcc_cv_prog_cmp_skip+:} false; then :
18669  $as_echo_n "(cached) " >&6
18670else
18671   echo abfoo >t1
18672  echo cdfoo >t2
18673  gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
18674  if cmp t1 t2 2 2 > /dev/null 2>&1; then
18675    if cmp t1 t2 1 1 > /dev/null 2>&1; then
18676      :
18677    else
18678      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
18679    fi
18680  fi
18681  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
18682    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
18683      :
18684    else
18685      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
18686    fi
18687  fi
18688  rm t1 t2
18689
18690fi
18691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
18692$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
18693do_compare="$gcc_cv_prog_cmp_skip"
18694
18695
18696
18697. ${srcdir}/configure.host
18698
18699
18700
18701
18702# We use headers from include/ that check various HAVE_*_H macros, thus
18703# should ensure they are set by configure.  This is true even when C99
18704# guarantees they are available.
18705# sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
18706# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
18707# Besides those, we need to check anything used in ld/ not in C99.
18708for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
18709		 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
18710		 sys/types.h unistd.h
18711do :
18712  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18713ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18715  cat >>confdefs.h <<_ACEOF
18716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18717_ACEOF
18718
18719fi
18720
18721done
18722
18723for ac_func in close glob lseek mkstemp open realpath waitpid
18724do :
18725  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18726ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18727if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18728  cat >>confdefs.h <<_ACEOF
18729#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18730_ACEOF
18731
18732fi
18733done
18734
18735
18736
18737case "${host}" in
18738*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18739
18740$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
18741 ;;
18742esac
18743
18744ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
18745if test "x$ac_cv_have_decl_asprintf" = xyes; then :
18746  ac_have_decl=1
18747else
18748  ac_have_decl=0
18749fi
18750
18751cat >>confdefs.h <<_ACEOF
18752#define HAVE_DECL_ASPRINTF $ac_have_decl
18753_ACEOF
18754ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
18755if test "x$ac_cv_have_decl_environ" = xyes; then :
18756  ac_have_decl=1
18757else
18758  ac_have_decl=0
18759fi
18760
18761cat >>confdefs.h <<_ACEOF
18762#define HAVE_DECL_ENVIRON $ac_have_decl
18763_ACEOF
18764ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
18765if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
18766  ac_have_decl=1
18767else
18768  ac_have_decl=0
18769fi
18770
18771cat >>confdefs.h <<_ACEOF
18772#define HAVE_DECL_STPCPY $ac_have_decl
18773_ACEOF
18774
18775
18776
18777
18778
18779  for ac_header in $ac_header_list
18780do :
18781  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18782ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18783"
18784if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18785  cat >>confdefs.h <<_ACEOF
18786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18787_ACEOF
18788
18789fi
18790
18791done
18792
18793
18794
18795
18796
18797
18798
18799
18800for ac_func in getpagesize
18801do :
18802  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18803if test "x$ac_cv_func_getpagesize" = xyes; then :
18804  cat >>confdefs.h <<_ACEOF
18805#define HAVE_GETPAGESIZE 1
18806_ACEOF
18807
18808fi
18809done
18810
18811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18812$as_echo_n "checking for working mmap... " >&6; }
18813if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18814  $as_echo_n "(cached) " >&6
18815else
18816  if test "$cross_compiling" = yes; then :
18817  ac_cv_func_mmap_fixed_mapped=no
18818else
18819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820/* end confdefs.h.  */
18821$ac_includes_default
18822/* malloc might have been renamed as rpl_malloc. */
18823#undef malloc
18824
18825/* Thanks to Mike Haertel and Jim Avera for this test.
18826   Here is a matrix of mmap possibilities:
18827	mmap private not fixed
18828	mmap private fixed at somewhere currently unmapped
18829	mmap private fixed at somewhere already mapped
18830	mmap shared not fixed
18831	mmap shared fixed at somewhere currently unmapped
18832	mmap shared fixed at somewhere already mapped
18833   For private mappings, we should verify that changes cannot be read()
18834   back from the file, nor mmap's back from the file at a different
18835   address.  (There have been systems where private was not correctly
18836   implemented like the infamous i386 svr4.0, and systems where the
18837   VM page cache was not coherent with the file system buffer cache
18838   like early versions of FreeBSD and possibly contemporary NetBSD.)
18839   For shared mappings, we should conversely verify that changes get
18840   propagated back to all the places they're supposed to be.
18841
18842   Grep wants private fixed already mapped.
18843   The main things grep needs to know about mmap are:
18844   * does it exist and is it safe to write into the mmap'd area
18845   * how to use it (BSD variants)  */
18846
18847#include <fcntl.h>
18848#include <sys/mman.h>
18849
18850#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18851char *malloc ();
18852#endif
18853
18854/* This mess was copied from the GNU getpagesize.h.  */
18855#ifndef HAVE_GETPAGESIZE
18856# ifdef _SC_PAGESIZE
18857#  define getpagesize() sysconf(_SC_PAGESIZE)
18858# else /* no _SC_PAGESIZE */
18859#  ifdef HAVE_SYS_PARAM_H
18860#   include <sys/param.h>
18861#   ifdef EXEC_PAGESIZE
18862#    define getpagesize() EXEC_PAGESIZE
18863#   else /* no EXEC_PAGESIZE */
18864#    ifdef NBPG
18865#     define getpagesize() NBPG * CLSIZE
18866#     ifndef CLSIZE
18867#      define CLSIZE 1
18868#     endif /* no CLSIZE */
18869#    else /* no NBPG */
18870#     ifdef NBPC
18871#      define getpagesize() NBPC
18872#     else /* no NBPC */
18873#      ifdef PAGESIZE
18874#       define getpagesize() PAGESIZE
18875#      endif /* PAGESIZE */
18876#     endif /* no NBPC */
18877#    endif /* no NBPG */
18878#   endif /* no EXEC_PAGESIZE */
18879#  else /* no HAVE_SYS_PARAM_H */
18880#   define getpagesize() 8192	/* punt totally */
18881#  endif /* no HAVE_SYS_PARAM_H */
18882# endif /* no _SC_PAGESIZE */
18883
18884#endif /* no HAVE_GETPAGESIZE */
18885
18886int
18887main ()
18888{
18889  char *data, *data2, *data3;
18890  const char *cdata2;
18891  int i, pagesize;
18892  int fd, fd2;
18893
18894  pagesize = getpagesize ();
18895
18896  /* First, make a file with some known garbage in it. */
18897  data = (char *) malloc (pagesize);
18898  if (!data)
18899    return 1;
18900  for (i = 0; i < pagesize; ++i)
18901    *(data + i) = rand ();
18902  umask (0);
18903  fd = creat ("conftest.mmap", 0600);
18904  if (fd < 0)
18905    return 2;
18906  if (write (fd, data, pagesize) != pagesize)
18907    return 3;
18908  close (fd);
18909
18910  /* Next, check that the tail of a page is zero-filled.  File must have
18911     non-zero length, otherwise we risk SIGBUS for entire page.  */
18912  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18913  if (fd2 < 0)
18914    return 4;
18915  cdata2 = "";
18916  if (write (fd2, cdata2, 1) != 1)
18917    return 5;
18918  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18919  if (data2 == MAP_FAILED)
18920    return 6;
18921  for (i = 0; i < pagesize; ++i)
18922    if (*(data2 + i))
18923      return 7;
18924  close (fd2);
18925  if (munmap (data2, pagesize))
18926    return 8;
18927
18928  /* Next, try to mmap the file at a fixed address which already has
18929     something else allocated at it.  If we can, also make sure that
18930     we see the same garbage.  */
18931  fd = open ("conftest.mmap", O_RDWR);
18932  if (fd < 0)
18933    return 9;
18934  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18935		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
18936    return 10;
18937  for (i = 0; i < pagesize; ++i)
18938    if (*(data + i) != *(data2 + i))
18939      return 11;
18940
18941  /* Finally, make sure that changes to the mapped area do not
18942     percolate back to the file as seen by read().  (This is a bug on
18943     some variants of i386 svr4.0.)  */
18944  for (i = 0; i < pagesize; ++i)
18945    *(data2 + i) = *(data2 + i) + 1;
18946  data3 = (char *) malloc (pagesize);
18947  if (!data3)
18948    return 12;
18949  if (read (fd, data3, pagesize) != pagesize)
18950    return 13;
18951  for (i = 0; i < pagesize; ++i)
18952    if (*(data + i) != *(data3 + i))
18953      return 14;
18954  close (fd);
18955  return 0;
18956}
18957_ACEOF
18958if ac_fn_c_try_run "$LINENO"; then :
18959  ac_cv_func_mmap_fixed_mapped=yes
18960else
18961  ac_cv_func_mmap_fixed_mapped=no
18962fi
18963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18964  conftest.$ac_objext conftest.beam conftest.$ac_ext
18965fi
18966
18967fi
18968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18969$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18970if test $ac_cv_func_mmap_fixed_mapped = yes; then
18971
18972$as_echo "#define HAVE_MMAP 1" >>confdefs.h
18973
18974fi
18975rm -f conftest.mmap conftest.txt
18976
18977
18978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18979$as_echo_n "checking for library containing dlopen... " >&6; }
18980if ${ac_cv_search_dlopen+:} false; then :
18981  $as_echo_n "(cached) " >&6
18982else
18983  ac_func_search_save_LIBS=$LIBS
18984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985/* end confdefs.h.  */
18986
18987/* Override any GCC internal prototype to avoid an error.
18988   Use char because int might match the return type of a GCC
18989   builtin and then its argument prototype would still apply.  */
18990#ifdef __cplusplus
18991extern "C"
18992#endif
18993char dlopen ();
18994int
18995main ()
18996{
18997return dlopen ();
18998  ;
18999  return 0;
19000}
19001_ACEOF
19002for ac_lib in '' dl; do
19003  if test -z "$ac_lib"; then
19004    ac_res="none required"
19005  else
19006    ac_res=-l$ac_lib
19007    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19008  fi
19009  if ac_fn_c_try_link "$LINENO"; then :
19010  ac_cv_search_dlopen=$ac_res
19011fi
19012rm -f core conftest.err conftest.$ac_objext \
19013    conftest$ac_exeext
19014  if ${ac_cv_search_dlopen+:} false; then :
19015  break
19016fi
19017done
19018if ${ac_cv_search_dlopen+:} false; then :
19019
19020else
19021  ac_cv_search_dlopen=no
19022fi
19023rm conftest.$ac_ext
19024LIBS=$ac_func_search_save_LIBS
19025fi
19026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19027$as_echo "$ac_cv_search_dlopen" >&6; }
19028ac_res=$ac_cv_search_dlopen
19029if test "$ac_res" != no; then :
19030  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19031
19032fi
19033
19034
19035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
19036$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
19037if ${ld_cv_decl_getopt_unistd_h+:} false; then :
19038  $as_echo_n "(cached) " >&6
19039else
19040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041/* end confdefs.h.  */
19042#include <unistd.h>
19043int
19044main ()
19045{
19046extern int getopt (int, char *const*, const char *);
19047  ;
19048  return 0;
19049}
19050_ACEOF
19051if ac_fn_c_try_compile "$LINENO"; then :
19052  ld_cv_decl_getopt_unistd_h=yes
19053else
19054  ld_cv_decl_getopt_unistd_h=no
19055fi
19056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19057fi
19058
19059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
19060$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
19061if test $ld_cv_decl_getopt_unistd_h = yes; then
19062
19063$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
19064
19065fi
19066
19067# Link in zlib/zstd if we can.  This allows us to read and write
19068# compressed debug sections.
19069
19070  # Use the system's zlib library.
19071  zlibdir="-L\$(top_builddir)/../zlib"
19072  zlibinc="-I\$(top_srcdir)/../zlib"
19073
19074# Check whether --with-system-zlib was given.
19075if test "${with_system_zlib+set}" = set; then :
19076  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19077    zlibdir=
19078    zlibinc=
19079  fi
19080
19081fi
19082
19083
19084
19085
19086
19087
19088# Check whether --with-zstd was given.
19089if test "${with_zstd+set}" = set; then :
19090  withval=$with_zstd;
19091else
19092  with_zstd=auto
19093fi
19094
19095
19096if test "$with_zstd" != no; then :
19097
19098pkg_failed=no
19099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19100$as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19101
19102if test -n "$ZSTD_CFLAGS"; then
19103    pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19104 elif test -n "$PKG_CONFIG"; then
19105    if test -n "$PKG_CONFIG" && \
19106    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19107  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19108  ac_status=$?
19109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19110  test $ac_status = 0; }; then
19111  pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19112		      test "x$?" != "x0" && pkg_failed=yes
19113else
19114  pkg_failed=yes
19115fi
19116 else
19117    pkg_failed=untried
19118fi
19119if test -n "$ZSTD_LIBS"; then
19120    pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19121 elif test -n "$PKG_CONFIG"; then
19122    if test -n "$PKG_CONFIG" && \
19123    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19124  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19125  ac_status=$?
19126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19127  test $ac_status = 0; }; then
19128  pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19129		      test "x$?" != "x0" && pkg_failed=yes
19130else
19131  pkg_failed=yes
19132fi
19133 else
19134    pkg_failed=untried
19135fi
19136
19137if test $pkg_failed = no; then
19138  pkg_save_LDFLAGS="$LDFLAGS"
19139  LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141/* end confdefs.h.  */
19142
19143int
19144main ()
19145{
19146
19147  ;
19148  return 0;
19149}
19150_ACEOF
19151if ac_fn_c_try_link "$LINENO"; then :
19152
19153else
19154  pkg_failed=yes
19155fi
19156rm -f core conftest.err conftest.$ac_objext \
19157    conftest$ac_exeext conftest.$ac_ext
19158  LDFLAGS=$pkg_save_LDFLAGS
19159fi
19160
19161
19162
19163if test $pkg_failed = yes; then
19164        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19165$as_echo "no" >&6; }
19166
19167if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19168        _pkg_short_errors_supported=yes
19169else
19170        _pkg_short_errors_supported=no
19171fi
19172        if test $_pkg_short_errors_supported = yes; then
19173	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19174        else
19175	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19176        fi
19177	# Put the nasty error message in config.log where it belongs
19178	echo "$ZSTD_PKG_ERRORS" >&5
19179
19180
19181    if test "$with_zstd" = yes; then
19182      as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19183    fi
19184
19185elif test $pkg_failed = untried; then
19186        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19187$as_echo "no" >&6; }
19188
19189    if test "$with_zstd" = yes; then
19190      as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19191    fi
19192
19193else
19194	ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19195	ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19196        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19197$as_echo "yes" >&6; }
19198
19199
19200$as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19201
19202
19203fi
19204
19205fi
19206
19207
19208# target-specific stuff:
19209
19210all_targets=
19211EMUL=
19212all_emuls=
19213all_emul_extras=
19214all_libpath=
19215TDIRS=
19216
19217elf_list_options=false
19218elf_shlib_list_options=false
19219elf_plt_unwind_list_options=false
19220for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19221do
19222  if test "$targ_alias" = "all"; then
19223    all_targets=true
19224    elf_list_options=true
19225    elf_shlib_list_options=true
19226    elf_plt_unwind_list_options=true
19227  else
19228    # Canonicalize the secondary target names.
19229    result=`$ac_config_sub $targ_alias 2>/dev/null`
19230    if test -n "$result"; then
19231	targ=$result
19232    else
19233	targ=$targ_alias
19234    fi
19235
19236    . ${srcdir}/configure.tgt
19237
19238    if test "$targ" = "$target"; then
19239      EMUL=$targ_emul
19240    fi
19241
19242    if test x${enable_64_bit_bfd} = xno; then
19243      . ${srcdir}/../bfd/config.bfd
19244    fi
19245
19246    if test x${enable_64_bit_bfd} = xyes; then
19247      targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
19248      targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
19249    fi
19250
19251    for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
19252	case " $all_emuls " in
19253	*" e${i}.o "*) ;;
19254	*)
19255	  all_emuls="$all_emuls e${i}.o"
19256	  eval result=\$tdir_$i
19257	  test -z "$result" && result=$targ_alias
19258	  TDIRS="$TDIRS
19259tdir_$i=$result"
19260	  case "${i}" in
19261	  *elf*)
19262	    elf_list_options=true
19263	    ;;
19264	  *)
19265	    if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
19266	      elf_list_options=true
19267	    fi
19268	    ;;
19269	  esac
19270	  if test "$elf_list_options" = "true"; then
19271	    source_sh()
19272	    {
19273	      . $1
19274	    }
19275	    source_sh ${srcdir}/emulparams/${i}.sh
19276	    if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
19277	      elf_shlib_list_options=true
19278	    fi
19279	    if test x${PLT_UNWIND} = xyes; then
19280	      elf_plt_unwind_list_options=true
19281	    fi
19282	  fi
19283	  ;;
19284	esac
19285    done
19286
19287    for i in $targ_emul $targ_extra_libpath; do
19288	case " $all_libpath " in
19289	*" ${i} "*) ;;
19290	*)
19291	  if test -z "$all_libpath"; then
19292	    all_libpath=${i}
19293	  else
19294	    all_libpath="$all_libpath ${i}"
19295	  fi
19296	  ;;
19297	esac
19298    done
19299
19300    for i in $targ_extra_ofiles; do
19301	case " $all_emul_extras " in
19302	*" ${i} "*) ;;
19303	*)
19304	  all_emul_extras="$all_emul_extras ${i}"
19305	  ;;
19306	esac
19307    done
19308
19309  fi
19310done
19311
19312if test x$ac_default_compressed_debug_sections = xyes ; then
19313
19314$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
19315
19316fi
19317
19318
19319cat >>confdefs.h <<_ACEOF
19320#define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
19321_ACEOF
19322
19323
19324if test "${ac_default_new_dtags}" = unset; then
19325  ac_default_new_dtags=0
19326fi
19327
19328cat >>confdefs.h <<_ACEOF
19329#define DEFAULT_NEW_DTAGS $ac_default_new_dtags
19330_ACEOF
19331
19332
19333if test "${ac_default_ld_z_relro}" = unset; then
19334  ac_default_ld_z_relro=0
19335fi
19336
19337cat >>confdefs.h <<_ACEOF
19338#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
19339_ACEOF
19340
19341
19342ac_default_ld_textrel_check_warning=0
19343case "${ac_default_ld_textrel_check}" in
19344  unset|no)
19345    ac_default_ld_textrel_check=textrel_check_none
19346    ;;
19347  yes|warning)
19348    ac_default_ld_textrel_check=textrel_check_warning
19349    ac_default_ld_textrel_check_warning=1
19350    ;;
19351  error)
19352    ac_default_ld_textrel_check=textrel_check_error
19353    ;;
19354esac
19355
19356cat >>confdefs.h <<_ACEOF
19357#define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
19358_ACEOF
19359
19360
19361cat >>confdefs.h <<_ACEOF
19362#define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
19363_ACEOF
19364
19365
19366if test "${ac_default_ld_z_separate_code}" = unset; then
19367  ac_default_ld_z_separate_code=0
19368fi
19369
19370cat >>confdefs.h <<_ACEOF
19371#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
19372_ACEOF
19373
19374
19375if test "${ac_default_ld_z_mark_plt}" = unset; then
19376  ac_default_ld_z_mark_plt=0
19377fi
19378
19379cat >>confdefs.h <<_ACEOF
19380#define DEFAULT_LD_Z_MARK_PLT $ac_default_ld_z_mark_plt
19381_ACEOF
19382
19383
19384
19385
19386cat >>confdefs.h <<_ACEOF
19387#define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
19388_ACEOF
19389
19390
19391
19392cat >>confdefs.h <<_ACEOF
19393#define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
19394_ACEOF
19395
19396
19397if test "${ac_default_ld_warn_rwx_segments}" = unset; then
19398  ac_default_ld_warn_rwx_segments=1
19399fi
19400
19401cat >>confdefs.h <<_ACEOF
19402#define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
19403_ACEOF
19404
19405
19406
19407cat >>confdefs.h <<_ACEOF
19408#define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
19409_ACEOF
19410
19411
19412if test "${ac_default_ld_default_execstack}" = unset; then
19413  ac_default_ld_default_execstack=1
19414fi
19415
19416cat >>confdefs.h <<_ACEOF
19417#define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
19418_ACEOF
19419
19420
19421
19422if test "${ac_support_error_handling_script}" = unset; then
19423  ac_support_error_handling_script=1
19424fi
19425
19426cat >>confdefs.h <<_ACEOF
19427#define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
19428_ACEOF
19429
19430
19431
19432cat >>confdefs.h <<_ACEOF
19433#define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
19434_ACEOF
19435
19436
19437
19438cat >>confdefs.h <<_ACEOF
19439#define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
19440_ACEOF
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451if test x${all_targets} = xtrue; then
19452  if test x${enable_64_bit_bfd} = xyes; then
19453    EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
19454    EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
19455  else
19456    EMULATION_OFILES='$(ALL_EMULATIONS)'
19457    EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
19458  fi
19459else
19460  EMULATION_OFILES=$all_emuls
19461  EMUL_EXTRA_OFILES=$all_emul_extras
19462fi
19463
19464
19465
19466
19467EMULATION_LIBPATH=$all_libpath
19468
19469
19470if test x${enable_static} = xno; then
19471  TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
19472  TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19473  TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
19474else
19475  TESTBFDLIB="../bfd/.libs/libbfd.a"
19476  TESTCTFLIB="../libctf/.libs/libctf.a"
19477  TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
19478fi
19479if test "${enable_libctf}" = no; then
19480    TESTCTFLIB=
19481fi
19482
19483
19484
19485
19486target_vendor=${target_vendor=$host_vendor}
19487case "$target_vendor" in
19488  hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
19489  *)  EXTRA_SHLIB_EXTENSION= ;;
19490esac
19491
19492case "$target_os" in
19493  lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
19494esac
19495
19496if test x${EXTRA_SHLIB_EXTENSION} != x ; then
19497
19498cat >>confdefs.h <<_ACEOF
19499#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
19500_ACEOF
19501
19502fi
19503
19504ac_config_commands="$ac_config_commands default"
19505
19506
19507
19508
19509
19510
19511
19512ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
19513
19514cat >confcache <<\_ACEOF
19515# This file is a shell script that caches the results of configure
19516# tests run on this system so they can be shared between configure
19517# scripts and configure runs, see configure's option --config-cache.
19518# It is not useful on other systems.  If it contains results you don't
19519# want to keep, you may remove or edit it.
19520#
19521# config.status only pays attention to the cache file if you give it
19522# the --recheck option to rerun configure.
19523#
19524# `ac_cv_env_foo' variables (set or unset) will be overridden when
19525# loading this file, other *unset* `ac_cv_foo' will be assigned the
19526# following values.
19527
19528_ACEOF
19529
19530# The following way of writing the cache mishandles newlines in values,
19531# but we know of no workaround that is simple, portable, and efficient.
19532# So, we kill variables containing newlines.
19533# Ultrix sh set writes to stderr and can't be redirected directly,
19534# and sets the high bit in the cache file unless we assign to the vars.
19535(
19536  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19537    eval ac_val=\$$ac_var
19538    case $ac_val in #(
19539    *${as_nl}*)
19540      case $ac_var in #(
19541      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19542$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19543      esac
19544      case $ac_var in #(
19545      _ | IFS | as_nl) ;; #(
19546      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19547      *) { eval $ac_var=; unset $ac_var;} ;;
19548      esac ;;
19549    esac
19550  done
19551
19552  (set) 2>&1 |
19553    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19554    *${as_nl}ac_space=\ *)
19555      # `set' does not quote correctly, so add quotes: double-quote
19556      # substitution turns \\\\ into \\, and sed turns \\ into \.
19557      sed -n \
19558	"s/'/'\\\\''/g;
19559	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19560      ;; #(
19561    *)
19562      # `set' quotes correctly as required by POSIX, so do not add quotes.
19563      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19564      ;;
19565    esac |
19566    sort
19567) |
19568  sed '
19569     /^ac_cv_env_/b end
19570     t clear
19571     :clear
19572     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19573     t end
19574     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19575     :end' >>confcache
19576if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19577  if test -w "$cache_file"; then
19578    if test "x$cache_file" != "x/dev/null"; then
19579      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19580$as_echo "$as_me: updating cache $cache_file" >&6;}
19581      if test ! -f "$cache_file" || test -h "$cache_file"; then
19582	cat confcache >"$cache_file"
19583      else
19584        case $cache_file in #(
19585        */* | ?:*)
19586	  mv -f confcache "$cache_file"$$ &&
19587	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19588        *)
19589	  mv -f confcache "$cache_file" ;;
19590	esac
19591      fi
19592    fi
19593  else
19594    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19595$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19596  fi
19597fi
19598rm -f confcache
19599
19600test "x$prefix" = xNONE && prefix=$ac_default_prefix
19601# Let make expand exec_prefix.
19602test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19603
19604DEFS=-DHAVE_CONFIG_H
19605
19606ac_libobjs=
19607ac_ltlibobjs=
19608U=
19609for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19610  # 1. Remove the extension, and $U if already installed.
19611  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19612  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19613  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19614  #    will be set to the directory where LIBOBJS objects are built.
19615  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19616  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19617done
19618LIBOBJS=$ac_libobjs
19619
19620LTLIBOBJS=$ac_ltlibobjs
19621
19622
19623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19624$as_echo_n "checking that generated files are newer than configure... " >&6; }
19625   if test -n "$am_sleep_pid"; then
19626     # Hide warnings about reused PIDs.
19627     wait $am_sleep_pid 2>/dev/null
19628   fi
19629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19630$as_echo "done" >&6; }
19631 if test -n "$EXEEXT"; then
19632  am__EXEEXT_TRUE=
19633  am__EXEEXT_FALSE='#'
19634else
19635  am__EXEEXT_TRUE='#'
19636  am__EXEEXT_FALSE=
19637fi
19638
19639if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19640  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19641Usually this means the macro was only invoked conditionally." "$LINENO" 5
19642fi
19643if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19644  as_fn_error $? "conditional \"AMDEP\" was never defined.
19645Usually this means the macro was only invoked conditionally." "$LINENO" 5
19646fi
19647if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19648  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19649Usually this means the macro was only invoked conditionally." "$LINENO" 5
19650fi
19651if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19652  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19653Usually this means the macro was only invoked conditionally." "$LINENO" 5
19654fi
19655if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
19656  as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
19657Usually this means the macro was only invoked conditionally." "$LINENO" 5
19658fi
19659if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
19660  as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
19661Usually this means the macro was only invoked conditionally." "$LINENO" 5
19662fi
19663if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19664  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19665Usually this means the macro was only invoked conditionally." "$LINENO" 5
19666fi
19667if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
19668  as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
19669Usually this means the macro was only invoked conditionally." "$LINENO" 5
19670fi
19671
19672: "${CONFIG_STATUS=./config.status}"
19673ac_write_fail=0
19674ac_clean_files_save=$ac_clean_files
19675ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19676{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19677$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19678as_write_fail=0
19679cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19680#! $SHELL
19681# Generated by $as_me.
19682# Run this file to recreate the current configuration.
19683# Compiler output produced by configure, useful for debugging
19684# configure, is in config.log if it exists.
19685
19686debug=false
19687ac_cs_recheck=false
19688ac_cs_silent=false
19689
19690SHELL=\${CONFIG_SHELL-$SHELL}
19691export SHELL
19692_ASEOF
19693cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19694## -------------------- ##
19695## M4sh Initialization. ##
19696## -------------------- ##
19697
19698# Be more Bourne compatible
19699DUALCASE=1; export DUALCASE # for MKS sh
19700if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19701  emulate sh
19702  NULLCMD=:
19703  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19704  # is contrary to our usage.  Disable this feature.
19705  alias -g '${1+"$@"}'='"$@"'
19706  setopt NO_GLOB_SUBST
19707else
19708  case `(set -o) 2>/dev/null` in #(
19709  *posix*) :
19710    set -o posix ;; #(
19711  *) :
19712     ;;
19713esac
19714fi
19715
19716
19717as_nl='
19718'
19719export as_nl
19720# Printing a long string crashes Solaris 7 /usr/bin/printf.
19721as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19722as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19723as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19724# Prefer a ksh shell builtin over an external printf program on Solaris,
19725# but without wasting forks for bash or zsh.
19726if test -z "$BASH_VERSION$ZSH_VERSION" \
19727    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19728  as_echo='print -r --'
19729  as_echo_n='print -rn --'
19730elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19731  as_echo='printf %s\n'
19732  as_echo_n='printf %s'
19733else
19734  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19735    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19736    as_echo_n='/usr/ucb/echo -n'
19737  else
19738    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19739    as_echo_n_body='eval
19740      arg=$1;
19741      case $arg in #(
19742      *"$as_nl"*)
19743	expr "X$arg" : "X\\(.*\\)$as_nl";
19744	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19745      esac;
19746      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19747    '
19748    export as_echo_n_body
19749    as_echo_n='sh -c $as_echo_n_body as_echo'
19750  fi
19751  export as_echo_body
19752  as_echo='sh -c $as_echo_body as_echo'
19753fi
19754
19755# The user is always right.
19756if test "${PATH_SEPARATOR+set}" != set; then
19757  PATH_SEPARATOR=:
19758  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19759    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19760      PATH_SEPARATOR=';'
19761  }
19762fi
19763
19764
19765# IFS
19766# We need space, tab and new line, in precisely that order.  Quoting is
19767# there to prevent editors from complaining about space-tab.
19768# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19769# splitting by setting IFS to empty value.)
19770IFS=" ""	$as_nl"
19771
19772# Find who we are.  Look in the path if we contain no directory separator.
19773as_myself=
19774case $0 in #((
19775  *[\\/]* ) as_myself=$0 ;;
19776  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19777for as_dir in $PATH
19778do
19779  IFS=$as_save_IFS
19780  test -z "$as_dir" && as_dir=.
19781    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19782  done
19783IFS=$as_save_IFS
19784
19785     ;;
19786esac
19787# We did not find ourselves, most probably we were run as `sh COMMAND'
19788# in which case we are not to be found in the path.
19789if test "x$as_myself" = x; then
19790  as_myself=$0
19791fi
19792if test ! -f "$as_myself"; then
19793  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19794  exit 1
19795fi
19796
19797# Unset variables that we do not need and which cause bugs (e.g. in
19798# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19799# suppresses any "Segmentation fault" message there.  '((' could
19800# trigger a bug in pdksh 5.2.14.
19801for as_var in BASH_ENV ENV MAIL MAILPATH
19802do eval test x\${$as_var+set} = xset \
19803  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19804done
19805PS1='$ '
19806PS2='> '
19807PS4='+ '
19808
19809# NLS nuisances.
19810LC_ALL=C
19811export LC_ALL
19812LANGUAGE=C
19813export LANGUAGE
19814
19815# CDPATH.
19816(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19817
19818
19819# as_fn_error STATUS ERROR [LINENO LOG_FD]
19820# ----------------------------------------
19821# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19822# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19823# script with STATUS, using 1 if that was 0.
19824as_fn_error ()
19825{
19826  as_status=$1; test $as_status -eq 0 && as_status=1
19827  if test "$4"; then
19828    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19829    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19830  fi
19831  $as_echo "$as_me: error: $2" >&2
19832  as_fn_exit $as_status
19833} # as_fn_error
19834
19835
19836# as_fn_set_status STATUS
19837# -----------------------
19838# Set $? to STATUS, without forking.
19839as_fn_set_status ()
19840{
19841  return $1
19842} # as_fn_set_status
19843
19844# as_fn_exit STATUS
19845# -----------------
19846# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19847as_fn_exit ()
19848{
19849  set +e
19850  as_fn_set_status $1
19851  exit $1
19852} # as_fn_exit
19853
19854# as_fn_unset VAR
19855# ---------------
19856# Portably unset VAR.
19857as_fn_unset ()
19858{
19859  { eval $1=; unset $1;}
19860}
19861as_unset=as_fn_unset
19862# as_fn_append VAR VALUE
19863# ----------------------
19864# Append the text in VALUE to the end of the definition contained in VAR. Take
19865# advantage of any shell optimizations that allow amortized linear growth over
19866# repeated appends, instead of the typical quadratic growth present in naive
19867# implementations.
19868if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19869  eval 'as_fn_append ()
19870  {
19871    eval $1+=\$2
19872  }'
19873else
19874  as_fn_append ()
19875  {
19876    eval $1=\$$1\$2
19877  }
19878fi # as_fn_append
19879
19880# as_fn_arith ARG...
19881# ------------------
19882# Perform arithmetic evaluation on the ARGs, and store the result in the
19883# global $as_val. Take advantage of shells that can avoid forks. The arguments
19884# must be portable across $(()) and expr.
19885if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19886  eval 'as_fn_arith ()
19887  {
19888    as_val=$(( $* ))
19889  }'
19890else
19891  as_fn_arith ()
19892  {
19893    as_val=`expr "$@" || test $? -eq 1`
19894  }
19895fi # as_fn_arith
19896
19897
19898if expr a : '\(a\)' >/dev/null 2>&1 &&
19899   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19900  as_expr=expr
19901else
19902  as_expr=false
19903fi
19904
19905if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19906  as_basename=basename
19907else
19908  as_basename=false
19909fi
19910
19911if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19912  as_dirname=dirname
19913else
19914  as_dirname=false
19915fi
19916
19917as_me=`$as_basename -- "$0" ||
19918$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19919	 X"$0" : 'X\(//\)$' \| \
19920	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19921$as_echo X/"$0" |
19922    sed '/^.*\/\([^/][^/]*\)\/*$/{
19923	    s//\1/
19924	    q
19925	  }
19926	  /^X\/\(\/\/\)$/{
19927	    s//\1/
19928	    q
19929	  }
19930	  /^X\/\(\/\).*/{
19931	    s//\1/
19932	    q
19933	  }
19934	  s/.*/./; q'`
19935
19936# Avoid depending upon Character Ranges.
19937as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19938as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19939as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19940as_cr_digits='0123456789'
19941as_cr_alnum=$as_cr_Letters$as_cr_digits
19942
19943ECHO_C= ECHO_N= ECHO_T=
19944case `echo -n x` in #(((((
19945-n*)
19946  case `echo 'xy\c'` in
19947  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19948  xy)  ECHO_C='\c';;
19949  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19950       ECHO_T='	';;
19951  esac;;
19952*)
19953  ECHO_N='-n';;
19954esac
19955
19956rm -f conf$$ conf$$.exe conf$$.file
19957if test -d conf$$.dir; then
19958  rm -f conf$$.dir/conf$$.file
19959else
19960  rm -f conf$$.dir
19961  mkdir conf$$.dir 2>/dev/null
19962fi
19963if (echo >conf$$.file) 2>/dev/null; then
19964  if ln -s conf$$.file conf$$ 2>/dev/null; then
19965    as_ln_s='ln -s'
19966    # ... but there are two gotchas:
19967    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19968    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19969    # In both cases, we have to default to `cp -pR'.
19970    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19971      as_ln_s='cp -pR'
19972  elif ln conf$$.file conf$$ 2>/dev/null; then
19973    as_ln_s=ln
19974  else
19975    as_ln_s='cp -pR'
19976  fi
19977else
19978  as_ln_s='cp -pR'
19979fi
19980rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19981rmdir conf$$.dir 2>/dev/null
19982
19983
19984# as_fn_mkdir_p
19985# -------------
19986# Create "$as_dir" as a directory, including parents if necessary.
19987as_fn_mkdir_p ()
19988{
19989
19990  case $as_dir in #(
19991  -*) as_dir=./$as_dir;;
19992  esac
19993  test -d "$as_dir" || eval $as_mkdir_p || {
19994    as_dirs=
19995    while :; do
19996      case $as_dir in #(
19997      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19998      *) as_qdir=$as_dir;;
19999      esac
20000      as_dirs="'$as_qdir' $as_dirs"
20001      as_dir=`$as_dirname -- "$as_dir" ||
20002$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20003	 X"$as_dir" : 'X\(//\)[^/]' \| \
20004	 X"$as_dir" : 'X\(//\)$' \| \
20005	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20006$as_echo X"$as_dir" |
20007    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20008	    s//\1/
20009	    q
20010	  }
20011	  /^X\(\/\/\)[^/].*/{
20012	    s//\1/
20013	    q
20014	  }
20015	  /^X\(\/\/\)$/{
20016	    s//\1/
20017	    q
20018	  }
20019	  /^X\(\/\).*/{
20020	    s//\1/
20021	    q
20022	  }
20023	  s/.*/./; q'`
20024      test -d "$as_dir" && break
20025    done
20026    test -z "$as_dirs" || eval "mkdir $as_dirs"
20027  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20028
20029
20030} # as_fn_mkdir_p
20031if mkdir -p . 2>/dev/null; then
20032  as_mkdir_p='mkdir -p "$as_dir"'
20033else
20034  test -d ./-p && rmdir ./-p
20035  as_mkdir_p=false
20036fi
20037
20038
20039# as_fn_executable_p FILE
20040# -----------------------
20041# Test if FILE is an executable regular file.
20042as_fn_executable_p ()
20043{
20044  test -f "$1" && test -x "$1"
20045} # as_fn_executable_p
20046as_test_x='test -x'
20047as_executable_p=as_fn_executable_p
20048
20049# Sed expression to map a string onto a valid CPP name.
20050as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20051
20052# Sed expression to map a string onto a valid variable name.
20053as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20054
20055
20056exec 6>&1
20057## ----------------------------------- ##
20058## Main body of $CONFIG_STATUS script. ##
20059## ----------------------------------- ##
20060_ASEOF
20061test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20062
20063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20064# Save the log message, to keep $0 and so on meaningful, and to
20065# report actual input values of CONFIG_FILES etc. instead of their
20066# values after options handling.
20067ac_log="
20068This file was extended by ld $as_me 2.42, which was
20069generated by GNU Autoconf 2.69.  Invocation command line was
20070
20071  CONFIG_FILES    = $CONFIG_FILES
20072  CONFIG_HEADERS  = $CONFIG_HEADERS
20073  CONFIG_LINKS    = $CONFIG_LINKS
20074  CONFIG_COMMANDS = $CONFIG_COMMANDS
20075  $ $0 $@
20076
20077on `(hostname || uname -n) 2>/dev/null | sed 1q`
20078"
20079
20080_ACEOF
20081
20082case $ac_config_files in *"
20083"*) set x $ac_config_files; shift; ac_config_files=$*;;
20084esac
20085
20086case $ac_config_headers in *"
20087"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20088esac
20089
20090
20091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20092# Files that config.status was made for.
20093config_files="$ac_config_files"
20094config_headers="$ac_config_headers"
20095config_commands="$ac_config_commands"
20096
20097_ACEOF
20098
20099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20100ac_cs_usage="\
20101\`$as_me' instantiates files and other configuration actions
20102from templates according to the current configuration.  Unless the files
20103and actions are specified as TAGs, all are instantiated by default.
20104
20105Usage: $0 [OPTION]... [TAG]...
20106
20107  -h, --help       print this help, then exit
20108  -V, --version    print version number and configuration settings, then exit
20109      --config     print configuration, then exit
20110  -q, --quiet, --silent
20111                   do not print progress messages
20112  -d, --debug      don't remove temporary files
20113      --recheck    update $as_me by reconfiguring in the same conditions
20114      --file=FILE[:TEMPLATE]
20115                   instantiate the configuration file FILE
20116      --header=FILE[:TEMPLATE]
20117                   instantiate the configuration header FILE
20118
20119Configuration files:
20120$config_files
20121
20122Configuration headers:
20123$config_headers
20124
20125Configuration commands:
20126$config_commands
20127
20128Report bugs to the package provider."
20129
20130_ACEOF
20131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20132ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20133ac_cs_version="\\
20134ld config.status 2.42
20135configured by $0, generated by GNU Autoconf 2.69,
20136  with options \\"\$ac_cs_config\\"
20137
20138Copyright (C) 2012 Free Software Foundation, Inc.
20139This config.status script is free software; the Free Software Foundation
20140gives unlimited permission to copy, distribute and modify it."
20141
20142ac_pwd='$ac_pwd'
20143srcdir='$srcdir'
20144INSTALL='$INSTALL'
20145MKDIR_P='$MKDIR_P'
20146AWK='$AWK'
20147test -n "\$AWK" || AWK=awk
20148_ACEOF
20149
20150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20151# The default lists apply if the user does not specify any file.
20152ac_need_defaults=:
20153while test $# != 0
20154do
20155  case $1 in
20156  --*=?*)
20157    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20158    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20159    ac_shift=:
20160    ;;
20161  --*=)
20162    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20163    ac_optarg=
20164    ac_shift=:
20165    ;;
20166  *)
20167    ac_option=$1
20168    ac_optarg=$2
20169    ac_shift=shift
20170    ;;
20171  esac
20172
20173  case $ac_option in
20174  # Handling of the options.
20175  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20176    ac_cs_recheck=: ;;
20177  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20178    $as_echo "$ac_cs_version"; exit ;;
20179  --config | --confi | --conf | --con | --co | --c )
20180    $as_echo "$ac_cs_config"; exit ;;
20181  --debug | --debu | --deb | --de | --d | -d )
20182    debug=: ;;
20183  --file | --fil | --fi | --f )
20184    $ac_shift
20185    case $ac_optarg in
20186    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20187    '') as_fn_error $? "missing file argument" ;;
20188    esac
20189    as_fn_append CONFIG_FILES " '$ac_optarg'"
20190    ac_need_defaults=false;;
20191  --header | --heade | --head | --hea )
20192    $ac_shift
20193    case $ac_optarg in
20194    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20195    esac
20196    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20197    ac_need_defaults=false;;
20198  --he | --h)
20199    # Conflict between --help and --header
20200    as_fn_error $? "ambiguous option: \`$1'
20201Try \`$0 --help' for more information.";;
20202  --help | --hel | -h )
20203    $as_echo "$ac_cs_usage"; exit ;;
20204  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20205  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20206    ac_cs_silent=: ;;
20207
20208  # This is an error.
20209  -*) as_fn_error $? "unrecognized option: \`$1'
20210Try \`$0 --help' for more information." ;;
20211
20212  *) as_fn_append ac_config_targets " $1"
20213     ac_need_defaults=false ;;
20214
20215  esac
20216  shift
20217done
20218
20219ac_configure_extra_args=
20220
20221if $ac_cs_silent; then
20222  exec 6>/dev/null
20223  ac_configure_extra_args="$ac_configure_extra_args --silent"
20224fi
20225
20226_ACEOF
20227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20228if \$ac_cs_recheck; then
20229  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20230  shift
20231  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20232  CONFIG_SHELL='$SHELL'
20233  export CONFIG_SHELL
20234  exec "\$@"
20235fi
20236
20237_ACEOF
20238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20239exec 5>>config.log
20240{
20241  echo
20242  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20243## Running $as_me. ##
20244_ASBOX
20245  $as_echo "$ac_log"
20246} >&5
20247
20248_ACEOF
20249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20250#
20251# INIT-COMMANDS
20252#
20253AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20254
20255
20256# The HP-UX ksh and POSIX shell print the target directory to stdout
20257# if CDPATH is set.
20258(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20259
20260sed_quote_subst='$sed_quote_subst'
20261double_quote_subst='$double_quote_subst'
20262delay_variable_subst='$delay_variable_subst'
20263macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20264macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20265enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20266enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20267pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20268enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20269SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20270ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20271host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20272host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20273host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20274build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20275build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20276build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20277SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20278Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20279GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20280EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20281FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20282LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20283NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20284LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20285max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20286ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20287exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20288lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20289lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20290lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20291reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20292reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20293OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20294deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20295file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20296AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20297AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20298STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20299RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20300old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20301old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20302old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20303lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20304CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20305CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20306compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20307GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20308lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20309lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20310lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20311lt_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"`'
20312objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20313MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20314lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20315lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20316lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20317lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20318lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20319need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20320DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20321NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20322LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20323OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20324OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20325libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20326shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20327extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20328archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20329enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20330export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20331whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20332compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20333old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20334old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20335archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20336archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20337module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20338module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20339with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20340allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20341no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20342hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20343hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20344hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20345hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20346hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20347hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20348hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20349hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20350inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20351link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20352fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20353always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20354export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20355exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20356include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20357prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20358file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20359variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20360need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20361need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20362version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20363runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20364shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20365shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20366libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20367library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20368soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20369install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20370postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20371postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20372finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20373finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20374hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20375sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20376sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20377hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20378enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20379enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20380enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20381old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20382striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20383compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20384predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20385postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20386predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20387postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20388compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20389LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20390reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20391reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20392old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20393compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20394GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20395lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20396lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20397lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20398lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20399lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20400archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20401enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20402export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20403whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20404compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20405old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20406old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20407archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20408archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20409module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20410module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20411with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20412allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20413no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20414hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20415hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20416hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20417hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20418hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20419hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20420hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20421hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20422inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20423link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20424fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20425always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20426export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20427exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20428include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20429prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20430file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20431hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20432compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20433predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20434postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20435predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20436postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20437compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20438
20439LTCC='$LTCC'
20440LTCFLAGS='$LTCFLAGS'
20441compiler='$compiler_DEFAULT'
20442
20443# A function that is used when there is no print builtin or printf.
20444func_fallback_echo ()
20445{
20446  eval 'cat <<_LTECHO_EOF
20447\$1
20448_LTECHO_EOF'
20449}
20450
20451# Quote evaled strings.
20452for var in SHELL \
20453ECHO \
20454SED \
20455GREP \
20456EGREP \
20457FGREP \
20458LD \
20459NM \
20460LN_S \
20461lt_SP2NL \
20462lt_NL2SP \
20463reload_flag \
20464OBJDUMP \
20465deplibs_check_method \
20466file_magic_cmd \
20467AR \
20468AR_FLAGS \
20469STRIP \
20470RANLIB \
20471CC \
20472CFLAGS \
20473compiler \
20474lt_cv_sys_global_symbol_pipe \
20475lt_cv_sys_global_symbol_to_cdecl \
20476lt_cv_sys_global_symbol_to_c_name_address \
20477lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20478lt_prog_compiler_no_builtin_flag \
20479lt_prog_compiler_wl \
20480lt_prog_compiler_pic \
20481lt_prog_compiler_static \
20482lt_cv_prog_compiler_c_o \
20483need_locks \
20484DSYMUTIL \
20485NMEDIT \
20486LIPO \
20487OTOOL \
20488OTOOL64 \
20489shrext_cmds \
20490export_dynamic_flag_spec \
20491whole_archive_flag_spec \
20492compiler_needs_object \
20493with_gnu_ld \
20494allow_undefined_flag \
20495no_undefined_flag \
20496hardcode_libdir_flag_spec \
20497hardcode_libdir_flag_spec_ld \
20498hardcode_libdir_separator \
20499fix_srcfile_path \
20500exclude_expsyms \
20501include_expsyms \
20502file_list_spec \
20503variables_saved_for_relink \
20504libname_spec \
20505library_names_spec \
20506soname_spec \
20507install_override_mode \
20508finish_eval \
20509old_striplib \
20510striplib \
20511compiler_lib_search_dirs \
20512predep_objects \
20513postdep_objects \
20514predeps \
20515postdeps \
20516compiler_lib_search_path \
20517LD_CXX \
20518reload_flag_CXX \
20519compiler_CXX \
20520lt_prog_compiler_no_builtin_flag_CXX \
20521lt_prog_compiler_wl_CXX \
20522lt_prog_compiler_pic_CXX \
20523lt_prog_compiler_static_CXX \
20524lt_cv_prog_compiler_c_o_CXX \
20525export_dynamic_flag_spec_CXX \
20526whole_archive_flag_spec_CXX \
20527compiler_needs_object_CXX \
20528with_gnu_ld_CXX \
20529allow_undefined_flag_CXX \
20530no_undefined_flag_CXX \
20531hardcode_libdir_flag_spec_CXX \
20532hardcode_libdir_flag_spec_ld_CXX \
20533hardcode_libdir_separator_CXX \
20534fix_srcfile_path_CXX \
20535exclude_expsyms_CXX \
20536include_expsyms_CXX \
20537file_list_spec_CXX \
20538compiler_lib_search_dirs_CXX \
20539predep_objects_CXX \
20540postdep_objects_CXX \
20541predeps_CXX \
20542postdeps_CXX \
20543compiler_lib_search_path_CXX; do
20544    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20545    *[\\\\\\\`\\"\\\$]*)
20546      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20547      ;;
20548    *)
20549      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20550      ;;
20551    esac
20552done
20553
20554# Double-quote double-evaled strings.
20555for var in reload_cmds \
20556old_postinstall_cmds \
20557old_postuninstall_cmds \
20558old_archive_cmds \
20559extract_expsyms_cmds \
20560old_archive_from_new_cmds \
20561old_archive_from_expsyms_cmds \
20562archive_cmds \
20563archive_expsym_cmds \
20564module_cmds \
20565module_expsym_cmds \
20566export_symbols_cmds \
20567prelink_cmds \
20568postinstall_cmds \
20569postuninstall_cmds \
20570finish_cmds \
20571sys_lib_search_path_spec \
20572sys_lib_dlsearch_path_spec \
20573reload_cmds_CXX \
20574old_archive_cmds_CXX \
20575old_archive_from_new_cmds_CXX \
20576old_archive_from_expsyms_cmds_CXX \
20577archive_cmds_CXX \
20578archive_expsym_cmds_CXX \
20579module_cmds_CXX \
20580module_expsym_cmds_CXX \
20581export_symbols_cmds_CXX \
20582prelink_cmds_CXX; do
20583    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20584    *[\\\\\\\`\\"\\\$]*)
20585      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20586      ;;
20587    *)
20588      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20589      ;;
20590    esac
20591done
20592
20593ac_aux_dir='$ac_aux_dir'
20594xsi_shell='$xsi_shell'
20595lt_shell_append='$lt_shell_append'
20596
20597# See if we are running on zsh, and set the options which allow our
20598# commands through without removal of \ escapes INIT.
20599if test -n "\${ZSH_VERSION+set}" ; then
20600   setopt NO_GLOB_SUBST
20601fi
20602
20603
20604    PACKAGE='$PACKAGE'
20605    VERSION='$VERSION'
20606    TIMESTAMP='$TIMESTAMP'
20607    RM='$RM'
20608    ofile='$ofile'
20609
20610
20611
20612
20613
20614# Capture the value of obsolete ALL_LINGUAS because we need it to compute
20615    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20616    # from automake.
20617    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20618    # Capture the value of LINGUAS because we need it to compute CATALOGS.
20619    LINGUAS="${LINGUAS-%UNSET%}"
20620
20621# Capture the value of obsolete ALL_LINGUAS because we need it to compute
20622    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20623    # from automake.
20624    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20625    # Capture the value of LINGUAS because we need it to compute CATALOGS.
20626    LINGUAS="${LINGUAS-%UNSET%}"
20627
20628
20629
20630_ACEOF
20631
20632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20633
20634# Handling of arguments.
20635for ac_config_target in $ac_config_targets
20636do
20637  case $ac_config_target in
20638    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20639    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20640    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20641    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20642    "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20643    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20644    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20645    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20646
20647  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20648  esac
20649done
20650
20651
20652# If the user did not use the arguments to specify the items to instantiate,
20653# then the envvar interface is used.  Set only those that are not.
20654# We use the long form for the default assignment because of an extremely
20655# bizarre bug on SunOS 4.1.3.
20656if $ac_need_defaults; then
20657  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20658  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20659  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20660fi
20661
20662# Have a temporary directory for convenience.  Make it in the build tree
20663# simply because there is no reason against having it here, and in addition,
20664# creating and moving files from /tmp can sometimes cause problems.
20665# Hook for its removal unless debugging.
20666# Note that there is a small window in which the directory will not be cleaned:
20667# after its creation but before its name has been assigned to `$tmp'.
20668$debug ||
20669{
20670  tmp= ac_tmp=
20671  trap 'exit_status=$?
20672  : "${ac_tmp:=$tmp}"
20673  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20674' 0
20675  trap 'as_fn_exit 1' 1 2 13 15
20676}
20677# Create a (secure) tmp directory for tmp files.
20678
20679{
20680  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20681  test -d "$tmp"
20682}  ||
20683{
20684  tmp=./conf$$-$RANDOM
20685  (umask 077 && mkdir "$tmp")
20686} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20687ac_tmp=$tmp
20688
20689# Set up the scripts for CONFIG_FILES section.
20690# No need to generate them if there are no CONFIG_FILES.
20691# This happens for instance with `./config.status config.h'.
20692if test -n "$CONFIG_FILES"; then
20693
20694
20695ac_cr=`echo X | tr X '\015'`
20696# On cygwin, bash can eat \r inside `` if the user requested igncr.
20697# But we know of no other shell where ac_cr would be empty at this
20698# point, so we can use a bashism as a fallback.
20699if test "x$ac_cr" = x; then
20700  eval ac_cr=\$\'\\r\'
20701fi
20702ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20703if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20704  ac_cs_awk_cr='\\r'
20705else
20706  ac_cs_awk_cr=$ac_cr
20707fi
20708
20709echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20710_ACEOF
20711
20712
20713{
20714  echo "cat >conf$$subs.awk <<_ACEOF" &&
20715  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20716  echo "_ACEOF"
20717} >conf$$subs.sh ||
20718  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20719ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20720ac_delim='%!_!# '
20721for ac_last_try in false false false false false :; do
20722  . ./conf$$subs.sh ||
20723    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20724
20725  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20726  if test $ac_delim_n = $ac_delim_num; then
20727    break
20728  elif $ac_last_try; then
20729    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20730  else
20731    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20732  fi
20733done
20734rm -f conf$$subs.sh
20735
20736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20737cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20738_ACEOF
20739sed -n '
20740h
20741s/^/S["/; s/!.*/"]=/
20742p
20743g
20744s/^[^!]*!//
20745:repl
20746t repl
20747s/'"$ac_delim"'$//
20748t delim
20749:nl
20750h
20751s/\(.\{148\}\)..*/\1/
20752t more1
20753s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20754p
20755n
20756b repl
20757:more1
20758s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20759p
20760g
20761s/.\{148\}//
20762t nl
20763:delim
20764h
20765s/\(.\{148\}\)..*/\1/
20766t more2
20767s/["\\]/\\&/g; s/^/"/; s/$/"/
20768p
20769b
20770:more2
20771s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20772p
20773g
20774s/.\{148\}//
20775t delim
20776' <conf$$subs.awk | sed '
20777/^[^""]/{
20778  N
20779  s/\n//
20780}
20781' >>$CONFIG_STATUS || ac_write_fail=1
20782rm -f conf$$subs.awk
20783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20784_ACAWK
20785cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20786  for (key in S) S_is_set[key] = 1
20787  FS = ""
20788
20789}
20790{
20791  line = $ 0
20792  nfields = split(line, field, "@")
20793  substed = 0
20794  len = length(field[1])
20795  for (i = 2; i < nfields; i++) {
20796    key = field[i]
20797    keylen = length(key)
20798    if (S_is_set[key]) {
20799      value = S[key]
20800      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20801      len += length(value) + length(field[++i])
20802      substed = 1
20803    } else
20804      len += 1 + keylen
20805  }
20806
20807  print line
20808}
20809
20810_ACAWK
20811_ACEOF
20812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20813if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20814  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20815else
20816  cat
20817fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20818  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20819_ACEOF
20820
20821# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20822# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20823# trailing colons and then remove the whole line if VPATH becomes empty
20824# (actually we leave an empty line to preserve line numbers).
20825if test "x$srcdir" = x.; then
20826  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20827h
20828s///
20829s/^/:/
20830s/[	 ]*$/:/
20831s/:\$(srcdir):/:/g
20832s/:\${srcdir}:/:/g
20833s/:@srcdir@:/:/g
20834s/^:*//
20835s/:*$//
20836x
20837s/\(=[	 ]*\).*/\1/
20838G
20839s/\n//
20840s/^[^=]*=[	 ]*$//
20841}'
20842fi
20843
20844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20845fi # test -n "$CONFIG_FILES"
20846
20847# Set up the scripts for CONFIG_HEADERS section.
20848# No need to generate them if there are no CONFIG_HEADERS.
20849# This happens for instance with `./config.status Makefile'.
20850if test -n "$CONFIG_HEADERS"; then
20851cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20852BEGIN {
20853_ACEOF
20854
20855# Transform confdefs.h into an awk script `defines.awk', embedded as
20856# here-document in config.status, that substitutes the proper values into
20857# config.h.in to produce config.h.
20858
20859# Create a delimiter string that does not exist in confdefs.h, to ease
20860# handling of long lines.
20861ac_delim='%!_!# '
20862for ac_last_try in false false :; do
20863  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20864  if test -z "$ac_tt"; then
20865    break
20866  elif $ac_last_try; then
20867    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20868  else
20869    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20870  fi
20871done
20872
20873# For the awk script, D is an array of macro values keyed by name,
20874# likewise P contains macro parameters if any.  Preserve backslash
20875# newline sequences.
20876
20877ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20878sed -n '
20879s/.\{148\}/&'"$ac_delim"'/g
20880t rset
20881:rset
20882s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20883t def
20884d
20885:def
20886s/\\$//
20887t bsnl
20888s/["\\]/\\&/g
20889s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20890D["\1"]=" \3"/p
20891s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20892d
20893:bsnl
20894s/["\\]/\\&/g
20895s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20896D["\1"]=" \3\\\\\\n"\\/p
20897t cont
20898s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20899t cont
20900d
20901:cont
20902n
20903s/.\{148\}/&'"$ac_delim"'/g
20904t clear
20905:clear
20906s/\\$//
20907t bsnlc
20908s/["\\]/\\&/g; s/^/"/; s/$/"/p
20909d
20910:bsnlc
20911s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20912b cont
20913' <confdefs.h | sed '
20914s/'"$ac_delim"'/"\\\
20915"/g' >>$CONFIG_STATUS || ac_write_fail=1
20916
20917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20918  for (key in D) D_is_set[key] = 1
20919  FS = ""
20920}
20921/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20922  line = \$ 0
20923  split(line, arg, " ")
20924  if (arg[1] == "#") {
20925    defundef = arg[2]
20926    mac1 = arg[3]
20927  } else {
20928    defundef = substr(arg[1], 2)
20929    mac1 = arg[2]
20930  }
20931  split(mac1, mac2, "(") #)
20932  macro = mac2[1]
20933  prefix = substr(line, 1, index(line, defundef) - 1)
20934  if (D_is_set[macro]) {
20935    # Preserve the white space surrounding the "#".
20936    print prefix "define", macro P[macro] D[macro]
20937    next
20938  } else {
20939    # Replace #undef with comments.  This is necessary, for example,
20940    # in the case of _POSIX_SOURCE, which is predefined and required
20941    # on some systems where configure will not decide to define it.
20942    if (defundef == "undef") {
20943      print "/*", prefix defundef, macro, "*/"
20944      next
20945    }
20946  }
20947}
20948{ print }
20949_ACAWK
20950_ACEOF
20951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20952  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20953fi # test -n "$CONFIG_HEADERS"
20954
20955
20956eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20957shift
20958for ac_tag
20959do
20960  case $ac_tag in
20961  :[FHLC]) ac_mode=$ac_tag; continue;;
20962  esac
20963  case $ac_mode$ac_tag in
20964  :[FHL]*:*);;
20965  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20966  :[FH]-) ac_tag=-:-;;
20967  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20968  esac
20969  ac_save_IFS=$IFS
20970  IFS=:
20971  set x $ac_tag
20972  IFS=$ac_save_IFS
20973  shift
20974  ac_file=$1
20975  shift
20976
20977  case $ac_mode in
20978  :L) ac_source=$1;;
20979  :[FH])
20980    ac_file_inputs=
20981    for ac_f
20982    do
20983      case $ac_f in
20984      -) ac_f="$ac_tmp/stdin";;
20985      *) # Look for the file first in the build tree, then in the source tree
20986	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20987	 # because $ac_f cannot contain `:'.
20988	 test -f "$ac_f" ||
20989	   case $ac_f in
20990	   [\\/$]*) false;;
20991	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20992	   esac ||
20993	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20994      esac
20995      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20996      as_fn_append ac_file_inputs " '$ac_f'"
20997    done
20998
20999    # Let's still pretend it is `configure' which instantiates (i.e., don't
21000    # use $as_me), people would be surprised to read:
21001    #    /* config.h.  Generated by config.status.  */
21002    configure_input='Generated from '`
21003	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21004	`' by configure.'
21005    if test x"$ac_file" != x-; then
21006      configure_input="$ac_file.  $configure_input"
21007      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21008$as_echo "$as_me: creating $ac_file" >&6;}
21009    fi
21010    # Neutralize special characters interpreted by sed in replacement strings.
21011    case $configure_input in #(
21012    *\&* | *\|* | *\\* )
21013       ac_sed_conf_input=`$as_echo "$configure_input" |
21014       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21015    *) ac_sed_conf_input=$configure_input;;
21016    esac
21017
21018    case $ac_tag in
21019    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21020      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21021    esac
21022    ;;
21023  esac
21024
21025  ac_dir=`$as_dirname -- "$ac_file" ||
21026$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21027	 X"$ac_file" : 'X\(//\)[^/]' \| \
21028	 X"$ac_file" : 'X\(//\)$' \| \
21029	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21030$as_echo X"$ac_file" |
21031    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21032	    s//\1/
21033	    q
21034	  }
21035	  /^X\(\/\/\)[^/].*/{
21036	    s//\1/
21037	    q
21038	  }
21039	  /^X\(\/\/\)$/{
21040	    s//\1/
21041	    q
21042	  }
21043	  /^X\(\/\).*/{
21044	    s//\1/
21045	    q
21046	  }
21047	  s/.*/./; q'`
21048  as_dir="$ac_dir"; as_fn_mkdir_p
21049  ac_builddir=.
21050
21051case "$ac_dir" in
21052.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21053*)
21054  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21055  # A ".." for each directory in $ac_dir_suffix.
21056  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21057  case $ac_top_builddir_sub in
21058  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21059  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21060  esac ;;
21061esac
21062ac_abs_top_builddir=$ac_pwd
21063ac_abs_builddir=$ac_pwd$ac_dir_suffix
21064# for backward compatibility:
21065ac_top_builddir=$ac_top_build_prefix
21066
21067case $srcdir in
21068  .)  # We are building in place.
21069    ac_srcdir=.
21070    ac_top_srcdir=$ac_top_builddir_sub
21071    ac_abs_top_srcdir=$ac_pwd ;;
21072  [\\/]* | ?:[\\/]* )  # Absolute name.
21073    ac_srcdir=$srcdir$ac_dir_suffix;
21074    ac_top_srcdir=$srcdir
21075    ac_abs_top_srcdir=$srcdir ;;
21076  *) # Relative name.
21077    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21078    ac_top_srcdir=$ac_top_build_prefix$srcdir
21079    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21080esac
21081ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21082
21083
21084  case $ac_mode in
21085  :F)
21086  #
21087  # CONFIG_FILE
21088  #
21089
21090  case $INSTALL in
21091  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21092  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21093  esac
21094  ac_MKDIR_P=$MKDIR_P
21095  case $MKDIR_P in
21096  [\\/$]* | ?:[\\/]* ) ;;
21097  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21098  esac
21099_ACEOF
21100
21101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21102# If the template does not know about datarootdir, expand it.
21103# FIXME: This hack should be removed a few years after 2.60.
21104ac_datarootdir_hack=; ac_datarootdir_seen=
21105ac_sed_dataroot='
21106/datarootdir/ {
21107  p
21108  q
21109}
21110/@datadir@/p
21111/@docdir@/p
21112/@infodir@/p
21113/@localedir@/p
21114/@mandir@/p'
21115case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21116*datarootdir*) ac_datarootdir_seen=yes;;
21117*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21118  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21119$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21120_ACEOF
21121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21122  ac_datarootdir_hack='
21123  s&@datadir@&$datadir&g
21124  s&@docdir@&$docdir&g
21125  s&@infodir@&$infodir&g
21126  s&@localedir@&$localedir&g
21127  s&@mandir@&$mandir&g
21128  s&\\\${datarootdir}&$datarootdir&g' ;;
21129esac
21130_ACEOF
21131
21132# Neutralize VPATH when `$srcdir' = `.'.
21133# Shell code in configure.ac might set extrasub.
21134# FIXME: do we really want to maintain this feature?
21135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21136ac_sed_extra="$ac_vpsub
21137$extrasub
21138_ACEOF
21139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21140:t
21141/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21142s|@configure_input@|$ac_sed_conf_input|;t t
21143s&@top_builddir@&$ac_top_builddir_sub&;t t
21144s&@top_build_prefix@&$ac_top_build_prefix&;t t
21145s&@srcdir@&$ac_srcdir&;t t
21146s&@abs_srcdir@&$ac_abs_srcdir&;t t
21147s&@top_srcdir@&$ac_top_srcdir&;t t
21148s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21149s&@builddir@&$ac_builddir&;t t
21150s&@abs_builddir@&$ac_abs_builddir&;t t
21151s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21152s&@INSTALL@&$ac_INSTALL&;t t
21153s&@MKDIR_P@&$ac_MKDIR_P&;t t
21154$ac_datarootdir_hack
21155"
21156eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21157  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21158
21159test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21160  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21161  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21162      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21163  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21164which seems to be undefined.  Please make sure it is defined" >&5
21165$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21166which seems to be undefined.  Please make sure it is defined" >&2;}
21167
21168  rm -f "$ac_tmp/stdin"
21169  case $ac_file in
21170  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21171  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21172  esac \
21173  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21174 ;;
21175  :H)
21176  #
21177  # CONFIG_HEADER
21178  #
21179  if test x"$ac_file" != x-; then
21180    {
21181      $as_echo "/* $configure_input  */" \
21182      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21183    } >"$ac_tmp/config.h" \
21184      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21185    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21186      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21187$as_echo "$as_me: $ac_file is unchanged" >&6;}
21188    else
21189      rm -f "$ac_file"
21190      mv "$ac_tmp/config.h" "$ac_file" \
21191	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21192    fi
21193  else
21194    $as_echo "/* $configure_input  */" \
21195      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21196      || as_fn_error $? "could not create -" "$LINENO" 5
21197  fi
21198# Compute "$ac_file"'s index in $config_headers.
21199_am_arg="$ac_file"
21200_am_stamp_count=1
21201for _am_header in $config_headers :; do
21202  case $_am_header in
21203    $_am_arg | $_am_arg:* )
21204      break ;;
21205    * )
21206      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21207  esac
21208done
21209echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21210$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21211	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21212	 X"$_am_arg" : 'X\(//\)$' \| \
21213	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21214$as_echo X"$_am_arg" |
21215    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21216	    s//\1/
21217	    q
21218	  }
21219	  /^X\(\/\/\)[^/].*/{
21220	    s//\1/
21221	    q
21222	  }
21223	  /^X\(\/\/\)$/{
21224	    s//\1/
21225	    q
21226	  }
21227	  /^X\(\/\).*/{
21228	    s//\1/
21229	    q
21230	  }
21231	  s/.*/./; q'`/stamp-h$_am_stamp_count
21232 ;;
21233
21234  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21235$as_echo "$as_me: executing $ac_file commands" >&6;}
21236 ;;
21237  esac
21238
21239
21240  case $ac_file$ac_mode in
21241    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21242  # Older Autoconf quotes --file arguments for eval, but not when files
21243  # are listed without --file.  Let's play safe and only enable the eval
21244  # if we detect the quoting.
21245  case $CONFIG_FILES in
21246  *\'*) eval set x "$CONFIG_FILES" ;;
21247  *)   set x $CONFIG_FILES ;;
21248  esac
21249  shift
21250  for mf
21251  do
21252    # Strip MF so we end up with the name of the file.
21253    mf=`echo "$mf" | sed -e 's/:.*$//'`
21254    # Check whether this is an Automake generated Makefile or not.
21255    # We used to match only the files named 'Makefile.in', but
21256    # some people rename them; so instead we look at the file content.
21257    # Grep'ing the first line is not enough: some people post-process
21258    # each Makefile.in and add a new line on top of each file to say so.
21259    # Grep'ing the whole file is not good either: AIX grep has a line
21260    # limit of 2048, but all sed's we know have understand at least 4000.
21261    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21262      dirpart=`$as_dirname -- "$mf" ||
21263$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21264	 X"$mf" : 'X\(//\)[^/]' \| \
21265	 X"$mf" : 'X\(//\)$' \| \
21266	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21267$as_echo X"$mf" |
21268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21269	    s//\1/
21270	    q
21271	  }
21272	  /^X\(\/\/\)[^/].*/{
21273	    s//\1/
21274	    q
21275	  }
21276	  /^X\(\/\/\)$/{
21277	    s//\1/
21278	    q
21279	  }
21280	  /^X\(\/\).*/{
21281	    s//\1/
21282	    q
21283	  }
21284	  s/.*/./; q'`
21285    else
21286      continue
21287    fi
21288    # Extract the definition of DEPDIR, am__include, and am__quote
21289    # from the Makefile without running 'make'.
21290    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21291    test -z "$DEPDIR" && continue
21292    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21293    test -z "$am__include" && continue
21294    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21295    # Find all dependency output files, they are included files with
21296    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21297    # simplest approach to changing $(DEPDIR) to its actual value in the
21298    # expansion.
21299    for file in `sed -n "
21300      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21301	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21302      # Make sure the directory exists.
21303      test -f "$dirpart/$file" && continue
21304      fdir=`$as_dirname -- "$file" ||
21305$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21306	 X"$file" : 'X\(//\)[^/]' \| \
21307	 X"$file" : 'X\(//\)$' \| \
21308	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21309$as_echo X"$file" |
21310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21311	    s//\1/
21312	    q
21313	  }
21314	  /^X\(\/\/\)[^/].*/{
21315	    s//\1/
21316	    q
21317	  }
21318	  /^X\(\/\/\)$/{
21319	    s//\1/
21320	    q
21321	  }
21322	  /^X\(\/\).*/{
21323	    s//\1/
21324	    q
21325	  }
21326	  s/.*/./; q'`
21327      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21328      # echo "creating $dirpart/$file"
21329      echo '# dummy' > "$dirpart/$file"
21330    done
21331  done
21332}
21333 ;;
21334    "libtool":C)
21335
21336    # See if we are running on zsh, and set the options which allow our
21337    # commands through without removal of \ escapes.
21338    if test -n "${ZSH_VERSION+set}" ; then
21339      setopt NO_GLOB_SUBST
21340    fi
21341
21342    cfgfile="${ofile}T"
21343    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21344    $RM "$cfgfile"
21345
21346    cat <<_LT_EOF >> "$cfgfile"
21347#! $SHELL
21348
21349# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21350# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21351# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21352# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21353#
21354#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21355#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21356#   Written by Gordon Matzigkeit, 1996
21357#
21358#   This file is part of GNU Libtool.
21359#
21360# GNU Libtool is free software; you can redistribute it and/or
21361# modify it under the terms of the GNU General Public License as
21362# published by the Free Software Foundation; either version 2 of
21363# the License, or (at your option) any later version.
21364#
21365# As a special exception to the GNU General Public License,
21366# if you distribute this file as part of a program or library that
21367# is built using GNU Libtool, you may include this file under the
21368# same distribution terms that you use for the rest of that program.
21369#
21370# GNU Libtool is distributed in the hope that it will be useful,
21371# but WITHOUT ANY WARRANTY; without even the implied warranty of
21372# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21373# GNU General Public License for more details.
21374#
21375# You should have received a copy of the GNU General Public License
21376# along with GNU Libtool; see the file COPYING.  If not, a copy
21377# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21378# obtained by writing to the Free Software Foundation, Inc.,
21379# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21380
21381
21382# The names of the tagged configurations supported by this script.
21383available_tags="CXX "
21384
21385# ### BEGIN LIBTOOL CONFIG
21386
21387# Which release of libtool.m4 was used?
21388macro_version=$macro_version
21389macro_revision=$macro_revision
21390
21391# Whether or not to build shared libraries.
21392build_libtool_libs=$enable_shared
21393
21394# Whether or not to build static libraries.
21395build_old_libs=$enable_static
21396
21397# What type of objects to build.
21398pic_mode=$pic_mode
21399
21400# Whether or not to optimize for fast installation.
21401fast_install=$enable_fast_install
21402
21403# Shell to use when invoking shell scripts.
21404SHELL=$lt_SHELL
21405
21406# An echo program that protects backslashes.
21407ECHO=$lt_ECHO
21408
21409# The host system.
21410host_alias=$host_alias
21411host=$host
21412host_os=$host_os
21413
21414# The build system.
21415build_alias=$build_alias
21416build=$build
21417build_os=$build_os
21418
21419# A sed program that does not truncate output.
21420SED=$lt_SED
21421
21422# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21423Xsed="\$SED -e 1s/^X//"
21424
21425# A grep program that handles long lines.
21426GREP=$lt_GREP
21427
21428# An ERE matcher.
21429EGREP=$lt_EGREP
21430
21431# A literal string matcher.
21432FGREP=$lt_FGREP
21433
21434# A BSD- or MS-compatible name lister.
21435NM=$lt_NM
21436
21437# Whether we need soft or hard links.
21438LN_S=$lt_LN_S
21439
21440# What is the maximum length of a command?
21441max_cmd_len=$max_cmd_len
21442
21443# Object file suffix (normally "o").
21444objext=$ac_objext
21445
21446# Executable file suffix (normally "").
21447exeext=$exeext
21448
21449# whether the shell understands "unset".
21450lt_unset=$lt_unset
21451
21452# turn spaces into newlines.
21453SP2NL=$lt_lt_SP2NL
21454
21455# turn newlines into spaces.
21456NL2SP=$lt_lt_NL2SP
21457
21458# An object symbol dumper.
21459OBJDUMP=$lt_OBJDUMP
21460
21461# Method to check whether dependent libraries are shared objects.
21462deplibs_check_method=$lt_deplibs_check_method
21463
21464# Command to use when deplibs_check_method == "file_magic".
21465file_magic_cmd=$lt_file_magic_cmd
21466
21467# The archiver.
21468AR=$lt_AR
21469AR_FLAGS=$lt_AR_FLAGS
21470
21471# A symbol stripping program.
21472STRIP=$lt_STRIP
21473
21474# Commands used to install an old-style archive.
21475RANLIB=$lt_RANLIB
21476old_postinstall_cmds=$lt_old_postinstall_cmds
21477old_postuninstall_cmds=$lt_old_postuninstall_cmds
21478
21479# Whether to use a lock for old archive extraction.
21480lock_old_archive_extraction=$lock_old_archive_extraction
21481
21482# A C compiler.
21483LTCC=$lt_CC
21484
21485# LTCC compiler flags.
21486LTCFLAGS=$lt_CFLAGS
21487
21488# Take the output of nm and produce a listing of raw symbols and C names.
21489global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21490
21491# Transform the output of nm in a proper C declaration.
21492global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21493
21494# Transform the output of nm in a C name address pair.
21495global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21496
21497# Transform the output of nm in a C name address pair when lib prefix is needed.
21498global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21499
21500# The name of the directory that contains temporary libtool files.
21501objdir=$objdir
21502
21503# Used to examine libraries when file_magic_cmd begins with "file".
21504MAGIC_CMD=$MAGIC_CMD
21505
21506# Must we lock files when doing compilation?
21507need_locks=$lt_need_locks
21508
21509# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21510DSYMUTIL=$lt_DSYMUTIL
21511
21512# Tool to change global to local symbols on Mac OS X.
21513NMEDIT=$lt_NMEDIT
21514
21515# Tool to manipulate fat objects and archives on Mac OS X.
21516LIPO=$lt_LIPO
21517
21518# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21519OTOOL=$lt_OTOOL
21520
21521# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21522OTOOL64=$lt_OTOOL64
21523
21524# Old archive suffix (normally "a").
21525libext=$libext
21526
21527# Shared library suffix (normally ".so").
21528shrext_cmds=$lt_shrext_cmds
21529
21530# The commands to extract the exported symbol list from a shared archive.
21531extract_expsyms_cmds=$lt_extract_expsyms_cmds
21532
21533# Variables whose values should be saved in libtool wrapper scripts and
21534# restored at link time.
21535variables_saved_for_relink=$lt_variables_saved_for_relink
21536
21537# Do we need the "lib" prefix for modules?
21538need_lib_prefix=$need_lib_prefix
21539
21540# Do we need a version for libraries?
21541need_version=$need_version
21542
21543# Library versioning type.
21544version_type=$version_type
21545
21546# Shared library runtime path variable.
21547runpath_var=$runpath_var
21548
21549# Shared library path variable.
21550shlibpath_var=$shlibpath_var
21551
21552# Is shlibpath searched before the hard-coded library search path?
21553shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21554
21555# Format of library name prefix.
21556libname_spec=$lt_libname_spec
21557
21558# List of archive names.  First name is the real one, the rest are links.
21559# The last name is the one that the linker finds with -lNAME
21560library_names_spec=$lt_library_names_spec
21561
21562# The coded name of the library, if different from the real name.
21563soname_spec=$lt_soname_spec
21564
21565# Permission mode override for installation of shared libraries.
21566install_override_mode=$lt_install_override_mode
21567
21568# Command to use after installation of a shared archive.
21569postinstall_cmds=$lt_postinstall_cmds
21570
21571# Command to use after uninstallation of a shared archive.
21572postuninstall_cmds=$lt_postuninstall_cmds
21573
21574# Commands used to finish a libtool library installation in a directory.
21575finish_cmds=$lt_finish_cmds
21576
21577# As "finish_cmds", except a single script fragment to be evaled but
21578# not shown.
21579finish_eval=$lt_finish_eval
21580
21581# Whether we should hardcode library paths into libraries.
21582hardcode_into_libs=$hardcode_into_libs
21583
21584# Compile-time system search path for libraries.
21585sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21586
21587# Run-time system search path for libraries.
21588sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21589
21590# Whether dlopen is supported.
21591dlopen_support=$enable_dlopen
21592
21593# Whether dlopen of programs is supported.
21594dlopen_self=$enable_dlopen_self
21595
21596# Whether dlopen of statically linked programs is supported.
21597dlopen_self_static=$enable_dlopen_self_static
21598
21599# Commands to strip libraries.
21600old_striplib=$lt_old_striplib
21601striplib=$lt_striplib
21602
21603
21604# The linker used to build libraries.
21605LD=$lt_LD
21606
21607# How to create reloadable object files.
21608reload_flag=$lt_reload_flag
21609reload_cmds=$lt_reload_cmds
21610
21611# Commands used to build an old-style archive.
21612old_archive_cmds=$lt_old_archive_cmds
21613
21614# A language specific compiler.
21615CC=$lt_compiler
21616
21617# Is the compiler the GNU compiler?
21618with_gcc=$GCC
21619
21620# Compiler flag to turn off builtin functions.
21621no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21622
21623# How to pass a linker flag through the compiler.
21624wl=$lt_lt_prog_compiler_wl
21625
21626# Additional compiler flags for building library objects.
21627pic_flag=$lt_lt_prog_compiler_pic
21628
21629# Compiler flag to prevent dynamic linking.
21630link_static_flag=$lt_lt_prog_compiler_static
21631
21632# Does compiler simultaneously support -c and -o options?
21633compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21634
21635# Whether or not to add -lc for building shared libraries.
21636build_libtool_need_lc=$archive_cmds_need_lc
21637
21638# Whether or not to disallow shared libs when runtime libs are static.
21639allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21640
21641# Compiler flag to allow reflexive dlopens.
21642export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21643
21644# Compiler flag to generate shared objects directly from archives.
21645whole_archive_flag_spec=$lt_whole_archive_flag_spec
21646
21647# Whether the compiler copes with passing no objects directly.
21648compiler_needs_object=$lt_compiler_needs_object
21649
21650# Create an old-style archive from a shared archive.
21651old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21652
21653# Create a temporary old-style archive to link instead of a shared archive.
21654old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21655
21656# Commands used to build a shared archive.
21657archive_cmds=$lt_archive_cmds
21658archive_expsym_cmds=$lt_archive_expsym_cmds
21659
21660# Commands used to build a loadable module if different from building
21661# a shared archive.
21662module_cmds=$lt_module_cmds
21663module_expsym_cmds=$lt_module_expsym_cmds
21664
21665# Whether we are building with GNU ld or not.
21666with_gnu_ld=$lt_with_gnu_ld
21667
21668# Flag that allows shared libraries with undefined symbols to be built.
21669allow_undefined_flag=$lt_allow_undefined_flag
21670
21671# Flag that enforces no undefined symbols.
21672no_undefined_flag=$lt_no_undefined_flag
21673
21674# Flag to hardcode \$libdir into a binary during linking.
21675# This must work even if \$libdir does not exist
21676hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21677
21678# If ld is used when linking, flag to hardcode \$libdir into a binary
21679# during linking.  This must work even if \$libdir does not exist.
21680hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21681
21682# Whether we need a single "-rpath" flag with a separated argument.
21683hardcode_libdir_separator=$lt_hardcode_libdir_separator
21684
21685# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21686# DIR into the resulting binary.
21687hardcode_direct=$hardcode_direct
21688
21689# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21690# DIR into the resulting binary and the resulting library dependency is
21691# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21692# library is relocated.
21693hardcode_direct_absolute=$hardcode_direct_absolute
21694
21695# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21696# into the resulting binary.
21697hardcode_minus_L=$hardcode_minus_L
21698
21699# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21700# into the resulting binary.
21701hardcode_shlibpath_var=$hardcode_shlibpath_var
21702
21703# Set to "yes" if building a shared library automatically hardcodes DIR
21704# into the library and all subsequent libraries and executables linked
21705# against it.
21706hardcode_automatic=$hardcode_automatic
21707
21708# Set to yes if linker adds runtime paths of dependent libraries
21709# to runtime path list.
21710inherit_rpath=$inherit_rpath
21711
21712# Whether libtool must link a program against all its dependency libraries.
21713link_all_deplibs=$link_all_deplibs
21714
21715# Fix the shell variable \$srcfile for the compiler.
21716fix_srcfile_path=$lt_fix_srcfile_path
21717
21718# Set to "yes" if exported symbols are required.
21719always_export_symbols=$always_export_symbols
21720
21721# The commands to list exported symbols.
21722export_symbols_cmds=$lt_export_symbols_cmds
21723
21724# Symbols that should not be listed in the preloaded symbols.
21725exclude_expsyms=$lt_exclude_expsyms
21726
21727# Symbols that must always be exported.
21728include_expsyms=$lt_include_expsyms
21729
21730# Commands necessary for linking programs (against libraries) with templates.
21731prelink_cmds=$lt_prelink_cmds
21732
21733# Specify filename containing input files.
21734file_list_spec=$lt_file_list_spec
21735
21736# How to hardcode a shared library path into an executable.
21737hardcode_action=$hardcode_action
21738
21739# The directories searched by this compiler when creating a shared library.
21740compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21741
21742# Dependencies to place before and after the objects being linked to
21743# create a shared library.
21744predep_objects=$lt_predep_objects
21745postdep_objects=$lt_postdep_objects
21746predeps=$lt_predeps
21747postdeps=$lt_postdeps
21748
21749# The library search path used internally by the compiler when linking
21750# a shared library.
21751compiler_lib_search_path=$lt_compiler_lib_search_path
21752
21753# ### END LIBTOOL CONFIG
21754
21755_LT_EOF
21756
21757  case $host_os in
21758  aix3*)
21759    cat <<\_LT_EOF >> "$cfgfile"
21760# AIX sometimes has problems with the GCC collect2 program.  For some
21761# reason, if we set the COLLECT_NAMES environment variable, the problems
21762# vanish in a puff of smoke.
21763if test "X${COLLECT_NAMES+set}" != Xset; then
21764  COLLECT_NAMES=
21765  export COLLECT_NAMES
21766fi
21767_LT_EOF
21768    ;;
21769  esac
21770
21771
21772ltmain="$ac_aux_dir/ltmain.sh"
21773
21774
21775  # We use sed instead of cat because bash on DJGPP gets confused if
21776  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21777  # text mode, it properly converts lines to CR/LF.  This bash problem
21778  # is reportedly fixed, but why not run on old versions too?
21779  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21780    || (rm -f "$cfgfile"; exit 1)
21781
21782  case $xsi_shell in
21783  yes)
21784    cat << \_LT_EOF >> "$cfgfile"
21785
21786# func_dirname file append nondir_replacement
21787# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21788# otherwise set result to NONDIR_REPLACEMENT.
21789func_dirname ()
21790{
21791  case ${1} in
21792    */*) func_dirname_result="${1%/*}${2}" ;;
21793    *  ) func_dirname_result="${3}" ;;
21794  esac
21795}
21796
21797# func_basename file
21798func_basename ()
21799{
21800  func_basename_result="${1##*/}"
21801}
21802
21803# func_dirname_and_basename file append nondir_replacement
21804# perform func_basename and func_dirname in a single function
21805# call:
21806#   dirname:  Compute the dirname of FILE.  If nonempty,
21807#             add APPEND to the result, otherwise set result
21808#             to NONDIR_REPLACEMENT.
21809#             value returned in "$func_dirname_result"
21810#   basename: Compute filename of FILE.
21811#             value retuned in "$func_basename_result"
21812# Implementation must be kept synchronized with func_dirname
21813# and func_basename. For efficiency, we do not delegate to
21814# those functions but instead duplicate the functionality here.
21815func_dirname_and_basename ()
21816{
21817  case ${1} in
21818    */*) func_dirname_result="${1%/*}${2}" ;;
21819    *  ) func_dirname_result="${3}" ;;
21820  esac
21821  func_basename_result="${1##*/}"
21822}
21823
21824# func_stripname prefix suffix name
21825# strip PREFIX and SUFFIX off of NAME.
21826# PREFIX and SUFFIX must not contain globbing or regex special
21827# characters, hashes, percent signs, but SUFFIX may contain a leading
21828# dot (in which case that matches only a dot).
21829func_stripname ()
21830{
21831  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21832  # positional parameters, so assign one to ordinary parameter first.
21833  func_stripname_result=${3}
21834  func_stripname_result=${func_stripname_result#"${1}"}
21835  func_stripname_result=${func_stripname_result%"${2}"}
21836}
21837
21838# func_opt_split
21839func_opt_split ()
21840{
21841  func_opt_split_opt=${1%%=*}
21842  func_opt_split_arg=${1#*=}
21843}
21844
21845# func_lo2o object
21846func_lo2o ()
21847{
21848  case ${1} in
21849    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21850    *)    func_lo2o_result=${1} ;;
21851  esac
21852}
21853
21854# func_xform libobj-or-source
21855func_xform ()
21856{
21857  func_xform_result=${1%.*}.lo
21858}
21859
21860# func_arith arithmetic-term...
21861func_arith ()
21862{
21863  func_arith_result=$(( $* ))
21864}
21865
21866# func_len string
21867# STRING may not start with a hyphen.
21868func_len ()
21869{
21870  func_len_result=${#1}
21871}
21872
21873_LT_EOF
21874    ;;
21875  *) # Bourne compatible functions.
21876    cat << \_LT_EOF >> "$cfgfile"
21877
21878# func_dirname file append nondir_replacement
21879# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21880# otherwise set result to NONDIR_REPLACEMENT.
21881func_dirname ()
21882{
21883  # Extract subdirectory from the argument.
21884  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21885  if test "X$func_dirname_result" = "X${1}"; then
21886    func_dirname_result="${3}"
21887  else
21888    func_dirname_result="$func_dirname_result${2}"
21889  fi
21890}
21891
21892# func_basename file
21893func_basename ()
21894{
21895  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21896}
21897
21898
21899# func_stripname prefix suffix name
21900# strip PREFIX and SUFFIX off of NAME.
21901# PREFIX and SUFFIX must not contain globbing or regex special
21902# characters, hashes, percent signs, but SUFFIX may contain a leading
21903# dot (in which case that matches only a dot).
21904# func_strip_suffix prefix name
21905func_stripname ()
21906{
21907  case ${2} in
21908    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21909    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21910  esac
21911}
21912
21913# sed scripts:
21914my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21915my_sed_long_arg='1s/^-[^=]*=//'
21916
21917# func_opt_split
21918func_opt_split ()
21919{
21920  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21921  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
21922}
21923
21924# func_lo2o object
21925func_lo2o ()
21926{
21927  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
21928}
21929
21930# func_xform libobj-or-source
21931func_xform ()
21932{
21933  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
21934}
21935
21936# func_arith arithmetic-term...
21937func_arith ()
21938{
21939  func_arith_result=`expr "$@"`
21940}
21941
21942# func_len string
21943# STRING may not start with a hyphen.
21944func_len ()
21945{
21946  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21947}
21948
21949_LT_EOF
21950esac
21951
21952case $lt_shell_append in
21953  yes)
21954    cat << \_LT_EOF >> "$cfgfile"
21955
21956# func_append var value
21957# Append VALUE to the end of shell variable VAR.
21958func_append ()
21959{
21960  eval "$1+=\$2"
21961}
21962_LT_EOF
21963    ;;
21964  *)
21965    cat << \_LT_EOF >> "$cfgfile"
21966
21967# func_append var value
21968# Append VALUE to the end of shell variable VAR.
21969func_append ()
21970{
21971  eval "$1=\$$1\$2"
21972}
21973
21974_LT_EOF
21975    ;;
21976  esac
21977
21978
21979  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21980    || (rm -f "$cfgfile"; exit 1)
21981
21982  mv -f "$cfgfile" "$ofile" ||
21983    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21984  chmod +x "$ofile"
21985
21986
21987    cat <<_LT_EOF >> "$ofile"
21988
21989# ### BEGIN LIBTOOL TAG CONFIG: CXX
21990
21991# The linker used to build libraries.
21992LD=$lt_LD_CXX
21993
21994# How to create reloadable object files.
21995reload_flag=$lt_reload_flag_CXX
21996reload_cmds=$lt_reload_cmds_CXX
21997
21998# Commands used to build an old-style archive.
21999old_archive_cmds=$lt_old_archive_cmds_CXX
22000
22001# A language specific compiler.
22002CC=$lt_compiler_CXX
22003
22004# Is the compiler the GNU compiler?
22005with_gcc=$GCC_CXX
22006
22007# Compiler flag to turn off builtin functions.
22008no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22009
22010# How to pass a linker flag through the compiler.
22011wl=$lt_lt_prog_compiler_wl_CXX
22012
22013# Additional compiler flags for building library objects.
22014pic_flag=$lt_lt_prog_compiler_pic_CXX
22015
22016# Compiler flag to prevent dynamic linking.
22017link_static_flag=$lt_lt_prog_compiler_static_CXX
22018
22019# Does compiler simultaneously support -c and -o options?
22020compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22021
22022# Whether or not to add -lc for building shared libraries.
22023build_libtool_need_lc=$archive_cmds_need_lc_CXX
22024
22025# Whether or not to disallow shared libs when runtime libs are static.
22026allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22027
22028# Compiler flag to allow reflexive dlopens.
22029export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22030
22031# Compiler flag to generate shared objects directly from archives.
22032whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22033
22034# Whether the compiler copes with passing no objects directly.
22035compiler_needs_object=$lt_compiler_needs_object_CXX
22036
22037# Create an old-style archive from a shared archive.
22038old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22039
22040# Create a temporary old-style archive to link instead of a shared archive.
22041old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22042
22043# Commands used to build a shared archive.
22044archive_cmds=$lt_archive_cmds_CXX
22045archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22046
22047# Commands used to build a loadable module if different from building
22048# a shared archive.
22049module_cmds=$lt_module_cmds_CXX
22050module_expsym_cmds=$lt_module_expsym_cmds_CXX
22051
22052# Whether we are building with GNU ld or not.
22053with_gnu_ld=$lt_with_gnu_ld_CXX
22054
22055# Flag that allows shared libraries with undefined symbols to be built.
22056allow_undefined_flag=$lt_allow_undefined_flag_CXX
22057
22058# Flag that enforces no undefined symbols.
22059no_undefined_flag=$lt_no_undefined_flag_CXX
22060
22061# Flag to hardcode \$libdir into a binary during linking.
22062# This must work even if \$libdir does not exist
22063hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22064
22065# If ld is used when linking, flag to hardcode \$libdir into a binary
22066# during linking.  This must work even if \$libdir does not exist.
22067hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22068
22069# Whether we need a single "-rpath" flag with a separated argument.
22070hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22071
22072# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22073# DIR into the resulting binary.
22074hardcode_direct=$hardcode_direct_CXX
22075
22076# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22077# DIR into the resulting binary and the resulting library dependency is
22078# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22079# library is relocated.
22080hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22081
22082# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22083# into the resulting binary.
22084hardcode_minus_L=$hardcode_minus_L_CXX
22085
22086# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22087# into the resulting binary.
22088hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22089
22090# Set to "yes" if building a shared library automatically hardcodes DIR
22091# into the library and all subsequent libraries and executables linked
22092# against it.
22093hardcode_automatic=$hardcode_automatic_CXX
22094
22095# Set to yes if linker adds runtime paths of dependent libraries
22096# to runtime path list.
22097inherit_rpath=$inherit_rpath_CXX
22098
22099# Whether libtool must link a program against all its dependency libraries.
22100link_all_deplibs=$link_all_deplibs_CXX
22101
22102# Fix the shell variable \$srcfile for the compiler.
22103fix_srcfile_path=$lt_fix_srcfile_path_CXX
22104
22105# Set to "yes" if exported symbols are required.
22106always_export_symbols=$always_export_symbols_CXX
22107
22108# The commands to list exported symbols.
22109export_symbols_cmds=$lt_export_symbols_cmds_CXX
22110
22111# Symbols that should not be listed in the preloaded symbols.
22112exclude_expsyms=$lt_exclude_expsyms_CXX
22113
22114# Symbols that must always be exported.
22115include_expsyms=$lt_include_expsyms_CXX
22116
22117# Commands necessary for linking programs (against libraries) with templates.
22118prelink_cmds=$lt_prelink_cmds_CXX
22119
22120# Specify filename containing input files.
22121file_list_spec=$lt_file_list_spec_CXX
22122
22123# How to hardcode a shared library path into an executable.
22124hardcode_action=$hardcode_action_CXX
22125
22126# The directories searched by this compiler when creating a shared library.
22127compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22128
22129# Dependencies to place before and after the objects being linked to
22130# create a shared library.
22131predep_objects=$lt_predep_objects_CXX
22132postdep_objects=$lt_postdep_objects_CXX
22133predeps=$lt_predeps_CXX
22134postdeps=$lt_postdeps_CXX
22135
22136# The library search path used internally by the compiler when linking
22137# a shared library.
22138compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22139
22140# ### END LIBTOOL TAG CONFIG: CXX
22141_LT_EOF
22142
22143 ;;
22144    "default-1":C)
22145    for ac_file in $CONFIG_FILES; do
22146      # Support "outfile[:infile[:infile...]]"
22147      case "$ac_file" in
22148        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22149      esac
22150      # PO directories have a Makefile.in generated from Makefile.in.in.
22151      case "$ac_file" in */Makefile.in)
22152        # Adjust a relative srcdir.
22153        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22154        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22155        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22156        # In autoconf-2.13 it is called $ac_given_srcdir.
22157        # In autoconf-2.50 it is called $srcdir.
22158        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22159        case "$ac_given_srcdir" in
22160          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22161          /*) top_srcdir="$ac_given_srcdir" ;;
22162          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22163        esac
22164        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22165          rm -f "$ac_dir/POTFILES"
22166          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22167          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22168          POMAKEFILEDEPS="POTFILES.in"
22169          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22170          # on $ac_dir but don't depend on user-specified configuration
22171          # parameters.
22172          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22173            # The LINGUAS file contains the set of available languages.
22174            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22175              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22176            fi
22177            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22178            # Hide the ALL_LINGUAS assigment from automake.
22179            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22180            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22181          else
22182            # The set of available languages was given in configure.ac.
22183            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22184          fi
22185          case "$ac_given_srcdir" in
22186            .) srcdirpre= ;;
22187            *) srcdirpre='$(srcdir)/' ;;
22188          esac
22189          POFILES=
22190          GMOFILES=
22191          UPDATEPOFILES=
22192          DUMMYPOFILES=
22193          for lang in $ALL_LINGUAS; do
22194            POFILES="$POFILES $srcdirpre$lang.po"
22195            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22196            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22197            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22198          done
22199          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22200          # environment variable.
22201          INST_LINGUAS=
22202          if test -n "$ALL_LINGUAS"; then
22203            for presentlang in $ALL_LINGUAS; do
22204              useit=no
22205              if test "%UNSET%" != "$LINGUAS"; then
22206                desiredlanguages="$LINGUAS"
22207              else
22208                desiredlanguages="$ALL_LINGUAS"
22209              fi
22210              for desiredlang in $desiredlanguages; do
22211                # Use the presentlang catalog if desiredlang is
22212                #   a. equal to presentlang, or
22213                #   b. a variant of presentlang (because in this case,
22214                #      presentlang can be used as a fallback for messages
22215                #      which are not translated in the desiredlang catalog).
22216                case "$desiredlang" in
22217                  "$presentlang"*) useit=yes;;
22218                esac
22219              done
22220              if test $useit = yes; then
22221                INST_LINGUAS="$INST_LINGUAS $presentlang"
22222              fi
22223            done
22224          fi
22225          CATALOGS=
22226          if test -n "$INST_LINGUAS"; then
22227            for lang in $INST_LINGUAS; do
22228              CATALOGS="$CATALOGS $lang.gmo"
22229            done
22230          fi
22231          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22232          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22233          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22234            if test -f "$f"; then
22235              case "$f" in
22236                *.orig | *.bak | *~) ;;
22237                *) cat "$f" >> "$ac_dir/Makefile" ;;
22238              esac
22239            fi
22240          done
22241        fi
22242        ;;
22243      esac
22244    done ;;
22245    "default-2":C)
22246    for ac_file in $CONFIG_FILES; do
22247      # Support "outfile[:infile[:infile...]]"
22248      case "$ac_file" in
22249        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22250      esac
22251      # PO directories have a Makefile.in generated from Makefile.in.in.
22252      case "$ac_file" in */Makefile.in)
22253        # Adjust a relative srcdir.
22254        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22255        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22256        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22257        # In autoconf-2.13 it is called $ac_given_srcdir.
22258        # In autoconf-2.50 it is called $srcdir.
22259        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22260        case "$ac_given_srcdir" in
22261          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22262          /*) top_srcdir="$ac_given_srcdir" ;;
22263          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22264        esac
22265        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22266          rm -f "$ac_dir/POTFILES"
22267          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22268          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22269          POMAKEFILEDEPS="POTFILES.in"
22270          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22271          # on $ac_dir but don't depend on user-specified configuration
22272          # parameters.
22273          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22274            # The LINGUAS file contains the set of available languages.
22275            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22276              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22277            fi
22278            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22279            # Hide the ALL_LINGUAS assigment from automake.
22280            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22281            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22282          else
22283            # The set of available languages was given in configure.ac.
22284            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22285          fi
22286          case "$ac_given_srcdir" in
22287            .) srcdirpre= ;;
22288            *) srcdirpre='$(srcdir)/' ;;
22289          esac
22290          POFILES=
22291          GMOFILES=
22292          UPDATEPOFILES=
22293          DUMMYPOFILES=
22294          for lang in $ALL_LINGUAS; do
22295            POFILES="$POFILES $srcdirpre$lang.po"
22296            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22297            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22298            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22299          done
22300          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22301          # environment variable.
22302          INST_LINGUAS=
22303          if test -n "$ALL_LINGUAS"; then
22304            for presentlang in $ALL_LINGUAS; do
22305              useit=no
22306              if test "%UNSET%" != "$LINGUAS"; then
22307                desiredlanguages="$LINGUAS"
22308              else
22309                desiredlanguages="$ALL_LINGUAS"
22310              fi
22311              for desiredlang in $desiredlanguages; do
22312                # Use the presentlang catalog if desiredlang is
22313                #   a. equal to presentlang, or
22314                #   b. a variant of presentlang (because in this case,
22315                #      presentlang can be used as a fallback for messages
22316                #      which are not translated in the desiredlang catalog).
22317                case "$desiredlang" in
22318                  "$presentlang"*) useit=yes;;
22319                esac
22320              done
22321              if test $useit = yes; then
22322                INST_LINGUAS="$INST_LINGUAS $presentlang"
22323              fi
22324            done
22325          fi
22326          CATALOGS=
22327          if test -n "$INST_LINGUAS"; then
22328            for lang in $INST_LINGUAS; do
22329              CATALOGS="$CATALOGS $lang.gmo"
22330            done
22331          fi
22332          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22333          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22334          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22335            if test -f "$f"; then
22336              case "$f" in
22337                *.orig | *.bak | *~) ;;
22338                *) cat "$f" >> "$ac_dir/Makefile" ;;
22339              esac
22340            fi
22341          done
22342        fi
22343        ;;
22344      esac
22345    done ;;
22346    "default":C)
22347case "$srcdir" in
22348  .) srcdirpre= ;;
22349  *) srcdirpre='$(srcdir)/' ;;
22350esac
22351POFILES=
22352GMOFILES=
22353for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22354  if test $lang != dummy; then
22355    POFILES="$POFILES $srcdirpre$lang.po"
22356    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22357  fi
22358done
22359sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
22360    -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
22361    -e "s,@POFILES@,$POFILES," \
22362    -e "s,@GMOFILES@,$GMOFILES," \
22363    po/Makefile.in > po/Makefile ;;
22364
22365  esac
22366done # for ac_tag
22367
22368
22369as_fn_exit 0
22370_ACEOF
22371ac_clean_files=$ac_clean_files_save
22372
22373test $ac_write_fail = 0 ||
22374  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22375
22376
22377# configure is writing to config.log, and then calls config.status.
22378# config.status does its own redirection, appending to config.log.
22379# Unfortunately, on DOS this fails, as config.log is still kept open
22380# by configure, so config.status won't be able to write to it; its
22381# output is simply discarded.  So we exec the FD to /dev/null,
22382# effectively closing config.log, so it can be properly (re)opened and
22383# appended to by config.status.  When coming back to configure, we
22384# need to make the FD available again.
22385if test "$no_create" != yes; then
22386  ac_cs_success=:
22387  ac_config_status_args=
22388  test "$silent" = yes &&
22389    ac_config_status_args="$ac_config_status_args --quiet"
22390  exec 5>/dev/null
22391  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22392  exec 5>>config.log
22393  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22394  # would make configure fail if this is the last instruction.
22395  $ac_cs_success || as_fn_exit 1
22396fi
22397if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22398  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22399$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22400fi
22401
22402
22403
22404touch config.status.tmp
22405if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
22406  sed '/as_fn_exit 0/i \
22407sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
22408touch --reference=Makefile Makefile.tmp \
22409mv Makefile.tmp Makefile \
22410' config.status > config.status.tmp
22411  touch --reference=config.status config.status.tmp
22412  mv config.status.tmp config.status
22413  chmod +x config.status
22414  sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
22415  touch --reference=Makefile Makefile.tmp
22416  mv Makefile.tmp Makefile
22417else
22418  rm -f config.status.tmp
22419fi
22420