1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libctf 1.2.0.
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='libctf'
589PACKAGE_TARNAME='libctf'
590PACKAGE_VERSION='1.2.0'
591PACKAGE_STRING='libctf 1.2.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="ctf-impl.h"
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
632ac_header_list=
633ac_func_list=
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638VERSION_FLAGS_NOBFD
639VERSION_FLAGS
640TCL_TRY_FALSE
641TCL_TRY_TRUE
642EXPECT
643CTF_LIBADD
644SHARED_LDFLAGS
645BUILD_INFO_FALSE
646BUILD_INFO_TRUE
647NEED_CTF_QSORT_R_FALSE
648NEED_CTF_QSORT_R_TRUE
649ENABLE_LIBCTF_HASH_DEBUGGING_FALSE
650ENABLE_LIBCTF_HASH_DEBUGGING_TRUE
651zlibinc
652zlibdir
653ac_libctf_warn_cflags
654bfdincludedir
655bfdlibdir
656target_noncanonical
657host_noncanonical
658INSTALL_LIBBFD_FALSE
659INSTALL_LIBBFD_TRUE
660MAINT
661MAINTAINER_MODE_FALSE
662MAINTAINER_MODE_TRUE
663WERROR
664WARN_PEDANTIC
665c_warn
666warn
667OTOOL64
668OTOOL
669LIPO
670NMEDIT
671DSYMUTIL
672OBJDUMP
673LN_S
674NM
675ac_ct_DUMPBIN
676DUMPBIN
677LD
678FGREP
679SED
680LIBTOOL
681CATOBJEXT
682GENCAT
683INSTOBJEXT
684DATADIRNAME
685CATALOGS
686POSUB
687GMSGFMT
688XGETTEXT
689INCINTL
690LIBINTL_DEP
691LIBINTL
692USE_NLS
693ac_ct_AR
694AR
695RANLIB
696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
703am__nodep
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710am__untar
711am__tar
712AMTAR
713am__leading_dot
714SET_MAKE
715AWK
716mkdir_p
717MKDIR_P
718INSTALL_STRIP_PROGRAM
719STRIP
720install_sh
721MAKEINFO
722AUTOHEADER
723AUTOMAKE
724AUTOCONF
725ACLOCAL
726VERSION
727PACKAGE
728CYGPATH_W
729am__isrc
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733EGREP
734GREP
735CPP
736OBJEXT
737EXEEXT
738ac_ct_CC
739CPPFLAGS
740LDFLAGS
741CFLAGS
742CC
743target_os
744target_vendor
745target_cpu
746target
747host_os
748host_vendor
749host_cpu
750host
751build_os
752build_vendor
753build_cpu
754build
755target_alias
756host_alias
757build_alias
758LIBS
759ECHO_T
760ECHO_N
761ECHO_C
762DEFS
763mandir
764localedir
765libdir
766psdir
767pdfdir
768dvidir
769htmldir
770infodir
771docdir
772oldincludedir
773includedir
774localstatedir
775sharedstatedir
776sysconfdir
777datadir
778datarootdir
779libexecdir
780sbindir
781bindir
782program_transform_name
783prefix
784exec_prefix
785PACKAGE_URL
786PACKAGE_BUGREPORT
787PACKAGE_STRING
788PACKAGE_VERSION
789PACKAGE_TARNAME
790PACKAGE_NAME
791PATH_SEPARATOR
792SHELL'
793ac_subst_files=''
794ac_user_opts='
795enable_option_checking
796enable_dependency_tracking
797enable_silent_rules
798enable_shared
799enable_static
800with_pic
801enable_fast_install
802with_gnu_ld
803enable_libtool_lock
804enable_largefile
805enable_werror_always
806enable_maintainer_mode
807enable_install_libbfd
808with_system_zlib
809enable_libctf_hash_debugging
810'
811      ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819CPP'
820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874  # If the previous option needs an argument, assign it.
875  if test -n "$ac_prev"; then
876    eval $ac_prev=\$ac_option
877    ac_prev=
878    continue
879  fi
880
881  case $ac_option in
882  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883  *=)   ac_optarg= ;;
884  *)    ac_optarg=yes ;;
885  esac
886
887  # Accept the important Cygnus configure options, so we can diagnose typos.
888
889  case $ac_dashdash$ac_option in
890  --)
891    ac_dashdash=yes ;;
892
893  -bindir | --bindir | --bindi | --bind | --bin | --bi)
894    ac_prev=bindir ;;
895  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896    bindir=$ac_optarg ;;
897
898  -build | --build | --buil | --bui | --bu)
899    ac_prev=build_alias ;;
900  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901    build_alias=$ac_optarg ;;
902
903  -cache-file | --cache-file | --cache-fil | --cache-fi \
904  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905    ac_prev=cache_file ;;
906  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908    cache_file=$ac_optarg ;;
909
910  --config-cache | -C)
911    cache_file=config.cache ;;
912
913  -datadir | --datadir | --datadi | --datad)
914    ac_prev=datadir ;;
915  -datadir=* | --datadir=* | --datadi=* | --datad=*)
916    datadir=$ac_optarg ;;
917
918  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919  | --dataroo | --dataro | --datar)
920    ac_prev=datarootdir ;;
921  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923    datarootdir=$ac_optarg ;;
924
925  -disable-* | --disable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: $ac_useropt"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=no ;;
940
941  -docdir | --docdir | --docdi | --doc | --do)
942    ac_prev=docdir ;;
943  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944    docdir=$ac_optarg ;;
945
946  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947    ac_prev=dvidir ;;
948  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949    dvidir=$ac_optarg ;;
950
951  -enable-* | --enable-*)
952    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953    # Reject names that are not valid shell variable names.
954    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955      as_fn_error $? "invalid feature name: $ac_useropt"
956    ac_useropt_orig=$ac_useropt
957    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958    case $ac_user_opts in
959      *"
960"enable_$ac_useropt"
961"*) ;;
962      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963	 ac_unrecognized_sep=', ';;
964    esac
965    eval enable_$ac_useropt=\$ac_optarg ;;
966
967  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969  | --exec | --exe | --ex)
970    ac_prev=exec_prefix ;;
971  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973  | --exec=* | --exe=* | --ex=*)
974    exec_prefix=$ac_optarg ;;
975
976  -gas | --gas | --ga | --g)
977    # Obsolete; use --with-gas.
978    with_gas=yes ;;
979
980  -help | --help | --hel | --he | -h)
981    ac_init_help=long ;;
982  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983    ac_init_help=recursive ;;
984  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985    ac_init_help=short ;;
986
987  -host | --host | --hos | --ho)
988    ac_prev=host_alias ;;
989  -host=* | --host=* | --hos=* | --ho=*)
990    host_alias=$ac_optarg ;;
991
992  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993    ac_prev=htmldir ;;
994  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995  | --ht=*)
996    htmldir=$ac_optarg ;;
997
998  -includedir | --includedir | --includedi | --included | --include \
999  | --includ | --inclu | --incl | --inc)
1000    ac_prev=includedir ;;
1001  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002  | --includ=* | --inclu=* | --incl=* | --inc=*)
1003    includedir=$ac_optarg ;;
1004
1005  -infodir | --infodir | --infodi | --infod | --info | --inf)
1006    ac_prev=infodir ;;
1007  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008    infodir=$ac_optarg ;;
1009
1010  -libdir | --libdir | --libdi | --libd)
1011    ac_prev=libdir ;;
1012  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013    libdir=$ac_optarg ;;
1014
1015  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016  | --libexe | --libex | --libe)
1017    ac_prev=libexecdir ;;
1018  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019  | --libexe=* | --libex=* | --libe=*)
1020    libexecdir=$ac_optarg ;;
1021
1022  -localedir | --localedir | --localedi | --localed | --locale)
1023    ac_prev=localedir ;;
1024  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025    localedir=$ac_optarg ;;
1026
1027  -localstatedir | --localstatedir | --localstatedi | --localstated \
1028  | --localstate | --localstat | --localsta | --localst | --locals)
1029    ac_prev=localstatedir ;;
1030  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032    localstatedir=$ac_optarg ;;
1033
1034  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035    ac_prev=mandir ;;
1036  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037    mandir=$ac_optarg ;;
1038
1039  -nfp | --nfp | --nf)
1040    # Obsolete; use --without-fp.
1041    with_fp=no ;;
1042
1043  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044  | --no-cr | --no-c | -n)
1045    no_create=yes ;;
1046
1047  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049    no_recursion=yes ;;
1050
1051  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053  | --oldin | --oldi | --old | --ol | --o)
1054    ac_prev=oldincludedir ;;
1055  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058    oldincludedir=$ac_optarg ;;
1059
1060  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061    ac_prev=prefix ;;
1062  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063    prefix=$ac_optarg ;;
1064
1065  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066  | --program-pre | --program-pr | --program-p)
1067    ac_prev=program_prefix ;;
1068  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070    program_prefix=$ac_optarg ;;
1071
1072  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073  | --program-suf | --program-su | --program-s)
1074    ac_prev=program_suffix ;;
1075  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077    program_suffix=$ac_optarg ;;
1078
1079  -program-transform-name | --program-transform-name \
1080  | --program-transform-nam | --program-transform-na \
1081  | --program-transform-n | --program-transform- \
1082  | --program-transform | --program-transfor \
1083  | --program-transfo | --program-transf \
1084  | --program-trans | --program-tran \
1085  | --progr-tra | --program-tr | --program-t)
1086    ac_prev=program_transform_name ;;
1087  -program-transform-name=* | --program-transform-name=* \
1088  | --program-transform-nam=* | --program-transform-na=* \
1089  | --program-transform-n=* | --program-transform-=* \
1090  | --program-transform=* | --program-transfor=* \
1091  | --program-transfo=* | --program-transf=* \
1092  | --program-trans=* | --program-tran=* \
1093  | --progr-tra=* | --program-tr=* | --program-t=*)
1094    program_transform_name=$ac_optarg ;;
1095
1096  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097    ac_prev=pdfdir ;;
1098  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099    pdfdir=$ac_optarg ;;
1100
1101  -psdir | --psdir | --psdi | --psd | --ps)
1102    ac_prev=psdir ;;
1103  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104    psdir=$ac_optarg ;;
1105
1106  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107  | -silent | --silent | --silen | --sile | --sil)
1108    silent=yes ;;
1109
1110  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111    ac_prev=sbindir ;;
1112  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113  | --sbi=* | --sb=*)
1114    sbindir=$ac_optarg ;;
1115
1116  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118  | --sharedst | --shareds | --shared | --share | --shar \
1119  | --sha | --sh)
1120    ac_prev=sharedstatedir ;;
1121  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124  | --sha=* | --sh=*)
1125    sharedstatedir=$ac_optarg ;;
1126
1127  -site | --site | --sit)
1128    ac_prev=site ;;
1129  -site=* | --site=* | --sit=*)
1130    site=$ac_optarg ;;
1131
1132  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133    ac_prev=srcdir ;;
1134  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135    srcdir=$ac_optarg ;;
1136
1137  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138  | --syscon | --sysco | --sysc | --sys | --sy)
1139    ac_prev=sysconfdir ;;
1140  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142    sysconfdir=$ac_optarg ;;
1143
1144  -target | --target | --targe | --targ | --tar | --ta | --t)
1145    ac_prev=target_alias ;;
1146  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147    target_alias=$ac_optarg ;;
1148
1149  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150    verbose=yes ;;
1151
1152  -version | --version | --versio | --versi | --vers | -V)
1153    ac_init_version=: ;;
1154
1155  -with-* | --with-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=\$ac_optarg ;;
1170
1171  -without-* | --without-*)
1172    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175      as_fn_error $? "invalid package name: $ac_useropt"
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=no ;;
1186
1187  --x)
1188    # Obsolete; use --with-x.
1189    with_x=yes ;;
1190
1191  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192  | --x-incl | --x-inc | --x-in | --x-i)
1193    ac_prev=x_includes ;;
1194  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196    x_includes=$ac_optarg ;;
1197
1198  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200    ac_prev=x_libraries ;;
1201  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203    x_libraries=$ac_optarg ;;
1204
1205  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
1207    ;;
1208
1209  *=*)
1210    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211    # Reject names that are not valid shell variable names.
1212    case $ac_envvar in #(
1213      '' | [0-9]* | *[!_$as_cr_alnum]* )
1214      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215    esac
1216    eval $ac_envvar=\$ac_optarg
1217    export $ac_envvar ;;
1218
1219  *)
1220    # FIXME: should be removed in autoconf 3.0.
1221    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225    ;;
1226
1227  esac
1228done
1229
1230if test -n "$ac_prev"; then
1231  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232  as_fn_error $? "missing argument to $ac_option"
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236  case $enable_option_checking in
1237    no) ;;
1238    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240  esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245		datadir sysconfdir sharedstatedir localstatedir includedir \
1246		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247		libdir localedir mandir
1248do
1249  eval ac_val=\$$ac_var
1250  # Remove trailing slashes.
1251  case $ac_val in
1252    */ )
1253      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254      eval $ac_var=\$ac_val;;
1255  esac
1256  # Be sure to have absolute directory names.
1257  case $ac_val in
1258    [\\/$]* | ?:[\\/]* )  continue;;
1259    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260  esac
1261  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273  if test "x$build_alias" = x; then
1274    cross_compiling=maybe
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures libctf 1.2.0 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking ...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --libdir=DIR            object code libraries [EPREFIX/lib]
1401  --includedir=DIR        C header files [PREFIX/include]
1402  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405  --infodir=DIR           info documentation [DATAROOTDIR/info]
1406  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407  --mandir=DIR            man documentation [DATAROOTDIR/man]
1408  --docdir=DIR            documentation root [DATAROOTDIR/doc/libctf]
1409  --htmldir=DIR           html documentation [DOCDIR]
1410  --dvidir=DIR            dvi documentation [DOCDIR]
1411  --pdfdir=DIR            pdf documentation [DOCDIR]
1412  --psdir=DIR             ps documentation [DOCDIR]
1413_ACEOF
1414
1415  cat <<\_ACEOF
1416
1417Program names:
1418  --program-prefix=PREFIX            prepend PREFIX to installed program names
1419  --program-suffix=SUFFIX            append SUFFIX to installed program names
1420  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421
1422System types:
1423  --build=BUILD     configure for building on BUILD [guessed]
1424  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425  --target=TARGET   configure for building compilers for TARGET [HOST]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430  case $ac_init_help in
1431     short | recursive ) echo "Configuration of libctf 1.2.0:";;
1432   esac
1433  cat <<\_ACEOF
1434
1435Optional Features:
1436  --disable-option-checking  ignore unrecognized --enable/--with options
1437  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439  --enable-dependency-tracking
1440                          do not reject slow dependency extractors
1441  --disable-dependency-tracking
1442                          speeds up one-time build
1443  --enable-silent-rules   less verbose build output (undo: "make V=1")
1444  --disable-silent-rules  verbose build output (undo: "make V=0")
1445  --enable-shared[=PKGS]  build shared libraries [default=no]
1446  --enable-static[=PKGS]  build static libraries [default=yes]
1447  --enable-fast-install[=PKGS]
1448                          optimize for fast installation [default=yes]
1449  --disable-libtool-lock  avoid locking (might break parallel builds)
1450  --disable-largefile     omit support for large files
1451  --enable-werror-always  enable -Werror despite compiler version
1452  --enable-maintainer-mode
1453                          enable make rules and dependencies not useful (and
1454                          sometimes confusing) to the casual installer
1455  --enable-install-libbfd controls installation of libbfd and related headers
1456  --enable-libctf-hash-debugging
1457                          Enable expensive debugging of CTF deduplication type
1458                          hashing [default=no]
1459
1460Optional Packages:
1461  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1462  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1463  --with-pic              try to use only PIC/non-PIC objects [default=use
1464                          both]
1465  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1466  --with-system-zlib      use installed libz
1467
1468Some influential environment variables:
1469  CC          C compiler command
1470  CFLAGS      C compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  CPP         C preprocessor
1477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
1481Report bugs to the package provider.
1482_ACEOF
1483ac_status=$?
1484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487  # If there are subdirs, report their specific --help.
1488  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489    test -d "$ac_dir" ||
1490      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491      continue
1492    ac_builddir=.
1493
1494case "$ac_dir" in
1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496*)
1497  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498  # A ".." for each directory in $ac_dir_suffix.
1499  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500  case $ac_top_builddir_sub in
1501  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503  esac ;;
1504esac
1505ac_abs_top_builddir=$ac_pwd
1506ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507# for backward compatibility:
1508ac_top_builddir=$ac_top_build_prefix
1509
1510case $srcdir in
1511  .)  # We are building in place.
1512    ac_srcdir=.
1513    ac_top_srcdir=$ac_top_builddir_sub
1514    ac_abs_top_srcdir=$ac_pwd ;;
1515  [\\/]* | ?:[\\/]* )  # Absolute name.
1516    ac_srcdir=$srcdir$ac_dir_suffix;
1517    ac_top_srcdir=$srcdir
1518    ac_abs_top_srcdir=$srcdir ;;
1519  *) # Relative name.
1520    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521    ac_top_srcdir=$ac_top_build_prefix$srcdir
1522    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523esac
1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526    cd "$ac_dir" || { ac_status=$?; continue; }
1527    # Check for guested configure.
1528    if test -f "$ac_srcdir/configure.gnu"; then
1529      echo &&
1530      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531    elif test -f "$ac_srcdir/configure"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure" --help=recursive
1534    else
1535      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536    fi || ac_status=$?
1537    cd "$ac_pwd" || { ac_status=$?; break; }
1538  done
1539fi
1540
1541test -n "$ac_init_help" && exit $ac_status
1542if $ac_init_version; then
1543  cat <<\_ACEOF
1544libctf configure 1.2.0
1545generated by GNU Autoconf 2.69
1546
1547Copyright (C) 2012 Free Software Foundation, Inc.
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
1551  exit
1552fi
1553
1554## ------------------------ ##
1555## Autoconf initialization. ##
1556## ------------------------ ##
1557
1558# ac_fn_c_try_compile LINENO
1559# --------------------------
1560# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_compile ()
1562{
1563  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564  rm -f conftest.$ac_objext
1565  if { { ac_try="$ac_compile"
1566case "(($ac_try" in
1567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568  *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572  (eval "$ac_compile") 2>conftest.err
1573  ac_status=$?
1574  if test -s conftest.err; then
1575    grep -v '^ *+' conftest.err >conftest.er1
1576    cat conftest.er1 >&5
1577    mv -f conftest.er1 conftest.err
1578  fi
1579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580  test $ac_status = 0; } && {
1581	 test -z "$ac_c_werror_flag" ||
1582	 test ! -s conftest.err
1583       } && test -s conftest.$ac_objext; then :
1584  ac_retval=0
1585else
1586  $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589	ac_retval=1
1590fi
1591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592  as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_compile
1595
1596# ac_fn_c_try_cpp LINENO
1597# ----------------------
1598# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599ac_fn_c_try_cpp ()
1600{
1601  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602  if { { ac_try="$ac_cpp conftest.$ac_ext"
1603case "(($ac_try" in
1604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605  *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610  ac_status=$?
1611  if test -s conftest.err; then
1612    grep -v '^ *+' conftest.err >conftest.er1
1613    cat conftest.er1 >&5
1614    mv -f conftest.er1 conftest.err
1615  fi
1616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617  test $ac_status = 0; } > conftest.i && {
1618	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619	 test ! -s conftest.err
1620       }; then :
1621  ac_retval=0
1622else
1623  $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
1626    ac_retval=1
1627fi
1628  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629  as_fn_set_status $ac_retval
1630
1631} # ac_fn_c_try_cpp
1632
1633# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634# -------------------------------------------------------
1635# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636# the include files in INCLUDES and setting the cache variable VAR
1637# accordingly.
1638ac_fn_c_check_header_mongrel ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  if eval \${$3+:} false; then :
1642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643$as_echo_n "checking for $2... " >&6; }
1644if eval \${$3+:} false; then :
1645  $as_echo_n "(cached) " >&6
1646fi
1647eval ac_res=\$$3
1648	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649$as_echo "$ac_res" >&6; }
1650else
1651  # Is the header compilable?
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653$as_echo_n "checking $2 usability... " >&6; }
1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h.  */
1656$4
1657#include <$2>
1658_ACEOF
1659if ac_fn_c_try_compile "$LINENO"; then :
1660  ac_header_compiler=yes
1661else
1662  ac_header_compiler=no
1663fi
1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666$as_echo "$ac_header_compiler" >&6; }
1667
1668# Is the header present?
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670$as_echo_n "checking $2 presence... " >&6; }
1671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h.  */
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_cpp "$LINENO"; then :
1676  ac_header_preproc=yes
1677else
1678  ac_header_preproc=no
1679fi
1680rm -f conftest.err conftest.i conftest.$ac_ext
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682$as_echo "$ac_header_preproc" >&6; }
1683
1684# So?  What about this header?
1685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686  yes:no: )
1687    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691    ;;
1692  no:yes:* )
1693    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1696$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1697    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1700$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1701    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703    ;;
1704esac
1705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706$as_echo_n "checking for $2... " >&6; }
1707if eval \${$3+:} false; then :
1708  $as_echo_n "(cached) " >&6
1709else
1710  eval "$3=\$ac_header_compiler"
1711fi
1712eval ac_res=\$$3
1713	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714$as_echo "$ac_res" >&6; }
1715fi
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718} # ac_fn_c_check_header_mongrel
1719
1720# ac_fn_c_try_run LINENO
1721# ----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723# that executables *can* be run.
1724ac_fn_c_try_run ()
1725{
1726  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727  if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734  (eval "$ac_link") 2>&5
1735  ac_status=$?
1736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738  { { case "(($ac_try" in
1739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740  *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744  (eval "$ac_try") 2>&5
1745  ac_status=$?
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; }; }; then :
1748  ac_retval=0
1749else
1750  $as_echo "$as_me: program exited with status $ac_status" >&5
1751       $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754       ac_retval=$ac_status
1755fi
1756  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_run
1761
1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763# -------------------------------------------------------
1764# Tests whether HEADER exists and can be compiled using the include files in
1765# INCLUDES, setting the cache variable VAR accordingly.
1766ac_fn_c_check_header_compile ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if eval \${$3+:} false; then :
1772  $as_echo_n "(cached) " >&6
1773else
1774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h.  */
1776$4
1777#include <$2>
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780  eval "$3=yes"
1781else
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791} # ac_fn_c_check_header_compile
1792
1793# ac_fn_c_try_link LINENO
1794# -----------------------
1795# Try to link conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_link ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  rm -f conftest.$ac_objext conftest$ac_exeext
1800  if { { ac_try="$ac_link"
1801case "(($ac_try" in
1802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803  *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807  (eval "$ac_link") 2>conftest.err
1808  ac_status=$?
1809  if test -s conftest.err; then
1810    grep -v '^ *+' conftest.err >conftest.er1
1811    cat conftest.er1 >&5
1812    mv -f conftest.er1 conftest.err
1813  fi
1814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815  test $ac_status = 0; } && {
1816	 test -z "$ac_c_werror_flag" ||
1817	 test ! -s conftest.err
1818       } && test -s conftest$ac_exeext && {
1819	 test "$cross_compiling" = yes ||
1820	 test -x conftest$ac_exeext
1821       }; then :
1822  ac_retval=0
1823else
1824  $as_echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827	ac_retval=1
1828fi
1829  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831  # interfere with the next link command; also delete a directory that is
1832  # left behind by Apple's compiler.  We do this before executing the actions.
1833  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835  as_fn_set_status $ac_retval
1836
1837} # ac_fn_c_try_link
1838
1839# ac_fn_c_check_func LINENO FUNC VAR
1840# ----------------------------------
1841# Tests whether FUNC exists, setting the cache variable VAR accordingly
1842ac_fn_c_check_func ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
1847if eval \${$3+:} false; then :
1848  $as_echo_n "(cached) " >&6
1849else
1850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h.  */
1852/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1854#define $2 innocuous_$2
1855
1856/* System header to define __stub macros and hopefully few prototypes,
1857    which can conflict with char $2 (); below.
1858    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1859    <limits.h> exists even on freestanding compilers.  */
1860
1861#ifdef __STDC__
1862# include <limits.h>
1863#else
1864# include <assert.h>
1865#endif
1866
1867#undef $2
1868
1869/* Override any GCC internal prototype to avoid an error.
1870   Use char because int might match the return type of a GCC
1871   builtin and then its argument prototype would still apply.  */
1872#ifdef __cplusplus
1873extern "C"
1874#endif
1875char $2 ();
1876/* The GNU C library defines this for functions which it implements
1877    to always fail with ENOSYS.  Some functions are actually named
1878    something starting with __ and the normal name is an alias.  */
1879#if defined __stub_$2 || defined __stub___$2
1880choke me
1881#endif
1882
1883int
1884main ()
1885{
1886return $2 ();
1887  ;
1888  return 0;
1889}
1890_ACEOF
1891if ac_fn_c_try_link "$LINENO"; then :
1892  eval "$3=yes"
1893else
1894  eval "$3=no"
1895fi
1896rm -f core conftest.err conftest.$ac_objext \
1897    conftest$ac_exeext conftest.$ac_ext
1898fi
1899eval ac_res=\$$3
1900	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904} # ac_fn_c_check_func
1905
1906# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1907# ---------------------------------------------
1908# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1909# accordingly.
1910ac_fn_c_check_decl ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  as_decl_name=`echo $2|sed 's/ *(.*//'`
1914  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1916$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1917if eval \${$3+:} false; then :
1918  $as_echo_n "(cached) " >&6
1919else
1920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922$4
1923int
1924main ()
1925{
1926#ifndef $as_decl_name
1927#ifdef __cplusplus
1928  (void) $as_decl_use;
1929#else
1930  (void) $as_decl_name;
1931#endif
1932#endif
1933
1934  ;
1935  return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939  eval "$3=yes"
1940else
1941  eval "$3=no"
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945eval ac_res=\$$3
1946	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
1948  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950} # ac_fn_c_check_decl
1951cat >config.log <<_ACEOF
1952This file contains any messages produced by compilers while
1953running configure, to aid debugging if configure makes a mistake.
1954
1955It was created by libctf $as_me 1.2.0, which was
1956generated by GNU Autoconf 2.69.  Invocation command line was
1957
1958  $ $0 $@
1959
1960_ACEOF
1961exec 5>>config.log
1962{
1963cat <<_ASUNAME
1964## --------- ##
1965## Platform. ##
1966## --------- ##
1967
1968hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1969uname -m = `(uname -m) 2>/dev/null || echo unknown`
1970uname -r = `(uname -r) 2>/dev/null || echo unknown`
1971uname -s = `(uname -s) 2>/dev/null || echo unknown`
1972uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973
1974/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1975/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1976
1977/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1978/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1979/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1980/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1981/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1982/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1983/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1984
1985_ASUNAME
1986
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990  IFS=$as_save_IFS
1991  test -z "$as_dir" && as_dir=.
1992    $as_echo "PATH: $as_dir"
1993  done
1994IFS=$as_save_IFS
1995
1996} >&5
1997
1998cat >&5 <<_ACEOF
1999
2000
2001## ----------- ##
2002## Core tests. ##
2003## ----------- ##
2004
2005_ACEOF
2006
2007
2008# Keep a trace of the command line.
2009# Strip out --no-create and --no-recursion so they do not pile up.
2010# Strip out --silent because we don't want to record it for future runs.
2011# Also quote any args containing shell meta-characters.
2012# Make two passes to allow for proper duplicate-argument suppression.
2013ac_configure_args=
2014ac_configure_args0=
2015ac_configure_args1=
2016ac_must_keep_next=false
2017for ac_pass in 1 2
2018do
2019  for ac_arg
2020  do
2021    case $ac_arg in
2022    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2023    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2024    | -silent | --silent | --silen | --sile | --sil)
2025      continue ;;
2026    *\'*)
2027      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2028    esac
2029    case $ac_pass in
2030    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031    2)
2032      as_fn_append ac_configure_args1 " '$ac_arg'"
2033      if test $ac_must_keep_next = true; then
2034	ac_must_keep_next=false # Got value, back to normal.
2035      else
2036	case $ac_arg in
2037	  *=* | --config-cache | -C | -disable-* | --disable-* \
2038	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2039	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2040	  | -with-* | --with-* | -without-* | --without-* | --x)
2041	    case "$ac_configure_args0 " in
2042	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2043	    esac
2044	    ;;
2045	  -* ) ac_must_keep_next=true ;;
2046	esac
2047      fi
2048      as_fn_append ac_configure_args " '$ac_arg'"
2049      ;;
2050    esac
2051  done
2052done
2053{ ac_configure_args0=; unset ac_configure_args0;}
2054{ ac_configure_args1=; unset ac_configure_args1;}
2055
2056# When interrupted or exit'd, cleanup temporary files, and complete
2057# config.log.  We remove comments because anyway the quotes in there
2058# would cause problems or look ugly.
2059# WARNING: Use '\'' to represent an apostrophe within the trap.
2060# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2061trap 'exit_status=$?
2062  # Save into config.log some information that might help in debugging.
2063  {
2064    echo
2065
2066    $as_echo "## ---------------- ##
2067## Cache variables. ##
2068## ---------------- ##"
2069    echo
2070    # The following way of writing the cache mishandles newlines in values,
2071(
2072  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073    eval ac_val=\$$ac_var
2074    case $ac_val in #(
2075    *${as_nl}*)
2076      case $ac_var in #(
2077      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079      esac
2080      case $ac_var in #(
2081      _ | IFS | as_nl) ;; #(
2082      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083      *) { eval $ac_var=; unset $ac_var;} ;;
2084      esac ;;
2085    esac
2086  done
2087  (set) 2>&1 |
2088    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089    *${as_nl}ac_space=\ *)
2090      sed -n \
2091	"s/'\''/'\''\\\\'\'''\''/g;
2092	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093      ;; #(
2094    *)
2095      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096      ;;
2097    esac |
2098    sort
2099)
2100    echo
2101
2102    $as_echo "## ----------------- ##
2103## Output variables. ##
2104## ----------------- ##"
2105    echo
2106    for ac_var in $ac_subst_vars
2107    do
2108      eval ac_val=\$$ac_var
2109      case $ac_val in
2110      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111      esac
2112      $as_echo "$ac_var='\''$ac_val'\''"
2113    done | sort
2114    echo
2115
2116    if test -n "$ac_subst_files"; then
2117      $as_echo "## ------------------- ##
2118## File substitutions. ##
2119## ------------------- ##"
2120      echo
2121      for ac_var in $ac_subst_files
2122      do
2123	eval ac_val=\$$ac_var
2124	case $ac_val in
2125	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126	esac
2127	$as_echo "$ac_var='\''$ac_val'\''"
2128      done | sort
2129      echo
2130    fi
2131
2132    if test -s confdefs.h; then
2133      $as_echo "## ----------- ##
2134## confdefs.h. ##
2135## ----------- ##"
2136      echo
2137      cat confdefs.h
2138      echo
2139    fi
2140    test "$ac_signal" != 0 &&
2141      $as_echo "$as_me: caught signal $ac_signal"
2142    $as_echo "$as_me: exit $exit_status"
2143  } >&5
2144  rm -f core *.core core.conftest.* &&
2145    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2146    exit $exit_status
2147' 0
2148for ac_signal in 1 2 13 15; do
2149  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150done
2151ac_signal=0
2152
2153# confdefs.h avoids OS command line length limits that DEFS can exceed.
2154rm -f -r conftest* confdefs.h
2155
2156$as_echo "/* confdefs.h */" > confdefs.h
2157
2158# Predefined preprocessor variables.
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_NAME "$PACKAGE_NAME"
2162_ACEOF
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_VERSION "$PACKAGE_VERSION"
2170_ACEOF
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_STRING "$PACKAGE_STRING"
2174_ACEOF
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178_ACEOF
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_URL "$PACKAGE_URL"
2182_ACEOF
2183
2184
2185# Let the site file select an alternate cache file if it wants to.
2186# Prefer an explicitly selected file to automatically selected ones.
2187ac_site_file1=NONE
2188ac_site_file2=NONE
2189if test -n "$CONFIG_SITE"; then
2190  # We do not want a PATH search for config.site.
2191  case $CONFIG_SITE in #((
2192    -*)  ac_site_file1=./$CONFIG_SITE;;
2193    */*) ac_site_file1=$CONFIG_SITE;;
2194    *)   ac_site_file1=./$CONFIG_SITE;;
2195  esac
2196elif test "x$prefix" != xNONE; then
2197  ac_site_file1=$prefix/share/config.site
2198  ac_site_file2=$prefix/etc/config.site
2199else
2200  ac_site_file1=$ac_default_prefix/share/config.site
2201  ac_site_file2=$ac_default_prefix/etc/config.site
2202fi
2203for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2204do
2205  test "x$ac_site_file" = xNONE && continue
2206  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2207    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2208$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2209    sed 's/^/| /' "$ac_site_file" >&5
2210    . "$ac_site_file" \
2211      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213as_fn_error $? "failed to load site script $ac_site_file
2214See \`config.log' for more details" "$LINENO" 5; }
2215  fi
2216done
2217
2218if test -r "$cache_file"; then
2219  # Some versions of bash will fail to source /dev/null (special files
2220  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2221  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2222    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223$as_echo "$as_me: loading cache $cache_file" >&6;}
2224    case $cache_file in
2225      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226      *)                      . "./$cache_file";;
2227    esac
2228  fi
2229else
2230  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231$as_echo "$as_me: creating cache $cache_file" >&6;}
2232  >$cache_file
2233fi
2234
2235as_fn_append ac_header_list " stdlib.h"
2236as_fn_append ac_header_list " unistd.h"
2237as_fn_append ac_header_list " sys/param.h"
2238as_fn_append ac_func_list " qsort_r"
2239# Check that the precious variables saved in the cache have kept the same
2240# value.
2241ac_cache_corrupted=false
2242for ac_var in $ac_precious_vars; do
2243  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244  eval ac_new_set=\$ac_env_${ac_var}_set
2245  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246  eval ac_new_val=\$ac_env_${ac_var}_value
2247  case $ac_old_set,$ac_new_set in
2248    set,)
2249      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251      ac_cache_corrupted=: ;;
2252    ,set)
2253      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255      ac_cache_corrupted=: ;;
2256    ,);;
2257    *)
2258      if test "x$ac_old_val" != "x$ac_new_val"; then
2259	# differences in whitespace do not lead to failure.
2260	ac_old_val_w=`echo x $ac_old_val`
2261	ac_new_val_w=`echo x $ac_new_val`
2262	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265	  ac_cache_corrupted=:
2266	else
2267	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269	  eval $ac_var=\$ac_old_val
2270	fi
2271	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2272$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2273	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2274$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2275      fi;;
2276  esac
2277  # Pass precious variables to config.status.
2278  if test "$ac_new_set" = set; then
2279    case $ac_new_val in
2280    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281    *) ac_arg=$ac_var=$ac_new_val ;;
2282    esac
2283    case " $ac_configure_args " in
2284      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2285      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2286    esac
2287  fi
2288done
2289if $ac_cache_corrupted; then
2290  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2295fi
2296## -------------------- ##
2297## Main body of script. ##
2298## -------------------- ##
2299
2300ac_ext=c
2301ac_cpp='$CPP $CPPFLAGS'
2302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305
2306
2307
2308
2309
2310
2311ac_aux_dir=
2312for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2313  if test -f "$ac_dir/install-sh"; then
2314    ac_aux_dir=$ac_dir
2315    ac_install_sh="$ac_aux_dir/install-sh -c"
2316    break
2317  elif test -f "$ac_dir/install.sh"; then
2318    ac_aux_dir=$ac_dir
2319    ac_install_sh="$ac_aux_dir/install.sh -c"
2320    break
2321  elif test -f "$ac_dir/shtool"; then
2322    ac_aux_dir=$ac_dir
2323    ac_install_sh="$ac_aux_dir/shtool install -c"
2324    break
2325  fi
2326done
2327if test -z "$ac_aux_dir"; then
2328  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2329fi
2330
2331# These three variables are undocumented and unsupported,
2332# and are intended to be withdrawn in a future Autoconf release.
2333# They can cause serious problems if a builder's source tree is in a directory
2334# whose full name contains unusual characters.
2335ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2336ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2337ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2338
2339
2340# Make sure we can run config.sub.
2341$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2343
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345$as_echo_n "checking build system type... " >&6; }
2346if ${ac_cv_build+:} false; then :
2347  $as_echo_n "(cached) " >&6
2348else
2349  ac_build_alias=$build_alias
2350test "x$ac_build_alias" = x &&
2351  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352test "x$ac_build_alias" = x &&
2353  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2354ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2356
2357fi
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359$as_echo "$ac_cv_build" >&6; }
2360case $ac_cv_build in
2361*-*-*) ;;
2362*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2363esac
2364build=$ac_cv_build
2365ac_save_IFS=$IFS; IFS='-'
2366set x $ac_cv_build
2367shift
2368build_cpu=$1
2369build_vendor=$2
2370shift; shift
2371# Remember, the first character of IFS is used to create $*,
2372# except with old shells:
2373build_os=$*
2374IFS=$ac_save_IFS
2375case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376
2377
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379$as_echo_n "checking host system type... " >&6; }
2380if ${ac_cv_host+:} false; then :
2381  $as_echo_n "(cached) " >&6
2382else
2383  if test "x$host_alias" = x; then
2384  ac_cv_host=$ac_cv_build
2385else
2386  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2388fi
2389
2390fi
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392$as_echo "$ac_cv_host" >&6; }
2393case $ac_cv_host in
2394*-*-*) ;;
2395*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2396esac
2397host=$ac_cv_host
2398ac_save_IFS=$IFS; IFS='-'
2399set x $ac_cv_host
2400shift
2401host_cpu=$1
2402host_vendor=$2
2403shift; shift
2404# Remember, the first character of IFS is used to create $*,
2405# except with old shells:
2406host_os=$*
2407IFS=$ac_save_IFS
2408case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2409
2410
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412$as_echo_n "checking target system type... " >&6; }
2413if ${ac_cv_target+:} false; then :
2414  $as_echo_n "(cached) " >&6
2415else
2416  if test "x$target_alias" = x; then
2417  ac_cv_target=$ac_cv_host
2418else
2419  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2421fi
2422
2423fi
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425$as_echo "$ac_cv_target" >&6; }
2426case $ac_cv_target in
2427*-*-*) ;;
2428*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2429esac
2430target=$ac_cv_target
2431ac_save_IFS=$IFS; IFS='-'
2432set x $ac_cv_target
2433shift
2434target_cpu=$1
2435target_vendor=$2
2436shift; shift
2437# Remember, the first character of IFS is used to create $*,
2438# except with old shells:
2439target_os=$*
2440IFS=$ac_save_IFS
2441case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2442
2443
2444# The aliases save the names the user supplied, while $host etc.
2445# will get canonicalized.
2446test -n "$target_alias" &&
2447  test "$program_prefix$program_suffix$program_transform_name" = \
2448    NONENONEs,x,x, &&
2449  program_prefix=${target_alias}-
2450# Expand $ac_aux_dir to an absolute path.
2451am_aux_dir=`cd "$ac_aux_dir" && pwd`
2452
2453ac_ext=c
2454ac_cpp='$CPP $CPPFLAGS'
2455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458if test -n "$ac_tool_prefix"; then
2459  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2460set dummy ${ac_tool_prefix}gcc; ac_word=$2
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462$as_echo_n "checking for $ac_word... " >&6; }
2463if ${ac_cv_prog_CC+:} false; then :
2464  $as_echo_n "(cached) " >&6
2465else
2466  if test -n "$CC"; then
2467  ac_cv_prog_CC="$CC" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472  IFS=$as_save_IFS
2473  test -z "$as_dir" && as_dir=.
2474    for ac_exec_ext in '' $ac_executable_extensions; do
2475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478    break 2
2479  fi
2480done
2481  done
2482IFS=$as_save_IFS
2483
2484fi
2485fi
2486CC=$ac_cv_prog_CC
2487if test -n "$CC"; then
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489$as_echo "$CC" >&6; }
2490else
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492$as_echo "no" >&6; }
2493fi
2494
2495
2496fi
2497if test -z "$ac_cv_prog_CC"; then
2498  ac_ct_CC=$CC
2499  # Extract the first word of "gcc", so it can be a program name with args.
2500set dummy gcc; ac_word=$2
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502$as_echo_n "checking for $ac_word... " >&6; }
2503if ${ac_cv_prog_ac_ct_CC+:} false; then :
2504  $as_echo_n "(cached) " >&6
2505else
2506  if test -n "$ac_ct_CC"; then
2507  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512  IFS=$as_save_IFS
2513  test -z "$as_dir" && as_dir=.
2514    for ac_exec_ext in '' $ac_executable_extensions; do
2515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516    ac_cv_prog_ac_ct_CC="gcc"
2517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518    break 2
2519  fi
2520done
2521  done
2522IFS=$as_save_IFS
2523
2524fi
2525fi
2526ac_ct_CC=$ac_cv_prog_ac_ct_CC
2527if test -n "$ac_ct_CC"; then
2528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2529$as_echo "$ac_ct_CC" >&6; }
2530else
2531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532$as_echo "no" >&6; }
2533fi
2534
2535  if test "x$ac_ct_CC" = x; then
2536    CC=""
2537  else
2538    case $cross_compiling:$ac_tool_warned in
2539yes:)
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542ac_tool_warned=yes ;;
2543esac
2544    CC=$ac_ct_CC
2545  fi
2546else
2547  CC="$ac_cv_prog_CC"
2548fi
2549
2550if test -z "$CC"; then
2551          if test -n "$ac_tool_prefix"; then
2552    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2553set dummy ${ac_tool_prefix}cc; ac_word=$2
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555$as_echo_n "checking for $ac_word... " >&6; }
2556if ${ac_cv_prog_CC+:} false; then :
2557  $as_echo_n "(cached) " >&6
2558else
2559  if test -n "$CC"; then
2560  ac_cv_prog_CC="$CC" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567    for ac_exec_ext in '' $ac_executable_extensions; do
2568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569    ac_cv_prog_CC="${ac_tool_prefix}cc"
2570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571    break 2
2572  fi
2573done
2574  done
2575IFS=$as_save_IFS
2576
2577fi
2578fi
2579CC=$ac_cv_prog_CC
2580if test -n "$CC"; then
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582$as_echo "$CC" >&6; }
2583else
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
2586fi
2587
2588
2589  fi
2590fi
2591if test -z "$CC"; then
2592  # Extract the first word of "cc", so it can be a program name with args.
2593set dummy cc; ac_word=$2
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
2596if ${ac_cv_prog_CC+:} false; then :
2597  $as_echo_n "(cached) " >&6
2598else
2599  if test -n "$CC"; then
2600  ac_cv_prog_CC="$CC" # Let the user override the test.
2601else
2602  ac_prog_rejected=no
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606  IFS=$as_save_IFS
2607  test -z "$as_dir" && as_dir=.
2608    for ac_exec_ext in '' $ac_executable_extensions; do
2609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2611       ac_prog_rejected=yes
2612       continue
2613     fi
2614    ac_cv_prog_CC="cc"
2615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616    break 2
2617  fi
2618done
2619  done
2620IFS=$as_save_IFS
2621
2622if test $ac_prog_rejected = yes; then
2623  # We found a bogon in the path, so make sure we never use it.
2624  set dummy $ac_cv_prog_CC
2625  shift
2626  if test $# != 0; then
2627    # We chose a different compiler from the bogus one.
2628    # However, it has the same basename, so the bogon will be chosen
2629    # first if we set CC to just the basename; use the full file name.
2630    shift
2631    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2632  fi
2633fi
2634fi
2635fi
2636CC=$ac_cv_prog_CC
2637if test -n "$CC"; then
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2639$as_echo "$CC" >&6; }
2640else
2641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642$as_echo "no" >&6; }
2643fi
2644
2645
2646fi
2647if test -z "$CC"; then
2648  if test -n "$ac_tool_prefix"; then
2649  for ac_prog in cl.exe
2650  do
2651    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_prog_CC+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  if test -n "$CC"; then
2659  ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666    for ac_exec_ext in '' $ac_executable_extensions; do
2667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670    break 2
2671  fi
2672done
2673  done
2674IFS=$as_save_IFS
2675
2676fi
2677fi
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681$as_echo "$CC" >&6; }
2682else
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684$as_echo "no" >&6; }
2685fi
2686
2687
2688    test -n "$CC" && break
2689  done
2690fi
2691if test -z "$CC"; then
2692  ac_ct_CC=$CC
2693  for ac_prog in cl.exe
2694do
2695  # Extract the first word of "$ac_prog", so it can be a program name with args.
2696set dummy $ac_prog; ac_word=$2
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698$as_echo_n "checking for $ac_word... " >&6; }
2699if ${ac_cv_prog_ac_ct_CC+:} false; then :
2700  $as_echo_n "(cached) " >&6
2701else
2702  if test -n "$ac_ct_CC"; then
2703  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  test -z "$as_dir" && as_dir=.
2710    for ac_exec_ext in '' $ac_executable_extensions; do
2711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712    ac_cv_prog_ac_ct_CC="$ac_prog"
2713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714    break 2
2715  fi
2716done
2717  done
2718IFS=$as_save_IFS
2719
2720fi
2721fi
2722ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723if test -n "$ac_ct_CC"; then
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2725$as_echo "$ac_ct_CC" >&6; }
2726else
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728$as_echo "no" >&6; }
2729fi
2730
2731
2732  test -n "$ac_ct_CC" && break
2733done
2734
2735  if test "x$ac_ct_CC" = x; then
2736    CC=""
2737  else
2738    case $cross_compiling:$ac_tool_warned in
2739yes:)
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742ac_tool_warned=yes ;;
2743esac
2744    CC=$ac_ct_CC
2745  fi
2746fi
2747
2748fi
2749
2750
2751test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753as_fn_error $? "no acceptable C compiler found in \$PATH
2754See \`config.log' for more details" "$LINENO" 5; }
2755
2756# Provide some information about the compiler.
2757$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2758set X $ac_compile
2759ac_compiler=$2
2760for ac_option in --version -v -V -qversion; do
2761  { { ac_try="$ac_compiler $ac_option >&5"
2762case "(($ac_try" in
2763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764  *) ac_try_echo=$ac_try;;
2765esac
2766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767$as_echo "$ac_try_echo"; } >&5
2768  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2769  ac_status=$?
2770  if test -s conftest.err; then
2771    sed '10a\
2772... rest of stderr output deleted ...
2773         10q' conftest.err >conftest.er1
2774    cat conftest.er1 >&5
2775  fi
2776  rm -f conftest.er1 conftest.err
2777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778  test $ac_status = 0; }
2779done
2780
2781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782/* end confdefs.h.  */
2783
2784int
2785main ()
2786{
2787
2788  ;
2789  return 0;
2790}
2791_ACEOF
2792ac_clean_files_save=$ac_clean_files
2793ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2794# Try to create an executable without -o first, disregard a.out.
2795# It will help us diagnose broken compilers, and finding out an intuition
2796# of exeext.
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2798$as_echo_n "checking whether the C compiler works... " >&6; }
2799ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800
2801# The possible output files:
2802ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2803
2804ac_rmfiles=
2805for ac_file in $ac_files
2806do
2807  case $ac_file in
2808    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2809    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810  esac
2811done
2812rm -f $ac_rmfiles
2813
2814if { { ac_try="$ac_link_default"
2815case "(($ac_try" in
2816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817  *) ac_try_echo=$ac_try;;
2818esac
2819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820$as_echo "$ac_try_echo"; } >&5
2821  (eval "$ac_link_default") 2>&5
2822  ac_status=$?
2823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824  test $ac_status = 0; }; then :
2825  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2828# so that the user can short-circuit this test for compilers unknown to
2829# Autoconf.
2830for ac_file in $ac_files ''
2831do
2832  test -f "$ac_file" || continue
2833  case $ac_file in
2834    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2835	;;
2836    [ab].out )
2837	# We found the default executable, but exeext='' is most
2838	# certainly right.
2839	break;;
2840    *.* )
2841	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842	then :; else
2843	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844	fi
2845	# We set ac_cv_exeext here because the later test for it is not
2846	# safe: cross compilers may not add the suffix if given an `-o'
2847	# argument, so we may need to know it at that point already.
2848	# Even if this section looks crufty: it has the advantage of
2849	# actually working.
2850	break;;
2851    * )
2852	break;;
2853  esac
2854done
2855test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
2857else
2858  ac_file=''
2859fi
2860if test -z "$ac_file"; then :
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863$as_echo "$as_me: failed program was:" >&5
2864sed 's/^/| /' conftest.$ac_ext >&5
2865
2866{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868as_fn_error 77 "C compiler cannot create executables
2869See \`config.log' for more details" "$LINENO" 5; }
2870else
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872$as_echo "yes" >&6; }
2873fi
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2875$as_echo_n "checking for C compiler default output file name... " >&6; }
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2877$as_echo "$ac_file" >&6; }
2878ac_exeext=$ac_cv_exeext
2879
2880rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2881ac_clean_files=$ac_clean_files_save
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2883$as_echo_n "checking for suffix of executables... " >&6; }
2884if { { ac_try="$ac_link"
2885case "(($ac_try" in
2886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887  *) ac_try_echo=$ac_try;;
2888esac
2889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890$as_echo "$ac_try_echo"; } >&5
2891  (eval "$ac_link") 2>&5
2892  ac_status=$?
2893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894  test $ac_status = 0; }; then :
2895  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2896# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2897# work properly (i.e., refer to `conftest.exe'), while it won't with
2898# `rm'.
2899for ac_file in conftest.exe conftest conftest.*; do
2900  test -f "$ac_file" || continue
2901  case $ac_file in
2902    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2903    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904	  break;;
2905    * ) break;;
2906  esac
2907done
2908else
2909  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2912See \`config.log' for more details" "$LINENO" 5; }
2913fi
2914rm -f conftest conftest$ac_cv_exeext
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2916$as_echo "$ac_cv_exeext" >&6; }
2917
2918rm -f conftest.$ac_ext
2919EXEEXT=$ac_cv_exeext
2920ac_exeext=$EXEEXT
2921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h.  */
2923#include <stdio.h>
2924int
2925main ()
2926{
2927FILE *f = fopen ("conftest.out", "w");
2928 return ferror (f) || fclose (f) != 0;
2929
2930  ;
2931  return 0;
2932}
2933_ACEOF
2934ac_clean_files="$ac_clean_files conftest.out"
2935# Check that the compiler produces executables we can run.  If not, either
2936# the compiler is broken, or we cross compile.
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2938$as_echo_n "checking whether we are cross compiling... " >&6; }
2939if test "$cross_compiling" != yes; then
2940  { { ac_try="$ac_link"
2941case "(($ac_try" in
2942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943  *) ac_try_echo=$ac_try;;
2944esac
2945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946$as_echo "$ac_try_echo"; } >&5
2947  (eval "$ac_link") 2>&5
2948  ac_status=$?
2949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950  test $ac_status = 0; }
2951  if { ac_try='./conftest$ac_cv_exeext'
2952  { { case "(($ac_try" in
2953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954  *) ac_try_echo=$ac_try;;
2955esac
2956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957$as_echo "$ac_try_echo"; } >&5
2958  (eval "$ac_try") 2>&5
2959  ac_status=$?
2960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961  test $ac_status = 0; }; }; then
2962    cross_compiling=no
2963  else
2964    if test "$cross_compiling" = maybe; then
2965	cross_compiling=yes
2966    else
2967	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969as_fn_error $? "cannot run C compiled programs.
2970If you meant to cross compile, use \`--host'.
2971See \`config.log' for more details" "$LINENO" 5; }
2972    fi
2973  fi
2974fi
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2976$as_echo "$cross_compiling" >&6; }
2977
2978rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2979ac_clean_files=$ac_clean_files_save
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2981$as_echo_n "checking for suffix of object files... " >&6; }
2982if ${ac_cv_objext+:} false; then :
2983  $as_echo_n "(cached) " >&6
2984else
2985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986/* end confdefs.h.  */
2987
2988int
2989main ()
2990{
2991
2992  ;
2993  return 0;
2994}
2995_ACEOF
2996rm -f conftest.o conftest.obj
2997if { { ac_try="$ac_compile"
2998case "(($ac_try" in
2999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000  *) ac_try_echo=$ac_try;;
3001esac
3002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003$as_echo "$ac_try_echo"; } >&5
3004  (eval "$ac_compile") 2>&5
3005  ac_status=$?
3006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007  test $ac_status = 0; }; then :
3008  for ac_file in conftest.o conftest.obj conftest.*; do
3009  test -f "$ac_file" || continue;
3010  case $ac_file in
3011    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3012    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3013       break;;
3014  esac
3015done
3016else
3017  $as_echo "$as_me: failed program was:" >&5
3018sed 's/^/| /' conftest.$ac_ext >&5
3019
3020{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022as_fn_error $? "cannot compute suffix of object files: cannot compile
3023See \`config.log' for more details" "$LINENO" 5; }
3024fi
3025rm -f conftest.$ac_cv_objext conftest.$ac_ext
3026fi
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3028$as_echo "$ac_cv_objext" >&6; }
3029OBJEXT=$ac_cv_objext
3030ac_objext=$OBJEXT
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3032$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3033if ${ac_cv_c_compiler_gnu+:} false; then :
3034  $as_echo_n "(cached) " >&6
3035else
3036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037/* end confdefs.h.  */
3038
3039int
3040main ()
3041{
3042#ifndef __GNUC__
3043       choke me
3044#endif
3045
3046  ;
3047  return 0;
3048}
3049_ACEOF
3050if ac_fn_c_try_compile "$LINENO"; then :
3051  ac_compiler_gnu=yes
3052else
3053  ac_compiler_gnu=no
3054fi
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058fi
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3060$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3061if test $ac_compiler_gnu = yes; then
3062  GCC=yes
3063else
3064  GCC=
3065fi
3066ac_test_CFLAGS=${CFLAGS+set}
3067ac_save_CFLAGS=$CFLAGS
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3069$as_echo_n "checking whether $CC accepts -g... " >&6; }
3070if ${ac_cv_prog_cc_g+:} false; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  ac_save_c_werror_flag=$ac_c_werror_flag
3074   ac_c_werror_flag=yes
3075   ac_cv_prog_cc_g=no
3076   CFLAGS="-g"
3077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h.  */
3079
3080int
3081main ()
3082{
3083
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088if ac_fn_c_try_compile "$LINENO"; then :
3089  ac_cv_prog_cc_g=yes
3090else
3091  CFLAGS=""
3092      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103if ac_fn_c_try_compile "$LINENO"; then :
3104
3105else
3106  ac_c_werror_flag=$ac_save_c_werror_flag
3107	 CFLAGS="-g"
3108	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114
3115  ;
3116  return 0;
3117}
3118_ACEOF
3119if ac_fn_c_try_compile "$LINENO"; then :
3120  ac_cv_prog_cc_g=yes
3121fi
3122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123fi
3124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125fi
3126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127   ac_c_werror_flag=$ac_save_c_werror_flag
3128fi
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3130$as_echo "$ac_cv_prog_cc_g" >&6; }
3131if test "$ac_test_CFLAGS" = set; then
3132  CFLAGS=$ac_save_CFLAGS
3133elif test $ac_cv_prog_cc_g = yes; then
3134  if test "$GCC" = yes; then
3135    CFLAGS="-g -O2"
3136  else
3137    CFLAGS="-g"
3138  fi
3139else
3140  if test "$GCC" = yes; then
3141    CFLAGS="-O2"
3142  else
3143    CFLAGS=
3144  fi
3145fi
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3147$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3148if ${ac_cv_prog_cc_c89+:} false; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  ac_cv_prog_cc_c89=no
3152ac_save_CC=$CC
3153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154/* end confdefs.h.  */
3155#include <stdarg.h>
3156#include <stdio.h>
3157struct stat;
3158/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3159struct buf { int x; };
3160FILE * (*rcsopen) (struct buf *, struct stat *, int);
3161static char *e (p, i)
3162     char **p;
3163     int i;
3164{
3165  return p[i];
3166}
3167static char *f (char * (*g) (char **, int), char **p, ...)
3168{
3169  char *s;
3170  va_list v;
3171  va_start (v,p);
3172  s = g (p, va_arg (v,int));
3173  va_end (v);
3174  return s;
3175}
3176
3177/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3178   function prototypes and stuff, but not '\xHH' hex character constants.
3179   These don't provoke an error unfortunately, instead are silently treated
3180   as 'x'.  The following induces an error, until -std is added to get
3181   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3182   array size at least.  It's necessary to write '\x00'==0 to get something
3183   that's true only with -std.  */
3184int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3185
3186/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3187   inside strings and character constants.  */
3188#define FOO(x) 'x'
3189int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3190
3191int test (int i, double x);
3192struct s1 {int (*f) (int a);};
3193struct s2 {int (*f) (double a);};
3194int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3195int argc;
3196char **argv;
3197int
3198main ()
3199{
3200return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3201  ;
3202  return 0;
3203}
3204_ACEOF
3205for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3206	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3207do
3208  CC="$ac_save_CC $ac_arg"
3209  if ac_fn_c_try_compile "$LINENO"; then :
3210  ac_cv_prog_cc_c89=$ac_arg
3211fi
3212rm -f core conftest.err conftest.$ac_objext
3213  test "x$ac_cv_prog_cc_c89" != "xno" && break
3214done
3215rm -f conftest.$ac_ext
3216CC=$ac_save_CC
3217
3218fi
3219# AC_CACHE_VAL
3220case "x$ac_cv_prog_cc_c89" in
3221  x)
3222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3223$as_echo "none needed" >&6; } ;;
3224  xno)
3225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3226$as_echo "unsupported" >&6; } ;;
3227  *)
3228    CC="$CC $ac_cv_prog_cc_c89"
3229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3230$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3231esac
3232if test "x$ac_cv_prog_cc_c89" != xno; then :
3233
3234fi
3235
3236ac_ext=c
3237ac_cpp='$CPP $CPPFLAGS'
3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242ac_ext=c
3243ac_cpp='$CPP $CPPFLAGS'
3244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3248$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3249if ${am_cv_prog_cc_c_o+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254
3255int
3256main ()
3257{
3258
3259  ;
3260  return 0;
3261}
3262_ACEOF
3263  # Make sure it works both with $CC and with simple cc.
3264  # Following AC_PROG_CC_C_O, we do the test twice because some
3265  # compilers refuse to overwrite an existing .o file with -o,
3266  # though they will create one.
3267  am_cv_prog_cc_c_o=yes
3268  for am_i in 1 2; do
3269    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3270   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } \
3274         && test -f conftest2.$ac_objext; then
3275      : OK
3276    else
3277      am_cv_prog_cc_c_o=no
3278      break
3279    fi
3280  done
3281  rm -f core conftest*
3282  unset am_i
3283fi
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3285$as_echo "$am_cv_prog_cc_c_o" >&6; }
3286if test "$am_cv_prog_cc_c_o" != yes; then
3287   # Losing compiler, so override with the script.
3288   # FIXME: It is wrong to rewrite CC.
3289   # But if we don't then we get into trouble of one sort or another.
3290   # A longer-term fix would be to have automake use am__CC in this case,
3291   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3292   CC="$am_aux_dir/compile $CC"
3293fi
3294ac_ext=c
3295ac_cpp='$CPP $CPPFLAGS'
3296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299
3300
3301
3302ac_ext=c
3303ac_cpp='$CPP $CPPFLAGS'
3304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3308$as_echo_n "checking how to run the C preprocessor... " >&6; }
3309# On Suns, sometimes $CPP names a directory.
3310if test -n "$CPP" && test -d "$CPP"; then
3311  CPP=
3312fi
3313if test -z "$CPP"; then
3314  if ${ac_cv_prog_CPP+:} false; then :
3315  $as_echo_n "(cached) " >&6
3316else
3317      # Double quotes because CPP needs to be expanded
3318    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3319    do
3320      ac_preproc_ok=false
3321for ac_c_preproc_warn_flag in '' yes
3322do
3323  # Use a header file that comes with gcc, so configuring glibc
3324  # with a fresh cross-compiler works.
3325  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3326  # <limits.h> exists even on freestanding compilers.
3327  # On the NeXT, cc -E runs the code through the compiler's parser,
3328  # not just through cpp. "Syntax error" is here to catch this case.
3329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331#ifdef __STDC__
3332# include <limits.h>
3333#else
3334# include <assert.h>
3335#endif
3336		     Syntax error
3337_ACEOF
3338if ac_fn_c_try_cpp "$LINENO"; then :
3339
3340else
3341  # Broken: fails on valid input.
3342continue
3343fi
3344rm -f conftest.err conftest.i conftest.$ac_ext
3345
3346  # OK, works on sane cases.  Now check whether nonexistent headers
3347  # can be detected and how.
3348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349/* end confdefs.h.  */
3350#include <ac_nonexistent.h>
3351_ACEOF
3352if ac_fn_c_try_cpp "$LINENO"; then :
3353  # Broken: success on invalid input.
3354continue
3355else
3356  # Passes both tests.
3357ac_preproc_ok=:
3358break
3359fi
3360rm -f conftest.err conftest.i conftest.$ac_ext
3361
3362done
3363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3364rm -f conftest.i conftest.err conftest.$ac_ext
3365if $ac_preproc_ok; then :
3366  break
3367fi
3368
3369    done
3370    ac_cv_prog_CPP=$CPP
3371
3372fi
3373  CPP=$ac_cv_prog_CPP
3374else
3375  ac_cv_prog_CPP=$CPP
3376fi
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3378$as_echo "$CPP" >&6; }
3379ac_preproc_ok=false
3380for ac_c_preproc_warn_flag in '' yes
3381do
3382  # Use a header file that comes with gcc, so configuring glibc
3383  # with a fresh cross-compiler works.
3384  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385  # <limits.h> exists even on freestanding compilers.
3386  # On the NeXT, cc -E runs the code through the compiler's parser,
3387  # not just through cpp. "Syntax error" is here to catch this case.
3388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389/* end confdefs.h.  */
3390#ifdef __STDC__
3391# include <limits.h>
3392#else
3393# include <assert.h>
3394#endif
3395		     Syntax error
3396_ACEOF
3397if ac_fn_c_try_cpp "$LINENO"; then :
3398
3399else
3400  # Broken: fails on valid input.
3401continue
3402fi
3403rm -f conftest.err conftest.i conftest.$ac_ext
3404
3405  # OK, works on sane cases.  Now check whether nonexistent headers
3406  # can be detected and how.
3407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408/* end confdefs.h.  */
3409#include <ac_nonexistent.h>
3410_ACEOF
3411if ac_fn_c_try_cpp "$LINENO"; then :
3412  # Broken: success on invalid input.
3413continue
3414else
3415  # Passes both tests.
3416ac_preproc_ok=:
3417break
3418fi
3419rm -f conftest.err conftest.i conftest.$ac_ext
3420
3421done
3422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3423rm -f conftest.i conftest.err conftest.$ac_ext
3424if $ac_preproc_ok; then :
3425
3426else
3427  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3430See \`config.log' for more details" "$LINENO" 5; }
3431fi
3432
3433ac_ext=c
3434ac_cpp='$CPP $CPPFLAGS'
3435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438
3439
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3441$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3442if ${ac_cv_path_GREP+:} false; then :
3443  $as_echo_n "(cached) " >&6
3444else
3445  if test -z "$GREP"; then
3446  ac_path_GREP_found=false
3447  # Loop through the user's path and test for each of PROGNAME-LIST
3448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3450do
3451  IFS=$as_save_IFS
3452  test -z "$as_dir" && as_dir=.
3453    for ac_prog in grep ggrep; do
3454    for ac_exec_ext in '' $ac_executable_extensions; do
3455      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3456      as_fn_executable_p "$ac_path_GREP" || continue
3457# Check for GNU ac_path_GREP and select it if it is found.
3458  # Check for GNU $ac_path_GREP
3459case `"$ac_path_GREP" --version 2>&1` in
3460*GNU*)
3461  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3462*)
3463  ac_count=0
3464  $as_echo_n 0123456789 >"conftest.in"
3465  while :
3466  do
3467    cat "conftest.in" "conftest.in" >"conftest.tmp"
3468    mv "conftest.tmp" "conftest.in"
3469    cp "conftest.in" "conftest.nl"
3470    $as_echo 'GREP' >> "conftest.nl"
3471    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3472    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3473    as_fn_arith $ac_count + 1 && ac_count=$as_val
3474    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3475      # Best one so far, save it but keep looking for a better one
3476      ac_cv_path_GREP="$ac_path_GREP"
3477      ac_path_GREP_max=$ac_count
3478    fi
3479    # 10*(2^10) chars as input seems more than enough
3480    test $ac_count -gt 10 && break
3481  done
3482  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3483esac
3484
3485      $ac_path_GREP_found && break 3
3486    done
3487  done
3488  done
3489IFS=$as_save_IFS
3490  if test -z "$ac_cv_path_GREP"; then
3491    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3492  fi
3493else
3494  ac_cv_path_GREP=$GREP
3495fi
3496
3497fi
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3499$as_echo "$ac_cv_path_GREP" >&6; }
3500 GREP="$ac_cv_path_GREP"
3501
3502
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3504$as_echo_n "checking for egrep... " >&6; }
3505if ${ac_cv_path_EGREP+:} false; then :
3506  $as_echo_n "(cached) " >&6
3507else
3508  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3509   then ac_cv_path_EGREP="$GREP -E"
3510   else
3511     if test -z "$EGREP"; then
3512  ac_path_EGREP_found=false
3513  # Loop through the user's path and test for each of PROGNAME-LIST
3514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3516do
3517  IFS=$as_save_IFS
3518  test -z "$as_dir" && as_dir=.
3519    for ac_prog in egrep; do
3520    for ac_exec_ext in '' $ac_executable_extensions; do
3521      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3522      as_fn_executable_p "$ac_path_EGREP" || continue
3523# Check for GNU ac_path_EGREP and select it if it is found.
3524  # Check for GNU $ac_path_EGREP
3525case `"$ac_path_EGREP" --version 2>&1` in
3526*GNU*)
3527  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3528*)
3529  ac_count=0
3530  $as_echo_n 0123456789 >"conftest.in"
3531  while :
3532  do
3533    cat "conftest.in" "conftest.in" >"conftest.tmp"
3534    mv "conftest.tmp" "conftest.in"
3535    cp "conftest.in" "conftest.nl"
3536    $as_echo 'EGREP' >> "conftest.nl"
3537    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3538    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3539    as_fn_arith $ac_count + 1 && ac_count=$as_val
3540    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3541      # Best one so far, save it but keep looking for a better one
3542      ac_cv_path_EGREP="$ac_path_EGREP"
3543      ac_path_EGREP_max=$ac_count
3544    fi
3545    # 10*(2^10) chars as input seems more than enough
3546    test $ac_count -gt 10 && break
3547  done
3548  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3549esac
3550
3551      $ac_path_EGREP_found && break 3
3552    done
3553  done
3554  done
3555IFS=$as_save_IFS
3556  if test -z "$ac_cv_path_EGREP"; then
3557    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3558  fi
3559else
3560  ac_cv_path_EGREP=$EGREP
3561fi
3562
3563   fi
3564fi
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3566$as_echo "$ac_cv_path_EGREP" >&6; }
3567 EGREP="$ac_cv_path_EGREP"
3568
3569
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3571$as_echo_n "checking for ANSI C header files... " >&6; }
3572if ${ac_cv_header_stdc+:} false; then :
3573  $as_echo_n "(cached) " >&6
3574else
3575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h.  */
3577#include <stdlib.h>
3578#include <stdarg.h>
3579#include <string.h>
3580#include <float.h>
3581
3582int
3583main ()
3584{
3585
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590if ac_fn_c_try_compile "$LINENO"; then :
3591  ac_cv_header_stdc=yes
3592else
3593  ac_cv_header_stdc=no
3594fi
3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596
3597if test $ac_cv_header_stdc = yes; then
3598  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h.  */
3601#include <string.h>
3602
3603_ACEOF
3604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605  $EGREP "memchr" >/dev/null 2>&1; then :
3606
3607else
3608  ac_cv_header_stdc=no
3609fi
3610rm -f conftest*
3611
3612fi
3613
3614if test $ac_cv_header_stdc = yes; then
3615  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h.  */
3618#include <stdlib.h>
3619
3620_ACEOF
3621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622  $EGREP "free" >/dev/null 2>&1; then :
3623
3624else
3625  ac_cv_header_stdc=no
3626fi
3627rm -f conftest*
3628
3629fi
3630
3631if test $ac_cv_header_stdc = yes; then
3632  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3633  if test "$cross_compiling" = yes; then :
3634  :
3635else
3636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h.  */
3638#include <ctype.h>
3639#include <stdlib.h>
3640#if ((' ' & 0x0FF) == 0x020)
3641# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3642# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3643#else
3644# define ISLOWER(c) \
3645		   (('a' <= (c) && (c) <= 'i') \
3646		     || ('j' <= (c) && (c) <= 'r') \
3647		     || ('s' <= (c) && (c) <= 'z'))
3648# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3649#endif
3650
3651#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3652int
3653main ()
3654{
3655  int i;
3656  for (i = 0; i < 256; i++)
3657    if (XOR (islower (i), ISLOWER (i))
3658	|| toupper (i) != TOUPPER (i))
3659      return 2;
3660  return 0;
3661}
3662_ACEOF
3663if ac_fn_c_try_run "$LINENO"; then :
3664
3665else
3666  ac_cv_header_stdc=no
3667fi
3668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3669  conftest.$ac_objext conftest.beam conftest.$ac_ext
3670fi
3671
3672fi
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3675$as_echo "$ac_cv_header_stdc" >&6; }
3676if test $ac_cv_header_stdc = yes; then
3677
3678$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3679
3680fi
3681
3682# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3683for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3684		  inttypes.h stdint.h unistd.h
3685do :
3686  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3687ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3688"
3689if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3690  cat >>confdefs.h <<_ACEOF
3691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3692_ACEOF
3693
3694fi
3695
3696done
3697
3698
3699
3700  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3701if test "x$ac_cv_header_minix_config_h" = xyes; then :
3702  MINIX=yes
3703else
3704  MINIX=
3705fi
3706
3707
3708  if test "$MINIX" = yes; then
3709
3710$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3711
3712
3713$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3714
3715
3716$as_echo "#define _MINIX 1" >>confdefs.h
3717
3718  fi
3719
3720
3721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3722$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3723if ${ac_cv_safe_to_define___extensions__+:} false; then :
3724  $as_echo_n "(cached) " >&6
3725else
3726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h.  */
3728
3729#         define __EXTENSIONS__ 1
3730          $ac_includes_default
3731int
3732main ()
3733{
3734
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739if ac_fn_c_try_compile "$LINENO"; then :
3740  ac_cv_safe_to_define___extensions__=yes
3741else
3742  ac_cv_safe_to_define___extensions__=no
3743fi
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3747$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3748  test $ac_cv_safe_to_define___extensions__ = yes &&
3749    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3750
3751  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3752
3753  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3754
3755  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3756
3757  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3758
3759
3760am__api_version='1.15'
3761
3762# Find a good install program.  We prefer a C program (faster),
3763# so one script is as good as another.  But avoid the broken or
3764# incompatible versions:
3765# SysV /etc/install, /usr/sbin/install
3766# SunOS /usr/etc/install
3767# IRIX /sbin/install
3768# AIX /bin/install
3769# AmigaOS /C/install, which installs bootblocks on floppy discs
3770# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3771# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3772# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3773# OS/2's system install, which has a completely different semantic
3774# ./install, which can be erroneously created by make from ./install.sh.
3775# Reject install programs that cannot install multiple files.
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3777$as_echo_n "checking for a BSD-compatible install... " >&6; }
3778if test -z "$INSTALL"; then
3779if ${ac_cv_path_install+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH
3784do
3785  IFS=$as_save_IFS
3786  test -z "$as_dir" && as_dir=.
3787    # Account for people who put trailing slashes in PATH elements.
3788case $as_dir/ in #((
3789  ./ | .// | /[cC]/* | \
3790  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3791  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3792  /usr/ucb/* ) ;;
3793  *)
3794    # OSF1 and SCO ODT 3.0 have their own names for install.
3795    # Don't use installbsd from OSF since it installs stuff as root
3796    # by default.
3797    for ac_prog in ginstall scoinst install; do
3798      for ac_exec_ext in '' $ac_executable_extensions; do
3799	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3800	  if test $ac_prog = install &&
3801	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3802	    # AIX install.  It has an incompatible calling convention.
3803	    :
3804	  elif test $ac_prog = install &&
3805	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3806	    # program-specific install script used by HP pwplus--don't use.
3807	    :
3808	  else
3809	    rm -rf conftest.one conftest.two conftest.dir
3810	    echo one > conftest.one
3811	    echo two > conftest.two
3812	    mkdir conftest.dir
3813	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3814	      test -s conftest.one && test -s conftest.two &&
3815	      test -s conftest.dir/conftest.one &&
3816	      test -s conftest.dir/conftest.two
3817	    then
3818	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3819	      break 3
3820	    fi
3821	  fi
3822	fi
3823      done
3824    done
3825    ;;
3826esac
3827
3828  done
3829IFS=$as_save_IFS
3830
3831rm -rf conftest.one conftest.two conftest.dir
3832
3833fi
3834  if test "${ac_cv_path_install+set}" = set; then
3835    INSTALL=$ac_cv_path_install
3836  else
3837    # As a last resort, use the slow shell script.  Don't cache a
3838    # value for INSTALL within a source directory, because that will
3839    # break other packages using the cache if that directory is
3840    # removed, or if the value is a relative name.
3841    INSTALL=$ac_install_sh
3842  fi
3843fi
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3845$as_echo "$INSTALL" >&6; }
3846
3847# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3848# It thinks the first close brace ends the variable substitution.
3849test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3850
3851test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3852
3853test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3854
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3856$as_echo_n "checking whether build environment is sane... " >&6; }
3857# Reject unsafe characters in $srcdir or the absolute working directory
3858# name.  Accept space and tab only in the latter.
3859am_lf='
3860'
3861case `pwd` in
3862  *[\\\"\#\$\&\'\`$am_lf]*)
3863    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3864esac
3865case $srcdir in
3866  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3867    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3868esac
3869
3870# Do 'set' in a subshell so we don't clobber the current shell's
3871# arguments.  Must try -L first in case configure is actually a
3872# symlink; some systems play weird games with the mod time of symlinks
3873# (eg FreeBSD returns the mod time of the symlink's containing
3874# directory).
3875if (
3876   am_has_slept=no
3877   for am_try in 1 2; do
3878     echo "timestamp, slept: $am_has_slept" > conftest.file
3879     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3880     if test "$*" = "X"; then
3881	# -L didn't work.
3882	set X `ls -t "$srcdir/configure" conftest.file`
3883     fi
3884     if test "$*" != "X $srcdir/configure conftest.file" \
3885	&& test "$*" != "X conftest.file $srcdir/configure"; then
3886
3887	# If neither matched, then we have a broken ls.  This can happen
3888	# if, for instance, CONFIG_SHELL is bash and it inherits a
3889	# broken ls alias from the environment.  This has actually
3890	# happened.  Such a system could not be considered "sane".
3891	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3892  alias in your environment" "$LINENO" 5
3893     fi
3894     if test "$2" = conftest.file || test $am_try -eq 2; then
3895       break
3896     fi
3897     # Just in case.
3898     sleep 1
3899     am_has_slept=yes
3900   done
3901   test "$2" = conftest.file
3902   )
3903then
3904   # Ok.
3905   :
3906else
3907   as_fn_error $? "newly created file is older than distributed files!
3908Check your system clock" "$LINENO" 5
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911$as_echo "yes" >&6; }
3912# If we didn't sleep, we still need to ensure time stamps of config.status and
3913# generated files are strictly newer.
3914am_sleep_pid=
3915if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3916  ( sleep 1 ) &
3917  am_sleep_pid=$!
3918fi
3919
3920rm -f conftest.file
3921
3922test "$program_prefix" != NONE &&
3923  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3924# Use a double $ so make ignores it.
3925test "$program_suffix" != NONE &&
3926  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3927# Double any \ or $.
3928# By default was `s,x,x', remove it if useless.
3929ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3930program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3931
3932if test x"${MISSING+set}" != xset; then
3933  case $am_aux_dir in
3934  *\ * | *\	*)
3935    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3936  *)
3937    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3938  esac
3939fi
3940# Use eval to expand $SHELL
3941if eval "$MISSING --is-lightweight"; then
3942  am_missing_run="$MISSING "
3943else
3944  am_missing_run=
3945  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3946$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3947fi
3948
3949if test x"${install_sh+set}" != xset; then
3950  case $am_aux_dir in
3951  *\ * | *\	*)
3952    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3953  *)
3954    install_sh="\${SHELL} $am_aux_dir/install-sh"
3955  esac
3956fi
3957
3958# Installed binaries are usually stripped using 'strip' when the user
3959# run "make install-strip".  However 'strip' might not be the right
3960# tool to use in cross-compilation environments, therefore Automake
3961# will honor the 'STRIP' environment variable to overrule this program.
3962if test "$cross_compiling" != no; then
3963  if test -n "$ac_tool_prefix"; then
3964  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3965set dummy ${ac_tool_prefix}strip; ac_word=$2
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967$as_echo_n "checking for $ac_word... " >&6; }
3968if ${ac_cv_prog_STRIP+:} false; then :
3969  $as_echo_n "(cached) " >&6
3970else
3971  if test -n "$STRIP"; then
3972  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3973else
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977  IFS=$as_save_IFS
3978  test -z "$as_dir" && as_dir=.
3979    for ac_exec_ext in '' $ac_executable_extensions; do
3980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983    break 2
3984  fi
3985done
3986  done
3987IFS=$as_save_IFS
3988
3989fi
3990fi
3991STRIP=$ac_cv_prog_STRIP
3992if test -n "$STRIP"; then
3993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3994$as_echo "$STRIP" >&6; }
3995else
3996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
3998fi
3999
4000
4001fi
4002if test -z "$ac_cv_prog_STRIP"; then
4003  ac_ct_STRIP=$STRIP
4004  # Extract the first word of "strip", so it can be a program name with args.
4005set dummy strip; ac_word=$2
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
4008if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4009  $as_echo_n "(cached) " >&6
4010else
4011  if test -n "$ac_ct_STRIP"; then
4012  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4013else
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017  IFS=$as_save_IFS
4018  test -z "$as_dir" && as_dir=.
4019    for ac_exec_ext in '' $ac_executable_extensions; do
4020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021    ac_cv_prog_ac_ct_STRIP="strip"
4022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023    break 2
4024  fi
4025done
4026  done
4027IFS=$as_save_IFS
4028
4029fi
4030fi
4031ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4032if test -n "$ac_ct_STRIP"; then
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4034$as_echo "$ac_ct_STRIP" >&6; }
4035else
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
4038fi
4039
4040  if test "x$ac_ct_STRIP" = x; then
4041    STRIP=":"
4042  else
4043    case $cross_compiling:$ac_tool_warned in
4044yes:)
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047ac_tool_warned=yes ;;
4048esac
4049    STRIP=$ac_ct_STRIP
4050  fi
4051else
4052  STRIP="$ac_cv_prog_STRIP"
4053fi
4054
4055fi
4056INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4059$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4060if test -z "$MKDIR_P"; then
4061  if ${ac_cv_path_mkdir+:} false; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4066do
4067  IFS=$as_save_IFS
4068  test -z "$as_dir" && as_dir=.
4069    for ac_prog in mkdir gmkdir; do
4070	 for ac_exec_ext in '' $ac_executable_extensions; do
4071	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4072	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4073	     'mkdir (GNU coreutils) '* | \
4074	     'mkdir (coreutils) '* | \
4075	     'mkdir (fileutils) '4.1*)
4076	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4077	       break 3;;
4078	   esac
4079	 done
4080       done
4081  done
4082IFS=$as_save_IFS
4083
4084fi
4085
4086  test -d ./--version && rmdir ./--version
4087  if test "${ac_cv_path_mkdir+set}" = set; then
4088    MKDIR_P="$ac_cv_path_mkdir -p"
4089  else
4090    # As a last resort, use the slow shell script.  Don't cache a
4091    # value for MKDIR_P within a source directory, because that will
4092    # break other packages using the cache if that directory is
4093    # removed, or if the value is a relative name.
4094    MKDIR_P="$ac_install_sh -d"
4095  fi
4096fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4098$as_echo "$MKDIR_P" >&6; }
4099
4100for ac_prog in gawk mawk nawk awk
4101do
4102  # Extract the first word of "$ac_prog", so it can be a program name with args.
4103set dummy $ac_prog; ac_word=$2
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105$as_echo_n "checking for $ac_word... " >&6; }
4106if ${ac_cv_prog_AWK+:} false; then :
4107  $as_echo_n "(cached) " >&6
4108else
4109  if test -n "$AWK"; then
4110  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4111else
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115  IFS=$as_save_IFS
4116  test -z "$as_dir" && as_dir=.
4117    for ac_exec_ext in '' $ac_executable_extensions; do
4118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4119    ac_cv_prog_AWK="$ac_prog"
4120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121    break 2
4122  fi
4123done
4124  done
4125IFS=$as_save_IFS
4126
4127fi
4128fi
4129AWK=$ac_cv_prog_AWK
4130if test -n "$AWK"; then
4131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4132$as_echo "$AWK" >&6; }
4133else
4134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136fi
4137
4138
4139  test -n "$AWK" && break
4140done
4141
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4143$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4144set x ${MAKE-make}
4145ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4146if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4147  $as_echo_n "(cached) " >&6
4148else
4149  cat >conftest.make <<\_ACEOF
4150SHELL = /bin/sh
4151all:
4152	@echo '@@@%%%=$(MAKE)=@@@%%%'
4153_ACEOF
4154# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4155case `${MAKE-make} -f conftest.make 2>/dev/null` in
4156  *@@@%%%=?*=@@@%%%*)
4157    eval ac_cv_prog_make_${ac_make}_set=yes;;
4158  *)
4159    eval ac_cv_prog_make_${ac_make}_set=no;;
4160esac
4161rm -f conftest.make
4162fi
4163if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165$as_echo "yes" >&6; }
4166  SET_MAKE=
4167else
4168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169$as_echo "no" >&6; }
4170  SET_MAKE="MAKE=${MAKE-make}"
4171fi
4172
4173rm -rf .tst 2>/dev/null
4174mkdir .tst 2>/dev/null
4175if test -d .tst; then
4176  am__leading_dot=.
4177else
4178  am__leading_dot=_
4179fi
4180rmdir .tst 2>/dev/null
4181
4182DEPDIR="${am__leading_dot}deps"
4183
4184ac_config_commands="$ac_config_commands depfiles"
4185
4186
4187am_make=${MAKE-make}
4188cat > confinc << 'END'
4189am__doit:
4190	@echo this is the am__doit target
4191.PHONY: am__doit
4192END
4193# If we don't find an include directive, just comment out the code.
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4195$as_echo_n "checking for style of include used by $am_make... " >&6; }
4196am__include="#"
4197am__quote=
4198_am_result=none
4199# First try GNU make style include.
4200echo "include confinc" > confmf
4201# Ignore all kinds of additional output from 'make'.
4202case `$am_make -s -f confmf 2> /dev/null` in #(
4203*the\ am__doit\ target*)
4204  am__include=include
4205  am__quote=
4206  _am_result=GNU
4207  ;;
4208esac
4209# Now try BSD make style include.
4210if test "$am__include" = "#"; then
4211   echo '.include "confinc"' > confmf
4212   case `$am_make -s -f confmf 2> /dev/null` in #(
4213   *the\ am__doit\ target*)
4214     am__include=.include
4215     am__quote="\""
4216     _am_result=BSD
4217     ;;
4218   esac
4219fi
4220
4221
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4223$as_echo "$_am_result" >&6; }
4224rm -f confinc confmf
4225
4226# Check whether --enable-dependency-tracking was given.
4227if test "${enable_dependency_tracking+set}" = set; then :
4228  enableval=$enable_dependency_tracking;
4229fi
4230
4231if test "x$enable_dependency_tracking" != xno; then
4232  am_depcomp="$ac_aux_dir/depcomp"
4233  AMDEPBACKSLASH='\'
4234  am__nodep='_no'
4235fi
4236 if test "x$enable_dependency_tracking" != xno; then
4237  AMDEP_TRUE=
4238  AMDEP_FALSE='#'
4239else
4240  AMDEP_TRUE='#'
4241  AMDEP_FALSE=
4242fi
4243
4244
4245# Check whether --enable-silent-rules was given.
4246if test "${enable_silent_rules+set}" = set; then :
4247  enableval=$enable_silent_rules;
4248fi
4249
4250case $enable_silent_rules in # (((
4251  yes) AM_DEFAULT_VERBOSITY=0;;
4252   no) AM_DEFAULT_VERBOSITY=1;;
4253    *) AM_DEFAULT_VERBOSITY=1;;
4254esac
4255am_make=${MAKE-make}
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4257$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4258if ${am_cv_make_support_nested_variables+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  if $as_echo 'TRUE=$(BAR$(V))
4262BAR0=false
4263BAR1=true
4264V=1
4265am__doit:
4266	@$(TRUE)
4267.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4268  am_cv_make_support_nested_variables=yes
4269else
4270  am_cv_make_support_nested_variables=no
4271fi
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4274$as_echo "$am_cv_make_support_nested_variables" >&6; }
4275if test $am_cv_make_support_nested_variables = yes; then
4276    AM_V='$(V)'
4277  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4278else
4279  AM_V=$AM_DEFAULT_VERBOSITY
4280  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4281fi
4282AM_BACKSLASH='\'
4283
4284if test "`cd $srcdir && pwd`" != "`pwd`"; then
4285  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4286  # is not polluted with repeated "-I."
4287  am__isrc=' -I$(srcdir)'
4288  # test to see if srcdir already configured
4289  if test -f $srcdir/config.status; then
4290    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4291  fi
4292fi
4293
4294# test whether we have cygpath
4295if test -z "$CYGPATH_W"; then
4296  if (cygpath --version) >/dev/null 2>/dev/null; then
4297    CYGPATH_W='cygpath -w'
4298  else
4299    CYGPATH_W=echo
4300  fi
4301fi
4302
4303
4304# Define the identity of the package.
4305 PACKAGE='libctf'
4306 VERSION='1.2.0'
4307
4308
4309cat >>confdefs.h <<_ACEOF
4310#define PACKAGE "$PACKAGE"
4311_ACEOF
4312
4313
4314cat >>confdefs.h <<_ACEOF
4315#define VERSION "$VERSION"
4316_ACEOF
4317
4318# Some tools Automake needs.
4319
4320ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4321
4322
4323AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4324
4325
4326AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4327
4328
4329AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4330
4331
4332MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4333
4334# For better backward compatibility.  To be removed once Automake 1.9.x
4335# dies out for good.  For more background, see:
4336# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4337# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4338mkdir_p='$(MKDIR_P)'
4339
4340# We need awk for the "check" target (and possibly the TAP driver).  The
4341# system "awk" is bad on some platforms.
4342# Always define AMTAR for backward compatibility.  Yes, it's still used
4343# in the wild :-(  We should find a proper way to deprecate it ...
4344AMTAR='$${TAR-tar}'
4345
4346
4347# We'll loop over all known methods to create a tar archive until one works.
4348_am_tools='gnutar  pax cpio none'
4349
4350am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4351
4352
4353
4354
4355
4356depcc="$CC"   am_compiler_list=
4357
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4359$as_echo_n "checking dependency style of $depcc... " >&6; }
4360if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4361  $as_echo_n "(cached) " >&6
4362else
4363  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4364  # We make a subdir and do the tests there.  Otherwise we can end up
4365  # making bogus files that we don't know about and never remove.  For
4366  # instance it was reported that on HP-UX the gcc test will end up
4367  # making a dummy file named 'D' -- because '-MD' means "put the output
4368  # in D".
4369  rm -rf conftest.dir
4370  mkdir conftest.dir
4371  # Copy depcomp to subdir because otherwise we won't find it if we're
4372  # using a relative directory.
4373  cp "$am_depcomp" conftest.dir
4374  cd conftest.dir
4375  # We will build objects and dependencies in a subdirectory because
4376  # it helps to detect inapplicable dependency modes.  For instance
4377  # both Tru64's cc and ICC support -MD to output dependencies as a
4378  # side effect of compilation, but ICC will put the dependencies in
4379  # the current directory while Tru64 will put them in the object
4380  # directory.
4381  mkdir sub
4382
4383  am_cv_CC_dependencies_compiler_type=none
4384  if test "$am_compiler_list" = ""; then
4385     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4386  fi
4387  am__universal=false
4388  case " $depcc " in #(
4389     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4390     esac
4391
4392  for depmode in $am_compiler_list; do
4393    # Setup a source with many dependencies, because some compilers
4394    # like to wrap large dependency lists on column 80 (with \), and
4395    # we should not choose a depcomp mode which is confused by this.
4396    #
4397    # We need to recreate these files for each test, as the compiler may
4398    # overwrite some of them when testing with obscure command lines.
4399    # This happens at least with the AIX C compiler.
4400    : > sub/conftest.c
4401    for i in 1 2 3 4 5 6; do
4402      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4403      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4404      # Solaris 10 /bin/sh.
4405      echo '/* dummy */' > sub/conftst$i.h
4406    done
4407    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4408
4409    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4410    # mode.  It turns out that the SunPro C++ compiler does not properly
4411    # handle '-M -o', and we need to detect this.  Also, some Intel
4412    # versions had trouble with output in subdirs.
4413    am__obj=sub/conftest.${OBJEXT-o}
4414    am__minus_obj="-o $am__obj"
4415    case $depmode in
4416    gcc)
4417      # This depmode causes a compiler race in universal mode.
4418      test "$am__universal" = false || continue
4419      ;;
4420    nosideeffect)
4421      # After this tag, mechanisms are not by side-effect, so they'll
4422      # only be used when explicitly requested.
4423      if test "x$enable_dependency_tracking" = xyes; then
4424	continue
4425      else
4426	break
4427      fi
4428      ;;
4429    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4430      # This compiler won't grok '-c -o', but also, the minuso test has
4431      # not run yet.  These depmodes are late enough in the game, and
4432      # so weak that their functioning should not be impacted.
4433      am__obj=conftest.${OBJEXT-o}
4434      am__minus_obj=
4435      ;;
4436    none) break ;;
4437    esac
4438    if depmode=$depmode \
4439       source=sub/conftest.c object=$am__obj \
4440       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4441       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4442         >/dev/null 2>conftest.err &&
4443       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4444       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4445       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4446       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4447      # icc doesn't choke on unknown options, it will just issue warnings
4448      # or remarks (even with -Werror).  So we grep stderr for any message
4449      # that says an option was ignored or not supported.
4450      # When given -MP, icc 7.0 and 7.1 complain thusly:
4451      #   icc: Command line warning: ignoring option '-M'; no argument required
4452      # The diagnosis changed in icc 8.0:
4453      #   icc: Command line remark: option '-MP' not supported
4454      if (grep 'ignoring option' conftest.err ||
4455          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4456        am_cv_CC_dependencies_compiler_type=$depmode
4457        break
4458      fi
4459    fi
4460  done
4461
4462  cd ..
4463  rm -rf conftest.dir
4464else
4465  am_cv_CC_dependencies_compiler_type=none
4466fi
4467
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4470$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4471CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4472
4473 if
4474  test "x$enable_dependency_tracking" != xno \
4475  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4476  am__fastdepCC_TRUE=
4477  am__fastdepCC_FALSE='#'
4478else
4479  am__fastdepCC_TRUE='#'
4480  am__fastdepCC_FALSE=
4481fi
4482
4483
4484
4485# POSIX will say in a future version that running "rm -f" with no argument
4486# is OK; and we want to be able to make that assumption in our Makefile
4487# recipes.  So use an aggressive probe to check that the usage we want is
4488# actually supported "in the wild" to an acceptable degree.
4489# See automake bug#10828.
4490# To make any issue more visible, cause the running configure to be aborted
4491# by default if the 'rm' program in use doesn't match our expectations; the
4492# user can still override this though.
4493if rm -f && rm -fr && rm -rf; then : OK; else
4494  cat >&2 <<'END'
4495Oops!
4496
4497Your 'rm' program seems unable to run without file operands specified
4498on the command line, even when the '-f' option is present.  This is contrary
4499to the behaviour of most rm programs out there, and not conforming with
4500the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4501
4502Please tell bug-automake@gnu.org about your system, including the value
4503of your $PATH and any error possibly output before this message.  This
4504can help us improve future automake versions.
4505
4506END
4507  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4508    echo 'Configuration will proceed anyway, since you have set the' >&2
4509    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4510    echo >&2
4511  else
4512    cat >&2 <<'END'
4513Aborting the configuration process, to ensure you take notice of the issue.
4514
4515You can download and install GNU coreutils to get an 'rm' implementation
4516that behaves properly: <http://www.gnu.org/software/coreutils/>.
4517
4518If you want to complete the configuration process using your problematic
4519'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4520to "yes", and re-run configure.
4521
4522END
4523    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4524  fi
4525fi
4526
4527# Check whether --enable-silent-rules was given.
4528if test "${enable_silent_rules+set}" = set; then :
4529  enableval=$enable_silent_rules;
4530fi
4531
4532case $enable_silent_rules in # (((
4533  yes) AM_DEFAULT_VERBOSITY=0;;
4534   no) AM_DEFAULT_VERBOSITY=1;;
4535    *) AM_DEFAULT_VERBOSITY=0;;
4536esac
4537am_make=${MAKE-make}
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4539$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4540if ${am_cv_make_support_nested_variables+:} false; then :
4541  $as_echo_n "(cached) " >&6
4542else
4543  if $as_echo 'TRUE=$(BAR$(V))
4544BAR0=false
4545BAR1=true
4546V=1
4547am__doit:
4548	@$(TRUE)
4549.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4550  am_cv_make_support_nested_variables=yes
4551else
4552  am_cv_make_support_nested_variables=no
4553fi
4554fi
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4556$as_echo "$am_cv_make_support_nested_variables" >&6; }
4557if test $am_cv_make_support_nested_variables = yes; then
4558    AM_V='$(V)'
4559  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4560else
4561  AM_V=$AM_DEFAULT_VERBOSITY
4562  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4563fi
4564AM_BACKSLASH='\'
4565
4566
4567# Checks for programs.
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4569$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4570set x ${MAKE-make}
4571ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4572if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4573  $as_echo_n "(cached) " >&6
4574else
4575  cat >conftest.make <<\_ACEOF
4576SHELL = /bin/sh
4577all:
4578	@echo '@@@%%%=$(MAKE)=@@@%%%'
4579_ACEOF
4580# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4581case `${MAKE-make} -f conftest.make 2>/dev/null` in
4582  *@@@%%%=?*=@@@%%%*)
4583    eval ac_cv_prog_make_${ac_make}_set=yes;;
4584  *)
4585    eval ac_cv_prog_make_${ac_make}_set=no;;
4586esac
4587rm -f conftest.make
4588fi
4589if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4591$as_echo "yes" >&6; }
4592  SET_MAKE=
4593else
4594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595$as_echo "no" >&6; }
4596  SET_MAKE="MAKE=${MAKE-make}"
4597fi
4598
4599ac_ext=c
4600ac_cpp='$CPP $CPPFLAGS'
4601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604if test -n "$ac_tool_prefix"; then
4605  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4606set dummy ${ac_tool_prefix}gcc; ac_word=$2
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if ${ac_cv_prog_CC+:} false; then :
4610  $as_echo_n "(cached) " >&6
4611else
4612  if test -n "$CC"; then
4613  ac_cv_prog_CC="$CC" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618  IFS=$as_save_IFS
4619  test -z "$as_dir" && as_dir=.
4620    for ac_exec_ext in '' $ac_executable_extensions; do
4621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624    break 2
4625  fi
4626done
4627  done
4628IFS=$as_save_IFS
4629
4630fi
4631fi
4632CC=$ac_cv_prog_CC
4633if test -n "$CC"; then
4634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635$as_echo "$CC" >&6; }
4636else
4637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641
4642fi
4643if test -z "$ac_cv_prog_CC"; then
4644  ac_ct_CC=$CC
4645  # Extract the first word of "gcc", so it can be a program name with args.
4646set dummy gcc; ac_word=$2
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if ${ac_cv_prog_ac_ct_CC+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  if test -n "$ac_ct_CC"; then
4653  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658  IFS=$as_save_IFS
4659  test -z "$as_dir" && as_dir=.
4660    for ac_exec_ext in '' $ac_executable_extensions; do
4661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662    ac_cv_prog_ac_ct_CC="gcc"
4663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664    break 2
4665  fi
4666done
4667  done
4668IFS=$as_save_IFS
4669
4670fi
4671fi
4672ac_ct_CC=$ac_cv_prog_ac_ct_CC
4673if test -n "$ac_ct_CC"; then
4674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4675$as_echo "$ac_ct_CC" >&6; }
4676else
4677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678$as_echo "no" >&6; }
4679fi
4680
4681  if test "x$ac_ct_CC" = x; then
4682    CC=""
4683  else
4684    case $cross_compiling:$ac_tool_warned in
4685yes:)
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688ac_tool_warned=yes ;;
4689esac
4690    CC=$ac_ct_CC
4691  fi
4692else
4693  CC="$ac_cv_prog_CC"
4694fi
4695
4696if test -z "$CC"; then
4697          if test -n "$ac_tool_prefix"; then
4698    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4699set dummy ${ac_tool_prefix}cc; ac_word=$2
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701$as_echo_n "checking for $ac_word... " >&6; }
4702if ${ac_cv_prog_CC+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  if test -n "$CC"; then
4706  ac_cv_prog_CC="$CC" # Let the user override the test.
4707else
4708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711  IFS=$as_save_IFS
4712  test -z "$as_dir" && as_dir=.
4713    for ac_exec_ext in '' $ac_executable_extensions; do
4714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715    ac_cv_prog_CC="${ac_tool_prefix}cc"
4716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717    break 2
4718  fi
4719done
4720  done
4721IFS=$as_save_IFS
4722
4723fi
4724fi
4725CC=$ac_cv_prog_CC
4726if test -n "$CC"; then
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4728$as_echo "$CC" >&6; }
4729else
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731$as_echo "no" >&6; }
4732fi
4733
4734
4735  fi
4736fi
4737if test -z "$CC"; then
4738  # Extract the first word of "cc", so it can be a program name with args.
4739set dummy cc; ac_word=$2
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741$as_echo_n "checking for $ac_word... " >&6; }
4742if ${ac_cv_prog_CC+:} false; then :
4743  $as_echo_n "(cached) " >&6
4744else
4745  if test -n "$CC"; then
4746  ac_cv_prog_CC="$CC" # Let the user override the test.
4747else
4748  ac_prog_rejected=no
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754    for ac_exec_ext in '' $ac_executable_extensions; do
4755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4757       ac_prog_rejected=yes
4758       continue
4759     fi
4760    ac_cv_prog_CC="cc"
4761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762    break 2
4763  fi
4764done
4765  done
4766IFS=$as_save_IFS
4767
4768if test $ac_prog_rejected = yes; then
4769  # We found a bogon in the path, so make sure we never use it.
4770  set dummy $ac_cv_prog_CC
4771  shift
4772  if test $# != 0; then
4773    # We chose a different compiler from the bogus one.
4774    # However, it has the same basename, so the bogon will be chosen
4775    # first if we set CC to just the basename; use the full file name.
4776    shift
4777    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4778  fi
4779fi
4780fi
4781fi
4782CC=$ac_cv_prog_CC
4783if test -n "$CC"; then
4784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4785$as_echo "$CC" >&6; }
4786else
4787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788$as_echo "no" >&6; }
4789fi
4790
4791
4792fi
4793if test -z "$CC"; then
4794  if test -n "$ac_tool_prefix"; then
4795  for ac_prog in cl.exe
4796  do
4797    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if ${ac_cv_prog_CC+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  if test -n "$CC"; then
4805  ac_cv_prog_CC="$CC" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810  IFS=$as_save_IFS
4811  test -z "$as_dir" && as_dir=.
4812    for ac_exec_ext in '' $ac_executable_extensions; do
4813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816    break 2
4817  fi
4818done
4819  done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824CC=$ac_cv_prog_CC
4825if test -n "$CC"; then
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827$as_echo "$CC" >&6; }
4828else
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833
4834    test -n "$CC" && break
4835  done
4836fi
4837if test -z "$CC"; then
4838  ac_ct_CC=$CC
4839  for ac_prog in cl.exe
4840do
4841  # Extract the first word of "$ac_prog", so it can be a program name with args.
4842set dummy $ac_prog; ac_word=$2
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844$as_echo_n "checking for $ac_word... " >&6; }
4845if ${ac_cv_prog_ac_ct_CC+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  if test -n "$ac_ct_CC"; then
4849  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4850else
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854  IFS=$as_save_IFS
4855  test -z "$as_dir" && as_dir=.
4856    for ac_exec_ext in '' $ac_executable_extensions; do
4857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858    ac_cv_prog_ac_ct_CC="$ac_prog"
4859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860    break 2
4861  fi
4862done
4863  done
4864IFS=$as_save_IFS
4865
4866fi
4867fi
4868ac_ct_CC=$ac_cv_prog_ac_ct_CC
4869if test -n "$ac_ct_CC"; then
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4871$as_echo "$ac_ct_CC" >&6; }
4872else
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874$as_echo "no" >&6; }
4875fi
4876
4877
4878  test -n "$ac_ct_CC" && break
4879done
4880
4881  if test "x$ac_ct_CC" = x; then
4882    CC=""
4883  else
4884    case $cross_compiling:$ac_tool_warned in
4885yes:)
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890    CC=$ac_ct_CC
4891  fi
4892fi
4893
4894fi
4895
4896
4897test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899as_fn_error $? "no acceptable C compiler found in \$PATH
4900See \`config.log' for more details" "$LINENO" 5; }
4901
4902# Provide some information about the compiler.
4903$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4904set X $ac_compile
4905ac_compiler=$2
4906for ac_option in --version -v -V -qversion; do
4907  { { ac_try="$ac_compiler $ac_option >&5"
4908case "(($ac_try" in
4909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910  *) ac_try_echo=$ac_try;;
4911esac
4912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913$as_echo "$ac_try_echo"; } >&5
4914  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4915  ac_status=$?
4916  if test -s conftest.err; then
4917    sed '10a\
4918... rest of stderr output deleted ...
4919         10q' conftest.err >conftest.er1
4920    cat conftest.er1 >&5
4921  fi
4922  rm -f conftest.er1 conftest.err
4923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924  test $ac_status = 0; }
4925done
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4928$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4929if ${ac_cv_c_compiler_gnu+:} false; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934
4935int
4936main ()
4937{
4938#ifndef __GNUC__
4939       choke me
4940#endif
4941
4942  ;
4943  return 0;
4944}
4945_ACEOF
4946if ac_fn_c_try_compile "$LINENO"; then :
4947  ac_compiler_gnu=yes
4948else
4949  ac_compiler_gnu=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952ac_cv_c_compiler_gnu=$ac_compiler_gnu
4953
4954fi
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4956$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4957if test $ac_compiler_gnu = yes; then
4958  GCC=yes
4959else
4960  GCC=
4961fi
4962ac_test_CFLAGS=${CFLAGS+set}
4963ac_save_CFLAGS=$CFLAGS
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4965$as_echo_n "checking whether $CC accepts -g... " >&6; }
4966if ${ac_cv_prog_cc_g+:} false; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969  ac_save_c_werror_flag=$ac_c_werror_flag
4970   ac_c_werror_flag=yes
4971   ac_cv_prog_cc_g=no
4972   CFLAGS="-g"
4973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974/* end confdefs.h.  */
4975
4976int
4977main ()
4978{
4979
4980  ;
4981  return 0;
4982}
4983_ACEOF
4984if ac_fn_c_try_compile "$LINENO"; then :
4985  ac_cv_prog_cc_g=yes
4986else
4987  CFLAGS=""
4988      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h.  */
4990
4991int
4992main ()
4993{
4994
4995  ;
4996  return 0;
4997}
4998_ACEOF
4999if ac_fn_c_try_compile "$LINENO"; then :
5000
5001else
5002  ac_c_werror_flag=$ac_save_c_werror_flag
5003	 CFLAGS="-g"
5004	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006
5007int
5008main ()
5009{
5010
5011  ;
5012  return 0;
5013}
5014_ACEOF
5015if ac_fn_c_try_compile "$LINENO"; then :
5016  ac_cv_prog_cc_g=yes
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019fi
5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021fi
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023   ac_c_werror_flag=$ac_save_c_werror_flag
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5026$as_echo "$ac_cv_prog_cc_g" >&6; }
5027if test "$ac_test_CFLAGS" = set; then
5028  CFLAGS=$ac_save_CFLAGS
5029elif test $ac_cv_prog_cc_g = yes; then
5030  if test "$GCC" = yes; then
5031    CFLAGS="-g -O2"
5032  else
5033    CFLAGS="-g"
5034  fi
5035else
5036  if test "$GCC" = yes; then
5037    CFLAGS="-O2"
5038  else
5039    CFLAGS=
5040  fi
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5043$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5044if ${ac_cv_prog_cc_c89+:} false; then :
5045  $as_echo_n "(cached) " >&6
5046else
5047  ac_cv_prog_cc_c89=no
5048ac_save_CC=$CC
5049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050/* end confdefs.h.  */
5051#include <stdarg.h>
5052#include <stdio.h>
5053struct stat;
5054/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5055struct buf { int x; };
5056FILE * (*rcsopen) (struct buf *, struct stat *, int);
5057static char *e (p, i)
5058     char **p;
5059     int i;
5060{
5061  return p[i];
5062}
5063static char *f (char * (*g) (char **, int), char **p, ...)
5064{
5065  char *s;
5066  va_list v;
5067  va_start (v,p);
5068  s = g (p, va_arg (v,int));
5069  va_end (v);
5070  return s;
5071}
5072
5073/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5074   function prototypes and stuff, but not '\xHH' hex character constants.
5075   These don't provoke an error unfortunately, instead are silently treated
5076   as 'x'.  The following induces an error, until -std is added to get
5077   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5078   array size at least.  It's necessary to write '\x00'==0 to get something
5079   that's true only with -std.  */
5080int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5081
5082/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5083   inside strings and character constants.  */
5084#define FOO(x) 'x'
5085int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5086
5087int test (int i, double x);
5088struct s1 {int (*f) (int a);};
5089struct s2 {int (*f) (double a);};
5090int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5091int argc;
5092char **argv;
5093int
5094main ()
5095{
5096return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5097  ;
5098  return 0;
5099}
5100_ACEOF
5101for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5102	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5103do
5104  CC="$ac_save_CC $ac_arg"
5105  if ac_fn_c_try_compile "$LINENO"; then :
5106  ac_cv_prog_cc_c89=$ac_arg
5107fi
5108rm -f core conftest.err conftest.$ac_objext
5109  test "x$ac_cv_prog_cc_c89" != "xno" && break
5110done
5111rm -f conftest.$ac_ext
5112CC=$ac_save_CC
5113
5114fi
5115# AC_CACHE_VAL
5116case "x$ac_cv_prog_cc_c89" in
5117  x)
5118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5119$as_echo "none needed" >&6; } ;;
5120  xno)
5121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5122$as_echo "unsupported" >&6; } ;;
5123  *)
5124    CC="$CC $ac_cv_prog_cc_c89"
5125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5126$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5127esac
5128if test "x$ac_cv_prog_cc_c89" != xno; then :
5129
5130fi
5131
5132ac_ext=c
5133ac_cpp='$CPP $CPPFLAGS'
5134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137
5138ac_ext=c
5139ac_cpp='$CPP $CPPFLAGS'
5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5144$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5145if ${am_cv_prog_cc_c_o+:} false; then :
5146  $as_echo_n "(cached) " >&6
5147else
5148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149/* end confdefs.h.  */
5150
5151int
5152main ()
5153{
5154
5155  ;
5156  return 0;
5157}
5158_ACEOF
5159  # Make sure it works both with $CC and with simple cc.
5160  # Following AC_PROG_CC_C_O, we do the test twice because some
5161  # compilers refuse to overwrite an existing .o file with -o,
5162  # though they will create one.
5163  am_cv_prog_cc_c_o=yes
5164  for am_i in 1 2; do
5165    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5166   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5167   ac_status=$?
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } \
5170         && test -f conftest2.$ac_objext; then
5171      : OK
5172    else
5173      am_cv_prog_cc_c_o=no
5174      break
5175    fi
5176  done
5177  rm -f core conftest*
5178  unset am_i
5179fi
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5181$as_echo "$am_cv_prog_cc_c_o" >&6; }
5182if test "$am_cv_prog_cc_c_o" != yes; then
5183   # Losing compiler, so override with the script.
5184   # FIXME: It is wrong to rewrite CC.
5185   # But if we don't then we get into trouble of one sort or another.
5186   # A longer-term fix would be to have automake use am__CC in this case,
5187   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5188   CC="$am_aux_dir/compile $CC"
5189fi
5190ac_ext=c
5191ac_cpp='$CPP $CPPFLAGS'
5192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195
5196
5197if test -n "$ac_tool_prefix"; then
5198  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5199set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
5202if ${ac_cv_prog_RANLIB+:} false; then :
5203  $as_echo_n "(cached) " >&6
5204else
5205  if test -n "$RANLIB"; then
5206  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211  IFS=$as_save_IFS
5212  test -z "$as_dir" && as_dir=.
5213    for ac_exec_ext in '' $ac_executable_extensions; do
5214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217    break 2
5218  fi
5219done
5220  done
5221IFS=$as_save_IFS
5222
5223fi
5224fi
5225RANLIB=$ac_cv_prog_RANLIB
5226if test -n "$RANLIB"; then
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5228$as_echo "$RANLIB" >&6; }
5229else
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
5232fi
5233
5234
5235fi
5236if test -z "$ac_cv_prog_RANLIB"; then
5237  ac_ct_RANLIB=$RANLIB
5238  # Extract the first word of "ranlib", so it can be a program name with args.
5239set dummy ranlib; ac_word=$2
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
5242if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5243  $as_echo_n "(cached) " >&6
5244else
5245  if test -n "$ac_ct_RANLIB"; then
5246  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5247else
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251  IFS=$as_save_IFS
5252  test -z "$as_dir" && as_dir=.
5253    for ac_exec_ext in '' $ac_executable_extensions; do
5254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255    ac_cv_prog_ac_ct_RANLIB="ranlib"
5256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257    break 2
5258  fi
5259done
5260  done
5261IFS=$as_save_IFS
5262
5263fi
5264fi
5265ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5266if test -n "$ac_ct_RANLIB"; then
5267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5268$as_echo "$ac_ct_RANLIB" >&6; }
5269else
5270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271$as_echo "no" >&6; }
5272fi
5273
5274  if test "x$ac_ct_RANLIB" = x; then
5275    RANLIB=":"
5276  else
5277    case $cross_compiling:$ac_tool_warned in
5278yes:)
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281ac_tool_warned=yes ;;
5282esac
5283    RANLIB=$ac_ct_RANLIB
5284  fi
5285else
5286  RANLIB="$ac_cv_prog_RANLIB"
5287fi
5288
5289if test -n "$ac_tool_prefix"; then
5290  for ac_prog in ar lib "link -lib"
5291  do
5292    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295$as_echo_n "checking for $ac_word... " >&6; }
5296if ${ac_cv_prog_AR+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  if test -n "$AR"; then
5300  ac_cv_prog_AR="$AR" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305  IFS=$as_save_IFS
5306  test -z "$as_dir" && as_dir=.
5307    for ac_exec_ext in '' $ac_executable_extensions; do
5308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311    break 2
5312  fi
5313done
5314  done
5315IFS=$as_save_IFS
5316
5317fi
5318fi
5319AR=$ac_cv_prog_AR
5320if test -n "$AR"; then
5321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5322$as_echo "$AR" >&6; }
5323else
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327
5328
5329    test -n "$AR" && break
5330  done
5331fi
5332if test -z "$AR"; then
5333  ac_ct_AR=$AR
5334  for ac_prog in ar lib "link -lib"
5335do
5336  # Extract the first word of "$ac_prog", so it can be a program name with args.
5337set dummy $ac_prog; ac_word=$2
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339$as_echo_n "checking for $ac_word... " >&6; }
5340if ${ac_cv_prog_ac_ct_AR+:} false; then :
5341  $as_echo_n "(cached) " >&6
5342else
5343  if test -n "$ac_ct_AR"; then
5344  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5345else
5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349  IFS=$as_save_IFS
5350  test -z "$as_dir" && as_dir=.
5351    for ac_exec_ext in '' $ac_executable_extensions; do
5352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353    ac_cv_prog_ac_ct_AR="$ac_prog"
5354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355    break 2
5356  fi
5357done
5358  done
5359IFS=$as_save_IFS
5360
5361fi
5362fi
5363ac_ct_AR=$ac_cv_prog_ac_ct_AR
5364if test -n "$ac_ct_AR"; then
5365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5366$as_echo "$ac_ct_AR" >&6; }
5367else
5368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369$as_echo "no" >&6; }
5370fi
5371
5372
5373  test -n "$ac_ct_AR" && break
5374done
5375
5376  if test "x$ac_ct_AR" = x; then
5377    AR="false"
5378  else
5379    case $cross_compiling:$ac_tool_warned in
5380yes:)
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383ac_tool_warned=yes ;;
5384esac
5385    AR=$ac_ct_AR
5386  fi
5387fi
5388
5389: ${AR=ar}
5390
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5392$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5393if ${am_cv_ar_interface+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396  ac_ext=c
5397ac_cpp='$CPP $CPPFLAGS'
5398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401
5402   am_cv_ar_interface=ar
5403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404/* end confdefs.h.  */
5405int some_variable = 0;
5406_ACEOF
5407if ac_fn_c_try_compile "$LINENO"; then :
5408  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5409      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5410  (eval $am_ar_try) 2>&5
5411  ac_status=$?
5412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5413  test $ac_status = 0; }
5414      if test "$ac_status" -eq 0; then
5415        am_cv_ar_interface=ar
5416      else
5417        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5418        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5419  (eval $am_ar_try) 2>&5
5420  ac_status=$?
5421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5422  test $ac_status = 0; }
5423        if test "$ac_status" -eq 0; then
5424          am_cv_ar_interface=lib
5425        else
5426          am_cv_ar_interface=unknown
5427        fi
5428      fi
5429      rm -f conftest.lib libconftest.a
5430
5431fi
5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433   ac_ext=c
5434ac_cpp='$CPP $CPPFLAGS'
5435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438
5439fi
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5441$as_echo "$am_cv_ar_interface" >&6; }
5442
5443case $am_cv_ar_interface in
5444ar)
5445  ;;
5446lib)
5447  # Microsoft lib, so override with the ar-lib wrapper script.
5448  # FIXME: It is wrong to rewrite AR.
5449  # But if we don't then we get into trouble of one sort or another.
5450  # A longer-term fix would be to have automake use am__AR in this case,
5451  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5452  # similar.
5453  AR="$am_aux_dir/ar-lib $AR"
5454  ;;
5455unknown)
5456  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5457  ;;
5458esac
5459
5460# If we haven't got the data from the intl directory,
5461# assume NLS is disabled.
5462USE_NLS=no
5463LIBINTL=
5464LIBINTL_DEP=
5465INCINTL=
5466XGETTEXT=
5467GMSGFMT=
5468POSUB=
5469
5470if test -f  ../intl/config.intl; then
5471  .  ../intl/config.intl
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5474$as_echo_n "checking whether NLS is requested... " >&6; }
5475if test x"$USE_NLS" != xyes; then
5476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477$as_echo "no" >&6; }
5478else
5479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480$as_echo "yes" >&6; }
5481
5482$as_echo "#define ENABLE_NLS 1" >>confdefs.h
5483
5484
5485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5486$as_echo_n "checking for catalogs to be installed... " >&6; }
5487  # Look for .po and .gmo files in the source directory.
5488  CATALOGS=
5489  XLINGUAS=
5490  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5491    # If there aren't any .gmo files the shell will give us the
5492    # literal string "../path/to/srcdir/po/*.gmo" which has to be
5493    # weeded out.
5494    case "$cat" in *\**)
5495      continue;;
5496    esac
5497    # The quadruple backslash is collapsed to a double backslash
5498    # by the backticks, then collapsed again by the double quotes,
5499    # leaving us with one backslash in the sed expression (right
5500    # before the dot that mustn't act as a wildcard).
5501    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5502    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5503    # The user is allowed to set LINGUAS to a list of languages to
5504    # install catalogs for.  If it's empty that means "all of them."
5505    if test "x$LINGUAS" = x; then
5506      CATALOGS="$CATALOGS $cat"
5507      XLINGUAS="$XLINGUAS $lang"
5508    else
5509      case "$LINGUAS" in *$lang*)
5510        CATALOGS="$CATALOGS $cat"
5511        XLINGUAS="$XLINGUAS $lang"
5512        ;;
5513      esac
5514    fi
5515  done
5516  LINGUAS="$XLINGUAS"
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5518$as_echo "$LINGUAS" >&6; }
5519
5520
5521    DATADIRNAME=share
5522
5523  INSTOBJEXT=.mo
5524
5525  GENCAT=gencat
5526
5527  CATOBJEXT=.gmo
5528
5529fi
5530
5531# Check whether --enable-shared was given.
5532if test "${enable_shared+set}" = set; then :
5533  enableval=$enable_shared; p=${PACKAGE-default}
5534    case $enableval in
5535    yes) enable_shared=yes ;;
5536    no) enable_shared=no ;;
5537    *)
5538      enable_shared=no
5539      # Look at the argument we got.  We use all the common list separators.
5540      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5541      for pkg in $enableval; do
5542	IFS="$lt_save_ifs"
5543	if test "X$pkg" = "X$p"; then
5544	  enable_shared=yes
5545	fi
5546      done
5547      IFS="$lt_save_ifs"
5548      ;;
5549    esac
5550else
5551  enable_shared=no
5552fi
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563case `pwd` in
5564  *\ * | *\	*)
5565    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5566$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5567esac
5568
5569
5570
5571macro_version='2.2.7a'
5572macro_revision='1.3134'
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586ltmain="$ac_aux_dir/ltmain.sh"
5587
5588# Backslashify metacharacters that are still active within
5589# double-quoted strings.
5590sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5591
5592# Same as above, but do not quote variable references.
5593double_quote_subst='s/\(["`\\]\)/\\\1/g'
5594
5595# Sed substitution to delay expansion of an escaped shell variable in a
5596# double_quote_subst'ed string.
5597delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5598
5599# Sed substitution to delay expansion of an escaped single quote.
5600delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5601
5602# Sed substitution to avoid accidental globbing in evaled expressions
5603no_glob_subst='s/\*/\\\*/g'
5604
5605ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5606ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5607ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5608
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5610$as_echo_n "checking how to print strings... " >&6; }
5611# Test print first, because it will be a builtin if present.
5612if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5613   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5614  ECHO='print -r --'
5615elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5616  ECHO='printf %s\n'
5617else
5618  # Use this function as a fallback that always works.
5619  func_fallback_echo ()
5620  {
5621    eval 'cat <<_LTECHO_EOF
5622$1
5623_LTECHO_EOF'
5624  }
5625  ECHO='func_fallback_echo'
5626fi
5627
5628# func_echo_all arg...
5629# Invoke $ECHO with all args, space-separated.
5630func_echo_all ()
5631{
5632    $ECHO ""
5633}
5634
5635case "$ECHO" in
5636  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5637$as_echo "printf" >&6; } ;;
5638  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5639$as_echo "print -r" >&6; } ;;
5640  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5641$as_echo "cat" >&6; } ;;
5642esac
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5658$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5659if ${ac_cv_path_SED+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5663     for ac_i in 1 2 3 4 5 6 7; do
5664       ac_script="$ac_script$as_nl$ac_script"
5665     done
5666     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5667     { ac_script=; unset ac_script;}
5668     if test -z "$SED"; then
5669  ac_path_SED_found=false
5670  # Loop through the user's path and test for each of PROGNAME-LIST
5671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674  IFS=$as_save_IFS
5675  test -z "$as_dir" && as_dir=.
5676    for ac_prog in sed gsed; do
5677    for ac_exec_ext in '' $ac_executable_extensions; do
5678      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5679      as_fn_executable_p "$ac_path_SED" || continue
5680# Check for GNU ac_path_SED and select it if it is found.
5681  # Check for GNU $ac_path_SED
5682case `"$ac_path_SED" --version 2>&1` in
5683*GNU*)
5684  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5685*)
5686  ac_count=0
5687  $as_echo_n 0123456789 >"conftest.in"
5688  while :
5689  do
5690    cat "conftest.in" "conftest.in" >"conftest.tmp"
5691    mv "conftest.tmp" "conftest.in"
5692    cp "conftest.in" "conftest.nl"
5693    $as_echo '' >> "conftest.nl"
5694    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5695    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5696    as_fn_arith $ac_count + 1 && ac_count=$as_val
5697    if test $ac_count -gt ${ac_path_SED_max-0}; then
5698      # Best one so far, save it but keep looking for a better one
5699      ac_cv_path_SED="$ac_path_SED"
5700      ac_path_SED_max=$ac_count
5701    fi
5702    # 10*(2^10) chars as input seems more than enough
5703    test $ac_count -gt 10 && break
5704  done
5705  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5706esac
5707
5708      $ac_path_SED_found && break 3
5709    done
5710  done
5711  done
5712IFS=$as_save_IFS
5713  if test -z "$ac_cv_path_SED"; then
5714    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5715  fi
5716else
5717  ac_cv_path_SED=$SED
5718fi
5719
5720fi
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5722$as_echo "$ac_cv_path_SED" >&6; }
5723 SED="$ac_cv_path_SED"
5724  rm -f conftest.sed
5725
5726test -z "$SED" && SED=sed
5727Xsed="$SED -e 1s/^X//"
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5740$as_echo_n "checking for fgrep... " >&6; }
5741if ${ac_cv_path_FGREP+:} false; then :
5742  $as_echo_n "(cached) " >&6
5743else
5744  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5745   then ac_cv_path_FGREP="$GREP -F"
5746   else
5747     if test -z "$FGREP"; then
5748  ac_path_FGREP_found=false
5749  # Loop through the user's path and test for each of PROGNAME-LIST
5750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755    for ac_prog in fgrep; do
5756    for ac_exec_ext in '' $ac_executable_extensions; do
5757      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5758      as_fn_executable_p "$ac_path_FGREP" || continue
5759# Check for GNU ac_path_FGREP and select it if it is found.
5760  # Check for GNU $ac_path_FGREP
5761case `"$ac_path_FGREP" --version 2>&1` in
5762*GNU*)
5763  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5764*)
5765  ac_count=0
5766  $as_echo_n 0123456789 >"conftest.in"
5767  while :
5768  do
5769    cat "conftest.in" "conftest.in" >"conftest.tmp"
5770    mv "conftest.tmp" "conftest.in"
5771    cp "conftest.in" "conftest.nl"
5772    $as_echo 'FGREP' >> "conftest.nl"
5773    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5774    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5775    as_fn_arith $ac_count + 1 && ac_count=$as_val
5776    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5777      # Best one so far, save it but keep looking for a better one
5778      ac_cv_path_FGREP="$ac_path_FGREP"
5779      ac_path_FGREP_max=$ac_count
5780    fi
5781    # 10*(2^10) chars as input seems more than enough
5782    test $ac_count -gt 10 && break
5783  done
5784  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5785esac
5786
5787      $ac_path_FGREP_found && break 3
5788    done
5789  done
5790  done
5791IFS=$as_save_IFS
5792  if test -z "$ac_cv_path_FGREP"; then
5793    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5794  fi
5795else
5796  ac_cv_path_FGREP=$FGREP
5797fi
5798
5799   fi
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5802$as_echo "$ac_cv_path_FGREP" >&6; }
5803 FGREP="$ac_cv_path_FGREP"
5804
5805
5806test -z "$GREP" && GREP=grep
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826# Check whether --with-gnu-ld was given.
5827if test "${with_gnu_ld+set}" = set; then :
5828  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5829else
5830  with_gnu_ld=no
5831fi
5832
5833ac_prog=ld
5834if test "$GCC" = yes; then
5835  # Check if gcc -print-prog-name=ld gives a path.
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5837$as_echo_n "checking for ld used by $CC... " >&6; }
5838  case $host in
5839  *-*-mingw*)
5840    # gcc leaves a trailing carriage return which upsets mingw
5841    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5842  *)
5843    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5844  esac
5845  case $ac_prog in
5846    # Accept absolute paths.
5847    [\\/]* | ?:[\\/]*)
5848      re_direlt='/[^/][^/]*/\.\./'
5849      # Canonicalize the pathname of ld
5850      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5851      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5852	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5853      done
5854      test -z "$LD" && LD="$ac_prog"
5855      ;;
5856  "")
5857    # If it fails, then pretend we aren't using GCC.
5858    ac_prog=ld
5859    ;;
5860  *)
5861    # If it is relative, then search for the first ld in PATH.
5862    with_gnu_ld=unknown
5863    ;;
5864  esac
5865elif test "$with_gnu_ld" = yes; then
5866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5867$as_echo_n "checking for GNU ld... " >&6; }
5868else
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5870$as_echo_n "checking for non-GNU ld... " >&6; }
5871fi
5872if ${lt_cv_path_LD+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875  if test -z "$LD"; then
5876  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5877  for ac_dir in $PATH; do
5878    IFS="$lt_save_ifs"
5879    test -z "$ac_dir" && ac_dir=.
5880    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5881      lt_cv_path_LD="$ac_dir/$ac_prog"
5882      # Check to see if the program is GNU ld.  I'd rather use --version,
5883      # but apparently some variants of GNU ld only accept -v.
5884      # Break only if it was the GNU/non-GNU ld that we prefer.
5885      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5886      *GNU* | *'with BFD'*)
5887	test "$with_gnu_ld" != no && break
5888	;;
5889      *)
5890	test "$with_gnu_ld" != yes && break
5891	;;
5892      esac
5893    fi
5894  done
5895  IFS="$lt_save_ifs"
5896else
5897  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5898fi
5899fi
5900
5901LD="$lt_cv_path_LD"
5902if test -n "$LD"; then
5903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5904$as_echo "$LD" >&6; }
5905else
5906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907$as_echo "no" >&6; }
5908fi
5909test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5911$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5912if ${lt_cv_prog_gnu_ld+:} false; then :
5913  $as_echo_n "(cached) " >&6
5914else
5915  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5916case `$LD -v 2>&1 </dev/null` in
5917*GNU* | *'with BFD'*)
5918  lt_cv_prog_gnu_ld=yes
5919  ;;
5920*)
5921  lt_cv_prog_gnu_ld=no
5922  ;;
5923esac
5924fi
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5926$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5927with_gnu_ld=$lt_cv_prog_gnu_ld
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5938$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5939if ${lt_cv_path_NM+:} false; then :
5940  $as_echo_n "(cached) " >&6
5941else
5942  if test -n "$NM"; then
5943   # Let the user override the nm to test.
5944   lt_nm_to_check="$NM"
5945 else
5946   lt_nm_to_check="${ac_tool_prefix}nm"
5947   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5948     lt_nm_to_check="$lt_nm_to_check nm"
5949   fi
5950 fi
5951 for lt_tmp_nm in "$lt_nm_to_check"; do
5952   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5953   for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5954     IFS="$lt_save_ifs"
5955     test -z "$ac_dir" && ac_dir=.
5956     # Strip out any user-provided options from the nm to test twice,
5957     # the first time to test to see if nm (rather than its options) has
5958     # an explicit path, the second time to yield a file which can be
5959     # nm'ed itself.
5960     tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5961     case "$tmp_nm_path" in
5962     */*|*\\*) tmp_nm="$lt_tmp_nm";;
5963     *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5964     esac
5965     tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5966     if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5967       # Check to see if the nm accepts a BSD-compat flag.
5968       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5969       #   nm: unknown option "B" ignored
5970       case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5971       *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5972	 break
5973	 ;;
5974       *)
5975	 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5976	 *$tmp_nm*)
5977	   lt_cv_path_NM="$tmp_nm -p"
5978	   break
5979	   ;;
5980	 *)
5981	   lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5982	   continue # so that we can try to find one that supports BSD flags
5983	   ;;
5984	 esac
5985	 ;;
5986       esac
5987     fi
5988   done
5989   IFS="$lt_save_ifs"
5990 done
5991 : ${lt_cv_path_NM=no}
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5994$as_echo "$lt_cv_path_NM" >&6; }
5995if test "$lt_cv_path_NM" != "no"; then
5996  NM="$lt_cv_path_NM"
5997else
5998  # Didn't find any BSD compatible name lister, look for dumpbin.
5999  if test -n "$DUMPBIN"; then :
6000    # Let the user override the test.
6001  else
6002    if test -n "$ac_tool_prefix"; then
6003  for ac_prog in dumpbin "link -dump"
6004  do
6005    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6006set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008$as_echo_n "checking for $ac_word... " >&6; }
6009if ${ac_cv_prog_DUMPBIN+:} false; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  if test -n "$DUMPBIN"; then
6013  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018  IFS=$as_save_IFS
6019  test -z "$as_dir" && as_dir=.
6020    for ac_exec_ext in '' $ac_executable_extensions; do
6021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024    break 2
6025  fi
6026done
6027  done
6028IFS=$as_save_IFS
6029
6030fi
6031fi
6032DUMPBIN=$ac_cv_prog_DUMPBIN
6033if test -n "$DUMPBIN"; then
6034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6035$as_echo "$DUMPBIN" >&6; }
6036else
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038$as_echo "no" >&6; }
6039fi
6040
6041
6042    test -n "$DUMPBIN" && break
6043  done
6044fi
6045if test -z "$DUMPBIN"; then
6046  ac_ct_DUMPBIN=$DUMPBIN
6047  for ac_prog in dumpbin "link -dump"
6048do
6049  # Extract the first word of "$ac_prog", so it can be a program name with args.
6050set dummy $ac_prog; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  if test -n "$ac_ct_DUMPBIN"; then
6057  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064    for ac_exec_ext in '' $ac_executable_extensions; do
6065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071  done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6077if test -n "$ac_ct_DUMPBIN"; then
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6079$as_echo "$ac_ct_DUMPBIN" >&6; }
6080else
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085
6086  test -n "$ac_ct_DUMPBIN" && break
6087done
6088
6089  if test "x$ac_ct_DUMPBIN" = x; then
6090    DUMPBIN=":"
6091  else
6092    case $cross_compiling:$ac_tool_warned in
6093yes:)
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096ac_tool_warned=yes ;;
6097esac
6098    DUMPBIN=$ac_ct_DUMPBIN
6099  fi
6100fi
6101
6102    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6103    *COFF*)
6104      DUMPBIN="$DUMPBIN -symbols"
6105      ;;
6106    *)
6107      DUMPBIN=:
6108      ;;
6109    esac
6110  fi
6111
6112  if test "$DUMPBIN" != ":"; then
6113    NM="$DUMPBIN"
6114  fi
6115fi
6116test -z "$NM" && NM=nm
6117
6118
6119
6120
6121
6122
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6124$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6125if ${lt_cv_nm_interface+:} false; then :
6126  $as_echo_n "(cached) " >&6
6127else
6128  lt_cv_nm_interface="BSD nm"
6129  echo "int some_variable = 0;" > conftest.$ac_ext
6130  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6131  (eval "$ac_compile" 2>conftest.err)
6132  cat conftest.err >&5
6133  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6134  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6135  cat conftest.err >&5
6136  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6137  cat conftest.out >&5
6138  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6139    lt_cv_nm_interface="MS dumpbin"
6140  fi
6141  rm -f conftest*
6142fi
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6144$as_echo "$lt_cv_nm_interface" >&6; }
6145
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6147$as_echo_n "checking whether ln -s works... " >&6; }
6148LN_S=$as_ln_s
6149if test "$LN_S" = "ln -s"; then
6150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6151$as_echo "yes" >&6; }
6152else
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6154$as_echo "no, using $LN_S" >&6; }
6155fi
6156
6157# find the maximum length of command line arguments
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6159$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6160if ${lt_cv_sys_max_cmd_len+:} false; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163    i=0
6164  teststring="ABCD"
6165
6166  case $build_os in
6167  msdosdjgpp*)
6168    # On DJGPP, this test can blow up pretty badly due to problems in libc
6169    # (any single argument exceeding 2000 bytes causes a buffer overrun
6170    # during glob expansion).  Even if it were fixed, the result of this
6171    # check would be larger than it should be.
6172    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6173    ;;
6174
6175  gnu*)
6176    # Under GNU Hurd, this test is not required because there is
6177    # no limit to the length of command line arguments.
6178    # Libtool will interpret -1 as no limit whatsoever
6179    lt_cv_sys_max_cmd_len=-1;
6180    ;;
6181
6182  cygwin* | mingw* | cegcc*)
6183    # On Win9x/ME, this test blows up -- it succeeds, but takes
6184    # about 5 minutes as the teststring grows exponentially.
6185    # Worse, since 9x/ME are not pre-emptively multitasking,
6186    # you end up with a "frozen" computer, even though with patience
6187    # the test eventually succeeds (with a max line length of 256k).
6188    # Instead, let's just punt: use the minimum linelength reported by
6189    # all of the supported platforms: 8192 (on NT/2K/XP).
6190    lt_cv_sys_max_cmd_len=8192;
6191    ;;
6192
6193  mint*)
6194    # On MiNT this can take a long time and run out of memory.
6195    lt_cv_sys_max_cmd_len=8192;
6196    ;;
6197
6198  amigaos*)
6199    # On AmigaOS with pdksh, this test takes hours, literally.
6200    # So we just punt and use a minimum line length of 8192.
6201    lt_cv_sys_max_cmd_len=8192;
6202    ;;
6203
6204  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205    # This has been around since 386BSD, at least.  Likely further.
6206    if test -x /sbin/sysctl; then
6207      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208    elif test -x /usr/sbin/sysctl; then
6209      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6210    else
6211      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6212    fi
6213    # And add a safety zone
6214    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6216    ;;
6217
6218  interix*)
6219    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220    lt_cv_sys_max_cmd_len=196608
6221    ;;
6222
6223  osf*)
6224    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226    # nice to cause kernel panics so lets avoid the loop below.
6227    # First set a reasonable default.
6228    lt_cv_sys_max_cmd_len=16384
6229    #
6230    if test -x /sbin/sysconfig; then
6231      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6233      esac
6234    fi
6235    ;;
6236  sco3.2v5*)
6237    lt_cv_sys_max_cmd_len=102400
6238    ;;
6239  sysv5* | sco5v6* | sysv4.2uw2*)
6240    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241    if test -n "$kargmax"; then
6242      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6243    else
6244      lt_cv_sys_max_cmd_len=32768
6245    fi
6246    ;;
6247  *)
6248    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6249    if test -n "$lt_cv_sys_max_cmd_len"; then
6250      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6251      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6252    else
6253      # Make teststring a little bigger before we do anything with it.
6254      # a 1K string should be a reasonable start.
6255      for i in 1 2 3 4 5 6 7 8 ; do
6256        teststring=$teststring$teststring
6257      done
6258      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6259      # If test is not a shell built-in, we'll probably end up computing a
6260      # maximum length that is only half of the actual maximum length, but
6261      # we can't tell.
6262      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6263	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6264	      test $i != 17 # 1/2 MB should be enough
6265      do
6266        i=`expr $i + 1`
6267        teststring=$teststring$teststring
6268      done
6269      # Only check the string length outside the loop.
6270      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6271      teststring=
6272      # Add a significant safety factor because C++ compilers can tack on
6273      # massive amounts of additional arguments before passing them to the
6274      # linker.  It appears as though 1/2 is a usable value.
6275      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6276    fi
6277    ;;
6278  esac
6279
6280fi
6281
6282if test -n $lt_cv_sys_max_cmd_len ; then
6283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6284$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6285else
6286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6287$as_echo "none" >&6; }
6288fi
6289max_cmd_len=$lt_cv_sys_max_cmd_len
6290
6291
6292
6293
6294
6295
6296: ${CP="cp -f"}
6297: ${MV="mv -f"}
6298: ${RM="rm -f"}
6299
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6301$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6302# Try some XSI features
6303xsi_shell=no
6304( _lt_dummy="a/b/c"
6305  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6306      = c,a/b,, \
6307    && eval 'test $(( 1 + 1 )) -eq 2 \
6308    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6309  && xsi_shell=yes
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6311$as_echo "$xsi_shell" >&6; }
6312
6313
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6315$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6316lt_shell_append=no
6317( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6318    >/dev/null 2>&1 \
6319  && lt_shell_append=yes
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6321$as_echo "$lt_shell_append" >&6; }
6322
6323
6324if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6325  lt_unset=unset
6326else
6327  lt_unset=false
6328fi
6329
6330
6331
6332
6333
6334# test EBCDIC or ASCII
6335case `echo X|tr X '\101'` in
6336 A) # ASCII based system
6337    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6338  lt_SP2NL='tr \040 \012'
6339  lt_NL2SP='tr \015\012 \040\040'
6340  ;;
6341 *) # EBCDIC based system
6342  lt_SP2NL='tr \100 \n'
6343  lt_NL2SP='tr \r\n \100\100'
6344  ;;
6345esac
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6356$as_echo_n "checking for $LD option to reload object files... " >&6; }
6357if ${lt_cv_ld_reload_flag+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  lt_cv_ld_reload_flag='-r'
6361fi
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6363$as_echo "$lt_cv_ld_reload_flag" >&6; }
6364reload_flag=$lt_cv_ld_reload_flag
6365case $reload_flag in
6366"" | " "*) ;;
6367*) reload_flag=" $reload_flag" ;;
6368esac
6369reload_cmds='$LD$reload_flag -o $output$reload_objs'
6370case $host_os in
6371  darwin*)
6372    if test "$GCC" = yes; then
6373      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6374    else
6375      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6376    fi
6377    ;;
6378esac
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388if test -n "$ac_tool_prefix"; then
6389  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6390set dummy ${ac_tool_prefix}objdump; ac_word=$2
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392$as_echo_n "checking for $ac_word... " >&6; }
6393if ${ac_cv_prog_OBJDUMP+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  if test -n "$OBJDUMP"; then
6397  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402  IFS=$as_save_IFS
6403  test -z "$as_dir" && as_dir=.
6404    for ac_exec_ext in '' $ac_executable_extensions; do
6405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408    break 2
6409  fi
6410done
6411  done
6412IFS=$as_save_IFS
6413
6414fi
6415fi
6416OBJDUMP=$ac_cv_prog_OBJDUMP
6417if test -n "$OBJDUMP"; then
6418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6419$as_echo "$OBJDUMP" >&6; }
6420else
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425
6426fi
6427if test -z "$ac_cv_prog_OBJDUMP"; then
6428  ac_ct_OBJDUMP=$OBJDUMP
6429  # Extract the first word of "objdump", so it can be a program name with args.
6430set dummy objdump; ac_word=$2
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432$as_echo_n "checking for $ac_word... " >&6; }
6433if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6434  $as_echo_n "(cached) " >&6
6435else
6436  if test -n "$ac_ct_OBJDUMP"; then
6437  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6438else
6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442  IFS=$as_save_IFS
6443  test -z "$as_dir" && as_dir=.
6444    for ac_exec_ext in '' $ac_executable_extensions; do
6445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448    break 2
6449  fi
6450done
6451  done
6452IFS=$as_save_IFS
6453
6454fi
6455fi
6456ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6457if test -n "$ac_ct_OBJDUMP"; then
6458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6459$as_echo "$ac_ct_OBJDUMP" >&6; }
6460else
6461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462$as_echo "no" >&6; }
6463fi
6464
6465  if test "x$ac_ct_OBJDUMP" = x; then
6466    OBJDUMP="false"
6467  else
6468    case $cross_compiling:$ac_tool_warned in
6469yes:)
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472ac_tool_warned=yes ;;
6473esac
6474    OBJDUMP=$ac_ct_OBJDUMP
6475  fi
6476else
6477  OBJDUMP="$ac_cv_prog_OBJDUMP"
6478fi
6479
6480test -z "$OBJDUMP" && OBJDUMP=objdump
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6491$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6492if ${lt_cv_deplibs_check_method+:} false; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495  lt_cv_file_magic_cmd='$MAGIC_CMD'
6496lt_cv_file_magic_test_file=
6497lt_cv_deplibs_check_method='unknown'
6498# Need to set the preceding variable on all platforms that support
6499# interlibrary dependencies.
6500# 'none' -- dependencies not supported.
6501# `unknown' -- same as none, but documents that we really don't know.
6502# 'pass_all' -- all dependencies passed with no checks.
6503# 'test_compile' -- check by making test program.
6504# 'file_magic [[regex]]' -- check by looking for files in library path
6505# which responds to the $file_magic_cmd with a given extended regex.
6506# If you have `file' or equivalent on your system and you're not sure
6507# whether `pass_all' will *always* work, you probably want this one.
6508
6509case $host_os in
6510aix[4-9]*)
6511  lt_cv_deplibs_check_method=pass_all
6512  ;;
6513
6514beos*)
6515  lt_cv_deplibs_check_method=pass_all
6516  ;;
6517
6518bsdi[45]*)
6519  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6520  lt_cv_file_magic_cmd='/usr/bin/file -L'
6521  lt_cv_file_magic_test_file=/shlib/libc.so
6522  ;;
6523
6524cygwin*)
6525  # func_win32_libid is a shell function defined in ltmain.sh
6526  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6527  lt_cv_file_magic_cmd='func_win32_libid'
6528  ;;
6529
6530mingw* | pw32*)
6531  # Base MSYS/MinGW do not provide the 'file' command needed by
6532  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6533  # unless we find 'file', for example because we are cross-compiling.
6534  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6535  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6536    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6537    lt_cv_file_magic_cmd='func_win32_libid'
6538  else
6539    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6540    lt_cv_file_magic_cmd='$OBJDUMP -f'
6541  fi
6542  ;;
6543
6544cegcc*)
6545  # use the weaker test based on 'objdump'. See mingw*.
6546  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6547  lt_cv_file_magic_cmd='$OBJDUMP -f'
6548  ;;
6549
6550darwin* | rhapsody*)
6551  lt_cv_deplibs_check_method=pass_all
6552  ;;
6553
6554freebsd* | dragonfly*)
6555  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6556    case $host_cpu in
6557    i*86 )
6558      # Not sure whether the presence of OpenBSD here was a mistake.
6559      # Let's accept both of them until this is cleared up.
6560      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6561      lt_cv_file_magic_cmd=/usr/bin/file
6562      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6563      ;;
6564    esac
6565  else
6566    lt_cv_deplibs_check_method=pass_all
6567  fi
6568  ;;
6569
6570gnu*)
6571  lt_cv_deplibs_check_method=pass_all
6572  ;;
6573
6574haiku*)
6575  lt_cv_deplibs_check_method=pass_all
6576  ;;
6577
6578hpux10.20* | hpux11*)
6579  lt_cv_file_magic_cmd=/usr/bin/file
6580  case $host_cpu in
6581  ia64*)
6582    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6583    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6584    ;;
6585  hppa*64*)
6586    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]'
6587    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6588    ;;
6589  *)
6590    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6591    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6592    ;;
6593  esac
6594  ;;
6595
6596interix[3-9]*)
6597  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6598  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6599  ;;
6600
6601irix5* | irix6* | nonstopux*)
6602  case $LD in
6603  *-32|*"-32 ") libmagic=32-bit;;
6604  *-n32|*"-n32 ") libmagic=N32;;
6605  *-64|*"-64 ") libmagic=64-bit;;
6606  *) libmagic=never-match;;
6607  esac
6608  lt_cv_deplibs_check_method=pass_all
6609  ;;
6610
6611# This must be Linux ELF.
6612linux* | k*bsd*-gnu | kopensolaris*-gnu)
6613  lt_cv_deplibs_check_method=pass_all
6614  ;;
6615
6616netbsd*)
6617  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6618    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6619  else
6620    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6621  fi
6622  ;;
6623
6624newos6*)
6625  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6626  lt_cv_file_magic_cmd=/usr/bin/file
6627  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6628  ;;
6629
6630*nto* | *qnx*)
6631  lt_cv_deplibs_check_method=pass_all
6632  ;;
6633
6634openbsd*)
6635  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6636    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6637  else
6638    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6639  fi
6640  ;;
6641
6642osf3* | osf4* | osf5*)
6643  lt_cv_deplibs_check_method=pass_all
6644  ;;
6645
6646rdos*)
6647  lt_cv_deplibs_check_method=pass_all
6648  ;;
6649
6650solaris*)
6651  lt_cv_deplibs_check_method=pass_all
6652  ;;
6653
6654sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6655  lt_cv_deplibs_check_method=pass_all
6656  ;;
6657
6658sysv4 | sysv4.3*)
6659  case $host_vendor in
6660  motorola)
6661    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]'
6662    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6663    ;;
6664  ncr)
6665    lt_cv_deplibs_check_method=pass_all
6666    ;;
6667  sequent)
6668    lt_cv_file_magic_cmd='/bin/file'
6669    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6670    ;;
6671  sni)
6672    lt_cv_file_magic_cmd='/bin/file'
6673    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6674    lt_cv_file_magic_test_file=/lib/libc.so
6675    ;;
6676  siemens)
6677    lt_cv_deplibs_check_method=pass_all
6678    ;;
6679  pc)
6680    lt_cv_deplibs_check_method=pass_all
6681    ;;
6682  esac
6683  ;;
6684
6685tpf*)
6686  lt_cv_deplibs_check_method=pass_all
6687  ;;
6688esac
6689
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6692$as_echo "$lt_cv_deplibs_check_method" >&6; }
6693file_magic_cmd=$lt_cv_file_magic_cmd
6694deplibs_check_method=$lt_cv_deplibs_check_method
6695test -z "$deplibs_check_method" && deplibs_check_method=unknown
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708plugin_option=
6709plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6710for plugin in $plugin_names; do
6711  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6712  if test x$plugin_so = x$plugin; then
6713    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6714  fi
6715  if test x$plugin_so != x$plugin; then
6716    plugin_option="--plugin $plugin_so"
6717    break
6718  fi
6719done
6720
6721if test -n "$ac_tool_prefix"; then
6722  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6723set dummy ${ac_tool_prefix}ar; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
6726if ${ac_cv_prog_AR+:} false; then :
6727  $as_echo_n "(cached) " >&6
6728else
6729  if test -n "$AR"; then
6730  ac_cv_prog_AR="$AR" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735  IFS=$as_save_IFS
6736  test -z "$as_dir" && as_dir=.
6737    for ac_exec_ext in '' $ac_executable_extensions; do
6738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739    ac_cv_prog_AR="${ac_tool_prefix}ar"
6740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741    break 2
6742  fi
6743done
6744  done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749AR=$ac_cv_prog_AR
6750if test -n "$AR"; then
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6752$as_echo "$AR" >&6; }
6753else
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758
6759fi
6760if test -z "$ac_cv_prog_AR"; then
6761  ac_ct_AR=$AR
6762  # Extract the first word of "ar", so it can be a program name with args.
6763set dummy ar; ac_word=$2
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765$as_echo_n "checking for $ac_word... " >&6; }
6766if ${ac_cv_prog_ac_ct_AR+:} false; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769  if test -n "$ac_ct_AR"; then
6770  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775  IFS=$as_save_IFS
6776  test -z "$as_dir" && as_dir=.
6777    for ac_exec_ext in '' $ac_executable_extensions; do
6778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779    ac_cv_prog_ac_ct_AR="ar"
6780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781    break 2
6782  fi
6783done
6784  done
6785IFS=$as_save_IFS
6786
6787fi
6788fi
6789ac_ct_AR=$ac_cv_prog_ac_ct_AR
6790if test -n "$ac_ct_AR"; then
6791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6792$as_echo "$ac_ct_AR" >&6; }
6793else
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795$as_echo "no" >&6; }
6796fi
6797
6798  if test "x$ac_ct_AR" = x; then
6799    AR="false"
6800  else
6801    case $cross_compiling:$ac_tool_warned in
6802yes:)
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805ac_tool_warned=yes ;;
6806esac
6807    AR=$ac_ct_AR
6808  fi
6809else
6810  AR="$ac_cv_prog_AR"
6811fi
6812
6813test -z "$AR" && AR=ar
6814if test -n "$plugin_option"; then
6815  if $AR --help 2>&1 | grep -q "\--plugin"; then
6816    touch conftest.c
6817    $AR $plugin_option rc conftest.a conftest.c
6818    if test "$?" != 0; then
6819      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6820$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6821    else
6822      AR="$AR $plugin_option"
6823    fi
6824    rm -f conftest.*
6825  fi
6826fi
6827test -z "$AR_FLAGS" && AR_FLAGS=cru
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839if test -n "$ac_tool_prefix"; then
6840  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6841set dummy ${ac_tool_prefix}strip; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
6844if ${ac_cv_prog_STRIP+:} false; then :
6845  $as_echo_n "(cached) " >&6
6846else
6847  if test -n "$STRIP"; then
6848  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853  IFS=$as_save_IFS
6854  test -z "$as_dir" && as_dir=.
6855    for ac_exec_ext in '' $ac_executable_extensions; do
6856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859    break 2
6860  fi
6861done
6862  done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867STRIP=$ac_cv_prog_STRIP
6868if test -n "$STRIP"; then
6869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6870$as_echo "$STRIP" >&6; }
6871else
6872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874fi
6875
6876
6877fi
6878if test -z "$ac_cv_prog_STRIP"; then
6879  ac_ct_STRIP=$STRIP
6880  # Extract the first word of "strip", so it can be a program name with args.
6881set dummy strip; ac_word=$2
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  if test -n "$ac_ct_STRIP"; then
6888  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893  IFS=$as_save_IFS
6894  test -z "$as_dir" && as_dir=.
6895    for ac_exec_ext in '' $ac_executable_extensions; do
6896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897    ac_cv_prog_ac_ct_STRIP="strip"
6898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899    break 2
6900  fi
6901done
6902  done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6908if test -n "$ac_ct_STRIP"; then
6909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6910$as_echo "$ac_ct_STRIP" >&6; }
6911else
6912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916  if test "x$ac_ct_STRIP" = x; then
6917    STRIP=":"
6918  else
6919    case $cross_compiling:$ac_tool_warned in
6920yes:)
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923ac_tool_warned=yes ;;
6924esac
6925    STRIP=$ac_ct_STRIP
6926  fi
6927else
6928  STRIP="$ac_cv_prog_STRIP"
6929fi
6930
6931test -z "$STRIP" && STRIP=:
6932
6933
6934
6935
6936
6937
6938if test -n "$ac_tool_prefix"; then
6939  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6940set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942$as_echo_n "checking for $ac_word... " >&6; }
6943if ${ac_cv_prog_RANLIB+:} false; then :
6944  $as_echo_n "(cached) " >&6
6945else
6946  if test -n "$RANLIB"; then
6947  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952  IFS=$as_save_IFS
6953  test -z "$as_dir" && as_dir=.
6954    for ac_exec_ext in '' $ac_executable_extensions; do
6955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958    break 2
6959  fi
6960done
6961  done
6962IFS=$as_save_IFS
6963
6964fi
6965fi
6966RANLIB=$ac_cv_prog_RANLIB
6967if test -n "$RANLIB"; then
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6969$as_echo "$RANLIB" >&6; }
6970else
6971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
6973fi
6974
6975
6976fi
6977if test -z "$ac_cv_prog_RANLIB"; then
6978  ac_ct_RANLIB=$RANLIB
6979  # Extract the first word of "ranlib", so it can be a program name with args.
6980set dummy ranlib; ac_word=$2
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
6983if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  if test -n "$ac_ct_RANLIB"; then
6987  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992  IFS=$as_save_IFS
6993  test -z "$as_dir" && as_dir=.
6994    for ac_exec_ext in '' $ac_executable_extensions; do
6995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996    ac_cv_prog_ac_ct_RANLIB="ranlib"
6997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998    break 2
6999  fi
7000done
7001  done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7007if test -n "$ac_ct_RANLIB"; then
7008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7009$as_echo "$ac_ct_RANLIB" >&6; }
7010else
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015  if test "x$ac_ct_RANLIB" = x; then
7016    RANLIB=":"
7017  else
7018    case $cross_compiling:$ac_tool_warned in
7019yes:)
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022ac_tool_warned=yes ;;
7023esac
7024    RANLIB=$ac_ct_RANLIB
7025  fi
7026else
7027  RANLIB="$ac_cv_prog_RANLIB"
7028fi
7029
7030test -z "$RANLIB" && RANLIB=:
7031if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7032  if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7033    RANLIB="$RANLIB $plugin_option"
7034  fi
7035fi
7036
7037
7038
7039
7040
7041
7042# Determine commands to create old-style static archives.
7043old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7044old_postinstall_cmds='chmod 644 $oldlib'
7045old_postuninstall_cmds=
7046
7047if test -n "$RANLIB"; then
7048  case $host_os in
7049  openbsd*)
7050    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7051    ;;
7052  *)
7053    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7054    ;;
7055  esac
7056  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7057fi
7058
7059case $host_os in
7060  darwin*)
7061    lock_old_archive_extraction=yes ;;
7062  *)
7063    lock_old_archive_extraction=no ;;
7064esac
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
7099
7100
7101
7102
7103
7104# If no C compiler was specified, use CC.
7105LTCC=${LTCC-"$CC"}
7106
7107# If no C compiler flags were specified, use CFLAGS.
7108LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7109
7110# Allow CC to be a program name with arguments.
7111compiler=$CC
7112
7113
7114# Check for command to grab the raw symbol name followed by C symbol from nm.
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7116$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7117if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120
7121# These are sane defaults that work on at least a few old systems.
7122# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7123
7124# Character class describing NM global symbol codes.
7125symcode='[BCDEGRST]'
7126
7127# Regexp to match symbols that can be accessed directly from C.
7128sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7129
7130# Define system-specific variables.
7131case $host_os in
7132aix*)
7133  symcode='[BCDT]'
7134  ;;
7135cygwin* | mingw* | pw32* | cegcc*)
7136  symcode='[ABCDGISTW]'
7137  ;;
7138hpux*)
7139  if test "$host_cpu" = ia64; then
7140    symcode='[ABCDEGRST]'
7141  fi
7142  ;;
7143irix* | nonstopux*)
7144  symcode='[BCDEGRST]'
7145  ;;
7146osf*)
7147  symcode='[BCDEGQRST]'
7148  ;;
7149solaris*)
7150  symcode='[BCDRT]'
7151  ;;
7152sco3.2v5*)
7153  symcode='[DT]'
7154  ;;
7155sysv4.2uw2*)
7156  symcode='[DT]'
7157  ;;
7158sysv5* | sco5v6* | unixware* | OpenUNIX*)
7159  symcode='[ABDT]'
7160  ;;
7161sysv4)
7162  symcode='[DFNSTU]'
7163  ;;
7164esac
7165
7166# If we're using GNU nm, then use its standard symbol codes.
7167case `$NM -V 2>&1` in
7168*GNU* | *'with BFD'*)
7169  symcode='[ABCDGIRSTW]' ;;
7170esac
7171
7172# Transform an extracted symbol line into a proper C declaration.
7173# Some systems (esp. on ia64) link data and code symbols differently,
7174# so use this general approach.
7175lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7176
7177# Transform an extracted symbol line into symbol name and symbol address
7178lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7179lt_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'"
7180
7181# Handle CRLF in mingw tool chain
7182opt_cr=
7183case $build_os in
7184mingw*)
7185  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7186  ;;
7187esac
7188
7189# Try without a prefix underscore, then with it.
7190for ac_symprfx in "" "_"; do
7191
7192  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7193  symxfrm="\\1 $ac_symprfx\\2 \\2"
7194
7195  # Write the raw and C identifiers.
7196  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7197    # Fake it for dumpbin and say T for any non-static function
7198    # and D for any global variable.
7199    # Also find C++ and __fastcall symbols from MSVC++,
7200    # which start with @ or ?.
7201    lt_cv_sys_global_symbol_pipe="$AWK '"\
7202"     {last_section=section; section=\$ 3};"\
7203"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7204"     \$ 0!~/External *\|/{next};"\
7205"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7206"     {if(hide[section]) next};"\
7207"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7208"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7209"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7210"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7211"     ' prfx=^$ac_symprfx"
7212  else
7213    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7214  fi
7215
7216  # Check to see that the pipe works correctly.
7217  pipe_works=no
7218
7219  rm -f conftest*
7220  cat > conftest.$ac_ext <<_LT_EOF
7221#ifdef __cplusplus
7222extern "C" {
7223#endif
7224char nm_test_var;
7225void nm_test_func(void);
7226void nm_test_func(void){}
7227#ifdef __cplusplus
7228}
7229#endif
7230int main(){nm_test_var='a';nm_test_func();return(0);}
7231_LT_EOF
7232
7233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7234  (eval $ac_compile) 2>&5
7235  ac_status=$?
7236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7237  test $ac_status = 0; }; then
7238    # Now try to grab the symbols.
7239    nlist=conftest.nm
7240    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7241  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7242  ac_status=$?
7243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244  test $ac_status = 0; } && test -s "$nlist"; then
7245      # Try sorting and uniquifying the output.
7246      if sort "$nlist" | uniq > "$nlist"T; then
7247	mv -f "$nlist"T "$nlist"
7248      else
7249	rm -f "$nlist"T
7250      fi
7251
7252      # Make sure that we snagged all the symbols we need.
7253      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7254	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7255	  cat <<_LT_EOF > conftest.$ac_ext
7256#ifdef __cplusplus
7257extern "C" {
7258#endif
7259
7260_LT_EOF
7261	  # Now generate the symbol file.
7262	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7263
7264	  cat <<_LT_EOF >> conftest.$ac_ext
7265
7266/* The mapping between symbol names and symbols.  */
7267const struct {
7268  const char *name;
7269  void       *address;
7270}
7271lt__PROGRAM__LTX_preloaded_symbols[] =
7272{
7273  { "@PROGRAM@", (void *) 0 },
7274_LT_EOF
7275	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7276	  cat <<\_LT_EOF >> conftest.$ac_ext
7277  {0, (void *) 0}
7278};
7279
7280/* This works around a problem in FreeBSD linker */
7281#ifdef FREEBSD_WORKAROUND
7282static const void *lt_preloaded_setup() {
7283  return lt__PROGRAM__LTX_preloaded_symbols;
7284}
7285#endif
7286
7287#ifdef __cplusplus
7288}
7289#endif
7290_LT_EOF
7291	  # Now try linking the two files.
7292	  mv conftest.$ac_objext conftstm.$ac_objext
7293	  lt_save_LIBS="$LIBS"
7294	  lt_save_CFLAGS="$CFLAGS"
7295	  LIBS="conftstm.$ac_objext"
7296	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7297	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7298  (eval $ac_link) 2>&5
7299  ac_status=$?
7300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7302	    pipe_works=yes
7303	  fi
7304	  LIBS="$lt_save_LIBS"
7305	  CFLAGS="$lt_save_CFLAGS"
7306	else
7307	  echo "cannot find nm_test_func in $nlist" >&5
7308	fi
7309      else
7310	echo "cannot find nm_test_var in $nlist" >&5
7311      fi
7312    else
7313      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7314    fi
7315  else
7316    echo "$progname: failed program was:" >&5
7317    cat conftest.$ac_ext >&5
7318  fi
7319  rm -rf conftest* conftst*
7320
7321  # Do not use the global_symbol_pipe unless it works.
7322  if test "$pipe_works" = yes; then
7323    break
7324  else
7325    lt_cv_sys_global_symbol_pipe=
7326  fi
7327done
7328
7329fi
7330
7331if test -z "$lt_cv_sys_global_symbol_pipe"; then
7332  lt_cv_sys_global_symbol_to_cdecl=
7333fi
7334if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7336$as_echo "failed" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7339$as_echo "ok" >&6; }
7340fi
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363# Check whether --enable-libtool-lock was given.
7364if test "${enable_libtool_lock+set}" = set; then :
7365  enableval=$enable_libtool_lock;
7366fi
7367
7368test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7369
7370# Some flags need to be propagated to the compiler or linker for good
7371# libtool support.
7372case $host in
7373ia64-*-hpux*)
7374  # Find out which ABI we are using.
7375  echo 'int i;' > conftest.$ac_ext
7376  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377  (eval $ac_compile) 2>&5
7378  ac_status=$?
7379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380  test $ac_status = 0; }; then
7381    case `/usr/bin/file conftest.$ac_objext` in
7382      *ELF-32*)
7383	HPUX_IA64_MODE="32"
7384	;;
7385      *ELF-64*)
7386	HPUX_IA64_MODE="64"
7387	;;
7388    esac
7389  fi
7390  rm -rf conftest*
7391  ;;
7392*-*-irix6*)
7393  # Find out which ABI we are using.
7394  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7395  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396  (eval $ac_compile) 2>&5
7397  ac_status=$?
7398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399  test $ac_status = 0; }; then
7400    if test "$lt_cv_prog_gnu_ld" = yes; then
7401      case `/usr/bin/file conftest.$ac_objext` in
7402	*32-bit*)
7403	  LD="${LD-ld} -melf32bsmip"
7404	  ;;
7405	*N32*)
7406	  LD="${LD-ld} -melf32bmipn32"
7407	  ;;
7408	*64-bit*)
7409	  LD="${LD-ld} -melf64bmip"
7410	;;
7411      esac
7412    else
7413      case `/usr/bin/file conftest.$ac_objext` in
7414	*32-bit*)
7415	  LD="${LD-ld} -32"
7416	  ;;
7417	*N32*)
7418	  LD="${LD-ld} -n32"
7419	  ;;
7420	*64-bit*)
7421	  LD="${LD-ld} -64"
7422	  ;;
7423      esac
7424    fi
7425  fi
7426  rm -rf conftest*
7427  ;;
7428
7429x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7430s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7431  # Find out which ABI we are using.
7432  echo 'int i;' > conftest.$ac_ext
7433  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7434  (eval $ac_compile) 2>&5
7435  ac_status=$?
7436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437  test $ac_status = 0; }; then
7438    case `/usr/bin/file conftest.o` in
7439      *32-bit*)
7440	case $host in
7441	  x86_64-*kfreebsd*-gnu)
7442	    LD="${LD-ld} -m elf_i386_fbsd"
7443	    ;;
7444	  x86_64-*linux*)
7445	    case `/usr/bin/file conftest.o` in
7446	      *x86-64*)
7447		LD="${LD-ld} -m elf32_x86_64"
7448		;;
7449	      *)
7450		LD="${LD-ld} -m elf_i386"
7451		;;
7452	    esac
7453	    ;;
7454	  powerpc64le-*linux*)
7455	    LD="${LD-ld} -m elf32lppclinux"
7456	    ;;
7457	  powerpc64-*linux*)
7458	    LD="${LD-ld} -m elf32ppclinux"
7459	    ;;
7460	  s390x-*linux*)
7461	    LD="${LD-ld} -m elf_s390"
7462	    ;;
7463	  sparc64-*linux*)
7464	    LD="${LD-ld} -m elf32_sparc"
7465	    ;;
7466	esac
7467	;;
7468      *64-bit*)
7469	case $host in
7470	  x86_64-*kfreebsd*-gnu)
7471	    LD="${LD-ld} -m elf_x86_64_fbsd"
7472	    ;;
7473	  x86_64-*linux*)
7474	    LD="${LD-ld} -m elf_x86_64"
7475	    ;;
7476	  powerpcle-*linux*)
7477	    LD="${LD-ld} -m elf64lppc"
7478	    ;;
7479	  powerpc-*linux*)
7480	    LD="${LD-ld} -m elf64ppc"
7481	    ;;
7482	  s390*-*linux*|s390*-*tpf*)
7483	    LD="${LD-ld} -m elf64_s390"
7484	    ;;
7485	  sparc*-*linux*)
7486	    LD="${LD-ld} -m elf64_sparc"
7487	    ;;
7488	esac
7489	;;
7490    esac
7491  fi
7492  rm -rf conftest*
7493  ;;
7494
7495*-*-sco3.2v5*)
7496  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7497  SAVE_CFLAGS="$CFLAGS"
7498  CFLAGS="$CFLAGS -belf"
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7500$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7501if ${lt_cv_cc_needs_belf+:} false; then :
7502  $as_echo_n "(cached) " >&6
7503else
7504  ac_ext=c
7505ac_cpp='$CPP $CPPFLAGS'
7506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509
7510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511/* end confdefs.h.  */
7512
7513int
7514main ()
7515{
7516
7517  ;
7518  return 0;
7519}
7520_ACEOF
7521if ac_fn_c_try_link "$LINENO"; then :
7522  lt_cv_cc_needs_belf=yes
7523else
7524  lt_cv_cc_needs_belf=no
7525fi
7526rm -f core conftest.err conftest.$ac_objext \
7527    conftest$ac_exeext conftest.$ac_ext
7528     ac_ext=c
7529ac_cpp='$CPP $CPPFLAGS'
7530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533
7534fi
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7536$as_echo "$lt_cv_cc_needs_belf" >&6; }
7537  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7538    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7539    CFLAGS="$SAVE_CFLAGS"
7540  fi
7541  ;;
7542sparc*-*solaris*)
7543  # Find out which ABI we are using.
7544  echo 'int i;' > conftest.$ac_ext
7545  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7546  (eval $ac_compile) 2>&5
7547  ac_status=$?
7548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549  test $ac_status = 0; }; then
7550    case `/usr/bin/file conftest.o` in
7551    *64-bit*)
7552      case $lt_cv_prog_gnu_ld in
7553      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7554      *)
7555	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7556	  LD="${LD-ld} -64"
7557	fi
7558	;;
7559      esac
7560      ;;
7561    esac
7562  fi
7563  rm -rf conftest*
7564  ;;
7565esac
7566
7567need_locks="$enable_libtool_lock"
7568
7569
7570  case $host_os in
7571    rhapsody* | darwin*)
7572    if test -n "$ac_tool_prefix"; then
7573  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7574set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if ${ac_cv_prog_DSYMUTIL+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  if test -n "$DSYMUTIL"; then
7581  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586  IFS=$as_save_IFS
7587  test -z "$as_dir" && as_dir=.
7588    for ac_exec_ext in '' $ac_executable_extensions; do
7589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592    break 2
7593  fi
7594done
7595  done
7596IFS=$as_save_IFS
7597
7598fi
7599fi
7600DSYMUTIL=$ac_cv_prog_DSYMUTIL
7601if test -n "$DSYMUTIL"; then
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7603$as_echo "$DSYMUTIL" >&6; }
7604else
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607fi
7608
7609
7610fi
7611if test -z "$ac_cv_prog_DSYMUTIL"; then
7612  ac_ct_DSYMUTIL=$DSYMUTIL
7613  # Extract the first word of "dsymutil", so it can be a program name with args.
7614set dummy dsymutil; ac_word=$2
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  if test -n "$ac_ct_DSYMUTIL"; then
7621  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626  IFS=$as_save_IFS
7627  test -z "$as_dir" && as_dir=.
7628    for ac_exec_ext in '' $ac_executable_extensions; do
7629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632    break 2
7633  fi
7634done
7635  done
7636IFS=$as_save_IFS
7637
7638fi
7639fi
7640ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7641if test -n "$ac_ct_DSYMUTIL"; then
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7643$as_echo "$ac_ct_DSYMUTIL" >&6; }
7644else
7645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649  if test "x$ac_ct_DSYMUTIL" = x; then
7650    DSYMUTIL=":"
7651  else
7652    case $cross_compiling:$ac_tool_warned in
7653yes:)
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656ac_tool_warned=yes ;;
7657esac
7658    DSYMUTIL=$ac_ct_DSYMUTIL
7659  fi
7660else
7661  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7662fi
7663
7664    if test -n "$ac_tool_prefix"; then
7665  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7666set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668$as_echo_n "checking for $ac_word... " >&6; }
7669if ${ac_cv_prog_NMEDIT+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  if test -n "$NMEDIT"; then
7673  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678  IFS=$as_save_IFS
7679  test -z "$as_dir" && as_dir=.
7680    for ac_exec_ext in '' $ac_executable_extensions; do
7681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684    break 2
7685  fi
7686done
7687  done
7688IFS=$as_save_IFS
7689
7690fi
7691fi
7692NMEDIT=$ac_cv_prog_NMEDIT
7693if test -n "$NMEDIT"; then
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7695$as_echo "$NMEDIT" >&6; }
7696else
7697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
7699fi
7700
7701
7702fi
7703if test -z "$ac_cv_prog_NMEDIT"; then
7704  ac_ct_NMEDIT=$NMEDIT
7705  # Extract the first word of "nmedit", so it can be a program name with args.
7706set dummy nmedit; ac_word=$2
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
7709if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  if test -n "$ac_ct_NMEDIT"; then
7713  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718  IFS=$as_save_IFS
7719  test -z "$as_dir" && as_dir=.
7720    for ac_exec_ext in '' $ac_executable_extensions; do
7721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724    break 2
7725  fi
7726done
7727  done
7728IFS=$as_save_IFS
7729
7730fi
7731fi
7732ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7733if test -n "$ac_ct_NMEDIT"; then
7734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7735$as_echo "$ac_ct_NMEDIT" >&6; }
7736else
7737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
7740
7741  if test "x$ac_ct_NMEDIT" = x; then
7742    NMEDIT=":"
7743  else
7744    case $cross_compiling:$ac_tool_warned in
7745yes:)
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748ac_tool_warned=yes ;;
7749esac
7750    NMEDIT=$ac_ct_NMEDIT
7751  fi
7752else
7753  NMEDIT="$ac_cv_prog_NMEDIT"
7754fi
7755
7756    if test -n "$ac_tool_prefix"; then
7757  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7758set dummy ${ac_tool_prefix}lipo; ac_word=$2
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760$as_echo_n "checking for $ac_word... " >&6; }
7761if ${ac_cv_prog_LIPO+:} false; then :
7762  $as_echo_n "(cached) " >&6
7763else
7764  if test -n "$LIPO"; then
7765  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7766else
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770  IFS=$as_save_IFS
7771  test -z "$as_dir" && as_dir=.
7772    for ac_exec_ext in '' $ac_executable_extensions; do
7773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776    break 2
7777  fi
7778done
7779  done
7780IFS=$as_save_IFS
7781
7782fi
7783fi
7784LIPO=$ac_cv_prog_LIPO
7785if test -n "$LIPO"; then
7786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7787$as_echo "$LIPO" >&6; }
7788else
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790$as_echo "no" >&6; }
7791fi
7792
7793
7794fi
7795if test -z "$ac_cv_prog_LIPO"; then
7796  ac_ct_LIPO=$LIPO
7797  # Extract the first word of "lipo", so it can be a program name with args.
7798set dummy lipo; ac_word=$2
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800$as_echo_n "checking for $ac_word... " >&6; }
7801if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  if test -n "$ac_ct_LIPO"; then
7805  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810  IFS=$as_save_IFS
7811  test -z "$as_dir" && as_dir=.
7812    for ac_exec_ext in '' $ac_executable_extensions; do
7813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814    ac_cv_prog_ac_ct_LIPO="lipo"
7815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816    break 2
7817  fi
7818done
7819  done
7820IFS=$as_save_IFS
7821
7822fi
7823fi
7824ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7825if test -n "$ac_ct_LIPO"; then
7826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7827$as_echo "$ac_ct_LIPO" >&6; }
7828else
7829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
7832
7833  if test "x$ac_ct_LIPO" = x; then
7834    LIPO=":"
7835  else
7836    case $cross_compiling:$ac_tool_warned in
7837yes:)
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840ac_tool_warned=yes ;;
7841esac
7842    LIPO=$ac_ct_LIPO
7843  fi
7844else
7845  LIPO="$ac_cv_prog_LIPO"
7846fi
7847
7848    if test -n "$ac_tool_prefix"; then
7849  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7850set dummy ${ac_tool_prefix}otool; ac_word=$2
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if ${ac_cv_prog_OTOOL+:} false; then :
7854  $as_echo_n "(cached) " >&6
7855else
7856  if test -n "$OTOOL"; then
7857  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7858else
7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862  IFS=$as_save_IFS
7863  test -z "$as_dir" && as_dir=.
7864    for ac_exec_ext in '' $ac_executable_extensions; do
7865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868    break 2
7869  fi
7870done
7871  done
7872IFS=$as_save_IFS
7873
7874fi
7875fi
7876OTOOL=$ac_cv_prog_OTOOL
7877if test -n "$OTOOL"; then
7878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7879$as_echo "$OTOOL" >&6; }
7880else
7881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882$as_echo "no" >&6; }
7883fi
7884
7885
7886fi
7887if test -z "$ac_cv_prog_OTOOL"; then
7888  ac_ct_OTOOL=$OTOOL
7889  # Extract the first word of "otool", so it can be a program name with args.
7890set dummy otool; ac_word=$2
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  if test -n "$ac_ct_OTOOL"; then
7897  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902  IFS=$as_save_IFS
7903  test -z "$as_dir" && as_dir=.
7904    for ac_exec_ext in '' $ac_executable_extensions; do
7905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906    ac_cv_prog_ac_ct_OTOOL="otool"
7907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908    break 2
7909  fi
7910done
7911  done
7912IFS=$as_save_IFS
7913
7914fi
7915fi
7916ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7917if test -n "$ac_ct_OTOOL"; then
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7919$as_echo "$ac_ct_OTOOL" >&6; }
7920else
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925  if test "x$ac_ct_OTOOL" = x; then
7926    OTOOL=":"
7927  else
7928    case $cross_compiling:$ac_tool_warned in
7929yes:)
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932ac_tool_warned=yes ;;
7933esac
7934    OTOOL=$ac_ct_OTOOL
7935  fi
7936else
7937  OTOOL="$ac_cv_prog_OTOOL"
7938fi
7939
7940    if test -n "$ac_tool_prefix"; then
7941  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7942set dummy ${ac_tool_prefix}otool64; ac_word=$2
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944$as_echo_n "checking for $ac_word... " >&6; }
7945if ${ac_cv_prog_OTOOL64+:} false; then :
7946  $as_echo_n "(cached) " >&6
7947else
7948  if test -n "$OTOOL64"; then
7949  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7950else
7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954  IFS=$as_save_IFS
7955  test -z "$as_dir" && as_dir=.
7956    for ac_exec_ext in '' $ac_executable_extensions; do
7957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960    break 2
7961  fi
7962done
7963  done
7964IFS=$as_save_IFS
7965
7966fi
7967fi
7968OTOOL64=$ac_cv_prog_OTOOL64
7969if test -n "$OTOOL64"; then
7970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7971$as_echo "$OTOOL64" >&6; }
7972else
7973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974$as_echo "no" >&6; }
7975fi
7976
7977
7978fi
7979if test -z "$ac_cv_prog_OTOOL64"; then
7980  ac_ct_OTOOL64=$OTOOL64
7981  # Extract the first word of "otool64", so it can be a program name with args.
7982set dummy otool64; ac_word=$2
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984$as_echo_n "checking for $ac_word... " >&6; }
7985if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  if test -n "$ac_ct_OTOOL64"; then
7989  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7990else
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994  IFS=$as_save_IFS
7995  test -z "$as_dir" && as_dir=.
7996    for ac_exec_ext in '' $ac_executable_extensions; do
7997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998    ac_cv_prog_ac_ct_OTOOL64="otool64"
7999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000    break 2
8001  fi
8002done
8003  done
8004IFS=$as_save_IFS
8005
8006fi
8007fi
8008ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8009if test -n "$ac_ct_OTOOL64"; then
8010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8011$as_echo "$ac_ct_OTOOL64" >&6; }
8012else
8013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
8015fi
8016
8017  if test "x$ac_ct_OTOOL64" = x; then
8018    OTOOL64=":"
8019  else
8020    case $cross_compiling:$ac_tool_warned in
8021yes:)
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8024ac_tool_warned=yes ;;
8025esac
8026    OTOOL64=$ac_ct_OTOOL64
8027  fi
8028else
8029  OTOOL64="$ac_cv_prog_OTOOL64"
8030fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8059$as_echo_n "checking for -single_module linker flag... " >&6; }
8060if ${lt_cv_apple_cc_single_mod+:} false; then :
8061  $as_echo_n "(cached) " >&6
8062else
8063  lt_cv_apple_cc_single_mod=no
8064      if test -z "${LT_MULTI_MODULE}"; then
8065	# By default we will add the -single_module flag. You can override
8066	# by either setting the environment variable LT_MULTI_MODULE
8067	# non-empty at configure time, or by adding -multi_module to the
8068	# link flags.
8069	rm -rf libconftest.dylib*
8070	echo "int foo(void){return 1;}" > conftest.c
8071	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8072-dynamiclib -Wl,-single_module conftest.c" >&5
8073	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8074	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8075        _lt_result=$?
8076	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8077	  lt_cv_apple_cc_single_mod=yes
8078	else
8079	  cat conftest.err >&5
8080	fi
8081	rm -rf libconftest.dylib*
8082	rm -f conftest.*
8083      fi
8084fi
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8086$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8088$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8089if ${lt_cv_ld_exported_symbols_list+:} false; then :
8090  $as_echo_n "(cached) " >&6
8091else
8092  lt_cv_ld_exported_symbols_list=no
8093      save_LDFLAGS=$LDFLAGS
8094      echo "_main" > conftest.sym
8095      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8096      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097/* end confdefs.h.  */
8098
8099int
8100main ()
8101{
8102
8103  ;
8104  return 0;
8105}
8106_ACEOF
8107if ac_fn_c_try_link "$LINENO"; then :
8108  lt_cv_ld_exported_symbols_list=yes
8109else
8110  lt_cv_ld_exported_symbols_list=no
8111fi
8112rm -f core conftest.err conftest.$ac_objext \
8113    conftest$ac_exeext conftest.$ac_ext
8114	LDFLAGS="$save_LDFLAGS"
8115
8116fi
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8118$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8120$as_echo_n "checking for -force_load linker flag... " >&6; }
8121if ${lt_cv_ld_force_load+:} false; then :
8122  $as_echo_n "(cached) " >&6
8123else
8124  lt_cv_ld_force_load=no
8125      cat > conftest.c << _LT_EOF
8126int forced_loaded() { return 2;}
8127_LT_EOF
8128      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8129      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8130      echo "$AR cru libconftest.a conftest.o" >&5
8131      $AR cru libconftest.a conftest.o 2>&5
8132      cat > conftest.c << _LT_EOF
8133int main() { return 0;}
8134_LT_EOF
8135      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8136      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8137      _lt_result=$?
8138      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8139	lt_cv_ld_force_load=yes
8140      else
8141	cat conftest.err >&5
8142      fi
8143        rm -f conftest.err libconftest.a conftest conftest.c
8144        rm -rf conftest.dSYM
8145
8146fi
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8148$as_echo "$lt_cv_ld_force_load" >&6; }
8149    case $host_os in
8150    rhapsody* | darwin1.[012])
8151      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8152    darwin1.*)
8153      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8154    darwin*) # darwin 5.x on
8155      # if running on 10.5 or later, the deployment target defaults
8156      # to the OS version, if on x86, and 10.4, the deployment
8157      # target defaults to 10.4. Don't you love it?
8158      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8159	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8160	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8161	10.[012][,.]*)
8162	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8163	10.*)
8164	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8165      esac
8166    ;;
8167  esac
8168    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8169      _lt_dar_single_mod='$single_module'
8170    fi
8171    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8172      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8173    else
8174      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8175    fi
8176    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8177      _lt_dsymutil='~$DSYMUTIL $lib || :'
8178    else
8179      _lt_dsymutil=
8180    fi
8181    ;;
8182  esac
8183
8184for ac_header in dlfcn.h
8185do :
8186  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8187"
8188if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8189  cat >>confdefs.h <<_ACEOF
8190#define HAVE_DLFCN_H 1
8191_ACEOF
8192
8193fi
8194
8195done
8196
8197
8198
8199
8200
8201# Set options
8202
8203
8204
8205        enable_dlopen=no
8206
8207
8208  enable_win32_dll=no
8209
8210
8211
8212  # Check whether --enable-static was given.
8213if test "${enable_static+set}" = set; then :
8214  enableval=$enable_static; p=${PACKAGE-default}
8215    case $enableval in
8216    yes) enable_static=yes ;;
8217    no) enable_static=no ;;
8218    *)
8219     enable_static=no
8220      # Look at the argument we got.  We use all the common list separators.
8221      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8222      for pkg in $enableval; do
8223	IFS="$lt_save_ifs"
8224	if test "X$pkg" = "X$p"; then
8225	  enable_static=yes
8226	fi
8227      done
8228      IFS="$lt_save_ifs"
8229      ;;
8230    esac
8231else
8232  enable_static=yes
8233fi
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244# Check whether --with-pic was given.
8245if test "${with_pic+set}" = set; then :
8246  withval=$with_pic; pic_mode="$withval"
8247else
8248  pic_mode=default
8249fi
8250
8251
8252test -z "$pic_mode" && pic_mode=default
8253
8254
8255
8256
8257
8258
8259
8260  # Check whether --enable-fast-install was given.
8261if test "${enable_fast_install+set}" = set; then :
8262  enableval=$enable_fast_install; p=${PACKAGE-default}
8263    case $enableval in
8264    yes) enable_fast_install=yes ;;
8265    no) enable_fast_install=no ;;
8266    *)
8267      enable_fast_install=no
8268      # Look at the argument we got.  We use all the common list separators.
8269      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8270      for pkg in $enableval; do
8271	IFS="$lt_save_ifs"
8272	if test "X$pkg" = "X$p"; then
8273	  enable_fast_install=yes
8274	fi
8275      done
8276      IFS="$lt_save_ifs"
8277      ;;
8278    esac
8279else
8280  enable_fast_install=yes
8281fi
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293# This can be used to rebuild libtool when needed
8294LIBTOOL_DEPS="$ltmain"
8295
8296# Always use our own libtool.
8297LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324test -z "$LN_S" && LN_S="ln -s"
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339if test -n "${ZSH_VERSION+set}" ; then
8340   setopt NO_GLOB_SUBST
8341fi
8342
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8344$as_echo_n "checking for objdir... " >&6; }
8345if ${lt_cv_objdir+:} false; then :
8346  $as_echo_n "(cached) " >&6
8347else
8348  rm -f .libs 2>/dev/null
8349mkdir .libs 2>/dev/null
8350if test -d .libs; then
8351  lt_cv_objdir=.libs
8352else
8353  # MS-DOS does not allow filenames that begin with a dot.
8354  lt_cv_objdir=_libs
8355fi
8356rmdir .libs 2>/dev/null
8357fi
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8359$as_echo "$lt_cv_objdir" >&6; }
8360objdir=$lt_cv_objdir
8361
8362
8363
8364
8365
8366cat >>confdefs.h <<_ACEOF
8367#define LT_OBJDIR "$lt_cv_objdir/"
8368_ACEOF
8369
8370
8371
8372
8373case $host_os in
8374aix3*)
8375  # AIX sometimes has problems with the GCC collect2 program.  For some
8376  # reason, if we set the COLLECT_NAMES environment variable, the problems
8377  # vanish in a puff of smoke.
8378  if test "X${COLLECT_NAMES+set}" != Xset; then
8379    COLLECT_NAMES=
8380    export COLLECT_NAMES
8381  fi
8382  ;;
8383esac
8384
8385# Global variables:
8386ofile=libtool
8387can_build_shared=yes
8388
8389# All known linkers require a `.a' archive for static linking (except MSVC,
8390# which needs '.lib').
8391libext=a
8392
8393with_gnu_ld="$lt_cv_prog_gnu_ld"
8394
8395old_CC="$CC"
8396old_CFLAGS="$CFLAGS"
8397
8398# Set sane defaults for various variables
8399test -z "$CC" && CC=cc
8400test -z "$LTCC" && LTCC=$CC
8401test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8402test -z "$LD" && LD=ld
8403test -z "$ac_objext" && ac_objext=o
8404
8405for cc_temp in $compiler""; do
8406  case $cc_temp in
8407    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8408    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8409    \-*) ;;
8410    *) break;;
8411  esac
8412done
8413cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8414
8415
8416# Only perform the check for file, if the check method requires it
8417test -z "$MAGIC_CMD" && MAGIC_CMD=file
8418case $deplibs_check_method in
8419file_magic*)
8420  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8422$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8423if ${lt_cv_path_MAGIC_CMD+:} false; then :
8424  $as_echo_n "(cached) " >&6
8425else
8426  case $MAGIC_CMD in
8427[\\/*] |  ?:[\\/]*)
8428  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8429  ;;
8430*)
8431  lt_save_MAGIC_CMD="$MAGIC_CMD"
8432  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8433  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8434  for ac_dir in $ac_dummy; do
8435    IFS="$lt_save_ifs"
8436    test -z "$ac_dir" && ac_dir=.
8437    if test -f $ac_dir/${ac_tool_prefix}file; then
8438      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8439      if test -n "$file_magic_test_file"; then
8440	case $deplibs_check_method in
8441	"file_magic "*)
8442	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8443	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8444	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8445	    $EGREP "$file_magic_regex" > /dev/null; then
8446	    :
8447	  else
8448	    cat <<_LT_EOF 1>&2
8449
8450*** Warning: the command libtool uses to detect shared libraries,
8451*** $file_magic_cmd, produces output that libtool cannot recognize.
8452*** The result is that libtool may fail to recognize shared libraries
8453*** as such.  This will affect the creation of libtool libraries that
8454*** depend on shared libraries, but programs linked with such libtool
8455*** libraries will work regardless of this problem.  Nevertheless, you
8456*** may want to report the problem to your system manager and/or to
8457*** bug-libtool@gnu.org
8458
8459_LT_EOF
8460	  fi ;;
8461	esac
8462      fi
8463      break
8464    fi
8465  done
8466  IFS="$lt_save_ifs"
8467  MAGIC_CMD="$lt_save_MAGIC_CMD"
8468  ;;
8469esac
8470fi
8471
8472MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8473if test -n "$MAGIC_CMD"; then
8474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8475$as_echo "$MAGIC_CMD" >&6; }
8476else
8477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478$as_echo "no" >&6; }
8479fi
8480
8481
8482
8483
8484
8485if test -z "$lt_cv_path_MAGIC_CMD"; then
8486  if test -n "$ac_tool_prefix"; then
8487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8488$as_echo_n "checking for file... " >&6; }
8489if ${lt_cv_path_MAGIC_CMD+:} false; then :
8490  $as_echo_n "(cached) " >&6
8491else
8492  case $MAGIC_CMD in
8493[\\/*] |  ?:[\\/]*)
8494  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8495  ;;
8496*)
8497  lt_save_MAGIC_CMD="$MAGIC_CMD"
8498  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8499  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8500  for ac_dir in $ac_dummy; do
8501    IFS="$lt_save_ifs"
8502    test -z "$ac_dir" && ac_dir=.
8503    if test -f $ac_dir/file; then
8504      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8505      if test -n "$file_magic_test_file"; then
8506	case $deplibs_check_method in
8507	"file_magic "*)
8508	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8509	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8510	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8511	    $EGREP "$file_magic_regex" > /dev/null; then
8512	    :
8513	  else
8514	    cat <<_LT_EOF 1>&2
8515
8516*** Warning: the command libtool uses to detect shared libraries,
8517*** $file_magic_cmd, produces output that libtool cannot recognize.
8518*** The result is that libtool may fail to recognize shared libraries
8519*** as such.  This will affect the creation of libtool libraries that
8520*** depend on shared libraries, but programs linked with such libtool
8521*** libraries will work regardless of this problem.  Nevertheless, you
8522*** may want to report the problem to your system manager and/or to
8523*** bug-libtool@gnu.org
8524
8525_LT_EOF
8526	  fi ;;
8527	esac
8528      fi
8529      break
8530    fi
8531  done
8532  IFS="$lt_save_ifs"
8533  MAGIC_CMD="$lt_save_MAGIC_CMD"
8534  ;;
8535esac
8536fi
8537
8538MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8539if test -n "$MAGIC_CMD"; then
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8541$as_echo "$MAGIC_CMD" >&6; }
8542else
8543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
8545fi
8546
8547
8548  else
8549    MAGIC_CMD=:
8550  fi
8551fi
8552
8553  fi
8554  ;;
8555esac
8556
8557# Use C for the default configuration in the libtool script
8558
8559lt_save_CC="$CC"
8560ac_ext=c
8561ac_cpp='$CPP $CPPFLAGS'
8562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565
8566
8567# Source file extension for C test sources.
8568ac_ext=c
8569
8570# Object file extension for compiled C test sources.
8571objext=o
8572objext=$objext
8573
8574# Code to be used in simple compile tests
8575lt_simple_compile_test_code="int some_variable = 0;"
8576
8577# Code to be used in simple link tests
8578lt_simple_link_test_code='int main(){return(0);}'
8579
8580
8581
8582
8583
8584
8585
8586# If no C compiler was specified, use CC.
8587LTCC=${LTCC-"$CC"}
8588
8589# If no C compiler flags were specified, use CFLAGS.
8590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8591
8592# Allow CC to be a program name with arguments.
8593compiler=$CC
8594
8595# Save the default compiler, since it gets overwritten when the other
8596# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8597compiler_DEFAULT=$CC
8598
8599# save warnings/boilerplate of simple test code
8600ac_outfile=conftest.$ac_objext
8601echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8602eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8603_lt_compiler_boilerplate=`cat conftest.err`
8604$RM conftest*
8605
8606ac_outfile=conftest.$ac_objext
8607echo "$lt_simple_link_test_code" >conftest.$ac_ext
8608eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8609_lt_linker_boilerplate=`cat conftest.err`
8610$RM -r conftest*
8611
8612
8613## CAVEAT EMPTOR:
8614## There is no encapsulation within the following macros, do not change
8615## the running order or otherwise move them around unless you know exactly
8616## what you are doing...
8617if test -n "$compiler"; then
8618
8619lt_prog_compiler_no_builtin_flag=
8620
8621if test "$GCC" = yes; then
8622  case $cc_basename in
8623  nvcc*)
8624    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8625  *)
8626    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8627  esac
8628
8629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8630$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8631if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8632  $as_echo_n "(cached) " >&6
8633else
8634  lt_cv_prog_compiler_rtti_exceptions=no
8635   ac_outfile=conftest.$ac_objext
8636   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8637   lt_compiler_flag="-fno-rtti -fno-exceptions"
8638   # Insert the option either (1) after the last *FLAGS variable, or
8639   # (2) before a word containing "conftest.", or (3) at the end.
8640   # Note that $ac_compile itself does not contain backslashes and begins
8641   # with a dollar sign (not a hyphen), so the echo should work correctly.
8642   # The option is referenced via a variable to avoid confusing sed.
8643   lt_compile=`echo "$ac_compile" | $SED \
8644   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8645   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8646   -e 's:$: $lt_compiler_flag:'`
8647   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8648   (eval "$lt_compile" 2>conftest.err)
8649   ac_status=$?
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   if (exit $ac_status) && test -s "$ac_outfile"; then
8653     # The compiler can only warn and ignore the option if not recognized
8654     # So say no if there are warnings other than the usual output.
8655     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8656     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8657     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8658       lt_cv_prog_compiler_rtti_exceptions=yes
8659     fi
8660   fi
8661   $RM conftest*
8662
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8665$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8666
8667if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8668    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8669else
8670    :
8671fi
8672
8673fi
8674
8675
8676
8677
8678
8679
8680  lt_prog_compiler_wl=
8681lt_prog_compiler_pic=
8682lt_prog_compiler_static=
8683
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8685$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8686
8687  if test "$GCC" = yes; then
8688    lt_prog_compiler_wl='-Wl,'
8689    lt_prog_compiler_static='-static'
8690
8691    case $host_os in
8692      aix*)
8693      # All AIX code is PIC.
8694      if test "$host_cpu" = ia64; then
8695	# AIX 5 now supports IA64 processor
8696	lt_prog_compiler_static='-Bstatic'
8697      fi
8698      lt_prog_compiler_pic='-fPIC'
8699      ;;
8700
8701    amigaos*)
8702      case $host_cpu in
8703      powerpc)
8704            # see comment about AmigaOS4 .so support
8705            lt_prog_compiler_pic='-fPIC'
8706        ;;
8707      m68k)
8708            # FIXME: we need at least 68020 code to build shared libraries, but
8709            # adding the `-m68020' flag to GCC prevents building anything better,
8710            # like `-m68040'.
8711            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8712        ;;
8713      esac
8714      ;;
8715
8716    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8717      # PIC is the default for these OSes.
8718      ;;
8719
8720    mingw* | cygwin* | pw32* | os2* | cegcc*)
8721      # This hack is so that the source file can tell whether it is being
8722      # built for inclusion in a dll (and should export symbols for example).
8723      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8724      # (--disable-auto-import) libraries
8725      lt_prog_compiler_pic='-DDLL_EXPORT'
8726      ;;
8727
8728    darwin* | rhapsody*)
8729      # PIC is the default on this platform
8730      # Common symbols not allowed in MH_DYLIB files
8731      lt_prog_compiler_pic='-fno-common'
8732      ;;
8733
8734    haiku*)
8735      # PIC is the default for Haiku.
8736      # The "-static" flag exists, but is broken.
8737      lt_prog_compiler_static=
8738      ;;
8739
8740    hpux*)
8741      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8742      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8743      # sets the default TLS model and affects inlining.
8744      case $host_cpu in
8745      hppa*64*)
8746	# +Z the default
8747	;;
8748      *)
8749	lt_prog_compiler_pic='-fPIC'
8750	;;
8751      esac
8752      ;;
8753
8754    interix[3-9]*)
8755      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8756      # Instead, we relocate shared libraries at runtime.
8757      ;;
8758
8759    msdosdjgpp*)
8760      # Just because we use GCC doesn't mean we suddenly get shared libraries
8761      # on systems that don't support them.
8762      lt_prog_compiler_can_build_shared=no
8763      enable_shared=no
8764      ;;
8765
8766    *nto* | *qnx*)
8767      # QNX uses GNU C++, but need to define -shared option too, otherwise
8768      # it will coredump.
8769      lt_prog_compiler_pic='-fPIC -shared'
8770      ;;
8771
8772    sysv4*MP*)
8773      if test -d /usr/nec; then
8774	lt_prog_compiler_pic=-Kconform_pic
8775      fi
8776      ;;
8777
8778    *)
8779      lt_prog_compiler_pic='-fPIC'
8780      ;;
8781    esac
8782
8783    case $cc_basename in
8784    nvcc*) # Cuda Compiler Driver 2.2
8785      lt_prog_compiler_wl='-Xlinker '
8786      lt_prog_compiler_pic='-Xcompiler -fPIC'
8787      ;;
8788    esac
8789  else
8790    # PORTME Check for flag to pass linker flags through the system compiler.
8791    case $host_os in
8792    aix*)
8793      lt_prog_compiler_wl='-Wl,'
8794      if test "$host_cpu" = ia64; then
8795	# AIX 5 now supports IA64 processor
8796	lt_prog_compiler_static='-Bstatic'
8797      else
8798	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8799      fi
8800      ;;
8801
8802    mingw* | cygwin* | pw32* | os2* | cegcc*)
8803      # This hack is so that the source file can tell whether it is being
8804      # built for inclusion in a dll (and should export symbols for example).
8805      lt_prog_compiler_pic='-DDLL_EXPORT'
8806      ;;
8807
8808    hpux9* | hpux10* | hpux11*)
8809      lt_prog_compiler_wl='-Wl,'
8810      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8811      # not for PA HP-UX.
8812      case $host_cpu in
8813      hppa*64*|ia64*)
8814	# +Z the default
8815	;;
8816      *)
8817	lt_prog_compiler_pic='+Z'
8818	;;
8819      esac
8820      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8821      lt_prog_compiler_static='${wl}-a ${wl}archive'
8822      ;;
8823
8824    irix5* | irix6* | nonstopux*)
8825      lt_prog_compiler_wl='-Wl,'
8826      # PIC (with -KPIC) is the default.
8827      lt_prog_compiler_static='-non_shared'
8828      ;;
8829
8830    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8831      case $cc_basename in
8832      # old Intel for x86_64 which still supported -KPIC.
8833      ecc*)
8834	lt_prog_compiler_wl='-Wl,'
8835	lt_prog_compiler_pic='-KPIC'
8836	lt_prog_compiler_static='-static'
8837        ;;
8838      # icc used to be incompatible with GCC.
8839      # ICC 10 doesn't accept -KPIC any more.
8840      icc* | ifort*)
8841	lt_prog_compiler_wl='-Wl,'
8842	lt_prog_compiler_pic='-fPIC'
8843	lt_prog_compiler_static='-static'
8844        ;;
8845      # Lahey Fortran 8.1.
8846      lf95*)
8847	lt_prog_compiler_wl='-Wl,'
8848	lt_prog_compiler_pic='--shared'
8849	lt_prog_compiler_static='--static'
8850	;;
8851      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8852        # Portland Group compilers (*not* the Pentium gcc compiler,
8853	# which looks to be a dead project)
8854	lt_prog_compiler_wl='-Wl,'
8855	lt_prog_compiler_pic='-fpic'
8856	lt_prog_compiler_static='-Bstatic'
8857        ;;
8858      ccc*)
8859        lt_prog_compiler_wl='-Wl,'
8860        # All Alpha code is PIC.
8861        lt_prog_compiler_static='-non_shared'
8862        ;;
8863      xl* | bgxl* | bgf* | mpixl*)
8864	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8865	lt_prog_compiler_wl='-Wl,'
8866	lt_prog_compiler_pic='-qpic'
8867	lt_prog_compiler_static='-qstaticlink'
8868	;;
8869      *)
8870	case `$CC -V 2>&1 | sed 5q` in
8871	*Sun\ F* | *Sun*Fortran*)
8872	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8873	  lt_prog_compiler_pic='-KPIC'
8874	  lt_prog_compiler_static='-Bstatic'
8875	  lt_prog_compiler_wl=''
8876	  ;;
8877	*Sun\ C*)
8878	  # Sun C 5.9
8879	  lt_prog_compiler_pic='-KPIC'
8880	  lt_prog_compiler_static='-Bstatic'
8881	  lt_prog_compiler_wl='-Wl,'
8882	  ;;
8883	esac
8884	;;
8885      esac
8886      ;;
8887
8888    newsos6)
8889      lt_prog_compiler_pic='-KPIC'
8890      lt_prog_compiler_static='-Bstatic'
8891      ;;
8892
8893    *nto* | *qnx*)
8894      # QNX uses GNU C++, but need to define -shared option too, otherwise
8895      # it will coredump.
8896      lt_prog_compiler_pic='-fPIC -shared'
8897      ;;
8898
8899    osf3* | osf4* | osf5*)
8900      lt_prog_compiler_wl='-Wl,'
8901      # All OSF/1 code is PIC.
8902      lt_prog_compiler_static='-non_shared'
8903      ;;
8904
8905    rdos*)
8906      lt_prog_compiler_static='-non_shared'
8907      ;;
8908
8909    solaris*)
8910      lt_prog_compiler_pic='-KPIC'
8911      lt_prog_compiler_static='-Bstatic'
8912      case $cc_basename in
8913      f77* | f90* | f95*)
8914	lt_prog_compiler_wl='-Qoption ld ';;
8915      *)
8916	lt_prog_compiler_wl='-Wl,';;
8917      esac
8918      ;;
8919
8920    sunos4*)
8921      lt_prog_compiler_wl='-Qoption ld '
8922      lt_prog_compiler_pic='-PIC'
8923      lt_prog_compiler_static='-Bstatic'
8924      ;;
8925
8926    sysv4 | sysv4.2uw2* | sysv4.3*)
8927      lt_prog_compiler_wl='-Wl,'
8928      lt_prog_compiler_pic='-KPIC'
8929      lt_prog_compiler_static='-Bstatic'
8930      ;;
8931
8932    sysv4*MP*)
8933      if test -d /usr/nec ;then
8934	lt_prog_compiler_pic='-Kconform_pic'
8935	lt_prog_compiler_static='-Bstatic'
8936      fi
8937      ;;
8938
8939    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8940      lt_prog_compiler_wl='-Wl,'
8941      lt_prog_compiler_pic='-KPIC'
8942      lt_prog_compiler_static='-Bstatic'
8943      ;;
8944
8945    unicos*)
8946      lt_prog_compiler_wl='-Wl,'
8947      lt_prog_compiler_can_build_shared=no
8948      ;;
8949
8950    uts4*)
8951      lt_prog_compiler_pic='-pic'
8952      lt_prog_compiler_static='-Bstatic'
8953      ;;
8954
8955    *)
8956      lt_prog_compiler_can_build_shared=no
8957      ;;
8958    esac
8959  fi
8960
8961case $host_os in
8962  # For platforms which do not support PIC, -DPIC is meaningless:
8963  *djgpp*)
8964    lt_prog_compiler_pic=
8965    ;;
8966  *)
8967    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8968    ;;
8969esac
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8971$as_echo "$lt_prog_compiler_pic" >&6; }
8972
8973
8974
8975
8976
8977
8978#
8979# Check to make sure the PIC flag actually works.
8980#
8981if test -n "$lt_prog_compiler_pic"; then
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8983$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8984if ${lt_cv_prog_compiler_pic_works+:} false; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  lt_cv_prog_compiler_pic_works=no
8988   ac_outfile=conftest.$ac_objext
8989   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8990   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8991   # Insert the option either (1) after the last *FLAGS variable, or
8992   # (2) before a word containing "conftest.", or (3) at the end.
8993   # Note that $ac_compile itself does not contain backslashes and begins
8994   # with a dollar sign (not a hyphen), so the echo should work correctly.
8995   # The option is referenced via a variable to avoid confusing sed.
8996   lt_compile=`echo "$ac_compile" | $SED \
8997   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8998   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8999   -e 's:$: $lt_compiler_flag:'`
9000   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9001   (eval "$lt_compile" 2>conftest.err)
9002   ac_status=$?
9003   cat conftest.err >&5
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   if (exit $ac_status) && test -s "$ac_outfile"; then
9006     # The compiler can only warn and ignore the option if not recognized
9007     # So say no if there are warnings other than the usual output.
9008     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9009     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9010     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9011       lt_cv_prog_compiler_pic_works=yes
9012     fi
9013   fi
9014   $RM conftest*
9015
9016fi
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9018$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9019
9020if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9021    case $lt_prog_compiler_pic in
9022     "" | " "*) ;;
9023     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9024     esac
9025else
9026    lt_prog_compiler_pic=
9027     lt_prog_compiler_can_build_shared=no
9028fi
9029
9030fi
9031
9032
9033
9034
9035
9036
9037#
9038# Check to make sure the static flag actually works.
9039#
9040wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9042$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9043if ${lt_cv_prog_compiler_static_works+:} false; then :
9044  $as_echo_n "(cached) " >&6
9045else
9046  lt_cv_prog_compiler_static_works=no
9047   save_LDFLAGS="$LDFLAGS"
9048   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9049   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9050   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9051     # The linker can only warn and ignore the option if not recognized
9052     # So say no if there are warnings
9053     if test -s conftest.err; then
9054       # Append any errors to the config.log.
9055       cat conftest.err 1>&5
9056       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9057       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058       if diff conftest.exp conftest.er2 >/dev/null; then
9059         lt_cv_prog_compiler_static_works=yes
9060       fi
9061     else
9062       lt_cv_prog_compiler_static_works=yes
9063     fi
9064   fi
9065   $RM -r conftest*
9066   LDFLAGS="$save_LDFLAGS"
9067
9068fi
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9070$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9071
9072if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9073    :
9074else
9075    lt_prog_compiler_static=
9076fi
9077
9078
9079
9080
9081
9082
9083
9084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9085$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9086if ${lt_cv_prog_compiler_c_o+:} false; then :
9087  $as_echo_n "(cached) " >&6
9088else
9089  lt_cv_prog_compiler_c_o=no
9090   $RM -r conftest 2>/dev/null
9091   mkdir conftest
9092   cd conftest
9093   mkdir out
9094   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9095
9096   lt_compiler_flag="-o out/conftest2.$ac_objext"
9097   # Insert the option either (1) after the last *FLAGS variable, or
9098   # (2) before a word containing "conftest.", or (3) at the end.
9099   # Note that $ac_compile itself does not contain backslashes and begins
9100   # with a dollar sign (not a hyphen), so the echo should work correctly.
9101   lt_compile=`echo "$ac_compile" | $SED \
9102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9104   -e 's:$: $lt_compiler_flag:'`
9105   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9106   (eval "$lt_compile" 2>out/conftest.err)
9107   ac_status=$?
9108   cat out/conftest.err >&5
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9111   then
9112     # The compiler can only warn and ignore the option if not recognized
9113     # So say no if there are warnings
9114     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9115     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9116     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9117       lt_cv_prog_compiler_c_o=yes
9118     fi
9119   fi
9120   chmod u+w . 2>&5
9121   $RM conftest*
9122   # SGI C++ compiler will create directory out/ii_files/ for
9123   # template instantiation
9124   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9125   $RM out/* && rmdir out
9126   cd ..
9127   $RM -r conftest
9128   $RM conftest*
9129
9130fi
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9132$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9133
9134
9135
9136
9137
9138
9139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9140$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9141if ${lt_cv_prog_compiler_c_o+:} false; then :
9142  $as_echo_n "(cached) " >&6
9143else
9144  lt_cv_prog_compiler_c_o=no
9145   $RM -r conftest 2>/dev/null
9146   mkdir conftest
9147   cd conftest
9148   mkdir out
9149   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150
9151   lt_compiler_flag="-o out/conftest2.$ac_objext"
9152   # Insert the option either (1) after the last *FLAGS variable, or
9153   # (2) before a word containing "conftest.", or (3) at the end.
9154   # Note that $ac_compile itself does not contain backslashes and begins
9155   # with a dollar sign (not a hyphen), so the echo should work correctly.
9156   lt_compile=`echo "$ac_compile" | $SED \
9157   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9158   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9159   -e 's:$: $lt_compiler_flag:'`
9160   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9161   (eval "$lt_compile" 2>out/conftest.err)
9162   ac_status=$?
9163   cat out/conftest.err >&5
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9166   then
9167     # The compiler can only warn and ignore the option if not recognized
9168     # So say no if there are warnings
9169     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9170     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9171     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9172       lt_cv_prog_compiler_c_o=yes
9173     fi
9174   fi
9175   chmod u+w . 2>&5
9176   $RM conftest*
9177   # SGI C++ compiler will create directory out/ii_files/ for
9178   # template instantiation
9179   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9180   $RM out/* && rmdir out
9181   cd ..
9182   $RM -r conftest
9183   $RM conftest*
9184
9185fi
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9187$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9188
9189
9190
9191
9192hard_links="nottested"
9193if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9194  # do not overwrite the value of need_locks provided by the user
9195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9196$as_echo_n "checking if we can lock with hard links... " >&6; }
9197  hard_links=yes
9198  $RM conftest*
9199  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200  touch conftest.a
9201  ln conftest.a conftest.b 2>&5 || hard_links=no
9202  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9204$as_echo "$hard_links" >&6; }
9205  if test "$hard_links" = no; then
9206    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9207$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9208    need_locks=warn
9209  fi
9210else
9211  need_locks=no
9212fi
9213
9214
9215
9216
9217
9218
9219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9220$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9221
9222  runpath_var=
9223  allow_undefined_flag=
9224  always_export_symbols=no
9225  archive_cmds=
9226  archive_expsym_cmds=
9227  compiler_needs_object=no
9228  enable_shared_with_static_runtimes=no
9229  export_dynamic_flag_spec=
9230  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9231  hardcode_automatic=no
9232  hardcode_direct=no
9233  hardcode_direct_absolute=no
9234  hardcode_libdir_flag_spec=
9235  hardcode_libdir_flag_spec_ld=
9236  hardcode_libdir_separator=
9237  hardcode_minus_L=no
9238  hardcode_shlibpath_var=unsupported
9239  inherit_rpath=no
9240  link_all_deplibs=unknown
9241  module_cmds=
9242  module_expsym_cmds=
9243  old_archive_from_new_cmds=
9244  old_archive_from_expsyms_cmds=
9245  thread_safe_flag_spec=
9246  whole_archive_flag_spec=
9247  # include_expsyms should be a list of space-separated symbols to be *always*
9248  # included in the symbol list
9249  include_expsyms=
9250  # exclude_expsyms can be an extended regexp of symbols to exclude
9251  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9252  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9253  # as well as any symbol that contains `d'.
9254  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9255  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9256  # platforms (ab)use it in PIC code, but their linkers get confused if
9257  # the symbol is explicitly referenced.  Since portable code cannot
9258  # rely on this symbol name, it's probably fine to never include it in
9259  # preloaded symbol tables.
9260  # Exclude shared library initialization/finalization symbols.
9261  extract_expsyms_cmds=
9262
9263  case $host_os in
9264  cygwin* | mingw* | pw32* | cegcc*)
9265    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9266    # When not using gcc, we currently assume that we are using
9267    # Microsoft Visual C++.
9268    if test "$GCC" != yes; then
9269      with_gnu_ld=no
9270    fi
9271    ;;
9272  interix*)
9273    # we just hope/assume this is gcc and not c89 (= MSVC++)
9274    with_gnu_ld=yes
9275    ;;
9276  openbsd*)
9277    with_gnu_ld=no
9278    ;;
9279  esac
9280
9281  ld_shlibs=yes
9282
9283  # On some targets, GNU ld is compatible enough with the native linker
9284  # that we're better off using the native interface for both.
9285  lt_use_gnu_ld_interface=no
9286  if test "$with_gnu_ld" = yes; then
9287    case $host_os in
9288      aix*)
9289	# The AIX port of GNU ld has always aspired to compatibility
9290	# with the native linker.  However, as the warning in the GNU ld
9291	# block says, versions before 2.19.5* couldn't really create working
9292	# shared libraries, regardless of the interface used.
9293	case `$LD -v 2>&1` in
9294	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9295	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9296	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9297	  *)
9298	    lt_use_gnu_ld_interface=yes
9299	    ;;
9300	esac
9301	;;
9302      *)
9303	lt_use_gnu_ld_interface=yes
9304	;;
9305    esac
9306  fi
9307
9308  if test "$lt_use_gnu_ld_interface" = yes; then
9309    # If archive_cmds runs LD, not CC, wlarc should be empty
9310    wlarc='${wl}'
9311
9312    # Set some defaults for GNU ld with shared library support. These
9313    # are reset later if shared libraries are not supported. Putting them
9314    # here allows them to be overridden if necessary.
9315    runpath_var=LD_RUN_PATH
9316    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317    export_dynamic_flag_spec='${wl}--export-dynamic'
9318    # ancient GNU ld didn't support --whole-archive et. al.
9319    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9320      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9321    else
9322      whole_archive_flag_spec=
9323    fi
9324    supports_anon_versioning=no
9325    case `$LD -v 2>&1` in
9326      *GNU\ gold*) supports_anon_versioning=yes ;;
9327      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9328      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9329      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9330      *\ 2.11.*) ;; # other 2.11 versions
9331      *) supports_anon_versioning=yes ;;
9332    esac
9333
9334    # See if GNU ld supports shared libraries.
9335    case $host_os in
9336    aix[3-9]*)
9337      # On AIX/PPC, the GNU linker is very broken
9338      if test "$host_cpu" != ia64; then
9339	ld_shlibs=no
9340	cat <<_LT_EOF 1>&2
9341
9342*** Warning: the GNU linker, at least up to release 2.19, is reported
9343*** to be unable to reliably create shared libraries on AIX.
9344*** Therefore, libtool is disabling shared libraries support.  If you
9345*** really care for shared libraries, you may want to install binutils
9346*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9347*** You will then need to restart the configuration process.
9348
9349_LT_EOF
9350      fi
9351      ;;
9352
9353    amigaos*)
9354      case $host_cpu in
9355      powerpc)
9356            # see comment about AmigaOS4 .so support
9357            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358            archive_expsym_cmds=''
9359        ;;
9360      m68k)
9361            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)'
9362            hardcode_libdir_flag_spec='-L$libdir'
9363            hardcode_minus_L=yes
9364        ;;
9365      esac
9366      ;;
9367
9368    beos*)
9369      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370	allow_undefined_flag=unsupported
9371	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9372	# support --undefined.  This deserves some investigation.  FIXME
9373	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374      else
9375	ld_shlibs=no
9376      fi
9377      ;;
9378
9379    cygwin* | mingw* | pw32* | cegcc*)
9380      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9381      # as there is no search path for DLLs.
9382      hardcode_libdir_flag_spec='-L$libdir'
9383      export_dynamic_flag_spec='${wl}--export-all-symbols'
9384      allow_undefined_flag=unsupported
9385      always_export_symbols=no
9386      enable_shared_with_static_runtimes=yes
9387      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9388
9389      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9390        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9391	# If the export-symbols file already is a .def file (1st line
9392	# is EXPORTS), use it as is; otherwise, prepend...
9393	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9394	  cp $export_symbols $output_objdir/$soname.def;
9395	else
9396	  echo EXPORTS > $output_objdir/$soname.def;
9397	  cat $export_symbols >> $output_objdir/$soname.def;
9398	fi~
9399	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9400      else
9401	ld_shlibs=no
9402      fi
9403      ;;
9404
9405    haiku*)
9406      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407      link_all_deplibs=yes
9408      ;;
9409
9410    interix[3-9]*)
9411      hardcode_direct=no
9412      hardcode_shlibpath_var=no
9413      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9414      export_dynamic_flag_spec='${wl}-E'
9415      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9416      # Instead, shared libraries are loaded at an image base (0x10000000 by
9417      # default) and relocated if they conflict, which is a slow very memory
9418      # consuming and fragmenting process.  To avoid this, we pick a random,
9419      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9420      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9421      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9422      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'
9423      ;;
9424
9425    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9426      tmp_diet=no
9427      if test "$host_os" = linux-dietlibc; then
9428	case $cc_basename in
9429	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9430	esac
9431      fi
9432      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9433	 && test "$tmp_diet" = no
9434      then
9435	tmp_addflag=' $pic_flag'
9436	tmp_sharedflag='-shared'
9437	case $cc_basename,$host_cpu in
9438        pgcc*)				# Portland Group C compiler
9439	  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'
9440	  tmp_addflag=' $pic_flag'
9441	  ;;
9442	pgf77* | pgf90* | pgf95* | pgfortran*)
9443					# Portland Group f77 and f90 compilers
9444	  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'
9445	  tmp_addflag=' $pic_flag -Mnomain' ;;
9446	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9447	  tmp_addflag=' -i_dynamic' ;;
9448	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9449	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9450	ifc* | ifort*)			# Intel Fortran compiler
9451	  tmp_addflag=' -nofor_main' ;;
9452	lf95*)				# Lahey Fortran 8.1
9453	  whole_archive_flag_spec=
9454	  tmp_sharedflag='--shared' ;;
9455	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9456	  tmp_sharedflag='-qmkshrobj'
9457	  tmp_addflag= ;;
9458	nvcc*)	# Cuda Compiler Driver 2.2
9459	  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'
9460	  compiler_needs_object=yes
9461	  ;;
9462	esac
9463	case `$CC -V 2>&1 | sed 5q` in
9464	*Sun\ C*)			# Sun C 5.9
9465	  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'
9466	  compiler_needs_object=yes
9467	  tmp_sharedflag='-G' ;;
9468	*Sun\ F*)			# Sun Fortran 8.3
9469	  tmp_sharedflag='-G' ;;
9470	esac
9471	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9472
9473        if test "x$supports_anon_versioning" = xyes; then
9474          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9475	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9476	    echo "local: *; };" >> $output_objdir/$libname.ver~
9477	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9478        fi
9479
9480	case $cc_basename in
9481	xlf* | bgf* | bgxlf* | mpixlf*)
9482	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9483	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9484	  hardcode_libdir_flag_spec=
9485	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9486	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9487	  if test "x$supports_anon_versioning" = xyes; then
9488	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9489	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9490	      echo "local: *; };" >> $output_objdir/$libname.ver~
9491	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9492	  fi
9493	  ;;
9494	esac
9495      else
9496        ld_shlibs=no
9497      fi
9498      ;;
9499
9500    netbsd*)
9501      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9502	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9503	wlarc=
9504      else
9505	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9507      fi
9508      ;;
9509
9510    solaris*)
9511      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9512	ld_shlibs=no
9513	cat <<_LT_EOF 1>&2
9514
9515*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9516*** create shared libraries on Solaris systems.  Therefore, libtool
9517*** is disabling shared libraries support.  We urge you to upgrade GNU
9518*** binutils to release 2.9.1 or newer.  Another option is to modify
9519*** your PATH or compiler configuration so that the native linker is
9520*** used, and then restart.
9521
9522_LT_EOF
9523      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9524	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9526      else
9527	ld_shlibs=no
9528      fi
9529      ;;
9530
9531    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9532      case `$LD -v 2>&1` in
9533        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9534	ld_shlibs=no
9535	cat <<_LT_EOF 1>&2
9536
9537*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9538*** reliably create shared libraries on SCO systems.  Therefore, libtool
9539*** is disabling shared libraries support.  We urge you to upgrade GNU
9540*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9541*** your PATH or compiler configuration so that the native linker is
9542*** used, and then restart.
9543
9544_LT_EOF
9545	;;
9546	*)
9547	  # For security reasons, it is highly recommended that you always
9548	  # use absolute paths for naming shared libraries, and exclude the
9549	  # DT_RUNPATH tag from executables and libraries.  But doing so
9550	  # requires that you compile everything twice, which is a pain.
9551	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9552	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9555	  else
9556	    ld_shlibs=no
9557	  fi
9558	;;
9559      esac
9560      ;;
9561
9562    sunos4*)
9563      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564      wlarc=
9565      hardcode_direct=yes
9566      hardcode_shlibpath_var=no
9567      ;;
9568
9569    *)
9570      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9571	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573      else
9574	ld_shlibs=no
9575      fi
9576      ;;
9577    esac
9578
9579    if test "$ld_shlibs" = no; then
9580      runpath_var=
9581      hardcode_libdir_flag_spec=
9582      export_dynamic_flag_spec=
9583      whole_archive_flag_spec=
9584    fi
9585  else
9586    # PORTME fill in a description of your system's linker (not GNU ld)
9587    case $host_os in
9588    aix3*)
9589      allow_undefined_flag=unsupported
9590      always_export_symbols=yes
9591      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'
9592      # Note: this linker hardcodes the directories in LIBPATH if there
9593      # are no directories specified by -L.
9594      hardcode_minus_L=yes
9595      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9596	# Neither direct hardcoding nor static linking is supported with a
9597	# broken collect2.
9598	hardcode_direct=unsupported
9599      fi
9600      ;;
9601
9602    aix[4-9]*)
9603      if test "$host_cpu" = ia64; then
9604	# On IA64, the linker does run time linking by default, so we don't
9605	# have to do anything special.
9606	aix_use_runtimelinking=no
9607	exp_sym_flag='-Bexport'
9608	no_entry_flag=""
9609      else
9610	# If we're using GNU nm, then we don't want the "-C" option.
9611	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9612	# Also, AIX nm treats weak defined symbols like other global
9613	# defined symbols, whereas GNU nm marks them as "W".
9614	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9615	  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'
9616	else
9617	  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'
9618	fi
9619	aix_use_runtimelinking=no
9620
9621	# Test if we are trying to use run time linking or normal
9622	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623	# need to do runtime linking.
9624	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9625	  for ld_flag in $LDFLAGS; do
9626	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9627	    aix_use_runtimelinking=yes
9628	    break
9629	  fi
9630	  done
9631	  ;;
9632	esac
9633
9634	exp_sym_flag='-bexport'
9635	no_entry_flag='-bnoentry'
9636      fi
9637
9638      # When large executables or shared objects are built, AIX ld can
9639      # have problems creating the table of contents.  If linking a library
9640      # or program results in "error TOC overflow" add -mminimal-toc to
9641      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9642      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9643
9644      archive_cmds=''
9645      hardcode_direct=yes
9646      hardcode_direct_absolute=yes
9647      hardcode_libdir_separator=':'
9648      link_all_deplibs=yes
9649      file_list_spec='${wl}-f,'
9650
9651      if test "$GCC" = yes; then
9652	case $host_os in aix4.[012]|aix4.[012].*)
9653	# We only want to do this on AIX 4.2 and lower, the check
9654	# below for broken collect2 doesn't work under 4.3+
9655	  collect2name=`${CC} -print-prog-name=collect2`
9656	  if test -f "$collect2name" &&
9657	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9658	  then
9659	  # We have reworked collect2
9660	  :
9661	  else
9662	  # We have old collect2
9663	  hardcode_direct=unsupported
9664	  # It fails to find uninstalled libraries when the uninstalled
9665	  # path is not listed in the libpath.  Setting hardcode_minus_L
9666	  # to unsupported forces relinking
9667	  hardcode_minus_L=yes
9668	  hardcode_libdir_flag_spec='-L$libdir'
9669	  hardcode_libdir_separator=
9670	  fi
9671	  ;;
9672	esac
9673	shared_flag='-shared'
9674	if test "$aix_use_runtimelinking" = yes; then
9675	  shared_flag="$shared_flag "'${wl}-G'
9676	fi
9677      else
9678	# not using gcc
9679	if test "$host_cpu" = ia64; then
9680	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9681	# chokes on -Wl,-G. The following line is correct:
9682	  shared_flag='-G'
9683	else
9684	  if test "$aix_use_runtimelinking" = yes; then
9685	    shared_flag='${wl}-G'
9686	  else
9687	    shared_flag='${wl}-bM:SRE'
9688	  fi
9689	fi
9690      fi
9691
9692      export_dynamic_flag_spec='${wl}-bexpall'
9693      # It seems that -bexpall does not export symbols beginning with
9694      # underscore (_), so it is better to generate a list of symbols to export.
9695      always_export_symbols=yes
9696      if test "$aix_use_runtimelinking" = yes; then
9697	# Warning - without using the other runtime loading flags (-brtl),
9698	# -berok will link without error, but may produce a broken library.
9699	allow_undefined_flag='-berok'
9700        # Determine the default libpath from the value encoded in an
9701        # empty executable.
9702        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704
9705int
9706main ()
9707{
9708
9709  ;
9710  return 0;
9711}
9712_ACEOF
9713if ac_fn_c_try_link "$LINENO"; then :
9714
9715lt_aix_libpath_sed='
9716    /Import File Strings/,/^$/ {
9717	/^0/ {
9718	    s/^0  *\(.*\)$/\1/
9719	    p
9720	}
9721    }'
9722aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723# Check for a 64-bit object if we didn't find anything.
9724if test -z "$aix_libpath"; then
9725  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9726fi
9727fi
9728rm -f core conftest.err conftest.$ac_objext \
9729    conftest$ac_exeext conftest.$ac_ext
9730if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9731
9732        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9733        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"
9734      else
9735	if test "$host_cpu" = ia64; then
9736	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9737	  allow_undefined_flag="-z nodefs"
9738	  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"
9739	else
9740	 # Determine the default libpath from the value encoded in an
9741	 # empty executable.
9742	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743/* end confdefs.h.  */
9744
9745int
9746main ()
9747{
9748
9749  ;
9750  return 0;
9751}
9752_ACEOF
9753if ac_fn_c_try_link "$LINENO"; then :
9754
9755lt_aix_libpath_sed='
9756    /Import File Strings/,/^$/ {
9757	/^0/ {
9758	    s/^0  *\(.*\)$/\1/
9759	    p
9760	}
9761    }'
9762aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9763# Check for a 64-bit object if we didn't find anything.
9764if test -z "$aix_libpath"; then
9765  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766fi
9767fi
9768rm -f core conftest.err conftest.$ac_objext \
9769    conftest$ac_exeext conftest.$ac_ext
9770if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9771
9772	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9773	  # Warning - without using the other run time loading flags,
9774	  # -berok will link without error, but may produce a broken library.
9775	  no_undefined_flag=' ${wl}-bernotok'
9776	  allow_undefined_flag=' ${wl}-berok'
9777	  if test "$with_gnu_ld" = yes; then
9778	    # We only use this code for GNU lds that support --whole-archive.
9779	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9780	  else
9781	    # Exported symbols can be pulled into shared objects from archives
9782	    whole_archive_flag_spec='$convenience'
9783	  fi
9784	  archive_cmds_need_lc=yes
9785	  # This is similar to how AIX traditionally builds its shared libraries.
9786	  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'
9787	fi
9788      fi
9789      ;;
9790
9791    amigaos*)
9792      case $host_cpu in
9793      powerpc)
9794            # see comment about AmigaOS4 .so support
9795            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796            archive_expsym_cmds=''
9797        ;;
9798      m68k)
9799            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)'
9800            hardcode_libdir_flag_spec='-L$libdir'
9801            hardcode_minus_L=yes
9802        ;;
9803      esac
9804      ;;
9805
9806    bsdi[45]*)
9807      export_dynamic_flag_spec=-rdynamic
9808      ;;
9809
9810    cygwin* | mingw* | pw32* | cegcc*)
9811      # When not using gcc, we currently assume that we are using
9812      # Microsoft Visual C++.
9813      # hardcode_libdir_flag_spec is actually meaningless, as there is
9814      # no search path for DLLs.
9815      hardcode_libdir_flag_spec=' '
9816      allow_undefined_flag=unsupported
9817      # Tell ltmain to make .lib files, not .a files.
9818      libext=lib
9819      # Tell ltmain to make .dll files, not .so files.
9820      shrext_cmds=".dll"
9821      # FIXME: Setting linknames here is a bad hack.
9822      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9823      # The linker will automatically build a .lib file if we build a DLL.
9824      old_archive_from_new_cmds='true'
9825      # FIXME: Should let the user specify the lib program.
9826      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9827      fix_srcfile_path='`cygpath -w "$srcfile"`'
9828      enable_shared_with_static_runtimes=yes
9829      ;;
9830
9831    darwin* | rhapsody*)
9832
9833
9834  archive_cmds_need_lc=no
9835  hardcode_direct=no
9836  hardcode_automatic=yes
9837  hardcode_shlibpath_var=unsupported
9838  if test "$lt_cv_ld_force_load" = "yes"; then
9839    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\"`'
9840  else
9841    whole_archive_flag_spec=''
9842  fi
9843  link_all_deplibs=yes
9844  allow_undefined_flag="$_lt_dar_allow_undefined"
9845  case $cc_basename in
9846     ifort*) _lt_dar_can_shared=yes ;;
9847     *) _lt_dar_can_shared=$GCC ;;
9848  esac
9849  if test "$_lt_dar_can_shared" = "yes"; then
9850    output_verbose_link_cmd=func_echo_all
9851    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9852    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9853    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}"
9854    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}"
9855
9856  else
9857  ld_shlibs=no
9858  fi
9859
9860      ;;
9861
9862    dgux*)
9863      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864      hardcode_libdir_flag_spec='-L$libdir'
9865      hardcode_shlibpath_var=no
9866      ;;
9867
9868    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9869    # support.  Future versions do this automatically, but an explicit c++rt0.o
9870    # does not break anything, and helps significantly (at the cost of a little
9871    # extra space).
9872    freebsd2.2*)
9873      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9874      hardcode_libdir_flag_spec='-R$libdir'
9875      hardcode_direct=yes
9876      hardcode_shlibpath_var=no
9877      ;;
9878
9879    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9880    freebsd2.*)
9881      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9882      hardcode_direct=yes
9883      hardcode_minus_L=yes
9884      hardcode_shlibpath_var=no
9885      ;;
9886
9887    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9888    freebsd* | dragonfly*)
9889      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9890      hardcode_libdir_flag_spec='-R$libdir'
9891      hardcode_direct=yes
9892      hardcode_shlibpath_var=no
9893      ;;
9894
9895    hpux9*)
9896      if test "$GCC" = yes; then
9897	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'
9898      else
9899	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'
9900      fi
9901      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902      hardcode_libdir_separator=:
9903      hardcode_direct=yes
9904
9905      # hardcode_minus_L: Not really in the search PATH,
9906      # but as the default location of the library.
9907      hardcode_minus_L=yes
9908      export_dynamic_flag_spec='${wl}-E'
9909      ;;
9910
9911    hpux10*)
9912      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9913	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9914      else
9915	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9916      fi
9917      if test "$with_gnu_ld" = no; then
9918	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9919	hardcode_libdir_flag_spec_ld='+b $libdir'
9920	hardcode_libdir_separator=:
9921	hardcode_direct=yes
9922	hardcode_direct_absolute=yes
9923	export_dynamic_flag_spec='${wl}-E'
9924	# hardcode_minus_L: Not really in the search PATH,
9925	# but as the default location of the library.
9926	hardcode_minus_L=yes
9927      fi
9928      ;;
9929
9930    hpux11*)
9931      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9932	case $host_cpu in
9933	hppa*64*)
9934	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935	  ;;
9936	ia64*)
9937	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938	  ;;
9939	*)
9940	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9941	  ;;
9942	esac
9943      else
9944	case $host_cpu in
9945	hppa*64*)
9946	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947	  ;;
9948	ia64*)
9949	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9950	  ;;
9951	*)
9952
9953	  # Older versions of the 11.00 compiler do not understand -b yet
9954	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9955	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9956$as_echo_n "checking if $CC understands -b... " >&6; }
9957if ${lt_cv_prog_compiler__b+:} false; then :
9958  $as_echo_n "(cached) " >&6
9959else
9960  lt_cv_prog_compiler__b=no
9961   save_LDFLAGS="$LDFLAGS"
9962   LDFLAGS="$LDFLAGS -b"
9963   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9964   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9965     # The linker can only warn and ignore the option if not recognized
9966     # So say no if there are warnings
9967     if test -s conftest.err; then
9968       # Append any errors to the config.log.
9969       cat conftest.err 1>&5
9970       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9971       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9972       if diff conftest.exp conftest.er2 >/dev/null; then
9973         lt_cv_prog_compiler__b=yes
9974       fi
9975     else
9976       lt_cv_prog_compiler__b=yes
9977     fi
9978   fi
9979   $RM -r conftest*
9980   LDFLAGS="$save_LDFLAGS"
9981
9982fi
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9984$as_echo "$lt_cv_prog_compiler__b" >&6; }
9985
9986if test x"$lt_cv_prog_compiler__b" = xyes; then
9987    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988else
9989    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9990fi
9991
9992	  ;;
9993	esac
9994      fi
9995      if test "$with_gnu_ld" = no; then
9996	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997	hardcode_libdir_separator=:
9998
9999	case $host_cpu in
10000	hppa*64*|ia64*)
10001	  hardcode_direct=no
10002	  hardcode_shlibpath_var=no
10003	  ;;
10004	*)
10005	  hardcode_direct=yes
10006	  hardcode_direct_absolute=yes
10007	  export_dynamic_flag_spec='${wl}-E'
10008
10009	  # hardcode_minus_L: Not really in the search PATH,
10010	  # but as the default location of the library.
10011	  hardcode_minus_L=yes
10012	  ;;
10013	esac
10014      fi
10015      ;;
10016
10017    irix5* | irix6* | nonstopux*)
10018      if test "$GCC" = yes; then
10019	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'
10020	# Try to use the -exported_symbol ld option, if it does not
10021	# work, assume that -exports_file does not work either and
10022	# implicitly export all symbols.
10023        save_LDFLAGS="$LDFLAGS"
10024        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10025        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026/* end confdefs.h.  */
10027int foo(void) {}
10028_ACEOF
10029if ac_fn_c_try_link "$LINENO"; then :
10030  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'
10031
10032fi
10033rm -f core conftest.err conftest.$ac_objext \
10034    conftest$ac_exeext conftest.$ac_ext
10035        LDFLAGS="$save_LDFLAGS"
10036      else
10037	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'
10038	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'
10039      fi
10040      archive_cmds_need_lc='no'
10041      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042      hardcode_libdir_separator=:
10043      inherit_rpath=yes
10044      link_all_deplibs=yes
10045      ;;
10046
10047    netbsd*)
10048      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10049	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10050      else
10051	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10052      fi
10053      hardcode_libdir_flag_spec='-R$libdir'
10054      hardcode_direct=yes
10055      hardcode_shlibpath_var=no
10056      ;;
10057
10058    newsos6)
10059      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060      hardcode_direct=yes
10061      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10062      hardcode_libdir_separator=:
10063      hardcode_shlibpath_var=no
10064      ;;
10065
10066    *nto* | *qnx*)
10067      ;;
10068
10069    openbsd*)
10070      if test -f /usr/libexec/ld.so; then
10071	hardcode_direct=yes
10072	hardcode_shlibpath_var=no
10073	hardcode_direct_absolute=yes
10074	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10075	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10076	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10077	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10078	  export_dynamic_flag_spec='${wl}-E'
10079	else
10080	  case $host_os in
10081	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10082	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10083	     hardcode_libdir_flag_spec='-R$libdir'
10084	     ;;
10085	   *)
10086	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10087	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088	     ;;
10089	  esac
10090	fi
10091      else
10092	ld_shlibs=no
10093      fi
10094      ;;
10095
10096    os2*)
10097      hardcode_libdir_flag_spec='-L$libdir'
10098      hardcode_minus_L=yes
10099      allow_undefined_flag=unsupported
10100      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'
10101      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10102      ;;
10103
10104    osf3*)
10105      if test "$GCC" = yes; then
10106	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10107	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'
10108      else
10109	allow_undefined_flag=' -expect_unresolved \*'
10110	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'
10111      fi
10112      archive_cmds_need_lc='no'
10113      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10114      hardcode_libdir_separator=:
10115      ;;
10116
10117    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10118      if test "$GCC" = yes; then
10119	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10120	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'
10121	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10122      else
10123	allow_undefined_flag=' -expect_unresolved \*'
10124	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'
10125	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~
10126	$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'
10127
10128	# Both c and cxx compiler support -rpath directly
10129	hardcode_libdir_flag_spec='-rpath $libdir'
10130      fi
10131      archive_cmds_need_lc='no'
10132      hardcode_libdir_separator=:
10133      ;;
10134
10135    solaris*)
10136      no_undefined_flag=' -z defs'
10137      if test "$GCC" = yes; then
10138	wlarc='${wl}'
10139	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10140	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10142      else
10143	case `$CC -V 2>&1` in
10144	*"Compilers 5.0"*)
10145	  wlarc=''
10146	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10148	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10149	  ;;
10150	*)
10151	  wlarc='${wl}'
10152	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10153	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10155	  ;;
10156	esac
10157      fi
10158      hardcode_libdir_flag_spec='-R$libdir'
10159      hardcode_shlibpath_var=no
10160      case $host_os in
10161      solaris2.[0-5] | solaris2.[0-5].*) ;;
10162      *)
10163	# The compiler driver will combine and reorder linker options,
10164	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10165	# but is careful enough not to reorder.
10166	# Supported since Solaris 2.6 (maybe 2.5.1?)
10167	if test "$GCC" = yes; then
10168	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10169	else
10170	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10171	fi
10172	;;
10173      esac
10174      link_all_deplibs=yes
10175      ;;
10176
10177    sunos4*)
10178      if test "x$host_vendor" = xsequent; then
10179	# Use $CC to link under sequent, because it throws in some extra .o
10180	# files that make .init and .fini sections work.
10181	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10182      else
10183	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10184      fi
10185      hardcode_libdir_flag_spec='-L$libdir'
10186      hardcode_direct=yes
10187      hardcode_minus_L=yes
10188      hardcode_shlibpath_var=no
10189      ;;
10190
10191    sysv4)
10192      case $host_vendor in
10193	sni)
10194	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195	  hardcode_direct=yes # is this really true???
10196	;;
10197	siemens)
10198	  ## LD is ld it makes a PLAMLIB
10199	  ## CC just makes a GrossModule.
10200	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10201	  reload_cmds='$CC -r -o $output$reload_objs'
10202	  hardcode_direct=no
10203        ;;
10204	motorola)
10205	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10207	;;
10208      esac
10209      runpath_var='LD_RUN_PATH'
10210      hardcode_shlibpath_var=no
10211      ;;
10212
10213    sysv4.3*)
10214      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215      hardcode_shlibpath_var=no
10216      export_dynamic_flag_spec='-Bexport'
10217      ;;
10218
10219    sysv4*MP*)
10220      if test -d /usr/nec; then
10221	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222	hardcode_shlibpath_var=no
10223	runpath_var=LD_RUN_PATH
10224	hardcode_runpath_var=yes
10225	ld_shlibs=yes
10226      fi
10227      ;;
10228
10229    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10230      no_undefined_flag='${wl}-z,text'
10231      archive_cmds_need_lc=no
10232      hardcode_shlibpath_var=no
10233      runpath_var='LD_RUN_PATH'
10234
10235      if test "$GCC" = yes; then
10236	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238      else
10239	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241      fi
10242      ;;
10243
10244    sysv5* | sco3.2v5* | sco5v6*)
10245      # Note: We can NOT use -z defs as we might desire, because we do not
10246      # link with -lc, and that would cause any symbols used from libc to
10247      # always be unresolved, which means just about no library would
10248      # ever link correctly.  If we're not using GNU ld we use -z text
10249      # though, which does catch some bad symbols but isn't as heavy-handed
10250      # as -z defs.
10251      no_undefined_flag='${wl}-z,text'
10252      allow_undefined_flag='${wl}-z,nodefs'
10253      archive_cmds_need_lc=no
10254      hardcode_shlibpath_var=no
10255      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10256      hardcode_libdir_separator=':'
10257      link_all_deplibs=yes
10258      export_dynamic_flag_spec='${wl}-Bexport'
10259      runpath_var='LD_RUN_PATH'
10260
10261      if test "$GCC" = yes; then
10262	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264      else
10265	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267      fi
10268      ;;
10269
10270    uts4*)
10271      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10272      hardcode_libdir_flag_spec='-L$libdir'
10273      hardcode_shlibpath_var=no
10274      ;;
10275
10276    *)
10277      ld_shlibs=no
10278      ;;
10279    esac
10280
10281    if test x$host_vendor = xsni; then
10282      case $host in
10283      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10284	export_dynamic_flag_spec='${wl}-Blargedynsym'
10285	;;
10286      esac
10287    fi
10288  fi
10289
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10291$as_echo "$ld_shlibs" >&6; }
10292test "$ld_shlibs" = no && can_build_shared=no
10293
10294with_gnu_ld=$with_gnu_ld
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310#
10311# Do we need to explicitly link libc?
10312#
10313case "x$archive_cmds_need_lc" in
10314x|xyes)
10315  # Assume -lc should be added
10316  archive_cmds_need_lc=yes
10317
10318  if test "$enable_shared" = yes && test "$GCC" = yes; then
10319    case $archive_cmds in
10320    *'~'*)
10321      # FIXME: we may have to deal with multi-command sequences.
10322      ;;
10323    '$CC '*)
10324      # Test whether the compiler implicitly links with -lc since on some
10325      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10326      # to ld, don't add -lc before -lgcc.
10327      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10328$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10329if ${lt_cv_archive_cmds_need_lc+:} false; then :
10330  $as_echo_n "(cached) " >&6
10331else
10332  $RM conftest*
10333	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10334
10335	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10336  (eval $ac_compile) 2>&5
10337  ac_status=$?
10338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10339  test $ac_status = 0; } 2>conftest.err; then
10340	  soname=conftest
10341	  lib=conftest
10342	  libobjs=conftest.$ac_objext
10343	  deplibs=
10344	  wl=$lt_prog_compiler_wl
10345	  pic_flag=$lt_prog_compiler_pic
10346	  compiler_flags=-v
10347	  linker_flags=-v
10348	  verstring=
10349	  output_objdir=.
10350	  libname=conftest
10351	  lt_save_allow_undefined_flag=$allow_undefined_flag
10352	  allow_undefined_flag=
10353	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10354  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10355  ac_status=$?
10356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10357  test $ac_status = 0; }
10358	  then
10359	    lt_cv_archive_cmds_need_lc=no
10360	  else
10361	    lt_cv_archive_cmds_need_lc=yes
10362	  fi
10363	  allow_undefined_flag=$lt_save_allow_undefined_flag
10364	else
10365	  cat conftest.err 1>&5
10366	fi
10367	$RM conftest*
10368
10369fi
10370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10371$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10372      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10373      ;;
10374    esac
10375  fi
10376  ;;
10377esac
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10536$as_echo_n "checking dynamic linker characteristics... " >&6; }
10537
10538if test "$GCC" = yes; then
10539  case $host_os in
10540    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10541    *) lt_awk_arg="/^libraries:/" ;;
10542  esac
10543  case $host_os in
10544    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10545    *) lt_sed_strip_eq="s,=/,/,g" ;;
10546  esac
10547  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10548  case $lt_search_path_spec in
10549  *\;*)
10550    # if the path contains ";" then we assume it to be the separator
10551    # otherwise default to the standard path separator (i.e. ":") - it is
10552    # assumed that no part of a normal pathname contains ";" but that should
10553    # okay in the real world where ";" in dirpaths is itself problematic.
10554    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10555    ;;
10556  *)
10557    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10558    ;;
10559  esac
10560  # Ok, now we have the path, separated by spaces, we can step through it
10561  # and add multilib dir if necessary.
10562  lt_tmp_lt_search_path_spec=
10563  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10564  for lt_sys_path in $lt_search_path_spec; do
10565    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10566      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10567    else
10568      test -d "$lt_sys_path" && \
10569	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10570    fi
10571  done
10572  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10573BEGIN {RS=" "; FS="/|\n";} {
10574  lt_foo="";
10575  lt_count=0;
10576  for (lt_i = NF; lt_i > 0; lt_i--) {
10577    if ($lt_i != "" && $lt_i != ".") {
10578      if ($lt_i == "..") {
10579        lt_count++;
10580      } else {
10581        if (lt_count == 0) {
10582          lt_foo="/" $lt_i lt_foo;
10583        } else {
10584          lt_count--;
10585        }
10586      }
10587    }
10588  }
10589  if (lt_foo != "") { lt_freq[lt_foo]++; }
10590  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10591}'`
10592  # AWK program above erroneously prepends '/' to C:/dos/paths
10593  # for these hosts.
10594  case $host_os in
10595    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10596      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10597  esac
10598  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10599else
10600  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10601fi
10602library_names_spec=
10603libname_spec='lib$name'
10604soname_spec=
10605shrext_cmds=".so"
10606postinstall_cmds=
10607postuninstall_cmds=
10608finish_cmds=
10609finish_eval=
10610shlibpath_var=
10611shlibpath_overrides_runpath=unknown
10612version_type=none
10613dynamic_linker="$host_os ld.so"
10614sys_lib_dlsearch_path_spec="/lib /usr/lib"
10615need_lib_prefix=unknown
10616hardcode_into_libs=no
10617
10618# when you set need_version to no, make sure it does not cause -set_version
10619# flags to be left without arguments
10620need_version=unknown
10621
10622case $host_os in
10623aix3*)
10624  version_type=linux
10625  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10626  shlibpath_var=LIBPATH
10627
10628  # AIX 3 has no versioning support, so we append a major version to the name.
10629  soname_spec='${libname}${release}${shared_ext}$major'
10630  ;;
10631
10632aix[4-9]*)
10633  version_type=linux
10634  need_lib_prefix=no
10635  need_version=no
10636  hardcode_into_libs=yes
10637  if test "$host_cpu" = ia64; then
10638    # AIX 5 supports IA64
10639    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10640    shlibpath_var=LD_LIBRARY_PATH
10641  else
10642    # With GCC up to 2.95.x, collect2 would create an import file
10643    # for dependence libraries.  The import file would start with
10644    # the line `#! .'.  This would cause the generated library to
10645    # depend on `.', always an invalid library.  This was fixed in
10646    # development snapshots of GCC prior to 3.0.
10647    case $host_os in
10648      aix4 | aix4.[01] | aix4.[01].*)
10649      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10650	   echo ' yes '
10651	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10652	:
10653      else
10654	can_build_shared=no
10655      fi
10656      ;;
10657    esac
10658    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10659    # soname into executable. Probably we can add versioning support to
10660    # collect2, so additional links can be useful in future.
10661    if test "$aix_use_runtimelinking" = yes; then
10662      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10663      # instead of lib<name>.a to let people know that these are not
10664      # typical AIX shared libraries.
10665      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666    else
10667      # We preserve .a as extension for shared libraries through AIX4.2
10668      # and later when we are not doing run time linking.
10669      library_names_spec='${libname}${release}.a $libname.a'
10670      soname_spec='${libname}${release}${shared_ext}$major'
10671    fi
10672    shlibpath_var=LIBPATH
10673  fi
10674  ;;
10675
10676amigaos*)
10677  case $host_cpu in
10678  powerpc)
10679    # Since July 2007 AmigaOS4 officially supports .so libraries.
10680    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10681    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682    ;;
10683  m68k)
10684    library_names_spec='$libname.ixlibrary $libname.a'
10685    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10686    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'
10687    ;;
10688  esac
10689  ;;
10690
10691beos*)
10692  library_names_spec='${libname}${shared_ext}'
10693  dynamic_linker="$host_os ld.so"
10694  shlibpath_var=LIBRARY_PATH
10695  ;;
10696
10697bsdi[45]*)
10698  version_type=linux
10699  need_version=no
10700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701  soname_spec='${libname}${release}${shared_ext}$major'
10702  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10703  shlibpath_var=LD_LIBRARY_PATH
10704  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10705  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10706  # the default ld.so.conf also contains /usr/contrib/lib and
10707  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10708  # libtool to hard-code these into programs
10709  ;;
10710
10711cygwin* | mingw* | pw32* | cegcc*)
10712  version_type=windows
10713  shrext_cmds=".dll"
10714  need_version=no
10715  need_lib_prefix=no
10716
10717  case $GCC,$host_os in
10718  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10719    library_names_spec='$libname.dll.a'
10720    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10721    postinstall_cmds='base_file=`basename \${file}`~
10722      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10723      dldir=$destdir/`dirname \$dlpath`~
10724      test -d \$dldir || mkdir -p \$dldir~
10725      $install_prog $dir/$dlname \$dldir/$dlname~
10726      chmod a+x \$dldir/$dlname~
10727      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10728        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10729      fi'
10730    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10731      dlpath=$dir/\$dldll~
10732       $RM \$dlpath'
10733    shlibpath_overrides_runpath=yes
10734
10735    case $host_os in
10736    cygwin*)
10737      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10738      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10739
10740      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10741      ;;
10742    mingw* | cegcc*)
10743      # MinGW DLLs use traditional 'lib' prefix
10744      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10745      ;;
10746    pw32*)
10747      # pw32 DLLs use 'pw' prefix rather than 'lib'
10748      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749      ;;
10750    esac
10751    ;;
10752
10753  *)
10754    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10755    ;;
10756  esac
10757  dynamic_linker='Win32 ld.exe'
10758  # FIXME: first we should search . and the directory the executable is in
10759  shlibpath_var=PATH
10760  ;;
10761
10762darwin* | rhapsody*)
10763  dynamic_linker="$host_os dyld"
10764  version_type=darwin
10765  need_lib_prefix=no
10766  need_version=no
10767  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10768  soname_spec='${libname}${release}${major}$shared_ext'
10769  shlibpath_overrides_runpath=yes
10770  shlibpath_var=DYLD_LIBRARY_PATH
10771  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10772
10773  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10774  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10775  ;;
10776
10777dgux*)
10778  version_type=linux
10779  need_lib_prefix=no
10780  need_version=no
10781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10782  soname_spec='${libname}${release}${shared_ext}$major'
10783  shlibpath_var=LD_LIBRARY_PATH
10784  ;;
10785
10786freebsd* | dragonfly*)
10787  # DragonFly does not have aout.  When/if they implement a new
10788  # versioning mechanism, adjust this.
10789  if test -x /usr/bin/objformat; then
10790    objformat=`/usr/bin/objformat`
10791  else
10792    case $host_os in
10793    freebsd[23].*) objformat=aout ;;
10794    *) objformat=elf ;;
10795    esac
10796  fi
10797  version_type=freebsd-$objformat
10798  case $version_type in
10799    freebsd-elf*)
10800      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10801      need_version=no
10802      need_lib_prefix=no
10803      ;;
10804    freebsd-*)
10805      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10806      need_version=yes
10807      ;;
10808  esac
10809  shlibpath_var=LD_LIBRARY_PATH
10810  case $host_os in
10811  freebsd2.*)
10812    shlibpath_overrides_runpath=yes
10813    ;;
10814  freebsd3.[01]* | freebsdelf3.[01]*)
10815    shlibpath_overrides_runpath=yes
10816    hardcode_into_libs=yes
10817    ;;
10818  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10819  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10820    shlibpath_overrides_runpath=no
10821    hardcode_into_libs=yes
10822    ;;
10823  *) # from 4.6 on, and DragonFly
10824    shlibpath_overrides_runpath=yes
10825    hardcode_into_libs=yes
10826    ;;
10827  esac
10828  ;;
10829
10830haiku*)
10831  version_type=linux
10832  need_lib_prefix=no
10833  need_version=no
10834  dynamic_linker="$host_os runtime_loader"
10835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10836  soname_spec='${libname}${release}${shared_ext}$major'
10837  shlibpath_var=LIBRARY_PATH
10838  shlibpath_overrides_runpath=yes
10839  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10840  hardcode_into_libs=yes
10841  ;;
10842
10843hpux9* | hpux10* | hpux11*)
10844  # Give a soname corresponding to the major version so that dld.sl refuses to
10845  # link against other versions.
10846  version_type=sunos
10847  need_lib_prefix=no
10848  need_version=no
10849  case $host_cpu in
10850  ia64*)
10851    shrext_cmds='.so'
10852    hardcode_into_libs=yes
10853    dynamic_linker="$host_os dld.so"
10854    shlibpath_var=LD_LIBRARY_PATH
10855    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10856    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857    soname_spec='${libname}${release}${shared_ext}$major'
10858    if test "X$HPUX_IA64_MODE" = X32; then
10859      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10860    else
10861      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10862    fi
10863    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10864    ;;
10865  hppa*64*)
10866    shrext_cmds='.sl'
10867    hardcode_into_libs=yes
10868    dynamic_linker="$host_os dld.sl"
10869    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10870    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10871    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872    soname_spec='${libname}${release}${shared_ext}$major'
10873    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10874    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10875    ;;
10876  *)
10877    shrext_cmds='.sl'
10878    dynamic_linker="$host_os dld.sl"
10879    shlibpath_var=SHLIB_PATH
10880    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10881    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882    soname_spec='${libname}${release}${shared_ext}$major'
10883    ;;
10884  esac
10885  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10886  postinstall_cmds='chmod 555 $lib'
10887  # or fails outright, so override atomically:
10888  install_override_mode=555
10889  ;;
10890
10891interix[3-9]*)
10892  version_type=linux
10893  need_lib_prefix=no
10894  need_version=no
10895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10896  soname_spec='${libname}${release}${shared_ext}$major'
10897  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10898  shlibpath_var=LD_LIBRARY_PATH
10899  shlibpath_overrides_runpath=no
10900  hardcode_into_libs=yes
10901  ;;
10902
10903irix5* | irix6* | nonstopux*)
10904  case $host_os in
10905    nonstopux*) version_type=nonstopux ;;
10906    *)
10907	if test "$lt_cv_prog_gnu_ld" = yes; then
10908		version_type=linux
10909	else
10910		version_type=irix
10911	fi ;;
10912  esac
10913  need_lib_prefix=no
10914  need_version=no
10915  soname_spec='${libname}${release}${shared_ext}$major'
10916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10917  case $host_os in
10918  irix5* | nonstopux*)
10919    libsuff= shlibsuff=
10920    ;;
10921  *)
10922    case $LD in # libtool.m4 will add one of these switches to LD
10923    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10924      libsuff= shlibsuff= libmagic=32-bit;;
10925    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10926      libsuff=32 shlibsuff=N32 libmagic=N32;;
10927    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10928      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10929    *) libsuff= shlibsuff= libmagic=never-match;;
10930    esac
10931    ;;
10932  esac
10933  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10934  shlibpath_overrides_runpath=no
10935  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10936  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10937  hardcode_into_libs=yes
10938  ;;
10939
10940# No shared lib support for Linux oldld, aout, or coff.
10941linux*oldld* | linux*aout* | linux*coff*)
10942  dynamic_linker=no
10943  ;;
10944
10945# This must be Linux ELF.
10946linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10947  version_type=linux
10948  need_lib_prefix=no
10949  need_version=no
10950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951  soname_spec='${libname}${release}${shared_ext}$major'
10952  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10953  shlibpath_var=LD_LIBRARY_PATH
10954  shlibpath_overrides_runpath=no
10955
10956  # Some binutils ld are patched to set DT_RUNPATH
10957  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10958  $as_echo_n "(cached) " >&6
10959else
10960  lt_cv_shlibpath_overrides_runpath=no
10961    save_LDFLAGS=$LDFLAGS
10962    save_libdir=$libdir
10963    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10964	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10965    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966/* end confdefs.h.  */
10967
10968int
10969main ()
10970{
10971
10972  ;
10973  return 0;
10974}
10975_ACEOF
10976if ac_fn_c_try_link "$LINENO"; then :
10977  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10978  lt_cv_shlibpath_overrides_runpath=yes
10979fi
10980fi
10981rm -f core conftest.err conftest.$ac_objext \
10982    conftest$ac_exeext conftest.$ac_ext
10983    LDFLAGS=$save_LDFLAGS
10984    libdir=$save_libdir
10985
10986fi
10987
10988  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10989
10990  # This implies no fast_install, which is unacceptable.
10991  # Some rework will be needed to allow for fast_install
10992  # before this can be enabled.
10993  hardcode_into_libs=yes
10994
10995  # Append ld.so.conf contents to the search path
10996  if test -f /etc/ld.so.conf; then
10997    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' ' '`
10998    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10999  fi
11000
11001  # We used to test for /lib/ld.so.1 and disable shared libraries on
11002  # powerpc, because MkLinux only supported shared libraries with the
11003  # GNU dynamic linker.  Since this was broken with cross compilers,
11004  # most powerpc-linux boxes support dynamic linking these days and
11005  # people can always --disable-shared, the test was removed, and we
11006  # assume the GNU/Linux dynamic linker is in use.
11007  dynamic_linker='GNU/Linux ld.so'
11008  ;;
11009
11010netbsd*)
11011  version_type=sunos
11012  need_lib_prefix=no
11013  need_version=no
11014  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11015    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11016    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11017    dynamic_linker='NetBSD (a.out) ld.so'
11018  else
11019    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11020    soname_spec='${libname}${release}${shared_ext}$major'
11021    dynamic_linker='NetBSD ld.elf_so'
11022  fi
11023  shlibpath_var=LD_LIBRARY_PATH
11024  shlibpath_overrides_runpath=yes
11025  hardcode_into_libs=yes
11026  ;;
11027
11028newsos6)
11029  version_type=linux
11030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031  shlibpath_var=LD_LIBRARY_PATH
11032  shlibpath_overrides_runpath=yes
11033  ;;
11034
11035*nto* | *qnx*)
11036  version_type=qnx
11037  need_lib_prefix=no
11038  need_version=no
11039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040  soname_spec='${libname}${release}${shared_ext}$major'
11041  shlibpath_var=LD_LIBRARY_PATH
11042  shlibpath_overrides_runpath=no
11043  hardcode_into_libs=yes
11044  dynamic_linker='ldqnx.so'
11045  ;;
11046
11047openbsd*)
11048  version_type=sunos
11049  sys_lib_dlsearch_path_spec="/usr/lib"
11050  need_lib_prefix=no
11051  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11052  case $host_os in
11053    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11054    *)				need_version=no  ;;
11055  esac
11056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11057  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11058  shlibpath_var=LD_LIBRARY_PATH
11059  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11060    case $host_os in
11061      openbsd2.[89] | openbsd2.[89].*)
11062	shlibpath_overrides_runpath=no
11063	;;
11064      *)
11065	shlibpath_overrides_runpath=yes
11066	;;
11067      esac
11068  else
11069    shlibpath_overrides_runpath=yes
11070  fi
11071  ;;
11072
11073os2*)
11074  libname_spec='$name'
11075  shrext_cmds=".dll"
11076  need_lib_prefix=no
11077  library_names_spec='$libname${shared_ext} $libname.a'
11078  dynamic_linker='OS/2 ld.exe'
11079  shlibpath_var=LIBPATH
11080  ;;
11081
11082osf3* | osf4* | osf5*)
11083  version_type=osf
11084  need_lib_prefix=no
11085  need_version=no
11086  soname_spec='${libname}${release}${shared_ext}$major'
11087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088  shlibpath_var=LD_LIBRARY_PATH
11089  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11090  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11091  ;;
11092
11093rdos*)
11094  dynamic_linker=no
11095  ;;
11096
11097solaris*)
11098  version_type=linux
11099  need_lib_prefix=no
11100  need_version=no
11101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102  soname_spec='${libname}${release}${shared_ext}$major'
11103  shlibpath_var=LD_LIBRARY_PATH
11104  shlibpath_overrides_runpath=yes
11105  hardcode_into_libs=yes
11106  # ldd complains unless libraries are executable
11107  postinstall_cmds='chmod +x $lib'
11108  ;;
11109
11110sunos4*)
11111  version_type=sunos
11112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11113  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11114  shlibpath_var=LD_LIBRARY_PATH
11115  shlibpath_overrides_runpath=yes
11116  if test "$with_gnu_ld" = yes; then
11117    need_lib_prefix=no
11118  fi
11119  need_version=yes
11120  ;;
11121
11122sysv4 | sysv4.3*)
11123  version_type=linux
11124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125  soname_spec='${libname}${release}${shared_ext}$major'
11126  shlibpath_var=LD_LIBRARY_PATH
11127  case $host_vendor in
11128    sni)
11129      shlibpath_overrides_runpath=no
11130      need_lib_prefix=no
11131      runpath_var=LD_RUN_PATH
11132      ;;
11133    siemens)
11134      need_lib_prefix=no
11135      ;;
11136    motorola)
11137      need_lib_prefix=no
11138      need_version=no
11139      shlibpath_overrides_runpath=no
11140      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11141      ;;
11142  esac
11143  ;;
11144
11145sysv4*MP*)
11146  if test -d /usr/nec ;then
11147    version_type=linux
11148    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11149    soname_spec='$libname${shared_ext}.$major'
11150    shlibpath_var=LD_LIBRARY_PATH
11151  fi
11152  ;;
11153
11154sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11155  version_type=freebsd-elf
11156  need_lib_prefix=no
11157  need_version=no
11158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11159  soname_spec='${libname}${release}${shared_ext}$major'
11160  shlibpath_var=LD_LIBRARY_PATH
11161  shlibpath_overrides_runpath=yes
11162  hardcode_into_libs=yes
11163  if test "$with_gnu_ld" = yes; then
11164    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11165  else
11166    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11167    case $host_os in
11168      sco3.2v5*)
11169        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11170	;;
11171    esac
11172  fi
11173  sys_lib_dlsearch_path_spec='/usr/lib'
11174  ;;
11175
11176tpf*)
11177  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11178  version_type=linux
11179  need_lib_prefix=no
11180  need_version=no
11181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182  shlibpath_var=LD_LIBRARY_PATH
11183  shlibpath_overrides_runpath=no
11184  hardcode_into_libs=yes
11185  ;;
11186
11187uts4*)
11188  version_type=linux
11189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190  soname_spec='${libname}${release}${shared_ext}$major'
11191  shlibpath_var=LD_LIBRARY_PATH
11192  ;;
11193
11194*)
11195  dynamic_linker=no
11196  ;;
11197esac
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11199$as_echo "$dynamic_linker" >&6; }
11200test "$dynamic_linker" = no && can_build_shared=no
11201
11202variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11203if test "$GCC" = yes; then
11204  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11205fi
11206
11207if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11208  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11209fi
11210if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11211  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11212fi
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11306$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11307hardcode_action=
11308if test -n "$hardcode_libdir_flag_spec" ||
11309   test -n "$runpath_var" ||
11310   test "X$hardcode_automatic" = "Xyes" ; then
11311
11312  # We can hardcode non-existent directories.
11313  if test "$hardcode_direct" != no &&
11314     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11315     # have to relink, otherwise we might link with an installed library
11316     # when we should be linking with a yet-to-be-installed one
11317     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11318     test "$hardcode_minus_L" != no; then
11319    # Linking always hardcodes the temporary library directory.
11320    hardcode_action=relink
11321  else
11322    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11323    hardcode_action=immediate
11324  fi
11325else
11326  # We cannot hardcode anything, or else we can only hardcode existing
11327  # directories.
11328  hardcode_action=unsupported
11329fi
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11331$as_echo "$hardcode_action" >&6; }
11332
11333if test "$hardcode_action" = relink ||
11334   test "$inherit_rpath" = yes; then
11335  # Fast installation is not supported
11336  enable_fast_install=no
11337elif test "$shlibpath_overrides_runpath" = yes ||
11338     test "$enable_shared" = no; then
11339  # Fast installation is not necessary
11340  enable_fast_install=needless
11341fi
11342
11343
11344
11345
11346
11347
11348  if test "x$enable_dlopen" != xyes; then
11349  enable_dlopen=unknown
11350  enable_dlopen_self=unknown
11351  enable_dlopen_self_static=unknown
11352else
11353  lt_cv_dlopen=no
11354  lt_cv_dlopen_libs=
11355
11356  case $host_os in
11357  beos*)
11358    lt_cv_dlopen="load_add_on"
11359    lt_cv_dlopen_libs=
11360    lt_cv_dlopen_self=yes
11361    ;;
11362
11363  mingw* | pw32* | cegcc*)
11364    lt_cv_dlopen="LoadLibrary"
11365    lt_cv_dlopen_libs=
11366    ;;
11367
11368  cygwin*)
11369    lt_cv_dlopen="dlopen"
11370    lt_cv_dlopen_libs=
11371    ;;
11372
11373  darwin*)
11374  # if libdl is installed we need to link against it
11375    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11376$as_echo_n "checking for dlopen in -ldl... " >&6; }
11377if ${ac_cv_lib_dl_dlopen+:} false; then :
11378  $as_echo_n "(cached) " >&6
11379else
11380  ac_check_lib_save_LIBS=$LIBS
11381LIBS="-ldl  $LIBS"
11382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383/* end confdefs.h.  */
11384
11385/* Override any GCC internal prototype to avoid an error.
11386   Use char because int might match the return type of a GCC
11387   builtin and then its argument prototype would still apply.  */
11388#ifdef __cplusplus
11389extern "C"
11390#endif
11391char dlopen ();
11392int
11393main ()
11394{
11395return dlopen ();
11396  ;
11397  return 0;
11398}
11399_ACEOF
11400if ac_fn_c_try_link "$LINENO"; then :
11401  ac_cv_lib_dl_dlopen=yes
11402else
11403  ac_cv_lib_dl_dlopen=no
11404fi
11405rm -f core conftest.err conftest.$ac_objext \
11406    conftest$ac_exeext conftest.$ac_ext
11407LIBS=$ac_check_lib_save_LIBS
11408fi
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11410$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11411if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11412  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11413else
11414
11415    lt_cv_dlopen="dyld"
11416    lt_cv_dlopen_libs=
11417    lt_cv_dlopen_self=yes
11418
11419fi
11420
11421    ;;
11422
11423  *)
11424    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11425if test "x$ac_cv_func_shl_load" = xyes; then :
11426  lt_cv_dlopen="shl_load"
11427else
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11429$as_echo_n "checking for shl_load in -ldld... " >&6; }
11430if ${ac_cv_lib_dld_shl_load+:} false; then :
11431  $as_echo_n "(cached) " >&6
11432else
11433  ac_check_lib_save_LIBS=$LIBS
11434LIBS="-ldld  $LIBS"
11435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436/* end confdefs.h.  */
11437
11438/* Override any GCC internal prototype to avoid an error.
11439   Use char because int might match the return type of a GCC
11440   builtin and then its argument prototype would still apply.  */
11441#ifdef __cplusplus
11442extern "C"
11443#endif
11444char shl_load ();
11445int
11446main ()
11447{
11448return shl_load ();
11449  ;
11450  return 0;
11451}
11452_ACEOF
11453if ac_fn_c_try_link "$LINENO"; then :
11454  ac_cv_lib_dld_shl_load=yes
11455else
11456  ac_cv_lib_dld_shl_load=no
11457fi
11458rm -f core conftest.err conftest.$ac_objext \
11459    conftest$ac_exeext conftest.$ac_ext
11460LIBS=$ac_check_lib_save_LIBS
11461fi
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11463$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11464if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11465  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11466else
11467  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11468if test "x$ac_cv_func_dlopen" = xyes; then :
11469  lt_cv_dlopen="dlopen"
11470else
11471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11472$as_echo_n "checking for dlopen in -ldl... " >&6; }
11473if ${ac_cv_lib_dl_dlopen+:} false; then :
11474  $as_echo_n "(cached) " >&6
11475else
11476  ac_check_lib_save_LIBS=$LIBS
11477LIBS="-ldl  $LIBS"
11478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479/* end confdefs.h.  */
11480
11481/* Override any GCC internal prototype to avoid an error.
11482   Use char because int might match the return type of a GCC
11483   builtin and then its argument prototype would still apply.  */
11484#ifdef __cplusplus
11485extern "C"
11486#endif
11487char dlopen ();
11488int
11489main ()
11490{
11491return dlopen ();
11492  ;
11493  return 0;
11494}
11495_ACEOF
11496if ac_fn_c_try_link "$LINENO"; then :
11497  ac_cv_lib_dl_dlopen=yes
11498else
11499  ac_cv_lib_dl_dlopen=no
11500fi
11501rm -f core conftest.err conftest.$ac_objext \
11502    conftest$ac_exeext conftest.$ac_ext
11503LIBS=$ac_check_lib_save_LIBS
11504fi
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11506$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11507if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11508  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11509else
11510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11511$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11512if ${ac_cv_lib_svld_dlopen+:} false; then :
11513  $as_echo_n "(cached) " >&6
11514else
11515  ac_check_lib_save_LIBS=$LIBS
11516LIBS="-lsvld  $LIBS"
11517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518/* end confdefs.h.  */
11519
11520/* Override any GCC internal prototype to avoid an error.
11521   Use char because int might match the return type of a GCC
11522   builtin and then its argument prototype would still apply.  */
11523#ifdef __cplusplus
11524extern "C"
11525#endif
11526char dlopen ();
11527int
11528main ()
11529{
11530return dlopen ();
11531  ;
11532  return 0;
11533}
11534_ACEOF
11535if ac_fn_c_try_link "$LINENO"; then :
11536  ac_cv_lib_svld_dlopen=yes
11537else
11538  ac_cv_lib_svld_dlopen=no
11539fi
11540rm -f core conftest.err conftest.$ac_objext \
11541    conftest$ac_exeext conftest.$ac_ext
11542LIBS=$ac_check_lib_save_LIBS
11543fi
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11545$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11546if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11547  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11548else
11549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11550$as_echo_n "checking for dld_link in -ldld... " >&6; }
11551if ${ac_cv_lib_dld_dld_link+:} false; then :
11552  $as_echo_n "(cached) " >&6
11553else
11554  ac_check_lib_save_LIBS=$LIBS
11555LIBS="-ldld  $LIBS"
11556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557/* end confdefs.h.  */
11558
11559/* Override any GCC internal prototype to avoid an error.
11560   Use char because int might match the return type of a GCC
11561   builtin and then its argument prototype would still apply.  */
11562#ifdef __cplusplus
11563extern "C"
11564#endif
11565char dld_link ();
11566int
11567main ()
11568{
11569return dld_link ();
11570  ;
11571  return 0;
11572}
11573_ACEOF
11574if ac_fn_c_try_link "$LINENO"; then :
11575  ac_cv_lib_dld_dld_link=yes
11576else
11577  ac_cv_lib_dld_dld_link=no
11578fi
11579rm -f core conftest.err conftest.$ac_objext \
11580    conftest$ac_exeext conftest.$ac_ext
11581LIBS=$ac_check_lib_save_LIBS
11582fi
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11584$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11585if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11586  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11587fi
11588
11589
11590fi
11591
11592
11593fi
11594
11595
11596fi
11597
11598
11599fi
11600
11601
11602fi
11603
11604    ;;
11605  esac
11606
11607  if test "x$lt_cv_dlopen" != xno; then
11608    enable_dlopen=yes
11609  else
11610    enable_dlopen=no
11611  fi
11612
11613  case $lt_cv_dlopen in
11614  dlopen)
11615    save_CPPFLAGS="$CPPFLAGS"
11616    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11617
11618    save_LDFLAGS="$LDFLAGS"
11619    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11620
11621    save_LIBS="$LIBS"
11622    LIBS="$lt_cv_dlopen_libs $LIBS"
11623
11624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11625$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11626if ${lt_cv_dlopen_self+:} false; then :
11627  $as_echo_n "(cached) " >&6
11628else
11629  	  if test "$cross_compiling" = yes; then :
11630  lt_cv_dlopen_self=cross
11631else
11632  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11633  lt_status=$lt_dlunknown
11634  cat > conftest.$ac_ext <<_LT_EOF
11635#line 11635 "configure"
11636#include "confdefs.h"
11637
11638#if HAVE_DLFCN_H
11639#include <dlfcn.h>
11640#endif
11641
11642#include <stdio.h>
11643
11644#ifdef RTLD_GLOBAL
11645#  define LT_DLGLOBAL		RTLD_GLOBAL
11646#else
11647#  ifdef DL_GLOBAL
11648#    define LT_DLGLOBAL		DL_GLOBAL
11649#  else
11650#    define LT_DLGLOBAL		0
11651#  endif
11652#endif
11653
11654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11655   find out it does not work in some platform. */
11656#ifndef LT_DLLAZY_OR_NOW
11657#  ifdef RTLD_LAZY
11658#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11659#  else
11660#    ifdef DL_LAZY
11661#      define LT_DLLAZY_OR_NOW		DL_LAZY
11662#    else
11663#      ifdef RTLD_NOW
11664#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11665#      else
11666#        ifdef DL_NOW
11667#          define LT_DLLAZY_OR_NOW	DL_NOW
11668#        else
11669#          define LT_DLLAZY_OR_NOW	0
11670#        endif
11671#      endif
11672#    endif
11673#  endif
11674#endif
11675
11676/* When -fvisbility=hidden is used, assume the code has been annotated
11677   correspondingly for the symbols needed.  */
11678#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11679void fnord () __attribute__((visibility("default")));
11680#endif
11681
11682void fnord () { int i=42; }
11683int main ()
11684{
11685  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11686  int status = $lt_dlunknown;
11687
11688  if (self)
11689    {
11690      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11691      else
11692        {
11693	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11694          else puts (dlerror ());
11695	}
11696      /* dlclose (self); */
11697    }
11698  else
11699    puts (dlerror ());
11700
11701  return status;
11702}
11703_LT_EOF
11704  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11705  (eval $ac_link) 2>&5
11706  ac_status=$?
11707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11708  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11709    (./conftest; exit; ) >&5 2>/dev/null
11710    lt_status=$?
11711    case x$lt_status in
11712      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11713      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11714      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11715    esac
11716  else :
11717    # compilation failed
11718    lt_cv_dlopen_self=no
11719  fi
11720fi
11721rm -fr conftest*
11722
11723
11724fi
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11726$as_echo "$lt_cv_dlopen_self" >&6; }
11727
11728    if test "x$lt_cv_dlopen_self" = xyes; then
11729      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11730      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11731$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11732if ${lt_cv_dlopen_self_static+:} false; then :
11733  $as_echo_n "(cached) " >&6
11734else
11735  	  if test "$cross_compiling" = yes; then :
11736  lt_cv_dlopen_self_static=cross
11737else
11738  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739  lt_status=$lt_dlunknown
11740  cat > conftest.$ac_ext <<_LT_EOF
11741#line 11741 "configure"
11742#include "confdefs.h"
11743
11744#if HAVE_DLFCN_H
11745#include <dlfcn.h>
11746#endif
11747
11748#include <stdio.h>
11749
11750#ifdef RTLD_GLOBAL
11751#  define LT_DLGLOBAL		RTLD_GLOBAL
11752#else
11753#  ifdef DL_GLOBAL
11754#    define LT_DLGLOBAL		DL_GLOBAL
11755#  else
11756#    define LT_DLGLOBAL		0
11757#  endif
11758#endif
11759
11760/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761   find out it does not work in some platform. */
11762#ifndef LT_DLLAZY_OR_NOW
11763#  ifdef RTLD_LAZY
11764#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11765#  else
11766#    ifdef DL_LAZY
11767#      define LT_DLLAZY_OR_NOW		DL_LAZY
11768#    else
11769#      ifdef RTLD_NOW
11770#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11771#      else
11772#        ifdef DL_NOW
11773#          define LT_DLLAZY_OR_NOW	DL_NOW
11774#        else
11775#          define LT_DLLAZY_OR_NOW	0
11776#        endif
11777#      endif
11778#    endif
11779#  endif
11780#endif
11781
11782/* When -fvisbility=hidden is used, assume the code has been annotated
11783   correspondingly for the symbols needed.  */
11784#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11785void fnord () __attribute__((visibility("default")));
11786#endif
11787
11788void fnord () { int i=42; }
11789int main ()
11790{
11791  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11792  int status = $lt_dlunknown;
11793
11794  if (self)
11795    {
11796      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11797      else
11798        {
11799	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11800          else puts (dlerror ());
11801	}
11802      /* dlclose (self); */
11803    }
11804  else
11805    puts (dlerror ());
11806
11807  return status;
11808}
11809_LT_EOF
11810  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11811  (eval $ac_link) 2>&5
11812  ac_status=$?
11813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11814  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11815    (./conftest; exit; ) >&5 2>/dev/null
11816    lt_status=$?
11817    case x$lt_status in
11818      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11819      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11820      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11821    esac
11822  else :
11823    # compilation failed
11824    lt_cv_dlopen_self_static=no
11825  fi
11826fi
11827rm -fr conftest*
11828
11829
11830fi
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11832$as_echo "$lt_cv_dlopen_self_static" >&6; }
11833    fi
11834
11835    CPPFLAGS="$save_CPPFLAGS"
11836    LDFLAGS="$save_LDFLAGS"
11837    LIBS="$save_LIBS"
11838    ;;
11839  esac
11840
11841  case $lt_cv_dlopen_self in
11842  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11843  *) enable_dlopen_self=unknown ;;
11844  esac
11845
11846  case $lt_cv_dlopen_self_static in
11847  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11848  *) enable_dlopen_self_static=unknown ;;
11849  esac
11850fi
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868striplib=
11869old_striplib=
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11871$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11872if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11873  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11874  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11876$as_echo "yes" >&6; }
11877else
11878# FIXME - insert some real tests, host_os isn't really good enough
11879  case $host_os in
11880  darwin*)
11881    if test -n "$STRIP" ; then
11882      striplib="$STRIP -x"
11883      old_striplib="$STRIP -S"
11884      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11885$as_echo "yes" >&6; }
11886    else
11887      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888$as_echo "no" >&6; }
11889    fi
11890    ;;
11891  *)
11892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893$as_echo "no" >&6; }
11894    ;;
11895  esac
11896fi
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909  # Report which library types will actually be built
11910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11911$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11913$as_echo "$can_build_shared" >&6; }
11914
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11916$as_echo_n "checking whether to build shared libraries... " >&6; }
11917  test "$can_build_shared" = "no" && enable_shared=no
11918
11919  # On AIX, shared libraries and static libraries use the same namespace, and
11920  # are all built from PIC.
11921  case $host_os in
11922  aix3*)
11923    test "$enable_shared" = yes && enable_static=no
11924    if test -n "$RANLIB"; then
11925      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11926      postinstall_cmds='$RANLIB $lib'
11927    fi
11928    ;;
11929
11930  aix[4-9]*)
11931    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11932      test "$enable_shared" = yes && enable_static=no
11933    fi
11934    ;;
11935  esac
11936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11937$as_echo "$enable_shared" >&6; }
11938
11939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11940$as_echo_n "checking whether to build static libraries... " >&6; }
11941  # Make sure either enable_shared or enable_static is yes.
11942  test "$enable_shared" = yes || enable_static=yes
11943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11944$as_echo "$enable_static" >&6; }
11945
11946
11947
11948
11949fi
11950ac_ext=c
11951ac_cpp='$CPP $CPPFLAGS'
11952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11954ac_compiler_gnu=$ac_cv_c_compiler_gnu
11955
11956CC="$lt_save_CC"
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970        ac_config_commands="$ac_config_commands libtool"
11971
11972
11973
11974
11975# Only expand once:
11976
11977
11978# Check whether --enable-largefile was given.
11979if test "${enable_largefile+set}" = set; then :
11980  enableval=$enable_largefile;
11981fi
11982
11983if test "$enable_largefile" != no; then
11984
11985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11986$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11987if ${ac_cv_sys_largefile_CC+:} false; then :
11988  $as_echo_n "(cached) " >&6
11989else
11990  ac_cv_sys_largefile_CC=no
11991     if test "$GCC" != yes; then
11992       ac_save_CC=$CC
11993       while :; do
11994	 # IRIX 6.2 and later do not support large files by default,
11995	 # so use the C compiler's -n32 option if that helps.
11996	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h.  */
11998#include <sys/types.h>
11999 /* Check that off_t can represent 2**63 - 1 correctly.
12000    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12001    since some C++ compilers masquerading as C compilers
12002    incorrectly reject 9223372036854775807.  */
12003#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12004  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12005		       && LARGE_OFF_T % 2147483647 == 1)
12006		      ? 1 : -1];
12007int
12008main ()
12009{
12010
12011  ;
12012  return 0;
12013}
12014_ACEOF
12015	 if ac_fn_c_try_compile "$LINENO"; then :
12016  break
12017fi
12018rm -f core conftest.err conftest.$ac_objext
12019	 CC="$CC -n32"
12020	 if ac_fn_c_try_compile "$LINENO"; then :
12021  ac_cv_sys_largefile_CC=' -n32'; break
12022fi
12023rm -f core conftest.err conftest.$ac_objext
12024	 break
12025       done
12026       CC=$ac_save_CC
12027       rm -f conftest.$ac_ext
12028    fi
12029fi
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12031$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12032  if test "$ac_cv_sys_largefile_CC" != no; then
12033    CC=$CC$ac_cv_sys_largefile_CC
12034  fi
12035
12036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12037$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12038if ${ac_cv_sys_file_offset_bits+:} false; then :
12039  $as_echo_n "(cached) " >&6
12040else
12041  while :; do
12042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043/* end confdefs.h.  */
12044#include <sys/types.h>
12045 /* Check that off_t can represent 2**63 - 1 correctly.
12046    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12047    since some C++ compilers masquerading as C compilers
12048    incorrectly reject 9223372036854775807.  */
12049#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12050  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12051		       && LARGE_OFF_T % 2147483647 == 1)
12052		      ? 1 : -1];
12053int
12054main ()
12055{
12056
12057  ;
12058  return 0;
12059}
12060_ACEOF
12061if ac_fn_c_try_compile "$LINENO"; then :
12062  ac_cv_sys_file_offset_bits=no; break
12063fi
12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066/* end confdefs.h.  */
12067#define _FILE_OFFSET_BITS 64
12068#include <sys/types.h>
12069 /* Check that off_t can represent 2**63 - 1 correctly.
12070    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12071    since some C++ compilers masquerading as C compilers
12072    incorrectly reject 9223372036854775807.  */
12073#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12074  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12075		       && LARGE_OFF_T % 2147483647 == 1)
12076		      ? 1 : -1];
12077int
12078main ()
12079{
12080
12081  ;
12082  return 0;
12083}
12084_ACEOF
12085if ac_fn_c_try_compile "$LINENO"; then :
12086  ac_cv_sys_file_offset_bits=64; break
12087fi
12088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089  ac_cv_sys_file_offset_bits=unknown
12090  break
12091done
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12094$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12095case $ac_cv_sys_file_offset_bits in #(
12096  no | unknown) ;;
12097  *)
12098cat >>confdefs.h <<_ACEOF
12099#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12100_ACEOF
12101;;
12102esac
12103rm -rf conftest*
12104  if test $ac_cv_sys_file_offset_bits = unknown; then
12105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12106$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12107if ${ac_cv_sys_large_files+:} false; then :
12108  $as_echo_n "(cached) " >&6
12109else
12110  while :; do
12111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112/* end confdefs.h.  */
12113#include <sys/types.h>
12114 /* Check that off_t can represent 2**63 - 1 correctly.
12115    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12116    since some C++ compilers masquerading as C compilers
12117    incorrectly reject 9223372036854775807.  */
12118#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12119  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12120		       && LARGE_OFF_T % 2147483647 == 1)
12121		      ? 1 : -1];
12122int
12123main ()
12124{
12125
12126  ;
12127  return 0;
12128}
12129_ACEOF
12130if ac_fn_c_try_compile "$LINENO"; then :
12131  ac_cv_sys_large_files=no; break
12132fi
12133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136#define _LARGE_FILES 1
12137#include <sys/types.h>
12138 /* Check that off_t can represent 2**63 - 1 correctly.
12139    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12140    since some C++ compilers masquerading as C compilers
12141    incorrectly reject 9223372036854775807.  */
12142#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12143  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12144		       && LARGE_OFF_T % 2147483647 == 1)
12145		      ? 1 : -1];
12146int
12147main ()
12148{
12149
12150  ;
12151  return 0;
12152}
12153_ACEOF
12154if ac_fn_c_try_compile "$LINENO"; then :
12155  ac_cv_sys_large_files=1; break
12156fi
12157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158  ac_cv_sys_large_files=unknown
12159  break
12160done
12161fi
12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12163$as_echo "$ac_cv_sys_large_files" >&6; }
12164case $ac_cv_sys_large_files in #(
12165  no | unknown) ;;
12166  *)
12167cat >>confdefs.h <<_ACEOF
12168#define _LARGE_FILES $ac_cv_sys_large_files
12169_ACEOF
12170;;
12171esac
12172rm -rf conftest*
12173  fi
12174
12175
12176fi
12177
12178: ${CONFIG_LT=./config.lt}
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
12180$as_echo "$as_me: creating $CONFIG_LT" >&6;}
12181as_write_fail=0
12182cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
12183#! $SHELL
12184# Generated by $as_me.
12185# Run this file to recreate a libtool stub with the current configuration.
12186SHELL=\${CONFIG_SHELL-$SHELL}
12187export SHELL
12188_ASEOF
12189cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
12190## -------------------- ##
12191## M4sh Initialization. ##
12192## -------------------- ##
12193
12194# Be more Bourne compatible
12195DUALCASE=1; export DUALCASE # for MKS sh
12196if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12197  emulate sh
12198  NULLCMD=:
12199  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12200  # is contrary to our usage.  Disable this feature.
12201  alias -g '${1+"$@"}'='"$@"'
12202  setopt NO_GLOB_SUBST
12203else
12204  case `(set -o) 2>/dev/null` in #(
12205  *posix*) :
12206    set -o posix ;; #(
12207  *) :
12208     ;;
12209esac
12210fi
12211
12212
12213as_nl='
12214'
12215export as_nl
12216# Printing a long string crashes Solaris 7 /usr/bin/printf.
12217as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12218as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12219as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12220# Prefer a ksh shell builtin over an external printf program on Solaris,
12221# but without wasting forks for bash or zsh.
12222if test -z "$BASH_VERSION$ZSH_VERSION" \
12223    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12224  as_echo='print -r --'
12225  as_echo_n='print -rn --'
12226elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12227  as_echo='printf %s\n'
12228  as_echo_n='printf %s'
12229else
12230  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12231    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12232    as_echo_n='/usr/ucb/echo -n'
12233  else
12234    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12235    as_echo_n_body='eval
12236      arg=$1;
12237      case $arg in #(
12238      *"$as_nl"*)
12239	expr "X$arg" : "X\\(.*\\)$as_nl";
12240	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12241      esac;
12242      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12243    '
12244    export as_echo_n_body
12245    as_echo_n='sh -c $as_echo_n_body as_echo'
12246  fi
12247  export as_echo_body
12248  as_echo='sh -c $as_echo_body as_echo'
12249fi
12250
12251# The user is always right.
12252if test "${PATH_SEPARATOR+set}" != set; then
12253  PATH_SEPARATOR=:
12254  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12255    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12256      PATH_SEPARATOR=';'
12257  }
12258fi
12259
12260
12261# IFS
12262# We need space, tab and new line, in precisely that order.  Quoting is
12263# there to prevent editors from complaining about space-tab.
12264# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12265# splitting by setting IFS to empty value.)
12266IFS=" ""	$as_nl"
12267
12268# Find who we are.  Look in the path if we contain no directory separator.
12269as_myself=
12270case $0 in #((
12271  *[\\/]* ) as_myself=$0 ;;
12272  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $PATH
12274do
12275  IFS=$as_save_IFS
12276  test -z "$as_dir" && as_dir=.
12277    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12278  done
12279IFS=$as_save_IFS
12280
12281     ;;
12282esac
12283# We did not find ourselves, most probably we were run as `sh COMMAND'
12284# in which case we are not to be found in the path.
12285if test "x$as_myself" = x; then
12286  as_myself=$0
12287fi
12288if test ! -f "$as_myself"; then
12289  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12290  exit 1
12291fi
12292
12293# Unset variables that we do not need and which cause bugs (e.g. in
12294# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12295# suppresses any "Segmentation fault" message there.  '((' could
12296# trigger a bug in pdksh 5.2.14.
12297for as_var in BASH_ENV ENV MAIL MAILPATH
12298do eval test x\${$as_var+set} = xset \
12299  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12300done
12301PS1='$ '
12302PS2='> '
12303PS4='+ '
12304
12305# NLS nuisances.
12306LC_ALL=C
12307export LC_ALL
12308LANGUAGE=C
12309export LANGUAGE
12310
12311# CDPATH.
12312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12313
12314
12315# as_fn_error STATUS ERROR [LINENO LOG_FD]
12316# ----------------------------------------
12317# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12318# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12319# script with STATUS, using 1 if that was 0.
12320as_fn_error ()
12321{
12322  as_status=$1; test $as_status -eq 0 && as_status=1
12323  if test "$4"; then
12324    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12325    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12326  fi
12327  $as_echo "$as_me: error: $2" >&2
12328  as_fn_exit $as_status
12329} # as_fn_error
12330
12331
12332# as_fn_set_status STATUS
12333# -----------------------
12334# Set $? to STATUS, without forking.
12335as_fn_set_status ()
12336{
12337  return $1
12338} # as_fn_set_status
12339
12340# as_fn_exit STATUS
12341# -----------------
12342# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12343as_fn_exit ()
12344{
12345  set +e
12346  as_fn_set_status $1
12347  exit $1
12348} # as_fn_exit
12349
12350# as_fn_unset VAR
12351# ---------------
12352# Portably unset VAR.
12353as_fn_unset ()
12354{
12355  { eval $1=; unset $1;}
12356}
12357as_unset=as_fn_unset
12358# as_fn_append VAR VALUE
12359# ----------------------
12360# Append the text in VALUE to the end of the definition contained in VAR. Take
12361# advantage of any shell optimizations that allow amortized linear growth over
12362# repeated appends, instead of the typical quadratic growth present in naive
12363# implementations.
12364if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12365  eval 'as_fn_append ()
12366  {
12367    eval $1+=\$2
12368  }'
12369else
12370  as_fn_append ()
12371  {
12372    eval $1=\$$1\$2
12373  }
12374fi # as_fn_append
12375
12376# as_fn_arith ARG...
12377# ------------------
12378# Perform arithmetic evaluation on the ARGs, and store the result in the
12379# global $as_val. Take advantage of shells that can avoid forks. The arguments
12380# must be portable across $(()) and expr.
12381if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12382  eval 'as_fn_arith ()
12383  {
12384    as_val=$(( $* ))
12385  }'
12386else
12387  as_fn_arith ()
12388  {
12389    as_val=`expr "$@" || test $? -eq 1`
12390  }
12391fi # as_fn_arith
12392
12393
12394if expr a : '\(a\)' >/dev/null 2>&1 &&
12395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12396  as_expr=expr
12397else
12398  as_expr=false
12399fi
12400
12401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12402  as_basename=basename
12403else
12404  as_basename=false
12405fi
12406
12407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12408  as_dirname=dirname
12409else
12410  as_dirname=false
12411fi
12412
12413as_me=`$as_basename -- "$0" ||
12414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12415	 X"$0" : 'X\(//\)$' \| \
12416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12417$as_echo X/"$0" |
12418    sed '/^.*\/\([^/][^/]*\)\/*$/{
12419	    s//\1/
12420	    q
12421	  }
12422	  /^X\/\(\/\/\)$/{
12423	    s//\1/
12424	    q
12425	  }
12426	  /^X\/\(\/\).*/{
12427	    s//\1/
12428	    q
12429	  }
12430	  s/.*/./; q'`
12431
12432# Avoid depending upon Character Ranges.
12433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12436as_cr_digits='0123456789'
12437as_cr_alnum=$as_cr_Letters$as_cr_digits
12438
12439ECHO_C= ECHO_N= ECHO_T=
12440case `echo -n x` in #(((((
12441-n*)
12442  case `echo 'xy\c'` in
12443  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12444  xy)  ECHO_C='\c';;
12445  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12446       ECHO_T='	';;
12447  esac;;
12448*)
12449  ECHO_N='-n';;
12450esac
12451
12452rm -f conf$$ conf$$.exe conf$$.file
12453if test -d conf$$.dir; then
12454  rm -f conf$$.dir/conf$$.file
12455else
12456  rm -f conf$$.dir
12457  mkdir conf$$.dir 2>/dev/null
12458fi
12459if (echo >conf$$.file) 2>/dev/null; then
12460  if ln -s conf$$.file conf$$ 2>/dev/null; then
12461    as_ln_s='ln -s'
12462    # ... but there are two gotchas:
12463    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12464    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12465    # In both cases, we have to default to `cp -pR'.
12466    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12467      as_ln_s='cp -pR'
12468  elif ln conf$$.file conf$$ 2>/dev/null; then
12469    as_ln_s=ln
12470  else
12471    as_ln_s='cp -pR'
12472  fi
12473else
12474  as_ln_s='cp -pR'
12475fi
12476rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12477rmdir conf$$.dir 2>/dev/null
12478
12479
12480# as_fn_mkdir_p
12481# -------------
12482# Create "$as_dir" as a directory, including parents if necessary.
12483as_fn_mkdir_p ()
12484{
12485
12486  case $as_dir in #(
12487  -*) as_dir=./$as_dir;;
12488  esac
12489  test -d "$as_dir" || eval $as_mkdir_p || {
12490    as_dirs=
12491    while :; do
12492      case $as_dir in #(
12493      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12494      *) as_qdir=$as_dir;;
12495      esac
12496      as_dirs="'$as_qdir' $as_dirs"
12497      as_dir=`$as_dirname -- "$as_dir" ||
12498$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12499	 X"$as_dir" : 'X\(//\)[^/]' \| \
12500	 X"$as_dir" : 'X\(//\)$' \| \
12501	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12502$as_echo X"$as_dir" |
12503    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12504	    s//\1/
12505	    q
12506	  }
12507	  /^X\(\/\/\)[^/].*/{
12508	    s//\1/
12509	    q
12510	  }
12511	  /^X\(\/\/\)$/{
12512	    s//\1/
12513	    q
12514	  }
12515	  /^X\(\/\).*/{
12516	    s//\1/
12517	    q
12518	  }
12519	  s/.*/./; q'`
12520      test -d "$as_dir" && break
12521    done
12522    test -z "$as_dirs" || eval "mkdir $as_dirs"
12523  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12524
12525
12526} # as_fn_mkdir_p
12527if mkdir -p . 2>/dev/null; then
12528  as_mkdir_p='mkdir -p "$as_dir"'
12529else
12530  test -d ./-p && rmdir ./-p
12531  as_mkdir_p=false
12532fi
12533
12534
12535# as_fn_executable_p FILE
12536# -----------------------
12537# Test if FILE is an executable regular file.
12538as_fn_executable_p ()
12539{
12540  test -f "$1" && test -x "$1"
12541} # as_fn_executable_p
12542as_test_x='test -x'
12543as_executable_p=as_fn_executable_p
12544
12545# Sed expression to map a string onto a valid CPP name.
12546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12547
12548# Sed expression to map a string onto a valid variable name.
12549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12550
12551
12552exec 6>&1
12553## --------------------------------- ##
12554## Main body of "$CONFIG_LT" script. ##
12555## --------------------------------- ##
12556_ASEOF
12557test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
12558
12559cat >>"$CONFIG_LT" <<\_LTEOF
12560lt_cl_silent=false
12561exec 5>>config.log
12562{
12563  echo
12564  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12565## Running $as_me. ##
12566_ASBOX
12567} >&5
12568
12569lt_cl_help="\
12570\`$as_me' creates a local libtool stub from the current configuration,
12571for use in further configure time tests before the real libtool is
12572generated.
12573
12574Usage: $0 [OPTIONS]
12575
12576  -h, --help      print this help, then exit
12577  -V, --version   print version number, then exit
12578  -q, --quiet     do not print progress messages
12579  -d, --debug     don't remove temporary files
12580
12581Report bugs to <bug-libtool@gnu.org>."
12582
12583lt_cl_version="\
12584libctf config.lt 1.2.0
12585configured by $0, generated by GNU Autoconf 2.69.
12586
12587Copyright (C) 2009 Free Software Foundation, Inc.
12588This config.lt script is free software; the Free Software Foundation
12589gives unlimited permision to copy, distribute and modify it."
12590
12591while test $# != 0
12592do
12593  case $1 in
12594    --version | --v* | -V )
12595      echo "$lt_cl_version"; exit 0 ;;
12596    --help | --h* | -h )
12597      echo "$lt_cl_help"; exit 0 ;;
12598    --debug | --d* | -d )
12599      debug=: ;;
12600    --quiet | --q* | --silent | --s* | -q )
12601      lt_cl_silent=: ;;
12602
12603    -*) as_fn_error $? "unrecognized option: $1
12604Try \`$0 --help' for more information." "$LINENO" 5 ;;
12605
12606    *) as_fn_error $? "unrecognized argument: $1
12607Try \`$0 --help' for more information." "$LINENO" 5 ;;
12608  esac
12609  shift
12610done
12611
12612if $lt_cl_silent; then
12613  exec 6>/dev/null
12614fi
12615_LTEOF
12616
12617cat >>"$CONFIG_LT" <<_LTEOF
12618
12619
12620# The HP-UX ksh and POSIX shell print the target directory to stdout
12621# if CDPATH is set.
12622(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12623
12624sed_quote_subst='$sed_quote_subst'
12625double_quote_subst='$double_quote_subst'
12626delay_variable_subst='$delay_variable_subst'
12627enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12628macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12629macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12630enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12631pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12632enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12633SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12634ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12635host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12636host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12637host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12638build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12639build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12640build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12641SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12642Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12643GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12644EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12645FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12646LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12647NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12648LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12649max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12650ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12651exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12652lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12653lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12654lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12655reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12656reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12657OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12658deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12659file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12660AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12661AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12662STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12663RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12664old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12665old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12666old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12667lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12668CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12669CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12670compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12671GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12672lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12673lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12674lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12675lt_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"`'
12676objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12677MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12678lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12679lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12680lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12681lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12682lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12683need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12684DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12685NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12686LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12687OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12688OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12689libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12690shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12691extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12692archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12693enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12694export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12695whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12696compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12697old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12698old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12699archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12700archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12701module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12702module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12703with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12704allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12705no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12706hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12707hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12708hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12709hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12710hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12711hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12712hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12713hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12714inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12715link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12716fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12717always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12718export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12719exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12720include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12721prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12722file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12723variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12724need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12725need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12726version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12727runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12728shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12729shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12730libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12731library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12732soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12733install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12734postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12735postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12736finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12737finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12738hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12739sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12740sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12741hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12742enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12743enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12744enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12745old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12746striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12747
12748LTCC='$LTCC'
12749LTCFLAGS='$LTCFLAGS'
12750compiler='$compiler_DEFAULT'
12751
12752# A function that is used when there is no print builtin or printf.
12753func_fallback_echo ()
12754{
12755  eval 'cat <<_LTECHO_EOF
12756\$1
12757_LTECHO_EOF'
12758}
12759
12760# Quote evaled strings.
12761for var in SHELL \
12762ECHO \
12763SED \
12764GREP \
12765EGREP \
12766FGREP \
12767LD \
12768NM \
12769LN_S \
12770lt_SP2NL \
12771lt_NL2SP \
12772reload_flag \
12773OBJDUMP \
12774deplibs_check_method \
12775file_magic_cmd \
12776AR \
12777AR_FLAGS \
12778STRIP \
12779RANLIB \
12780CC \
12781CFLAGS \
12782compiler \
12783lt_cv_sys_global_symbol_pipe \
12784lt_cv_sys_global_symbol_to_cdecl \
12785lt_cv_sys_global_symbol_to_c_name_address \
12786lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12787lt_prog_compiler_no_builtin_flag \
12788lt_prog_compiler_wl \
12789lt_prog_compiler_pic \
12790lt_prog_compiler_static \
12791lt_cv_prog_compiler_c_o \
12792need_locks \
12793DSYMUTIL \
12794NMEDIT \
12795LIPO \
12796OTOOL \
12797OTOOL64 \
12798shrext_cmds \
12799export_dynamic_flag_spec \
12800whole_archive_flag_spec \
12801compiler_needs_object \
12802with_gnu_ld \
12803allow_undefined_flag \
12804no_undefined_flag \
12805hardcode_libdir_flag_spec \
12806hardcode_libdir_flag_spec_ld \
12807hardcode_libdir_separator \
12808fix_srcfile_path \
12809exclude_expsyms \
12810include_expsyms \
12811file_list_spec \
12812variables_saved_for_relink \
12813libname_spec \
12814library_names_spec \
12815soname_spec \
12816install_override_mode \
12817finish_eval \
12818old_striplib \
12819striplib; do
12820    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12821    *[\\\\\\\`\\"\\\$]*)
12822      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12823      ;;
12824    *)
12825      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12826      ;;
12827    esac
12828done
12829
12830# Double-quote double-evaled strings.
12831for var in reload_cmds \
12832old_postinstall_cmds \
12833old_postuninstall_cmds \
12834old_archive_cmds \
12835extract_expsyms_cmds \
12836old_archive_from_new_cmds \
12837old_archive_from_expsyms_cmds \
12838archive_cmds \
12839archive_expsym_cmds \
12840module_cmds \
12841module_expsym_cmds \
12842export_symbols_cmds \
12843prelink_cmds \
12844postinstall_cmds \
12845postuninstall_cmds \
12846finish_cmds \
12847sys_lib_search_path_spec \
12848sys_lib_dlsearch_path_spec; do
12849    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12850    *[\\\\\\\`\\"\\\$]*)
12851      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12852      ;;
12853    *)
12854      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12855      ;;
12856    esac
12857done
12858
12859ac_aux_dir='$ac_aux_dir'
12860xsi_shell='$xsi_shell'
12861lt_shell_append='$lt_shell_append'
12862
12863# See if we are running on zsh, and set the options which allow our
12864# commands through without removal of \ escapes INIT.
12865if test -n "\${ZSH_VERSION+set}" ; then
12866   setopt NO_GLOB_SUBST
12867fi
12868
12869
12870    PACKAGE='$PACKAGE'
12871    VERSION='$VERSION'
12872    TIMESTAMP='$TIMESTAMP'
12873    RM='$RM'
12874    ofile='$ofile'
12875
12876
12877
12878_LTEOF
12879
12880cat >>"$CONFIG_LT" <<\_LTEOF
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
12882$as_echo "$as_me: creating $ofile" >&6;}
12883
12884
12885    # See if we are running on zsh, and set the options which allow our
12886    # commands through without removal of \ escapes.
12887    if test -n "${ZSH_VERSION+set}" ; then
12888      setopt NO_GLOB_SUBST
12889    fi
12890
12891    cfgfile="${ofile}T"
12892    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12893    $RM "$cfgfile"
12894
12895    cat <<_LT_EOF >> "$cfgfile"
12896#! $SHELL
12897
12898# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12899# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12900# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12901# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12902#
12903#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12904#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12905#   Written by Gordon Matzigkeit, 1996
12906#
12907#   This file is part of GNU Libtool.
12908#
12909# GNU Libtool is free software; you can redistribute it and/or
12910# modify it under the terms of the GNU General Public License as
12911# published by the Free Software Foundation; either version 2 of
12912# the License, or (at your option) any later version.
12913#
12914# As a special exception to the GNU General Public License,
12915# if you distribute this file as part of a program or library that
12916# is built using GNU Libtool, you may include this file under the
12917# same distribution terms that you use for the rest of that program.
12918#
12919# GNU Libtool is distributed in the hope that it will be useful,
12920# but WITHOUT ANY WARRANTY; without even the implied warranty of
12921# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12922# GNU General Public License for more details.
12923#
12924# You should have received a copy of the GNU General Public License
12925# along with GNU Libtool; see the file COPYING.  If not, a copy
12926# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12927# obtained by writing to the Free Software Foundation, Inc.,
12928# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12929
12930
12931# The names of the tagged configurations supported by this script.
12932available_tags=""
12933
12934# ### BEGIN LIBTOOL CONFIG
12935
12936# Whether or not to build shared libraries.
12937build_libtool_libs=$enable_shared
12938
12939# Which release of libtool.m4 was used?
12940macro_version=$macro_version
12941macro_revision=$macro_revision
12942
12943# Whether or not to build static libraries.
12944build_old_libs=$enable_static
12945
12946# What type of objects to build.
12947pic_mode=$pic_mode
12948
12949# Whether or not to optimize for fast installation.
12950fast_install=$enable_fast_install
12951
12952# Shell to use when invoking shell scripts.
12953SHELL=$lt_SHELL
12954
12955# An echo program that protects backslashes.
12956ECHO=$lt_ECHO
12957
12958# The host system.
12959host_alias=$host_alias
12960host=$host
12961host_os=$host_os
12962
12963# The build system.
12964build_alias=$build_alias
12965build=$build
12966build_os=$build_os
12967
12968# A sed program that does not truncate output.
12969SED=$lt_SED
12970
12971# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12972Xsed="\$SED -e 1s/^X//"
12973
12974# A grep program that handles long lines.
12975GREP=$lt_GREP
12976
12977# An ERE matcher.
12978EGREP=$lt_EGREP
12979
12980# A literal string matcher.
12981FGREP=$lt_FGREP
12982
12983# A BSD- or MS-compatible name lister.
12984NM=$lt_NM
12985
12986# Whether we need soft or hard links.
12987LN_S=$lt_LN_S
12988
12989# What is the maximum length of a command?
12990max_cmd_len=$max_cmd_len
12991
12992# Object file suffix (normally "o").
12993objext=$ac_objext
12994
12995# Executable file suffix (normally "").
12996exeext=$exeext
12997
12998# whether the shell understands "unset".
12999lt_unset=$lt_unset
13000
13001# turn spaces into newlines.
13002SP2NL=$lt_lt_SP2NL
13003
13004# turn newlines into spaces.
13005NL2SP=$lt_lt_NL2SP
13006
13007# An object symbol dumper.
13008OBJDUMP=$lt_OBJDUMP
13009
13010# Method to check whether dependent libraries are shared objects.
13011deplibs_check_method=$lt_deplibs_check_method
13012
13013# Command to use when deplibs_check_method == "file_magic".
13014file_magic_cmd=$lt_file_magic_cmd
13015
13016# The archiver.
13017AR=$lt_AR
13018AR_FLAGS=$lt_AR_FLAGS
13019
13020# A symbol stripping program.
13021STRIP=$lt_STRIP
13022
13023# Commands used to install an old-style archive.
13024RANLIB=$lt_RANLIB
13025old_postinstall_cmds=$lt_old_postinstall_cmds
13026old_postuninstall_cmds=$lt_old_postuninstall_cmds
13027
13028# Whether to use a lock for old archive extraction.
13029lock_old_archive_extraction=$lock_old_archive_extraction
13030
13031# A C compiler.
13032LTCC=$lt_CC
13033
13034# LTCC compiler flags.
13035LTCFLAGS=$lt_CFLAGS
13036
13037# Take the output of nm and produce a listing of raw symbols and C names.
13038global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13039
13040# Transform the output of nm in a proper C declaration.
13041global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13042
13043# Transform the output of nm in a C name address pair.
13044global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13045
13046# Transform the output of nm in a C name address pair when lib prefix is needed.
13047global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13048
13049# The name of the directory that contains temporary libtool files.
13050objdir=$objdir
13051
13052# Used to examine libraries when file_magic_cmd begins with "file".
13053MAGIC_CMD=$MAGIC_CMD
13054
13055# Must we lock files when doing compilation?
13056need_locks=$lt_need_locks
13057
13058# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13059DSYMUTIL=$lt_DSYMUTIL
13060
13061# Tool to change global to local symbols on Mac OS X.
13062NMEDIT=$lt_NMEDIT
13063
13064# Tool to manipulate fat objects and archives on Mac OS X.
13065LIPO=$lt_LIPO
13066
13067# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13068OTOOL=$lt_OTOOL
13069
13070# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13071OTOOL64=$lt_OTOOL64
13072
13073# Old archive suffix (normally "a").
13074libext=$libext
13075
13076# Shared library suffix (normally ".so").
13077shrext_cmds=$lt_shrext_cmds
13078
13079# The commands to extract the exported symbol list from a shared archive.
13080extract_expsyms_cmds=$lt_extract_expsyms_cmds
13081
13082# Variables whose values should be saved in libtool wrapper scripts and
13083# restored at link time.
13084variables_saved_for_relink=$lt_variables_saved_for_relink
13085
13086# Do we need the "lib" prefix for modules?
13087need_lib_prefix=$need_lib_prefix
13088
13089# Do we need a version for libraries?
13090need_version=$need_version
13091
13092# Library versioning type.
13093version_type=$version_type
13094
13095# Shared library runtime path variable.
13096runpath_var=$runpath_var
13097
13098# Shared library path variable.
13099shlibpath_var=$shlibpath_var
13100
13101# Is shlibpath searched before the hard-coded library search path?
13102shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13103
13104# Format of library name prefix.
13105libname_spec=$lt_libname_spec
13106
13107# List of archive names.  First name is the real one, the rest are links.
13108# The last name is the one that the linker finds with -lNAME
13109library_names_spec=$lt_library_names_spec
13110
13111# The coded name of the library, if different from the real name.
13112soname_spec=$lt_soname_spec
13113
13114# Permission mode override for installation of shared libraries.
13115install_override_mode=$lt_install_override_mode
13116
13117# Command to use after installation of a shared archive.
13118postinstall_cmds=$lt_postinstall_cmds
13119
13120# Command to use after uninstallation of a shared archive.
13121postuninstall_cmds=$lt_postuninstall_cmds
13122
13123# Commands used to finish a libtool library installation in a directory.
13124finish_cmds=$lt_finish_cmds
13125
13126# As "finish_cmds", except a single script fragment to be evaled but
13127# not shown.
13128finish_eval=$lt_finish_eval
13129
13130# Whether we should hardcode library paths into libraries.
13131hardcode_into_libs=$hardcode_into_libs
13132
13133# Compile-time system search path for libraries.
13134sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13135
13136# Run-time system search path for libraries.
13137sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13138
13139# Whether dlopen is supported.
13140dlopen_support=$enable_dlopen
13141
13142# Whether dlopen of programs is supported.
13143dlopen_self=$enable_dlopen_self
13144
13145# Whether dlopen of statically linked programs is supported.
13146dlopen_self_static=$enable_dlopen_self_static
13147
13148# Commands to strip libraries.
13149old_striplib=$lt_old_striplib
13150striplib=$lt_striplib
13151
13152
13153# The linker used to build libraries.
13154LD=$lt_LD
13155
13156# How to create reloadable object files.
13157reload_flag=$lt_reload_flag
13158reload_cmds=$lt_reload_cmds
13159
13160# Commands used to build an old-style archive.
13161old_archive_cmds=$lt_old_archive_cmds
13162
13163# A language specific compiler.
13164CC=$lt_compiler
13165
13166# Is the compiler the GNU compiler?
13167with_gcc=$GCC
13168
13169# Compiler flag to turn off builtin functions.
13170no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13171
13172# How to pass a linker flag through the compiler.
13173wl=$lt_lt_prog_compiler_wl
13174
13175# Additional compiler flags for building library objects.
13176pic_flag=$lt_lt_prog_compiler_pic
13177
13178# Compiler flag to prevent dynamic linking.
13179link_static_flag=$lt_lt_prog_compiler_static
13180
13181# Does compiler simultaneously support -c and -o options?
13182compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13183
13184# Whether or not to add -lc for building shared libraries.
13185build_libtool_need_lc=$archive_cmds_need_lc
13186
13187# Whether or not to disallow shared libs when runtime libs are static.
13188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13189
13190# Compiler flag to allow reflexive dlopens.
13191export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13192
13193# Compiler flag to generate shared objects directly from archives.
13194whole_archive_flag_spec=$lt_whole_archive_flag_spec
13195
13196# Whether the compiler copes with passing no objects directly.
13197compiler_needs_object=$lt_compiler_needs_object
13198
13199# Create an old-style archive from a shared archive.
13200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13201
13202# Create a temporary old-style archive to link instead of a shared archive.
13203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13204
13205# Commands used to build a shared archive.
13206archive_cmds=$lt_archive_cmds
13207archive_expsym_cmds=$lt_archive_expsym_cmds
13208
13209# Commands used to build a loadable module if different from building
13210# a shared archive.
13211module_cmds=$lt_module_cmds
13212module_expsym_cmds=$lt_module_expsym_cmds
13213
13214# Whether we are building with GNU ld or not.
13215with_gnu_ld=$lt_with_gnu_ld
13216
13217# Flag that allows shared libraries with undefined symbols to be built.
13218allow_undefined_flag=$lt_allow_undefined_flag
13219
13220# Flag that enforces no undefined symbols.
13221no_undefined_flag=$lt_no_undefined_flag
13222
13223# Flag to hardcode \$libdir into a binary during linking.
13224# This must work even if \$libdir does not exist
13225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13226
13227# If ld is used when linking, flag to hardcode \$libdir into a binary
13228# during linking.  This must work even if \$libdir does not exist.
13229hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13230
13231# Whether we need a single "-rpath" flag with a separated argument.
13232hardcode_libdir_separator=$lt_hardcode_libdir_separator
13233
13234# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13235# DIR into the resulting binary.
13236hardcode_direct=$hardcode_direct
13237
13238# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13239# DIR into the resulting binary and the resulting library dependency is
13240# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13241# library is relocated.
13242hardcode_direct_absolute=$hardcode_direct_absolute
13243
13244# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13245# into the resulting binary.
13246hardcode_minus_L=$hardcode_minus_L
13247
13248# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13249# into the resulting binary.
13250hardcode_shlibpath_var=$hardcode_shlibpath_var
13251
13252# Set to "yes" if building a shared library automatically hardcodes DIR
13253# into the library and all subsequent libraries and executables linked
13254# against it.
13255hardcode_automatic=$hardcode_automatic
13256
13257# Set to yes if linker adds runtime paths of dependent libraries
13258# to runtime path list.
13259inherit_rpath=$inherit_rpath
13260
13261# Whether libtool must link a program against all its dependency libraries.
13262link_all_deplibs=$link_all_deplibs
13263
13264# Fix the shell variable \$srcfile for the compiler.
13265fix_srcfile_path=$lt_fix_srcfile_path
13266
13267# Set to "yes" if exported symbols are required.
13268always_export_symbols=$always_export_symbols
13269
13270# The commands to list exported symbols.
13271export_symbols_cmds=$lt_export_symbols_cmds
13272
13273# Symbols that should not be listed in the preloaded symbols.
13274exclude_expsyms=$lt_exclude_expsyms
13275
13276# Symbols that must always be exported.
13277include_expsyms=$lt_include_expsyms
13278
13279# Commands necessary for linking programs (against libraries) with templates.
13280prelink_cmds=$lt_prelink_cmds
13281
13282# Specify filename containing input files.
13283file_list_spec=$lt_file_list_spec
13284
13285# How to hardcode a shared library path into an executable.
13286hardcode_action=$hardcode_action
13287
13288# ### END LIBTOOL CONFIG
13289
13290_LT_EOF
13291
13292  case $host_os in
13293  aix3*)
13294    cat <<\_LT_EOF >> "$cfgfile"
13295# AIX sometimes has problems with the GCC collect2 program.  For some
13296# reason, if we set the COLLECT_NAMES environment variable, the problems
13297# vanish in a puff of smoke.
13298if test "X${COLLECT_NAMES+set}" != Xset; then
13299  COLLECT_NAMES=
13300  export COLLECT_NAMES
13301fi
13302_LT_EOF
13303    ;;
13304  esac
13305
13306
13307ltmain="$ac_aux_dir/ltmain.sh"
13308
13309
13310  # We use sed instead of cat because bash on DJGPP gets confused if
13311  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13312  # text mode, it properly converts lines to CR/LF.  This bash problem
13313  # is reportedly fixed, but why not run on old versions too?
13314  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13315    || (rm -f "$cfgfile"; exit 1)
13316
13317  case $xsi_shell in
13318  yes)
13319    cat << \_LT_EOF >> "$cfgfile"
13320
13321# func_dirname file append nondir_replacement
13322# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13323# otherwise set result to NONDIR_REPLACEMENT.
13324func_dirname ()
13325{
13326  case ${1} in
13327    */*) func_dirname_result="${1%/*}${2}" ;;
13328    *  ) func_dirname_result="${3}" ;;
13329  esac
13330}
13331
13332# func_basename file
13333func_basename ()
13334{
13335  func_basename_result="${1##*/}"
13336}
13337
13338# func_dirname_and_basename file append nondir_replacement
13339# perform func_basename and func_dirname in a single function
13340# call:
13341#   dirname:  Compute the dirname of FILE.  If nonempty,
13342#             add APPEND to the result, otherwise set result
13343#             to NONDIR_REPLACEMENT.
13344#             value returned in "$func_dirname_result"
13345#   basename: Compute filename of FILE.
13346#             value retuned in "$func_basename_result"
13347# Implementation must be kept synchronized with func_dirname
13348# and func_basename. For efficiency, we do not delegate to
13349# those functions but instead duplicate the functionality here.
13350func_dirname_and_basename ()
13351{
13352  case ${1} in
13353    */*) func_dirname_result="${1%/*}${2}" ;;
13354    *  ) func_dirname_result="${3}" ;;
13355  esac
13356  func_basename_result="${1##*/}"
13357}
13358
13359# func_stripname prefix suffix name
13360# strip PREFIX and SUFFIX off of NAME.
13361# PREFIX and SUFFIX must not contain globbing or regex special
13362# characters, hashes, percent signs, but SUFFIX may contain a leading
13363# dot (in which case that matches only a dot).
13364func_stripname ()
13365{
13366  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13367  # positional parameters, so assign one to ordinary parameter first.
13368  func_stripname_result=${3}
13369  func_stripname_result=${func_stripname_result#"${1}"}
13370  func_stripname_result=${func_stripname_result%"${2}"}
13371}
13372
13373# func_opt_split
13374func_opt_split ()
13375{
13376  func_opt_split_opt=${1%%=*}
13377  func_opt_split_arg=${1#*=}
13378}
13379
13380# func_lo2o object
13381func_lo2o ()
13382{
13383  case ${1} in
13384    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13385    *)    func_lo2o_result=${1} ;;
13386  esac
13387}
13388
13389# func_xform libobj-or-source
13390func_xform ()
13391{
13392  func_xform_result=${1%.*}.lo
13393}
13394
13395# func_arith arithmetic-term...
13396func_arith ()
13397{
13398  func_arith_result=$(( $* ))
13399}
13400
13401# func_len string
13402# STRING may not start with a hyphen.
13403func_len ()
13404{
13405  func_len_result=${#1}
13406}
13407
13408_LT_EOF
13409    ;;
13410  *) # Bourne compatible functions.
13411    cat << \_LT_EOF >> "$cfgfile"
13412
13413# func_dirname file append nondir_replacement
13414# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13415# otherwise set result to NONDIR_REPLACEMENT.
13416func_dirname ()
13417{
13418  # Extract subdirectory from the argument.
13419  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13420  if test "X$func_dirname_result" = "X${1}"; then
13421    func_dirname_result="${3}"
13422  else
13423    func_dirname_result="$func_dirname_result${2}"
13424  fi
13425}
13426
13427# func_basename file
13428func_basename ()
13429{
13430  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13431}
13432
13433
13434# func_stripname prefix suffix name
13435# strip PREFIX and SUFFIX off of NAME.
13436# PREFIX and SUFFIX must not contain globbing or regex special
13437# characters, hashes, percent signs, but SUFFIX may contain a leading
13438# dot (in which case that matches only a dot).
13439# func_strip_suffix prefix name
13440func_stripname ()
13441{
13442  case ${2} in
13443    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13444    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13445  esac
13446}
13447
13448# sed scripts:
13449my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13450my_sed_long_arg='1s/^-[^=]*=//'
13451
13452# func_opt_split
13453func_opt_split ()
13454{
13455  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13456  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13457}
13458
13459# func_lo2o object
13460func_lo2o ()
13461{
13462  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13463}
13464
13465# func_xform libobj-or-source
13466func_xform ()
13467{
13468  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13469}
13470
13471# func_arith arithmetic-term...
13472func_arith ()
13473{
13474  func_arith_result=`expr "$@"`
13475}
13476
13477# func_len string
13478# STRING may not start with a hyphen.
13479func_len ()
13480{
13481  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13482}
13483
13484_LT_EOF
13485esac
13486
13487case $lt_shell_append in
13488  yes)
13489    cat << \_LT_EOF >> "$cfgfile"
13490
13491# func_append var value
13492# Append VALUE to the end of shell variable VAR.
13493func_append ()
13494{
13495  eval "$1+=\$2"
13496}
13497_LT_EOF
13498    ;;
13499  *)
13500    cat << \_LT_EOF >> "$cfgfile"
13501
13502# func_append var value
13503# Append VALUE to the end of shell variable VAR.
13504func_append ()
13505{
13506  eval "$1=\$$1\$2"
13507}
13508
13509_LT_EOF
13510    ;;
13511  esac
13512
13513
13514  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13515    || (rm -f "$cfgfile"; exit 1)
13516
13517  mv -f "$cfgfile" "$ofile" ||
13518    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13519  chmod +x "$ofile"
13520
13521
13522as_fn_exit 0
13523_LTEOF
13524chmod +x "$CONFIG_LT"
13525
13526# configure is writing to config.log, but config.lt does its own redirection,
13527# appending to config.log, which fails on DOS, as config.log is still kept
13528# open by configure.  Here we exec the FD to /dev/null, effectively closing
13529# config.log, so it can be properly (re)opened and appended to by config.lt.
13530lt_cl_success=:
13531test "$silent" = yes &&
13532  lt_config_lt_args="$lt_config_lt_args --quiet"
13533exec 5>/dev/null
13534$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
13535exec 5>>config.log
13536$lt_cl_success || as_fn_exit 1
13537
13538
13539MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
13540for ac_prog in aclocal
13541do
13542  # Extract the first word of "$ac_prog", so it can be a program name with args.
13543set dummy $ac_prog; ac_word=$2
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545$as_echo_n "checking for $ac_word... " >&6; }
13546if ${ac_cv_prog_ACLOCAL+:} false; then :
13547  $as_echo_n "(cached) " >&6
13548else
13549  if test -n "$ACLOCAL"; then
13550  ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
13551else
13552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553for as_dir in $PATH
13554do
13555  IFS=$as_save_IFS
13556  test -z "$as_dir" && as_dir=.
13557    for ac_exec_ext in '' $ac_executable_extensions; do
13558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13559    ac_cv_prog_ACLOCAL="$ac_prog"
13560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13561    break 2
13562  fi
13563done
13564  done
13565IFS=$as_save_IFS
13566
13567fi
13568fi
13569ACLOCAL=$ac_cv_prog_ACLOCAL
13570if test -n "$ACLOCAL"; then
13571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
13572$as_echo "$ACLOCAL" >&6; }
13573else
13574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575$as_echo "no" >&6; }
13576fi
13577
13578
13579  test -n "$ACLOCAL" && break
13580done
13581test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
13582
13583for ac_prog in autoconf
13584do
13585  # Extract the first word of "$ac_prog", so it can be a program name with args.
13586set dummy $ac_prog; ac_word=$2
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588$as_echo_n "checking for $ac_word... " >&6; }
13589if ${ac_cv_prog_AUTOCONF+:} false; then :
13590  $as_echo_n "(cached) " >&6
13591else
13592  if test -n "$AUTOCONF"; then
13593  ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
13594else
13595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596for as_dir in $PATH
13597do
13598  IFS=$as_save_IFS
13599  test -z "$as_dir" && as_dir=.
13600    for ac_exec_ext in '' $ac_executable_extensions; do
13601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602    ac_cv_prog_AUTOCONF="$ac_prog"
13603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604    break 2
13605  fi
13606done
13607  done
13608IFS=$as_save_IFS
13609
13610fi
13611fi
13612AUTOCONF=$ac_cv_prog_AUTOCONF
13613if test -n "$AUTOCONF"; then
13614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
13615$as_echo "$AUTOCONF" >&6; }
13616else
13617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618$as_echo "no" >&6; }
13619fi
13620
13621
13622  test -n "$AUTOCONF" && break
13623done
13624test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
13625
13626for ac_prog in autoheader
13627do
13628  # Extract the first word of "$ac_prog", so it can be a program name with args.
13629set dummy $ac_prog; ac_word=$2
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13631$as_echo_n "checking for $ac_word... " >&6; }
13632if ${ac_cv_prog_AUTOHEADER+:} false; then :
13633  $as_echo_n "(cached) " >&6
13634else
13635  if test -n "$AUTOHEADER"; then
13636  ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
13637else
13638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639for as_dir in $PATH
13640do
13641  IFS=$as_save_IFS
13642  test -z "$as_dir" && as_dir=.
13643    for ac_exec_ext in '' $ac_executable_extensions; do
13644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13645    ac_cv_prog_AUTOHEADER="$ac_prog"
13646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647    break 2
13648  fi
13649done
13650  done
13651IFS=$as_save_IFS
13652
13653fi
13654fi
13655AUTOHEADER=$ac_cv_prog_AUTOHEADER
13656if test -n "$AUTOHEADER"; then
13657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
13658$as_echo "$AUTOHEADER" >&6; }
13659else
13660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661$as_echo "no" >&6; }
13662fi
13663
13664
13665  test -n "$AUTOHEADER" && break
13666done
13667test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
13668
13669
13670# Figure out what compiler warnings we can enable.
13671# See config/warnings.m4 for details.
13672
13673ac_ext=c
13674ac_cpp='$CPP $CPPFLAGS'
13675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678
13679warn=
13680save_CFLAGS="$CFLAGS"
13681for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
13682			  -Wmissing-format-attribute; do
13683  # Do the check with the no- prefix removed since gcc silently
13684  # accepts any -Wno-* option on purpose
13685  case $real_option in
13686    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13687    *) option=$real_option ;;
13688  esac
13689  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13690
13691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13692$as_echo_n "checking whether $CC supports $option... " >&6; }
13693if eval \${$as_acx_Woption+:} false; then :
13694  $as_echo_n "(cached) " >&6
13695else
13696  CFLAGS="$option"
13697    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698/* end confdefs.h.  */
13699
13700int
13701main ()
13702{
13703
13704  ;
13705  return 0;
13706}
13707_ACEOF
13708if ac_fn_c_try_compile "$LINENO"; then :
13709  eval "$as_acx_Woption=yes"
13710else
13711  eval "$as_acx_Woption=no"
13712fi
13713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714
13715fi
13716eval ac_res=\$$as_acx_Woption
13717	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13718$as_echo "$ac_res" >&6; }
13719  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13720  warn="$warn${warn:+ }$real_option"
13721fi
13722  done
13723CFLAGS="$save_CFLAGS"
13724ac_ext=c
13725ac_cpp='$CPP $CPPFLAGS'
13726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13728ac_compiler_gnu=$ac_cv_c_compiler_gnu
13729
13730
13731ac_ext=c
13732ac_cpp='$CPP $CPPFLAGS'
13733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13735ac_compiler_gnu=$ac_cv_c_compiler_gnu
13736
13737c_warn=
13738save_CFLAGS="$CFLAGS"
13739for real_option in -Wstrict-prototypes -Wmissing-prototypes \
13740			  -Wold-style-definition; do
13741  # Do the check with the no- prefix removed since gcc silently
13742  # accepts any -Wno-* option on purpose
13743  case $real_option in
13744    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13745    *) option=$real_option ;;
13746  esac
13747  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13748
13749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13750$as_echo_n "checking whether $CC supports $option... " >&6; }
13751if eval \${$as_acx_Woption+:} false; then :
13752  $as_echo_n "(cached) " >&6
13753else
13754  CFLAGS="$option"
13755    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756/* end confdefs.h.  */
13757
13758int
13759main ()
13760{
13761
13762  ;
13763  return 0;
13764}
13765_ACEOF
13766if ac_fn_c_try_compile "$LINENO"; then :
13767  eval "$as_acx_Woption=yes"
13768else
13769  eval "$as_acx_Woption=no"
13770fi
13771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772
13773fi
13774eval ac_res=\$$as_acx_Woption
13775	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13776$as_echo "$ac_res" >&6; }
13777  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13778  c_warn="$c_warn${c_warn:+ }$real_option"
13779fi
13780  done
13781CFLAGS="$save_CFLAGS"
13782ac_ext=c
13783ac_cpp='$CPP $CPPFLAGS'
13784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13786ac_compiler_gnu=$ac_cv_c_compiler_gnu
13787
13788
13789ac_ext=c
13790ac_cpp='$CPP $CPPFLAGS'
13791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13793ac_compiler_gnu=$ac_cv_c_compiler_gnu
13794
13795WARN_PEDANTIC=
13796# Do the check with the no- prefix removed from the warning options
13797# since gcc silently accepts any -Wno-* option on purpose
13798if test "$GCC" = yes; then :
13799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
13800$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
13801if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
13802  $as_echo_n "(cached) " >&6
13803else
13804  save_CFLAGS="$CFLAGS"
13805CFLAGS="-pedantic -Wlong-long"
13806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807/* end confdefs.h.  */
13808
13809int
13810main ()
13811{
13812
13813  ;
13814  return 0;
13815}
13816_ACEOF
13817if ac_fn_c_try_compile "$LINENO"; then :
13818  acx_cv_prog_cc_pedantic__Wlong_long=yes
13819else
13820  acx_cv_prog_cc_pedantic__Wlong_long=no
13821fi
13822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823CFLAGS="$save_CFLAGS"
13824fi
13825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
13826$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
13827if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
13828  WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
13829fi
13830
13831fi
13832ac_ext=c
13833ac_cpp='$CPP $CPPFLAGS'
13834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13836ac_compiler_gnu=$ac_cv_c_compiler_gnu
13837
13838
13839
13840# Only enable with --enable-werror-always until existing warnings are
13841# corrected.
13842ac_ext=c
13843ac_cpp='$CPP $CPPFLAGS'
13844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846ac_compiler_gnu=$ac_cv_c_compiler_gnu
13847
13848WERROR=
13849# Check whether --enable-werror-always was given.
13850if test "${enable_werror_always+set}" = set; then :
13851  enableval=$enable_werror_always;
13852else
13853  enable_werror_always=no
13854fi
13855
13856if test $enable_werror_always = yes; then :
13857  WERROR="$WERROR${WERROR:+ }-Werror"
13858fi
13859
13860ac_ext=c
13861ac_cpp='$CPP $CPPFLAGS'
13862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13864ac_compiler_gnu=$ac_cv_c_compiler_gnu
13865
13866
13867
13868
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13870$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13871    # Check whether --enable-maintainer-mode was given.
13872if test "${enable_maintainer_mode+set}" = set; then :
13873  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13874else
13875  USE_MAINTAINER_MODE=no
13876fi
13877
13878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13879$as_echo "$USE_MAINTAINER_MODE" >&6; }
13880   if test $USE_MAINTAINER_MODE = yes; then
13881  MAINTAINER_MODE_TRUE=
13882  MAINTAINER_MODE_FALSE='#'
13883else
13884  MAINTAINER_MODE_TRUE='#'
13885  MAINTAINER_MODE_FALSE=
13886fi
13887
13888  MAINT=$MAINTAINER_MODE_TRUE
13889
13890
13891 case ${build_alias} in
13892  "") build_noncanonical=${build} ;;
13893  *) build_noncanonical=${build_alias} ;;
13894esac
13895
13896 case ${host_alias} in
13897  "") host_noncanonical=${build_noncanonical} ;;
13898  *) host_noncanonical=${host_alias} ;;
13899esac
13900
13901 case ${target_alias} in
13902  "") target_noncanonical=${host_noncanonical} ;;
13903  *) target_noncanonical=${target_alias} ;;
13904esac
13905
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
13907$as_echo_n "checking whether to install libbfd... " >&6; }
13908  # Check whether --enable-install-libbfd was given.
13909if test "${enable_install_libbfd+set}" = set; then :
13910  enableval=$enable_install_libbfd; install_libbfd_p=$enableval
13911else
13912  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
13913        install_libbfd_p=yes
13914      else
13915        install_libbfd_p=no
13916      fi
13917fi
13918
13919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
13920$as_echo "$install_libbfd_p" >&6; }
13921   if test $install_libbfd_p = yes; then
13922  INSTALL_LIBBFD_TRUE=
13923  INSTALL_LIBBFD_FALSE='#'
13924else
13925  INSTALL_LIBBFD_TRUE='#'
13926  INSTALL_LIBBFD_FALSE=
13927fi
13928
13929  # Need _noncanonical variables for this.
13930
13931
13932
13933
13934  # libbfd.a is a host library containing target dependent code
13935  bfdlibdir='$(libdir)'
13936  bfdincludedir='$(includedir)'
13937  if test "${host}" != "${target}"; then
13938    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
13939    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
13940  fi
13941
13942
13943
13944
13945
13946
13947ac_ext=c
13948ac_cpp='$CPP $CPPFLAGS'
13949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13951ac_compiler_gnu=$ac_cv_c_compiler_gnu
13952
13953ac_libctf_warn_cflags=
13954save_CFLAGS="$CFLAGS"
13955for real_option in -Wall; do
13956  # Do the check with the no- prefix removed since gcc silently
13957  # accepts any -Wno-* option on purpose
13958  case $real_option in
13959    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13960    *) option=$real_option ;;
13961  esac
13962  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13963
13964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13965$as_echo_n "checking whether $CC supports $option... " >&6; }
13966if eval \${$as_acx_Woption+:} false; then :
13967  $as_echo_n "(cached) " >&6
13968else
13969  CFLAGS="$option"
13970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971/* end confdefs.h.  */
13972
13973int
13974main ()
13975{
13976
13977  ;
13978  return 0;
13979}
13980_ACEOF
13981if ac_fn_c_try_compile "$LINENO"; then :
13982  eval "$as_acx_Woption=yes"
13983else
13984  eval "$as_acx_Woption=no"
13985fi
13986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987
13988fi
13989eval ac_res=\$$as_acx_Woption
13990	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13991$as_echo "$ac_res" >&6; }
13992  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13993  ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
13994fi
13995  done
13996CFLAGS="$save_CFLAGS"
13997ac_ext=c
13998ac_cpp='$CPP $CPPFLAGS'
13999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14001ac_compiler_gnu=$ac_cv_c_compiler_gnu
14002
14003
14004
14005
14006
14007
14008  for ac_header in $ac_header_list
14009do :
14010  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14011ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14012"
14013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14014  cat >>confdefs.h <<_ACEOF
14015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14016_ACEOF
14017
14018fi
14019
14020done
14021
14022
14023
14024
14025
14026
14027
14028
14029for ac_func in getpagesize
14030do :
14031  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14032if test "x$ac_cv_func_getpagesize" = xyes; then :
14033  cat >>confdefs.h <<_ACEOF
14034#define HAVE_GETPAGESIZE 1
14035_ACEOF
14036
14037fi
14038done
14039
14040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14041$as_echo_n "checking for working mmap... " >&6; }
14042if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14043  $as_echo_n "(cached) " >&6
14044else
14045  if test "$cross_compiling" = yes; then :
14046  ac_cv_func_mmap_fixed_mapped=no
14047else
14048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049/* end confdefs.h.  */
14050$ac_includes_default
14051/* malloc might have been renamed as rpl_malloc. */
14052#undef malloc
14053
14054/* Thanks to Mike Haertel and Jim Avera for this test.
14055   Here is a matrix of mmap possibilities:
14056	mmap private not fixed
14057	mmap private fixed at somewhere currently unmapped
14058	mmap private fixed at somewhere already mapped
14059	mmap shared not fixed
14060	mmap shared fixed at somewhere currently unmapped
14061	mmap shared fixed at somewhere already mapped
14062   For private mappings, we should verify that changes cannot be read()
14063   back from the file, nor mmap's back from the file at a different
14064   address.  (There have been systems where private was not correctly
14065   implemented like the infamous i386 svr4.0, and systems where the
14066   VM page cache was not coherent with the file system buffer cache
14067   like early versions of FreeBSD and possibly contemporary NetBSD.)
14068   For shared mappings, we should conversely verify that changes get
14069   propagated back to all the places they're supposed to be.
14070
14071   Grep wants private fixed already mapped.
14072   The main things grep needs to know about mmap are:
14073   * does it exist and is it safe to write into the mmap'd area
14074   * how to use it (BSD variants)  */
14075
14076#include <fcntl.h>
14077#include <sys/mman.h>
14078
14079#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14080char *malloc ();
14081#endif
14082
14083/* This mess was copied from the GNU getpagesize.h.  */
14084#ifndef HAVE_GETPAGESIZE
14085# ifdef _SC_PAGESIZE
14086#  define getpagesize() sysconf(_SC_PAGESIZE)
14087# else /* no _SC_PAGESIZE */
14088#  ifdef HAVE_SYS_PARAM_H
14089#   include <sys/param.h>
14090#   ifdef EXEC_PAGESIZE
14091#    define getpagesize() EXEC_PAGESIZE
14092#   else /* no EXEC_PAGESIZE */
14093#    ifdef NBPG
14094#     define getpagesize() NBPG * CLSIZE
14095#     ifndef CLSIZE
14096#      define CLSIZE 1
14097#     endif /* no CLSIZE */
14098#    else /* no NBPG */
14099#     ifdef NBPC
14100#      define getpagesize() NBPC
14101#     else /* no NBPC */
14102#      ifdef PAGESIZE
14103#       define getpagesize() PAGESIZE
14104#      endif /* PAGESIZE */
14105#     endif /* no NBPC */
14106#    endif /* no NBPG */
14107#   endif /* no EXEC_PAGESIZE */
14108#  else /* no HAVE_SYS_PARAM_H */
14109#   define getpagesize() 8192	/* punt totally */
14110#  endif /* no HAVE_SYS_PARAM_H */
14111# endif /* no _SC_PAGESIZE */
14112
14113#endif /* no HAVE_GETPAGESIZE */
14114
14115int
14116main ()
14117{
14118  char *data, *data2, *data3;
14119  const char *cdata2;
14120  int i, pagesize;
14121  int fd, fd2;
14122
14123  pagesize = getpagesize ();
14124
14125  /* First, make a file with some known garbage in it. */
14126  data = (char *) malloc (pagesize);
14127  if (!data)
14128    return 1;
14129  for (i = 0; i < pagesize; ++i)
14130    *(data + i) = rand ();
14131  umask (0);
14132  fd = creat ("conftest.mmap", 0600);
14133  if (fd < 0)
14134    return 2;
14135  if (write (fd, data, pagesize) != pagesize)
14136    return 3;
14137  close (fd);
14138
14139  /* Next, check that the tail of a page is zero-filled.  File must have
14140     non-zero length, otherwise we risk SIGBUS for entire page.  */
14141  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14142  if (fd2 < 0)
14143    return 4;
14144  cdata2 = "";
14145  if (write (fd2, cdata2, 1) != 1)
14146    return 5;
14147  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14148  if (data2 == MAP_FAILED)
14149    return 6;
14150  for (i = 0; i < pagesize; ++i)
14151    if (*(data2 + i))
14152      return 7;
14153  close (fd2);
14154  if (munmap (data2, pagesize))
14155    return 8;
14156
14157  /* Next, try to mmap the file at a fixed address which already has
14158     something else allocated at it.  If we can, also make sure that
14159     we see the same garbage.  */
14160  fd = open ("conftest.mmap", O_RDWR);
14161  if (fd < 0)
14162    return 9;
14163  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14164		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14165    return 10;
14166  for (i = 0; i < pagesize; ++i)
14167    if (*(data + i) != *(data2 + i))
14168      return 11;
14169
14170  /* Finally, make sure that changes to the mapped area do not
14171     percolate back to the file as seen by read().  (This is a bug on
14172     some variants of i386 svr4.0.)  */
14173  for (i = 0; i < pagesize; ++i)
14174    *(data2 + i) = *(data2 + i) + 1;
14175  data3 = (char *) malloc (pagesize);
14176  if (!data3)
14177    return 12;
14178  if (read (fd, data3, pagesize) != pagesize)
14179    return 13;
14180  for (i = 0; i < pagesize; ++i)
14181    if (*(data + i) != *(data3 + i))
14182      return 14;
14183  close (fd);
14184  return 0;
14185}
14186_ACEOF
14187if ac_fn_c_try_run "$LINENO"; then :
14188  ac_cv_func_mmap_fixed_mapped=yes
14189else
14190  ac_cv_func_mmap_fixed_mapped=no
14191fi
14192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14193  conftest.$ac_objext conftest.beam conftest.$ac_ext
14194fi
14195
14196fi
14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14198$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14199if test $ac_cv_func_mmap_fixed_mapped = yes; then
14200
14201$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14202
14203fi
14204rm -f conftest.mmap conftest.txt
14205
14206# Needed for BFD capability checks.
14207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
14208$as_echo_n "checking for library containing dlsym... " >&6; }
14209if ${ac_cv_search_dlsym+:} false; then :
14210  $as_echo_n "(cached) " >&6
14211else
14212  ac_func_search_save_LIBS=$LIBS
14213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214/* end confdefs.h.  */
14215
14216/* Override any GCC internal prototype to avoid an error.
14217   Use char because int might match the return type of a GCC
14218   builtin and then its argument prototype would still apply.  */
14219#ifdef __cplusplus
14220extern "C"
14221#endif
14222char dlsym ();
14223int
14224main ()
14225{
14226return dlsym ();
14227  ;
14228  return 0;
14229}
14230_ACEOF
14231for ac_lib in '' dl; do
14232  if test -z "$ac_lib"; then
14233    ac_res="none required"
14234  else
14235    ac_res=-l$ac_lib
14236    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14237  fi
14238  if ac_fn_c_try_link "$LINENO"; then :
14239  ac_cv_search_dlsym=$ac_res
14240fi
14241rm -f core conftest.err conftest.$ac_objext \
14242    conftest$ac_exeext
14243  if ${ac_cv_search_dlsym+:} false; then :
14244  break
14245fi
14246done
14247if ${ac_cv_search_dlsym+:} false; then :
14248
14249else
14250  ac_cv_search_dlsym=no
14251fi
14252rm conftest.$ac_ext
14253LIBS=$ac_func_search_save_LIBS
14254fi
14255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
14256$as_echo "$ac_cv_search_dlsym" >&6; }
14257ac_res=$ac_cv_search_dlsym
14258if test "$ac_res" != no; then :
14259  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14260
14261fi
14262
14263
14264  # Use the system's zlib library.
14265  zlibdir="-L\$(top_builddir)/../zlib"
14266  zlibinc="-I\$(top_srcdir)/../zlib"
14267
14268# Check whether --with-system-zlib was given.
14269if test "${with_system_zlib+set}" = set; then :
14270  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14271    zlibdir=
14272    zlibinc=
14273  fi
14274
14275fi
14276
14277
14278
14279
14280
14281 # Check whether --enable-libctf-hash-debugging was given.
14282if test "${enable_libctf_hash_debugging+set}" = set; then :
14283  enableval=$enable_libctf_hash_debugging;
14284      case "$enableval" in
14285       yes|no) ;;
14286       *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;;
14287      esac
14288
14289else
14290  enable_libctf_hash_debugging=no
14291fi
14292
14293
14294if test "${enable_libctf_hash_debugging}" = yes; then
14295
14296$as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h
14297
14298fi
14299 if test "${enable_libctf_hash_debugging}" = yes; then
14300  ENABLE_LIBCTF_HASH_DEBUGGING_TRUE=
14301  ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#'
14302else
14303  ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#'
14304  ENABLE_LIBCTF_HASH_DEBUGGING_FALSE=
14305fi
14306
14307
14308# Similar to GDB_AC_CHECK_BFD.
14309OLD_CFLAGS=$CFLAGS
14310OLD_LDFLAGS=$LDFLAGS
14311OLD_LIBS=$LIBS
14312OLD_CC=$CC
14313# Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14314# points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
14315# always want our bfd.
14316CC="./libtool --quiet --mode=link $OLD_CC"
14317CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14318LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
14319intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14320LIBS="-lbfd -liberty $intl $LIBS"
14321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14322$as_echo_n "checking for ELF support in BFD... " >&6; }
14323if ${ac_cv_libctf_bfd_elf+:} false; then :
14324  $as_echo_n "(cached) " >&6
14325else
14326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327/* end confdefs.h.  */
14328#include <stdlib.h>
14329	     #include <string.h>
14330	     #include "bfd.h"
14331	     #include "elf-bfd.h"
14332int
14333main ()
14334{
14335(void) bfd_section_from_elf_index (NULL, 0);
14336	     return 0;
14337  ;
14338  return 0;
14339}
14340_ACEOF
14341if ac_fn_c_try_link "$LINENO"; then :
14342  ac_cv_libctf_bfd_elf=yes
14343else
14344  ac_cv_libctf_bfd_elf=no
14345fi
14346rm -f core conftest.err conftest.$ac_objext \
14347    conftest$ac_exeext conftest.$ac_ext
14348fi
14349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
14350$as_echo "$ac_cv_libctf_bfd_elf" >&6; }
14351CFLAGS=$OLD_CFLAGS
14352LDFLAGS=$OLD_LDFLAGS
14353LIBS=$OLD_LIBS
14354CC=$OLD_CC
14355
14356if test $ac_cv_libctf_bfd_elf = yes; then
14357
14358$as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
14359
14360fi
14361
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14363$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14364if ${ac_cv_c_bigendian+:} false; then :
14365  $as_echo_n "(cached) " >&6
14366else
14367  ac_cv_c_bigendian=unknown
14368    # See if we're dealing with a universal compiler.
14369    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370/* end confdefs.h.  */
14371#ifndef __APPLE_CC__
14372	       not a universal capable compiler
14373	     #endif
14374	     typedef int dummy;
14375
14376_ACEOF
14377if ac_fn_c_try_compile "$LINENO"; then :
14378
14379	# Check for potential -arch flags.  It is not universal unless
14380	# there are at least two -arch flags with different values.
14381	ac_arch=
14382	ac_prev=
14383	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14384	 if test -n "$ac_prev"; then
14385	   case $ac_word in
14386	     i?86 | x86_64 | ppc | ppc64)
14387	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14388		 ac_arch=$ac_word
14389	       else
14390		 ac_cv_c_bigendian=universal
14391		 break
14392	       fi
14393	       ;;
14394	   esac
14395	   ac_prev=
14396	 elif test "x$ac_word" = "x-arch"; then
14397	   ac_prev=arch
14398	 fi
14399       done
14400fi
14401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402    if test $ac_cv_c_bigendian = unknown; then
14403      # See if sys/param.h defines the BYTE_ORDER macro.
14404      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405/* end confdefs.h.  */
14406#include <sys/types.h>
14407	     #include <sys/param.h>
14408
14409int
14410main ()
14411{
14412#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14413		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14414		     && LITTLE_ENDIAN)
14415	      bogus endian macros
14416	     #endif
14417
14418  ;
14419  return 0;
14420}
14421_ACEOF
14422if ac_fn_c_try_compile "$LINENO"; then :
14423  # It does; now see whether it defined to BIG_ENDIAN or not.
14424	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425/* end confdefs.h.  */
14426#include <sys/types.h>
14427		#include <sys/param.h>
14428
14429int
14430main ()
14431{
14432#if BYTE_ORDER != BIG_ENDIAN
14433		 not big endian
14434		#endif
14435
14436  ;
14437  return 0;
14438}
14439_ACEOF
14440if ac_fn_c_try_compile "$LINENO"; then :
14441  ac_cv_c_bigendian=yes
14442else
14443  ac_cv_c_bigendian=no
14444fi
14445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446fi
14447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448    fi
14449    if test $ac_cv_c_bigendian = unknown; then
14450      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14451      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452/* end confdefs.h.  */
14453#include <limits.h>
14454
14455int
14456main ()
14457{
14458#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14459	      bogus endian macros
14460	     #endif
14461
14462  ;
14463  return 0;
14464}
14465_ACEOF
14466if ac_fn_c_try_compile "$LINENO"; then :
14467  # It does; now see whether it defined to _BIG_ENDIAN or not.
14468	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469/* end confdefs.h.  */
14470#include <limits.h>
14471
14472int
14473main ()
14474{
14475#ifndef _BIG_ENDIAN
14476		 not big endian
14477		#endif
14478
14479  ;
14480  return 0;
14481}
14482_ACEOF
14483if ac_fn_c_try_compile "$LINENO"; then :
14484  ac_cv_c_bigendian=yes
14485else
14486  ac_cv_c_bigendian=no
14487fi
14488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489fi
14490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491    fi
14492    if test $ac_cv_c_bigendian = unknown; then
14493      # Compile a test program.
14494      if test "$cross_compiling" = yes; then :
14495  # Try to guess by grepping values from an object file.
14496	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497/* end confdefs.h.  */
14498short int ascii_mm[] =
14499		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14500		short int ascii_ii[] =
14501		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14502		int use_ascii (int i) {
14503		  return ascii_mm[i] + ascii_ii[i];
14504		}
14505		short int ebcdic_ii[] =
14506		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14507		short int ebcdic_mm[] =
14508		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14509		int use_ebcdic (int i) {
14510		  return ebcdic_mm[i] + ebcdic_ii[i];
14511		}
14512		extern int foo;
14513
14514int
14515main ()
14516{
14517return use_ascii (foo) == use_ebcdic (foo);
14518  ;
14519  return 0;
14520}
14521_ACEOF
14522if ac_fn_c_try_compile "$LINENO"; then :
14523  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14524	      ac_cv_c_bigendian=yes
14525	    fi
14526	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14527	      if test "$ac_cv_c_bigendian" = unknown; then
14528		ac_cv_c_bigendian=no
14529	      else
14530		# finding both strings is unlikely to happen, but who knows?
14531		ac_cv_c_bigendian=unknown
14532	      fi
14533	    fi
14534fi
14535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536else
14537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538/* end confdefs.h.  */
14539$ac_includes_default
14540int
14541main ()
14542{
14543
14544	     /* Are we little or big endian?  From Harbison&Steele.  */
14545	     union
14546	     {
14547	       long int l;
14548	       char c[sizeof (long int)];
14549	     } u;
14550	     u.l = 1;
14551	     return u.c[sizeof (long int) - 1] == 1;
14552
14553  ;
14554  return 0;
14555}
14556_ACEOF
14557if ac_fn_c_try_run "$LINENO"; then :
14558  ac_cv_c_bigendian=no
14559else
14560  ac_cv_c_bigendian=yes
14561fi
14562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14563  conftest.$ac_objext conftest.beam conftest.$ac_ext
14564fi
14565
14566    fi
14567fi
14568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14569$as_echo "$ac_cv_c_bigendian" >&6; }
14570 case $ac_cv_c_bigendian in #(
14571   yes)
14572     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14573;; #(
14574   no)
14575      ;; #(
14576   universal)
14577
14578$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14579
14580     ;; #(
14581   *)
14582     as_fn_error $? "unknown endianness
14583 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14584 esac
14585
14586for ac_header in byteswap.h endian.h
14587do :
14588  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14589ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14590if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14591  cat >>confdefs.h <<_ACEOF
14592#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14593_ACEOF
14594
14595fi
14596
14597done
14598
14599for ac_func in pread
14600do :
14601  ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14602if test "x$ac_cv_func_pread" = xyes; then :
14603  cat >>confdefs.h <<_ACEOF
14604#define HAVE_PREAD 1
14605_ACEOF
14606
14607fi
14608done
14609
14610
14611ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
14612"
14613if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
14614  ac_have_decl=1
14615else
14616  ac_have_decl=0
14617fi
14618
14619cat >>confdefs.h <<_ACEOF
14620#define HAVE_DECL_BSWAP_16 $ac_have_decl
14621_ACEOF
14622ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
14623"
14624if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
14625  ac_have_decl=1
14626else
14627  ac_have_decl=0
14628fi
14629
14630cat >>confdefs.h <<_ACEOF
14631#define HAVE_DECL_BSWAP_32 $ac_have_decl
14632_ACEOF
14633ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
14634"
14635if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
14636  ac_have_decl=1
14637else
14638  ac_have_decl=0
14639fi
14640
14641cat >>confdefs.h <<_ACEOF
14642#define HAVE_DECL_BSWAP_64 $ac_have_decl
14643_ACEOF
14644
14645ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14646if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14647  ac_have_decl=1
14648else
14649  ac_have_decl=0
14650fi
14651
14652cat >>confdefs.h <<_ACEOF
14653#define HAVE_DECL_ASPRINTF $ac_have_decl
14654_ACEOF
14655ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
14656if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
14657  ac_have_decl=1
14658else
14659  ac_have_decl=0
14660fi
14661
14662cat >>confdefs.h <<_ACEOF
14663#define HAVE_DECL_VASPRINTF $ac_have_decl
14664_ACEOF
14665ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14666if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14667  ac_have_decl=1
14668else
14669  ac_have_decl=0
14670fi
14671
14672cat >>confdefs.h <<_ACEOF
14673#define HAVE_DECL_STPCPY $ac_have_decl
14674_ACEOF
14675
14676
14677
14678
14679
14680  for ac_func in $ac_func_list
14681do :
14682  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14683ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14684if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14685  cat >>confdefs.h <<_ACEOF
14686#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14687_ACEOF
14688
14689fi
14690done
14691
14692
14693
14694
14695if test $ac_cv_func_qsort_r = yes; then
14696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
14697$as_echo_n "checking for qsort_r signature... " >&6; }
14698if ${ac_cv_libctf_qsort_r_signature+:} false; then :
14699  $as_echo_n "(cached) " >&6
14700else
14701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702/* end confdefs.h.  */
14703#undef qsort_r
14704                          #include <stdlib.h>
14705                          void qsort_r (void *, size_t, size_t,
14706                                        int (*) (void const *, void const *,
14707                                                 void *),
14708                                        void *);
14709                          void (*p) (void *, size_t, size_t,
14710                                     int (*) (void const *, void const *,
14711                                              void *),
14712                                     void *) = qsort_r;
14713
14714int
14715main ()
14716{
14717
14718  ;
14719  return 0;
14720}
14721_ACEOF
14722if ac_fn_c_try_link "$LINENO"; then :
14723  ac_cv_libctf_qsort_r_signature=GNU
14724else
14725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726/* end confdefs.h.  */
14727#undef qsort_r
14728	                     #include <stdlib.h>
14729                             void qsort_r (void *, size_t, size_t, void *,
14730                                           int (*) (void *,
14731                                                    void const *,
14732                                                    void const *));
14733                             void (*p) (void *, size_t, size_t, void *,
14734                                        int (*) (void *, void const *,
14735                                                 void const *)) = qsort_r;
14736
14737int
14738main ()
14739{
14740
14741  ;
14742  return 0;
14743}
14744_ACEOF
14745if ac_fn_c_try_link "$LINENO"; then :
14746  ac_cv_libctf_qsort_r_signature=BSD
14747else
14748  ac_cv_libctf_qsort_r_signature=unknown
14749fi
14750rm -f core conftest.err conftest.$ac_objext \
14751    conftest$ac_exeext conftest.$ac_ext
14752fi
14753rm -f core conftest.err conftest.$ac_objext \
14754    conftest$ac_exeext conftest.$ac_ext
14755fi
14756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
14757$as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
14758fi
14759
14760case x$ac_cv_libctf_qsort_r_signature in
14761  xGNU)
14762$as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
14763;;
14764  xBSD)
14765$as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
14766;;
14767  *) ac_cv_libctf_qsort_r_signature=unknown;;
14768esac
14769
14770 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
14771  NEED_CTF_QSORT_R_TRUE=
14772  NEED_CTF_QSORT_R_FALSE='#'
14773else
14774  NEED_CTF_QSORT_R_TRUE='#'
14775  NEED_CTF_QSORT_R_FALSE=
14776fi
14777
14778
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
14780$as_echo_n "checking for O_CLOEXEC... " >&6; }
14781if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
14782  $as_echo_n "(cached) " >&6
14783else
14784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785/* end confdefs.h.  */
14786#include <fcntl.h>
14787                       #ifndef O_CLOEXEC
14788                         choke me;
14789                       #endif
14790
14791int
14792main ()
14793{
14794return O_CLOEXEC;
14795  ;
14796  return 0;
14797}
14798_ACEOF
14799if ac_fn_c_try_link "$LINENO"; then :
14800  ac_cv_libctf_macro_O_CLOEXEC=yes
14801else
14802  ac_cv_libctf_macro_O_CLOEXEC=no
14803fi
14804rm -f core conftest.err conftest.$ac_objext \
14805    conftest$ac_exeext conftest.$ac_ext
14806fi
14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
14808$as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
14809
14810if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
14811
14812$as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
14813
14814fi
14815
14816build_info=
14817makeinfo_too_old=
14818for ac_prog in makeinfo
14819do
14820  # Extract the first word of "$ac_prog", so it can be a program name with args.
14821set dummy $ac_prog; ac_word=$2
14822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14823$as_echo_n "checking for $ac_word... " >&6; }
14824if ${ac_cv_prog_MAKEINFO+:} false; then :
14825  $as_echo_n "(cached) " >&6
14826else
14827  if test -n "$MAKEINFO"; then
14828  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
14829else
14830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831for as_dir in $PATH
14832do
14833  IFS=$as_save_IFS
14834  test -z "$as_dir" && as_dir=.
14835    for ac_exec_ext in '' $ac_executable_extensions; do
14836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14837    ac_cv_prog_MAKEINFO="$ac_prog"
14838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14839    break 2
14840  fi
14841done
14842  done
14843IFS=$as_save_IFS
14844
14845fi
14846fi
14847MAKEINFO=$ac_cv_prog_MAKEINFO
14848if test -n "$MAKEINFO"; then
14849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
14850$as_echo "$MAKEINFO" >&6; }
14851else
14852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853$as_echo "no" >&6; }
14854fi
14855
14856
14857  test -n "$MAKEINFO" && break
14858done
14859test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
14860
14861case " $build_configdirs " in
14862  *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
14863esac
14864
14865    # We require texinfo to be 6.3 or later, for a working synindex
14866    # and validatemenus: otherwise we fall back to /bin/true.
14867    if ${MAKEINFO} --version \
14868       | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9][0-9])' >/dev/null 2>&1; then
14869      build_info=yes
14870    else
14871        build_info=
14872        makeinfo_too_old=t
14873    fi
14874
14875if test -n "$makeinfo_too_old"; then
14876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14877*** Makeinfo is too old. Info documentation will not be built." >&5
14878$as_echo "$as_me: WARNING:
14879*** Makeinfo is too old. Info documentation will not be built." >&2;}
14880fi
14881
14882 if test "${build_info}" = yes; then
14883  BUILD_INFO_TRUE=
14884  BUILD_INFO_FALSE='#'
14885else
14886  BUILD_INFO_TRUE='#'
14887  BUILD_INFO_FALSE=
14888fi
14889
14890
14891CTF_LIBADD="-L`pwd`/../libiberty -liberty"
14892SHARED_LDFLAGS=
14893
14894# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
14895if test "$enable_shared" = "yes"; then
14896# When building a shared libctf, link against the pic version of libiberty
14897# so that apps that use libctf won't need libiberty just to satisfy any
14898# libctf references.  We can't do that if a pic libiberty is unavailable
14899# since including non-pic # code would insert text relocations into libctf.
14900# Note that linking against libbfd as we do here, which is itself linked
14901# against libiberty, may not satisfy all the libctf libiberty references
14902# since libbfd may not pull in the entirety of libiberty.
14903# Also, jam libintl into the right place in all of this: after libiberty,
14904# which uses it, but before -lcygwin, which it uses.
14905  x=`sed -n -e 's/^[ 	]*PICFLAG[ 	]*=[ 	]*//p' < ../libiberty/Makefile | sed -n '$p'`
14906  if test -n "$x"; then
14907    CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14908  fi
14909fi
14910
14911CTF_LIBADD="$CTF_LIBADD $LIBINTL"
14912
14913if test "$enable_shared" = "yes"; then
14914  case "${host}" in
14915  # More hacks to build DLLs on Windows.
14916    *-*-cygwin*)
14917      SHARED_LDFLAGS="-no-undefined"
14918      CTF_LIBADD="$CTF_LIBADD -lcygwin"
14919      ;;
14920  esac
14921fi
14922
14923
14924
14925# Extract the first word of "expect", so it can be a program name with args.
14926set dummy expect; ac_word=$2
14927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14928$as_echo_n "checking for $ac_word... " >&6; }
14929if ${ac_cv_path_EXPECT+:} false; then :
14930  $as_echo_n "(cached) " >&6
14931else
14932  case $EXPECT in
14933  [\\/]* | ?:[\\/]*)
14934  ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
14935  ;;
14936  *)
14937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938for as_dir in $PATH
14939do
14940  IFS=$as_save_IFS
14941  test -z "$as_dir" && as_dir=.
14942    for ac_exec_ext in '' $ac_executable_extensions; do
14943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14944    ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
14945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14946    break 2
14947  fi
14948done
14949  done
14950IFS=$as_save_IFS
14951
14952  ;;
14953esac
14954fi
14955EXPECT=$ac_cv_path_EXPECT
14956if test -n "$EXPECT"; then
14957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
14958$as_echo "$EXPECT" >&6; }
14959else
14960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961$as_echo "no" >&6; }
14962fi
14963
14964
14965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
14966$as_echo_n "checking for Tcl supporting try/catch... " >&6; }
14967if ${ac_cv_libctf_tcl_try+:} false; then :
14968  $as_echo_n "(cached) " >&6
14969else
14970  ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
14971if [llength [info commands try]] then { puts yes } else { puts no }
14972EOF
14973fi`
14974
14975fi
14976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
14977$as_echo "$ac_cv_libctf_tcl_try" >&6; }
14978 if test "${ac_cv_libctf_tcl_try}" = yes; then
14979  TCL_TRY_TRUE=
14980  TCL_TRY_FALSE='#'
14981else
14982  TCL_TRY_TRUE='#'
14983  TCL_TRY_FALSE=
14984fi
14985
14986
14987# Use a version script, if possible, or an -export-symbols-regex otherwise.
14988decommented_version_script=
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5
14990$as_echo_n "checking for linker versioning flags... " >&6; }
14991if ${ac_cv_libctf_version_script+:} false; then :
14992  $as_echo_n "(cached) " >&6
14993else
14994  echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver
14995   old_LDFLAGS="$LDFLAGS"
14996   old_CFLAGS="$CFLAGS"
14997   LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver"
14998   CFLAGS="$CFLAGS -fPIC"
14999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000/* end confdefs.h.  */
15001int ctf_foo (void) { return 0; }
15002				    int main (void) { return ctf_foo(); }
15003_ACEOF
15004if ac_fn_c_try_link "$LINENO"; then :
15005  ac_cv_libctf_version_script="-Wl,--version-script='$srcdir/libctf.ver'"
15006fi
15007rm -f core conftest.err conftest.$ac_objext \
15008    conftest$ac_exeext conftest.$ac_ext
15009   LDFLAGS="$old_LDFLAGS"
15010
15011   if test -z "$ac_cv_libctf_version_script"; then
15012     LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver"
15013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014/* end confdefs.h.  */
15015int ctf_foo (void) { return 0; }
15016				      int main (void) { return ctf_foo(); }
15017_ACEOF
15018if ac_fn_c_try_link "$LINENO"; then :
15019  ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script"
15020		     decommented_version_script=t
15021fi
15022rm -f core conftest.err conftest.$ac_objext \
15023    conftest$ac_exeext conftest.$ac_ext
15024     LDFLAGS="$old_LDFLAGS"
15025   fi
15026   CFLAGS="$old_CFLAGS"
15027
15028   if test -z "$ac_cv_libctf_version_script"; then
15029     ac_cv_libctf_version_script='-export-symbols-regex ctf_.*'
15030   fi
15031   rm -f conftest.ver
15032fi
15033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5
15034$as_echo "$ac_cv_libctf_version_script" >&6; }
15035if test -n "$decommented_version_script"; then
15036   # Solaris's version scripts use shell-style comments rather than the C-style
15037   # used by GNU ld.  Use cpp to strip the comments out.  (cpp exists under this
15038   # name on all platforms that support ld -z gnu-version-script.)
15039   # Also ensure that no symbols exist in the version script for libctf-nobfd.so
15040   # that do not exist in the shared library itself, since some linkers add such
15041   # symbols with type NOTYPE.
15042   /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver
15043   grep -v 'libctf only' $srcdir/libctf.ver | /lib/cpp > libctf-nobfd-decommented.ver
15044   VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'"
15045   VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'"
15046else
15047   VERSION_FLAGS="$ac_cv_libctf_version_script"
15048   VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script"
15049fi
15050
15051
15052
15053ac_config_files="$ac_config_files Makefile"
15054
15055ac_config_headers="$ac_config_headers config.h"
15056
15057cat >confcache <<\_ACEOF
15058# This file is a shell script that caches the results of configure
15059# tests run on this system so they can be shared between configure
15060# scripts and configure runs, see configure's option --config-cache.
15061# It is not useful on other systems.  If it contains results you don't
15062# want to keep, you may remove or edit it.
15063#
15064# config.status only pays attention to the cache file if you give it
15065# the --recheck option to rerun configure.
15066#
15067# `ac_cv_env_foo' variables (set or unset) will be overridden when
15068# loading this file, other *unset* `ac_cv_foo' will be assigned the
15069# following values.
15070
15071_ACEOF
15072
15073# The following way of writing the cache mishandles newlines in values,
15074# but we know of no workaround that is simple, portable, and efficient.
15075# So, we kill variables containing newlines.
15076# Ultrix sh set writes to stderr and can't be redirected directly,
15077# and sets the high bit in the cache file unless we assign to the vars.
15078(
15079  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15080    eval ac_val=\$$ac_var
15081    case $ac_val in #(
15082    *${as_nl}*)
15083      case $ac_var in #(
15084      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15085$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15086      esac
15087      case $ac_var in #(
15088      _ | IFS | as_nl) ;; #(
15089      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15090      *) { eval $ac_var=; unset $ac_var;} ;;
15091      esac ;;
15092    esac
15093  done
15094
15095  (set) 2>&1 |
15096    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15097    *${as_nl}ac_space=\ *)
15098      # `set' does not quote correctly, so add quotes: double-quote
15099      # substitution turns \\\\ into \\, and sed turns \\ into \.
15100      sed -n \
15101	"s/'/'\\\\''/g;
15102	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15103      ;; #(
15104    *)
15105      # `set' quotes correctly as required by POSIX, so do not add quotes.
15106      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15107      ;;
15108    esac |
15109    sort
15110) |
15111  sed '
15112     /^ac_cv_env_/b end
15113     t clear
15114     :clear
15115     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15116     t end
15117     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15118     :end' >>confcache
15119if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15120  if test -w "$cache_file"; then
15121    if test "x$cache_file" != "x/dev/null"; then
15122      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15123$as_echo "$as_me: updating cache $cache_file" >&6;}
15124      if test ! -f "$cache_file" || test -h "$cache_file"; then
15125	cat confcache >"$cache_file"
15126      else
15127        case $cache_file in #(
15128        */* | ?:*)
15129	  mv -f confcache "$cache_file"$$ &&
15130	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15131        *)
15132	  mv -f confcache "$cache_file" ;;
15133	esac
15134      fi
15135    fi
15136  else
15137    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15138$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15139  fi
15140fi
15141rm -f confcache
15142
15143test "x$prefix" = xNONE && prefix=$ac_default_prefix
15144# Let make expand exec_prefix.
15145test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15146
15147DEFS=-DHAVE_CONFIG_H
15148
15149ac_libobjs=
15150ac_ltlibobjs=
15151U=
15152for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15153  # 1. Remove the extension, and $U if already installed.
15154  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15155  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15156  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15157  #    will be set to the directory where LIBOBJS objects are built.
15158  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15159  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15160done
15161LIBOBJS=$ac_libobjs
15162
15163LTLIBOBJS=$ac_ltlibobjs
15164
15165
15166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15167$as_echo_n "checking that generated files are newer than configure... " >&6; }
15168   if test -n "$am_sleep_pid"; then
15169     # Hide warnings about reused PIDs.
15170     wait $am_sleep_pid 2>/dev/null
15171   fi
15172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15173$as_echo "done" >&6; }
15174if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15175  as_fn_error $? "conditional \"AMDEP\" was never defined.
15176Usually this means the macro was only invoked conditionally." "$LINENO" 5
15177fi
15178if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15179  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15180Usually this means the macro was only invoked conditionally." "$LINENO" 5
15181fi
15182 if test -n "$EXEEXT"; then
15183  am__EXEEXT_TRUE=
15184  am__EXEEXT_FALSE='#'
15185else
15186  am__EXEEXT_TRUE='#'
15187  am__EXEEXT_FALSE=
15188fi
15189
15190if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15191  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15192Usually this means the macro was only invoked conditionally." "$LINENO" 5
15193fi
15194if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15195  as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
15196Usually this means the macro was only invoked conditionally." "$LINENO" 5
15197fi
15198if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then
15199  as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
15200Usually this means the macro was only invoked conditionally." "$LINENO" 5
15201fi
15202
15203if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
15204  as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
15205Usually this means the macro was only invoked conditionally." "$LINENO" 5
15206fi
15207if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
15208  as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
15209Usually this means the macro was only invoked conditionally." "$LINENO" 5
15210fi
15211if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
15212  as_fn_error $? "conditional \"TCL_TRY\" was never defined.
15213Usually this means the macro was only invoked conditionally." "$LINENO" 5
15214fi
15215
15216: "${CONFIG_STATUS=./config.status}"
15217ac_write_fail=0
15218ac_clean_files_save=$ac_clean_files
15219ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15220{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15221$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15222as_write_fail=0
15223cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15224#! $SHELL
15225# Generated by $as_me.
15226# Run this file to recreate the current configuration.
15227# Compiler output produced by configure, useful for debugging
15228# configure, is in config.log if it exists.
15229
15230debug=false
15231ac_cs_recheck=false
15232ac_cs_silent=false
15233
15234SHELL=\${CONFIG_SHELL-$SHELL}
15235export SHELL
15236_ASEOF
15237cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15238## -------------------- ##
15239## M4sh Initialization. ##
15240## -------------------- ##
15241
15242# Be more Bourne compatible
15243DUALCASE=1; export DUALCASE # for MKS sh
15244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15245  emulate sh
15246  NULLCMD=:
15247  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15248  # is contrary to our usage.  Disable this feature.
15249  alias -g '${1+"$@"}'='"$@"'
15250  setopt NO_GLOB_SUBST
15251else
15252  case `(set -o) 2>/dev/null` in #(
15253  *posix*) :
15254    set -o posix ;; #(
15255  *) :
15256     ;;
15257esac
15258fi
15259
15260
15261as_nl='
15262'
15263export as_nl
15264# Printing a long string crashes Solaris 7 /usr/bin/printf.
15265as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15266as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15267as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15268# Prefer a ksh shell builtin over an external printf program on Solaris,
15269# but without wasting forks for bash or zsh.
15270if test -z "$BASH_VERSION$ZSH_VERSION" \
15271    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15272  as_echo='print -r --'
15273  as_echo_n='print -rn --'
15274elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15275  as_echo='printf %s\n'
15276  as_echo_n='printf %s'
15277else
15278  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15279    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15280    as_echo_n='/usr/ucb/echo -n'
15281  else
15282    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15283    as_echo_n_body='eval
15284      arg=$1;
15285      case $arg in #(
15286      *"$as_nl"*)
15287	expr "X$arg" : "X\\(.*\\)$as_nl";
15288	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15289      esac;
15290      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15291    '
15292    export as_echo_n_body
15293    as_echo_n='sh -c $as_echo_n_body as_echo'
15294  fi
15295  export as_echo_body
15296  as_echo='sh -c $as_echo_body as_echo'
15297fi
15298
15299# The user is always right.
15300if test "${PATH_SEPARATOR+set}" != set; then
15301  PATH_SEPARATOR=:
15302  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15303    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15304      PATH_SEPARATOR=';'
15305  }
15306fi
15307
15308
15309# IFS
15310# We need space, tab and new line, in precisely that order.  Quoting is
15311# there to prevent editors from complaining about space-tab.
15312# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15313# splitting by setting IFS to empty value.)
15314IFS=" ""	$as_nl"
15315
15316# Find who we are.  Look in the path if we contain no directory separator.
15317as_myself=
15318case $0 in #((
15319  *[\\/]* ) as_myself=$0 ;;
15320  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15321for as_dir in $PATH
15322do
15323  IFS=$as_save_IFS
15324  test -z "$as_dir" && as_dir=.
15325    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15326  done
15327IFS=$as_save_IFS
15328
15329     ;;
15330esac
15331# We did not find ourselves, most probably we were run as `sh COMMAND'
15332# in which case we are not to be found in the path.
15333if test "x$as_myself" = x; then
15334  as_myself=$0
15335fi
15336if test ! -f "$as_myself"; then
15337  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15338  exit 1
15339fi
15340
15341# Unset variables that we do not need and which cause bugs (e.g. in
15342# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15343# suppresses any "Segmentation fault" message there.  '((' could
15344# trigger a bug in pdksh 5.2.14.
15345for as_var in BASH_ENV ENV MAIL MAILPATH
15346do eval test x\${$as_var+set} = xset \
15347  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15348done
15349PS1='$ '
15350PS2='> '
15351PS4='+ '
15352
15353# NLS nuisances.
15354LC_ALL=C
15355export LC_ALL
15356LANGUAGE=C
15357export LANGUAGE
15358
15359# CDPATH.
15360(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15361
15362
15363# as_fn_error STATUS ERROR [LINENO LOG_FD]
15364# ----------------------------------------
15365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15367# script with STATUS, using 1 if that was 0.
15368as_fn_error ()
15369{
15370  as_status=$1; test $as_status -eq 0 && as_status=1
15371  if test "$4"; then
15372    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15374  fi
15375  $as_echo "$as_me: error: $2" >&2
15376  as_fn_exit $as_status
15377} # as_fn_error
15378
15379
15380# as_fn_set_status STATUS
15381# -----------------------
15382# Set $? to STATUS, without forking.
15383as_fn_set_status ()
15384{
15385  return $1
15386} # as_fn_set_status
15387
15388# as_fn_exit STATUS
15389# -----------------
15390# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15391as_fn_exit ()
15392{
15393  set +e
15394  as_fn_set_status $1
15395  exit $1
15396} # as_fn_exit
15397
15398# as_fn_unset VAR
15399# ---------------
15400# Portably unset VAR.
15401as_fn_unset ()
15402{
15403  { eval $1=; unset $1;}
15404}
15405as_unset=as_fn_unset
15406# as_fn_append VAR VALUE
15407# ----------------------
15408# Append the text in VALUE to the end of the definition contained in VAR. Take
15409# advantage of any shell optimizations that allow amortized linear growth over
15410# repeated appends, instead of the typical quadratic growth present in naive
15411# implementations.
15412if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15413  eval 'as_fn_append ()
15414  {
15415    eval $1+=\$2
15416  }'
15417else
15418  as_fn_append ()
15419  {
15420    eval $1=\$$1\$2
15421  }
15422fi # as_fn_append
15423
15424# as_fn_arith ARG...
15425# ------------------
15426# Perform arithmetic evaluation on the ARGs, and store the result in the
15427# global $as_val. Take advantage of shells that can avoid forks. The arguments
15428# must be portable across $(()) and expr.
15429if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15430  eval 'as_fn_arith ()
15431  {
15432    as_val=$(( $* ))
15433  }'
15434else
15435  as_fn_arith ()
15436  {
15437    as_val=`expr "$@" || test $? -eq 1`
15438  }
15439fi # as_fn_arith
15440
15441
15442if expr a : '\(a\)' >/dev/null 2>&1 &&
15443   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15444  as_expr=expr
15445else
15446  as_expr=false
15447fi
15448
15449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15450  as_basename=basename
15451else
15452  as_basename=false
15453fi
15454
15455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15456  as_dirname=dirname
15457else
15458  as_dirname=false
15459fi
15460
15461as_me=`$as_basename -- "$0" ||
15462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15463	 X"$0" : 'X\(//\)$' \| \
15464	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15465$as_echo X/"$0" |
15466    sed '/^.*\/\([^/][^/]*\)\/*$/{
15467	    s//\1/
15468	    q
15469	  }
15470	  /^X\/\(\/\/\)$/{
15471	    s//\1/
15472	    q
15473	  }
15474	  /^X\/\(\/\).*/{
15475	    s//\1/
15476	    q
15477	  }
15478	  s/.*/./; q'`
15479
15480# Avoid depending upon Character Ranges.
15481as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15483as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15484as_cr_digits='0123456789'
15485as_cr_alnum=$as_cr_Letters$as_cr_digits
15486
15487ECHO_C= ECHO_N= ECHO_T=
15488case `echo -n x` in #(((((
15489-n*)
15490  case `echo 'xy\c'` in
15491  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15492  xy)  ECHO_C='\c';;
15493  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15494       ECHO_T='	';;
15495  esac;;
15496*)
15497  ECHO_N='-n';;
15498esac
15499
15500rm -f conf$$ conf$$.exe conf$$.file
15501if test -d conf$$.dir; then
15502  rm -f conf$$.dir/conf$$.file
15503else
15504  rm -f conf$$.dir
15505  mkdir conf$$.dir 2>/dev/null
15506fi
15507if (echo >conf$$.file) 2>/dev/null; then
15508  if ln -s conf$$.file conf$$ 2>/dev/null; then
15509    as_ln_s='ln -s'
15510    # ... but there are two gotchas:
15511    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15512    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15513    # In both cases, we have to default to `cp -pR'.
15514    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15515      as_ln_s='cp -pR'
15516  elif ln conf$$.file conf$$ 2>/dev/null; then
15517    as_ln_s=ln
15518  else
15519    as_ln_s='cp -pR'
15520  fi
15521else
15522  as_ln_s='cp -pR'
15523fi
15524rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15525rmdir conf$$.dir 2>/dev/null
15526
15527
15528# as_fn_mkdir_p
15529# -------------
15530# Create "$as_dir" as a directory, including parents if necessary.
15531as_fn_mkdir_p ()
15532{
15533
15534  case $as_dir in #(
15535  -*) as_dir=./$as_dir;;
15536  esac
15537  test -d "$as_dir" || eval $as_mkdir_p || {
15538    as_dirs=
15539    while :; do
15540      case $as_dir in #(
15541      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15542      *) as_qdir=$as_dir;;
15543      esac
15544      as_dirs="'$as_qdir' $as_dirs"
15545      as_dir=`$as_dirname -- "$as_dir" ||
15546$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15547	 X"$as_dir" : 'X\(//\)[^/]' \| \
15548	 X"$as_dir" : 'X\(//\)$' \| \
15549	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15550$as_echo X"$as_dir" |
15551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15552	    s//\1/
15553	    q
15554	  }
15555	  /^X\(\/\/\)[^/].*/{
15556	    s//\1/
15557	    q
15558	  }
15559	  /^X\(\/\/\)$/{
15560	    s//\1/
15561	    q
15562	  }
15563	  /^X\(\/\).*/{
15564	    s//\1/
15565	    q
15566	  }
15567	  s/.*/./; q'`
15568      test -d "$as_dir" && break
15569    done
15570    test -z "$as_dirs" || eval "mkdir $as_dirs"
15571  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15572
15573
15574} # as_fn_mkdir_p
15575if mkdir -p . 2>/dev/null; then
15576  as_mkdir_p='mkdir -p "$as_dir"'
15577else
15578  test -d ./-p && rmdir ./-p
15579  as_mkdir_p=false
15580fi
15581
15582
15583# as_fn_executable_p FILE
15584# -----------------------
15585# Test if FILE is an executable regular file.
15586as_fn_executable_p ()
15587{
15588  test -f "$1" && test -x "$1"
15589} # as_fn_executable_p
15590as_test_x='test -x'
15591as_executable_p=as_fn_executable_p
15592
15593# Sed expression to map a string onto a valid CPP name.
15594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15595
15596# Sed expression to map a string onto a valid variable name.
15597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15598
15599
15600exec 6>&1
15601## ----------------------------------- ##
15602## Main body of $CONFIG_STATUS script. ##
15603## ----------------------------------- ##
15604_ASEOF
15605test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15606
15607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15608# Save the log message, to keep $0 and so on meaningful, and to
15609# report actual input values of CONFIG_FILES etc. instead of their
15610# values after options handling.
15611ac_log="
15612This file was extended by libctf $as_me 1.2.0, which was
15613generated by GNU Autoconf 2.69.  Invocation command line was
15614
15615  CONFIG_FILES    = $CONFIG_FILES
15616  CONFIG_HEADERS  = $CONFIG_HEADERS
15617  CONFIG_LINKS    = $CONFIG_LINKS
15618  CONFIG_COMMANDS = $CONFIG_COMMANDS
15619  $ $0 $@
15620
15621on `(hostname || uname -n) 2>/dev/null | sed 1q`
15622"
15623
15624_ACEOF
15625
15626case $ac_config_files in *"
15627"*) set x $ac_config_files; shift; ac_config_files=$*;;
15628esac
15629
15630case $ac_config_headers in *"
15631"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15632esac
15633
15634
15635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15636# Files that config.status was made for.
15637config_files="$ac_config_files"
15638config_headers="$ac_config_headers"
15639config_commands="$ac_config_commands"
15640
15641_ACEOF
15642
15643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15644ac_cs_usage="\
15645\`$as_me' instantiates files and other configuration actions
15646from templates according to the current configuration.  Unless the files
15647and actions are specified as TAGs, all are instantiated by default.
15648
15649Usage: $0 [OPTION]... [TAG]...
15650
15651  -h, --help       print this help, then exit
15652  -V, --version    print version number and configuration settings, then exit
15653      --config     print configuration, then exit
15654  -q, --quiet, --silent
15655                   do not print progress messages
15656  -d, --debug      don't remove temporary files
15657      --recheck    update $as_me by reconfiguring in the same conditions
15658      --file=FILE[:TEMPLATE]
15659                   instantiate the configuration file FILE
15660      --header=FILE[:TEMPLATE]
15661                   instantiate the configuration header FILE
15662
15663Configuration files:
15664$config_files
15665
15666Configuration headers:
15667$config_headers
15668
15669Configuration commands:
15670$config_commands
15671
15672Report bugs to the package provider."
15673
15674_ACEOF
15675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15677ac_cs_version="\\
15678libctf config.status 1.2.0
15679configured by $0, generated by GNU Autoconf 2.69,
15680  with options \\"\$ac_cs_config\\"
15681
15682Copyright (C) 2012 Free Software Foundation, Inc.
15683This config.status script is free software; the Free Software Foundation
15684gives unlimited permission to copy, distribute and modify it."
15685
15686ac_pwd='$ac_pwd'
15687srcdir='$srcdir'
15688INSTALL='$INSTALL'
15689MKDIR_P='$MKDIR_P'
15690AWK='$AWK'
15691test -n "\$AWK" || AWK=awk
15692_ACEOF
15693
15694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15695# The default lists apply if the user does not specify any file.
15696ac_need_defaults=:
15697while test $# != 0
15698do
15699  case $1 in
15700  --*=?*)
15701    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15702    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15703    ac_shift=:
15704    ;;
15705  --*=)
15706    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15707    ac_optarg=
15708    ac_shift=:
15709    ;;
15710  *)
15711    ac_option=$1
15712    ac_optarg=$2
15713    ac_shift=shift
15714    ;;
15715  esac
15716
15717  case $ac_option in
15718  # Handling of the options.
15719  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15720    ac_cs_recheck=: ;;
15721  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15722    $as_echo "$ac_cs_version"; exit ;;
15723  --config | --confi | --conf | --con | --co | --c )
15724    $as_echo "$ac_cs_config"; exit ;;
15725  --debug | --debu | --deb | --de | --d | -d )
15726    debug=: ;;
15727  --file | --fil | --fi | --f )
15728    $ac_shift
15729    case $ac_optarg in
15730    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15731    '') as_fn_error $? "missing file argument" ;;
15732    esac
15733    as_fn_append CONFIG_FILES " '$ac_optarg'"
15734    ac_need_defaults=false;;
15735  --header | --heade | --head | --hea )
15736    $ac_shift
15737    case $ac_optarg in
15738    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15739    esac
15740    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15741    ac_need_defaults=false;;
15742  --he | --h)
15743    # Conflict between --help and --header
15744    as_fn_error $? "ambiguous option: \`$1'
15745Try \`$0 --help' for more information.";;
15746  --help | --hel | -h )
15747    $as_echo "$ac_cs_usage"; exit ;;
15748  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15749  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15750    ac_cs_silent=: ;;
15751
15752  # This is an error.
15753  -*) as_fn_error $? "unrecognized option: \`$1'
15754Try \`$0 --help' for more information." ;;
15755
15756  *) as_fn_append ac_config_targets " $1"
15757     ac_need_defaults=false ;;
15758
15759  esac
15760  shift
15761done
15762
15763ac_configure_extra_args=
15764
15765if $ac_cs_silent; then
15766  exec 6>/dev/null
15767  ac_configure_extra_args="$ac_configure_extra_args --silent"
15768fi
15769
15770_ACEOF
15771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15772if \$ac_cs_recheck; then
15773  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15774  shift
15775  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15776  CONFIG_SHELL='$SHELL'
15777  export CONFIG_SHELL
15778  exec "\$@"
15779fi
15780
15781_ACEOF
15782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783exec 5>>config.log
15784{
15785  echo
15786  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15787## Running $as_me. ##
15788_ASBOX
15789  $as_echo "$ac_log"
15790} >&5
15791
15792_ACEOF
15793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15794#
15795# INIT-COMMANDS
15796#
15797AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15798
15799
15800# The HP-UX ksh and POSIX shell print the target directory to stdout
15801# if CDPATH is set.
15802(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15803
15804sed_quote_subst='$sed_quote_subst'
15805double_quote_subst='$double_quote_subst'
15806delay_variable_subst='$delay_variable_subst'
15807enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15808macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15809macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15810enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15811pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15812enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15813SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15814ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15815host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15816host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15817host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15818build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15819build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15820build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15821SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15822Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15823GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15824EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15825FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15826LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15827NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15828LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15829max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15830ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15831exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15832lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15833lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15834lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15835reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15836reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15837OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15838deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15839file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15840AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15841AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15842STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15843RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15844old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15845old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15846old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15847lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15848CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15849CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15850compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15851GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15852lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15853lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15854lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15855lt_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"`'
15856objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15857MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15858lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15859lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15860lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15861lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15862lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15863need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15864DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15865NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15866LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15867OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15868OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15869libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15870shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15871extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15872archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15873enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15874export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15875whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15876compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15877old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15878old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15879archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15880archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15881module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15882module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15883with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15884allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15885no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15886hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15887hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15888hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15889hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15890hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15891hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15892hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15893hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15894inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15895link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15896fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15897always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15898export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15899exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15900include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15901prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15902file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15903variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15904need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15905need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15906version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15907runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15908shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15909shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15910libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15911library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15912soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15913install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15914postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15915postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15916finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15917finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15918hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15919sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15920sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15921hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15922enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15923enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15924enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15925old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15926striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15927
15928LTCC='$LTCC'
15929LTCFLAGS='$LTCFLAGS'
15930compiler='$compiler_DEFAULT'
15931
15932# A function that is used when there is no print builtin or printf.
15933func_fallback_echo ()
15934{
15935  eval 'cat <<_LTECHO_EOF
15936\$1
15937_LTECHO_EOF'
15938}
15939
15940# Quote evaled strings.
15941for var in SHELL \
15942ECHO \
15943SED \
15944GREP \
15945EGREP \
15946FGREP \
15947LD \
15948NM \
15949LN_S \
15950lt_SP2NL \
15951lt_NL2SP \
15952reload_flag \
15953OBJDUMP \
15954deplibs_check_method \
15955file_magic_cmd \
15956AR \
15957AR_FLAGS \
15958STRIP \
15959RANLIB \
15960CC \
15961CFLAGS \
15962compiler \
15963lt_cv_sys_global_symbol_pipe \
15964lt_cv_sys_global_symbol_to_cdecl \
15965lt_cv_sys_global_symbol_to_c_name_address \
15966lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15967lt_prog_compiler_no_builtin_flag \
15968lt_prog_compiler_wl \
15969lt_prog_compiler_pic \
15970lt_prog_compiler_static \
15971lt_cv_prog_compiler_c_o \
15972need_locks \
15973DSYMUTIL \
15974NMEDIT \
15975LIPO \
15976OTOOL \
15977OTOOL64 \
15978shrext_cmds \
15979export_dynamic_flag_spec \
15980whole_archive_flag_spec \
15981compiler_needs_object \
15982with_gnu_ld \
15983allow_undefined_flag \
15984no_undefined_flag \
15985hardcode_libdir_flag_spec \
15986hardcode_libdir_flag_spec_ld \
15987hardcode_libdir_separator \
15988fix_srcfile_path \
15989exclude_expsyms \
15990include_expsyms \
15991file_list_spec \
15992variables_saved_for_relink \
15993libname_spec \
15994library_names_spec \
15995soname_spec \
15996install_override_mode \
15997finish_eval \
15998old_striplib \
15999striplib; do
16000    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16001    *[\\\\\\\`\\"\\\$]*)
16002      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16003      ;;
16004    *)
16005      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16006      ;;
16007    esac
16008done
16009
16010# Double-quote double-evaled strings.
16011for var in reload_cmds \
16012old_postinstall_cmds \
16013old_postuninstall_cmds \
16014old_archive_cmds \
16015extract_expsyms_cmds \
16016old_archive_from_new_cmds \
16017old_archive_from_expsyms_cmds \
16018archive_cmds \
16019archive_expsym_cmds \
16020module_cmds \
16021module_expsym_cmds \
16022export_symbols_cmds \
16023prelink_cmds \
16024postinstall_cmds \
16025postuninstall_cmds \
16026finish_cmds \
16027sys_lib_search_path_spec \
16028sys_lib_dlsearch_path_spec; do
16029    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16030    *[\\\\\\\`\\"\\\$]*)
16031      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16032      ;;
16033    *)
16034      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16035      ;;
16036    esac
16037done
16038
16039ac_aux_dir='$ac_aux_dir'
16040xsi_shell='$xsi_shell'
16041lt_shell_append='$lt_shell_append'
16042
16043# See if we are running on zsh, and set the options which allow our
16044# commands through without removal of \ escapes INIT.
16045if test -n "\${ZSH_VERSION+set}" ; then
16046   setopt NO_GLOB_SUBST
16047fi
16048
16049
16050    PACKAGE='$PACKAGE'
16051    VERSION='$VERSION'
16052    TIMESTAMP='$TIMESTAMP'
16053    RM='$RM'
16054    ofile='$ofile'
16055
16056ac_aux_dir='$ac_aux_dir'
16057
16058
16059
16060_ACEOF
16061
16062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063
16064# Handling of arguments.
16065for ac_config_target in $ac_config_targets
16066do
16067  case $ac_config_target in
16068    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16069    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16070    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16071    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16072
16073  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16074  esac
16075done
16076
16077
16078# If the user did not use the arguments to specify the items to instantiate,
16079# then the envvar interface is used.  Set only those that are not.
16080# We use the long form for the default assignment because of an extremely
16081# bizarre bug on SunOS 4.1.3.
16082if $ac_need_defaults; then
16083  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16084  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16085  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16086fi
16087
16088# Have a temporary directory for convenience.  Make it in the build tree
16089# simply because there is no reason against having it here, and in addition,
16090# creating and moving files from /tmp can sometimes cause problems.
16091# Hook for its removal unless debugging.
16092# Note that there is a small window in which the directory will not be cleaned:
16093# after its creation but before its name has been assigned to `$tmp'.
16094$debug ||
16095{
16096  tmp= ac_tmp=
16097  trap 'exit_status=$?
16098  : "${ac_tmp:=$tmp}"
16099  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16100' 0
16101  trap 'as_fn_exit 1' 1 2 13 15
16102}
16103# Create a (secure) tmp directory for tmp files.
16104
16105{
16106  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16107  test -d "$tmp"
16108}  ||
16109{
16110  tmp=./conf$$-$RANDOM
16111  (umask 077 && mkdir "$tmp")
16112} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16113ac_tmp=$tmp
16114
16115# Set up the scripts for CONFIG_FILES section.
16116# No need to generate them if there are no CONFIG_FILES.
16117# This happens for instance with `./config.status config.h'.
16118if test -n "$CONFIG_FILES"; then
16119
16120
16121ac_cr=`echo X | tr X '\015'`
16122# On cygwin, bash can eat \r inside `` if the user requested igncr.
16123# But we know of no other shell where ac_cr would be empty at this
16124# point, so we can use a bashism as a fallback.
16125if test "x$ac_cr" = x; then
16126  eval ac_cr=\$\'\\r\'
16127fi
16128ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16129if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16130  ac_cs_awk_cr='\\r'
16131else
16132  ac_cs_awk_cr=$ac_cr
16133fi
16134
16135echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16136_ACEOF
16137
16138
16139{
16140  echo "cat >conf$$subs.awk <<_ACEOF" &&
16141  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16142  echo "_ACEOF"
16143} >conf$$subs.sh ||
16144  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16145ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16146ac_delim='%!_!# '
16147for ac_last_try in false false false false false :; do
16148  . ./conf$$subs.sh ||
16149    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16150
16151  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16152  if test $ac_delim_n = $ac_delim_num; then
16153    break
16154  elif $ac_last_try; then
16155    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16156  else
16157    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16158  fi
16159done
16160rm -f conf$$subs.sh
16161
16162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16163cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16164_ACEOF
16165sed -n '
16166h
16167s/^/S["/; s/!.*/"]=/
16168p
16169g
16170s/^[^!]*!//
16171:repl
16172t repl
16173s/'"$ac_delim"'$//
16174t delim
16175:nl
16176h
16177s/\(.\{148\}\)..*/\1/
16178t more1
16179s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16180p
16181n
16182b repl
16183:more1
16184s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16185p
16186g
16187s/.\{148\}//
16188t nl
16189:delim
16190h
16191s/\(.\{148\}\)..*/\1/
16192t more2
16193s/["\\]/\\&/g; s/^/"/; s/$/"/
16194p
16195b
16196:more2
16197s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16198p
16199g
16200s/.\{148\}//
16201t delim
16202' <conf$$subs.awk | sed '
16203/^[^""]/{
16204  N
16205  s/\n//
16206}
16207' >>$CONFIG_STATUS || ac_write_fail=1
16208rm -f conf$$subs.awk
16209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16210_ACAWK
16211cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16212  for (key in S) S_is_set[key] = 1
16213  FS = ""
16214
16215}
16216{
16217  line = $ 0
16218  nfields = split(line, field, "@")
16219  substed = 0
16220  len = length(field[1])
16221  for (i = 2; i < nfields; i++) {
16222    key = field[i]
16223    keylen = length(key)
16224    if (S_is_set[key]) {
16225      value = S[key]
16226      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16227      len += length(value) + length(field[++i])
16228      substed = 1
16229    } else
16230      len += 1 + keylen
16231  }
16232
16233  print line
16234}
16235
16236_ACAWK
16237_ACEOF
16238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16239if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16240  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16241else
16242  cat
16243fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16244  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16245_ACEOF
16246
16247# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16248# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16249# trailing colons and then remove the whole line if VPATH becomes empty
16250# (actually we leave an empty line to preserve line numbers).
16251if test "x$srcdir" = x.; then
16252  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16253h
16254s///
16255s/^/:/
16256s/[	 ]*$/:/
16257s/:\$(srcdir):/:/g
16258s/:\${srcdir}:/:/g
16259s/:@srcdir@:/:/g
16260s/^:*//
16261s/:*$//
16262x
16263s/\(=[	 ]*\).*/\1/
16264G
16265s/\n//
16266s/^[^=]*=[	 ]*$//
16267}'
16268fi
16269
16270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16271fi # test -n "$CONFIG_FILES"
16272
16273# Set up the scripts for CONFIG_HEADERS section.
16274# No need to generate them if there are no CONFIG_HEADERS.
16275# This happens for instance with `./config.status Makefile'.
16276if test -n "$CONFIG_HEADERS"; then
16277cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16278BEGIN {
16279_ACEOF
16280
16281# Transform confdefs.h into an awk script `defines.awk', embedded as
16282# here-document in config.status, that substitutes the proper values into
16283# config.h.in to produce config.h.
16284
16285# Create a delimiter string that does not exist in confdefs.h, to ease
16286# handling of long lines.
16287ac_delim='%!_!# '
16288for ac_last_try in false false :; do
16289  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16290  if test -z "$ac_tt"; then
16291    break
16292  elif $ac_last_try; then
16293    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16294  else
16295    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16296  fi
16297done
16298
16299# For the awk script, D is an array of macro values keyed by name,
16300# likewise P contains macro parameters if any.  Preserve backslash
16301# newline sequences.
16302
16303ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16304sed -n '
16305s/.\{148\}/&'"$ac_delim"'/g
16306t rset
16307:rset
16308s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16309t def
16310d
16311:def
16312s/\\$//
16313t bsnl
16314s/["\\]/\\&/g
16315s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16316D["\1"]=" \3"/p
16317s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16318d
16319:bsnl
16320s/["\\]/\\&/g
16321s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16322D["\1"]=" \3\\\\\\n"\\/p
16323t cont
16324s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16325t cont
16326d
16327:cont
16328n
16329s/.\{148\}/&'"$ac_delim"'/g
16330t clear
16331:clear
16332s/\\$//
16333t bsnlc
16334s/["\\]/\\&/g; s/^/"/; s/$/"/p
16335d
16336:bsnlc
16337s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16338b cont
16339' <confdefs.h | sed '
16340s/'"$ac_delim"'/"\\\
16341"/g' >>$CONFIG_STATUS || ac_write_fail=1
16342
16343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344  for (key in D) D_is_set[key] = 1
16345  FS = ""
16346}
16347/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16348  line = \$ 0
16349  split(line, arg, " ")
16350  if (arg[1] == "#") {
16351    defundef = arg[2]
16352    mac1 = arg[3]
16353  } else {
16354    defundef = substr(arg[1], 2)
16355    mac1 = arg[2]
16356  }
16357  split(mac1, mac2, "(") #)
16358  macro = mac2[1]
16359  prefix = substr(line, 1, index(line, defundef) - 1)
16360  if (D_is_set[macro]) {
16361    # Preserve the white space surrounding the "#".
16362    print prefix "define", macro P[macro] D[macro]
16363    next
16364  } else {
16365    # Replace #undef with comments.  This is necessary, for example,
16366    # in the case of _POSIX_SOURCE, which is predefined and required
16367    # on some systems where configure will not decide to define it.
16368    if (defundef == "undef") {
16369      print "/*", prefix defundef, macro, "*/"
16370      next
16371    }
16372  }
16373}
16374{ print }
16375_ACAWK
16376_ACEOF
16377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16378  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16379fi # test -n "$CONFIG_HEADERS"
16380
16381
16382eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16383shift
16384for ac_tag
16385do
16386  case $ac_tag in
16387  :[FHLC]) ac_mode=$ac_tag; continue;;
16388  esac
16389  case $ac_mode$ac_tag in
16390  :[FHL]*:*);;
16391  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16392  :[FH]-) ac_tag=-:-;;
16393  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16394  esac
16395  ac_save_IFS=$IFS
16396  IFS=:
16397  set x $ac_tag
16398  IFS=$ac_save_IFS
16399  shift
16400  ac_file=$1
16401  shift
16402
16403  case $ac_mode in
16404  :L) ac_source=$1;;
16405  :[FH])
16406    ac_file_inputs=
16407    for ac_f
16408    do
16409      case $ac_f in
16410      -) ac_f="$ac_tmp/stdin";;
16411      *) # Look for the file first in the build tree, then in the source tree
16412	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16413	 # because $ac_f cannot contain `:'.
16414	 test -f "$ac_f" ||
16415	   case $ac_f in
16416	   [\\/$]*) false;;
16417	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16418	   esac ||
16419	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16420      esac
16421      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16422      as_fn_append ac_file_inputs " '$ac_f'"
16423    done
16424
16425    # Let's still pretend it is `configure' which instantiates (i.e., don't
16426    # use $as_me), people would be surprised to read:
16427    #    /* config.h.  Generated by config.status.  */
16428    configure_input='Generated from '`
16429	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16430	`' by configure.'
16431    if test x"$ac_file" != x-; then
16432      configure_input="$ac_file.  $configure_input"
16433      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16434$as_echo "$as_me: creating $ac_file" >&6;}
16435    fi
16436    # Neutralize special characters interpreted by sed in replacement strings.
16437    case $configure_input in #(
16438    *\&* | *\|* | *\\* )
16439       ac_sed_conf_input=`$as_echo "$configure_input" |
16440       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16441    *) ac_sed_conf_input=$configure_input;;
16442    esac
16443
16444    case $ac_tag in
16445    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16446      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16447    esac
16448    ;;
16449  esac
16450
16451  ac_dir=`$as_dirname -- "$ac_file" ||
16452$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16453	 X"$ac_file" : 'X\(//\)[^/]' \| \
16454	 X"$ac_file" : 'X\(//\)$' \| \
16455	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16456$as_echo X"$ac_file" |
16457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16458	    s//\1/
16459	    q
16460	  }
16461	  /^X\(\/\/\)[^/].*/{
16462	    s//\1/
16463	    q
16464	  }
16465	  /^X\(\/\/\)$/{
16466	    s//\1/
16467	    q
16468	  }
16469	  /^X\(\/\).*/{
16470	    s//\1/
16471	    q
16472	  }
16473	  s/.*/./; q'`
16474  as_dir="$ac_dir"; as_fn_mkdir_p
16475  ac_builddir=.
16476
16477case "$ac_dir" in
16478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16479*)
16480  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16481  # A ".." for each directory in $ac_dir_suffix.
16482  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16483  case $ac_top_builddir_sub in
16484  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16485  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16486  esac ;;
16487esac
16488ac_abs_top_builddir=$ac_pwd
16489ac_abs_builddir=$ac_pwd$ac_dir_suffix
16490# for backward compatibility:
16491ac_top_builddir=$ac_top_build_prefix
16492
16493case $srcdir in
16494  .)  # We are building in place.
16495    ac_srcdir=.
16496    ac_top_srcdir=$ac_top_builddir_sub
16497    ac_abs_top_srcdir=$ac_pwd ;;
16498  [\\/]* | ?:[\\/]* )  # Absolute name.
16499    ac_srcdir=$srcdir$ac_dir_suffix;
16500    ac_top_srcdir=$srcdir
16501    ac_abs_top_srcdir=$srcdir ;;
16502  *) # Relative name.
16503    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16504    ac_top_srcdir=$ac_top_build_prefix$srcdir
16505    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16506esac
16507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16508
16509
16510  case $ac_mode in
16511  :F)
16512  #
16513  # CONFIG_FILE
16514  #
16515
16516  case $INSTALL in
16517  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16518  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16519  esac
16520  ac_MKDIR_P=$MKDIR_P
16521  case $MKDIR_P in
16522  [\\/$]* | ?:[\\/]* ) ;;
16523  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16524  esac
16525_ACEOF
16526
16527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16528# If the template does not know about datarootdir, expand it.
16529# FIXME: This hack should be removed a few years after 2.60.
16530ac_datarootdir_hack=; ac_datarootdir_seen=
16531ac_sed_dataroot='
16532/datarootdir/ {
16533  p
16534  q
16535}
16536/@datadir@/p
16537/@docdir@/p
16538/@infodir@/p
16539/@localedir@/p
16540/@mandir@/p'
16541case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16542*datarootdir*) ac_datarootdir_seen=yes;;
16543*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16544  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16545$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16546_ACEOF
16547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16548  ac_datarootdir_hack='
16549  s&@datadir@&$datadir&g
16550  s&@docdir@&$docdir&g
16551  s&@infodir@&$infodir&g
16552  s&@localedir@&$localedir&g
16553  s&@mandir@&$mandir&g
16554  s&\\\${datarootdir}&$datarootdir&g' ;;
16555esac
16556_ACEOF
16557
16558# Neutralize VPATH when `$srcdir' = `.'.
16559# Shell code in configure.ac might set extrasub.
16560# FIXME: do we really want to maintain this feature?
16561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16562ac_sed_extra="$ac_vpsub
16563$extrasub
16564_ACEOF
16565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16566:t
16567/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16568s|@configure_input@|$ac_sed_conf_input|;t t
16569s&@top_builddir@&$ac_top_builddir_sub&;t t
16570s&@top_build_prefix@&$ac_top_build_prefix&;t t
16571s&@srcdir@&$ac_srcdir&;t t
16572s&@abs_srcdir@&$ac_abs_srcdir&;t t
16573s&@top_srcdir@&$ac_top_srcdir&;t t
16574s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16575s&@builddir@&$ac_builddir&;t t
16576s&@abs_builddir@&$ac_abs_builddir&;t t
16577s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16578s&@INSTALL@&$ac_INSTALL&;t t
16579s&@MKDIR_P@&$ac_MKDIR_P&;t t
16580$ac_datarootdir_hack
16581"
16582eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16583  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16584
16585test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16586  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16587  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16588      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16589  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16590which seems to be undefined.  Please make sure it is defined" >&5
16591$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16592which seems to be undefined.  Please make sure it is defined" >&2;}
16593
16594  rm -f "$ac_tmp/stdin"
16595  case $ac_file in
16596  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16597  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16598  esac \
16599  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16600 ;;
16601  :H)
16602  #
16603  # CONFIG_HEADER
16604  #
16605  if test x"$ac_file" != x-; then
16606    {
16607      $as_echo "/* $configure_input  */" \
16608      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16609    } >"$ac_tmp/config.h" \
16610      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16611    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16612      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16613$as_echo "$as_me: $ac_file is unchanged" >&6;}
16614    else
16615      rm -f "$ac_file"
16616      mv "$ac_tmp/config.h" "$ac_file" \
16617	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16618    fi
16619  else
16620    $as_echo "/* $configure_input  */" \
16621      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16622      || as_fn_error $? "could not create -" "$LINENO" 5
16623  fi
16624# Compute "$ac_file"'s index in $config_headers.
16625_am_arg="$ac_file"
16626_am_stamp_count=1
16627for _am_header in $config_headers :; do
16628  case $_am_header in
16629    $_am_arg | $_am_arg:* )
16630      break ;;
16631    * )
16632      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16633  esac
16634done
16635echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16636$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16637	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16638	 X"$_am_arg" : 'X\(//\)$' \| \
16639	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16640$as_echo X"$_am_arg" |
16641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16642	    s//\1/
16643	    q
16644	  }
16645	  /^X\(\/\/\)[^/].*/{
16646	    s//\1/
16647	    q
16648	  }
16649	  /^X\(\/\/\)$/{
16650	    s//\1/
16651	    q
16652	  }
16653	  /^X\(\/\).*/{
16654	    s//\1/
16655	    q
16656	  }
16657	  s/.*/./; q'`/stamp-h$_am_stamp_count
16658 ;;
16659
16660  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16661$as_echo "$as_me: executing $ac_file commands" >&6;}
16662 ;;
16663  esac
16664
16665
16666  case $ac_file$ac_mode in
16667    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16668  # Older Autoconf quotes --file arguments for eval, but not when files
16669  # are listed without --file.  Let's play safe and only enable the eval
16670  # if we detect the quoting.
16671  case $CONFIG_FILES in
16672  *\'*) eval set x "$CONFIG_FILES" ;;
16673  *)   set x $CONFIG_FILES ;;
16674  esac
16675  shift
16676  for mf
16677  do
16678    # Strip MF so we end up with the name of the file.
16679    mf=`echo "$mf" | sed -e 's/:.*$//'`
16680    # Check whether this is an Automake generated Makefile or not.
16681    # We used to match only the files named 'Makefile.in', but
16682    # some people rename them; so instead we look at the file content.
16683    # Grep'ing the first line is not enough: some people post-process
16684    # each Makefile.in and add a new line on top of each file to say so.
16685    # Grep'ing the whole file is not good either: AIX grep has a line
16686    # limit of 2048, but all sed's we know have understand at least 4000.
16687    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16688      dirpart=`$as_dirname -- "$mf" ||
16689$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16690	 X"$mf" : 'X\(//\)[^/]' \| \
16691	 X"$mf" : 'X\(//\)$' \| \
16692	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16693$as_echo X"$mf" |
16694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16695	    s//\1/
16696	    q
16697	  }
16698	  /^X\(\/\/\)[^/].*/{
16699	    s//\1/
16700	    q
16701	  }
16702	  /^X\(\/\/\)$/{
16703	    s//\1/
16704	    q
16705	  }
16706	  /^X\(\/\).*/{
16707	    s//\1/
16708	    q
16709	  }
16710	  s/.*/./; q'`
16711    else
16712      continue
16713    fi
16714    # Extract the definition of DEPDIR, am__include, and am__quote
16715    # from the Makefile without running 'make'.
16716    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16717    test -z "$DEPDIR" && continue
16718    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16719    test -z "$am__include" && continue
16720    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16721    # Find all dependency output files, they are included files with
16722    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16723    # simplest approach to changing $(DEPDIR) to its actual value in the
16724    # expansion.
16725    for file in `sed -n "
16726      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16727	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16728      # Make sure the directory exists.
16729      test -f "$dirpart/$file" && continue
16730      fdir=`$as_dirname -- "$file" ||
16731$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16732	 X"$file" : 'X\(//\)[^/]' \| \
16733	 X"$file" : 'X\(//\)$' \| \
16734	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16735$as_echo X"$file" |
16736    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16737	    s//\1/
16738	    q
16739	  }
16740	  /^X\(\/\/\)[^/].*/{
16741	    s//\1/
16742	    q
16743	  }
16744	  /^X\(\/\/\)$/{
16745	    s//\1/
16746	    q
16747	  }
16748	  /^X\(\/\).*/{
16749	    s//\1/
16750	    q
16751	  }
16752	  s/.*/./; q'`
16753      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16754      # echo "creating $dirpart/$file"
16755      echo '# dummy' > "$dirpart/$file"
16756    done
16757  done
16758}
16759 ;;
16760    "libtool":C)
16761
16762    # See if we are running on zsh, and set the options which allow our
16763    # commands through without removal of \ escapes.
16764    if test -n "${ZSH_VERSION+set}" ; then
16765      setopt NO_GLOB_SUBST
16766    fi
16767
16768    cfgfile="${ofile}T"
16769    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16770    $RM "$cfgfile"
16771
16772    cat <<_LT_EOF >> "$cfgfile"
16773#! $SHELL
16774
16775# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16776# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16777# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16778# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16779#
16780#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16781#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16782#   Written by Gordon Matzigkeit, 1996
16783#
16784#   This file is part of GNU Libtool.
16785#
16786# GNU Libtool is free software; you can redistribute it and/or
16787# modify it under the terms of the GNU General Public License as
16788# published by the Free Software Foundation; either version 2 of
16789# the License, or (at your option) any later version.
16790#
16791# As a special exception to the GNU General Public License,
16792# if you distribute this file as part of a program or library that
16793# is built using GNU Libtool, you may include this file under the
16794# same distribution terms that you use for the rest of that program.
16795#
16796# GNU Libtool is distributed in the hope that it will be useful,
16797# but WITHOUT ANY WARRANTY; without even the implied warranty of
16798# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16799# GNU General Public License for more details.
16800#
16801# You should have received a copy of the GNU General Public License
16802# along with GNU Libtool; see the file COPYING.  If not, a copy
16803# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16804# obtained by writing to the Free Software Foundation, Inc.,
16805# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16806
16807
16808# The names of the tagged configurations supported by this script.
16809available_tags=""
16810
16811# ### BEGIN LIBTOOL CONFIG
16812
16813# Whether or not to build shared libraries.
16814build_libtool_libs=$enable_shared
16815
16816# Which release of libtool.m4 was used?
16817macro_version=$macro_version
16818macro_revision=$macro_revision
16819
16820# Whether or not to build static libraries.
16821build_old_libs=$enable_static
16822
16823# What type of objects to build.
16824pic_mode=$pic_mode
16825
16826# Whether or not to optimize for fast installation.
16827fast_install=$enable_fast_install
16828
16829# Shell to use when invoking shell scripts.
16830SHELL=$lt_SHELL
16831
16832# An echo program that protects backslashes.
16833ECHO=$lt_ECHO
16834
16835# The host system.
16836host_alias=$host_alias
16837host=$host
16838host_os=$host_os
16839
16840# The build system.
16841build_alias=$build_alias
16842build=$build
16843build_os=$build_os
16844
16845# A sed program that does not truncate output.
16846SED=$lt_SED
16847
16848# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16849Xsed="\$SED -e 1s/^X//"
16850
16851# A grep program that handles long lines.
16852GREP=$lt_GREP
16853
16854# An ERE matcher.
16855EGREP=$lt_EGREP
16856
16857# A literal string matcher.
16858FGREP=$lt_FGREP
16859
16860# A BSD- or MS-compatible name lister.
16861NM=$lt_NM
16862
16863# Whether we need soft or hard links.
16864LN_S=$lt_LN_S
16865
16866# What is the maximum length of a command?
16867max_cmd_len=$max_cmd_len
16868
16869# Object file suffix (normally "o").
16870objext=$ac_objext
16871
16872# Executable file suffix (normally "").
16873exeext=$exeext
16874
16875# whether the shell understands "unset".
16876lt_unset=$lt_unset
16877
16878# turn spaces into newlines.
16879SP2NL=$lt_lt_SP2NL
16880
16881# turn newlines into spaces.
16882NL2SP=$lt_lt_NL2SP
16883
16884# An object symbol dumper.
16885OBJDUMP=$lt_OBJDUMP
16886
16887# Method to check whether dependent libraries are shared objects.
16888deplibs_check_method=$lt_deplibs_check_method
16889
16890# Command to use when deplibs_check_method == "file_magic".
16891file_magic_cmd=$lt_file_magic_cmd
16892
16893# The archiver.
16894AR=$lt_AR
16895AR_FLAGS=$lt_AR_FLAGS
16896
16897# A symbol stripping program.
16898STRIP=$lt_STRIP
16899
16900# Commands used to install an old-style archive.
16901RANLIB=$lt_RANLIB
16902old_postinstall_cmds=$lt_old_postinstall_cmds
16903old_postuninstall_cmds=$lt_old_postuninstall_cmds
16904
16905# Whether to use a lock for old archive extraction.
16906lock_old_archive_extraction=$lock_old_archive_extraction
16907
16908# A C compiler.
16909LTCC=$lt_CC
16910
16911# LTCC compiler flags.
16912LTCFLAGS=$lt_CFLAGS
16913
16914# Take the output of nm and produce a listing of raw symbols and C names.
16915global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16916
16917# Transform the output of nm in a proper C declaration.
16918global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16919
16920# Transform the output of nm in a C name address pair.
16921global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16922
16923# Transform the output of nm in a C name address pair when lib prefix is needed.
16924global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16925
16926# The name of the directory that contains temporary libtool files.
16927objdir=$objdir
16928
16929# Used to examine libraries when file_magic_cmd begins with "file".
16930MAGIC_CMD=$MAGIC_CMD
16931
16932# Must we lock files when doing compilation?
16933need_locks=$lt_need_locks
16934
16935# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16936DSYMUTIL=$lt_DSYMUTIL
16937
16938# Tool to change global to local symbols on Mac OS X.
16939NMEDIT=$lt_NMEDIT
16940
16941# Tool to manipulate fat objects and archives on Mac OS X.
16942LIPO=$lt_LIPO
16943
16944# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16945OTOOL=$lt_OTOOL
16946
16947# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16948OTOOL64=$lt_OTOOL64
16949
16950# Old archive suffix (normally "a").
16951libext=$libext
16952
16953# Shared library suffix (normally ".so").
16954shrext_cmds=$lt_shrext_cmds
16955
16956# The commands to extract the exported symbol list from a shared archive.
16957extract_expsyms_cmds=$lt_extract_expsyms_cmds
16958
16959# Variables whose values should be saved in libtool wrapper scripts and
16960# restored at link time.
16961variables_saved_for_relink=$lt_variables_saved_for_relink
16962
16963# Do we need the "lib" prefix for modules?
16964need_lib_prefix=$need_lib_prefix
16965
16966# Do we need a version for libraries?
16967need_version=$need_version
16968
16969# Library versioning type.
16970version_type=$version_type
16971
16972# Shared library runtime path variable.
16973runpath_var=$runpath_var
16974
16975# Shared library path variable.
16976shlibpath_var=$shlibpath_var
16977
16978# Is shlibpath searched before the hard-coded library search path?
16979shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16980
16981# Format of library name prefix.
16982libname_spec=$lt_libname_spec
16983
16984# List of archive names.  First name is the real one, the rest are links.
16985# The last name is the one that the linker finds with -lNAME
16986library_names_spec=$lt_library_names_spec
16987
16988# The coded name of the library, if different from the real name.
16989soname_spec=$lt_soname_spec
16990
16991# Permission mode override for installation of shared libraries.
16992install_override_mode=$lt_install_override_mode
16993
16994# Command to use after installation of a shared archive.
16995postinstall_cmds=$lt_postinstall_cmds
16996
16997# Command to use after uninstallation of a shared archive.
16998postuninstall_cmds=$lt_postuninstall_cmds
16999
17000# Commands used to finish a libtool library installation in a directory.
17001finish_cmds=$lt_finish_cmds
17002
17003# As "finish_cmds", except a single script fragment to be evaled but
17004# not shown.
17005finish_eval=$lt_finish_eval
17006
17007# Whether we should hardcode library paths into libraries.
17008hardcode_into_libs=$hardcode_into_libs
17009
17010# Compile-time system search path for libraries.
17011sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17012
17013# Run-time system search path for libraries.
17014sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17015
17016# Whether dlopen is supported.
17017dlopen_support=$enable_dlopen
17018
17019# Whether dlopen of programs is supported.
17020dlopen_self=$enable_dlopen_self
17021
17022# Whether dlopen of statically linked programs is supported.
17023dlopen_self_static=$enable_dlopen_self_static
17024
17025# Commands to strip libraries.
17026old_striplib=$lt_old_striplib
17027striplib=$lt_striplib
17028
17029
17030# The linker used to build libraries.
17031LD=$lt_LD
17032
17033# How to create reloadable object files.
17034reload_flag=$lt_reload_flag
17035reload_cmds=$lt_reload_cmds
17036
17037# Commands used to build an old-style archive.
17038old_archive_cmds=$lt_old_archive_cmds
17039
17040# A language specific compiler.
17041CC=$lt_compiler
17042
17043# Is the compiler the GNU compiler?
17044with_gcc=$GCC
17045
17046# Compiler flag to turn off builtin functions.
17047no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17048
17049# How to pass a linker flag through the compiler.
17050wl=$lt_lt_prog_compiler_wl
17051
17052# Additional compiler flags for building library objects.
17053pic_flag=$lt_lt_prog_compiler_pic
17054
17055# Compiler flag to prevent dynamic linking.
17056link_static_flag=$lt_lt_prog_compiler_static
17057
17058# Does compiler simultaneously support -c and -o options?
17059compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17060
17061# Whether or not to add -lc for building shared libraries.
17062build_libtool_need_lc=$archive_cmds_need_lc
17063
17064# Whether or not to disallow shared libs when runtime libs are static.
17065allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17066
17067# Compiler flag to allow reflexive dlopens.
17068export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17069
17070# Compiler flag to generate shared objects directly from archives.
17071whole_archive_flag_spec=$lt_whole_archive_flag_spec
17072
17073# Whether the compiler copes with passing no objects directly.
17074compiler_needs_object=$lt_compiler_needs_object
17075
17076# Create an old-style archive from a shared archive.
17077old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17078
17079# Create a temporary old-style archive to link instead of a shared archive.
17080old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17081
17082# Commands used to build a shared archive.
17083archive_cmds=$lt_archive_cmds
17084archive_expsym_cmds=$lt_archive_expsym_cmds
17085
17086# Commands used to build a loadable module if different from building
17087# a shared archive.
17088module_cmds=$lt_module_cmds
17089module_expsym_cmds=$lt_module_expsym_cmds
17090
17091# Whether we are building with GNU ld or not.
17092with_gnu_ld=$lt_with_gnu_ld
17093
17094# Flag that allows shared libraries with undefined symbols to be built.
17095allow_undefined_flag=$lt_allow_undefined_flag
17096
17097# Flag that enforces no undefined symbols.
17098no_undefined_flag=$lt_no_undefined_flag
17099
17100# Flag to hardcode \$libdir into a binary during linking.
17101# This must work even if \$libdir does not exist
17102hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17103
17104# If ld is used when linking, flag to hardcode \$libdir into a binary
17105# during linking.  This must work even if \$libdir does not exist.
17106hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17107
17108# Whether we need a single "-rpath" flag with a separated argument.
17109hardcode_libdir_separator=$lt_hardcode_libdir_separator
17110
17111# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17112# DIR into the resulting binary.
17113hardcode_direct=$hardcode_direct
17114
17115# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17116# DIR into the resulting binary and the resulting library dependency is
17117# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17118# library is relocated.
17119hardcode_direct_absolute=$hardcode_direct_absolute
17120
17121# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17122# into the resulting binary.
17123hardcode_minus_L=$hardcode_minus_L
17124
17125# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17126# into the resulting binary.
17127hardcode_shlibpath_var=$hardcode_shlibpath_var
17128
17129# Set to "yes" if building a shared library automatically hardcodes DIR
17130# into the library and all subsequent libraries and executables linked
17131# against it.
17132hardcode_automatic=$hardcode_automatic
17133
17134# Set to yes if linker adds runtime paths of dependent libraries
17135# to runtime path list.
17136inherit_rpath=$inherit_rpath
17137
17138# Whether libtool must link a program against all its dependency libraries.
17139link_all_deplibs=$link_all_deplibs
17140
17141# Fix the shell variable \$srcfile for the compiler.
17142fix_srcfile_path=$lt_fix_srcfile_path
17143
17144# Set to "yes" if exported symbols are required.
17145always_export_symbols=$always_export_symbols
17146
17147# The commands to list exported symbols.
17148export_symbols_cmds=$lt_export_symbols_cmds
17149
17150# Symbols that should not be listed in the preloaded symbols.
17151exclude_expsyms=$lt_exclude_expsyms
17152
17153# Symbols that must always be exported.
17154include_expsyms=$lt_include_expsyms
17155
17156# Commands necessary for linking programs (against libraries) with templates.
17157prelink_cmds=$lt_prelink_cmds
17158
17159# Specify filename containing input files.
17160file_list_spec=$lt_file_list_spec
17161
17162# How to hardcode a shared library path into an executable.
17163hardcode_action=$hardcode_action
17164
17165# ### END LIBTOOL CONFIG
17166
17167_LT_EOF
17168
17169  case $host_os in
17170  aix3*)
17171    cat <<\_LT_EOF >> "$cfgfile"
17172# AIX sometimes has problems with the GCC collect2 program.  For some
17173# reason, if we set the COLLECT_NAMES environment variable, the problems
17174# vanish in a puff of smoke.
17175if test "X${COLLECT_NAMES+set}" != Xset; then
17176  COLLECT_NAMES=
17177  export COLLECT_NAMES
17178fi
17179_LT_EOF
17180    ;;
17181  esac
17182
17183
17184ltmain="$ac_aux_dir/ltmain.sh"
17185
17186
17187  # We use sed instead of cat because bash on DJGPP gets confused if
17188  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17189  # text mode, it properly converts lines to CR/LF.  This bash problem
17190  # is reportedly fixed, but why not run on old versions too?
17191  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17192    || (rm -f "$cfgfile"; exit 1)
17193
17194  case $xsi_shell in
17195  yes)
17196    cat << \_LT_EOF >> "$cfgfile"
17197
17198# func_dirname file append nondir_replacement
17199# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17200# otherwise set result to NONDIR_REPLACEMENT.
17201func_dirname ()
17202{
17203  case ${1} in
17204    */*) func_dirname_result="${1%/*}${2}" ;;
17205    *  ) func_dirname_result="${3}" ;;
17206  esac
17207}
17208
17209# func_basename file
17210func_basename ()
17211{
17212  func_basename_result="${1##*/}"
17213}
17214
17215# func_dirname_and_basename file append nondir_replacement
17216# perform func_basename and func_dirname in a single function
17217# call:
17218#   dirname:  Compute the dirname of FILE.  If nonempty,
17219#             add APPEND to the result, otherwise set result
17220#             to NONDIR_REPLACEMENT.
17221#             value returned in "$func_dirname_result"
17222#   basename: Compute filename of FILE.
17223#             value retuned in "$func_basename_result"
17224# Implementation must be kept synchronized with func_dirname
17225# and func_basename. For efficiency, we do not delegate to
17226# those functions but instead duplicate the functionality here.
17227func_dirname_and_basename ()
17228{
17229  case ${1} in
17230    */*) func_dirname_result="${1%/*}${2}" ;;
17231    *  ) func_dirname_result="${3}" ;;
17232  esac
17233  func_basename_result="${1##*/}"
17234}
17235
17236# func_stripname prefix suffix name
17237# strip PREFIX and SUFFIX off of NAME.
17238# PREFIX and SUFFIX must not contain globbing or regex special
17239# characters, hashes, percent signs, but SUFFIX may contain a leading
17240# dot (in which case that matches only a dot).
17241func_stripname ()
17242{
17243  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17244  # positional parameters, so assign one to ordinary parameter first.
17245  func_stripname_result=${3}
17246  func_stripname_result=${func_stripname_result#"${1}"}
17247  func_stripname_result=${func_stripname_result%"${2}"}
17248}
17249
17250# func_opt_split
17251func_opt_split ()
17252{
17253  func_opt_split_opt=${1%%=*}
17254  func_opt_split_arg=${1#*=}
17255}
17256
17257# func_lo2o object
17258func_lo2o ()
17259{
17260  case ${1} in
17261    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17262    *)    func_lo2o_result=${1} ;;
17263  esac
17264}
17265
17266# func_xform libobj-or-source
17267func_xform ()
17268{
17269  func_xform_result=${1%.*}.lo
17270}
17271
17272# func_arith arithmetic-term...
17273func_arith ()
17274{
17275  func_arith_result=$(( $* ))
17276}
17277
17278# func_len string
17279# STRING may not start with a hyphen.
17280func_len ()
17281{
17282  func_len_result=${#1}
17283}
17284
17285_LT_EOF
17286    ;;
17287  *) # Bourne compatible functions.
17288    cat << \_LT_EOF >> "$cfgfile"
17289
17290# func_dirname file append nondir_replacement
17291# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17292# otherwise set result to NONDIR_REPLACEMENT.
17293func_dirname ()
17294{
17295  # Extract subdirectory from the argument.
17296  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17297  if test "X$func_dirname_result" = "X${1}"; then
17298    func_dirname_result="${3}"
17299  else
17300    func_dirname_result="$func_dirname_result${2}"
17301  fi
17302}
17303
17304# func_basename file
17305func_basename ()
17306{
17307  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17308}
17309
17310
17311# func_stripname prefix suffix name
17312# strip PREFIX and SUFFIX off of NAME.
17313# PREFIX and SUFFIX must not contain globbing or regex special
17314# characters, hashes, percent signs, but SUFFIX may contain a leading
17315# dot (in which case that matches only a dot).
17316# func_strip_suffix prefix name
17317func_stripname ()
17318{
17319  case ${2} in
17320    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17321    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17322  esac
17323}
17324
17325# sed scripts:
17326my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17327my_sed_long_arg='1s/^-[^=]*=//'
17328
17329# func_opt_split
17330func_opt_split ()
17331{
17332  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17333  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17334}
17335
17336# func_lo2o object
17337func_lo2o ()
17338{
17339  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17340}
17341
17342# func_xform libobj-or-source
17343func_xform ()
17344{
17345  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17346}
17347
17348# func_arith arithmetic-term...
17349func_arith ()
17350{
17351  func_arith_result=`expr "$@"`
17352}
17353
17354# func_len string
17355# STRING may not start with a hyphen.
17356func_len ()
17357{
17358  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17359}
17360
17361_LT_EOF
17362esac
17363
17364case $lt_shell_append in
17365  yes)
17366    cat << \_LT_EOF >> "$cfgfile"
17367
17368# func_append var value
17369# Append VALUE to the end of shell variable VAR.
17370func_append ()
17371{
17372  eval "$1+=\$2"
17373}
17374_LT_EOF
17375    ;;
17376  *)
17377    cat << \_LT_EOF >> "$cfgfile"
17378
17379# func_append var value
17380# Append VALUE to the end of shell variable VAR.
17381func_append ()
17382{
17383  eval "$1=\$$1\$2"
17384}
17385
17386_LT_EOF
17387    ;;
17388  esac
17389
17390
17391  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17392    || (rm -f "$cfgfile"; exit 1)
17393
17394  mv -f "$cfgfile" "$ofile" ||
17395    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17396  chmod +x "$ofile"
17397
17398 ;;
17399
17400  esac
17401done # for ac_tag
17402
17403
17404as_fn_exit 0
17405_ACEOF
17406ac_clean_files=$ac_clean_files_save
17407
17408test $ac_write_fail = 0 ||
17409  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17410
17411
17412# configure is writing to config.log, and then calls config.status.
17413# config.status does its own redirection, appending to config.log.
17414# Unfortunately, on DOS this fails, as config.log is still kept open
17415# by configure, so config.status won't be able to write to it; its
17416# output is simply discarded.  So we exec the FD to /dev/null,
17417# effectively closing config.log, so it can be properly (re)opened and
17418# appended to by config.status.  When coming back to configure, we
17419# need to make the FD available again.
17420if test "$no_create" != yes; then
17421  ac_cs_success=:
17422  ac_config_status_args=
17423  test "$silent" = yes &&
17424    ac_config_status_args="$ac_config_status_args --quiet"
17425  exec 5>/dev/null
17426  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17427  exec 5>>config.log
17428  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17429  # would make configure fail if this is the last instruction.
17430  $ac_cs_success || as_fn_exit 1
17431fi
17432if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17433  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17434$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17435fi
17436
17437
17438
17439touch config.status.tmp
17440if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17441  sed '/as_fn_exit 0/i \
17442sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17443touch --reference=Makefile Makefile.tmp \
17444mv Makefile.tmp Makefile \
17445' config.status > config.status.tmp
17446  touch --reference=config.status config.status.tmp
17447  mv config.status.tmp config.status
17448  chmod +x config.status
17449  sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17450  touch --reference=Makefile Makefile.tmp
17451  mv Makefile.tmp Makefile
17452else
17453  rm -f config.status.tmp
17454fi
17455