xref: /libev/configure (revision 93823e6c)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || 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 [email protected] 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=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="ev_epoll.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636CPP
637OTOOL64
638OTOOL
639LIPO
640NMEDIT
641DSYMUTIL
642MANIFEST_TOOL
643RANLIB
644ac_ct_AR
645AR
646DLLTOOL
647OBJDUMP
648LN_S
649NM
650ac_ct_DUMPBIN
651DUMPBIN
652LD
653FGREP
654EGREP
655GREP
656SED
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665LIBTOOL
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683MAINT
684MAINTAINER_MODE_FALSE
685MAINTAINER_MODE_TRUE
686AM_BACKSLASH
687AM_DEFAULT_VERBOSITY
688AM_DEFAULT_V
689AM_V
690am__untar
691am__tar
692AMTAR
693am__leading_dot
694SET_MAKE
695AWK
696mkdir_p
697MKDIR_P
698INSTALL_STRIP_PROGRAM
699STRIP
700install_sh
701MAKEINFO
702AUTOHEADER
703AUTOMAKE
704AUTOCONF
705ACLOCAL
706VERSION
707PACKAGE
708CYGPATH_W
709am__isrc
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL'
751ac_subst_files=''
752ac_user_opts='
753enable_option_checking
754enable_silent_rules
755enable_maintainer_mode
756enable_dependency_tracking
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761with_gnu_ld
762with_sysroot
763enable_libtool_lock
764'
765      ac_precious_vars='build_alias
766host_alias
767target_alias
768CC
769CFLAGS
770LDFLAGS
771LIBS
772CPPFLAGS
773CPP'
774
775
776# Initialize some variables set by options.
777ac_init_help=
778ac_init_version=false
779ac_unrecognized_opts=
780ac_unrecognized_sep=
781# The variables have the same names as the options, with
782# dashes changed to underlines.
783cache_file=/dev/null
784exec_prefix=NONE
785no_create=
786no_recursion=
787prefix=NONE
788program_prefix=NONE
789program_suffix=NONE
790program_transform_name=s,x,x,
791silent=
792site=
793srcdir=
794verbose=
795x_includes=NONE
796x_libraries=NONE
797
798# Installation directory options.
799# These are left unexpanded so users can "make install exec_prefix=/foo"
800# and all the variables that are supposed to be based on exec_prefix
801# by default will actually change.
802# Use braces instead of parens because sh, perl, etc. also accept them.
803# (The list follows the same order as the GNU Coding Standards.)
804bindir='${exec_prefix}/bin'
805sbindir='${exec_prefix}/sbin'
806libexecdir='${exec_prefix}/libexec'
807datarootdir='${prefix}/share'
808datadir='${datarootdir}'
809sysconfdir='${prefix}/etc'
810sharedstatedir='${prefix}/com'
811localstatedir='${prefix}/var'
812includedir='${prefix}/include'
813oldincludedir='/usr/include'
814docdir='${datarootdir}/doc/${PACKAGE}'
815infodir='${datarootdir}/info'
816htmldir='${docdir}'
817dvidir='${docdir}'
818pdfdir='${docdir}'
819psdir='${docdir}'
820libdir='${exec_prefix}/lib'
821localedir='${datarootdir}/locale'
822mandir='${datarootdir}/man'
823
824ac_prev=
825ac_dashdash=
826for ac_option
827do
828  # If the previous option needs an argument, assign it.
829  if test -n "$ac_prev"; then
830    eval $ac_prev=\$ac_option
831    ac_prev=
832    continue
833  fi
834
835  case $ac_option in
836  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837  *=)   ac_optarg= ;;
838  *)    ac_optarg=yes ;;
839  esac
840
841  # Accept the important Cygnus configure options, so we can diagnose typos.
842
843  case $ac_dashdash$ac_option in
844  --)
845    ac_dashdash=yes ;;
846
847  -bindir | --bindir | --bindi | --bind | --bin | --bi)
848    ac_prev=bindir ;;
849  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850    bindir=$ac_optarg ;;
851
852  -build | --build | --buil | --bui | --bu)
853    ac_prev=build_alias ;;
854  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855    build_alias=$ac_optarg ;;
856
857  -cache-file | --cache-file | --cache-fil | --cache-fi \
858  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859    ac_prev=cache_file ;;
860  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862    cache_file=$ac_optarg ;;
863
864  --config-cache | -C)
865    cache_file=config.cache ;;
866
867  -datadir | --datadir | --datadi | --datad)
868    ac_prev=datadir ;;
869  -datadir=* | --datadir=* | --datadi=* | --datad=*)
870    datadir=$ac_optarg ;;
871
872  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873  | --dataroo | --dataro | --datar)
874    ac_prev=datarootdir ;;
875  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877    datarootdir=$ac_optarg ;;
878
879  -disable-* | --disable-*)
880    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881    # Reject names that are not valid shell variable names.
882    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883      as_fn_error $? "invalid feature name: $ac_useropt"
884    ac_useropt_orig=$ac_useropt
885    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886    case $ac_user_opts in
887      *"
888"enable_$ac_useropt"
889"*) ;;
890      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891	 ac_unrecognized_sep=', ';;
892    esac
893    eval enable_$ac_useropt=no ;;
894
895  -docdir | --docdir | --docdi | --doc | --do)
896    ac_prev=docdir ;;
897  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898    docdir=$ac_optarg ;;
899
900  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901    ac_prev=dvidir ;;
902  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903    dvidir=$ac_optarg ;;
904
905  -enable-* | --enable-*)
906    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907    # Reject names that are not valid shell variable names.
908    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909      as_fn_error $? "invalid feature name: $ac_useropt"
910    ac_useropt_orig=$ac_useropt
911    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912    case $ac_user_opts in
913      *"
914"enable_$ac_useropt"
915"*) ;;
916      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917	 ac_unrecognized_sep=', ';;
918    esac
919    eval enable_$ac_useropt=\$ac_optarg ;;
920
921  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923  | --exec | --exe | --ex)
924    ac_prev=exec_prefix ;;
925  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927  | --exec=* | --exe=* | --ex=*)
928    exec_prefix=$ac_optarg ;;
929
930  -gas | --gas | --ga | --g)
931    # Obsolete; use --with-gas.
932    with_gas=yes ;;
933
934  -help | --help | --hel | --he | -h)
935    ac_init_help=long ;;
936  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937    ac_init_help=recursive ;;
938  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939    ac_init_help=short ;;
940
941  -host | --host | --hos | --ho)
942    ac_prev=host_alias ;;
943  -host=* | --host=* | --hos=* | --ho=*)
944    host_alias=$ac_optarg ;;
945
946  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947    ac_prev=htmldir ;;
948  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949  | --ht=*)
950    htmldir=$ac_optarg ;;
951
952  -includedir | --includedir | --includedi | --included | --include \
953  | --includ | --inclu | --incl | --inc)
954    ac_prev=includedir ;;
955  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956  | --includ=* | --inclu=* | --incl=* | --inc=*)
957    includedir=$ac_optarg ;;
958
959  -infodir | --infodir | --infodi | --infod | --info | --inf)
960    ac_prev=infodir ;;
961  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962    infodir=$ac_optarg ;;
963
964  -libdir | --libdir | --libdi | --libd)
965    ac_prev=libdir ;;
966  -libdir=* | --libdir=* | --libdi=* | --libd=*)
967    libdir=$ac_optarg ;;
968
969  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970  | --libexe | --libex | --libe)
971    ac_prev=libexecdir ;;
972  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973  | --libexe=* | --libex=* | --libe=*)
974    libexecdir=$ac_optarg ;;
975
976  -localedir | --localedir | --localedi | --localed | --locale)
977    ac_prev=localedir ;;
978  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979    localedir=$ac_optarg ;;
980
981  -localstatedir | --localstatedir | --localstatedi | --localstated \
982  | --localstate | --localstat | --localsta | --localst | --locals)
983    ac_prev=localstatedir ;;
984  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986    localstatedir=$ac_optarg ;;
987
988  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989    ac_prev=mandir ;;
990  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991    mandir=$ac_optarg ;;
992
993  -nfp | --nfp | --nf)
994    # Obsolete; use --without-fp.
995    with_fp=no ;;
996
997  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998  | --no-cr | --no-c | -n)
999    no_create=yes ;;
1000
1001  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003    no_recursion=yes ;;
1004
1005  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007  | --oldin | --oldi | --old | --ol | --o)
1008    ac_prev=oldincludedir ;;
1009  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012    oldincludedir=$ac_optarg ;;
1013
1014  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015    ac_prev=prefix ;;
1016  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017    prefix=$ac_optarg ;;
1018
1019  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020  | --program-pre | --program-pr | --program-p)
1021    ac_prev=program_prefix ;;
1022  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024    program_prefix=$ac_optarg ;;
1025
1026  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027  | --program-suf | --program-su | --program-s)
1028    ac_prev=program_suffix ;;
1029  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031    program_suffix=$ac_optarg ;;
1032
1033  -program-transform-name | --program-transform-name \
1034  | --program-transform-nam | --program-transform-na \
1035  | --program-transform-n | --program-transform- \
1036  | --program-transform | --program-transfor \
1037  | --program-transfo | --program-transf \
1038  | --program-trans | --program-tran \
1039  | --progr-tra | --program-tr | --program-t)
1040    ac_prev=program_transform_name ;;
1041  -program-transform-name=* | --program-transform-name=* \
1042  | --program-transform-nam=* | --program-transform-na=* \
1043  | --program-transform-n=* | --program-transform-=* \
1044  | --program-transform=* | --program-transfor=* \
1045  | --program-transfo=* | --program-transf=* \
1046  | --program-trans=* | --program-tran=* \
1047  | --progr-tra=* | --program-tr=* | --program-t=*)
1048    program_transform_name=$ac_optarg ;;
1049
1050  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051    ac_prev=pdfdir ;;
1052  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053    pdfdir=$ac_optarg ;;
1054
1055  -psdir | --psdir | --psdi | --psd | --ps)
1056    ac_prev=psdir ;;
1057  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058    psdir=$ac_optarg ;;
1059
1060  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061  | -silent | --silent | --silen | --sile | --sil)
1062    silent=yes ;;
1063
1064  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065    ac_prev=sbindir ;;
1066  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067  | --sbi=* | --sb=*)
1068    sbindir=$ac_optarg ;;
1069
1070  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072  | --sharedst | --shareds | --shared | --share | --shar \
1073  | --sha | --sh)
1074    ac_prev=sharedstatedir ;;
1075  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078  | --sha=* | --sh=*)
1079    sharedstatedir=$ac_optarg ;;
1080
1081  -site | --site | --sit)
1082    ac_prev=site ;;
1083  -site=* | --site=* | --sit=*)
1084    site=$ac_optarg ;;
1085
1086  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087    ac_prev=srcdir ;;
1088  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089    srcdir=$ac_optarg ;;
1090
1091  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092  | --syscon | --sysco | --sysc | --sys | --sy)
1093    ac_prev=sysconfdir ;;
1094  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096    sysconfdir=$ac_optarg ;;
1097
1098  -target | --target | --targe | --targ | --tar | --ta | --t)
1099    ac_prev=target_alias ;;
1100  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101    target_alias=$ac_optarg ;;
1102
1103  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104    verbose=yes ;;
1105
1106  -version | --version | --versio | --versi | --vers | -V)
1107    ac_init_version=: ;;
1108
1109  -with-* | --with-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error $? "invalid package name: $ac_useropt"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"with_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval with_$ac_useropt=\$ac_optarg ;;
1124
1125  -without-* | --without-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=no ;;
1140
1141  --x)
1142    # Obsolete; use --with-x.
1143    with_x=yes ;;
1144
1145  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146  | --x-incl | --x-inc | --x-in | --x-i)
1147    ac_prev=x_includes ;;
1148  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150    x_includes=$ac_optarg ;;
1151
1152  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154    ac_prev=x_libraries ;;
1155  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157    x_libraries=$ac_optarg ;;
1158
1159  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160Try \`$0 --help' for more information"
1161    ;;
1162
1163  *=*)
1164    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165    # Reject names that are not valid shell variable names.
1166    case $ac_envvar in #(
1167      '' | [0-9]* | *[!_$as_cr_alnum]* )
1168      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169    esac
1170    eval $ac_envvar=\$ac_optarg
1171    export $ac_envvar ;;
1172
1173  *)
1174    # FIXME: should be removed in autoconf 3.0.
1175    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179    ;;
1180
1181  esac
1182done
1183
1184if test -n "$ac_prev"; then
1185  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186  as_fn_error $? "missing argument to $ac_option"
1187fi
1188
1189if test -n "$ac_unrecognized_opts"; then
1190  case $enable_option_checking in
1191    no) ;;
1192    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194  esac
1195fi
1196
1197# Check all directory arguments for consistency.
1198for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199		datadir sysconfdir sharedstatedir localstatedir includedir \
1200		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201		libdir localedir mandir
1202do
1203  eval ac_val=\$$ac_var
1204  # Remove trailing slashes.
1205  case $ac_val in
1206    */ )
1207      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208      eval $ac_var=\$ac_val;;
1209  esac
1210  # Be sure to have absolute directory names.
1211  case $ac_val in
1212    [\\/$]* | ?:[\\/]* )  continue;;
1213    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214  esac
1215  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227  if test "x$build_alias" = x; then
1228    cross_compiling=maybe
1229  elif test "x$build_alias" != "x$host_alias"; then
1230    cross_compiling=yes
1231  fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
1240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243  as_fn_error $? "working directory cannot be determined"
1244test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245  as_fn_error $? "pwd does not report name of working directory"
1246
1247
1248# Find the source files, if location was not specified.
1249if test -z "$srcdir"; then
1250  ac_srcdir_defaulted=yes
1251  # Try the directory containing this script, then the parent directory.
1252  ac_confdir=`$as_dirname -- "$as_myself" ||
1253$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254	 X"$as_myself" : 'X\(//\)[^/]' \| \
1255	 X"$as_myself" : 'X\(//\)$' \| \
1256	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257$as_echo X"$as_myself" |
1258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\/\)[^/].*/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\/\)$/{
1267	    s//\1/
1268	    q
1269	  }
1270	  /^X\(\/\).*/{
1271	    s//\1/
1272	    q
1273	  }
1274	  s/.*/./; q'`
1275  srcdir=$ac_confdir
1276  if test ! -r "$srcdir/$ac_unique_file"; then
1277    srcdir=..
1278  fi
1279else
1280  ac_srcdir_defaulted=no
1281fi
1282if test ! -r "$srcdir/$ac_unique_file"; then
1283  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285fi
1286ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287ac_abs_confdir=`(
1288	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289	pwd)`
1290# When building in place, set srcdir=.
1291if test "$ac_abs_confdir" = "$ac_pwd"; then
1292  srcdir=.
1293fi
1294# Remove unnecessary trailing slashes from srcdir.
1295# Double slashes in file names in object file debugging info
1296# mess up M-x gdb in Emacs.
1297case $srcdir in
1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299esac
1300for ac_var in $ac_precious_vars; do
1301  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302  eval ac_env_${ac_var}_value=\$${ac_var}
1303  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305done
1306
1307#
1308# Report the --help message.
1309#
1310if test "$ac_init_help" = "long"; then
1311  # Omit some internal or obsolete options to make the list less imposing.
1312  # This message is too long to be a string in the A/UX 3.1 sh.
1313  cat <<_ACEOF
1314\`configure' configures this package to adapt to many kinds of systems.
1315
1316Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319VAR=VALUE.  See below for descriptions of some of the useful variables.
1320
1321Defaults for the options are specified in brackets.
1322
1323Configuration:
1324  -h, --help              display this help and exit
1325      --help=short        display options specific to this package
1326      --help=recursive    display the short help of all the included packages
1327  -V, --version           display version information and exit
1328  -q, --quiet, --silent   do not print \`checking ...' messages
1329      --cache-file=FILE   cache test results in FILE [disabled]
1330  -C, --config-cache      alias for \`--cache-file=config.cache'
1331  -n, --no-create         do not create output files
1332      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1333
1334Installation directories:
1335  --prefix=PREFIX         install architecture-independent files in PREFIX
1336                          [$ac_default_prefix]
1337  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1338                          [PREFIX]
1339
1340By default, \`make install' will install all the files in
1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1342an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343for instance \`--prefix=\$HOME'.
1344
1345For better control, use the options below.
1346
1347Fine tuning of the installation directories:
1348  --bindir=DIR            user executables [EPREFIX/bin]
1349  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1350  --libexecdir=DIR        program executables [EPREFIX/libexec]
1351  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1352  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1353  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1354  --libdir=DIR            object code libraries [EPREFIX/lib]
1355  --includedir=DIR        C header files [PREFIX/include]
1356  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1357  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1358  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1359  --infodir=DIR           info documentation [DATAROOTDIR/info]
1360  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1361  --mandir=DIR            man documentation [DATAROOTDIR/man]
1362  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1363  --htmldir=DIR           html documentation [DOCDIR]
1364  --dvidir=DIR            dvi documentation [DOCDIR]
1365  --pdfdir=DIR            pdf documentation [DOCDIR]
1366  --psdir=DIR             ps documentation [DOCDIR]
1367_ACEOF
1368
1369  cat <<\_ACEOF
1370
1371Program names:
1372  --program-prefix=PREFIX            prepend PREFIX to installed program names
1373  --program-suffix=SUFFIX            append SUFFIX to installed program names
1374  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1375
1376System types:
1377  --build=BUILD     configure for building on BUILD [guessed]
1378  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383
1384  cat <<\_ACEOF
1385
1386Optional Features:
1387  --disable-option-checking  ignore unrecognized --enable/--with options
1388  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390  --enable-silent-rules   less verbose build output (undo: "make V=1")
1391  --disable-silent-rules  verbose build output (undo: "make V=0")
1392  --enable-maintainer-mode
1393                          enable make rules and dependencies not useful (and
1394                          sometimes confusing) to the casual installer
1395  --enable-dependency-tracking
1396                          do not reject slow dependency extractors
1397  --disable-dependency-tracking
1398                          speeds up one-time build
1399  --enable-shared[=PKGS]  build shared libraries [default=yes]
1400  --enable-static[=PKGS]  build static libraries [default=yes]
1401  --enable-fast-install[=PKGS]
1402                          optimize for fast installation [default=yes]
1403  --disable-libtool-lock  avoid locking (might break parallel builds)
1404
1405Optional Packages:
1406  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1407  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1408  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1409                          both]
1410  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1411  --with-sysroot=DIR Search for dependent libraries within DIR
1412                        (or the compiler's sysroot if not specified).
1413
1414Some influential environment variables:
1415  CC          C compiler command
1416  CFLAGS      C compiler flags
1417  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418              nonstandard directory <lib dir>
1419  LIBS        libraries to pass to the linker, e.g. -l<library>
1420  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421              you have headers in a nonstandard directory <include dir>
1422  CPP         C preprocessor
1423
1424Use these variables to override the choices made by `configure' or to help
1425it to find libraries and programs with nonstandard names/locations.
1426
1427Report bugs to the package provider.
1428_ACEOF
1429ac_status=$?
1430fi
1431
1432if test "$ac_init_help" = "recursive"; then
1433  # If there are subdirs, report their specific --help.
1434  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435    test -d "$ac_dir" ||
1436      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437      continue
1438    ac_builddir=.
1439
1440case "$ac_dir" in
1441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442*)
1443  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444  # A ".." for each directory in $ac_dir_suffix.
1445  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446  case $ac_top_builddir_sub in
1447  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449  esac ;;
1450esac
1451ac_abs_top_builddir=$ac_pwd
1452ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453# for backward compatibility:
1454ac_top_builddir=$ac_top_build_prefix
1455
1456case $srcdir in
1457  .)  # We are building in place.
1458    ac_srcdir=.
1459    ac_top_srcdir=$ac_top_builddir_sub
1460    ac_abs_top_srcdir=$ac_pwd ;;
1461  [\\/]* | ?:[\\/]* )  # Absolute name.
1462    ac_srcdir=$srcdir$ac_dir_suffix;
1463    ac_top_srcdir=$srcdir
1464    ac_abs_top_srcdir=$srcdir ;;
1465  *) # Relative name.
1466    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467    ac_top_srcdir=$ac_top_build_prefix$srcdir
1468    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469esac
1470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472    cd "$ac_dir" || { ac_status=$?; continue; }
1473    # Check for guested configure.
1474    if test -f "$ac_srcdir/configure.gnu"; then
1475      echo &&
1476      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477    elif test -f "$ac_srcdir/configure"; then
1478      echo &&
1479      $SHELL "$ac_srcdir/configure" --help=recursive
1480    else
1481      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482    fi || ac_status=$?
1483    cd "$ac_pwd" || { ac_status=$?; break; }
1484  done
1485fi
1486
1487test -n "$ac_init_help" && exit $ac_status
1488if $ac_init_version; then
1489  cat <<\_ACEOF
1490configure
1491generated by GNU Autoconf 2.69
1492
1493Copyright (C) 2012 Free Software Foundation, Inc.
1494This configure script is free software; the Free Software Foundation
1495gives unlimited permission to copy, distribute and modify it.
1496_ACEOF
1497  exit
1498fi
1499
1500## ------------------------ ##
1501## Autoconf initialization. ##
1502## ------------------------ ##
1503
1504# ac_fn_c_try_compile LINENO
1505# --------------------------
1506# Try to compile conftest.$ac_ext, and return whether this succeeded.
1507ac_fn_c_try_compile ()
1508{
1509  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510  rm -f conftest.$ac_objext
1511  if { { ac_try="$ac_compile"
1512case "(($ac_try" in
1513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514  *) ac_try_echo=$ac_try;;
1515esac
1516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517$as_echo "$ac_try_echo"; } >&5
1518  (eval "$ac_compile") 2>conftest.err
1519  ac_status=$?
1520  if test -s conftest.err; then
1521    grep -v '^ *+' conftest.err >conftest.er1
1522    cat conftest.er1 >&5
1523    mv -f conftest.er1 conftest.err
1524  fi
1525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526  test $ac_status = 0; } && {
1527	 test -z "$ac_c_werror_flag" ||
1528	 test ! -s conftest.err
1529       } && test -s conftest.$ac_objext; then :
1530  ac_retval=0
1531else
1532  $as_echo "$as_me: failed program was:" >&5
1533sed 's/^/| /' conftest.$ac_ext >&5
1534
1535	ac_retval=1
1536fi
1537  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538  as_fn_set_status $ac_retval
1539
1540} # ac_fn_c_try_compile
1541
1542# ac_fn_c_try_link LINENO
1543# -----------------------
1544# Try to link conftest.$ac_ext, and return whether this succeeded.
1545ac_fn_c_try_link ()
1546{
1547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548  rm -f conftest.$ac_objext conftest$ac_exeext
1549  if { { ac_try="$ac_link"
1550case "(($ac_try" in
1551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552  *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556  (eval "$ac_link") 2>conftest.err
1557  ac_status=$?
1558  if test -s conftest.err; then
1559    grep -v '^ *+' conftest.err >conftest.er1
1560    cat conftest.er1 >&5
1561    mv -f conftest.er1 conftest.err
1562  fi
1563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564  test $ac_status = 0; } && {
1565	 test -z "$ac_c_werror_flag" ||
1566	 test ! -s conftest.err
1567       } && test -s conftest$ac_exeext && {
1568	 test "$cross_compiling" = yes ||
1569	 test -x conftest$ac_exeext
1570       }; then :
1571  ac_retval=0
1572else
1573  $as_echo "$as_me: failed program was:" >&5
1574sed 's/^/| /' conftest.$ac_ext >&5
1575
1576	ac_retval=1
1577fi
1578  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1579  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1580  # interfere with the next link command; also delete a directory that is
1581  # left behind by Apple's compiler.  We do this before executing the actions.
1582  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1583  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584  as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_link
1587
1588# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1589# -------------------------------------------------------
1590# Tests whether HEADER exists and can be compiled using the include files in
1591# INCLUDES, setting the cache variable VAR accordingly.
1592ac_fn_c_check_header_compile ()
1593{
1594  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596$as_echo_n "checking for $2... " >&6; }
1597if eval \${$3+:} false; then :
1598  $as_echo_n "(cached) " >&6
1599else
1600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601/* end confdefs.h.  */
1602$4
1603#include <$2>
1604_ACEOF
1605if ac_fn_c_try_compile "$LINENO"; then :
1606  eval "$3=yes"
1607else
1608  eval "$3=no"
1609fi
1610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611fi
1612eval ac_res=\$$3
1613	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614$as_echo "$ac_res" >&6; }
1615  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616
1617} # ac_fn_c_check_header_compile
1618
1619# ac_fn_c_try_cpp LINENO
1620# ----------------------
1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_cpp ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  if { { ac_try="$ac_cpp conftest.$ac_ext"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633  ac_status=$?
1634  if test -s conftest.err; then
1635    grep -v '^ *+' conftest.err >conftest.er1
1636    cat conftest.er1 >&5
1637    mv -f conftest.er1 conftest.err
1638  fi
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } > conftest.i && {
1641	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642	 test ! -s conftest.err
1643       }; then :
1644  ac_retval=0
1645else
1646  $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649    ac_retval=1
1650fi
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652  as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_cpp
1655
1656# ac_fn_c_try_run LINENO
1657# ----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659# that executables *can* be run.
1660ac_fn_c_try_run ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_link") 2>&5
1671  ac_status=$?
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674  { { case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_try") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; }; }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: program exited with status $ac_status" >&5
1687       $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690       ac_retval=$ac_status
1691fi
1692  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_run
1697
1698# ac_fn_c_check_func LINENO FUNC VAR
1699# ----------------------------------
1700# Tests whether FUNC exists, setting the cache variable VAR accordingly
1701ac_fn_c_check_func ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705$as_echo_n "checking for $2... " >&6; }
1706if eval \${$3+:} false; then :
1707  $as_echo_n "(cached) " >&6
1708else
1709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710/* end confdefs.h.  */
1711/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1712   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1713#define $2 innocuous_$2
1714
1715/* System header to define __stub macros and hopefully few prototypes,
1716    which can conflict with char $2 (); below.
1717    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1718    <limits.h> exists even on freestanding compilers.  */
1719
1720#ifdef __STDC__
1721# include <limits.h>
1722#else
1723# include <assert.h>
1724#endif
1725
1726#undef $2
1727
1728/* Override any GCC internal prototype to avoid an error.
1729   Use char because int might match the return type of a GCC
1730   builtin and then its argument prototype would still apply.  */
1731#ifdef __cplusplus
1732extern "C"
1733#endif
1734char $2 ();
1735/* The GNU C library defines this for functions which it implements
1736    to always fail with ENOSYS.  Some functions are actually named
1737    something starting with __ and the normal name is an alias.  */
1738#if defined __stub_$2 || defined __stub___$2
1739choke me
1740#endif
1741
1742int
1743main ()
1744{
1745return $2 ();
1746  ;
1747  return 0;
1748}
1749_ACEOF
1750if ac_fn_c_try_link "$LINENO"; then :
1751  eval "$3=yes"
1752else
1753  eval "$3=no"
1754fi
1755rm -f core conftest.err conftest.$ac_objext \
1756    conftest$ac_exeext conftest.$ac_ext
1757fi
1758eval ac_res=\$$3
1759	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763} # ac_fn_c_check_func
1764
1765# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1766# -------------------------------------------------------
1767# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1768# the include files in INCLUDES and setting the cache variable VAR
1769# accordingly.
1770ac_fn_c_check_header_mongrel ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  if eval \${$3+:} false; then :
1774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
1776if eval \${$3+:} false; then :
1777  $as_echo_n "(cached) " >&6
1778fi
1779eval ac_res=\$$3
1780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782else
1783  # Is the header compilable?
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1785$as_echo_n "checking $2 usability... " >&6; }
1786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h.  */
1788$4
1789#include <$2>
1790_ACEOF
1791if ac_fn_c_try_compile "$LINENO"; then :
1792  ac_header_compiler=yes
1793else
1794  ac_header_compiler=no
1795fi
1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1798$as_echo "$ac_header_compiler" >&6; }
1799
1800# Is the header present?
1801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1802$as_echo_n "checking $2 presence... " >&6; }
1803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h.  */
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_cpp "$LINENO"; then :
1808  ac_header_preproc=yes
1809else
1810  ac_header_preproc=no
1811fi
1812rm -f conftest.err conftest.i conftest.$ac_ext
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1814$as_echo "$ac_header_preproc" >&6; }
1815
1816# So?  What about this header?
1817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1818  yes:no: )
1819    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1820$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1821    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823    ;;
1824  no:yes:* )
1825    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1826$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1827    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1828$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1829    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1830$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1831    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1832$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1833    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835    ;;
1836esac
1837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval \${$3+:} false; then :
1840  $as_echo_n "(cached) " >&6
1841else
1842  eval "$3=\$ac_header_compiler"
1843fi
1844eval ac_res=\$$3
1845	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
1847fi
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850} # ac_fn_c_check_header_mongrel
1851cat >config.log <<_ACEOF
1852This file contains any messages produced by compilers while
1853running configure, to aid debugging if configure makes a mistake.
1854
1855It was created by $as_me, which was
1856generated by GNU Autoconf 2.69.  Invocation command line was
1857
1858  $ $0 $@
1859
1860_ACEOF
1861exec 5>>config.log
1862{
1863cat <<_ASUNAME
1864## --------- ##
1865## Platform. ##
1866## --------- ##
1867
1868hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1869uname -m = `(uname -m) 2>/dev/null || echo unknown`
1870uname -r = `(uname -r) 2>/dev/null || echo unknown`
1871uname -s = `(uname -s) 2>/dev/null || echo unknown`
1872uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873
1874/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1875/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1876
1877/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1878/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1879/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1880/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1881/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1882/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1883/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1884
1885_ASUNAME
1886
1887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888for as_dir in $PATH
1889do
1890  IFS=$as_save_IFS
1891  test -z "$as_dir" && as_dir=.
1892    $as_echo "PATH: $as_dir"
1893  done
1894IFS=$as_save_IFS
1895
1896} >&5
1897
1898cat >&5 <<_ACEOF
1899
1900
1901## ----------- ##
1902## Core tests. ##
1903## ----------- ##
1904
1905_ACEOF
1906
1907
1908# Keep a trace of the command line.
1909# Strip out --no-create and --no-recursion so they do not pile up.
1910# Strip out --silent because we don't want to record it for future runs.
1911# Also quote any args containing shell meta-characters.
1912# Make two passes to allow for proper duplicate-argument suppression.
1913ac_configure_args=
1914ac_configure_args0=
1915ac_configure_args1=
1916ac_must_keep_next=false
1917for ac_pass in 1 2
1918do
1919  for ac_arg
1920  do
1921    case $ac_arg in
1922    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1923    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1924    | -silent | --silent | --silen | --sile | --sil)
1925      continue ;;
1926    *\'*)
1927      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928    esac
1929    case $ac_pass in
1930    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931    2)
1932      as_fn_append ac_configure_args1 " '$ac_arg'"
1933      if test $ac_must_keep_next = true; then
1934	ac_must_keep_next=false # Got value, back to normal.
1935      else
1936	case $ac_arg in
1937	  *=* | --config-cache | -C | -disable-* | --disable-* \
1938	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1939	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1940	  | -with-* | --with-* | -without-* | --without-* | --x)
1941	    case "$ac_configure_args0 " in
1942	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943	    esac
1944	    ;;
1945	  -* ) ac_must_keep_next=true ;;
1946	esac
1947      fi
1948      as_fn_append ac_configure_args " '$ac_arg'"
1949      ;;
1950    esac
1951  done
1952done
1953{ ac_configure_args0=; unset ac_configure_args0;}
1954{ ac_configure_args1=; unset ac_configure_args1;}
1955
1956# When interrupted or exit'd, cleanup temporary files, and complete
1957# config.log.  We remove comments because anyway the quotes in there
1958# would cause problems or look ugly.
1959# WARNING: Use '\'' to represent an apostrophe within the trap.
1960# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1961trap 'exit_status=$?
1962  # Save into config.log some information that might help in debugging.
1963  {
1964    echo
1965
1966    $as_echo "## ---------------- ##
1967## Cache variables. ##
1968## ---------------- ##"
1969    echo
1970    # The following way of writing the cache mishandles newlines in values,
1971(
1972  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973    eval ac_val=\$$ac_var
1974    case $ac_val in #(
1975    *${as_nl}*)
1976      case $ac_var in #(
1977      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1978$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1979      esac
1980      case $ac_var in #(
1981      _ | IFS | as_nl) ;; #(
1982      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1983      *) { eval $ac_var=; unset $ac_var;} ;;
1984      esac ;;
1985    esac
1986  done
1987  (set) 2>&1 |
1988    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989    *${as_nl}ac_space=\ *)
1990      sed -n \
1991	"s/'\''/'\''\\\\'\'''\''/g;
1992	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1993      ;; #(
1994    *)
1995      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996      ;;
1997    esac |
1998    sort
1999)
2000    echo
2001
2002    $as_echo "## ----------------- ##
2003## Output variables. ##
2004## ----------------- ##"
2005    echo
2006    for ac_var in $ac_subst_vars
2007    do
2008      eval ac_val=\$$ac_var
2009      case $ac_val in
2010      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011      esac
2012      $as_echo "$ac_var='\''$ac_val'\''"
2013    done | sort
2014    echo
2015
2016    if test -n "$ac_subst_files"; then
2017      $as_echo "## ------------------- ##
2018## File substitutions. ##
2019## ------------------- ##"
2020      echo
2021      for ac_var in $ac_subst_files
2022      do
2023	eval ac_val=\$$ac_var
2024	case $ac_val in
2025	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026	esac
2027	$as_echo "$ac_var='\''$ac_val'\''"
2028      done | sort
2029      echo
2030    fi
2031
2032    if test -s confdefs.h; then
2033      $as_echo "## ----------- ##
2034## confdefs.h. ##
2035## ----------- ##"
2036      echo
2037      cat confdefs.h
2038      echo
2039    fi
2040    test "$ac_signal" != 0 &&
2041      $as_echo "$as_me: caught signal $ac_signal"
2042    $as_echo "$as_me: exit $exit_status"
2043  } >&5
2044  rm -f core *.core core.conftest.* &&
2045    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2046    exit $exit_status
2047' 0
2048for ac_signal in 1 2 13 15; do
2049  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2050done
2051ac_signal=0
2052
2053# confdefs.h avoids OS command line length limits that DEFS can exceed.
2054rm -f -r conftest* confdefs.h
2055
2056$as_echo "/* confdefs.h */" > confdefs.h
2057
2058# Predefined preprocessor variables.
2059
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_NAME "$PACKAGE_NAME"
2062_ACEOF
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2066_ACEOF
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_VERSION "$PACKAGE_VERSION"
2070_ACEOF
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_STRING "$PACKAGE_STRING"
2074_ACEOF
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2078_ACEOF
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_URL "$PACKAGE_URL"
2082_ACEOF
2083
2084
2085# Let the site file select an alternate cache file if it wants to.
2086# Prefer an explicitly selected file to automatically selected ones.
2087ac_site_file1=NONE
2088ac_site_file2=NONE
2089if test -n "$CONFIG_SITE"; then
2090  # We do not want a PATH search for config.site.
2091  case $CONFIG_SITE in #((
2092    -*)  ac_site_file1=./$CONFIG_SITE;;
2093    */*) ac_site_file1=$CONFIG_SITE;;
2094    *)   ac_site_file1=./$CONFIG_SITE;;
2095  esac
2096elif test "x$prefix" != xNONE; then
2097  ac_site_file1=$prefix/share/config.site
2098  ac_site_file2=$prefix/etc/config.site
2099else
2100  ac_site_file1=$ac_default_prefix/share/config.site
2101  ac_site_file2=$ac_default_prefix/etc/config.site
2102fi
2103for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2104do
2105  test "x$ac_site_file" = xNONE && continue
2106  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2107    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2108$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2109    sed 's/^/| /' "$ac_site_file" >&5
2110    . "$ac_site_file" \
2111      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2113as_fn_error $? "failed to load site script $ac_site_file
2114See \`config.log' for more details" "$LINENO" 5; }
2115  fi
2116done
2117
2118if test -r "$cache_file"; then
2119  # Some versions of bash will fail to source /dev/null (special files
2120  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2121  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2122    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2123$as_echo "$as_me: loading cache $cache_file" >&6;}
2124    case $cache_file in
2125      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2126      *)                      . "./$cache_file";;
2127    esac
2128  fi
2129else
2130  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2131$as_echo "$as_me: creating cache $cache_file" >&6;}
2132  >$cache_file
2133fi
2134
2135# Check that the precious variables saved in the cache have kept the same
2136# value.
2137ac_cache_corrupted=false
2138for ac_var in $ac_precious_vars; do
2139  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2140  eval ac_new_set=\$ac_env_${ac_var}_set
2141  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2142  eval ac_new_val=\$ac_env_${ac_var}_value
2143  case $ac_old_set,$ac_new_set in
2144    set,)
2145      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2146$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2147      ac_cache_corrupted=: ;;
2148    ,set)
2149      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2150$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2151      ac_cache_corrupted=: ;;
2152    ,);;
2153    *)
2154      if test "x$ac_old_val" != "x$ac_new_val"; then
2155	# differences in whitespace do not lead to failure.
2156	ac_old_val_w=`echo x $ac_old_val`
2157	ac_new_val_w=`echo x $ac_new_val`
2158	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2159	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2160$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2161	  ac_cache_corrupted=:
2162	else
2163	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2164$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2165	  eval $ac_var=\$ac_old_val
2166	fi
2167	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2168$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2169	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2170$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2171      fi;;
2172  esac
2173  # Pass precious variables to config.status.
2174  if test "$ac_new_set" = set; then
2175    case $ac_new_val in
2176    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2177    *) ac_arg=$ac_var=$ac_new_val ;;
2178    esac
2179    case " $ac_configure_args " in
2180      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2181      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2182    esac
2183  fi
2184done
2185if $ac_cache_corrupted; then
2186  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2188  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2189$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2190  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2191fi
2192## -------------------- ##
2193## Main body of script. ##
2194## -------------------- ##
2195
2196ac_ext=c
2197ac_cpp='$CPP $CPPFLAGS'
2198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201
2202
2203
2204orig_CFLAGS="$CFLAGS"
2205
2206
2207
2208am__api_version='1.14'
2209
2210ac_aux_dir=
2211for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212  if test -f "$ac_dir/install-sh"; then
2213    ac_aux_dir=$ac_dir
2214    ac_install_sh="$ac_aux_dir/install-sh -c"
2215    break
2216  elif test -f "$ac_dir/install.sh"; then
2217    ac_aux_dir=$ac_dir
2218    ac_install_sh="$ac_aux_dir/install.sh -c"
2219    break
2220  elif test -f "$ac_dir/shtool"; then
2221    ac_aux_dir=$ac_dir
2222    ac_install_sh="$ac_aux_dir/shtool install -c"
2223    break
2224  fi
2225done
2226if test -z "$ac_aux_dir"; then
2227  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2228fi
2229
2230# These three variables are undocumented and unsupported,
2231# and are intended to be withdrawn in a future Autoconf release.
2232# They can cause serious problems if a builder's source tree is in a directory
2233# whose full name contains unusual characters.
2234ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2235ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2236ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2237
2238
2239# Find a good install program.  We prefer a C program (faster),
2240# so one script is as good as another.  But avoid the broken or
2241# incompatible versions:
2242# SysV /etc/install, /usr/sbin/install
2243# SunOS /usr/etc/install
2244# IRIX /sbin/install
2245# AIX /bin/install
2246# AmigaOS /C/install, which installs bootblocks on floppy discs
2247# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2248# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2249# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2250# OS/2's system install, which has a completely different semantic
2251# ./install, which can be erroneously created by make from ./install.sh.
2252# Reject install programs that cannot install multiple files.
2253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2254$as_echo_n "checking for a BSD-compatible install... " >&6; }
2255if test -z "$INSTALL"; then
2256if ${ac_cv_path_install+:} false; then :
2257  $as_echo_n "(cached) " >&6
2258else
2259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262  IFS=$as_save_IFS
2263  test -z "$as_dir" && as_dir=.
2264    # Account for people who put trailing slashes in PATH elements.
2265case $as_dir/ in #((
2266  ./ | .// | /[cC]/* | \
2267  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2268  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2269  /usr/ucb/* ) ;;
2270  *)
2271    # OSF1 and SCO ODT 3.0 have their own names for install.
2272    # Don't use installbsd from OSF since it installs stuff as root
2273    # by default.
2274    for ac_prog in ginstall scoinst install; do
2275      for ac_exec_ext in '' $ac_executable_extensions; do
2276	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2277	  if test $ac_prog = install &&
2278	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279	    # AIX install.  It has an incompatible calling convention.
2280	    :
2281	  elif test $ac_prog = install &&
2282	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283	    # program-specific install script used by HP pwplus--don't use.
2284	    :
2285	  else
2286	    rm -rf conftest.one conftest.two conftest.dir
2287	    echo one > conftest.one
2288	    echo two > conftest.two
2289	    mkdir conftest.dir
2290	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2291	      test -s conftest.one && test -s conftest.two &&
2292	      test -s conftest.dir/conftest.one &&
2293	      test -s conftest.dir/conftest.two
2294	    then
2295	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2296	      break 3
2297	    fi
2298	  fi
2299	fi
2300      done
2301    done
2302    ;;
2303esac
2304
2305  done
2306IFS=$as_save_IFS
2307
2308rm -rf conftest.one conftest.two conftest.dir
2309
2310fi
2311  if test "${ac_cv_path_install+set}" = set; then
2312    INSTALL=$ac_cv_path_install
2313  else
2314    # As a last resort, use the slow shell script.  Don't cache a
2315    # value for INSTALL within a source directory, because that will
2316    # break other packages using the cache if that directory is
2317    # removed, or if the value is a relative name.
2318    INSTALL=$ac_install_sh
2319  fi
2320fi
2321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2322$as_echo "$INSTALL" >&6; }
2323
2324# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2325# It thinks the first close brace ends the variable substitution.
2326test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2327
2328test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2329
2330test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2331
2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2333$as_echo_n "checking whether build environment is sane... " >&6; }
2334# Reject unsafe characters in $srcdir or the absolute working directory
2335# name.  Accept space and tab only in the latter.
2336am_lf='
2337'
2338case `pwd` in
2339  *[\\\"\#\$\&\'\`$am_lf]*)
2340    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2341esac
2342case $srcdir in
2343  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2344    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2345esac
2346
2347# Do 'set' in a subshell so we don't clobber the current shell's
2348# arguments.  Must try -L first in case configure is actually a
2349# symlink; some systems play weird games with the mod time of symlinks
2350# (eg FreeBSD returns the mod time of the symlink's containing
2351# directory).
2352if (
2353   am_has_slept=no
2354   for am_try in 1 2; do
2355     echo "timestamp, slept: $am_has_slept" > conftest.file
2356     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2357     if test "$*" = "X"; then
2358	# -L didn't work.
2359	set X `ls -t "$srcdir/configure" conftest.file`
2360     fi
2361     if test "$*" != "X $srcdir/configure conftest.file" \
2362	&& test "$*" != "X conftest.file $srcdir/configure"; then
2363
2364	# If neither matched, then we have a broken ls.  This can happen
2365	# if, for instance, CONFIG_SHELL is bash and it inherits a
2366	# broken ls alias from the environment.  This has actually
2367	# happened.  Such a system could not be considered "sane".
2368	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2369  alias in your environment" "$LINENO" 5
2370     fi
2371     if test "$2" = conftest.file || test $am_try -eq 2; then
2372       break
2373     fi
2374     # Just in case.
2375     sleep 1
2376     am_has_slept=yes
2377   done
2378   test "$2" = conftest.file
2379   )
2380then
2381   # Ok.
2382   :
2383else
2384   as_fn_error $? "newly created file is older than distributed files!
2385Check your system clock" "$LINENO" 5
2386fi
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2388$as_echo "yes" >&6; }
2389# If we didn't sleep, we still need to ensure time stamps of config.status and
2390# generated files are strictly newer.
2391am_sleep_pid=
2392if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2393  ( sleep 1 ) &
2394  am_sleep_pid=$!
2395fi
2396
2397rm -f conftest.file
2398
2399test "$program_prefix" != NONE &&
2400  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2401# Use a double $ so make ignores it.
2402test "$program_suffix" != NONE &&
2403  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2404# Double any \ or $.
2405# By default was `s,x,x', remove it if useless.
2406ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2407program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2408
2409# Expand $ac_aux_dir to an absolute path.
2410am_aux_dir=`cd "$ac_aux_dir" && pwd`
2411
2412if test x"${MISSING+set}" != xset; then
2413  case $am_aux_dir in
2414  *\ * | *\	*)
2415    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2416  *)
2417    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2418  esac
2419fi
2420# Use eval to expand $SHELL
2421if eval "$MISSING --is-lightweight"; then
2422  am_missing_run="$MISSING "
2423else
2424  am_missing_run=
2425  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2426$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2427fi
2428
2429if test x"${install_sh}" != xset; then
2430  case $am_aux_dir in
2431  *\ * | *\	*)
2432    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2433  *)
2434    install_sh="\${SHELL} $am_aux_dir/install-sh"
2435  esac
2436fi
2437
2438# Installed binaries are usually stripped using 'strip' when the user
2439# run "make install-strip".  However 'strip' might not be the right
2440# tool to use in cross-compilation environments, therefore Automake
2441# will honor the 'STRIP' environment variable to overrule this program.
2442if test "$cross_compiling" != no; then
2443  if test -n "$ac_tool_prefix"; then
2444  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2445set dummy ${ac_tool_prefix}strip; ac_word=$2
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2447$as_echo_n "checking for $ac_word... " >&6; }
2448if ${ac_cv_prog_STRIP+:} false; then :
2449  $as_echo_n "(cached) " >&6
2450else
2451  if test -n "$STRIP"; then
2452  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457  IFS=$as_save_IFS
2458  test -z "$as_dir" && as_dir=.
2459    for ac_exec_ext in '' $ac_executable_extensions; do
2460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463    break 2
2464  fi
2465done
2466  done
2467IFS=$as_save_IFS
2468
2469fi
2470fi
2471STRIP=$ac_cv_prog_STRIP
2472if test -n "$STRIP"; then
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2474$as_echo "$STRIP" >&6; }
2475else
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2477$as_echo "no" >&6; }
2478fi
2479
2480
2481fi
2482if test -z "$ac_cv_prog_STRIP"; then
2483  ac_ct_STRIP=$STRIP
2484  # Extract the first word of "strip", so it can be a program name with args.
2485set dummy strip; ac_word=$2
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487$as_echo_n "checking for $ac_word... " >&6; }
2488if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2489  $as_echo_n "(cached) " >&6
2490else
2491  if test -n "$ac_ct_STRIP"; then
2492  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497  IFS=$as_save_IFS
2498  test -z "$as_dir" && as_dir=.
2499    for ac_exec_ext in '' $ac_executable_extensions; do
2500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501    ac_cv_prog_ac_ct_STRIP="strip"
2502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503    break 2
2504  fi
2505done
2506  done
2507IFS=$as_save_IFS
2508
2509fi
2510fi
2511ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2512if test -n "$ac_ct_STRIP"; then
2513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2514$as_echo "$ac_ct_STRIP" >&6; }
2515else
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517$as_echo "no" >&6; }
2518fi
2519
2520  if test "x$ac_ct_STRIP" = x; then
2521    STRIP=":"
2522  else
2523    case $cross_compiling:$ac_tool_warned in
2524yes:)
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2527ac_tool_warned=yes ;;
2528esac
2529    STRIP=$ac_ct_STRIP
2530  fi
2531else
2532  STRIP="$ac_cv_prog_STRIP"
2533fi
2534
2535fi
2536INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2537
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2539$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2540if test -z "$MKDIR_P"; then
2541  if ${ac_cv_path_mkdir+:} false; then :
2542  $as_echo_n "(cached) " >&6
2543else
2544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2546do
2547  IFS=$as_save_IFS
2548  test -z "$as_dir" && as_dir=.
2549    for ac_prog in mkdir gmkdir; do
2550	 for ac_exec_ext in '' $ac_executable_extensions; do
2551	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2552	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2553	     'mkdir (GNU coreutils) '* | \
2554	     'mkdir (coreutils) '* | \
2555	     'mkdir (fileutils) '4.1*)
2556	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2557	       break 3;;
2558	   esac
2559	 done
2560       done
2561  done
2562IFS=$as_save_IFS
2563
2564fi
2565
2566  test -d ./--version && rmdir ./--version
2567  if test "${ac_cv_path_mkdir+set}" = set; then
2568    MKDIR_P="$ac_cv_path_mkdir -p"
2569  else
2570    # As a last resort, use the slow shell script.  Don't cache a
2571    # value for MKDIR_P within a source directory, because that will
2572    # break other packages using the cache if that directory is
2573    # removed, or if the value is a relative name.
2574    MKDIR_P="$ac_install_sh -d"
2575  fi
2576fi
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2578$as_echo "$MKDIR_P" >&6; }
2579
2580for ac_prog in gawk mawk nawk awk
2581do
2582  # Extract the first word of "$ac_prog", so it can be a program name with args.
2583set dummy $ac_prog; ac_word=$2
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585$as_echo_n "checking for $ac_word... " >&6; }
2586if ${ac_cv_prog_AWK+:} false; then :
2587  $as_echo_n "(cached) " >&6
2588else
2589  if test -n "$AWK"; then
2590  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595  IFS=$as_save_IFS
2596  test -z "$as_dir" && as_dir=.
2597    for ac_exec_ext in '' $ac_executable_extensions; do
2598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599    ac_cv_prog_AWK="$ac_prog"
2600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601    break 2
2602  fi
2603done
2604  done
2605IFS=$as_save_IFS
2606
2607fi
2608fi
2609AWK=$ac_cv_prog_AWK
2610if test -n "$AWK"; then
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2612$as_echo "$AWK" >&6; }
2613else
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615$as_echo "no" >&6; }
2616fi
2617
2618
2619  test -n "$AWK" && break
2620done
2621
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2623$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2624set x ${MAKE-make}
2625ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2626if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  cat >conftest.make <<\_ACEOF
2630SHELL = /bin/sh
2631all:
2632	@echo '@@@%%%=$(MAKE)=@@@%%%'
2633_ACEOF
2634# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2635case `${MAKE-make} -f conftest.make 2>/dev/null` in
2636  *@@@%%%=?*=@@@%%%*)
2637    eval ac_cv_prog_make_${ac_make}_set=yes;;
2638  *)
2639    eval ac_cv_prog_make_${ac_make}_set=no;;
2640esac
2641rm -f conftest.make
2642fi
2643if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645$as_echo "yes" >&6; }
2646  SET_MAKE=
2647else
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650  SET_MAKE="MAKE=${MAKE-make}"
2651fi
2652
2653rm -rf .tst 2>/dev/null
2654mkdir .tst 2>/dev/null
2655if test -d .tst; then
2656  am__leading_dot=.
2657else
2658  am__leading_dot=_
2659fi
2660rmdir .tst 2>/dev/null
2661
2662# Check whether --enable-silent-rules was given.
2663if test "${enable_silent_rules+set}" = set; then :
2664  enableval=$enable_silent_rules;
2665fi
2666
2667case $enable_silent_rules in # (((
2668  yes) AM_DEFAULT_VERBOSITY=0;;
2669   no) AM_DEFAULT_VERBOSITY=1;;
2670    *) AM_DEFAULT_VERBOSITY=1;;
2671esac
2672am_make=${MAKE-make}
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2674$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2675if ${am_cv_make_support_nested_variables+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  if $as_echo 'TRUE=$(BAR$(V))
2679BAR0=false
2680BAR1=true
2681V=1
2682am__doit:
2683	@$(TRUE)
2684.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2685  am_cv_make_support_nested_variables=yes
2686else
2687  am_cv_make_support_nested_variables=no
2688fi
2689fi
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2691$as_echo "$am_cv_make_support_nested_variables" >&6; }
2692if test $am_cv_make_support_nested_variables = yes; then
2693    AM_V='$(V)'
2694  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2695else
2696  AM_V=$AM_DEFAULT_VERBOSITY
2697  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2698fi
2699AM_BACKSLASH='\'
2700
2701if test "`cd $srcdir && pwd`" != "`pwd`"; then
2702  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2703  # is not polluted with repeated "-I."
2704  am__isrc=' -I$(srcdir)'
2705  # test to see if srcdir already configured
2706  if test -f $srcdir/config.status; then
2707    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2708  fi
2709fi
2710
2711# test whether we have cygpath
2712if test -z "$CYGPATH_W"; then
2713  if (cygpath --version) >/dev/null 2>/dev/null; then
2714    CYGPATH_W='cygpath -w'
2715  else
2716    CYGPATH_W=echo
2717  fi
2718fi
2719
2720
2721# Define the identity of the package.
2722
2723 PACKAGE=libev
2724 VERSION=4.22
2725
2726
2727cat >>confdefs.h <<_ACEOF
2728#define PACKAGE "$PACKAGE"
2729_ACEOF
2730
2731
2732cat >>confdefs.h <<_ACEOF
2733#define VERSION "$VERSION"
2734_ACEOF
2735
2736# Some tools Automake needs.
2737
2738ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2739
2740
2741AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2742
2743
2744AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2745
2746
2747AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2748
2749
2750MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2751
2752# For better backward compatibility.  To be removed once Automake 1.9.x
2753# dies out for good.  For more background, see:
2754# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2755# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2756mkdir_p='$(MKDIR_P)'
2757
2758# We need awk for the "check" target.  The system "awk" is bad on
2759# some platforms.
2760# Always define AMTAR for backward compatibility.  Yes, it's still used
2761# in the wild :-(  We should find a proper way to deprecate it ...
2762AMTAR='$${TAR-tar}'
2763
2764
2765# We'll loop over all known methods to create a tar archive until one works.
2766_am_tools='gnutar  pax cpio none'
2767
2768am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2769
2770
2771
2772
2773
2774
2775# POSIX will say in a future version that running "rm -f" with no argument
2776# is OK; and we want to be able to make that assumption in our Makefile
2777# recipes.  So use an aggressive probe to check that the usage we want is
2778# actually supported "in the wild" to an acceptable degree.
2779# See automake bug#10828.
2780# To make any issue more visible, cause the running configure to be aborted
2781# by default if the 'rm' program in use doesn't match our expectations; the
2782# user can still override this though.
2783if rm -f && rm -fr && rm -rf; then : OK; else
2784  cat >&2 <<'END'
2785Oops!
2786
2787Your 'rm' program seems unable to run without file operands specified
2788on the command line, even when the '-f' option is present.  This is contrary
2789to the behaviour of most rm programs out there, and not conforming with
2790the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2791
2792Please tell bug-automake@gnu.org about your system, including the value
2793of your $PATH and any error possibly output before this message.  This
2794can help us improve future automake versions.
2795
2796END
2797  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2798    echo 'Configuration will proceed anyway, since you have set the' >&2
2799    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2800    echo >&2
2801  else
2802    cat >&2 <<'END'
2803Aborting the configuration process, to ensure you take notice of the issue.
2804
2805You can download and install GNU coreutils to get an 'rm' implementation
2806that behaves properly: <http://www.gnu.org/software/coreutils/>.
2807
2808If you want to complete the configuration process using your problematic
2809'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2810to "yes", and re-run configure.
2811
2812END
2813    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2814  fi
2815fi
2816
2817ac_config_headers="$ac_config_headers config.h"
2818
2819
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2821$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2822    # Check whether --enable-maintainer-mode was given.
2823if test "${enable_maintainer_mode+set}" = set; then :
2824  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2825else
2826  USE_MAINTAINER_MODE=no
2827fi
2828
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2830$as_echo "$USE_MAINTAINER_MODE" >&6; }
2831   if test $USE_MAINTAINER_MODE = yes; then
2832  MAINTAINER_MODE_TRUE=
2833  MAINTAINER_MODE_FALSE='#'
2834else
2835  MAINTAINER_MODE_TRUE='#'
2836  MAINTAINER_MODE_FALSE=
2837fi
2838
2839  MAINT=$MAINTAINER_MODE_TRUE
2840
2841
2842
2843ac_ext=c
2844ac_cpp='$CPP $CPPFLAGS'
2845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848if test -n "$ac_tool_prefix"; then
2849  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; }
2853if ${ac_cv_prog_CC+:} false; then :
2854  $as_echo_n "(cached) " >&6
2855else
2856  if test -n "$CC"; then
2857  ac_cv_prog_CC="$CC" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862  IFS=$as_save_IFS
2863  test -z "$as_dir" && as_dir=.
2864    for ac_exec_ext in '' $ac_executable_extensions; do
2865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868    break 2
2869  fi
2870done
2871  done
2872IFS=$as_save_IFS
2873
2874fi
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879$as_echo "$CC" >&6; }
2880else
2881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
2883fi
2884
2885
2886fi
2887if test -z "$ac_cv_prog_CC"; then
2888  ac_ct_CC=$CC
2889  # Extract the first word of "gcc", so it can be a program name with args.
2890set dummy gcc; ac_word=$2
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892$as_echo_n "checking for $ac_word... " >&6; }
2893if ${ac_cv_prog_ac_ct_CC+:} false; then :
2894  $as_echo_n "(cached) " >&6
2895else
2896  if test -n "$ac_ct_CC"; then
2897  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902  IFS=$as_save_IFS
2903  test -z "$as_dir" && as_dir=.
2904    for ac_exec_ext in '' $ac_executable_extensions; do
2905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906    ac_cv_prog_ac_ct_CC="gcc"
2907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908    break 2
2909  fi
2910done
2911  done
2912IFS=$as_save_IFS
2913
2914fi
2915fi
2916ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917if test -n "$ac_ct_CC"; then
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919$as_echo "$ac_ct_CC" >&6; }
2920else
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922$as_echo "no" >&6; }
2923fi
2924
2925  if test "x$ac_ct_CC" = x; then
2926    CC=""
2927  else
2928    case $cross_compiling:$ac_tool_warned in
2929yes:)
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
2934    CC=$ac_ct_CC
2935  fi
2936else
2937  CC="$ac_cv_prog_CC"
2938fi
2939
2940if test -z "$CC"; then
2941          if test -n "$ac_tool_prefix"; then
2942    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}cc; ac_word=$2
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
2946if ${ac_cv_prog_CC+:} false; then :
2947  $as_echo_n "(cached) " >&6
2948else
2949  if test -n "$CC"; then
2950  ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  test -z "$as_dir" && as_dir=.
2957    for ac_exec_ext in '' $ac_executable_extensions; do
2958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959    ac_cv_prog_CC="${ac_tool_prefix}cc"
2960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964  done
2965IFS=$as_save_IFS
2966
2967fi
2968fi
2969CC=$ac_cv_prog_CC
2970if test -n "$CC"; then
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972$as_echo "$CC" >&6; }
2973else
2974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976fi
2977
2978
2979  fi
2980fi
2981if test -z "$CC"; then
2982  # Extract the first word of "cc", so it can be a program name with args.
2983set dummy cc; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if ${ac_cv_prog_CC+:} false; then :
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test -n "$CC"; then
2990  ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992  ac_prog_rejected=no
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001       ac_prog_rejected=yes
3002       continue
3003     fi
3004    ac_cv_prog_CC="cc"
3005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012if test $ac_prog_rejected = yes; then
3013  # We found a bogon in the path, so make sure we never use it.
3014  set dummy $ac_cv_prog_CC
3015  shift
3016  if test $# != 0; then
3017    # We chose a different compiler from the bogus one.
3018    # However, it has the same basename, so the bogon will be chosen
3019    # first if we set CC to just the basename; use the full file name.
3020    shift
3021    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3022  fi
3023fi
3024fi
3025fi
3026CC=$ac_cv_prog_CC
3027if test -n "$CC"; then
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029$as_echo "$CC" >&6; }
3030else
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032$as_echo "no" >&6; }
3033fi
3034
3035
3036fi
3037if test -z "$CC"; then
3038  if test -n "$ac_tool_prefix"; then
3039  for ac_prog in cl.exe
3040  do
3041    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044$as_echo_n "checking for $ac_word... " >&6; }
3045if ${ac_cv_prog_CC+:} false; then :
3046  $as_echo_n "(cached) " >&6
3047else
3048  if test -n "$CC"; then
3049  ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054  IFS=$as_save_IFS
3055  test -z "$as_dir" && as_dir=.
3056    for ac_exec_ext in '' $ac_executable_extensions; do
3057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060    break 2
3061  fi
3062done
3063  done
3064IFS=$as_save_IFS
3065
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
3070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071$as_echo "$CC" >&6; }
3072else
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077
3078    test -n "$CC" && break
3079  done
3080fi
3081if test -z "$CC"; then
3082  ac_ct_CC=$CC
3083  for ac_prog in cl.exe
3084do
3085  # Extract the first word of "$ac_prog", so it can be a program name with args.
3086set dummy $ac_prog; ac_word=$2
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
3089if ${ac_cv_prog_ac_ct_CC+:} false; then :
3090  $as_echo_n "(cached) " >&6
3091else
3092  if test -n "$ac_ct_CC"; then
3093  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098  IFS=$as_save_IFS
3099  test -z "$as_dir" && as_dir=.
3100    for ac_exec_ext in '' $ac_executable_extensions; do
3101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102    ac_cv_prog_ac_ct_CC="$ac_prog"
3103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104    break 2
3105  fi
3106done
3107  done
3108IFS=$as_save_IFS
3109
3110fi
3111fi
3112ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113if test -n "$ac_ct_CC"; then
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115$as_echo "$ac_ct_CC" >&6; }
3116else
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
3119fi
3120
3121
3122  test -n "$ac_ct_CC" && break
3123done
3124
3125  if test "x$ac_ct_CC" = x; then
3126    CC=""
3127  else
3128    case $cross_compiling:$ac_tool_warned in
3129yes:)
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132ac_tool_warned=yes ;;
3133esac
3134    CC=$ac_ct_CC
3135  fi
3136fi
3137
3138fi
3139
3140
3141test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143as_fn_error $? "no acceptable C compiler found in \$PATH
3144See \`config.log' for more details" "$LINENO" 5; }
3145
3146# Provide some information about the compiler.
3147$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3148set X $ac_compile
3149ac_compiler=$2
3150for ac_option in --version -v -V -qversion; do
3151  { { ac_try="$ac_compiler $ac_option >&5"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
3158  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159  ac_status=$?
3160  if test -s conftest.err; then
3161    sed '10a\
3162... rest of stderr output deleted ...
3163         10q' conftest.err >conftest.er1
3164    cat conftest.er1 >&5
3165  fi
3166  rm -f conftest.er1 conftest.err
3167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168  test $ac_status = 0; }
3169done
3170
3171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172/* end confdefs.h.  */
3173
3174int
3175main ()
3176{
3177
3178  ;
3179  return 0;
3180}
3181_ACEOF
3182ac_clean_files_save=$ac_clean_files
3183ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184# Try to create an executable without -o first, disregard a.out.
3185# It will help us diagnose broken compilers, and finding out an intuition
3186# of exeext.
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3188$as_echo_n "checking whether the C compiler works... " >&6; }
3189ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190
3191# The possible output files:
3192ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
3194ac_rmfiles=
3195for ac_file in $ac_files
3196do
3197  case $ac_file in
3198    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200  esac
3201done
3202rm -f $ac_rmfiles
3203
3204if { { ac_try="$ac_link_default"
3205case "(($ac_try" in
3206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207  *) ac_try_echo=$ac_try;;
3208esac
3209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5
3211  (eval "$ac_link_default") 2>&5
3212  ac_status=$?
3213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214  test $ac_status = 0; }; then :
3215  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3218# so that the user can short-circuit this test for compilers unknown to
3219# Autoconf.
3220for ac_file in $ac_files ''
3221do
3222  test -f "$ac_file" || continue
3223  case $ac_file in
3224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3225	;;
3226    [ab].out )
3227	# We found the default executable, but exeext='' is most
3228	# certainly right.
3229	break;;
3230    *.* )
3231	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232	then :; else
3233	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234	fi
3235	# We set ac_cv_exeext here because the later test for it is not
3236	# safe: cross compilers may not add the suffix if given an `-o'
3237	# argument, so we may need to know it at that point already.
3238	# Even if this section looks crufty: it has the advantage of
3239	# actually working.
3240	break;;
3241    * )
3242	break;;
3243  esac
3244done
3245test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
3247else
3248  ac_file=''
3249fi
3250if test -z "$ac_file"; then :
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253$as_echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258as_fn_error 77 "C compiler cannot create executables
3259See \`config.log' for more details" "$LINENO" 5; }
3260else
3261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262$as_echo "yes" >&6; }
3263fi
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265$as_echo_n "checking for C compiler default output file name... " >&6; }
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267$as_echo "$ac_file" >&6; }
3268ac_exeext=$ac_cv_exeext
3269
3270rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271ac_clean_files=$ac_clean_files_save
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3273$as_echo_n "checking for suffix of executables... " >&6; }
3274if { { ac_try="$ac_link"
3275case "(($ac_try" in
3276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277  *) ac_try_echo=$ac_try;;
3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
3281  (eval "$ac_link") 2>&5
3282  ac_status=$?
3283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284  test $ac_status = 0; }; then :
3285  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3287# work properly (i.e., refer to `conftest.exe'), while it won't with
3288# `rm'.
3289for ac_file in conftest.exe conftest conftest.*; do
3290  test -f "$ac_file" || continue
3291  case $ac_file in
3292    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294	  break;;
3295    * ) break;;
3296  esac
3297done
3298else
3299  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3302See \`config.log' for more details" "$LINENO" 5; }
3303fi
3304rm -f conftest conftest$ac_cv_exeext
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3306$as_echo "$ac_cv_exeext" >&6; }
3307
3308rm -f conftest.$ac_ext
3309EXEEXT=$ac_cv_exeext
3310ac_exeext=$EXEEXT
3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h.  */
3313#include <stdio.h>
3314int
3315main ()
3316{
3317FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0;
3319
3320  ;
3321  return 0;
3322}
3323_ACEOF
3324ac_clean_files="$ac_clean_files conftest.out"
3325# Check that the compiler produces executables we can run.  If not, either
3326# the compiler is broken, or we cross compile.
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328$as_echo_n "checking whether we are cross compiling... " >&6; }
3329if test "$cross_compiling" != yes; then
3330  { { ac_try="$ac_link"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337  (eval "$ac_link") 2>&5
3338  ac_status=$?
3339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340  test $ac_status = 0; }
3341  if { ac_try='./conftest$ac_cv_exeext'
3342  { { case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348  (eval "$ac_try") 2>&5
3349  ac_status=$?
3350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351  test $ac_status = 0; }; }; then
3352    cross_compiling=no
3353  else
3354    if test "$cross_compiling" = maybe; then
3355	cross_compiling=yes
3356    else
3357	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359as_fn_error $? "cannot run C compiled programs.
3360If you meant to cross compile, use \`--host'.
3361See \`config.log' for more details" "$LINENO" 5; }
3362    fi
3363  fi
3364fi
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366$as_echo "$cross_compiling" >&6; }
3367
3368rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369ac_clean_files=$ac_clean_files_save
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371$as_echo_n "checking for suffix of object files... " >&6; }
3372if ${ac_cv_objext+:} false; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h.  */
3377
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.o conftest.obj
3387if { { ac_try="$ac_compile"
3388case "(($ac_try" in
3389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390  *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394  (eval "$ac_compile") 2>&5
3395  ac_status=$?
3396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }; then :
3398  for ac_file in conftest.o conftest.obj conftest.*; do
3399  test -f "$ac_file" || continue;
3400  case $ac_file in
3401    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403       break;;
3404  esac
3405done
3406else
3407  $as_echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412as_fn_error $? "cannot compute suffix of object files: cannot compile
3413See \`config.log' for more details" "$LINENO" 5; }
3414fi
3415rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418$as_echo "$ac_cv_objext" >&6; }
3419OBJEXT=$ac_cv_objext
3420ac_objext=$OBJEXT
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423if ${ac_cv_c_compiler_gnu+:} false; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432#ifndef __GNUC__
3433       choke me
3434#endif
3435
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440if ac_fn_c_try_compile "$LINENO"; then :
3441  ac_compiler_gnu=yes
3442else
3443  ac_compiler_gnu=no
3444fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451if test $ac_compiler_gnu = yes; then
3452  GCC=yes
3453else
3454  GCC=
3455fi
3456ac_test_CFLAGS=${CFLAGS+set}
3457ac_save_CFLAGS=$CFLAGS
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459$as_echo_n "checking whether $CC accepts -g... " >&6; }
3460if ${ac_cv_prog_cc_g+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  ac_save_c_werror_flag=$ac_c_werror_flag
3464   ac_c_werror_flag=yes
3465   ac_cv_prog_cc_g=no
3466   CFLAGS="-g"
3467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478if ac_fn_c_try_compile "$LINENO"; then :
3479  ac_cv_prog_cc_g=yes
3480else
3481  CFLAGS=""
3482      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h.  */
3484
3485int
3486main ()
3487{
3488
3489  ;
3490  return 0;
3491}
3492_ACEOF
3493if ac_fn_c_try_compile "$LINENO"; then :
3494
3495else
3496  ac_c_werror_flag=$ac_save_c_werror_flag
3497	 CFLAGS="-g"
3498	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500
3501int
3502main ()
3503{
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509if ac_fn_c_try_compile "$LINENO"; then :
3510  ac_cv_prog_cc_g=yes
3511fi
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513fi
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517   ac_c_werror_flag=$ac_save_c_werror_flag
3518fi
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520$as_echo "$ac_cv_prog_cc_g" >&6; }
3521if test "$ac_test_CFLAGS" = set; then
3522  CFLAGS=$ac_save_CFLAGS
3523elif test $ac_cv_prog_cc_g = yes; then
3524  if test "$GCC" = yes; then
3525    CFLAGS="-g -O2"
3526  else
3527    CFLAGS="-g"
3528  fi
3529else
3530  if test "$GCC" = yes; then
3531    CFLAGS="-O2"
3532  else
3533    CFLAGS=
3534  fi
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538if ${ac_cv_prog_cc_c89+:} false; then :
3539  $as_echo_n "(cached) " >&6
3540else
3541  ac_cv_prog_cc_c89=no
3542ac_save_CC=$CC
3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h.  */
3545#include <stdarg.h>
3546#include <stdio.h>
3547struct stat;
3548/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3549struct buf { int x; };
3550FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551static char *e (p, i)
3552     char **p;
3553     int i;
3554{
3555  return p[i];
3556}
3557static char *f (char * (*g) (char **, int), char **p, ...)
3558{
3559  char *s;
3560  va_list v;
3561  va_start (v,p);
3562  s = g (p, va_arg (v,int));
3563  va_end (v);
3564  return s;
3565}
3566
3567/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3568   function prototypes and stuff, but not '\xHH' hex character constants.
3569   These don't provoke an error unfortunately, instead are silently treated
3570   as 'x'.  The following induces an error, until -std is added to get
3571   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3572   array size at least.  It's necessary to write '\x00'==0 to get something
3573   that's true only with -std.  */
3574int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
3576/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577   inside strings and character constants.  */
3578#define FOO(x) 'x'
3579int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580
3581int test (int i, double x);
3582struct s1 {int (*f) (int a);};
3583struct s2 {int (*f) (double a);};
3584int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3585int argc;
3586char **argv;
3587int
3588main ()
3589{
3590return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597do
3598  CC="$ac_save_CC $ac_arg"
3599  if ac_fn_c_try_compile "$LINENO"; then :
3600  ac_cv_prog_cc_c89=$ac_arg
3601fi
3602rm -f core conftest.err conftest.$ac_objext
3603  test "x$ac_cv_prog_cc_c89" != "xno" && break
3604done
3605rm -f conftest.$ac_ext
3606CC=$ac_save_CC
3607
3608fi
3609# AC_CACHE_VAL
3610case "x$ac_cv_prog_cc_c89" in
3611  x)
3612    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3613$as_echo "none needed" >&6; } ;;
3614  xno)
3615    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3616$as_echo "unsupported" >&6; } ;;
3617  *)
3618    CC="$CC $ac_cv_prog_cc_c89"
3619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3620$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3621esac
3622if test "x$ac_cv_prog_cc_c89" != xno; then :
3623
3624fi
3625
3626ac_ext=c
3627ac_cpp='$CPP $CPPFLAGS'
3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631
3632ac_ext=c
3633ac_cpp='$CPP $CPPFLAGS'
3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3638$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3639if ${am_cv_prog_cc_c_o+:} false; then :
3640  $as_echo_n "(cached) " >&6
3641else
3642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644
3645int
3646main ()
3647{
3648
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653  # Make sure it works both with $CC and with simple cc.
3654  # Following AC_PROG_CC_C_O, we do the test twice because some
3655  # compilers refuse to overwrite an existing .o file with -o,
3656  # though they will create one.
3657  am_cv_prog_cc_c_o=yes
3658  for am_i in 1 2; do
3659    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3660   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } \
3664         && test -f conftest2.$ac_objext; then
3665      : OK
3666    else
3667      am_cv_prog_cc_c_o=no
3668      break
3669    fi
3670  done
3671  rm -f core conftest*
3672  unset am_i
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3675$as_echo "$am_cv_prog_cc_c_o" >&6; }
3676if test "$am_cv_prog_cc_c_o" != yes; then
3677   # Losing compiler, so override with the script.
3678   # FIXME: It is wrong to rewrite CC.
3679   # But if we don't then we get into trouble of one sort or another.
3680   # A longer-term fix would be to have automake use am__CC in this case,
3681   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3682   CC="$am_aux_dir/compile $CC"
3683fi
3684ac_ext=c
3685ac_cpp='$CPP $CPPFLAGS'
3686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
3690DEPDIR="${am__leading_dot}deps"
3691
3692ac_config_commands="$ac_config_commands depfiles"
3693
3694
3695am_make=${MAKE-make}
3696cat > confinc << 'END'
3697am__doit:
3698	@echo this is the am__doit target
3699.PHONY: am__doit
3700END
3701# If we don't find an include directive, just comment out the code.
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3703$as_echo_n "checking for style of include used by $am_make... " >&6; }
3704am__include="#"
3705am__quote=
3706_am_result=none
3707# First try GNU make style include.
3708echo "include confinc" > confmf
3709# Ignore all kinds of additional output from 'make'.
3710case `$am_make -s -f confmf 2> /dev/null` in #(
3711*the\ am__doit\ target*)
3712  am__include=include
3713  am__quote=
3714  _am_result=GNU
3715  ;;
3716esac
3717# Now try BSD make style include.
3718if test "$am__include" = "#"; then
3719   echo '.include "confinc"' > confmf
3720   case `$am_make -s -f confmf 2> /dev/null` in #(
3721   *the\ am__doit\ target*)
3722     am__include=.include
3723     am__quote="\""
3724     _am_result=BSD
3725     ;;
3726   esac
3727fi
3728
3729
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3731$as_echo "$_am_result" >&6; }
3732rm -f confinc confmf
3733
3734# Check whether --enable-dependency-tracking was given.
3735if test "${enable_dependency_tracking+set}" = set; then :
3736  enableval=$enable_dependency_tracking;
3737fi
3738
3739if test "x$enable_dependency_tracking" != xno; then
3740  am_depcomp="$ac_aux_dir/depcomp"
3741  AMDEPBACKSLASH='\'
3742  am__nodep='_no'
3743fi
3744 if test "x$enable_dependency_tracking" != xno; then
3745  AMDEP_TRUE=
3746  AMDEP_FALSE='#'
3747else
3748  AMDEP_TRUE='#'
3749  AMDEP_FALSE=
3750fi
3751
3752
3753
3754depcc="$CC"   am_compiler_list=
3755
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3757$as_echo_n "checking dependency style of $depcc... " >&6; }
3758if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3762  # We make a subdir and do the tests there.  Otherwise we can end up
3763  # making bogus files that we don't know about and never remove.  For
3764  # instance it was reported that on HP-UX the gcc test will end up
3765  # making a dummy file named 'D' -- because '-MD' means "put the output
3766  # in D".
3767  rm -rf conftest.dir
3768  mkdir conftest.dir
3769  # Copy depcomp to subdir because otherwise we won't find it if we're
3770  # using a relative directory.
3771  cp "$am_depcomp" conftest.dir
3772  cd conftest.dir
3773  # We will build objects and dependencies in a subdirectory because
3774  # it helps to detect inapplicable dependency modes.  For instance
3775  # both Tru64's cc and ICC support -MD to output dependencies as a
3776  # side effect of compilation, but ICC will put the dependencies in
3777  # the current directory while Tru64 will put them in the object
3778  # directory.
3779  mkdir sub
3780
3781  am_cv_CC_dependencies_compiler_type=none
3782  if test "$am_compiler_list" = ""; then
3783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784  fi
3785  am__universal=false
3786  case " $depcc " in #(
3787     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3788     esac
3789
3790  for depmode in $am_compiler_list; do
3791    # Setup a source with many dependencies, because some compilers
3792    # like to wrap large dependency lists on column 80 (with \), and
3793    # we should not choose a depcomp mode which is confused by this.
3794    #
3795    # We need to recreate these files for each test, as the compiler may
3796    # overwrite some of them when testing with obscure command lines.
3797    # This happens at least with the AIX C compiler.
3798    : > sub/conftest.c
3799    for i in 1 2 3 4 5 6; do
3800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3802      # Solaris 10 /bin/sh.
3803      echo '/* dummy */' > sub/conftst$i.h
3804    done
3805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806
3807    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3808    # mode.  It turns out that the SunPro C++ compiler does not properly
3809    # handle '-M -o', and we need to detect this.  Also, some Intel
3810    # versions had trouble with output in subdirs.
3811    am__obj=sub/conftest.${OBJEXT-o}
3812    am__minus_obj="-o $am__obj"
3813    case $depmode in
3814    gcc)
3815      # This depmode causes a compiler race in universal mode.
3816      test "$am__universal" = false || continue
3817      ;;
3818    nosideeffect)
3819      # After this tag, mechanisms are not by side-effect, so they'll
3820      # only be used when explicitly requested.
3821      if test "x$enable_dependency_tracking" = xyes; then
3822	continue
3823      else
3824	break
3825      fi
3826      ;;
3827    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3828      # This compiler won't grok '-c -o', but also, the minuso test has
3829      # not run yet.  These depmodes are late enough in the game, and
3830      # so weak that their functioning should not be impacted.
3831      am__obj=conftest.${OBJEXT-o}
3832      am__minus_obj=
3833      ;;
3834    none) break ;;
3835    esac
3836    if depmode=$depmode \
3837       source=sub/conftest.c object=$am__obj \
3838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3840         >/dev/null 2>conftest.err &&
3841       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845      # icc doesn't choke on unknown options, it will just issue warnings
3846      # or remarks (even with -Werror).  So we grep stderr for any message
3847      # that says an option was ignored or not supported.
3848      # When given -MP, icc 7.0 and 7.1 complain thusly:
3849      #   icc: Command line warning: ignoring option '-M'; no argument required
3850      # The diagnosis changed in icc 8.0:
3851      #   icc: Command line remark: option '-MP' not supported
3852      if (grep 'ignoring option' conftest.err ||
3853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854        am_cv_CC_dependencies_compiler_type=$depmode
3855        break
3856      fi
3857    fi
3858  done
3859
3860  cd ..
3861  rm -rf conftest.dir
3862else
3863  am_cv_CC_dependencies_compiler_type=none
3864fi
3865
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870
3871 if
3872  test "x$enable_dependency_tracking" != xno \
3873  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874  am__fastdepCC_TRUE=
3875  am__fastdepCC_FALSE='#'
3876else
3877  am__fastdepCC_TRUE='#'
3878  am__fastdepCC_FALSE=
3879fi
3880
3881
3882
3883if test -z "$orig_CFLAGS"; then
3884  if test x$GCC = xyes; then
3885    CFLAGS="-g -O3"
3886  fi
3887fi
3888
3889
3890case `pwd` in
3891  *\ * | *\	*)
3892    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3893$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3894esac
3895
3896
3897
3898macro_version='2.4.2'
3899macro_revision='1.3337'
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913ltmain="$ac_aux_dir/ltmain.sh"
3914
3915# Make sure we can run config.sub.
3916$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3917  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3918
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3920$as_echo_n "checking build system type... " >&6; }
3921if ${ac_cv_build+:} false; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  ac_build_alias=$build_alias
3925test "x$ac_build_alias" = x &&
3926  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3927test "x$ac_build_alias" = x &&
3928  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3929ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3930  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3931
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3934$as_echo "$ac_cv_build" >&6; }
3935case $ac_cv_build in
3936*-*-*) ;;
3937*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3938esac
3939build=$ac_cv_build
3940ac_save_IFS=$IFS; IFS='-'
3941set x $ac_cv_build
3942shift
3943build_cpu=$1
3944build_vendor=$2
3945shift; shift
3946# Remember, the first character of IFS is used to create $*,
3947# except with old shells:
3948build_os=$*
3949IFS=$ac_save_IFS
3950case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3951
3952
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3954$as_echo_n "checking host system type... " >&6; }
3955if ${ac_cv_host+:} false; then :
3956  $as_echo_n "(cached) " >&6
3957else
3958  if test "x$host_alias" = x; then
3959  ac_cv_host=$ac_cv_build
3960else
3961  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3962    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3963fi
3964
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3967$as_echo "$ac_cv_host" >&6; }
3968case $ac_cv_host in
3969*-*-*) ;;
3970*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3971esac
3972host=$ac_cv_host
3973ac_save_IFS=$IFS; IFS='-'
3974set x $ac_cv_host
3975shift
3976host_cpu=$1
3977host_vendor=$2
3978shift; shift
3979# Remember, the first character of IFS is used to create $*,
3980# except with old shells:
3981host_os=$*
3982IFS=$ac_save_IFS
3983case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3984
3985
3986# Backslashify metacharacters that are still active within
3987# double-quoted strings.
3988sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3989
3990# Same as above, but do not quote variable references.
3991double_quote_subst='s/\(["`\\]\)/\\\1/g'
3992
3993# Sed substitution to delay expansion of an escaped shell variable in a
3994# double_quote_subst'ed string.
3995delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3996
3997# Sed substitution to delay expansion of an escaped single quote.
3998delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3999
4000# Sed substitution to avoid accidental globbing in evaled expressions
4001no_glob_subst='s/\*/\\\*/g'
4002
4003ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4004ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4005ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4006
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4008$as_echo_n "checking how to print strings... " >&6; }
4009# Test print first, because it will be a builtin if present.
4010if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4011   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4012  ECHO='print -r --'
4013elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4014  ECHO='printf %s\n'
4015else
4016  # Use this function as a fallback that always works.
4017  func_fallback_echo ()
4018  {
4019    eval 'cat <<_LTECHO_EOF
4020$1
4021_LTECHO_EOF'
4022  }
4023  ECHO='func_fallback_echo'
4024fi
4025
4026# func_echo_all arg...
4027# Invoke $ECHO with all args, space-separated.
4028func_echo_all ()
4029{
4030    $ECHO ""
4031}
4032
4033case "$ECHO" in
4034  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4035$as_echo "printf" >&6; } ;;
4036  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4037$as_echo "print -r" >&6; } ;;
4038  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4039$as_echo "cat" >&6; } ;;
4040esac
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4056$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4057if ${ac_cv_path_SED+:} false; then :
4058  $as_echo_n "(cached) " >&6
4059else
4060            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4061     for ac_i in 1 2 3 4 5 6 7; do
4062       ac_script="$ac_script$as_nl$ac_script"
4063     done
4064     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4065     { ac_script=; unset ac_script;}
4066     if test -z "$SED"; then
4067  ac_path_SED_found=false
4068  # Loop through the user's path and test for each of PROGNAME-LIST
4069  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH
4071do
4072  IFS=$as_save_IFS
4073  test -z "$as_dir" && as_dir=.
4074    for ac_prog in sed gsed; do
4075    for ac_exec_ext in '' $ac_executable_extensions; do
4076      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4077      as_fn_executable_p "$ac_path_SED" || continue
4078# Check for GNU ac_path_SED and select it if it is found.
4079  # Check for GNU $ac_path_SED
4080case `"$ac_path_SED" --version 2>&1` in
4081*GNU*)
4082  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4083*)
4084  ac_count=0
4085  $as_echo_n 0123456789 >"conftest.in"
4086  while :
4087  do
4088    cat "conftest.in" "conftest.in" >"conftest.tmp"
4089    mv "conftest.tmp" "conftest.in"
4090    cp "conftest.in" "conftest.nl"
4091    $as_echo '' >> "conftest.nl"
4092    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094    as_fn_arith $ac_count + 1 && ac_count=$as_val
4095    if test $ac_count -gt ${ac_path_SED_max-0}; then
4096      # Best one so far, save it but keep looking for a better one
4097      ac_cv_path_SED="$ac_path_SED"
4098      ac_path_SED_max=$ac_count
4099    fi
4100    # 10*(2^10) chars as input seems more than enough
4101    test $ac_count -gt 10 && break
4102  done
4103  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104esac
4105
4106      $ac_path_SED_found && break 3
4107    done
4108  done
4109  done
4110IFS=$as_save_IFS
4111  if test -z "$ac_cv_path_SED"; then
4112    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4113  fi
4114else
4115  ac_cv_path_SED=$SED
4116fi
4117
4118fi
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4120$as_echo "$ac_cv_path_SED" >&6; }
4121 SED="$ac_cv_path_SED"
4122  rm -f conftest.sed
4123
4124test -z "$SED" && SED=sed
4125Xsed="$SED -e 1s/^X//"
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4138$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4139if ${ac_cv_path_GREP+:} false; then :
4140  $as_echo_n "(cached) " >&6
4141else
4142  if test -z "$GREP"; then
4143  ac_path_GREP_found=false
4144  # Loop through the user's path and test for each of PROGNAME-LIST
4145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4147do
4148  IFS=$as_save_IFS
4149  test -z "$as_dir" && as_dir=.
4150    for ac_prog in grep ggrep; do
4151    for ac_exec_ext in '' $ac_executable_extensions; do
4152      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4153      as_fn_executable_p "$ac_path_GREP" || continue
4154# Check for GNU ac_path_GREP and select it if it is found.
4155  # Check for GNU $ac_path_GREP
4156case `"$ac_path_GREP" --version 2>&1` in
4157*GNU*)
4158  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4159*)
4160  ac_count=0
4161  $as_echo_n 0123456789 >"conftest.in"
4162  while :
4163  do
4164    cat "conftest.in" "conftest.in" >"conftest.tmp"
4165    mv "conftest.tmp" "conftest.in"
4166    cp "conftest.in" "conftest.nl"
4167    $as_echo 'GREP' >> "conftest.nl"
4168    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4169    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4170    as_fn_arith $ac_count + 1 && ac_count=$as_val
4171    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4172      # Best one so far, save it but keep looking for a better one
4173      ac_cv_path_GREP="$ac_path_GREP"
4174      ac_path_GREP_max=$ac_count
4175    fi
4176    # 10*(2^10) chars as input seems more than enough
4177    test $ac_count -gt 10 && break
4178  done
4179  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4180esac
4181
4182      $ac_path_GREP_found && break 3
4183    done
4184  done
4185  done
4186IFS=$as_save_IFS
4187  if test -z "$ac_cv_path_GREP"; then
4188    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4189  fi
4190else
4191  ac_cv_path_GREP=$GREP
4192fi
4193
4194fi
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4196$as_echo "$ac_cv_path_GREP" >&6; }
4197 GREP="$ac_cv_path_GREP"
4198
4199
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4201$as_echo_n "checking for egrep... " >&6; }
4202if ${ac_cv_path_EGREP+:} false; then :
4203  $as_echo_n "(cached) " >&6
4204else
4205  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4206   then ac_cv_path_EGREP="$GREP -E"
4207   else
4208     if test -z "$EGREP"; then
4209  ac_path_EGREP_found=false
4210  # Loop through the user's path and test for each of PROGNAME-LIST
4211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4213do
4214  IFS=$as_save_IFS
4215  test -z "$as_dir" && as_dir=.
4216    for ac_prog in egrep; do
4217    for ac_exec_ext in '' $ac_executable_extensions; do
4218      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4219      as_fn_executable_p "$ac_path_EGREP" || continue
4220# Check for GNU ac_path_EGREP and select it if it is found.
4221  # Check for GNU $ac_path_EGREP
4222case `"$ac_path_EGREP" --version 2>&1` in
4223*GNU*)
4224  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4225*)
4226  ac_count=0
4227  $as_echo_n 0123456789 >"conftest.in"
4228  while :
4229  do
4230    cat "conftest.in" "conftest.in" >"conftest.tmp"
4231    mv "conftest.tmp" "conftest.in"
4232    cp "conftest.in" "conftest.nl"
4233    $as_echo 'EGREP' >> "conftest.nl"
4234    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236    as_fn_arith $ac_count + 1 && ac_count=$as_val
4237    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4238      # Best one so far, save it but keep looking for a better one
4239      ac_cv_path_EGREP="$ac_path_EGREP"
4240      ac_path_EGREP_max=$ac_count
4241    fi
4242    # 10*(2^10) chars as input seems more than enough
4243    test $ac_count -gt 10 && break
4244  done
4245  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246esac
4247
4248      $ac_path_EGREP_found && break 3
4249    done
4250  done
4251  done
4252IFS=$as_save_IFS
4253  if test -z "$ac_cv_path_EGREP"; then
4254    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4255  fi
4256else
4257  ac_cv_path_EGREP=$EGREP
4258fi
4259
4260   fi
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4263$as_echo "$ac_cv_path_EGREP" >&6; }
4264 EGREP="$ac_cv_path_EGREP"
4265
4266
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4268$as_echo_n "checking for fgrep... " >&6; }
4269if ${ac_cv_path_FGREP+:} false; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4273   then ac_cv_path_FGREP="$GREP -F"
4274   else
4275     if test -z "$FGREP"; then
4276  ac_path_FGREP_found=false
4277  # Loop through the user's path and test for each of PROGNAME-LIST
4278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280do
4281  IFS=$as_save_IFS
4282  test -z "$as_dir" && as_dir=.
4283    for ac_prog in fgrep; do
4284    for ac_exec_ext in '' $ac_executable_extensions; do
4285      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4286      as_fn_executable_p "$ac_path_FGREP" || continue
4287# Check for GNU ac_path_FGREP and select it if it is found.
4288  # Check for GNU $ac_path_FGREP
4289case `"$ac_path_FGREP" --version 2>&1` in
4290*GNU*)
4291  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4292*)
4293  ac_count=0
4294  $as_echo_n 0123456789 >"conftest.in"
4295  while :
4296  do
4297    cat "conftest.in" "conftest.in" >"conftest.tmp"
4298    mv "conftest.tmp" "conftest.in"
4299    cp "conftest.in" "conftest.nl"
4300    $as_echo 'FGREP' >> "conftest.nl"
4301    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303    as_fn_arith $ac_count + 1 && ac_count=$as_val
4304    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4305      # Best one so far, save it but keep looking for a better one
4306      ac_cv_path_FGREP="$ac_path_FGREP"
4307      ac_path_FGREP_max=$ac_count
4308    fi
4309    # 10*(2^10) chars as input seems more than enough
4310    test $ac_count -gt 10 && break
4311  done
4312  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313esac
4314
4315      $ac_path_FGREP_found && break 3
4316    done
4317  done
4318  done
4319IFS=$as_save_IFS
4320  if test -z "$ac_cv_path_FGREP"; then
4321    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322  fi
4323else
4324  ac_cv_path_FGREP=$FGREP
4325fi
4326
4327   fi
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4330$as_echo "$ac_cv_path_FGREP" >&6; }
4331 FGREP="$ac_cv_path_FGREP"
4332
4333
4334test -z "$GREP" && GREP=grep
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354# Check whether --with-gnu-ld was given.
4355if test "${with_gnu_ld+set}" = set; then :
4356  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4357else
4358  with_gnu_ld=no
4359fi
4360
4361ac_prog=ld
4362if test "$GCC" = yes; then
4363  # Check if gcc -print-prog-name=ld gives a path.
4364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4365$as_echo_n "checking for ld used by $CC... " >&6; }
4366  case $host in
4367  *-*-mingw*)
4368    # gcc leaves a trailing carriage return which upsets mingw
4369    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4370  *)
4371    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4372  esac
4373  case $ac_prog in
4374    # Accept absolute paths.
4375    [\\/]* | ?:[\\/]*)
4376      re_direlt='/[^/][^/]*/\.\./'
4377      # Canonicalize the pathname of ld
4378      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4379      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4380	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4381      done
4382      test -z "$LD" && LD="$ac_prog"
4383      ;;
4384  "")
4385    # If it fails, then pretend we aren't using GCC.
4386    ac_prog=ld
4387    ;;
4388  *)
4389    # If it is relative, then search for the first ld in PATH.
4390    with_gnu_ld=unknown
4391    ;;
4392  esac
4393elif test "$with_gnu_ld" = yes; then
4394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4395$as_echo_n "checking for GNU ld... " >&6; }
4396else
4397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4398$as_echo_n "checking for non-GNU ld... " >&6; }
4399fi
4400if ${lt_cv_path_LD+:} false; then :
4401  $as_echo_n "(cached) " >&6
4402else
4403  if test -z "$LD"; then
4404  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4405  for ac_dir in $PATH; do
4406    IFS="$lt_save_ifs"
4407    test -z "$ac_dir" && ac_dir=.
4408    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4409      lt_cv_path_LD="$ac_dir/$ac_prog"
4410      # Check to see if the program is GNU ld.  I'd rather use --version,
4411      # but apparently some variants of GNU ld only accept -v.
4412      # Break only if it was the GNU/non-GNU ld that we prefer.
4413      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4414      *GNU* | *'with BFD'*)
4415	test "$with_gnu_ld" != no && break
4416	;;
4417      *)
4418	test "$with_gnu_ld" != yes && break
4419	;;
4420      esac
4421    fi
4422  done
4423  IFS="$lt_save_ifs"
4424else
4425  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4426fi
4427fi
4428
4429LD="$lt_cv_path_LD"
4430if test -n "$LD"; then
4431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4432$as_echo "$LD" >&6; }
4433else
4434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435$as_echo "no" >&6; }
4436fi
4437test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4439$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4440if ${lt_cv_prog_gnu_ld+:} false; then :
4441  $as_echo_n "(cached) " >&6
4442else
4443  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4444case `$LD -v 2>&1 </dev/null` in
4445*GNU* | *'with BFD'*)
4446  lt_cv_prog_gnu_ld=yes
4447  ;;
4448*)
4449  lt_cv_prog_gnu_ld=no
4450  ;;
4451esac
4452fi
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4454$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4455with_gnu_ld=$lt_cv_prog_gnu_ld
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4466$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4467if ${lt_cv_path_NM+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  if test -n "$NM"; then
4471  # Let the user override the test.
4472  lt_cv_path_NM="$NM"
4473else
4474  lt_nm_to_check="${ac_tool_prefix}nm"
4475  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4476    lt_nm_to_check="$lt_nm_to_check nm"
4477  fi
4478  for lt_tmp_nm in $lt_nm_to_check; do
4479    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4480    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4481      IFS="$lt_save_ifs"
4482      test -z "$ac_dir" && ac_dir=.
4483      tmp_nm="$ac_dir/$lt_tmp_nm"
4484      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4485	# Check to see if the nm accepts a BSD-compat flag.
4486	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4487	#   nm: unknown option "B" ignored
4488	# Tru64's nm complains that /dev/null is an invalid object file
4489	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4490	*/dev/null* | *'Invalid file or object type'*)
4491	  lt_cv_path_NM="$tmp_nm -B"
4492	  break
4493	  ;;
4494	*)
4495	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4496	  */dev/null*)
4497	    lt_cv_path_NM="$tmp_nm -p"
4498	    break
4499	    ;;
4500	  *)
4501	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4502	    continue # so that we can try to find one that supports BSD flags
4503	    ;;
4504	  esac
4505	  ;;
4506	esac
4507      fi
4508    done
4509    IFS="$lt_save_ifs"
4510  done
4511  : ${lt_cv_path_NM=no}
4512fi
4513fi
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4515$as_echo "$lt_cv_path_NM" >&6; }
4516if test "$lt_cv_path_NM" != "no"; then
4517  NM="$lt_cv_path_NM"
4518else
4519  # Didn't find any BSD compatible name lister, look for dumpbin.
4520  if test -n "$DUMPBIN"; then :
4521    # Let the user override the test.
4522  else
4523    if test -n "$ac_tool_prefix"; then
4524  for ac_prog in dumpbin "link -dump"
4525  do
4526    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529$as_echo_n "checking for $ac_word... " >&6; }
4530if ${ac_cv_prog_DUMPBIN+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  if test -n "$DUMPBIN"; then
4534  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541    for ac_exec_ext in '' $ac_executable_extensions; do
4542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548  done
4549IFS=$as_save_IFS
4550
4551fi
4552fi
4553DUMPBIN=$ac_cv_prog_DUMPBIN
4554if test -n "$DUMPBIN"; then
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4556$as_echo "$DUMPBIN" >&6; }
4557else
4558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559$as_echo "no" >&6; }
4560fi
4561
4562
4563    test -n "$DUMPBIN" && break
4564  done
4565fi
4566if test -z "$DUMPBIN"; then
4567  ac_ct_DUMPBIN=$DUMPBIN
4568  for ac_prog in dumpbin "link -dump"
4569do
4570  # Extract the first word of "$ac_prog", so it can be a program name with args.
4571set dummy $ac_prog; ac_word=$2
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573$as_echo_n "checking for $ac_word... " >&6; }
4574if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577  if test -n "$ac_ct_DUMPBIN"; then
4578  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583  IFS=$as_save_IFS
4584  test -z "$as_dir" && as_dir=.
4585    for ac_exec_ext in '' $ac_executable_extensions; do
4586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589    break 2
4590  fi
4591done
4592  done
4593IFS=$as_save_IFS
4594
4595fi
4596fi
4597ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4598if test -n "$ac_ct_DUMPBIN"; then
4599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4600$as_echo "$ac_ct_DUMPBIN" >&6; }
4601else
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603$as_echo "no" >&6; }
4604fi
4605
4606
4607  test -n "$ac_ct_DUMPBIN" && break
4608done
4609
4610  if test "x$ac_ct_DUMPBIN" = x; then
4611    DUMPBIN=":"
4612  else
4613    case $cross_compiling:$ac_tool_warned in
4614yes:)
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617ac_tool_warned=yes ;;
4618esac
4619    DUMPBIN=$ac_ct_DUMPBIN
4620  fi
4621fi
4622
4623    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4624    *COFF*)
4625      DUMPBIN="$DUMPBIN -symbols"
4626      ;;
4627    *)
4628      DUMPBIN=:
4629      ;;
4630    esac
4631  fi
4632
4633  if test "$DUMPBIN" != ":"; then
4634    NM="$DUMPBIN"
4635  fi
4636fi
4637test -z "$NM" && NM=nm
4638
4639
4640
4641
4642
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4645$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4646if ${lt_cv_nm_interface+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  lt_cv_nm_interface="BSD nm"
4650  echo "int some_variable = 0;" > conftest.$ac_ext
4651  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4652  (eval "$ac_compile" 2>conftest.err)
4653  cat conftest.err >&5
4654  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4655  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4656  cat conftest.err >&5
4657  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4658  cat conftest.out >&5
4659  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4660    lt_cv_nm_interface="MS dumpbin"
4661  fi
4662  rm -f conftest*
4663fi
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4665$as_echo "$lt_cv_nm_interface" >&6; }
4666
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4668$as_echo_n "checking whether ln -s works... " >&6; }
4669LN_S=$as_ln_s
4670if test "$LN_S" = "ln -s"; then
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4672$as_echo "yes" >&6; }
4673else
4674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4675$as_echo "no, using $LN_S" >&6; }
4676fi
4677
4678# find the maximum length of command line arguments
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4680$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4681if ${lt_cv_sys_max_cmd_len+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684    i=0
4685  teststring="ABCD"
4686
4687  case $build_os in
4688  msdosdjgpp*)
4689    # On DJGPP, this test can blow up pretty badly due to problems in libc
4690    # (any single argument exceeding 2000 bytes causes a buffer overrun
4691    # during glob expansion).  Even if it were fixed, the result of this
4692    # check would be larger than it should be.
4693    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4694    ;;
4695
4696  gnu*)
4697    # Under GNU Hurd, this test is not required because there is
4698    # no limit to the length of command line arguments.
4699    # Libtool will interpret -1 as no limit whatsoever
4700    lt_cv_sys_max_cmd_len=-1;
4701    ;;
4702
4703  cygwin* | mingw* | cegcc*)
4704    # On Win9x/ME, this test blows up -- it succeeds, but takes
4705    # about 5 minutes as the teststring grows exponentially.
4706    # Worse, since 9x/ME are not pre-emptively multitasking,
4707    # you end up with a "frozen" computer, even though with patience
4708    # the test eventually succeeds (with a max line length of 256k).
4709    # Instead, let's just punt: use the minimum linelength reported by
4710    # all of the supported platforms: 8192 (on NT/2K/XP).
4711    lt_cv_sys_max_cmd_len=8192;
4712    ;;
4713
4714  mint*)
4715    # On MiNT this can take a long time and run out of memory.
4716    lt_cv_sys_max_cmd_len=8192;
4717    ;;
4718
4719  amigaos*)
4720    # On AmigaOS with pdksh, this test takes hours, literally.
4721    # So we just punt and use a minimum line length of 8192.
4722    lt_cv_sys_max_cmd_len=8192;
4723    ;;
4724
4725  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4726    # This has been around since 386BSD, at least.  Likely further.
4727    if test -x /sbin/sysctl; then
4728      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4729    elif test -x /usr/sbin/sysctl; then
4730      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4731    else
4732      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4733    fi
4734    # And add a safety zone
4735    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4736    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4737    ;;
4738
4739  interix*)
4740    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4741    lt_cv_sys_max_cmd_len=196608
4742    ;;
4743
4744  os2*)
4745    # The test takes a long time on OS/2.
4746    lt_cv_sys_max_cmd_len=8192
4747    ;;
4748
4749  osf*)
4750    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4751    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4752    # nice to cause kernel panics so lets avoid the loop below.
4753    # First set a reasonable default.
4754    lt_cv_sys_max_cmd_len=16384
4755    #
4756    if test -x /sbin/sysconfig; then
4757      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4758        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4759      esac
4760    fi
4761    ;;
4762  sco3.2v5*)
4763    lt_cv_sys_max_cmd_len=102400
4764    ;;
4765  sysv5* | sco5v6* | sysv4.2uw2*)
4766    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4767    if test -n "$kargmax"; then
4768      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4769    else
4770      lt_cv_sys_max_cmd_len=32768
4771    fi
4772    ;;
4773  *)
4774    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4775    if test -n "$lt_cv_sys_max_cmd_len" && \
4776	test undefined != "$lt_cv_sys_max_cmd_len"; then
4777      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4778      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4779    else
4780      # Make teststring a little bigger before we do anything with it.
4781      # a 1K string should be a reasonable start.
4782      for i in 1 2 3 4 5 6 7 8 ; do
4783        teststring=$teststring$teststring
4784      done
4785      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4786      # If test is not a shell built-in, we'll probably end up computing a
4787      # maximum length that is only half of the actual maximum length, but
4788      # we can't tell.
4789      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4790	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4791	      test $i != 17 # 1/2 MB should be enough
4792      do
4793        i=`expr $i + 1`
4794        teststring=$teststring$teststring
4795      done
4796      # Only check the string length outside the loop.
4797      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4798      teststring=
4799      # Add a significant safety factor because C++ compilers can tack on
4800      # massive amounts of additional arguments before passing them to the
4801      # linker.  It appears as though 1/2 is a usable value.
4802      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4803    fi
4804    ;;
4805  esac
4806
4807fi
4808
4809if test -n $lt_cv_sys_max_cmd_len ; then
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4811$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4812else
4813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4814$as_echo "none" >&6; }
4815fi
4816max_cmd_len=$lt_cv_sys_max_cmd_len
4817
4818
4819
4820
4821
4822
4823: ${CP="cp -f"}
4824: ${MV="mv -f"}
4825: ${RM="rm -f"}
4826
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4828$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4829# Try some XSI features
4830xsi_shell=no
4831( _lt_dummy="a/b/c"
4832  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4833      = c,a/b,b/c, \
4834    && eval 'test $(( 1 + 1 )) -eq 2 \
4835    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4836  && xsi_shell=yes
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4838$as_echo "$xsi_shell" >&6; }
4839
4840
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4842$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4843lt_shell_append=no
4844( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4845    >/dev/null 2>&1 \
4846  && lt_shell_append=yes
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4848$as_echo "$lt_shell_append" >&6; }
4849
4850
4851if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4852  lt_unset=unset
4853else
4854  lt_unset=false
4855fi
4856
4857
4858
4859
4860
4861# test EBCDIC or ASCII
4862case `echo X|tr X '\101'` in
4863 A) # ASCII based system
4864    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4865  lt_SP2NL='tr \040 \012'
4866  lt_NL2SP='tr \015\012 \040\040'
4867  ;;
4868 *) # EBCDIC based system
4869  lt_SP2NL='tr \100 \n'
4870  lt_NL2SP='tr \r\n \100\100'
4871  ;;
4872esac
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4883$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4884if ${lt_cv_to_host_file_cmd+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  case $host in
4888  *-*-mingw* )
4889    case $build in
4890      *-*-mingw* ) # actually msys
4891        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4892        ;;
4893      *-*-cygwin* )
4894        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4895        ;;
4896      * ) # otherwise, assume *nix
4897        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4898        ;;
4899    esac
4900    ;;
4901  *-*-cygwin* )
4902    case $build in
4903      *-*-mingw* ) # actually msys
4904        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4905        ;;
4906      *-*-cygwin* )
4907        lt_cv_to_host_file_cmd=func_convert_file_noop
4908        ;;
4909      * ) # otherwise, assume *nix
4910        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4911        ;;
4912    esac
4913    ;;
4914  * ) # unhandled hosts (and "normal" native builds)
4915    lt_cv_to_host_file_cmd=func_convert_file_noop
4916    ;;
4917esac
4918
4919fi
4920
4921to_host_file_cmd=$lt_cv_to_host_file_cmd
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4923$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4924
4925
4926
4927
4928
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4930$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4931if ${lt_cv_to_tool_file_cmd+:} false; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  #assume ordinary cross tools, or native build.
4935lt_cv_to_tool_file_cmd=func_convert_file_noop
4936case $host in
4937  *-*-mingw* )
4938    case $build in
4939      *-*-mingw* ) # actually msys
4940        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4941        ;;
4942    esac
4943    ;;
4944esac
4945
4946fi
4947
4948to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4950$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4951
4952
4953
4954
4955
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4957$as_echo_n "checking for $LD option to reload object files... " >&6; }
4958if ${lt_cv_ld_reload_flag+:} false; then :
4959  $as_echo_n "(cached) " >&6
4960else
4961  lt_cv_ld_reload_flag='-r'
4962fi
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4964$as_echo "$lt_cv_ld_reload_flag" >&6; }
4965reload_flag=$lt_cv_ld_reload_flag
4966case $reload_flag in
4967"" | " "*) ;;
4968*) reload_flag=" $reload_flag" ;;
4969esac
4970reload_cmds='$LD$reload_flag -o $output$reload_objs'
4971case $host_os in
4972  cygwin* | mingw* | pw32* | cegcc*)
4973    if test "$GCC" != yes; then
4974      reload_cmds=false
4975    fi
4976    ;;
4977  darwin*)
4978    if test "$GCC" = yes; then
4979      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4980    else
4981      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4982    fi
4983    ;;
4984esac
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994if test -n "$ac_tool_prefix"; then
4995  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4996set dummy ${ac_tool_prefix}objdump; ac_word=$2
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998$as_echo_n "checking for $ac_word... " >&6; }
4999if ${ac_cv_prog_OBJDUMP+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002  if test -n "$OBJDUMP"; then
5003  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008  IFS=$as_save_IFS
5009  test -z "$as_dir" && as_dir=.
5010    for ac_exec_ext in '' $ac_executable_extensions; do
5011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014    break 2
5015  fi
5016done
5017  done
5018IFS=$as_save_IFS
5019
5020fi
5021fi
5022OBJDUMP=$ac_cv_prog_OBJDUMP
5023if test -n "$OBJDUMP"; then
5024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5025$as_echo "$OBJDUMP" >&6; }
5026else
5027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029fi
5030
5031
5032fi
5033if test -z "$ac_cv_prog_OBJDUMP"; then
5034  ac_ct_OBJDUMP=$OBJDUMP
5035  # Extract the first word of "objdump", so it can be a program name with args.
5036set dummy objdump; ac_word=$2
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038$as_echo_n "checking for $ac_word... " >&6; }
5039if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5040  $as_echo_n "(cached) " >&6
5041else
5042  if test -n "$ac_ct_OBJDUMP"; then
5043  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5044else
5045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048  IFS=$as_save_IFS
5049  test -z "$as_dir" && as_dir=.
5050    for ac_exec_ext in '' $ac_executable_extensions; do
5051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054    break 2
5055  fi
5056done
5057  done
5058IFS=$as_save_IFS
5059
5060fi
5061fi
5062ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5063if test -n "$ac_ct_OBJDUMP"; then
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5065$as_echo "$ac_ct_OBJDUMP" >&6; }
5066else
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068$as_echo "no" >&6; }
5069fi
5070
5071  if test "x$ac_ct_OBJDUMP" = x; then
5072    OBJDUMP="false"
5073  else
5074    case $cross_compiling:$ac_tool_warned in
5075yes:)
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078ac_tool_warned=yes ;;
5079esac
5080    OBJDUMP=$ac_ct_OBJDUMP
5081  fi
5082else
5083  OBJDUMP="$ac_cv_prog_OBJDUMP"
5084fi
5085
5086test -z "$OBJDUMP" && OBJDUMP=objdump
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5097$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5098if ${lt_cv_deplibs_check_method+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  lt_cv_file_magic_cmd='$MAGIC_CMD'
5102lt_cv_file_magic_test_file=
5103lt_cv_deplibs_check_method='unknown'
5104# Need to set the preceding variable on all platforms that support
5105# interlibrary dependencies.
5106# 'none' -- dependencies not supported.
5107# `unknown' -- same as none, but documents that we really don't know.
5108# 'pass_all' -- all dependencies passed with no checks.
5109# 'test_compile' -- check by making test program.
5110# 'file_magic [[regex]]' -- check by looking for files in library path
5111# which responds to the $file_magic_cmd with a given extended regex.
5112# If you have `file' or equivalent on your system and you're not sure
5113# whether `pass_all' will *always* work, you probably want this one.
5114
5115case $host_os in
5116aix[4-9]*)
5117  lt_cv_deplibs_check_method=pass_all
5118  ;;
5119
5120beos*)
5121  lt_cv_deplibs_check_method=pass_all
5122  ;;
5123
5124bsdi[45]*)
5125  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5126  lt_cv_file_magic_cmd='/usr/bin/file -L'
5127  lt_cv_file_magic_test_file=/shlib/libc.so
5128  ;;
5129
5130cygwin*)
5131  # func_win32_libid is a shell function defined in ltmain.sh
5132  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5133  lt_cv_file_magic_cmd='func_win32_libid'
5134  ;;
5135
5136mingw* | pw32*)
5137  # Base MSYS/MinGW do not provide the 'file' command needed by
5138  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5139  # unless we find 'file', for example because we are cross-compiling.
5140  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5141  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5142    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5143    lt_cv_file_magic_cmd='func_win32_libid'
5144  else
5145    # Keep this pattern in sync with the one in func_win32_libid.
5146    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5147    lt_cv_file_magic_cmd='$OBJDUMP -f'
5148  fi
5149  ;;
5150
5151cegcc*)
5152  # use the weaker test based on 'objdump'. See mingw*.
5153  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5154  lt_cv_file_magic_cmd='$OBJDUMP -f'
5155  ;;
5156
5157darwin* | rhapsody*)
5158  lt_cv_deplibs_check_method=pass_all
5159  ;;
5160
5161freebsd* | dragonfly*)
5162  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5163    case $host_cpu in
5164    i*86 )
5165      # Not sure whether the presence of OpenBSD here was a mistake.
5166      # Let's accept both of them until this is cleared up.
5167      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5168      lt_cv_file_magic_cmd=/usr/bin/file
5169      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5170      ;;
5171    esac
5172  else
5173    lt_cv_deplibs_check_method=pass_all
5174  fi
5175  ;;
5176
5177haiku*)
5178  lt_cv_deplibs_check_method=pass_all
5179  ;;
5180
5181hpux10.20* | hpux11*)
5182  lt_cv_file_magic_cmd=/usr/bin/file
5183  case $host_cpu in
5184  ia64*)
5185    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5186    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5187    ;;
5188  hppa*64*)
5189    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]'
5190    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5191    ;;
5192  *)
5193    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5194    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5195    ;;
5196  esac
5197  ;;
5198
5199interix[3-9]*)
5200  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5201  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5202  ;;
5203
5204irix5* | irix6* | nonstopux*)
5205  case $LD in
5206  *-32|*"-32 ") libmagic=32-bit;;
5207  *-n32|*"-n32 ") libmagic=N32;;
5208  *-64|*"-64 ") libmagic=64-bit;;
5209  *) libmagic=never-match;;
5210  esac
5211  lt_cv_deplibs_check_method=pass_all
5212  ;;
5213
5214# This must be glibc/ELF.
5215linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5216  lt_cv_deplibs_check_method=pass_all
5217  ;;
5218
5219netbsd* | netbsdelf*-gnu)
5220  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5221    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5222  else
5223    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5224  fi
5225  ;;
5226
5227newos6*)
5228  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5229  lt_cv_file_magic_cmd=/usr/bin/file
5230  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5231  ;;
5232
5233*nto* | *qnx*)
5234  lt_cv_deplibs_check_method=pass_all
5235  ;;
5236
5237openbsd*)
5238  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5239    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5240  else
5241    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5242  fi
5243  ;;
5244
5245osf3* | osf4* | osf5*)
5246  lt_cv_deplibs_check_method=pass_all
5247  ;;
5248
5249rdos*)
5250  lt_cv_deplibs_check_method=pass_all
5251  ;;
5252
5253solaris*)
5254  lt_cv_deplibs_check_method=pass_all
5255  ;;
5256
5257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5258  lt_cv_deplibs_check_method=pass_all
5259  ;;
5260
5261sysv4 | sysv4.3*)
5262  case $host_vendor in
5263  motorola)
5264    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]'
5265    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5266    ;;
5267  ncr)
5268    lt_cv_deplibs_check_method=pass_all
5269    ;;
5270  sequent)
5271    lt_cv_file_magic_cmd='/bin/file'
5272    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5273    ;;
5274  sni)
5275    lt_cv_file_magic_cmd='/bin/file'
5276    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5277    lt_cv_file_magic_test_file=/lib/libc.so
5278    ;;
5279  siemens)
5280    lt_cv_deplibs_check_method=pass_all
5281    ;;
5282  pc)
5283    lt_cv_deplibs_check_method=pass_all
5284    ;;
5285  esac
5286  ;;
5287
5288tpf*)
5289  lt_cv_deplibs_check_method=pass_all
5290  ;;
5291esac
5292
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5295$as_echo "$lt_cv_deplibs_check_method" >&6; }
5296
5297file_magic_glob=
5298want_nocaseglob=no
5299if test "$build" = "$host"; then
5300  case $host_os in
5301  mingw* | pw32*)
5302    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5303      want_nocaseglob=yes
5304    else
5305      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5306    fi
5307    ;;
5308  esac
5309fi
5310
5311file_magic_cmd=$lt_cv_file_magic_cmd
5312deplibs_check_method=$lt_cv_deplibs_check_method
5313test -z "$deplibs_check_method" && deplibs_check_method=unknown
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336if test -n "$ac_tool_prefix"; then
5337  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5338set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340$as_echo_n "checking for $ac_word... " >&6; }
5341if ${ac_cv_prog_DLLTOOL+:} false; then :
5342  $as_echo_n "(cached) " >&6
5343else
5344  if test -n "$DLLTOOL"; then
5345  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350  IFS=$as_save_IFS
5351  test -z "$as_dir" && as_dir=.
5352    for ac_exec_ext in '' $ac_executable_extensions; do
5353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356    break 2
5357  fi
5358done
5359  done
5360IFS=$as_save_IFS
5361
5362fi
5363fi
5364DLLTOOL=$ac_cv_prog_DLLTOOL
5365if test -n "$DLLTOOL"; then
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5367$as_echo "$DLLTOOL" >&6; }
5368else
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370$as_echo "no" >&6; }
5371fi
5372
5373
5374fi
5375if test -z "$ac_cv_prog_DLLTOOL"; then
5376  ac_ct_DLLTOOL=$DLLTOOL
5377  # Extract the first word of "dlltool", so it can be a program name with args.
5378set dummy dlltool; ac_word=$2
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380$as_echo_n "checking for $ac_word... " >&6; }
5381if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5382  $as_echo_n "(cached) " >&6
5383else
5384  if test -n "$ac_ct_DLLTOOL"; then
5385  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390  IFS=$as_save_IFS
5391  test -z "$as_dir" && as_dir=.
5392    for ac_exec_ext in '' $ac_executable_extensions; do
5393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396    break 2
5397  fi
5398done
5399  done
5400IFS=$as_save_IFS
5401
5402fi
5403fi
5404ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5405if test -n "$ac_ct_DLLTOOL"; then
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5407$as_echo "$ac_ct_DLLTOOL" >&6; }
5408else
5409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410$as_echo "no" >&6; }
5411fi
5412
5413  if test "x$ac_ct_DLLTOOL" = x; then
5414    DLLTOOL="false"
5415  else
5416    case $cross_compiling:$ac_tool_warned in
5417yes:)
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420ac_tool_warned=yes ;;
5421esac
5422    DLLTOOL=$ac_ct_DLLTOOL
5423  fi
5424else
5425  DLLTOOL="$ac_cv_prog_DLLTOOL"
5426fi
5427
5428test -z "$DLLTOOL" && DLLTOOL=dlltool
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5440$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5441if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  lt_cv_sharedlib_from_linklib_cmd='unknown'
5445
5446case $host_os in
5447cygwin* | mingw* | pw32* | cegcc*)
5448  # two different shell functions defined in ltmain.sh
5449  # decide which to use based on capabilities of $DLLTOOL
5450  case `$DLLTOOL --help 2>&1` in
5451  *--identify-strict*)
5452    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5453    ;;
5454  *)
5455    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5456    ;;
5457  esac
5458  ;;
5459*)
5460  # fallback: assume linklib IS sharedlib
5461  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5462  ;;
5463esac
5464
5465fi
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5467$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5468sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5469test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5470
5471
5472
5473
5474
5475
5476
5477
5478if test -n "$ac_tool_prefix"; then
5479  for ac_prog in ar
5480  do
5481    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484$as_echo_n "checking for $ac_word... " >&6; }
5485if ${ac_cv_prog_AR+:} false; then :
5486  $as_echo_n "(cached) " >&6
5487else
5488  if test -n "$AR"; then
5489  ac_cv_prog_AR="$AR" # Let the user override the test.
5490else
5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH
5493do
5494  IFS=$as_save_IFS
5495  test -z "$as_dir" && as_dir=.
5496    for ac_exec_ext in '' $ac_executable_extensions; do
5497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500    break 2
5501  fi
5502done
5503  done
5504IFS=$as_save_IFS
5505
5506fi
5507fi
5508AR=$ac_cv_prog_AR
5509if test -n "$AR"; then
5510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5511$as_echo "$AR" >&6; }
5512else
5513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }
5515fi
5516
5517
5518    test -n "$AR" && break
5519  done
5520fi
5521if test -z "$AR"; then
5522  ac_ct_AR=$AR
5523  for ac_prog in ar
5524do
5525  # Extract the first word of "$ac_prog", so it can be a program name with args.
5526set dummy $ac_prog; ac_word=$2
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528$as_echo_n "checking for $ac_word... " >&6; }
5529if ${ac_cv_prog_ac_ct_AR+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  if test -n "$ac_ct_AR"; then
5533  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5534else
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538  IFS=$as_save_IFS
5539  test -z "$as_dir" && as_dir=.
5540    for ac_exec_ext in '' $ac_executable_extensions; do
5541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542    ac_cv_prog_ac_ct_AR="$ac_prog"
5543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544    break 2
5545  fi
5546done
5547  done
5548IFS=$as_save_IFS
5549
5550fi
5551fi
5552ac_ct_AR=$ac_cv_prog_ac_ct_AR
5553if test -n "$ac_ct_AR"; then
5554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5555$as_echo "$ac_ct_AR" >&6; }
5556else
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558$as_echo "no" >&6; }
5559fi
5560
5561
5562  test -n "$ac_ct_AR" && break
5563done
5564
5565  if test "x$ac_ct_AR" = x; then
5566    AR="false"
5567  else
5568    case $cross_compiling:$ac_tool_warned in
5569yes:)
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5572ac_tool_warned=yes ;;
5573esac
5574    AR=$ac_ct_AR
5575  fi
5576fi
5577
5578: ${AR=ar}
5579: ${AR_FLAGS=cru}
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5592$as_echo_n "checking for archiver @FILE support... " >&6; }
5593if ${lt_cv_ar_at_file+:} false; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  lt_cv_ar_at_file=no
5597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599
5600int
5601main ()
5602{
5603
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"; then :
5609  echo conftest.$ac_objext > conftest.lst
5610      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5611      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5612  (eval $lt_ar_try) 2>&5
5613  ac_status=$?
5614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5615  test $ac_status = 0; }
5616      if test "$ac_status" -eq 0; then
5617	# Ensure the archiver fails upon bogus file names.
5618	rm -f conftest.$ac_objext libconftest.a
5619	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5620  (eval $lt_ar_try) 2>&5
5621  ac_status=$?
5622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623  test $ac_status = 0; }
5624	if test "$ac_status" -ne 0; then
5625          lt_cv_ar_at_file=@
5626        fi
5627      fi
5628      rm -f conftest.* libconftest.a
5629
5630fi
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632
5633fi
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5635$as_echo "$lt_cv_ar_at_file" >&6; }
5636
5637if test "x$lt_cv_ar_at_file" = xno; then
5638  archiver_list_spec=
5639else
5640  archiver_list_spec=$lt_cv_ar_at_file
5641fi
5642
5643
5644
5645
5646
5647
5648
5649if test -n "$ac_tool_prefix"; then
5650  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5651set dummy ${ac_tool_prefix}strip; ac_word=$2
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653$as_echo_n "checking for $ac_word... " >&6; }
5654if ${ac_cv_prog_STRIP+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  if test -n "$STRIP"; then
5658  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663  IFS=$as_save_IFS
5664  test -z "$as_dir" && as_dir=.
5665    for ac_exec_ext in '' $ac_executable_extensions; do
5666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669    break 2
5670  fi
5671done
5672  done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
5677STRIP=$ac_cv_prog_STRIP
5678if test -n "$STRIP"; then
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5680$as_echo "$STRIP" >&6; }
5681else
5682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683$as_echo "no" >&6; }
5684fi
5685
5686
5687fi
5688if test -z "$ac_cv_prog_STRIP"; then
5689  ac_ct_STRIP=$STRIP
5690  # Extract the first word of "strip", so it can be a program name with args.
5691set dummy strip; ac_word=$2
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693$as_echo_n "checking for $ac_word... " >&6; }
5694if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5695  $as_echo_n "(cached) " >&6
5696else
5697  if test -n "$ac_ct_STRIP"; then
5698  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703  IFS=$as_save_IFS
5704  test -z "$as_dir" && as_dir=.
5705    for ac_exec_ext in '' $ac_executable_extensions; do
5706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707    ac_cv_prog_ac_ct_STRIP="strip"
5708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709    break 2
5710  fi
5711done
5712  done
5713IFS=$as_save_IFS
5714
5715fi
5716fi
5717ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5718if test -n "$ac_ct_STRIP"; then
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5720$as_echo "$ac_ct_STRIP" >&6; }
5721else
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723$as_echo "no" >&6; }
5724fi
5725
5726  if test "x$ac_ct_STRIP" = x; then
5727    STRIP=":"
5728  else
5729    case $cross_compiling:$ac_tool_warned in
5730yes:)
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5733ac_tool_warned=yes ;;
5734esac
5735    STRIP=$ac_ct_STRIP
5736  fi
5737else
5738  STRIP="$ac_cv_prog_STRIP"
5739fi
5740
5741test -z "$STRIP" && STRIP=:
5742
5743
5744
5745
5746
5747
5748if test -n "$ac_tool_prefix"; then
5749  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5750set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752$as_echo_n "checking for $ac_word... " >&6; }
5753if ${ac_cv_prog_RANLIB+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  if test -n "$RANLIB"; then
5757  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5758else
5759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH
5761do
5762  IFS=$as_save_IFS
5763  test -z "$as_dir" && as_dir=.
5764    for ac_exec_ext in '' $ac_executable_extensions; do
5765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768    break 2
5769  fi
5770done
5771  done
5772IFS=$as_save_IFS
5773
5774fi
5775fi
5776RANLIB=$ac_cv_prog_RANLIB
5777if test -n "$RANLIB"; then
5778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5779$as_echo "$RANLIB" >&6; }
5780else
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782$as_echo "no" >&6; }
5783fi
5784
5785
5786fi
5787if test -z "$ac_cv_prog_RANLIB"; then
5788  ac_ct_RANLIB=$RANLIB
5789  # Extract the first word of "ranlib", so it can be a program name with args.
5790set dummy ranlib; ac_word=$2
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792$as_echo_n "checking for $ac_word... " >&6; }
5793if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5794  $as_echo_n "(cached) " >&6
5795else
5796  if test -n "$ac_ct_RANLIB"; then
5797  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5798else
5799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802  IFS=$as_save_IFS
5803  test -z "$as_dir" && as_dir=.
5804    for ac_exec_ext in '' $ac_executable_extensions; do
5805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806    ac_cv_prog_ac_ct_RANLIB="ranlib"
5807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808    break 2
5809  fi
5810done
5811  done
5812IFS=$as_save_IFS
5813
5814fi
5815fi
5816ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5817if test -n "$ac_ct_RANLIB"; then
5818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5819$as_echo "$ac_ct_RANLIB" >&6; }
5820else
5821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822$as_echo "no" >&6; }
5823fi
5824
5825  if test "x$ac_ct_RANLIB" = x; then
5826    RANLIB=":"
5827  else
5828    case $cross_compiling:$ac_tool_warned in
5829yes:)
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832ac_tool_warned=yes ;;
5833esac
5834    RANLIB=$ac_ct_RANLIB
5835  fi
5836else
5837  RANLIB="$ac_cv_prog_RANLIB"
5838fi
5839
5840test -z "$RANLIB" && RANLIB=:
5841
5842
5843
5844
5845
5846
5847# Determine commands to create old-style static archives.
5848old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5849old_postinstall_cmds='chmod 644 $oldlib'
5850old_postuninstall_cmds=
5851
5852if test -n "$RANLIB"; then
5853  case $host_os in
5854  openbsd*)
5855    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5856    ;;
5857  *)
5858    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5859    ;;
5860  esac
5861  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5862fi
5863
5864case $host_os in
5865  darwin*)
5866    lock_old_archive_extraction=yes ;;
5867  *)
5868    lock_old_archive_extraction=no ;;
5869esac
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909# If no C compiler was specified, use CC.
5910LTCC=${LTCC-"$CC"}
5911
5912# If no C compiler flags were specified, use CFLAGS.
5913LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5914
5915# Allow CC to be a program name with arguments.
5916compiler=$CC
5917
5918
5919# Check for command to grab the raw symbol name followed by C symbol from nm.
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5921$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5922if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925
5926# These are sane defaults that work on at least a few old systems.
5927# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5928
5929# Character class describing NM global symbol codes.
5930symcode='[BCDEGRST]'
5931
5932# Regexp to match symbols that can be accessed directly from C.
5933sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5934
5935# Define system-specific variables.
5936case $host_os in
5937aix*)
5938  symcode='[BCDT]'
5939  ;;
5940cygwin* | mingw* | pw32* | cegcc*)
5941  symcode='[ABCDGISTW]'
5942  ;;
5943hpux*)
5944  if test "$host_cpu" = ia64; then
5945    symcode='[ABCDEGRST]'
5946  fi
5947  ;;
5948irix* | nonstopux*)
5949  symcode='[BCDEGRST]'
5950  ;;
5951osf*)
5952  symcode='[BCDEGQRST]'
5953  ;;
5954solaris*)
5955  symcode='[BDRT]'
5956  ;;
5957sco3.2v5*)
5958  symcode='[DT]'
5959  ;;
5960sysv4.2uw2*)
5961  symcode='[DT]'
5962  ;;
5963sysv5* | sco5v6* | unixware* | OpenUNIX*)
5964  symcode='[ABDT]'
5965  ;;
5966sysv4)
5967  symcode='[DFNSTU]'
5968  ;;
5969esac
5970
5971# If we're using GNU nm, then use its standard symbol codes.
5972case `$NM -V 2>&1` in
5973*GNU* | *'with BFD'*)
5974  symcode='[ABCDGIRSTW]' ;;
5975esac
5976
5977# Transform an extracted symbol line into a proper C declaration.
5978# Some systems (esp. on ia64) link data and code symbols differently,
5979# so use this general approach.
5980lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5981
5982# Transform an extracted symbol line into symbol name and symbol address
5983lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5984lt_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'"
5985
5986# Handle CRLF in mingw tool chain
5987opt_cr=
5988case $build_os in
5989mingw*)
5990  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5991  ;;
5992esac
5993
5994# Try without a prefix underscore, then with it.
5995for ac_symprfx in "" "_"; do
5996
5997  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5998  symxfrm="\\1 $ac_symprfx\\2 \\2"
5999
6000  # Write the raw and C identifiers.
6001  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6002    # Fake it for dumpbin and say T for any non-static function
6003    # and D for any global variable.
6004    # Also find C++ and __fastcall symbols from MSVC++,
6005    # which start with @ or ?.
6006    lt_cv_sys_global_symbol_pipe="$AWK '"\
6007"     {last_section=section; section=\$ 3};"\
6008"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6009"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6010"     \$ 0!~/External *\|/{next};"\
6011"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6012"     {if(hide[section]) next};"\
6013"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6014"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6015"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6016"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6017"     ' prfx=^$ac_symprfx"
6018  else
6019    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6020  fi
6021  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6022
6023  # Check to see that the pipe works correctly.
6024  pipe_works=no
6025
6026  rm -f conftest*
6027  cat > conftest.$ac_ext <<_LT_EOF
6028#ifdef __cplusplus
6029extern "C" {
6030#endif
6031char nm_test_var;
6032void nm_test_func(void);
6033void nm_test_func(void){}
6034#ifdef __cplusplus
6035}
6036#endif
6037int main(){nm_test_var='a';nm_test_func();return(0);}
6038_LT_EOF
6039
6040  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6041  (eval $ac_compile) 2>&5
6042  ac_status=$?
6043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6044  test $ac_status = 0; }; then
6045    # Now try to grab the symbols.
6046    nlist=conftest.nm
6047    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6048  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6049  ac_status=$?
6050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6051  test $ac_status = 0; } && test -s "$nlist"; then
6052      # Try sorting and uniquifying the output.
6053      if sort "$nlist" | uniq > "$nlist"T; then
6054	mv -f "$nlist"T "$nlist"
6055      else
6056	rm -f "$nlist"T
6057      fi
6058
6059      # Make sure that we snagged all the symbols we need.
6060      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6061	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6062	  cat <<_LT_EOF > conftest.$ac_ext
6063/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6064#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6065/* DATA imports from DLLs on WIN32 con't be const, because runtime
6066   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6067# define LT_DLSYM_CONST
6068#elif defined(__osf__)
6069/* This system does not cope well with relocations in const data.  */
6070# define LT_DLSYM_CONST
6071#else
6072# define LT_DLSYM_CONST const
6073#endif
6074
6075#ifdef __cplusplus
6076extern "C" {
6077#endif
6078
6079_LT_EOF
6080	  # Now generate the symbol file.
6081	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6082
6083	  cat <<_LT_EOF >> conftest.$ac_ext
6084
6085/* The mapping between symbol names and symbols.  */
6086LT_DLSYM_CONST struct {
6087  const char *name;
6088  void       *address;
6089}
6090lt__PROGRAM__LTX_preloaded_symbols[] =
6091{
6092  { "@PROGRAM@", (void *) 0 },
6093_LT_EOF
6094	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6095	  cat <<\_LT_EOF >> conftest.$ac_ext
6096  {0, (void *) 0}
6097};
6098
6099/* This works around a problem in FreeBSD linker */
6100#ifdef FREEBSD_WORKAROUND
6101static const void *lt_preloaded_setup() {
6102  return lt__PROGRAM__LTX_preloaded_symbols;
6103}
6104#endif
6105
6106#ifdef __cplusplus
6107}
6108#endif
6109_LT_EOF
6110	  # Now try linking the two files.
6111	  mv conftest.$ac_objext conftstm.$ac_objext
6112	  lt_globsym_save_LIBS=$LIBS
6113	  lt_globsym_save_CFLAGS=$CFLAGS
6114	  LIBS="conftstm.$ac_objext"
6115	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6116	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6117  (eval $ac_link) 2>&5
6118  ac_status=$?
6119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6121	    pipe_works=yes
6122	  fi
6123	  LIBS=$lt_globsym_save_LIBS
6124	  CFLAGS=$lt_globsym_save_CFLAGS
6125	else
6126	  echo "cannot find nm_test_func in $nlist" >&5
6127	fi
6128      else
6129	echo "cannot find nm_test_var in $nlist" >&5
6130      fi
6131    else
6132      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6133    fi
6134  else
6135    echo "$progname: failed program was:" >&5
6136    cat conftest.$ac_ext >&5
6137  fi
6138  rm -rf conftest* conftst*
6139
6140  # Do not use the global_symbol_pipe unless it works.
6141  if test "$pipe_works" = yes; then
6142    break
6143  else
6144    lt_cv_sys_global_symbol_pipe=
6145  fi
6146done
6147
6148fi
6149
6150if test -z "$lt_cv_sys_global_symbol_pipe"; then
6151  lt_cv_sys_global_symbol_to_cdecl=
6152fi
6153if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6155$as_echo "failed" >&6; }
6156else
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6158$as_echo "ok" >&6; }
6159fi
6160
6161# Response file support.
6162if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6163  nm_file_list_spec='@'
6164elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6165  nm_file_list_spec='@'
6166fi
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6195$as_echo_n "checking for sysroot... " >&6; }
6196
6197# Check whether --with-sysroot was given.
6198if test "${with_sysroot+set}" = set; then :
6199  withval=$with_sysroot;
6200else
6201  with_sysroot=no
6202fi
6203
6204
6205lt_sysroot=
6206case ${with_sysroot} in #(
6207 yes)
6208   if test "$GCC" = yes; then
6209     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6210   fi
6211   ;; #(
6212 /*)
6213   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6214   ;; #(
6215 no|'')
6216   ;; #(
6217 *)
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6219$as_echo "${with_sysroot}" >&6; }
6220   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6221   ;;
6222esac
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6225$as_echo "${lt_sysroot:-no}" >&6; }
6226
6227
6228
6229
6230
6231# Check whether --enable-libtool-lock was given.
6232if test "${enable_libtool_lock+set}" = set; then :
6233  enableval=$enable_libtool_lock;
6234fi
6235
6236test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6237
6238# Some flags need to be propagated to the compiler or linker for good
6239# libtool support.
6240case $host in
6241ia64-*-hpux*)
6242  # Find out which ABI we are using.
6243  echo 'int i;' > conftest.$ac_ext
6244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245  (eval $ac_compile) 2>&5
6246  ac_status=$?
6247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248  test $ac_status = 0; }; then
6249    case `/usr/bin/file conftest.$ac_objext` in
6250      *ELF-32*)
6251	HPUX_IA64_MODE="32"
6252	;;
6253      *ELF-64*)
6254	HPUX_IA64_MODE="64"
6255	;;
6256    esac
6257  fi
6258  rm -rf conftest*
6259  ;;
6260*-*-irix6*)
6261  # Find out which ABI we are using.
6262  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6263  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6264  (eval $ac_compile) 2>&5
6265  ac_status=$?
6266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267  test $ac_status = 0; }; then
6268    if test "$lt_cv_prog_gnu_ld" = yes; then
6269      case `/usr/bin/file conftest.$ac_objext` in
6270	*32-bit*)
6271	  LD="${LD-ld} -melf32bsmip"
6272	  ;;
6273	*N32*)
6274	  LD="${LD-ld} -melf32bmipn32"
6275	  ;;
6276	*64-bit*)
6277	  LD="${LD-ld} -melf64bmip"
6278	;;
6279      esac
6280    else
6281      case `/usr/bin/file conftest.$ac_objext` in
6282	*32-bit*)
6283	  LD="${LD-ld} -32"
6284	  ;;
6285	*N32*)
6286	  LD="${LD-ld} -n32"
6287	  ;;
6288	*64-bit*)
6289	  LD="${LD-ld} -64"
6290	  ;;
6291      esac
6292    fi
6293  fi
6294  rm -rf conftest*
6295  ;;
6296
6297x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6298s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6299  # Find out which ABI we are using.
6300  echo 'int i;' > conftest.$ac_ext
6301  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302  (eval $ac_compile) 2>&5
6303  ac_status=$?
6304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305  test $ac_status = 0; }; then
6306    case `/usr/bin/file conftest.o` in
6307      *32-bit*)
6308	case $host in
6309	  x86_64-*kfreebsd*-gnu)
6310	    LD="${LD-ld} -m elf_i386_fbsd"
6311	    ;;
6312	  x86_64-*linux*)
6313	    case `/usr/bin/file conftest.o` in
6314	      *x86-64*)
6315		LD="${LD-ld} -m elf32_x86_64"
6316		;;
6317	      *)
6318		LD="${LD-ld} -m elf_i386"
6319		;;
6320	    esac
6321	    ;;
6322	  powerpc64le-*)
6323	    LD="${LD-ld} -m elf32lppclinux"
6324	    ;;
6325	  powerpc64-*)
6326	    LD="${LD-ld} -m elf32ppclinux"
6327	    ;;
6328	  s390x-*linux*)
6329	    LD="${LD-ld} -m elf_s390"
6330	    ;;
6331	  sparc64-*linux*)
6332	    LD="${LD-ld} -m elf32_sparc"
6333	    ;;
6334	esac
6335	;;
6336      *64-bit*)
6337	case $host in
6338	  x86_64-*kfreebsd*-gnu)
6339	    LD="${LD-ld} -m elf_x86_64_fbsd"
6340	    ;;
6341	  x86_64-*linux*)
6342	    LD="${LD-ld} -m elf_x86_64"
6343	    ;;
6344	  powerpcle-*)
6345	    LD="${LD-ld} -m elf64lppc"
6346	    ;;
6347	  powerpc-*)
6348	    LD="${LD-ld} -m elf64ppc"
6349	    ;;
6350	  s390*-*linux*|s390*-*tpf*)
6351	    LD="${LD-ld} -m elf64_s390"
6352	    ;;
6353	  sparc*-*linux*)
6354	    LD="${LD-ld} -m elf64_sparc"
6355	    ;;
6356	esac
6357	;;
6358    esac
6359  fi
6360  rm -rf conftest*
6361  ;;
6362
6363*-*-sco3.2v5*)
6364  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6365  SAVE_CFLAGS="$CFLAGS"
6366  CFLAGS="$CFLAGS -belf"
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6368$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6369if ${lt_cv_cc_needs_belf+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  ac_ext=c
6373ac_cpp='$CPP $CPPFLAGS'
6374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377
6378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379/* end confdefs.h.  */
6380
6381int
6382main ()
6383{
6384
6385  ;
6386  return 0;
6387}
6388_ACEOF
6389if ac_fn_c_try_link "$LINENO"; then :
6390  lt_cv_cc_needs_belf=yes
6391else
6392  lt_cv_cc_needs_belf=no
6393fi
6394rm -f core conftest.err conftest.$ac_objext \
6395    conftest$ac_exeext conftest.$ac_ext
6396     ac_ext=c
6397ac_cpp='$CPP $CPPFLAGS'
6398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401
6402fi
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6404$as_echo "$lt_cv_cc_needs_belf" >&6; }
6405  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6406    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6407    CFLAGS="$SAVE_CFLAGS"
6408  fi
6409  ;;
6410*-*solaris*)
6411  # Find out which ABI we are using.
6412  echo 'int i;' > conftest.$ac_ext
6413  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414  (eval $ac_compile) 2>&5
6415  ac_status=$?
6416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417  test $ac_status = 0; }; then
6418    case `/usr/bin/file conftest.o` in
6419    *64-bit*)
6420      case $lt_cv_prog_gnu_ld in
6421      yes*)
6422        case $host in
6423        i?86-*-solaris*)
6424          LD="${LD-ld} -m elf_x86_64"
6425          ;;
6426        sparc*-*-solaris*)
6427          LD="${LD-ld} -m elf64_sparc"
6428          ;;
6429        esac
6430        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6431        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6432          LD="${LD-ld}_sol2"
6433        fi
6434        ;;
6435      *)
6436	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6437	  LD="${LD-ld} -64"
6438	fi
6439	;;
6440      esac
6441      ;;
6442    esac
6443  fi
6444  rm -rf conftest*
6445  ;;
6446esac
6447
6448need_locks="$enable_libtool_lock"
6449
6450if test -n "$ac_tool_prefix"; then
6451  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6452set dummy ${ac_tool_prefix}mt; ac_word=$2
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454$as_echo_n "checking for $ac_word... " >&6; }
6455if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6456  $as_echo_n "(cached) " >&6
6457else
6458  if test -n "$MANIFEST_TOOL"; then
6459  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464  IFS=$as_save_IFS
6465  test -z "$as_dir" && as_dir=.
6466    for ac_exec_ext in '' $ac_executable_extensions; do
6467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470    break 2
6471  fi
6472done
6473  done
6474IFS=$as_save_IFS
6475
6476fi
6477fi
6478MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6479if test -n "$MANIFEST_TOOL"; then
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6481$as_echo "$MANIFEST_TOOL" >&6; }
6482else
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484$as_echo "no" >&6; }
6485fi
6486
6487
6488fi
6489if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6490  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6491  # Extract the first word of "mt", so it can be a program name with args.
6492set dummy mt; ac_word=$2
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494$as_echo_n "checking for $ac_word... " >&6; }
6495if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6496  $as_echo_n "(cached) " >&6
6497else
6498  if test -n "$ac_ct_MANIFEST_TOOL"; then
6499  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506    for ac_exec_ext in '' $ac_executable_extensions; do
6507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510    break 2
6511  fi
6512done
6513  done
6514IFS=$as_save_IFS
6515
6516fi
6517fi
6518ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6519if test -n "$ac_ct_MANIFEST_TOOL"; then
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6521$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6522else
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524$as_echo "no" >&6; }
6525fi
6526
6527  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6528    MANIFEST_TOOL=":"
6529  else
6530    case $cross_compiling:$ac_tool_warned in
6531yes:)
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534ac_tool_warned=yes ;;
6535esac
6536    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6537  fi
6538else
6539  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6540fi
6541
6542test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6544$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6545if ${lt_cv_path_mainfest_tool+:} false; then :
6546  $as_echo_n "(cached) " >&6
6547else
6548  lt_cv_path_mainfest_tool=no
6549  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6550  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6551  cat conftest.err >&5
6552  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6553    lt_cv_path_mainfest_tool=yes
6554  fi
6555  rm -f conftest*
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6558$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6559if test "x$lt_cv_path_mainfest_tool" != xyes; then
6560  MANIFEST_TOOL=:
6561fi
6562
6563
6564
6565
6566
6567
6568  case $host_os in
6569    rhapsody* | darwin*)
6570    if test -n "$ac_tool_prefix"; then
6571  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6572set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574$as_echo_n "checking for $ac_word... " >&6; }
6575if ${ac_cv_prog_DSYMUTIL+:} false; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  if test -n "$DSYMUTIL"; then
6579  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584  IFS=$as_save_IFS
6585  test -z "$as_dir" && as_dir=.
6586    for ac_exec_ext in '' $ac_executable_extensions; do
6587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590    break 2
6591  fi
6592done
6593  done
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598DSYMUTIL=$ac_cv_prog_DSYMUTIL
6599if test -n "$DSYMUTIL"; then
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6601$as_echo "$DSYMUTIL" >&6; }
6602else
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
6605fi
6606
6607
6608fi
6609if test -z "$ac_cv_prog_DSYMUTIL"; then
6610  ac_ct_DSYMUTIL=$DSYMUTIL
6611  # Extract the first word of "dsymutil", so it can be a program name with args.
6612set dummy dsymutil; ac_word=$2
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614$as_echo_n "checking for $ac_word... " >&6; }
6615if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6616  $as_echo_n "(cached) " >&6
6617else
6618  if test -n "$ac_ct_DSYMUTIL"; then
6619  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624  IFS=$as_save_IFS
6625  test -z "$as_dir" && as_dir=.
6626    for ac_exec_ext in '' $ac_executable_extensions; do
6627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630    break 2
6631  fi
6632done
6633  done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6639if test -n "$ac_ct_DSYMUTIL"; then
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6641$as_echo "$ac_ct_DSYMUTIL" >&6; }
6642else
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644$as_echo "no" >&6; }
6645fi
6646
6647  if test "x$ac_ct_DSYMUTIL" = x; then
6648    DSYMUTIL=":"
6649  else
6650    case $cross_compiling:$ac_tool_warned in
6651yes:)
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654ac_tool_warned=yes ;;
6655esac
6656    DSYMUTIL=$ac_ct_DSYMUTIL
6657  fi
6658else
6659  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6660fi
6661
6662    if test -n "$ac_tool_prefix"; then
6663  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6664set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666$as_echo_n "checking for $ac_word... " >&6; }
6667if ${ac_cv_prog_NMEDIT+:} false; then :
6668  $as_echo_n "(cached) " >&6
6669else
6670  if test -n "$NMEDIT"; then
6671  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676  IFS=$as_save_IFS
6677  test -z "$as_dir" && as_dir=.
6678    for ac_exec_ext in '' $ac_executable_extensions; do
6679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682    break 2
6683  fi
6684done
6685  done
6686IFS=$as_save_IFS
6687
6688fi
6689fi
6690NMEDIT=$ac_cv_prog_NMEDIT
6691if test -n "$NMEDIT"; then
6692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6693$as_echo "$NMEDIT" >&6; }
6694else
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696$as_echo "no" >&6; }
6697fi
6698
6699
6700fi
6701if test -z "$ac_cv_prog_NMEDIT"; then
6702  ac_ct_NMEDIT=$NMEDIT
6703  # Extract the first word of "nmedit", so it can be a program name with args.
6704set dummy nmedit; ac_word=$2
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706$as_echo_n "checking for $ac_word... " >&6; }
6707if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710  if test -n "$ac_ct_NMEDIT"; then
6711  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6712else
6713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716  IFS=$as_save_IFS
6717  test -z "$as_dir" && as_dir=.
6718    for ac_exec_ext in '' $ac_executable_extensions; do
6719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722    break 2
6723  fi
6724done
6725  done
6726IFS=$as_save_IFS
6727
6728fi
6729fi
6730ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6731if test -n "$ac_ct_NMEDIT"; then
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6733$as_echo "$ac_ct_NMEDIT" >&6; }
6734else
6735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736$as_echo "no" >&6; }
6737fi
6738
6739  if test "x$ac_ct_NMEDIT" = x; then
6740    NMEDIT=":"
6741  else
6742    case $cross_compiling:$ac_tool_warned in
6743yes:)
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746ac_tool_warned=yes ;;
6747esac
6748    NMEDIT=$ac_ct_NMEDIT
6749  fi
6750else
6751  NMEDIT="$ac_cv_prog_NMEDIT"
6752fi
6753
6754    if test -n "$ac_tool_prefix"; then
6755  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6756set dummy ${ac_tool_prefix}lipo; ac_word=$2
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758$as_echo_n "checking for $ac_word... " >&6; }
6759if ${ac_cv_prog_LIPO+:} false; then :
6760  $as_echo_n "(cached) " >&6
6761else
6762  if test -n "$LIPO"; then
6763  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768  IFS=$as_save_IFS
6769  test -z "$as_dir" && as_dir=.
6770    for ac_exec_ext in '' $ac_executable_extensions; do
6771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774    break 2
6775  fi
6776done
6777  done
6778IFS=$as_save_IFS
6779
6780fi
6781fi
6782LIPO=$ac_cv_prog_LIPO
6783if test -n "$LIPO"; then
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6785$as_echo "$LIPO" >&6; }
6786else
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788$as_echo "no" >&6; }
6789fi
6790
6791
6792fi
6793if test -z "$ac_cv_prog_LIPO"; then
6794  ac_ct_LIPO=$LIPO
6795  # Extract the first word of "lipo", so it can be a program name with args.
6796set dummy lipo; ac_word=$2
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
6799if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6800  $as_echo_n "(cached) " >&6
6801else
6802  if test -n "$ac_ct_LIPO"; then
6803  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808  IFS=$as_save_IFS
6809  test -z "$as_dir" && as_dir=.
6810    for ac_exec_ext in '' $ac_executable_extensions; do
6811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812    ac_cv_prog_ac_ct_LIPO="lipo"
6813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814    break 2
6815  fi
6816done
6817  done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
6822ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6823if test -n "$ac_ct_LIPO"; then
6824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6825$as_echo "$ac_ct_LIPO" >&6; }
6826else
6827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828$as_echo "no" >&6; }
6829fi
6830
6831  if test "x$ac_ct_LIPO" = x; then
6832    LIPO=":"
6833  else
6834    case $cross_compiling:$ac_tool_warned in
6835yes:)
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838ac_tool_warned=yes ;;
6839esac
6840    LIPO=$ac_ct_LIPO
6841  fi
6842else
6843  LIPO="$ac_cv_prog_LIPO"
6844fi
6845
6846    if test -n "$ac_tool_prefix"; then
6847  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6848set dummy ${ac_tool_prefix}otool; ac_word=$2
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850$as_echo_n "checking for $ac_word... " >&6; }
6851if ${ac_cv_prog_OTOOL+:} false; then :
6852  $as_echo_n "(cached) " >&6
6853else
6854  if test -n "$OTOOL"; then
6855  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860  IFS=$as_save_IFS
6861  test -z "$as_dir" && as_dir=.
6862    for ac_exec_ext in '' $ac_executable_extensions; do
6863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866    break 2
6867  fi
6868done
6869  done
6870IFS=$as_save_IFS
6871
6872fi
6873fi
6874OTOOL=$ac_cv_prog_OTOOL
6875if test -n "$OTOOL"; then
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6877$as_echo "$OTOOL" >&6; }
6878else
6879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880$as_echo "no" >&6; }
6881fi
6882
6883
6884fi
6885if test -z "$ac_cv_prog_OTOOL"; then
6886  ac_ct_OTOOL=$OTOOL
6887  # Extract the first word of "otool", so it can be a program name with args.
6888set dummy otool; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6892  $as_echo_n "(cached) " >&6
6893else
6894  if test -n "$ac_ct_OTOOL"; then
6895  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900  IFS=$as_save_IFS
6901  test -z "$as_dir" && as_dir=.
6902    for ac_exec_ext in '' $ac_executable_extensions; do
6903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904    ac_cv_prog_ac_ct_OTOOL="otool"
6905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906    break 2
6907  fi
6908done
6909  done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6915if test -n "$ac_ct_OTOOL"; then
6916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6917$as_echo "$ac_ct_OTOOL" >&6; }
6918else
6919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923  if test "x$ac_ct_OTOOL" = x; then
6924    OTOOL=":"
6925  else
6926    case $cross_compiling:$ac_tool_warned in
6927yes:)
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930ac_tool_warned=yes ;;
6931esac
6932    OTOOL=$ac_ct_OTOOL
6933  fi
6934else
6935  OTOOL="$ac_cv_prog_OTOOL"
6936fi
6937
6938    if test -n "$ac_tool_prefix"; then
6939  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6940set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
6944  $as_echo_n "(cached) " >&6
6945else
6946  if test -n "$OTOOL64"; then
6947  ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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
6966OTOOL64=$ac_cv_prog_OTOOL64
6967if test -n "$OTOOL64"; then
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6969$as_echo "$OTOOL64" >&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_OTOOL64"; then
6978  ac_ct_OTOOL64=$OTOOL64
6979  # Extract the first word of "otool64", so it can be a program name with args.
6980set dummy otool64; 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_OTOOL64+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  if test -n "$ac_ct_OTOOL64"; then
6987  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64"
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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7007if test -n "$ac_ct_OTOOL64"; then
7008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7009$as_echo "$ac_ct_OTOOL64" >&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_OTOOL64" = x; then
7016    OTOOL64=":"
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    OTOOL64=$ac_ct_OTOOL64
7025  fi
7026else
7027  OTOOL64="$ac_cv_prog_OTOOL64"
7028fi
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7057$as_echo_n "checking for -single_module linker flag... " >&6; }
7058if ${lt_cv_apple_cc_single_mod+:} false; then :
7059  $as_echo_n "(cached) " >&6
7060else
7061  lt_cv_apple_cc_single_mod=no
7062      if test -z "${LT_MULTI_MODULE}"; then
7063	# By default we will add the -single_module flag. You can override
7064	# by either setting the environment variable LT_MULTI_MODULE
7065	# non-empty at configure time, or by adding -multi_module to the
7066	# link flags.
7067	rm -rf libconftest.dylib*
7068	echo "int foo(void){return 1;}" > conftest.c
7069	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7070-dynamiclib -Wl,-single_module conftest.c" >&5
7071	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7072	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7073        _lt_result=$?
7074	# If there is a non-empty error log, and "single_module"
7075	# appears in it, assume the flag caused a linker warning
7076        if test -s conftest.err && $GREP single_module conftest.err; then
7077	  cat conftest.err >&5
7078	# Otherwise, if the output was created with a 0 exit code from
7079	# the compiler, it worked.
7080	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7081	  lt_cv_apple_cc_single_mod=yes
7082	else
7083	  cat conftest.err >&5
7084	fi
7085	rm -rf libconftest.dylib*
7086	rm -f conftest.*
7087      fi
7088fi
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7090$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7091
7092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7093$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7094if ${lt_cv_ld_exported_symbols_list+:} false; then :
7095  $as_echo_n "(cached) " >&6
7096else
7097  lt_cv_ld_exported_symbols_list=no
7098      save_LDFLAGS=$LDFLAGS
7099      echo "_main" > conftest.sym
7100      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7101      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103
7104int
7105main ()
7106{
7107
7108  ;
7109  return 0;
7110}
7111_ACEOF
7112if ac_fn_c_try_link "$LINENO"; then :
7113  lt_cv_ld_exported_symbols_list=yes
7114else
7115  lt_cv_ld_exported_symbols_list=no
7116fi
7117rm -f core conftest.err conftest.$ac_objext \
7118    conftest$ac_exeext conftest.$ac_ext
7119	LDFLAGS="$save_LDFLAGS"
7120
7121fi
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7123$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7124
7125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7126$as_echo_n "checking for -force_load linker flag... " >&6; }
7127if ${lt_cv_ld_force_load+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  lt_cv_ld_force_load=no
7131      cat > conftest.c << _LT_EOF
7132int forced_loaded() { return 2;}
7133_LT_EOF
7134      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7135      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7136      echo "$AR cru libconftest.a conftest.o" >&5
7137      $AR cru libconftest.a conftest.o 2>&5
7138      echo "$RANLIB libconftest.a" >&5
7139      $RANLIB libconftest.a 2>&5
7140      cat > conftest.c << _LT_EOF
7141int main() { return 0;}
7142_LT_EOF
7143      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7144      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7145      _lt_result=$?
7146      if test -s conftest.err && $GREP force_load conftest.err; then
7147	cat conftest.err >&5
7148      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7149	lt_cv_ld_force_load=yes
7150      else
7151	cat conftest.err >&5
7152      fi
7153        rm -f conftest.err libconftest.a conftest conftest.c
7154        rm -rf conftest.dSYM
7155
7156fi
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7158$as_echo "$lt_cv_ld_force_load" >&6; }
7159    case $host_os in
7160    rhapsody* | darwin1.[012])
7161      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7162    darwin1.*)
7163      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7164    darwin*) # darwin 5.x on
7165      # if running on 10.5 or later, the deployment target defaults
7166      # to the OS version, if on x86, and 10.4, the deployment
7167      # target defaults to 10.4. Don't you love it?
7168      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7169	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7170	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7171	10.[012]*)
7172	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7173	10.*)
7174	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7175      esac
7176    ;;
7177  esac
7178    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7179      _lt_dar_single_mod='$single_module'
7180    fi
7181    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7182      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7183    else
7184      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7185    fi
7186    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7187      _lt_dsymutil='~$DSYMUTIL $lib || :'
7188    else
7189      _lt_dsymutil=
7190    fi
7191    ;;
7192  esac
7193
7194ac_ext=c
7195ac_cpp='$CPP $CPPFLAGS'
7196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7200$as_echo_n "checking how to run the C preprocessor... " >&6; }
7201# On Suns, sometimes $CPP names a directory.
7202if test -n "$CPP" && test -d "$CPP"; then
7203  CPP=
7204fi
7205if test -z "$CPP"; then
7206  if ${ac_cv_prog_CPP+:} false; then :
7207  $as_echo_n "(cached) " >&6
7208else
7209      # Double quotes because CPP needs to be expanded
7210    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7211    do
7212      ac_preproc_ok=false
7213for ac_c_preproc_warn_flag in '' yes
7214do
7215  # Use a header file that comes with gcc, so configuring glibc
7216  # with a fresh cross-compiler works.
7217  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7218  # <limits.h> exists even on freestanding compilers.
7219  # On the NeXT, cc -E runs the code through the compiler's parser,
7220  # not just through cpp. "Syntax error" is here to catch this case.
7221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h.  */
7223#ifdef __STDC__
7224# include <limits.h>
7225#else
7226# include <assert.h>
7227#endif
7228		     Syntax error
7229_ACEOF
7230if ac_fn_c_try_cpp "$LINENO"; then :
7231
7232else
7233  # Broken: fails on valid input.
7234continue
7235fi
7236rm -f conftest.err conftest.i conftest.$ac_ext
7237
7238  # OK, works on sane cases.  Now check whether nonexistent headers
7239  # can be detected and how.
7240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h.  */
7242#include <ac_nonexistent.h>
7243_ACEOF
7244if ac_fn_c_try_cpp "$LINENO"; then :
7245  # Broken: success on invalid input.
7246continue
7247else
7248  # Passes both tests.
7249ac_preproc_ok=:
7250break
7251fi
7252rm -f conftest.err conftest.i conftest.$ac_ext
7253
7254done
7255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7256rm -f conftest.i conftest.err conftest.$ac_ext
7257if $ac_preproc_ok; then :
7258  break
7259fi
7260
7261    done
7262    ac_cv_prog_CPP=$CPP
7263
7264fi
7265  CPP=$ac_cv_prog_CPP
7266else
7267  ac_cv_prog_CPP=$CPP
7268fi
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7270$as_echo "$CPP" >&6; }
7271ac_preproc_ok=false
7272for ac_c_preproc_warn_flag in '' yes
7273do
7274  # Use a header file that comes with gcc, so configuring glibc
7275  # with a fresh cross-compiler works.
7276  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277  # <limits.h> exists even on freestanding compilers.
7278  # On the NeXT, cc -E runs the code through the compiler's parser,
7279  # not just through cpp. "Syntax error" is here to catch this case.
7280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h.  */
7282#ifdef __STDC__
7283# include <limits.h>
7284#else
7285# include <assert.h>
7286#endif
7287		     Syntax error
7288_ACEOF
7289if ac_fn_c_try_cpp "$LINENO"; then :
7290
7291else
7292  # Broken: fails on valid input.
7293continue
7294fi
7295rm -f conftest.err conftest.i conftest.$ac_ext
7296
7297  # OK, works on sane cases.  Now check whether nonexistent headers
7298  # can be detected and how.
7299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h.  */
7301#include <ac_nonexistent.h>
7302_ACEOF
7303if ac_fn_c_try_cpp "$LINENO"; then :
7304  # Broken: success on invalid input.
7305continue
7306else
7307  # Passes both tests.
7308ac_preproc_ok=:
7309break
7310fi
7311rm -f conftest.err conftest.i conftest.$ac_ext
7312
7313done
7314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7315rm -f conftest.i conftest.err conftest.$ac_ext
7316if $ac_preproc_ok; then :
7317
7318else
7319  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7321as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7322See \`config.log' for more details" "$LINENO" 5; }
7323fi
7324
7325ac_ext=c
7326ac_cpp='$CPP $CPPFLAGS'
7327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330
7331
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7333$as_echo_n "checking for ANSI C header files... " >&6; }
7334if ${ac_cv_header_stdc+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338/* end confdefs.h.  */
7339#include <stdlib.h>
7340#include <stdarg.h>
7341#include <string.h>
7342#include <float.h>
7343
7344int
7345main ()
7346{
7347
7348  ;
7349  return 0;
7350}
7351_ACEOF
7352if ac_fn_c_try_compile "$LINENO"; then :
7353  ac_cv_header_stdc=yes
7354else
7355  ac_cv_header_stdc=no
7356fi
7357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358
7359if test $ac_cv_header_stdc = yes; then
7360  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362/* end confdefs.h.  */
7363#include <string.h>
7364
7365_ACEOF
7366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7367  $EGREP "memchr" >/dev/null 2>&1; then :
7368
7369else
7370  ac_cv_header_stdc=no
7371fi
7372rm -f conftest*
7373
7374fi
7375
7376if test $ac_cv_header_stdc = yes; then
7377  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380#include <stdlib.h>
7381
7382_ACEOF
7383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384  $EGREP "free" >/dev/null 2>&1; then :
7385
7386else
7387  ac_cv_header_stdc=no
7388fi
7389rm -f conftest*
7390
7391fi
7392
7393if test $ac_cv_header_stdc = yes; then
7394  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7395  if test "$cross_compiling" = yes; then :
7396  :
7397else
7398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400#include <ctype.h>
7401#include <stdlib.h>
7402#if ((' ' & 0x0FF) == 0x020)
7403# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7404# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7405#else
7406# define ISLOWER(c) \
7407		   (('a' <= (c) && (c) <= 'i') \
7408		     || ('j' <= (c) && (c) <= 'r') \
7409		     || ('s' <= (c) && (c) <= 'z'))
7410# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7411#endif
7412
7413#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7414int
7415main ()
7416{
7417  int i;
7418  for (i = 0; i < 256; i++)
7419    if (XOR (islower (i), ISLOWER (i))
7420	|| toupper (i) != TOUPPER (i))
7421      return 2;
7422  return 0;
7423}
7424_ACEOF
7425if ac_fn_c_try_run "$LINENO"; then :
7426
7427else
7428  ac_cv_header_stdc=no
7429fi
7430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7431  conftest.$ac_objext conftest.beam conftest.$ac_ext
7432fi
7433
7434fi
7435fi
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7437$as_echo "$ac_cv_header_stdc" >&6; }
7438if test $ac_cv_header_stdc = yes; then
7439
7440$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7441
7442fi
7443
7444# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7445for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7446		  inttypes.h stdint.h unistd.h
7447do :
7448  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7449ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7450"
7451if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7452  cat >>confdefs.h <<_ACEOF
7453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7454_ACEOF
7455
7456fi
7457
7458done
7459
7460
7461for ac_header in dlfcn.h
7462do :
7463  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7464"
7465if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7466  cat >>confdefs.h <<_ACEOF
7467#define HAVE_DLFCN_H 1
7468_ACEOF
7469
7470fi
7471
7472done
7473
7474
7475
7476
7477
7478# Set options
7479
7480
7481
7482        enable_dlopen=no
7483
7484
7485  enable_win32_dll=no
7486
7487
7488            # Check whether --enable-shared was given.
7489if test "${enable_shared+set}" = set; then :
7490  enableval=$enable_shared; p=${PACKAGE-default}
7491    case $enableval in
7492    yes) enable_shared=yes ;;
7493    no) enable_shared=no ;;
7494    *)
7495      enable_shared=no
7496      # Look at the argument we got.  We use all the common list separators.
7497      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7498      for pkg in $enableval; do
7499	IFS="$lt_save_ifs"
7500	if test "X$pkg" = "X$p"; then
7501	  enable_shared=yes
7502	fi
7503      done
7504      IFS="$lt_save_ifs"
7505      ;;
7506    esac
7507else
7508  enable_shared=yes
7509fi
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519  # Check whether --enable-static was given.
7520if test "${enable_static+set}" = set; then :
7521  enableval=$enable_static; p=${PACKAGE-default}
7522    case $enableval in
7523    yes) enable_static=yes ;;
7524    no) enable_static=no ;;
7525    *)
7526     enable_static=no
7527      # Look at the argument we got.  We use all the common list separators.
7528      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7529      for pkg in $enableval; do
7530	IFS="$lt_save_ifs"
7531	if test "X$pkg" = "X$p"; then
7532	  enable_static=yes
7533	fi
7534      done
7535      IFS="$lt_save_ifs"
7536      ;;
7537    esac
7538else
7539  enable_static=yes
7540fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551# Check whether --with-pic was given.
7552if test "${with_pic+set}" = set; then :
7553  withval=$with_pic; lt_p=${PACKAGE-default}
7554    case $withval in
7555    yes|no) pic_mode=$withval ;;
7556    *)
7557      pic_mode=default
7558      # Look at the argument we got.  We use all the common list separators.
7559      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7560      for lt_pkg in $withval; do
7561	IFS="$lt_save_ifs"
7562	if test "X$lt_pkg" = "X$lt_p"; then
7563	  pic_mode=yes
7564	fi
7565      done
7566      IFS="$lt_save_ifs"
7567      ;;
7568    esac
7569else
7570  pic_mode=default
7571fi
7572
7573
7574test -z "$pic_mode" && pic_mode=default
7575
7576
7577
7578
7579
7580
7581
7582  # Check whether --enable-fast-install was given.
7583if test "${enable_fast_install+set}" = set; then :
7584  enableval=$enable_fast_install; p=${PACKAGE-default}
7585    case $enableval in
7586    yes) enable_fast_install=yes ;;
7587    no) enable_fast_install=no ;;
7588    *)
7589      enable_fast_install=no
7590      # Look at the argument we got.  We use all the common list separators.
7591      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7592      for pkg in $enableval; do
7593	IFS="$lt_save_ifs"
7594	if test "X$pkg" = "X$p"; then
7595	  enable_fast_install=yes
7596	fi
7597      done
7598      IFS="$lt_save_ifs"
7599      ;;
7600    esac
7601else
7602  enable_fast_install=yes
7603fi
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615# This can be used to rebuild libtool when needed
7616LIBTOOL_DEPS="$ltmain"
7617
7618# Always use our own libtool.
7619LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650test -z "$LN_S" && LN_S="ln -s"
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665if test -n "${ZSH_VERSION+set}" ; then
7666   setopt NO_GLOB_SUBST
7667fi
7668
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7670$as_echo_n "checking for objdir... " >&6; }
7671if ${lt_cv_objdir+:} false; then :
7672  $as_echo_n "(cached) " >&6
7673else
7674  rm -f .libs 2>/dev/null
7675mkdir .libs 2>/dev/null
7676if test -d .libs; then
7677  lt_cv_objdir=.libs
7678else
7679  # MS-DOS does not allow filenames that begin with a dot.
7680  lt_cv_objdir=_libs
7681fi
7682rmdir .libs 2>/dev/null
7683fi
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7685$as_echo "$lt_cv_objdir" >&6; }
7686objdir=$lt_cv_objdir
7687
7688
7689
7690
7691
7692cat >>confdefs.h <<_ACEOF
7693#define LT_OBJDIR "$lt_cv_objdir/"
7694_ACEOF
7695
7696
7697
7698
7699case $host_os in
7700aix3*)
7701  # AIX sometimes has problems with the GCC collect2 program.  For some
7702  # reason, if we set the COLLECT_NAMES environment variable, the problems
7703  # vanish in a puff of smoke.
7704  if test "X${COLLECT_NAMES+set}" != Xset; then
7705    COLLECT_NAMES=
7706    export COLLECT_NAMES
7707  fi
7708  ;;
7709esac
7710
7711# Global variables:
7712ofile=libtool
7713can_build_shared=yes
7714
7715# All known linkers require a `.a' archive for static linking (except MSVC,
7716# which needs '.lib').
7717libext=a
7718
7719with_gnu_ld="$lt_cv_prog_gnu_ld"
7720
7721old_CC="$CC"
7722old_CFLAGS="$CFLAGS"
7723
7724# Set sane defaults for various variables
7725test -z "$CC" && CC=cc
7726test -z "$LTCC" && LTCC=$CC
7727test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7728test -z "$LD" && LD=ld
7729test -z "$ac_objext" && ac_objext=o
7730
7731for cc_temp in $compiler""; do
7732  case $cc_temp in
7733    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7734    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7735    \-*) ;;
7736    *) break;;
7737  esac
7738done
7739cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7740
7741
7742# Only perform the check for file, if the check method requires it
7743test -z "$MAGIC_CMD" && MAGIC_CMD=file
7744case $deplibs_check_method in
7745file_magic*)
7746  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7747    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7748$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7749if ${lt_cv_path_MAGIC_CMD+:} false; then :
7750  $as_echo_n "(cached) " >&6
7751else
7752  case $MAGIC_CMD in
7753[\\/*] |  ?:[\\/]*)
7754  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7755  ;;
7756*)
7757  lt_save_MAGIC_CMD="$MAGIC_CMD"
7758  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7759  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7760  for ac_dir in $ac_dummy; do
7761    IFS="$lt_save_ifs"
7762    test -z "$ac_dir" && ac_dir=.
7763    if test -f $ac_dir/${ac_tool_prefix}file; then
7764      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7765      if test -n "$file_magic_test_file"; then
7766	case $deplibs_check_method in
7767	"file_magic "*)
7768	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7769	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7770	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7771	    $EGREP "$file_magic_regex" > /dev/null; then
7772	    :
7773	  else
7774	    cat <<_LT_EOF 1>&2
7775
7776*** Warning: the command libtool uses to detect shared libraries,
7777*** $file_magic_cmd, produces output that libtool cannot recognize.
7778*** The result is that libtool may fail to recognize shared libraries
7779*** as such.  This will affect the creation of libtool libraries that
7780*** depend on shared libraries, but programs linked with such libtool
7781*** libraries will work regardless of this problem.  Nevertheless, you
7782*** may want to report the problem to your system manager and/or to
7783*** [email protected]
7784
7785_LT_EOF
7786	  fi ;;
7787	esac
7788      fi
7789      break
7790    fi
7791  done
7792  IFS="$lt_save_ifs"
7793  MAGIC_CMD="$lt_save_MAGIC_CMD"
7794  ;;
7795esac
7796fi
7797
7798MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7799if test -n "$MAGIC_CMD"; then
7800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7801$as_echo "$MAGIC_CMD" >&6; }
7802else
7803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804$as_echo "no" >&6; }
7805fi
7806
7807
7808
7809
7810
7811if test -z "$lt_cv_path_MAGIC_CMD"; then
7812  if test -n "$ac_tool_prefix"; then
7813    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7814$as_echo_n "checking for file... " >&6; }
7815if ${lt_cv_path_MAGIC_CMD+:} false; then :
7816  $as_echo_n "(cached) " >&6
7817else
7818  case $MAGIC_CMD in
7819[\\/*] |  ?:[\\/]*)
7820  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7821  ;;
7822*)
7823  lt_save_MAGIC_CMD="$MAGIC_CMD"
7824  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7825  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7826  for ac_dir in $ac_dummy; do
7827    IFS="$lt_save_ifs"
7828    test -z "$ac_dir" && ac_dir=.
7829    if test -f $ac_dir/file; then
7830      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7831      if test -n "$file_magic_test_file"; then
7832	case $deplibs_check_method in
7833	"file_magic "*)
7834	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7835	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7836	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7837	    $EGREP "$file_magic_regex" > /dev/null; then
7838	    :
7839	  else
7840	    cat <<_LT_EOF 1>&2
7841
7842*** Warning: the command libtool uses to detect shared libraries,
7843*** $file_magic_cmd, produces output that libtool cannot recognize.
7844*** The result is that libtool may fail to recognize shared libraries
7845*** as such.  This will affect the creation of libtool libraries that
7846*** depend on shared libraries, but programs linked with such libtool
7847*** libraries will work regardless of this problem.  Nevertheless, you
7848*** may want to report the problem to your system manager and/or to
7849*** [email protected]
7850
7851_LT_EOF
7852	  fi ;;
7853	esac
7854      fi
7855      break
7856    fi
7857  done
7858  IFS="$lt_save_ifs"
7859  MAGIC_CMD="$lt_save_MAGIC_CMD"
7860  ;;
7861esac
7862fi
7863
7864MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7865if test -n "$MAGIC_CMD"; then
7866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7867$as_echo "$MAGIC_CMD" >&6; }
7868else
7869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870$as_echo "no" >&6; }
7871fi
7872
7873
7874  else
7875    MAGIC_CMD=:
7876  fi
7877fi
7878
7879  fi
7880  ;;
7881esac
7882
7883# Use C for the default configuration in the libtool script
7884
7885lt_save_CC="$CC"
7886ac_ext=c
7887ac_cpp='$CPP $CPPFLAGS'
7888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891
7892
7893# Source file extension for C test sources.
7894ac_ext=c
7895
7896# Object file extension for compiled C test sources.
7897objext=o
7898objext=$objext
7899
7900# Code to be used in simple compile tests
7901lt_simple_compile_test_code="int some_variable = 0;"
7902
7903# Code to be used in simple link tests
7904lt_simple_link_test_code='int main(){return(0);}'
7905
7906
7907
7908
7909
7910
7911
7912# If no C compiler was specified, use CC.
7913LTCC=${LTCC-"$CC"}
7914
7915# If no C compiler flags were specified, use CFLAGS.
7916LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7917
7918# Allow CC to be a program name with arguments.
7919compiler=$CC
7920
7921# Save the default compiler, since it gets overwritten when the other
7922# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7923compiler_DEFAULT=$CC
7924
7925# save warnings/boilerplate of simple test code
7926ac_outfile=conftest.$ac_objext
7927echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7928eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7929_lt_compiler_boilerplate=`cat conftest.err`
7930$RM conftest*
7931
7932ac_outfile=conftest.$ac_objext
7933echo "$lt_simple_link_test_code" >conftest.$ac_ext
7934eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7935_lt_linker_boilerplate=`cat conftest.err`
7936$RM -r conftest*
7937
7938
7939if test -n "$compiler"; then
7940
7941lt_prog_compiler_no_builtin_flag=
7942
7943if test "$GCC" = yes; then
7944  case $cc_basename in
7945  nvcc*)
7946    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7947  *)
7948    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7949  esac
7950
7951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7952$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7953if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7954  $as_echo_n "(cached) " >&6
7955else
7956  lt_cv_prog_compiler_rtti_exceptions=no
7957   ac_outfile=conftest.$ac_objext
7958   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7959   lt_compiler_flag="-fno-rtti -fno-exceptions"
7960   # Insert the option either (1) after the last *FLAGS variable, or
7961   # (2) before a word containing "conftest.", or (3) at the end.
7962   # Note that $ac_compile itself does not contain backslashes and begins
7963   # with a dollar sign (not a hyphen), so the echo should work correctly.
7964   # The option is referenced via a variable to avoid confusing sed.
7965   lt_compile=`echo "$ac_compile" | $SED \
7966   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7967   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7968   -e 's:$: $lt_compiler_flag:'`
7969   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7970   (eval "$lt_compile" 2>conftest.err)
7971   ac_status=$?
7972   cat conftest.err >&5
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   if (exit $ac_status) && test -s "$ac_outfile"; then
7975     # The compiler can only warn and ignore the option if not recognized
7976     # So say no if there are warnings other than the usual output.
7977     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7978     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7979     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7980       lt_cv_prog_compiler_rtti_exceptions=yes
7981     fi
7982   fi
7983   $RM conftest*
7984
7985fi
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7987$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7988
7989if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7990    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7991else
7992    :
7993fi
7994
7995fi
7996
7997
7998
7999
8000
8001
8002  lt_prog_compiler_wl=
8003lt_prog_compiler_pic=
8004lt_prog_compiler_static=
8005
8006
8007  if test "$GCC" = yes; then
8008    lt_prog_compiler_wl='-Wl,'
8009    lt_prog_compiler_static='-static'
8010
8011    case $host_os in
8012      aix*)
8013      # All AIX code is PIC.
8014      if test "$host_cpu" = ia64; then
8015	# AIX 5 now supports IA64 processor
8016	lt_prog_compiler_static='-Bstatic'
8017      fi
8018      ;;
8019
8020    amigaos*)
8021      case $host_cpu in
8022      powerpc)
8023            # see comment about AmigaOS4 .so support
8024            lt_prog_compiler_pic='-fPIC'
8025        ;;
8026      m68k)
8027            # FIXME: we need at least 68020 code to build shared libraries, but
8028            # adding the `-m68020' flag to GCC prevents building anything better,
8029            # like `-m68040'.
8030            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8031        ;;
8032      esac
8033      ;;
8034
8035    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8036      # PIC is the default for these OSes.
8037      ;;
8038
8039    mingw* | cygwin* | pw32* | os2* | cegcc*)
8040      # This hack is so that the source file can tell whether it is being
8041      # built for inclusion in a dll (and should export symbols for example).
8042      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8043      # (--disable-auto-import) libraries
8044      lt_prog_compiler_pic='-DDLL_EXPORT'
8045      ;;
8046
8047    darwin* | rhapsody*)
8048      # PIC is the default on this platform
8049      # Common symbols not allowed in MH_DYLIB files
8050      lt_prog_compiler_pic='-fno-common'
8051      ;;
8052
8053    haiku*)
8054      # PIC is the default for Haiku.
8055      # The "-static" flag exists, but is broken.
8056      lt_prog_compiler_static=
8057      ;;
8058
8059    hpux*)
8060      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8061      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8062      # sets the default TLS model and affects inlining.
8063      case $host_cpu in
8064      hppa*64*)
8065	# +Z the default
8066	;;
8067      *)
8068	lt_prog_compiler_pic='-fPIC'
8069	;;
8070      esac
8071      ;;
8072
8073    interix[3-9]*)
8074      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8075      # Instead, we relocate shared libraries at runtime.
8076      ;;
8077
8078    msdosdjgpp*)
8079      # Just because we use GCC doesn't mean we suddenly get shared libraries
8080      # on systems that don't support them.
8081      lt_prog_compiler_can_build_shared=no
8082      enable_shared=no
8083      ;;
8084
8085    *nto* | *qnx*)
8086      # QNX uses GNU C++, but need to define -shared option too, otherwise
8087      # it will coredump.
8088      lt_prog_compiler_pic='-fPIC -shared'
8089      ;;
8090
8091    sysv4*MP*)
8092      if test -d /usr/nec; then
8093	lt_prog_compiler_pic=-Kconform_pic
8094      fi
8095      ;;
8096
8097    *)
8098      lt_prog_compiler_pic='-fPIC'
8099      ;;
8100    esac
8101
8102    case $cc_basename in
8103    nvcc*) # Cuda Compiler Driver 2.2
8104      lt_prog_compiler_wl='-Xlinker '
8105      if test -n "$lt_prog_compiler_pic"; then
8106        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8107      fi
8108      ;;
8109    esac
8110  else
8111    # PORTME Check for flag to pass linker flags through the system compiler.
8112    case $host_os in
8113    aix*)
8114      lt_prog_compiler_wl='-Wl,'
8115      if test "$host_cpu" = ia64; then
8116	# AIX 5 now supports IA64 processor
8117	lt_prog_compiler_static='-Bstatic'
8118      else
8119	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8120      fi
8121      ;;
8122
8123    mingw* | cygwin* | pw32* | os2* | cegcc*)
8124      # This hack is so that the source file can tell whether it is being
8125      # built for inclusion in a dll (and should export symbols for example).
8126      lt_prog_compiler_pic='-DDLL_EXPORT'
8127      ;;
8128
8129    hpux9* | hpux10* | hpux11*)
8130      lt_prog_compiler_wl='-Wl,'
8131      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8132      # not for PA HP-UX.
8133      case $host_cpu in
8134      hppa*64*|ia64*)
8135	# +Z the default
8136	;;
8137      *)
8138	lt_prog_compiler_pic='+Z'
8139	;;
8140      esac
8141      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8142      lt_prog_compiler_static='${wl}-a ${wl}archive'
8143      ;;
8144
8145    irix5* | irix6* | nonstopux*)
8146      lt_prog_compiler_wl='-Wl,'
8147      # PIC (with -KPIC) is the default.
8148      lt_prog_compiler_static='-non_shared'
8149      ;;
8150
8151    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8152      case $cc_basename in
8153      # old Intel for x86_64 which still supported -KPIC.
8154      ecc*)
8155	lt_prog_compiler_wl='-Wl,'
8156	lt_prog_compiler_pic='-KPIC'
8157	lt_prog_compiler_static='-static'
8158        ;;
8159      # icc used to be incompatible with GCC.
8160      # ICC 10 doesn't accept -KPIC any more.
8161      icc* | ifort*)
8162	lt_prog_compiler_wl='-Wl,'
8163	lt_prog_compiler_pic='-fPIC'
8164	lt_prog_compiler_static='-static'
8165        ;;
8166      # Lahey Fortran 8.1.
8167      lf95*)
8168	lt_prog_compiler_wl='-Wl,'
8169	lt_prog_compiler_pic='--shared'
8170	lt_prog_compiler_static='--static'
8171	;;
8172      nagfor*)
8173	# NAG Fortran compiler
8174	lt_prog_compiler_wl='-Wl,-Wl,,'
8175	lt_prog_compiler_pic='-PIC'
8176	lt_prog_compiler_static='-Bstatic'
8177	;;
8178      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8179        # Portland Group compilers (*not* the Pentium gcc compiler,
8180	# which looks to be a dead project)
8181	lt_prog_compiler_wl='-Wl,'
8182	lt_prog_compiler_pic='-fpic'
8183	lt_prog_compiler_static='-Bstatic'
8184        ;;
8185      ccc*)
8186        lt_prog_compiler_wl='-Wl,'
8187        # All Alpha code is PIC.
8188        lt_prog_compiler_static='-non_shared'
8189        ;;
8190      xl* | bgxl* | bgf* | mpixl*)
8191	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8192	lt_prog_compiler_wl='-Wl,'
8193	lt_prog_compiler_pic='-qpic'
8194	lt_prog_compiler_static='-qstaticlink'
8195	;;
8196      *)
8197	case `$CC -V 2>&1 | sed 5q` in
8198	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8199	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8200	  lt_prog_compiler_pic='-KPIC'
8201	  lt_prog_compiler_static='-Bstatic'
8202	  lt_prog_compiler_wl=''
8203	  ;;
8204	*Sun\ F* | *Sun*Fortran*)
8205	  lt_prog_compiler_pic='-KPIC'
8206	  lt_prog_compiler_static='-Bstatic'
8207	  lt_prog_compiler_wl='-Qoption ld '
8208	  ;;
8209	*Sun\ C*)
8210	  # Sun C 5.9
8211	  lt_prog_compiler_pic='-KPIC'
8212	  lt_prog_compiler_static='-Bstatic'
8213	  lt_prog_compiler_wl='-Wl,'
8214	  ;;
8215        *Intel*\ [CF]*Compiler*)
8216	  lt_prog_compiler_wl='-Wl,'
8217	  lt_prog_compiler_pic='-fPIC'
8218	  lt_prog_compiler_static='-static'
8219	  ;;
8220	*Portland\ Group*)
8221	  lt_prog_compiler_wl='-Wl,'
8222	  lt_prog_compiler_pic='-fpic'
8223	  lt_prog_compiler_static='-Bstatic'
8224	  ;;
8225	esac
8226	;;
8227      esac
8228      ;;
8229
8230    newsos6)
8231      lt_prog_compiler_pic='-KPIC'
8232      lt_prog_compiler_static='-Bstatic'
8233      ;;
8234
8235    *nto* | *qnx*)
8236      # QNX uses GNU C++, but need to define -shared option too, otherwise
8237      # it will coredump.
8238      lt_prog_compiler_pic='-fPIC -shared'
8239      ;;
8240
8241    osf3* | osf4* | osf5*)
8242      lt_prog_compiler_wl='-Wl,'
8243      # All OSF/1 code is PIC.
8244      lt_prog_compiler_static='-non_shared'
8245      ;;
8246
8247    rdos*)
8248      lt_prog_compiler_static='-non_shared'
8249      ;;
8250
8251    solaris*)
8252      lt_prog_compiler_pic='-KPIC'
8253      lt_prog_compiler_static='-Bstatic'
8254      case $cc_basename in
8255      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8256	lt_prog_compiler_wl='-Qoption ld ';;
8257      *)
8258	lt_prog_compiler_wl='-Wl,';;
8259      esac
8260      ;;
8261
8262    sunos4*)
8263      lt_prog_compiler_wl='-Qoption ld '
8264      lt_prog_compiler_pic='-PIC'
8265      lt_prog_compiler_static='-Bstatic'
8266      ;;
8267
8268    sysv4 | sysv4.2uw2* | sysv4.3*)
8269      lt_prog_compiler_wl='-Wl,'
8270      lt_prog_compiler_pic='-KPIC'
8271      lt_prog_compiler_static='-Bstatic'
8272      ;;
8273
8274    sysv4*MP*)
8275      if test -d /usr/nec ;then
8276	lt_prog_compiler_pic='-Kconform_pic'
8277	lt_prog_compiler_static='-Bstatic'
8278      fi
8279      ;;
8280
8281    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8282      lt_prog_compiler_wl='-Wl,'
8283      lt_prog_compiler_pic='-KPIC'
8284      lt_prog_compiler_static='-Bstatic'
8285      ;;
8286
8287    unicos*)
8288      lt_prog_compiler_wl='-Wl,'
8289      lt_prog_compiler_can_build_shared=no
8290      ;;
8291
8292    uts4*)
8293      lt_prog_compiler_pic='-pic'
8294      lt_prog_compiler_static='-Bstatic'
8295      ;;
8296
8297    *)
8298      lt_prog_compiler_can_build_shared=no
8299      ;;
8300    esac
8301  fi
8302
8303case $host_os in
8304  # For platforms which do not support PIC, -DPIC is meaningless:
8305  *djgpp*)
8306    lt_prog_compiler_pic=
8307    ;;
8308  *)
8309    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8310    ;;
8311esac
8312
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8314$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8315if ${lt_cv_prog_compiler_pic+:} false; then :
8316  $as_echo_n "(cached) " >&6
8317else
8318  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8319fi
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8321$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8322lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8323
8324#
8325# Check to make sure the PIC flag actually works.
8326#
8327if test -n "$lt_prog_compiler_pic"; then
8328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8329$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8330if ${lt_cv_prog_compiler_pic_works+:} false; then :
8331  $as_echo_n "(cached) " >&6
8332else
8333  lt_cv_prog_compiler_pic_works=no
8334   ac_outfile=conftest.$ac_objext
8335   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8337   # Insert the option either (1) after the last *FLAGS variable, or
8338   # (2) before a word containing "conftest.", or (3) at the end.
8339   # Note that $ac_compile itself does not contain backslashes and begins
8340   # with a dollar sign (not a hyphen), so the echo should work correctly.
8341   # The option is referenced via a variable to avoid confusing sed.
8342   lt_compile=`echo "$ac_compile" | $SED \
8343   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345   -e 's:$: $lt_compiler_flag:'`
8346   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8347   (eval "$lt_compile" 2>conftest.err)
8348   ac_status=$?
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   if (exit $ac_status) && test -s "$ac_outfile"; then
8352     # The compiler can only warn and ignore the option if not recognized
8353     # So say no if there are warnings other than the usual output.
8354     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8355     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8356     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8357       lt_cv_prog_compiler_pic_works=yes
8358     fi
8359   fi
8360   $RM conftest*
8361
8362fi
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8364$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8365
8366if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8367    case $lt_prog_compiler_pic in
8368     "" | " "*) ;;
8369     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8370     esac
8371else
8372    lt_prog_compiler_pic=
8373     lt_prog_compiler_can_build_shared=no
8374fi
8375
8376fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388#
8389# Check to make sure the static flag actually works.
8390#
8391wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8393$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8394if ${lt_cv_prog_compiler_static_works+:} false; then :
8395  $as_echo_n "(cached) " >&6
8396else
8397  lt_cv_prog_compiler_static_works=no
8398   save_LDFLAGS="$LDFLAGS"
8399   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8400   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8401   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8402     # The linker can only warn and ignore the option if not recognized
8403     # So say no if there are warnings
8404     if test -s conftest.err; then
8405       # Append any errors to the config.log.
8406       cat conftest.err 1>&5
8407       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8408       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8409       if diff conftest.exp conftest.er2 >/dev/null; then
8410         lt_cv_prog_compiler_static_works=yes
8411       fi
8412     else
8413       lt_cv_prog_compiler_static_works=yes
8414     fi
8415   fi
8416   $RM -r conftest*
8417   LDFLAGS="$save_LDFLAGS"
8418
8419fi
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8421$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8422
8423if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8424    :
8425else
8426    lt_prog_compiler_static=
8427fi
8428
8429
8430
8431
8432
8433
8434
8435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8436$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8437if ${lt_cv_prog_compiler_c_o+:} false; then :
8438  $as_echo_n "(cached) " >&6
8439else
8440  lt_cv_prog_compiler_c_o=no
8441   $RM -r conftest 2>/dev/null
8442   mkdir conftest
8443   cd conftest
8444   mkdir out
8445   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8446
8447   lt_compiler_flag="-o out/conftest2.$ac_objext"
8448   # Insert the option either (1) after the last *FLAGS variable, or
8449   # (2) before a word containing "conftest.", or (3) at the end.
8450   # Note that $ac_compile itself does not contain backslashes and begins
8451   # with a dollar sign (not a hyphen), so the echo should work correctly.
8452   lt_compile=`echo "$ac_compile" | $SED \
8453   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8454   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8455   -e 's:$: $lt_compiler_flag:'`
8456   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8457   (eval "$lt_compile" 2>out/conftest.err)
8458   ac_status=$?
8459   cat out/conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8462   then
8463     # The compiler can only warn and ignore the option if not recognized
8464     # So say no if there are warnings
8465     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8466     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8467     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8468       lt_cv_prog_compiler_c_o=yes
8469     fi
8470   fi
8471   chmod u+w . 2>&5
8472   $RM conftest*
8473   # SGI C++ compiler will create directory out/ii_files/ for
8474   # template instantiation
8475   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8476   $RM out/* && rmdir out
8477   cd ..
8478   $RM -r conftest
8479   $RM conftest*
8480
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8483$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8484
8485
8486
8487
8488
8489
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8491$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8492if ${lt_cv_prog_compiler_c_o+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  lt_cv_prog_compiler_c_o=no
8496   $RM -r conftest 2>/dev/null
8497   mkdir conftest
8498   cd conftest
8499   mkdir out
8500   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8501
8502   lt_compiler_flag="-o out/conftest2.$ac_objext"
8503   # Insert the option either (1) after the last *FLAGS variable, or
8504   # (2) before a word containing "conftest.", or (3) at the end.
8505   # Note that $ac_compile itself does not contain backslashes and begins
8506   # with a dollar sign (not a hyphen), so the echo should work correctly.
8507   lt_compile=`echo "$ac_compile" | $SED \
8508   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8509   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8510   -e 's:$: $lt_compiler_flag:'`
8511   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8512   (eval "$lt_compile" 2>out/conftest.err)
8513   ac_status=$?
8514   cat out/conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8517   then
8518     # The compiler can only warn and ignore the option if not recognized
8519     # So say no if there are warnings
8520     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8521     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8522     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8523       lt_cv_prog_compiler_c_o=yes
8524     fi
8525   fi
8526   chmod u+w . 2>&5
8527   $RM conftest*
8528   # SGI C++ compiler will create directory out/ii_files/ for
8529   # template instantiation
8530   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8531   $RM out/* && rmdir out
8532   cd ..
8533   $RM -r conftest
8534   $RM conftest*
8535
8536fi
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8538$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8539
8540
8541
8542
8543hard_links="nottested"
8544if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8545  # do not overwrite the value of need_locks provided by the user
8546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8547$as_echo_n "checking if we can lock with hard links... " >&6; }
8548  hard_links=yes
8549  $RM conftest*
8550  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8551  touch conftest.a
8552  ln conftest.a conftest.b 2>&5 || hard_links=no
8553  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8555$as_echo "$hard_links" >&6; }
8556  if test "$hard_links" = no; then
8557    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8558$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8559    need_locks=warn
8560  fi
8561else
8562  need_locks=no
8563fi
8564
8565
8566
8567
8568
8569
8570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8571$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8572
8573  runpath_var=
8574  allow_undefined_flag=
8575  always_export_symbols=no
8576  archive_cmds=
8577  archive_expsym_cmds=
8578  compiler_needs_object=no
8579  enable_shared_with_static_runtimes=no
8580  export_dynamic_flag_spec=
8581  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8582  hardcode_automatic=no
8583  hardcode_direct=no
8584  hardcode_direct_absolute=no
8585  hardcode_libdir_flag_spec=
8586  hardcode_libdir_separator=
8587  hardcode_minus_L=no
8588  hardcode_shlibpath_var=unsupported
8589  inherit_rpath=no
8590  link_all_deplibs=unknown
8591  module_cmds=
8592  module_expsym_cmds=
8593  old_archive_from_new_cmds=
8594  old_archive_from_expsyms_cmds=
8595  thread_safe_flag_spec=
8596  whole_archive_flag_spec=
8597  # include_expsyms should be a list of space-separated symbols to be *always*
8598  # included in the symbol list
8599  include_expsyms=
8600  # exclude_expsyms can be an extended regexp of symbols to exclude
8601  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8602  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8603  # as well as any symbol that contains `d'.
8604  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8605  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8606  # platforms (ab)use it in PIC code, but their linkers get confused if
8607  # the symbol is explicitly referenced.  Since portable code cannot
8608  # rely on this symbol name, it's probably fine to never include it in
8609  # preloaded symbol tables.
8610  # Exclude shared library initialization/finalization symbols.
8611  extract_expsyms_cmds=
8612
8613  case $host_os in
8614  cygwin* | mingw* | pw32* | cegcc*)
8615    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8616    # When not using gcc, we currently assume that we are using
8617    # Microsoft Visual C++.
8618    if test "$GCC" != yes; then
8619      with_gnu_ld=no
8620    fi
8621    ;;
8622  interix*)
8623    # we just hope/assume this is gcc and not c89 (= MSVC++)
8624    with_gnu_ld=yes
8625    ;;
8626  openbsd*)
8627    with_gnu_ld=no
8628    ;;
8629  linux* | k*bsd*-gnu | gnu*)
8630    link_all_deplibs=no
8631    ;;
8632  esac
8633
8634  ld_shlibs=yes
8635
8636  # On some targets, GNU ld is compatible enough with the native linker
8637  # that we're better off using the native interface for both.
8638  lt_use_gnu_ld_interface=no
8639  if test "$with_gnu_ld" = yes; then
8640    case $host_os in
8641      aix*)
8642	# The AIX port of GNU ld has always aspired to compatibility
8643	# with the native linker.  However, as the warning in the GNU ld
8644	# block says, versions before 2.19.5* couldn't really create working
8645	# shared libraries, regardless of the interface used.
8646	case `$LD -v 2>&1` in
8647	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8648	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8649	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8650	  *)
8651	    lt_use_gnu_ld_interface=yes
8652	    ;;
8653	esac
8654	;;
8655      *)
8656	lt_use_gnu_ld_interface=yes
8657	;;
8658    esac
8659  fi
8660
8661  if test "$lt_use_gnu_ld_interface" = yes; then
8662    # If archive_cmds runs LD, not CC, wlarc should be empty
8663    wlarc='${wl}'
8664
8665    # Set some defaults for GNU ld with shared library support. These
8666    # are reset later if shared libraries are not supported. Putting them
8667    # here allows them to be overridden if necessary.
8668    runpath_var=LD_RUN_PATH
8669    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8670    export_dynamic_flag_spec='${wl}--export-dynamic'
8671    # ancient GNU ld didn't support --whole-archive et. al.
8672    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8673      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8674    else
8675      whole_archive_flag_spec=
8676    fi
8677    supports_anon_versioning=no
8678    case `$LD -v 2>&1` in
8679      *GNU\ gold*) supports_anon_versioning=yes ;;
8680      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8681      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8682      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8683      *\ 2.11.*) ;; # other 2.11 versions
8684      *) supports_anon_versioning=yes ;;
8685    esac
8686
8687    # See if GNU ld supports shared libraries.
8688    case $host_os in
8689    aix[3-9]*)
8690      # On AIX/PPC, the GNU linker is very broken
8691      if test "$host_cpu" != ia64; then
8692	ld_shlibs=no
8693	cat <<_LT_EOF 1>&2
8694
8695*** Warning: the GNU linker, at least up to release 2.19, is reported
8696*** to be unable to reliably create shared libraries on AIX.
8697*** Therefore, libtool is disabling shared libraries support.  If you
8698*** really care for shared libraries, you may want to install binutils
8699*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8700*** You will then need to restart the configuration process.
8701
8702_LT_EOF
8703      fi
8704      ;;
8705
8706    amigaos*)
8707      case $host_cpu in
8708      powerpc)
8709            # see comment about AmigaOS4 .so support
8710            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711            archive_expsym_cmds=''
8712        ;;
8713      m68k)
8714            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)'
8715            hardcode_libdir_flag_spec='-L$libdir'
8716            hardcode_minus_L=yes
8717        ;;
8718      esac
8719      ;;
8720
8721    beos*)
8722      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8723	allow_undefined_flag=unsupported
8724	# Joseph Beckenbach <[email protected]> says some releases of gcc
8725	# support --undefined.  This deserves some investigation.  FIXME
8726	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727      else
8728	ld_shlibs=no
8729      fi
8730      ;;
8731
8732    cygwin* | mingw* | pw32* | cegcc*)
8733      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8734      # as there is no search path for DLLs.
8735      hardcode_libdir_flag_spec='-L$libdir'
8736      export_dynamic_flag_spec='${wl}--export-all-symbols'
8737      allow_undefined_flag=unsupported
8738      always_export_symbols=no
8739      enable_shared_with_static_runtimes=yes
8740      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8741      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8742
8743      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8744        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8745	# If the export-symbols file already is a .def file (1st line
8746	# is EXPORTS), use it as is; otherwise, prepend...
8747	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8748	  cp $export_symbols $output_objdir/$soname.def;
8749	else
8750	  echo EXPORTS > $output_objdir/$soname.def;
8751	  cat $export_symbols >> $output_objdir/$soname.def;
8752	fi~
8753	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8754      else
8755	ld_shlibs=no
8756      fi
8757      ;;
8758
8759    haiku*)
8760      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761      link_all_deplibs=yes
8762      ;;
8763
8764    interix[3-9]*)
8765      hardcode_direct=no
8766      hardcode_shlibpath_var=no
8767      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768      export_dynamic_flag_spec='${wl}-E'
8769      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8770      # Instead, shared libraries are loaded at an image base (0x10000000 by
8771      # default) and relocated if they conflict, which is a slow very memory
8772      # consuming and fragmenting process.  To avoid this, we pick a random,
8773      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8774      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8775      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8776      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'
8777      ;;
8778
8779    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8780      tmp_diet=no
8781      if test "$host_os" = linux-dietlibc; then
8782	case $cc_basename in
8783	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8784	esac
8785      fi
8786      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8787	 && test "$tmp_diet" = no
8788      then
8789	tmp_addflag=' $pic_flag'
8790	tmp_sharedflag='-shared'
8791	case $cc_basename,$host_cpu in
8792        pgcc*)				# Portland Group C compiler
8793	  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'
8794	  tmp_addflag=' $pic_flag'
8795	  ;;
8796	pgf77* | pgf90* | pgf95* | pgfortran*)
8797					# Portland Group f77 and f90 compilers
8798	  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'
8799	  tmp_addflag=' $pic_flag -Mnomain' ;;
8800	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8801	  tmp_addflag=' -i_dynamic' ;;
8802	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8803	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8804	ifc* | ifort*)			# Intel Fortran compiler
8805	  tmp_addflag=' -nofor_main' ;;
8806	lf95*)				# Lahey Fortran 8.1
8807	  whole_archive_flag_spec=
8808	  tmp_sharedflag='--shared' ;;
8809	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8810	  tmp_sharedflag='-qmkshrobj'
8811	  tmp_addflag= ;;
8812	nvcc*)	# Cuda Compiler Driver 2.2
8813	  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'
8814	  compiler_needs_object=yes
8815	  ;;
8816	esac
8817	case `$CC -V 2>&1 | sed 5q` in
8818	*Sun\ C*)			# Sun C 5.9
8819	  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'
8820	  compiler_needs_object=yes
8821	  tmp_sharedflag='-G' ;;
8822	*Sun\ F*)			# Sun Fortran 8.3
8823	  tmp_sharedflag='-G' ;;
8824	esac
8825	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826
8827        if test "x$supports_anon_versioning" = xyes; then
8828          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8829	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8830	    echo "local: *; };" >> $output_objdir/$libname.ver~
8831	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8832        fi
8833
8834	case $cc_basename in
8835	xlf* | bgf* | bgxlf* | mpixlf*)
8836	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8837	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8838	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8840	  if test "x$supports_anon_versioning" = xyes; then
8841	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8842	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8843	      echo "local: *; };" >> $output_objdir/$libname.ver~
8844	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8845	  fi
8846	  ;;
8847	esac
8848      else
8849        ld_shlibs=no
8850      fi
8851      ;;
8852
8853    netbsd* | netbsdelf*-gnu)
8854      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8855	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8856	wlarc=
8857      else
8858	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8860      fi
8861      ;;
8862
8863    solaris*)
8864      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8865	ld_shlibs=no
8866	cat <<_LT_EOF 1>&2
8867
8868*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8869*** create shared libraries on Solaris systems.  Therefore, libtool
8870*** is disabling shared libraries support.  We urge you to upgrade GNU
8871*** binutils to release 2.9.1 or newer.  Another option is to modify
8872*** your PATH or compiler configuration so that the native linker is
8873*** used, and then restart.
8874
8875_LT_EOF
8876      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8877	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8879      else
8880	ld_shlibs=no
8881      fi
8882      ;;
8883
8884    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8885      case `$LD -v 2>&1` in
8886        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8887	ld_shlibs=no
8888	cat <<_LT_EOF 1>&2
8889
8890*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8891*** reliably create shared libraries on SCO systems.  Therefore, libtool
8892*** is disabling shared libraries support.  We urge you to upgrade GNU
8893*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8894*** your PATH or compiler configuration so that the native linker is
8895*** used, and then restart.
8896
8897_LT_EOF
8898	;;
8899	*)
8900	  # For security reasons, it is highly recommended that you always
8901	  # use absolute paths for naming shared libraries, and exclude the
8902	  # DT_RUNPATH tag from executables and libraries.  But doing so
8903	  # requires that you compile everything twice, which is a pain.
8904	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8905	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8908	  else
8909	    ld_shlibs=no
8910	  fi
8911	;;
8912      esac
8913      ;;
8914
8915    sunos4*)
8916      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8917      wlarc=
8918      hardcode_direct=yes
8919      hardcode_shlibpath_var=no
8920      ;;
8921
8922    *)
8923      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8924	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8925	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8926      else
8927	ld_shlibs=no
8928      fi
8929      ;;
8930    esac
8931
8932    if test "$ld_shlibs" = no; then
8933      runpath_var=
8934      hardcode_libdir_flag_spec=
8935      export_dynamic_flag_spec=
8936      whole_archive_flag_spec=
8937    fi
8938  else
8939    # PORTME fill in a description of your system's linker (not GNU ld)
8940    case $host_os in
8941    aix3*)
8942      allow_undefined_flag=unsupported
8943      always_export_symbols=yes
8944      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'
8945      # Note: this linker hardcodes the directories in LIBPATH if there
8946      # are no directories specified by -L.
8947      hardcode_minus_L=yes
8948      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8949	# Neither direct hardcoding nor static linking is supported with a
8950	# broken collect2.
8951	hardcode_direct=unsupported
8952      fi
8953      ;;
8954
8955    aix[4-9]*)
8956      if test "$host_cpu" = ia64; then
8957	# On IA64, the linker does run time linking by default, so we don't
8958	# have to do anything special.
8959	aix_use_runtimelinking=no
8960	exp_sym_flag='-Bexport'
8961	no_entry_flag=""
8962      else
8963	# If we're using GNU nm, then we don't want the "-C" option.
8964	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8965	# Also, AIX nm treats weak defined symbols like other global
8966	# defined symbols, whereas GNU nm marks them as "W".
8967	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8968	  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'
8969	else
8970	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8971	fi
8972	aix_use_runtimelinking=no
8973
8974	# Test if we are trying to use run time linking or normal
8975	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8976	# need to do runtime linking.
8977	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8978	  for ld_flag in $LDFLAGS; do
8979	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8980	    aix_use_runtimelinking=yes
8981	    break
8982	  fi
8983	  done
8984	  ;;
8985	esac
8986
8987	exp_sym_flag='-bexport'
8988	no_entry_flag='-bnoentry'
8989      fi
8990
8991      # When large executables or shared objects are built, AIX ld can
8992      # have problems creating the table of contents.  If linking a library
8993      # or program results in "error TOC overflow" add -mminimal-toc to
8994      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8995      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8996
8997      archive_cmds=''
8998      hardcode_direct=yes
8999      hardcode_direct_absolute=yes
9000      hardcode_libdir_separator=':'
9001      link_all_deplibs=yes
9002      file_list_spec='${wl}-f,'
9003
9004      if test "$GCC" = yes; then
9005	case $host_os in aix4.[012]|aix4.[012].*)
9006	# We only want to do this on AIX 4.2 and lower, the check
9007	# below for broken collect2 doesn't work under 4.3+
9008	  collect2name=`${CC} -print-prog-name=collect2`
9009	  if test -f "$collect2name" &&
9010	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9011	  then
9012	  # We have reworked collect2
9013	  :
9014	  else
9015	  # We have old collect2
9016	  hardcode_direct=unsupported
9017	  # It fails to find uninstalled libraries when the uninstalled
9018	  # path is not listed in the libpath.  Setting hardcode_minus_L
9019	  # to unsupported forces relinking
9020	  hardcode_minus_L=yes
9021	  hardcode_libdir_flag_spec='-L$libdir'
9022	  hardcode_libdir_separator=
9023	  fi
9024	  ;;
9025	esac
9026	shared_flag='-shared'
9027	if test "$aix_use_runtimelinking" = yes; then
9028	  shared_flag="$shared_flag "'${wl}-G'
9029	fi
9030	link_all_deplibs=no
9031      else
9032	# not using gcc
9033	if test "$host_cpu" = ia64; then
9034	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9035	# chokes on -Wl,-G. The following line is correct:
9036	  shared_flag='-G'
9037	else
9038	  if test "$aix_use_runtimelinking" = yes; then
9039	    shared_flag='${wl}-G'
9040	  else
9041	    shared_flag='${wl}-bM:SRE'
9042	  fi
9043	fi
9044      fi
9045
9046      export_dynamic_flag_spec='${wl}-bexpall'
9047      # It seems that -bexpall does not export symbols beginning with
9048      # underscore (_), so it is better to generate a list of symbols to export.
9049      always_export_symbols=yes
9050      if test "$aix_use_runtimelinking" = yes; then
9051	# Warning - without using the other runtime loading flags (-brtl),
9052	# -berok will link without error, but may produce a broken library.
9053	allow_undefined_flag='-berok'
9054        # Determine the default libpath from the value encoded in an
9055        # empty executable.
9056        if test "${lt_cv_aix_libpath+set}" = set; then
9057  aix_libpath=$lt_cv_aix_libpath
9058else
9059  if ${lt_cv_aix_libpath_+:} false; then :
9060  $as_echo_n "(cached) " >&6
9061else
9062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063/* end confdefs.h.  */
9064
9065int
9066main ()
9067{
9068
9069  ;
9070  return 0;
9071}
9072_ACEOF
9073if ac_fn_c_try_link "$LINENO"; then :
9074
9075  lt_aix_libpath_sed='
9076      /Import File Strings/,/^$/ {
9077	  /^0/ {
9078	      s/^0  *\([^ ]*\) *$/\1/
9079	      p
9080	  }
9081      }'
9082  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9083  # Check for a 64-bit object if we didn't find anything.
9084  if test -z "$lt_cv_aix_libpath_"; then
9085    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9086  fi
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089    conftest$ac_exeext conftest.$ac_ext
9090  if test -z "$lt_cv_aix_libpath_"; then
9091    lt_cv_aix_libpath_="/usr/lib:/lib"
9092  fi
9093
9094fi
9095
9096  aix_libpath=$lt_cv_aix_libpath_
9097fi
9098
9099        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9100        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"
9101      else
9102	if test "$host_cpu" = ia64; then
9103	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9104	  allow_undefined_flag="-z nodefs"
9105	  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"
9106	else
9107	 # Determine the default libpath from the value encoded in an
9108	 # empty executable.
9109	 if test "${lt_cv_aix_libpath+set}" = set; then
9110  aix_libpath=$lt_cv_aix_libpath
9111else
9112  if ${lt_cv_aix_libpath_+:} false; then :
9113  $as_echo_n "(cached) " >&6
9114else
9115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116/* end confdefs.h.  */
9117
9118int
9119main ()
9120{
9121
9122  ;
9123  return 0;
9124}
9125_ACEOF
9126if ac_fn_c_try_link "$LINENO"; then :
9127
9128  lt_aix_libpath_sed='
9129      /Import File Strings/,/^$/ {
9130	  /^0/ {
9131	      s/^0  *\([^ ]*\) *$/\1/
9132	      p
9133	  }
9134      }'
9135  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9136  # Check for a 64-bit object if we didn't find anything.
9137  if test -z "$lt_cv_aix_libpath_"; then
9138    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9139  fi
9140fi
9141rm -f core conftest.err conftest.$ac_objext \
9142    conftest$ac_exeext conftest.$ac_ext
9143  if test -z "$lt_cv_aix_libpath_"; then
9144    lt_cv_aix_libpath_="/usr/lib:/lib"
9145  fi
9146
9147fi
9148
9149  aix_libpath=$lt_cv_aix_libpath_
9150fi
9151
9152	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9153	  # Warning - without using the other run time loading flags,
9154	  # -berok will link without error, but may produce a broken library.
9155	  no_undefined_flag=' ${wl}-bernotok'
9156	  allow_undefined_flag=' ${wl}-berok'
9157	  if test "$with_gnu_ld" = yes; then
9158	    # We only use this code for GNU lds that support --whole-archive.
9159	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9160	  else
9161	    # Exported symbols can be pulled into shared objects from archives
9162	    whole_archive_flag_spec='$convenience'
9163	  fi
9164	  archive_cmds_need_lc=yes
9165	  # This is similar to how AIX traditionally builds its shared libraries.
9166	  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'
9167	fi
9168      fi
9169      ;;
9170
9171    amigaos*)
9172      case $host_cpu in
9173      powerpc)
9174            # see comment about AmigaOS4 .so support
9175            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176            archive_expsym_cmds=''
9177        ;;
9178      m68k)
9179            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)'
9180            hardcode_libdir_flag_spec='-L$libdir'
9181            hardcode_minus_L=yes
9182        ;;
9183      esac
9184      ;;
9185
9186    bsdi[45]*)
9187      export_dynamic_flag_spec=-rdynamic
9188      ;;
9189
9190    cygwin* | mingw* | pw32* | cegcc*)
9191      # When not using gcc, we currently assume that we are using
9192      # Microsoft Visual C++.
9193      # hardcode_libdir_flag_spec is actually meaningless, as there is
9194      # no search path for DLLs.
9195      case $cc_basename in
9196      cl*)
9197	# Native MSVC
9198	hardcode_libdir_flag_spec=' '
9199	allow_undefined_flag=unsupported
9200	always_export_symbols=yes
9201	file_list_spec='@'
9202	# Tell ltmain to make .lib files, not .a files.
9203	libext=lib
9204	# Tell ltmain to make .dll files, not .so files.
9205	shrext_cmds=".dll"
9206	# FIXME: Setting linknames here is a bad hack.
9207	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9208	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9209	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9210	  else
9211	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9212	  fi~
9213	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9214	  linknames='
9215	# The linker will not automatically build a static lib if we build a DLL.
9216	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9217	enable_shared_with_static_runtimes=yes
9218	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9219	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9220	# Don't use ranlib
9221	old_postinstall_cmds='chmod 644 $oldlib'
9222	postlink_cmds='lt_outputfile="@OUTPUT@"~
9223	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9224	  case $lt_outputfile in
9225	    *.exe|*.EXE) ;;
9226	    *)
9227	      lt_outputfile="$lt_outputfile.exe"
9228	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9229	      ;;
9230	  esac~
9231	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9232	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9233	    $RM "$lt_outputfile.manifest";
9234	  fi'
9235	;;
9236      *)
9237	# Assume MSVC wrapper
9238	hardcode_libdir_flag_spec=' '
9239	allow_undefined_flag=unsupported
9240	# Tell ltmain to make .lib files, not .a files.
9241	libext=lib
9242	# Tell ltmain to make .dll files, not .so files.
9243	shrext_cmds=".dll"
9244	# FIXME: Setting linknames here is a bad hack.
9245	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9246	# The linker will automatically build a .lib file if we build a DLL.
9247	old_archive_from_new_cmds='true'
9248	# FIXME: Should let the user specify the lib program.
9249	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9250	enable_shared_with_static_runtimes=yes
9251	;;
9252      esac
9253      ;;
9254
9255    darwin* | rhapsody*)
9256
9257
9258  archive_cmds_need_lc=no
9259  hardcode_direct=no
9260  hardcode_automatic=yes
9261  hardcode_shlibpath_var=unsupported
9262  if test "$lt_cv_ld_force_load" = "yes"; then
9263    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\"`'
9264
9265  else
9266    whole_archive_flag_spec=''
9267  fi
9268  link_all_deplibs=yes
9269  allow_undefined_flag="$_lt_dar_allow_undefined"
9270  case $cc_basename in
9271     ifort*) _lt_dar_can_shared=yes ;;
9272     *) _lt_dar_can_shared=$GCC ;;
9273  esac
9274  if test "$_lt_dar_can_shared" = "yes"; then
9275    output_verbose_link_cmd=func_echo_all
9276    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9277    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9278    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}"
9279    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}"
9280
9281  else
9282  ld_shlibs=no
9283  fi
9284
9285      ;;
9286
9287    dgux*)
9288      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9289      hardcode_libdir_flag_spec='-L$libdir'
9290      hardcode_shlibpath_var=no
9291      ;;
9292
9293    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9294    # support.  Future versions do this automatically, but an explicit c++rt0.o
9295    # does not break anything, and helps significantly (at the cost of a little
9296    # extra space).
9297    freebsd2.2*)
9298      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9299      hardcode_libdir_flag_spec='-R$libdir'
9300      hardcode_direct=yes
9301      hardcode_shlibpath_var=no
9302      ;;
9303
9304    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9305    freebsd2.*)
9306      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9307      hardcode_direct=yes
9308      hardcode_minus_L=yes
9309      hardcode_shlibpath_var=no
9310      ;;
9311
9312    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9313    freebsd* | dragonfly*)
9314      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315      hardcode_libdir_flag_spec='-R$libdir'
9316      hardcode_direct=yes
9317      hardcode_shlibpath_var=no
9318      ;;
9319
9320    hpux9*)
9321      if test "$GCC" = yes; then
9322	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9323      else
9324	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'
9325      fi
9326      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9327      hardcode_libdir_separator=:
9328      hardcode_direct=yes
9329
9330      # hardcode_minus_L: Not really in the search PATH,
9331      # but as the default location of the library.
9332      hardcode_minus_L=yes
9333      export_dynamic_flag_spec='${wl}-E'
9334      ;;
9335
9336    hpux10*)
9337      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9338	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9339      else
9340	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9341      fi
9342      if test "$with_gnu_ld" = no; then
9343	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9344	hardcode_libdir_separator=:
9345	hardcode_direct=yes
9346	hardcode_direct_absolute=yes
9347	export_dynamic_flag_spec='${wl}-E'
9348	# hardcode_minus_L: Not really in the search PATH,
9349	# but as the default location of the library.
9350	hardcode_minus_L=yes
9351      fi
9352      ;;
9353
9354    hpux11*)
9355      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9356	case $host_cpu in
9357	hppa*64*)
9358	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9359	  ;;
9360	ia64*)
9361	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9362	  ;;
9363	*)
9364	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9365	  ;;
9366	esac
9367      else
9368	case $host_cpu in
9369	hppa*64*)
9370	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371	  ;;
9372	ia64*)
9373	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9374	  ;;
9375	*)
9376
9377	  # Older versions of the 11.00 compiler do not understand -b yet
9378	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9379	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9380$as_echo_n "checking if $CC understands -b... " >&6; }
9381if ${lt_cv_prog_compiler__b+:} false; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  lt_cv_prog_compiler__b=no
9385   save_LDFLAGS="$LDFLAGS"
9386   LDFLAGS="$LDFLAGS -b"
9387   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9388   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9389     # The linker can only warn and ignore the option if not recognized
9390     # So say no if there are warnings
9391     if test -s conftest.err; then
9392       # Append any errors to the config.log.
9393       cat conftest.err 1>&5
9394       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9395       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9396       if diff conftest.exp conftest.er2 >/dev/null; then
9397         lt_cv_prog_compiler__b=yes
9398       fi
9399     else
9400       lt_cv_prog_compiler__b=yes
9401     fi
9402   fi
9403   $RM -r conftest*
9404   LDFLAGS="$save_LDFLAGS"
9405
9406fi
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9408$as_echo "$lt_cv_prog_compiler__b" >&6; }
9409
9410if test x"$lt_cv_prog_compiler__b" = xyes; then
9411    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9412else
9413    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9414fi
9415
9416	  ;;
9417	esac
9418      fi
9419      if test "$with_gnu_ld" = no; then
9420	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9421	hardcode_libdir_separator=:
9422
9423	case $host_cpu in
9424	hppa*64*|ia64*)
9425	  hardcode_direct=no
9426	  hardcode_shlibpath_var=no
9427	  ;;
9428	*)
9429	  hardcode_direct=yes
9430	  hardcode_direct_absolute=yes
9431	  export_dynamic_flag_spec='${wl}-E'
9432
9433	  # hardcode_minus_L: Not really in the search PATH,
9434	  # but as the default location of the library.
9435	  hardcode_minus_L=yes
9436	  ;;
9437	esac
9438      fi
9439      ;;
9440
9441    irix5* | irix6* | nonstopux*)
9442      if test "$GCC" = yes; then
9443	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9444	# Try to use the -exported_symbol ld option, if it does not
9445	# work, assume that -exports_file does not work either and
9446	# implicitly export all symbols.
9447	# This should be the same for all languages, so no per-tag cache variable.
9448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9449$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9450if ${lt_cv_irix_exported_symbol+:} false; then :
9451  $as_echo_n "(cached) " >&6
9452else
9453  save_LDFLAGS="$LDFLAGS"
9454	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9455	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456/* end confdefs.h.  */
9457int foo (void) { return 0; }
9458_ACEOF
9459if ac_fn_c_try_link "$LINENO"; then :
9460  lt_cv_irix_exported_symbol=yes
9461else
9462  lt_cv_irix_exported_symbol=no
9463fi
9464rm -f core conftest.err conftest.$ac_objext \
9465    conftest$ac_exeext conftest.$ac_ext
9466           LDFLAGS="$save_LDFLAGS"
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9469$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9470	if test "$lt_cv_irix_exported_symbol" = yes; then
9471          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9472	fi
9473      else
9474	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'
9475	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'
9476      fi
9477      archive_cmds_need_lc='no'
9478      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479      hardcode_libdir_separator=:
9480      inherit_rpath=yes
9481      link_all_deplibs=yes
9482      ;;
9483
9484    netbsd* | netbsdelf*-gnu)
9485      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9486	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9487      else
9488	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9489      fi
9490      hardcode_libdir_flag_spec='-R$libdir'
9491      hardcode_direct=yes
9492      hardcode_shlibpath_var=no
9493      ;;
9494
9495    newsos6)
9496      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497      hardcode_direct=yes
9498      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499      hardcode_libdir_separator=:
9500      hardcode_shlibpath_var=no
9501      ;;
9502
9503    *nto* | *qnx*)
9504      ;;
9505
9506    openbsd*)
9507      if test -f /usr/libexec/ld.so; then
9508	hardcode_direct=yes
9509	hardcode_shlibpath_var=no
9510	hardcode_direct_absolute=yes
9511	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9512	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9513	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9514	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9515	  export_dynamic_flag_spec='${wl}-E'
9516	else
9517	  case $host_os in
9518	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9519	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9520	     hardcode_libdir_flag_spec='-R$libdir'
9521	     ;;
9522	   *)
9523	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9524	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9525	     ;;
9526	  esac
9527	fi
9528      else
9529	ld_shlibs=no
9530      fi
9531      ;;
9532
9533    os2*)
9534      hardcode_libdir_flag_spec='-L$libdir'
9535      hardcode_minus_L=yes
9536      allow_undefined_flag=unsupported
9537      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'
9538      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9539      ;;
9540
9541    osf3*)
9542      if test "$GCC" = yes; then
9543	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9544	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'
9545      else
9546	allow_undefined_flag=' -expect_unresolved \*'
9547	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'
9548      fi
9549      archive_cmds_need_lc='no'
9550      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551      hardcode_libdir_separator=:
9552      ;;
9553
9554    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9555      if test "$GCC" = yes; then
9556	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9557	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9558	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559      else
9560	allow_undefined_flag=' -expect_unresolved \*'
9561	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'
9562	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~
9563	$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'
9564
9565	# Both c and cxx compiler support -rpath directly
9566	hardcode_libdir_flag_spec='-rpath $libdir'
9567      fi
9568      archive_cmds_need_lc='no'
9569      hardcode_libdir_separator=:
9570      ;;
9571
9572    solaris*)
9573      no_undefined_flag=' -z defs'
9574      if test "$GCC" = yes; then
9575	wlarc='${wl}'
9576	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9578	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9579      else
9580	case `$CC -V 2>&1` in
9581	*"Compilers 5.0"*)
9582	  wlarc=''
9583	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9585	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9586	  ;;
9587	*)
9588	  wlarc='${wl}'
9589	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9590	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9591	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9592	  ;;
9593	esac
9594      fi
9595      hardcode_libdir_flag_spec='-R$libdir'
9596      hardcode_shlibpath_var=no
9597      case $host_os in
9598      solaris2.[0-5] | solaris2.[0-5].*) ;;
9599      *)
9600	# The compiler driver will combine and reorder linker options,
9601	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9602	# but is careful enough not to reorder.
9603	# Supported since Solaris 2.6 (maybe 2.5.1?)
9604	if test "$GCC" = yes; then
9605	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9606	else
9607	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9608	fi
9609	;;
9610      esac
9611      link_all_deplibs=yes
9612      ;;
9613
9614    sunos4*)
9615      if test "x$host_vendor" = xsequent; then
9616	# Use $CC to link under sequent, because it throws in some extra .o
9617	# files that make .init and .fini sections work.
9618	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9619      else
9620	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9621      fi
9622      hardcode_libdir_flag_spec='-L$libdir'
9623      hardcode_direct=yes
9624      hardcode_minus_L=yes
9625      hardcode_shlibpath_var=no
9626      ;;
9627
9628    sysv4)
9629      case $host_vendor in
9630	sni)
9631	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632	  hardcode_direct=yes # is this really true???
9633	;;
9634	siemens)
9635	  ## LD is ld it makes a PLAMLIB
9636	  ## CC just makes a GrossModule.
9637	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9638	  reload_cmds='$CC -r -o $output$reload_objs'
9639	  hardcode_direct=no
9640        ;;
9641	motorola)
9642	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9644	;;
9645      esac
9646      runpath_var='LD_RUN_PATH'
9647      hardcode_shlibpath_var=no
9648      ;;
9649
9650    sysv4.3*)
9651      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652      hardcode_shlibpath_var=no
9653      export_dynamic_flag_spec='-Bexport'
9654      ;;
9655
9656    sysv4*MP*)
9657      if test -d /usr/nec; then
9658	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659	hardcode_shlibpath_var=no
9660	runpath_var=LD_RUN_PATH
9661	hardcode_runpath_var=yes
9662	ld_shlibs=yes
9663      fi
9664      ;;
9665
9666    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9667      no_undefined_flag='${wl}-z,text'
9668      archive_cmds_need_lc=no
9669      hardcode_shlibpath_var=no
9670      runpath_var='LD_RUN_PATH'
9671
9672      if test "$GCC" = yes; then
9673	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675      else
9676	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678      fi
9679      ;;
9680
9681    sysv5* | sco3.2v5* | sco5v6*)
9682      # Note: We can NOT use -z defs as we might desire, because we do not
9683      # link with -lc, and that would cause any symbols used from libc to
9684      # always be unresolved, which means just about no library would
9685      # ever link correctly.  If we're not using GNU ld we use -z text
9686      # though, which does catch some bad symbols but isn't as heavy-handed
9687      # as -z defs.
9688      no_undefined_flag='${wl}-z,text'
9689      allow_undefined_flag='${wl}-z,nodefs'
9690      archive_cmds_need_lc=no
9691      hardcode_shlibpath_var=no
9692      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9693      hardcode_libdir_separator=':'
9694      link_all_deplibs=yes
9695      export_dynamic_flag_spec='${wl}-Bexport'
9696      runpath_var='LD_RUN_PATH'
9697
9698      if test "$GCC" = yes; then
9699	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701      else
9702	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704      fi
9705      ;;
9706
9707    uts4*)
9708      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709      hardcode_libdir_flag_spec='-L$libdir'
9710      hardcode_shlibpath_var=no
9711      ;;
9712
9713    *)
9714      ld_shlibs=no
9715      ;;
9716    esac
9717
9718    if test x$host_vendor = xsni; then
9719      case $host in
9720      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9721	export_dynamic_flag_spec='${wl}-Blargedynsym'
9722	;;
9723      esac
9724    fi
9725  fi
9726
9727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9728$as_echo "$ld_shlibs" >&6; }
9729test "$ld_shlibs" = no && can_build_shared=no
9730
9731with_gnu_ld=$with_gnu_ld
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747#
9748# Do we need to explicitly link libc?
9749#
9750case "x$archive_cmds_need_lc" in
9751x|xyes)
9752  # Assume -lc should be added
9753  archive_cmds_need_lc=yes
9754
9755  if test "$enable_shared" = yes && test "$GCC" = yes; then
9756    case $archive_cmds in
9757    *'~'*)
9758      # FIXME: we may have to deal with multi-command sequences.
9759      ;;
9760    '$CC '*)
9761      # Test whether the compiler implicitly links with -lc since on some
9762      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9763      # to ld, don't add -lc before -lgcc.
9764      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9765$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9766if ${lt_cv_archive_cmds_need_lc+:} false; then :
9767  $as_echo_n "(cached) " >&6
9768else
9769  $RM conftest*
9770	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9771
9772	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9773  (eval $ac_compile) 2>&5
9774  ac_status=$?
9775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9776  test $ac_status = 0; } 2>conftest.err; then
9777	  soname=conftest
9778	  lib=conftest
9779	  libobjs=conftest.$ac_objext
9780	  deplibs=
9781	  wl=$lt_prog_compiler_wl
9782	  pic_flag=$lt_prog_compiler_pic
9783	  compiler_flags=-v
9784	  linker_flags=-v
9785	  verstring=
9786	  output_objdir=.
9787	  libname=conftest
9788	  lt_save_allow_undefined_flag=$allow_undefined_flag
9789	  allow_undefined_flag=
9790	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9791  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9792  ac_status=$?
9793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794  test $ac_status = 0; }
9795	  then
9796	    lt_cv_archive_cmds_need_lc=no
9797	  else
9798	    lt_cv_archive_cmds_need_lc=yes
9799	  fi
9800	  allow_undefined_flag=$lt_save_allow_undefined_flag
9801	else
9802	  cat conftest.err 1>&5
9803	fi
9804	$RM conftest*
9805
9806fi
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9808$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9809      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9810      ;;
9811    esac
9812  fi
9813  ;;
9814esac
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9968$as_echo_n "checking dynamic linker characteristics... " >&6; }
9969
9970if test "$GCC" = yes; then
9971  case $host_os in
9972    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9973    *) lt_awk_arg="/^libraries:/" ;;
9974  esac
9975  case $host_os in
9976    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9977    *) lt_sed_strip_eq="s,=/,/,g" ;;
9978  esac
9979  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9980  case $lt_search_path_spec in
9981  *\;*)
9982    # if the path contains ";" then we assume it to be the separator
9983    # otherwise default to the standard path separator (i.e. ":") - it is
9984    # assumed that no part of a normal pathname contains ";" but that should
9985    # okay in the real world where ";" in dirpaths is itself problematic.
9986    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9987    ;;
9988  *)
9989    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9990    ;;
9991  esac
9992  # Ok, now we have the path, separated by spaces, we can step through it
9993  # and add multilib dir if necessary.
9994  lt_tmp_lt_search_path_spec=
9995  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9996  for lt_sys_path in $lt_search_path_spec; do
9997    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9998      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9999    else
10000      test -d "$lt_sys_path" && \
10001	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10002    fi
10003  done
10004  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10005BEGIN {RS=" "; FS="/|\n";} {
10006  lt_foo="";
10007  lt_count=0;
10008  for (lt_i = NF; lt_i > 0; lt_i--) {
10009    if ($lt_i != "" && $lt_i != ".") {
10010      if ($lt_i == "..") {
10011        lt_count++;
10012      } else {
10013        if (lt_count == 0) {
10014          lt_foo="/" $lt_i lt_foo;
10015        } else {
10016          lt_count--;
10017        }
10018      }
10019    }
10020  }
10021  if (lt_foo != "") { lt_freq[lt_foo]++; }
10022  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10023}'`
10024  # AWK program above erroneously prepends '/' to C:/dos/paths
10025  # for these hosts.
10026  case $host_os in
10027    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10028      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10029  esac
10030  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10031else
10032  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10033fi
10034library_names_spec=
10035libname_spec='lib$name'
10036soname_spec=
10037shrext_cmds=".so"
10038postinstall_cmds=
10039postuninstall_cmds=
10040finish_cmds=
10041finish_eval=
10042shlibpath_var=
10043shlibpath_overrides_runpath=unknown
10044version_type=none
10045dynamic_linker="$host_os ld.so"
10046sys_lib_dlsearch_path_spec="/lib /usr/lib"
10047need_lib_prefix=unknown
10048hardcode_into_libs=no
10049
10050# when you set need_version to no, make sure it does not cause -set_version
10051# flags to be left without arguments
10052need_version=unknown
10053
10054case $host_os in
10055aix3*)
10056  version_type=linux # correct to gnu/linux during the next big refactor
10057  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10058  shlibpath_var=LIBPATH
10059
10060  # AIX 3 has no versioning support, so we append a major version to the name.
10061  soname_spec='${libname}${release}${shared_ext}$major'
10062  ;;
10063
10064aix[4-9]*)
10065  version_type=linux # correct to gnu/linux during the next big refactor
10066  need_lib_prefix=no
10067  need_version=no
10068  hardcode_into_libs=yes
10069  if test "$host_cpu" = ia64; then
10070    # AIX 5 supports IA64
10071    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10072    shlibpath_var=LD_LIBRARY_PATH
10073  else
10074    # With GCC up to 2.95.x, collect2 would create an import file
10075    # for dependence libraries.  The import file would start with
10076    # the line `#! .'.  This would cause the generated library to
10077    # depend on `.', always an invalid library.  This was fixed in
10078    # development snapshots of GCC prior to 3.0.
10079    case $host_os in
10080      aix4 | aix4.[01] | aix4.[01].*)
10081      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10082	   echo ' yes '
10083	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10084	:
10085      else
10086	can_build_shared=no
10087      fi
10088      ;;
10089    esac
10090    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10091    # soname into executable. Probably we can add versioning support to
10092    # collect2, so additional links can be useful in future.
10093    if test "$aix_use_runtimelinking" = yes; then
10094      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10095      # instead of lib<name>.a to let people know that these are not
10096      # typical AIX shared libraries.
10097      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098    else
10099      # We preserve .a as extension for shared libraries through AIX4.2
10100      # and later when we are not doing run time linking.
10101      library_names_spec='${libname}${release}.a $libname.a'
10102      soname_spec='${libname}${release}${shared_ext}$major'
10103    fi
10104    shlibpath_var=LIBPATH
10105  fi
10106  ;;
10107
10108amigaos*)
10109  case $host_cpu in
10110  powerpc)
10111    # Since July 2007 AmigaOS4 officially supports .so libraries.
10112    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114    ;;
10115  m68k)
10116    library_names_spec='$libname.ixlibrary $libname.a'
10117    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10118    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'
10119    ;;
10120  esac
10121  ;;
10122
10123beos*)
10124  library_names_spec='${libname}${shared_ext}'
10125  dynamic_linker="$host_os ld.so"
10126  shlibpath_var=LIBRARY_PATH
10127  ;;
10128
10129bsdi[45]*)
10130  version_type=linux # correct to gnu/linux during the next big refactor
10131  need_version=no
10132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133  soname_spec='${libname}${release}${shared_ext}$major'
10134  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10135  shlibpath_var=LD_LIBRARY_PATH
10136  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10137  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10138  # the default ld.so.conf also contains /usr/contrib/lib and
10139  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10140  # libtool to hard-code these into programs
10141  ;;
10142
10143cygwin* | mingw* | pw32* | cegcc*)
10144  version_type=windows
10145  shrext_cmds=".dll"
10146  need_version=no
10147  need_lib_prefix=no
10148
10149  case $GCC,$cc_basename in
10150  yes,*)
10151    # gcc
10152    library_names_spec='$libname.dll.a'
10153    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10154    postinstall_cmds='base_file=`basename \${file}`~
10155      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10156      dldir=$destdir/`dirname \$dlpath`~
10157      test -d \$dldir || mkdir -p \$dldir~
10158      $install_prog $dir/$dlname \$dldir/$dlname~
10159      chmod a+x \$dldir/$dlname~
10160      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10161        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10162      fi'
10163    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10164      dlpath=$dir/\$dldll~
10165       $RM \$dlpath'
10166    shlibpath_overrides_runpath=yes
10167
10168    case $host_os in
10169    cygwin*)
10170      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10171      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172
10173      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10174      ;;
10175    mingw* | cegcc*)
10176      # MinGW DLLs use traditional 'lib' prefix
10177      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10178      ;;
10179    pw32*)
10180      # pw32 DLLs use 'pw' prefix rather than 'lib'
10181      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10182      ;;
10183    esac
10184    dynamic_linker='Win32 ld.exe'
10185    ;;
10186
10187  *,cl*)
10188    # Native MSVC
10189    libname_spec='$name'
10190    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10191    library_names_spec='${libname}.dll.lib'
10192
10193    case $build_os in
10194    mingw*)
10195      sys_lib_search_path_spec=
10196      lt_save_ifs=$IFS
10197      IFS=';'
10198      for lt_path in $LIB
10199      do
10200        IFS=$lt_save_ifs
10201        # Let DOS variable expansion print the short 8.3 style file name.
10202        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10203        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10204      done
10205      IFS=$lt_save_ifs
10206      # Convert to MSYS style.
10207      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10208      ;;
10209    cygwin*)
10210      # Convert to unix form, then to dos form, then back to unix form
10211      # but this time dos style (no spaces!) so that the unix form looks
10212      # like /cygdrive/c/PROGRA~1:/cygdr...
10213      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10214      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10215      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10216      ;;
10217    *)
10218      sys_lib_search_path_spec="$LIB"
10219      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10220        # It is most probably a Windows format PATH.
10221        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10222      else
10223        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10224      fi
10225      # FIXME: find the short name or the path components, as spaces are
10226      # common. (e.g. "Program Files" -> "PROGRA~1")
10227      ;;
10228    esac
10229
10230    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10231    postinstall_cmds='base_file=`basename \${file}`~
10232      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10233      dldir=$destdir/`dirname \$dlpath`~
10234      test -d \$dldir || mkdir -p \$dldir~
10235      $install_prog $dir/$dlname \$dldir/$dlname'
10236    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10237      dlpath=$dir/\$dldll~
10238       $RM \$dlpath'
10239    shlibpath_overrides_runpath=yes
10240    dynamic_linker='Win32 link.exe'
10241    ;;
10242
10243  *)
10244    # Assume MSVC wrapper
10245    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10246    dynamic_linker='Win32 ld.exe'
10247    ;;
10248  esac
10249  # FIXME: first we should search . and the directory the executable is in
10250  shlibpath_var=PATH
10251  ;;
10252
10253darwin* | rhapsody*)
10254  dynamic_linker="$host_os dyld"
10255  version_type=darwin
10256  need_lib_prefix=no
10257  need_version=no
10258  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10259  soname_spec='${libname}${release}${major}$shared_ext'
10260  shlibpath_overrides_runpath=yes
10261  shlibpath_var=DYLD_LIBRARY_PATH
10262  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10263
10264  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10265  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10266  ;;
10267
10268dgux*)
10269  version_type=linux # correct to gnu/linux during the next big refactor
10270  need_lib_prefix=no
10271  need_version=no
10272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10273  soname_spec='${libname}${release}${shared_ext}$major'
10274  shlibpath_var=LD_LIBRARY_PATH
10275  ;;
10276
10277freebsd* | dragonfly*)
10278  # DragonFly does not have aout.  When/if they implement a new
10279  # versioning mechanism, adjust this.
10280  if test -x /usr/bin/objformat; then
10281    objformat=`/usr/bin/objformat`
10282  else
10283    case $host_os in
10284    freebsd[23].*) objformat=aout ;;
10285    *) objformat=elf ;;
10286    esac
10287  fi
10288  version_type=freebsd-$objformat
10289  case $version_type in
10290    freebsd-elf*)
10291      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10292      need_version=no
10293      need_lib_prefix=no
10294      ;;
10295    freebsd-*)
10296      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10297      need_version=yes
10298      ;;
10299  esac
10300  shlibpath_var=LD_LIBRARY_PATH
10301  case $host_os in
10302  freebsd2.*)
10303    shlibpath_overrides_runpath=yes
10304    ;;
10305  freebsd3.[01]* | freebsdelf3.[01]*)
10306    shlibpath_overrides_runpath=yes
10307    hardcode_into_libs=yes
10308    ;;
10309  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10310  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10311    shlibpath_overrides_runpath=no
10312    hardcode_into_libs=yes
10313    ;;
10314  *) # from 4.6 on, and DragonFly
10315    shlibpath_overrides_runpath=yes
10316    hardcode_into_libs=yes
10317    ;;
10318  esac
10319  ;;
10320
10321haiku*)
10322  version_type=linux # correct to gnu/linux during the next big refactor
10323  need_lib_prefix=no
10324  need_version=no
10325  dynamic_linker="$host_os runtime_loader"
10326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10327  soname_spec='${libname}${release}${shared_ext}$major'
10328  shlibpath_var=LIBRARY_PATH
10329  shlibpath_overrides_runpath=yes
10330  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10331  hardcode_into_libs=yes
10332  ;;
10333
10334hpux9* | hpux10* | hpux11*)
10335  # Give a soname corresponding to the major version so that dld.sl refuses to
10336  # link against other versions.
10337  version_type=sunos
10338  need_lib_prefix=no
10339  need_version=no
10340  case $host_cpu in
10341  ia64*)
10342    shrext_cmds='.so'
10343    hardcode_into_libs=yes
10344    dynamic_linker="$host_os dld.so"
10345    shlibpath_var=LD_LIBRARY_PATH
10346    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348    soname_spec='${libname}${release}${shared_ext}$major'
10349    if test "X$HPUX_IA64_MODE" = X32; then
10350      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10351    else
10352      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10353    fi
10354    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10355    ;;
10356  hppa*64*)
10357    shrext_cmds='.sl'
10358    hardcode_into_libs=yes
10359    dynamic_linker="$host_os dld.sl"
10360    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10361    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10362    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363    soname_spec='${libname}${release}${shared_ext}$major'
10364    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10365    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10366    ;;
10367  *)
10368    shrext_cmds='.sl'
10369    dynamic_linker="$host_os dld.sl"
10370    shlibpath_var=SHLIB_PATH
10371    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10372    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373    soname_spec='${libname}${release}${shared_ext}$major'
10374    ;;
10375  esac
10376  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10377  postinstall_cmds='chmod 555 $lib'
10378  # or fails outright, so override atomically:
10379  install_override_mode=555
10380  ;;
10381
10382interix[3-9]*)
10383  version_type=linux # correct to gnu/linux during the next big refactor
10384  need_lib_prefix=no
10385  need_version=no
10386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10387  soname_spec='${libname}${release}${shared_ext}$major'
10388  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10389  shlibpath_var=LD_LIBRARY_PATH
10390  shlibpath_overrides_runpath=no
10391  hardcode_into_libs=yes
10392  ;;
10393
10394irix5* | irix6* | nonstopux*)
10395  case $host_os in
10396    nonstopux*) version_type=nonstopux ;;
10397    *)
10398	if test "$lt_cv_prog_gnu_ld" = yes; then
10399		version_type=linux # correct to gnu/linux during the next big refactor
10400	else
10401		version_type=irix
10402	fi ;;
10403  esac
10404  need_lib_prefix=no
10405  need_version=no
10406  soname_spec='${libname}${release}${shared_ext}$major'
10407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10408  case $host_os in
10409  irix5* | nonstopux*)
10410    libsuff= shlibsuff=
10411    ;;
10412  *)
10413    case $LD in # libtool.m4 will add one of these switches to LD
10414    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10415      libsuff= shlibsuff= libmagic=32-bit;;
10416    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10417      libsuff=32 shlibsuff=N32 libmagic=N32;;
10418    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10419      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10420    *) libsuff= shlibsuff= libmagic=never-match;;
10421    esac
10422    ;;
10423  esac
10424  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10425  shlibpath_overrides_runpath=no
10426  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10427  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10428  hardcode_into_libs=yes
10429  ;;
10430
10431# No shared lib support for Linux oldld, aout, or coff.
10432linux*oldld* | linux*aout* | linux*coff*)
10433  dynamic_linker=no
10434  ;;
10435
10436# This must be glibc/ELF.
10437linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10438  version_type=linux # correct to gnu/linux during the next big refactor
10439  need_lib_prefix=no
10440  need_version=no
10441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442  soname_spec='${libname}${release}${shared_ext}$major'
10443  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10444  shlibpath_var=LD_LIBRARY_PATH
10445  shlibpath_overrides_runpath=no
10446
10447  # Some binutils ld are patched to set DT_RUNPATH
10448  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10449  $as_echo_n "(cached) " >&6
10450else
10451  lt_cv_shlibpath_overrides_runpath=no
10452    save_LDFLAGS=$LDFLAGS
10453    save_libdir=$libdir
10454    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10455	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10456    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457/* end confdefs.h.  */
10458
10459int
10460main ()
10461{
10462
10463  ;
10464  return 0;
10465}
10466_ACEOF
10467if ac_fn_c_try_link "$LINENO"; then :
10468  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10469  lt_cv_shlibpath_overrides_runpath=yes
10470fi
10471fi
10472rm -f core conftest.err conftest.$ac_objext \
10473    conftest$ac_exeext conftest.$ac_ext
10474    LDFLAGS=$save_LDFLAGS
10475    libdir=$save_libdir
10476
10477fi
10478
10479  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10480
10481  # This implies no fast_install, which is unacceptable.
10482  # Some rework will be needed to allow for fast_install
10483  # before this can be enabled.
10484  hardcode_into_libs=yes
10485
10486  # Append ld.so.conf contents to the search path
10487  if test -f /etc/ld.so.conf; then
10488    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' ' '`
10489    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10490  fi
10491
10492  # We used to test for /lib/ld.so.1 and disable shared libraries on
10493  # powerpc, because MkLinux only supported shared libraries with the
10494  # GNU dynamic linker.  Since this was broken with cross compilers,
10495  # most powerpc-linux boxes support dynamic linking these days and
10496  # people can always --disable-shared, the test was removed, and we
10497  # assume the GNU/Linux dynamic linker is in use.
10498  dynamic_linker='GNU/Linux ld.so'
10499  ;;
10500
10501netbsdelf*-gnu)
10502  version_type=linux
10503  need_lib_prefix=no
10504  need_version=no
10505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10506  soname_spec='${libname}${release}${shared_ext}$major'
10507  shlibpath_var=LD_LIBRARY_PATH
10508  shlibpath_overrides_runpath=no
10509  hardcode_into_libs=yes
10510  dynamic_linker='NetBSD ld.elf_so'
10511  ;;
10512
10513netbsd*)
10514  version_type=sunos
10515  need_lib_prefix=no
10516  need_version=no
10517  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10518    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10519    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10520    dynamic_linker='NetBSD (a.out) ld.so'
10521  else
10522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10523    soname_spec='${libname}${release}${shared_ext}$major'
10524    dynamic_linker='NetBSD ld.elf_so'
10525  fi
10526  shlibpath_var=LD_LIBRARY_PATH
10527  shlibpath_overrides_runpath=yes
10528  hardcode_into_libs=yes
10529  ;;
10530
10531newsos6)
10532  version_type=linux # correct to gnu/linux during the next big refactor
10533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534  shlibpath_var=LD_LIBRARY_PATH
10535  shlibpath_overrides_runpath=yes
10536  ;;
10537
10538*nto* | *qnx*)
10539  version_type=qnx
10540  need_lib_prefix=no
10541  need_version=no
10542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543  soname_spec='${libname}${release}${shared_ext}$major'
10544  shlibpath_var=LD_LIBRARY_PATH
10545  shlibpath_overrides_runpath=no
10546  hardcode_into_libs=yes
10547  dynamic_linker='ldqnx.so'
10548  ;;
10549
10550openbsd*)
10551  version_type=sunos
10552  sys_lib_dlsearch_path_spec="/usr/lib"
10553  need_lib_prefix=no
10554  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10555  case $host_os in
10556    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10557    *)				need_version=no  ;;
10558  esac
10559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10560  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10561  shlibpath_var=LD_LIBRARY_PATH
10562  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10563    case $host_os in
10564      openbsd2.[89] | openbsd2.[89].*)
10565	shlibpath_overrides_runpath=no
10566	;;
10567      *)
10568	shlibpath_overrides_runpath=yes
10569	;;
10570      esac
10571  else
10572    shlibpath_overrides_runpath=yes
10573  fi
10574  ;;
10575
10576os2*)
10577  libname_spec='$name'
10578  shrext_cmds=".dll"
10579  need_lib_prefix=no
10580  library_names_spec='$libname${shared_ext} $libname.a'
10581  dynamic_linker='OS/2 ld.exe'
10582  shlibpath_var=LIBPATH
10583  ;;
10584
10585osf3* | osf4* | osf5*)
10586  version_type=osf
10587  need_lib_prefix=no
10588  need_version=no
10589  soname_spec='${libname}${release}${shared_ext}$major'
10590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591  shlibpath_var=LD_LIBRARY_PATH
10592  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10593  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10594  ;;
10595
10596rdos*)
10597  dynamic_linker=no
10598  ;;
10599
10600solaris*)
10601  version_type=linux # correct to gnu/linux during the next big refactor
10602  need_lib_prefix=no
10603  need_version=no
10604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605  soname_spec='${libname}${release}${shared_ext}$major'
10606  shlibpath_var=LD_LIBRARY_PATH
10607  shlibpath_overrides_runpath=yes
10608  hardcode_into_libs=yes
10609  # ldd complains unless libraries are executable
10610  postinstall_cmds='chmod +x $lib'
10611  ;;
10612
10613sunos4*)
10614  version_type=sunos
10615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10616  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10617  shlibpath_var=LD_LIBRARY_PATH
10618  shlibpath_overrides_runpath=yes
10619  if test "$with_gnu_ld" = yes; then
10620    need_lib_prefix=no
10621  fi
10622  need_version=yes
10623  ;;
10624
10625sysv4 | sysv4.3*)
10626  version_type=linux # correct to gnu/linux during the next big refactor
10627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628  soname_spec='${libname}${release}${shared_ext}$major'
10629  shlibpath_var=LD_LIBRARY_PATH
10630  case $host_vendor in
10631    sni)
10632      shlibpath_overrides_runpath=no
10633      need_lib_prefix=no
10634      runpath_var=LD_RUN_PATH
10635      ;;
10636    siemens)
10637      need_lib_prefix=no
10638      ;;
10639    motorola)
10640      need_lib_prefix=no
10641      need_version=no
10642      shlibpath_overrides_runpath=no
10643      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10644      ;;
10645  esac
10646  ;;
10647
10648sysv4*MP*)
10649  if test -d /usr/nec ;then
10650    version_type=linux # correct to gnu/linux during the next big refactor
10651    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10652    soname_spec='$libname${shared_ext}.$major'
10653    shlibpath_var=LD_LIBRARY_PATH
10654  fi
10655  ;;
10656
10657sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10658  version_type=freebsd-elf
10659  need_lib_prefix=no
10660  need_version=no
10661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10662  soname_spec='${libname}${release}${shared_ext}$major'
10663  shlibpath_var=LD_LIBRARY_PATH
10664  shlibpath_overrides_runpath=yes
10665  hardcode_into_libs=yes
10666  if test "$with_gnu_ld" = yes; then
10667    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10668  else
10669    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10670    case $host_os in
10671      sco3.2v5*)
10672        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10673	;;
10674    esac
10675  fi
10676  sys_lib_dlsearch_path_spec='/usr/lib'
10677  ;;
10678
10679tpf*)
10680  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10681  version_type=linux # correct to gnu/linux during the next big refactor
10682  need_lib_prefix=no
10683  need_version=no
10684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685  shlibpath_var=LD_LIBRARY_PATH
10686  shlibpath_overrides_runpath=no
10687  hardcode_into_libs=yes
10688  ;;
10689
10690uts4*)
10691  version_type=linux # correct to gnu/linux during the next big refactor
10692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693  soname_spec='${libname}${release}${shared_ext}$major'
10694  shlibpath_var=LD_LIBRARY_PATH
10695  ;;
10696
10697*)
10698  dynamic_linker=no
10699  ;;
10700esac
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10702$as_echo "$dynamic_linker" >&6; }
10703test "$dynamic_linker" = no && can_build_shared=no
10704
10705variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10706if test "$GCC" = yes; then
10707  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10708fi
10709
10710if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10711  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10712fi
10713if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10714  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10715fi
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10809$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10810hardcode_action=
10811if test -n "$hardcode_libdir_flag_spec" ||
10812   test -n "$runpath_var" ||
10813   test "X$hardcode_automatic" = "Xyes" ; then
10814
10815  # We can hardcode non-existent directories.
10816  if test "$hardcode_direct" != no &&
10817     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10818     # have to relink, otherwise we might link with an installed library
10819     # when we should be linking with a yet-to-be-installed one
10820     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10821     test "$hardcode_minus_L" != no; then
10822    # Linking always hardcodes the temporary library directory.
10823    hardcode_action=relink
10824  else
10825    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10826    hardcode_action=immediate
10827  fi
10828else
10829  # We cannot hardcode anything, or else we can only hardcode existing
10830  # directories.
10831  hardcode_action=unsupported
10832fi
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10834$as_echo "$hardcode_action" >&6; }
10835
10836if test "$hardcode_action" = relink ||
10837   test "$inherit_rpath" = yes; then
10838  # Fast installation is not supported
10839  enable_fast_install=no
10840elif test "$shlibpath_overrides_runpath" = yes ||
10841     test "$enable_shared" = no; then
10842  # Fast installation is not necessary
10843  enable_fast_install=needless
10844fi
10845
10846
10847
10848
10849
10850
10851  if test "x$enable_dlopen" != xyes; then
10852  enable_dlopen=unknown
10853  enable_dlopen_self=unknown
10854  enable_dlopen_self_static=unknown
10855else
10856  lt_cv_dlopen=no
10857  lt_cv_dlopen_libs=
10858
10859  case $host_os in
10860  beos*)
10861    lt_cv_dlopen="load_add_on"
10862    lt_cv_dlopen_libs=
10863    lt_cv_dlopen_self=yes
10864    ;;
10865
10866  mingw* | pw32* | cegcc*)
10867    lt_cv_dlopen="LoadLibrary"
10868    lt_cv_dlopen_libs=
10869    ;;
10870
10871  cygwin*)
10872    lt_cv_dlopen="dlopen"
10873    lt_cv_dlopen_libs=
10874    ;;
10875
10876  darwin*)
10877  # if libdl is installed we need to link against it
10878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10879$as_echo_n "checking for dlopen in -ldl... " >&6; }
10880if ${ac_cv_lib_dl_dlopen+:} false; then :
10881  $as_echo_n "(cached) " >&6
10882else
10883  ac_check_lib_save_LIBS=$LIBS
10884LIBS="-ldl  $LIBS"
10885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h.  */
10887
10888/* Override any GCC internal prototype to avoid an error.
10889   Use char because int might match the return type of a GCC
10890   builtin and then its argument prototype would still apply.  */
10891#ifdef __cplusplus
10892extern "C"
10893#endif
10894char dlopen ();
10895int
10896main ()
10897{
10898return dlopen ();
10899  ;
10900  return 0;
10901}
10902_ACEOF
10903if ac_fn_c_try_link "$LINENO"; then :
10904  ac_cv_lib_dl_dlopen=yes
10905else
10906  ac_cv_lib_dl_dlopen=no
10907fi
10908rm -f core conftest.err conftest.$ac_objext \
10909    conftest$ac_exeext conftest.$ac_ext
10910LIBS=$ac_check_lib_save_LIBS
10911fi
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10913$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10914if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10915  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10916else
10917
10918    lt_cv_dlopen="dyld"
10919    lt_cv_dlopen_libs=
10920    lt_cv_dlopen_self=yes
10921
10922fi
10923
10924    ;;
10925
10926  *)
10927    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10928if test "x$ac_cv_func_shl_load" = xyes; then :
10929  lt_cv_dlopen="shl_load"
10930else
10931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10932$as_echo_n "checking for shl_load in -ldld... " >&6; }
10933if ${ac_cv_lib_dld_shl_load+:} false; then :
10934  $as_echo_n "(cached) " >&6
10935else
10936  ac_check_lib_save_LIBS=$LIBS
10937LIBS="-ldld  $LIBS"
10938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940
10941/* Override any GCC internal prototype to avoid an error.
10942   Use char because int might match the return type of a GCC
10943   builtin and then its argument prototype would still apply.  */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char shl_load ();
10948int
10949main ()
10950{
10951return shl_load ();
10952  ;
10953  return 0;
10954}
10955_ACEOF
10956if ac_fn_c_try_link "$LINENO"; then :
10957  ac_cv_lib_dld_shl_load=yes
10958else
10959  ac_cv_lib_dld_shl_load=no
10960fi
10961rm -f core conftest.err conftest.$ac_objext \
10962    conftest$ac_exeext conftest.$ac_ext
10963LIBS=$ac_check_lib_save_LIBS
10964fi
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10966$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10967if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10968  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10969else
10970  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10971if test "x$ac_cv_func_dlopen" = xyes; then :
10972  lt_cv_dlopen="dlopen"
10973else
10974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10975$as_echo_n "checking for dlopen in -ldl... " >&6; }
10976if ${ac_cv_lib_dl_dlopen+:} false; then :
10977  $as_echo_n "(cached) " >&6
10978else
10979  ac_check_lib_save_LIBS=$LIBS
10980LIBS="-ldl  $LIBS"
10981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982/* end confdefs.h.  */
10983
10984/* Override any GCC internal prototype to avoid an error.
10985   Use char because int might match the return type of a GCC
10986   builtin and then its argument prototype would still apply.  */
10987#ifdef __cplusplus
10988extern "C"
10989#endif
10990char dlopen ();
10991int
10992main ()
10993{
10994return dlopen ();
10995  ;
10996  return 0;
10997}
10998_ACEOF
10999if ac_fn_c_try_link "$LINENO"; then :
11000  ac_cv_lib_dl_dlopen=yes
11001else
11002  ac_cv_lib_dl_dlopen=no
11003fi
11004rm -f core conftest.err conftest.$ac_objext \
11005    conftest$ac_exeext conftest.$ac_ext
11006LIBS=$ac_check_lib_save_LIBS
11007fi
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11009$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11010if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11011  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11012else
11013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11014$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11015if ${ac_cv_lib_svld_dlopen+:} false; then :
11016  $as_echo_n "(cached) " >&6
11017else
11018  ac_check_lib_save_LIBS=$LIBS
11019LIBS="-lsvld  $LIBS"
11020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021/* end confdefs.h.  */
11022
11023/* Override any GCC internal prototype to avoid an error.
11024   Use char because int might match the return type of a GCC
11025   builtin and then its argument prototype would still apply.  */
11026#ifdef __cplusplus
11027extern "C"
11028#endif
11029char dlopen ();
11030int
11031main ()
11032{
11033return dlopen ();
11034  ;
11035  return 0;
11036}
11037_ACEOF
11038if ac_fn_c_try_link "$LINENO"; then :
11039  ac_cv_lib_svld_dlopen=yes
11040else
11041  ac_cv_lib_svld_dlopen=no
11042fi
11043rm -f core conftest.err conftest.$ac_objext \
11044    conftest$ac_exeext conftest.$ac_ext
11045LIBS=$ac_check_lib_save_LIBS
11046fi
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11048$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11049if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11050  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11051else
11052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11053$as_echo_n "checking for dld_link in -ldld... " >&6; }
11054if ${ac_cv_lib_dld_dld_link+:} false; then :
11055  $as_echo_n "(cached) " >&6
11056else
11057  ac_check_lib_save_LIBS=$LIBS
11058LIBS="-ldld  $LIBS"
11059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060/* end confdefs.h.  */
11061
11062/* Override any GCC internal prototype to avoid an error.
11063   Use char because int might match the return type of a GCC
11064   builtin and then its argument prototype would still apply.  */
11065#ifdef __cplusplus
11066extern "C"
11067#endif
11068char dld_link ();
11069int
11070main ()
11071{
11072return dld_link ();
11073  ;
11074  return 0;
11075}
11076_ACEOF
11077if ac_fn_c_try_link "$LINENO"; then :
11078  ac_cv_lib_dld_dld_link=yes
11079else
11080  ac_cv_lib_dld_dld_link=no
11081fi
11082rm -f core conftest.err conftest.$ac_objext \
11083    conftest$ac_exeext conftest.$ac_ext
11084LIBS=$ac_check_lib_save_LIBS
11085fi
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11087$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11088if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11089  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11090fi
11091
11092
11093fi
11094
11095
11096fi
11097
11098
11099fi
11100
11101
11102fi
11103
11104
11105fi
11106
11107    ;;
11108  esac
11109
11110  if test "x$lt_cv_dlopen" != xno; then
11111    enable_dlopen=yes
11112  else
11113    enable_dlopen=no
11114  fi
11115
11116  case $lt_cv_dlopen in
11117  dlopen)
11118    save_CPPFLAGS="$CPPFLAGS"
11119    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11120
11121    save_LDFLAGS="$LDFLAGS"
11122    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11123
11124    save_LIBS="$LIBS"
11125    LIBS="$lt_cv_dlopen_libs $LIBS"
11126
11127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11128$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11129if ${lt_cv_dlopen_self+:} false; then :
11130  $as_echo_n "(cached) " >&6
11131else
11132  	  if test "$cross_compiling" = yes; then :
11133  lt_cv_dlopen_self=cross
11134else
11135  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11136  lt_status=$lt_dlunknown
11137  cat > conftest.$ac_ext <<_LT_EOF
11138#line $LINENO "configure"
11139#include "confdefs.h"
11140
11141#if HAVE_DLFCN_H
11142#include <dlfcn.h>
11143#endif
11144
11145#include <stdio.h>
11146
11147#ifdef RTLD_GLOBAL
11148#  define LT_DLGLOBAL		RTLD_GLOBAL
11149#else
11150#  ifdef DL_GLOBAL
11151#    define LT_DLGLOBAL		DL_GLOBAL
11152#  else
11153#    define LT_DLGLOBAL		0
11154#  endif
11155#endif
11156
11157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11158   find out it does not work in some platform. */
11159#ifndef LT_DLLAZY_OR_NOW
11160#  ifdef RTLD_LAZY
11161#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11162#  else
11163#    ifdef DL_LAZY
11164#      define LT_DLLAZY_OR_NOW		DL_LAZY
11165#    else
11166#      ifdef RTLD_NOW
11167#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11168#      else
11169#        ifdef DL_NOW
11170#          define LT_DLLAZY_OR_NOW	DL_NOW
11171#        else
11172#          define LT_DLLAZY_OR_NOW	0
11173#        endif
11174#      endif
11175#    endif
11176#  endif
11177#endif
11178
11179/* When -fvisbility=hidden is used, assume the code has been annotated
11180   correspondingly for the symbols needed.  */
11181#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11182int fnord () __attribute__((visibility("default")));
11183#endif
11184
11185int fnord () { return 42; }
11186int main ()
11187{
11188  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11189  int status = $lt_dlunknown;
11190
11191  if (self)
11192    {
11193      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11194      else
11195        {
11196	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11197          else puts (dlerror ());
11198	}
11199      /* dlclose (self); */
11200    }
11201  else
11202    puts (dlerror ());
11203
11204  return status;
11205}
11206_LT_EOF
11207  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11208  (eval $ac_link) 2>&5
11209  ac_status=$?
11210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11211  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11212    (./conftest; exit; ) >&5 2>/dev/null
11213    lt_status=$?
11214    case x$lt_status in
11215      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11216      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11217      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11218    esac
11219  else :
11220    # compilation failed
11221    lt_cv_dlopen_self=no
11222  fi
11223fi
11224rm -fr conftest*
11225
11226
11227fi
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11229$as_echo "$lt_cv_dlopen_self" >&6; }
11230
11231    if test "x$lt_cv_dlopen_self" = xyes; then
11232      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11233      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11234$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11235if ${lt_cv_dlopen_self_static+:} false; then :
11236  $as_echo_n "(cached) " >&6
11237else
11238  	  if test "$cross_compiling" = yes; then :
11239  lt_cv_dlopen_self_static=cross
11240else
11241  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11242  lt_status=$lt_dlunknown
11243  cat > conftest.$ac_ext <<_LT_EOF
11244#line $LINENO "configure"
11245#include "confdefs.h"
11246
11247#if HAVE_DLFCN_H
11248#include <dlfcn.h>
11249#endif
11250
11251#include <stdio.h>
11252
11253#ifdef RTLD_GLOBAL
11254#  define LT_DLGLOBAL		RTLD_GLOBAL
11255#else
11256#  ifdef DL_GLOBAL
11257#    define LT_DLGLOBAL		DL_GLOBAL
11258#  else
11259#    define LT_DLGLOBAL		0
11260#  endif
11261#endif
11262
11263/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11264   find out it does not work in some platform. */
11265#ifndef LT_DLLAZY_OR_NOW
11266#  ifdef RTLD_LAZY
11267#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11268#  else
11269#    ifdef DL_LAZY
11270#      define LT_DLLAZY_OR_NOW		DL_LAZY
11271#    else
11272#      ifdef RTLD_NOW
11273#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11274#      else
11275#        ifdef DL_NOW
11276#          define LT_DLLAZY_OR_NOW	DL_NOW
11277#        else
11278#          define LT_DLLAZY_OR_NOW	0
11279#        endif
11280#      endif
11281#    endif
11282#  endif
11283#endif
11284
11285/* When -fvisbility=hidden is used, assume the code has been annotated
11286   correspondingly for the symbols needed.  */
11287#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11288int fnord () __attribute__((visibility("default")));
11289#endif
11290
11291int fnord () { return 42; }
11292int main ()
11293{
11294  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11295  int status = $lt_dlunknown;
11296
11297  if (self)
11298    {
11299      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11300      else
11301        {
11302	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11303          else puts (dlerror ());
11304	}
11305      /* dlclose (self); */
11306    }
11307  else
11308    puts (dlerror ());
11309
11310  return status;
11311}
11312_LT_EOF
11313  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11314  (eval $ac_link) 2>&5
11315  ac_status=$?
11316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11317  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11318    (./conftest; exit; ) >&5 2>/dev/null
11319    lt_status=$?
11320    case x$lt_status in
11321      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11322      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11323      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11324    esac
11325  else :
11326    # compilation failed
11327    lt_cv_dlopen_self_static=no
11328  fi
11329fi
11330rm -fr conftest*
11331
11332
11333fi
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11335$as_echo "$lt_cv_dlopen_self_static" >&6; }
11336    fi
11337
11338    CPPFLAGS="$save_CPPFLAGS"
11339    LDFLAGS="$save_LDFLAGS"
11340    LIBS="$save_LIBS"
11341    ;;
11342  esac
11343
11344  case $lt_cv_dlopen_self in
11345  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11346  *) enable_dlopen_self=unknown ;;
11347  esac
11348
11349  case $lt_cv_dlopen_self_static in
11350  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11351  *) enable_dlopen_self_static=unknown ;;
11352  esac
11353fi
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371striplib=
11372old_striplib=
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11374$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11375if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11376  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11377  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11379$as_echo "yes" >&6; }
11380else
11381# FIXME - insert some real tests, host_os isn't really good enough
11382  case $host_os in
11383  darwin*)
11384    if test -n "$STRIP" ; then
11385      striplib="$STRIP -x"
11386      old_striplib="$STRIP -S"
11387      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388$as_echo "yes" >&6; }
11389    else
11390      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
11392    fi
11393    ;;
11394  *)
11395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
11397    ;;
11398  esac
11399fi
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412  # Report which library types will actually be built
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11414$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11416$as_echo "$can_build_shared" >&6; }
11417
11418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11419$as_echo_n "checking whether to build shared libraries... " >&6; }
11420  test "$can_build_shared" = "no" && enable_shared=no
11421
11422  # On AIX, shared libraries and static libraries use the same namespace, and
11423  # are all built from PIC.
11424  case $host_os in
11425  aix3*)
11426    test "$enable_shared" = yes && enable_static=no
11427    if test -n "$RANLIB"; then
11428      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11429      postinstall_cmds='$RANLIB $lib'
11430    fi
11431    ;;
11432
11433  aix[4-9]*)
11434    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11435      test "$enable_shared" = yes && enable_static=no
11436    fi
11437    ;;
11438  esac
11439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11440$as_echo "$enable_shared" >&6; }
11441
11442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11443$as_echo_n "checking whether to build static libraries... " >&6; }
11444  # Make sure either enable_shared or enable_static is yes.
11445  test "$enable_shared" = yes || enable_static=yes
11446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11447$as_echo "$enable_static" >&6; }
11448
11449
11450
11451
11452fi
11453ac_ext=c
11454ac_cpp='$CPP $CPPFLAGS'
11455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11457ac_compiler_gnu=$ac_cv_c_compiler_gnu
11458
11459CC="$lt_save_CC"
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475        ac_config_commands="$ac_config_commands libtool"
11476
11477
11478
11479
11480# Only expand once:
11481
11482
11483
11484
11485for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
11486do :
11487  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11488ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11489if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11490  cat >>confdefs.h <<_ACEOF
11491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11492_ACEOF
11493
11494fi
11495
11496done
11497
11498
11499for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
11500do :
11501  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11502ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11503if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11504  cat >>confdefs.h <<_ACEOF
11505#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11506_ACEOF
11507
11508fi
11509done
11510
11511
11512for ac_func in clock_gettime
11513do :
11514  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
11515if test "x$ac_cv_func_clock_gettime" = xyes; then :
11516  cat >>confdefs.h <<_ACEOF
11517#define HAVE_CLOCK_GETTIME 1
11518_ACEOF
11519
11520else
11521
11522      if test $(uname) = Linux; then
11523      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
11524$as_echo_n "checking for clock_gettime syscall... " >&6; }
11525      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526/* end confdefs.h.  */
11527#include <unistd.h>
11528                       #include <sys/syscall.h>
11529                       #include <time.h>
11530int
11531main ()
11532{
11533struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
11534  ;
11535  return 0;
11536}
11537_ACEOF
11538if ac_fn_c_try_link "$LINENO"; then :
11539  ac_have_clock_syscall=1
11540
11541$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
11542
11543                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11544$as_echo "yes" >&6; }
11545else
11546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547$as_echo "no" >&6; }
11548fi
11549rm -f core conftest.err conftest.$ac_objext \
11550    conftest$ac_exeext conftest.$ac_ext
11551   fi
11552   if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
11553      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11554$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11555if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11556  $as_echo_n "(cached) " >&6
11557else
11558  ac_check_lib_save_LIBS=$LIBS
11559LIBS="-lrt  $LIBS"
11560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561/* end confdefs.h.  */
11562
11563/* Override any GCC internal prototype to avoid an error.
11564   Use char because int might match the return type of a GCC
11565   builtin and then its argument prototype would still apply.  */
11566#ifdef __cplusplus
11567extern "C"
11568#endif
11569char clock_gettime ();
11570int
11571main ()
11572{
11573return clock_gettime ();
11574  ;
11575  return 0;
11576}
11577_ACEOF
11578if ac_fn_c_try_link "$LINENO"; then :
11579  ac_cv_lib_rt_clock_gettime=yes
11580else
11581  ac_cv_lib_rt_clock_gettime=no
11582fi
11583rm -f core conftest.err conftest.$ac_objext \
11584    conftest$ac_exeext conftest.$ac_ext
11585LIBS=$ac_check_lib_save_LIBS
11586fi
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11588$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11589if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11590  cat >>confdefs.h <<_ACEOF
11591#define HAVE_LIBRT 1
11592_ACEOF
11593
11594  LIBS="-lrt $LIBS"
11595
11596fi
11597
11598      unset ac_cv_func_clock_gettime
11599      for ac_func in clock_gettime
11600do :
11601  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
11602if test "x$ac_cv_func_clock_gettime" = xyes; then :
11603  cat >>confdefs.h <<_ACEOF
11604#define HAVE_CLOCK_GETTIME 1
11605_ACEOF
11606
11607fi
11608done
11609
11610   fi
11611
11612fi
11613done
11614
11615
11616for ac_func in nanosleep
11617do :
11618  ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
11619if test "x$ac_cv_func_nanosleep" = xyes; then :
11620  cat >>confdefs.h <<_ACEOF
11621#define HAVE_NANOSLEEP 1
11622_ACEOF
11623
11624else
11625
11626   if test -z "$LIBEV_M4_AVOID_LIBRT"; then
11627      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
11628$as_echo_n "checking for nanosleep in -lrt... " >&6; }
11629if ${ac_cv_lib_rt_nanosleep+:} false; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  ac_check_lib_save_LIBS=$LIBS
11633LIBS="-lrt  $LIBS"
11634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635/* end confdefs.h.  */
11636
11637/* Override any GCC internal prototype to avoid an error.
11638   Use char because int might match the return type of a GCC
11639   builtin and then its argument prototype would still apply.  */
11640#ifdef __cplusplus
11641extern "C"
11642#endif
11643char nanosleep ();
11644int
11645main ()
11646{
11647return nanosleep ();
11648  ;
11649  return 0;
11650}
11651_ACEOF
11652if ac_fn_c_try_link "$LINENO"; then :
11653  ac_cv_lib_rt_nanosleep=yes
11654else
11655  ac_cv_lib_rt_nanosleep=no
11656fi
11657rm -f core conftest.err conftest.$ac_objext \
11658    conftest$ac_exeext conftest.$ac_ext
11659LIBS=$ac_check_lib_save_LIBS
11660fi
11661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
11662$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
11663if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
11664  cat >>confdefs.h <<_ACEOF
11665#define HAVE_LIBRT 1
11666_ACEOF
11667
11668  LIBS="-lrt $LIBS"
11669
11670fi
11671
11672      unset ac_cv_func_nanosleep
11673      for ac_func in nanosleep
11674do :
11675  ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
11676if test "x$ac_cv_func_nanosleep" = xyes; then :
11677  cat >>confdefs.h <<_ACEOF
11678#define HAVE_NANOSLEEP 1
11679_ACEOF
11680
11681fi
11682done
11683
11684   fi
11685
11686fi
11687done
11688
11689
11690if test -z "$LIBEV_M4_AVOID_LIBM"; then
11691   LIBM=m
11692fi
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
11694$as_echo_n "checking for library containing floor... " >&6; }
11695if ${ac_cv_search_floor+:} false; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  ac_func_search_save_LIBS=$LIBS
11699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700/* end confdefs.h.  */
11701
11702/* Override any GCC internal prototype to avoid an error.
11703   Use char because int might match the return type of a GCC
11704   builtin and then its argument prototype would still apply.  */
11705#ifdef __cplusplus
11706extern "C"
11707#endif
11708char floor ();
11709int
11710main ()
11711{
11712return floor ();
11713  ;
11714  return 0;
11715}
11716_ACEOF
11717for ac_lib in '' $LIBM; do
11718  if test -z "$ac_lib"; then
11719    ac_res="none required"
11720  else
11721    ac_res=-l$ac_lib
11722    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11723  fi
11724  if ac_fn_c_try_link "$LINENO"; then :
11725  ac_cv_search_floor=$ac_res
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728    conftest$ac_exeext
11729  if ${ac_cv_search_floor+:} false; then :
11730  break
11731fi
11732done
11733if ${ac_cv_search_floor+:} false; then :
11734
11735else
11736  ac_cv_search_floor=no
11737fi
11738rm conftest.$ac_ext
11739LIBS=$ac_func_search_save_LIBS
11740fi
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
11742$as_echo "$ac_cv_search_floor" >&6; }
11743ac_res=$ac_cv_search_floor
11744if test "$ac_res" != no; then :
11745  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11746
11747$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
11748
11749fi
11750
11751
11752
11753
11754ac_config_files="$ac_config_files Makefile"
11755
11756cat >confcache <<\_ACEOF
11757# This file is a shell script that caches the results of configure
11758# tests run on this system so they can be shared between configure
11759# scripts and configure runs, see configure's option --config-cache.
11760# It is not useful on other systems.  If it contains results you don't
11761# want to keep, you may remove or edit it.
11762#
11763# config.status only pays attention to the cache file if you give it
11764# the --recheck option to rerun configure.
11765#
11766# `ac_cv_env_foo' variables (set or unset) will be overridden when
11767# loading this file, other *unset* `ac_cv_foo' will be assigned the
11768# following values.
11769
11770_ACEOF
11771
11772# The following way of writing the cache mishandles newlines in values,
11773# but we know of no workaround that is simple, portable, and efficient.
11774# So, we kill variables containing newlines.
11775# Ultrix sh set writes to stderr and can't be redirected directly,
11776# and sets the high bit in the cache file unless we assign to the vars.
11777(
11778  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11779    eval ac_val=\$$ac_var
11780    case $ac_val in #(
11781    *${as_nl}*)
11782      case $ac_var in #(
11783      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11784$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11785      esac
11786      case $ac_var in #(
11787      _ | IFS | as_nl) ;; #(
11788      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11789      *) { eval $ac_var=; unset $ac_var;} ;;
11790      esac ;;
11791    esac
11792  done
11793
11794  (set) 2>&1 |
11795    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11796    *${as_nl}ac_space=\ *)
11797      # `set' does not quote correctly, so add quotes: double-quote
11798      # substitution turns \\\\ into \\, and sed turns \\ into \.
11799      sed -n \
11800	"s/'/'\\\\''/g;
11801	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11802      ;; #(
11803    *)
11804      # `set' quotes correctly as required by POSIX, so do not add quotes.
11805      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11806      ;;
11807    esac |
11808    sort
11809) |
11810  sed '
11811     /^ac_cv_env_/b end
11812     t clear
11813     :clear
11814     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11815     t end
11816     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11817     :end' >>confcache
11818if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11819  if test -w "$cache_file"; then
11820    if test "x$cache_file" != "x/dev/null"; then
11821      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11822$as_echo "$as_me: updating cache $cache_file" >&6;}
11823      if test ! -f "$cache_file" || test -h "$cache_file"; then
11824	cat confcache >"$cache_file"
11825      else
11826        case $cache_file in #(
11827        */* | ?:*)
11828	  mv -f confcache "$cache_file"$$ &&
11829	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11830        *)
11831	  mv -f confcache "$cache_file" ;;
11832	esac
11833      fi
11834    fi
11835  else
11836    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11837$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11838  fi
11839fi
11840rm -f confcache
11841
11842test "x$prefix" = xNONE && prefix=$ac_default_prefix
11843# Let make expand exec_prefix.
11844test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11845
11846DEFS=-DHAVE_CONFIG_H
11847
11848ac_libobjs=
11849ac_ltlibobjs=
11850U=
11851for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11852  # 1. Remove the extension, and $U if already installed.
11853  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11854  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11855  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11856  #    will be set to the directory where LIBOBJS objects are built.
11857  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11858  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11859done
11860LIBOBJS=$ac_libobjs
11861
11862LTLIBOBJS=$ac_ltlibobjs
11863
11864
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11866$as_echo_n "checking that generated files are newer than configure... " >&6; }
11867   if test -n "$am_sleep_pid"; then
11868     # Hide warnings about reused PIDs.
11869     wait $am_sleep_pid 2>/dev/null
11870   fi
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11872$as_echo "done" >&6; }
11873 if test -n "$EXEEXT"; then
11874  am__EXEEXT_TRUE=
11875  am__EXEEXT_FALSE='#'
11876else
11877  am__EXEEXT_TRUE='#'
11878  am__EXEEXT_FALSE=
11879fi
11880
11881if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11882  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11883Usually this means the macro was only invoked conditionally." "$LINENO" 5
11884fi
11885if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11886  as_fn_error $? "conditional \"AMDEP\" was never defined.
11887Usually this means the macro was only invoked conditionally." "$LINENO" 5
11888fi
11889if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11890  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11891Usually this means the macro was only invoked conditionally." "$LINENO" 5
11892fi
11893
11894: "${CONFIG_STATUS=./config.status}"
11895ac_write_fail=0
11896ac_clean_files_save=$ac_clean_files
11897ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11899$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11900as_write_fail=0
11901cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11902#! $SHELL
11903# Generated by $as_me.
11904# Run this file to recreate the current configuration.
11905# Compiler output produced by configure, useful for debugging
11906# configure, is in config.log if it exists.
11907
11908debug=false
11909ac_cs_recheck=false
11910ac_cs_silent=false
11911
11912SHELL=\${CONFIG_SHELL-$SHELL}
11913export SHELL
11914_ASEOF
11915cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11916## -------------------- ##
11917## M4sh Initialization. ##
11918## -------------------- ##
11919
11920# Be more Bourne compatible
11921DUALCASE=1; export DUALCASE # for MKS sh
11922if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11923  emulate sh
11924  NULLCMD=:
11925  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11926  # is contrary to our usage.  Disable this feature.
11927  alias -g '${1+"$@"}'='"$@"'
11928  setopt NO_GLOB_SUBST
11929else
11930  case `(set -o) 2>/dev/null` in #(
11931  *posix*) :
11932    set -o posix ;; #(
11933  *) :
11934     ;;
11935esac
11936fi
11937
11938
11939as_nl='
11940'
11941export as_nl
11942# Printing a long string crashes Solaris 7 /usr/bin/printf.
11943as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11944as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11945as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11946# Prefer a ksh shell builtin over an external printf program on Solaris,
11947# but without wasting forks for bash or zsh.
11948if test -z "$BASH_VERSION$ZSH_VERSION" \
11949    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11950  as_echo='print -r --'
11951  as_echo_n='print -rn --'
11952elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11953  as_echo='printf %s\n'
11954  as_echo_n='printf %s'
11955else
11956  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11957    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11958    as_echo_n='/usr/ucb/echo -n'
11959  else
11960    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11961    as_echo_n_body='eval
11962      arg=$1;
11963      case $arg in #(
11964      *"$as_nl"*)
11965	expr "X$arg" : "X\\(.*\\)$as_nl";
11966	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11967      esac;
11968      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11969    '
11970    export as_echo_n_body
11971    as_echo_n='sh -c $as_echo_n_body as_echo'
11972  fi
11973  export as_echo_body
11974  as_echo='sh -c $as_echo_body as_echo'
11975fi
11976
11977# The user is always right.
11978if test "${PATH_SEPARATOR+set}" != set; then
11979  PATH_SEPARATOR=:
11980  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11981    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11982      PATH_SEPARATOR=';'
11983  }
11984fi
11985
11986
11987# IFS
11988# We need space, tab and new line, in precisely that order.  Quoting is
11989# there to prevent editors from complaining about space-tab.
11990# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11991# splitting by setting IFS to empty value.)
11992IFS=" ""	$as_nl"
11993
11994# Find who we are.  Look in the path if we contain no directory separator.
11995as_myself=
11996case $0 in #((
11997  *[\\/]* ) as_myself=$0 ;;
11998  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999for as_dir in $PATH
12000do
12001  IFS=$as_save_IFS
12002  test -z "$as_dir" && as_dir=.
12003    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12004  done
12005IFS=$as_save_IFS
12006
12007     ;;
12008esac
12009# We did not find ourselves, most probably we were run as `sh COMMAND'
12010# in which case we are not to be found in the path.
12011if test "x$as_myself" = x; then
12012  as_myself=$0
12013fi
12014if test ! -f "$as_myself"; then
12015  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12016  exit 1
12017fi
12018
12019# Unset variables that we do not need and which cause bugs (e.g. in
12020# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12021# suppresses any "Segmentation fault" message there.  '((' could
12022# trigger a bug in pdksh 5.2.14.
12023for as_var in BASH_ENV ENV MAIL MAILPATH
12024do eval test x\${$as_var+set} = xset \
12025  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12026done
12027PS1='$ '
12028PS2='> '
12029PS4='+ '
12030
12031# NLS nuisances.
12032LC_ALL=C
12033export LC_ALL
12034LANGUAGE=C
12035export LANGUAGE
12036
12037# CDPATH.
12038(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12039
12040
12041# as_fn_error STATUS ERROR [LINENO LOG_FD]
12042# ----------------------------------------
12043# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12044# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12045# script with STATUS, using 1 if that was 0.
12046as_fn_error ()
12047{
12048  as_status=$1; test $as_status -eq 0 && as_status=1
12049  if test "$4"; then
12050    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12051    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12052  fi
12053  $as_echo "$as_me: error: $2" >&2
12054  as_fn_exit $as_status
12055} # as_fn_error
12056
12057
12058# as_fn_set_status STATUS
12059# -----------------------
12060# Set $? to STATUS, without forking.
12061as_fn_set_status ()
12062{
12063  return $1
12064} # as_fn_set_status
12065
12066# as_fn_exit STATUS
12067# -----------------
12068# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12069as_fn_exit ()
12070{
12071  set +e
12072  as_fn_set_status $1
12073  exit $1
12074} # as_fn_exit
12075
12076# as_fn_unset VAR
12077# ---------------
12078# Portably unset VAR.
12079as_fn_unset ()
12080{
12081  { eval $1=; unset $1;}
12082}
12083as_unset=as_fn_unset
12084# as_fn_append VAR VALUE
12085# ----------------------
12086# Append the text in VALUE to the end of the definition contained in VAR. Take
12087# advantage of any shell optimizations that allow amortized linear growth over
12088# repeated appends, instead of the typical quadratic growth present in naive
12089# implementations.
12090if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12091  eval 'as_fn_append ()
12092  {
12093    eval $1+=\$2
12094  }'
12095else
12096  as_fn_append ()
12097  {
12098    eval $1=\$$1\$2
12099  }
12100fi # as_fn_append
12101
12102# as_fn_arith ARG...
12103# ------------------
12104# Perform arithmetic evaluation on the ARGs, and store the result in the
12105# global $as_val. Take advantage of shells that can avoid forks. The arguments
12106# must be portable across $(()) and expr.
12107if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12108  eval 'as_fn_arith ()
12109  {
12110    as_val=$(( $* ))
12111  }'
12112else
12113  as_fn_arith ()
12114  {
12115    as_val=`expr "$@" || test $? -eq 1`
12116  }
12117fi # as_fn_arith
12118
12119
12120if expr a : '\(a\)' >/dev/null 2>&1 &&
12121   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12122  as_expr=expr
12123else
12124  as_expr=false
12125fi
12126
12127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12128  as_basename=basename
12129else
12130  as_basename=false
12131fi
12132
12133if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12134  as_dirname=dirname
12135else
12136  as_dirname=false
12137fi
12138
12139as_me=`$as_basename -- "$0" ||
12140$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12141	 X"$0" : 'X\(//\)$' \| \
12142	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12143$as_echo X/"$0" |
12144    sed '/^.*\/\([^/][^/]*\)\/*$/{
12145	    s//\1/
12146	    q
12147	  }
12148	  /^X\/\(\/\/\)$/{
12149	    s//\1/
12150	    q
12151	  }
12152	  /^X\/\(\/\).*/{
12153	    s//\1/
12154	    q
12155	  }
12156	  s/.*/./; q'`
12157
12158# Avoid depending upon Character Ranges.
12159as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12160as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12161as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12162as_cr_digits='0123456789'
12163as_cr_alnum=$as_cr_Letters$as_cr_digits
12164
12165ECHO_C= ECHO_N= ECHO_T=
12166case `echo -n x` in #(((((
12167-n*)
12168  case `echo 'xy\c'` in
12169  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12170  xy)  ECHO_C='\c';;
12171  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12172       ECHO_T='	';;
12173  esac;;
12174*)
12175  ECHO_N='-n';;
12176esac
12177
12178rm -f conf$$ conf$$.exe conf$$.file
12179if test -d conf$$.dir; then
12180  rm -f conf$$.dir/conf$$.file
12181else
12182  rm -f conf$$.dir
12183  mkdir conf$$.dir 2>/dev/null
12184fi
12185if (echo >conf$$.file) 2>/dev/null; then
12186  if ln -s conf$$.file conf$$ 2>/dev/null; then
12187    as_ln_s='ln -s'
12188    # ... but there are two gotchas:
12189    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12190    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12191    # In both cases, we have to default to `cp -pR'.
12192    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12193      as_ln_s='cp -pR'
12194  elif ln conf$$.file conf$$ 2>/dev/null; then
12195    as_ln_s=ln
12196  else
12197    as_ln_s='cp -pR'
12198  fi
12199else
12200  as_ln_s='cp -pR'
12201fi
12202rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12203rmdir conf$$.dir 2>/dev/null
12204
12205
12206# as_fn_mkdir_p
12207# -------------
12208# Create "$as_dir" as a directory, including parents if necessary.
12209as_fn_mkdir_p ()
12210{
12211
12212  case $as_dir in #(
12213  -*) as_dir=./$as_dir;;
12214  esac
12215  test -d "$as_dir" || eval $as_mkdir_p || {
12216    as_dirs=
12217    while :; do
12218      case $as_dir in #(
12219      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12220      *) as_qdir=$as_dir;;
12221      esac
12222      as_dirs="'$as_qdir' $as_dirs"
12223      as_dir=`$as_dirname -- "$as_dir" ||
12224$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12225	 X"$as_dir" : 'X\(//\)[^/]' \| \
12226	 X"$as_dir" : 'X\(//\)$' \| \
12227	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12228$as_echo X"$as_dir" |
12229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12230	    s//\1/
12231	    q
12232	  }
12233	  /^X\(\/\/\)[^/].*/{
12234	    s//\1/
12235	    q
12236	  }
12237	  /^X\(\/\/\)$/{
12238	    s//\1/
12239	    q
12240	  }
12241	  /^X\(\/\).*/{
12242	    s//\1/
12243	    q
12244	  }
12245	  s/.*/./; q'`
12246      test -d "$as_dir" && break
12247    done
12248    test -z "$as_dirs" || eval "mkdir $as_dirs"
12249  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12250
12251
12252} # as_fn_mkdir_p
12253if mkdir -p . 2>/dev/null; then
12254  as_mkdir_p='mkdir -p "$as_dir"'
12255else
12256  test -d ./-p && rmdir ./-p
12257  as_mkdir_p=false
12258fi
12259
12260
12261# as_fn_executable_p FILE
12262# -----------------------
12263# Test if FILE is an executable regular file.
12264as_fn_executable_p ()
12265{
12266  test -f "$1" && test -x "$1"
12267} # as_fn_executable_p
12268as_test_x='test -x'
12269as_executable_p=as_fn_executable_p
12270
12271# Sed expression to map a string onto a valid CPP name.
12272as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12273
12274# Sed expression to map a string onto a valid variable name.
12275as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12276
12277
12278exec 6>&1
12279## ----------------------------------- ##
12280## Main body of $CONFIG_STATUS script. ##
12281## ----------------------------------- ##
12282_ASEOF
12283test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12284
12285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12286# Save the log message, to keep $0 and so on meaningful, and to
12287# report actual input values of CONFIG_FILES etc. instead of their
12288# values after options handling.
12289ac_log="
12290This file was extended by $as_me, which was
12291generated by GNU Autoconf 2.69.  Invocation command line was
12292
12293  CONFIG_FILES    = $CONFIG_FILES
12294  CONFIG_HEADERS  = $CONFIG_HEADERS
12295  CONFIG_LINKS    = $CONFIG_LINKS
12296  CONFIG_COMMANDS = $CONFIG_COMMANDS
12297  $ $0 $@
12298
12299on `(hostname || uname -n) 2>/dev/null | sed 1q`
12300"
12301
12302_ACEOF
12303
12304case $ac_config_files in *"
12305"*) set x $ac_config_files; shift; ac_config_files=$*;;
12306esac
12307
12308case $ac_config_headers in *"
12309"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12310esac
12311
12312
12313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12314# Files that config.status was made for.
12315config_files="$ac_config_files"
12316config_headers="$ac_config_headers"
12317config_commands="$ac_config_commands"
12318
12319_ACEOF
12320
12321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12322ac_cs_usage="\
12323\`$as_me' instantiates files and other configuration actions
12324from templates according to the current configuration.  Unless the files
12325and actions are specified as TAGs, all are instantiated by default.
12326
12327Usage: $0 [OPTION]... [TAG]...
12328
12329  -h, --help       print this help, then exit
12330  -V, --version    print version number and configuration settings, then exit
12331      --config     print configuration, then exit
12332  -q, --quiet, --silent
12333                   do not print progress messages
12334  -d, --debug      don't remove temporary files
12335      --recheck    update $as_me by reconfiguring in the same conditions
12336      --file=FILE[:TEMPLATE]
12337                   instantiate the configuration file FILE
12338      --header=FILE[:TEMPLATE]
12339                   instantiate the configuration header FILE
12340
12341Configuration files:
12342$config_files
12343
12344Configuration headers:
12345$config_headers
12346
12347Configuration commands:
12348$config_commands
12349
12350Report bugs to the package provider."
12351
12352_ACEOF
12353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12354ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12355ac_cs_version="\\
12356config.status
12357configured by $0, generated by GNU Autoconf 2.69,
12358  with options \\"\$ac_cs_config\\"
12359
12360Copyright (C) 2012 Free Software Foundation, Inc.
12361This config.status script is free software; the Free Software Foundation
12362gives unlimited permission to copy, distribute and modify it."
12363
12364ac_pwd='$ac_pwd'
12365srcdir='$srcdir'
12366INSTALL='$INSTALL'
12367MKDIR_P='$MKDIR_P'
12368AWK='$AWK'
12369test -n "\$AWK" || AWK=awk
12370_ACEOF
12371
12372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12373# The default lists apply if the user does not specify any file.
12374ac_need_defaults=:
12375while test $# != 0
12376do
12377  case $1 in
12378  --*=?*)
12379    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12380    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12381    ac_shift=:
12382    ;;
12383  --*=)
12384    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12385    ac_optarg=
12386    ac_shift=:
12387    ;;
12388  *)
12389    ac_option=$1
12390    ac_optarg=$2
12391    ac_shift=shift
12392    ;;
12393  esac
12394
12395  case $ac_option in
12396  # Handling of the options.
12397  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12398    ac_cs_recheck=: ;;
12399  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12400    $as_echo "$ac_cs_version"; exit ;;
12401  --config | --confi | --conf | --con | --co | --c )
12402    $as_echo "$ac_cs_config"; exit ;;
12403  --debug | --debu | --deb | --de | --d | -d )
12404    debug=: ;;
12405  --file | --fil | --fi | --f )
12406    $ac_shift
12407    case $ac_optarg in
12408    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12409    '') as_fn_error $? "missing file argument" ;;
12410    esac
12411    as_fn_append CONFIG_FILES " '$ac_optarg'"
12412    ac_need_defaults=false;;
12413  --header | --heade | --head | --hea )
12414    $ac_shift
12415    case $ac_optarg in
12416    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12417    esac
12418    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12419    ac_need_defaults=false;;
12420  --he | --h)
12421    # Conflict between --help and --header
12422    as_fn_error $? "ambiguous option: \`$1'
12423Try \`$0 --help' for more information.";;
12424  --help | --hel | -h )
12425    $as_echo "$ac_cs_usage"; exit ;;
12426  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12427  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12428    ac_cs_silent=: ;;
12429
12430  # This is an error.
12431  -*) as_fn_error $? "unrecognized option: \`$1'
12432Try \`$0 --help' for more information." ;;
12433
12434  *) as_fn_append ac_config_targets " $1"
12435     ac_need_defaults=false ;;
12436
12437  esac
12438  shift
12439done
12440
12441ac_configure_extra_args=
12442
12443if $ac_cs_silent; then
12444  exec 6>/dev/null
12445  ac_configure_extra_args="$ac_configure_extra_args --silent"
12446fi
12447
12448_ACEOF
12449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12450if \$ac_cs_recheck; then
12451  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12452  shift
12453  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12454  CONFIG_SHELL='$SHELL'
12455  export CONFIG_SHELL
12456  exec "\$@"
12457fi
12458
12459_ACEOF
12460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12461exec 5>>config.log
12462{
12463  echo
12464  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12465## Running $as_me. ##
12466_ASBOX
12467  $as_echo "$ac_log"
12468} >&5
12469
12470_ACEOF
12471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12472#
12473# INIT-COMMANDS
12474#
12475AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12476
12477
12478# The HP-UX ksh and POSIX shell print the target directory to stdout
12479# if CDPATH is set.
12480(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12481
12482sed_quote_subst='$sed_quote_subst'
12483double_quote_subst='$double_quote_subst'
12484delay_variable_subst='$delay_variable_subst'
12485macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12486macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12487enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12488enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12489pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12490enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12491SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12492ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12493PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12494host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12495host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12496host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12497build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12498build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12499build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12500SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12501Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12502GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12503EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12504FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12505LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12506NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12507LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12508max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12509ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12510exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12511lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12512lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12513lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12514lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12515lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12516reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12517reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12518OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12519deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12520file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12521file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12522want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12523DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12524sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12525AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12526AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12527archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12528STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12529RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12530old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12531old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12532old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12533lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12534CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12535CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12536compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12537GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12538lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12539lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12540lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12541lt_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"`'
12542nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12543lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12544objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12545MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12546lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12547lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12548lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12549lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12550lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12551need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12552MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12553DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12554NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12555LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12556OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12557OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12558libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12559shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12560extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12561archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12562enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12563export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12564whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12565compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12566old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12567old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12568archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12569archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12570module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12571module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12572with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12573allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12574no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12575hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12576hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12577hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12578hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12579hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12580hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12581hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12582inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12583link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12584always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12585export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12586exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12587include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12588prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12589postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12590file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12591variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12592need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12593need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12594version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12595runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12596shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12597shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12598libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12599library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12600soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12601install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12602postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12603postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12604finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12605finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12606hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12607sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12608sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12609hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12610enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12611enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12612enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12613old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12614striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12615
12616LTCC='$LTCC'
12617LTCFLAGS='$LTCFLAGS'
12618compiler='$compiler_DEFAULT'
12619
12620# A function that is used when there is no print builtin or printf.
12621func_fallback_echo ()
12622{
12623  eval 'cat <<_LTECHO_EOF
12624\$1
12625_LTECHO_EOF'
12626}
12627
12628# Quote evaled strings.
12629for var in SHELL \
12630ECHO \
12631PATH_SEPARATOR \
12632SED \
12633GREP \
12634EGREP \
12635FGREP \
12636LD \
12637NM \
12638LN_S \
12639lt_SP2NL \
12640lt_NL2SP \
12641reload_flag \
12642OBJDUMP \
12643deplibs_check_method \
12644file_magic_cmd \
12645file_magic_glob \
12646want_nocaseglob \
12647DLLTOOL \
12648sharedlib_from_linklib_cmd \
12649AR \
12650AR_FLAGS \
12651archiver_list_spec \
12652STRIP \
12653RANLIB \
12654CC \
12655CFLAGS \
12656compiler \
12657lt_cv_sys_global_symbol_pipe \
12658lt_cv_sys_global_symbol_to_cdecl \
12659lt_cv_sys_global_symbol_to_c_name_address \
12660lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12661nm_file_list_spec \
12662lt_prog_compiler_no_builtin_flag \
12663lt_prog_compiler_pic \
12664lt_prog_compiler_wl \
12665lt_prog_compiler_static \
12666lt_cv_prog_compiler_c_o \
12667need_locks \
12668MANIFEST_TOOL \
12669DSYMUTIL \
12670NMEDIT \
12671LIPO \
12672OTOOL \
12673OTOOL64 \
12674shrext_cmds \
12675export_dynamic_flag_spec \
12676whole_archive_flag_spec \
12677compiler_needs_object \
12678with_gnu_ld \
12679allow_undefined_flag \
12680no_undefined_flag \
12681hardcode_libdir_flag_spec \
12682hardcode_libdir_separator \
12683exclude_expsyms \
12684include_expsyms \
12685file_list_spec \
12686variables_saved_for_relink \
12687libname_spec \
12688library_names_spec \
12689soname_spec \
12690install_override_mode \
12691finish_eval \
12692old_striplib \
12693striplib; do
12694    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12695    *[\\\\\\\`\\"\\\$]*)
12696      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12697      ;;
12698    *)
12699      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12700      ;;
12701    esac
12702done
12703
12704# Double-quote double-evaled strings.
12705for var in reload_cmds \
12706old_postinstall_cmds \
12707old_postuninstall_cmds \
12708old_archive_cmds \
12709extract_expsyms_cmds \
12710old_archive_from_new_cmds \
12711old_archive_from_expsyms_cmds \
12712archive_cmds \
12713archive_expsym_cmds \
12714module_cmds \
12715module_expsym_cmds \
12716export_symbols_cmds \
12717prelink_cmds \
12718postlink_cmds \
12719postinstall_cmds \
12720postuninstall_cmds \
12721finish_cmds \
12722sys_lib_search_path_spec \
12723sys_lib_dlsearch_path_spec; do
12724    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12725    *[\\\\\\\`\\"\\\$]*)
12726      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12727      ;;
12728    *)
12729      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12730      ;;
12731    esac
12732done
12733
12734ac_aux_dir='$ac_aux_dir'
12735xsi_shell='$xsi_shell'
12736lt_shell_append='$lt_shell_append'
12737
12738# See if we are running on zsh, and set the options which allow our
12739# commands through without removal of \ escapes INIT.
12740if test -n "\${ZSH_VERSION+set}" ; then
12741   setopt NO_GLOB_SUBST
12742fi
12743
12744
12745    PACKAGE='$PACKAGE'
12746    VERSION='$VERSION'
12747    TIMESTAMP='$TIMESTAMP'
12748    RM='$RM'
12749    ofile='$ofile'
12750
12751
12752
12753
12754_ACEOF
12755
12756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12757
12758# Handling of arguments.
12759for ac_config_target in $ac_config_targets
12760do
12761  case $ac_config_target in
12762    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12763    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12764    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12765    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12766
12767  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12768  esac
12769done
12770
12771
12772# If the user did not use the arguments to specify the items to instantiate,
12773# then the envvar interface is used.  Set only those that are not.
12774# We use the long form for the default assignment because of an extremely
12775# bizarre bug on SunOS 4.1.3.
12776if $ac_need_defaults; then
12777  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12778  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12779  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12780fi
12781
12782# Have a temporary directory for convenience.  Make it in the build tree
12783# simply because there is no reason against having it here, and in addition,
12784# creating and moving files from /tmp can sometimes cause problems.
12785# Hook for its removal unless debugging.
12786# Note that there is a small window in which the directory will not be cleaned:
12787# after its creation but before its name has been assigned to `$tmp'.
12788$debug ||
12789{
12790  tmp= ac_tmp=
12791  trap 'exit_status=$?
12792  : "${ac_tmp:=$tmp}"
12793  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12794' 0
12795  trap 'as_fn_exit 1' 1 2 13 15
12796}
12797# Create a (secure) tmp directory for tmp files.
12798
12799{
12800  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12801  test -d "$tmp"
12802}  ||
12803{
12804  tmp=./conf$$-$RANDOM
12805  (umask 077 && mkdir "$tmp")
12806} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12807ac_tmp=$tmp
12808
12809# Set up the scripts for CONFIG_FILES section.
12810# No need to generate them if there are no CONFIG_FILES.
12811# This happens for instance with `./config.status config.h'.
12812if test -n "$CONFIG_FILES"; then
12813
12814
12815ac_cr=`echo X | tr X '\015'`
12816# On cygwin, bash can eat \r inside `` if the user requested igncr.
12817# But we know of no other shell where ac_cr would be empty at this
12818# point, so we can use a bashism as a fallback.
12819if test "x$ac_cr" = x; then
12820  eval ac_cr=\$\'\\r\'
12821fi
12822ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12823if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12824  ac_cs_awk_cr='\\r'
12825else
12826  ac_cs_awk_cr=$ac_cr
12827fi
12828
12829echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12830_ACEOF
12831
12832
12833{
12834  echo "cat >conf$$subs.awk <<_ACEOF" &&
12835  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12836  echo "_ACEOF"
12837} >conf$$subs.sh ||
12838  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12839ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12840ac_delim='%!_!# '
12841for ac_last_try in false false false false false :; do
12842  . ./conf$$subs.sh ||
12843    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12844
12845  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12846  if test $ac_delim_n = $ac_delim_num; then
12847    break
12848  elif $ac_last_try; then
12849    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12850  else
12851    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12852  fi
12853done
12854rm -f conf$$subs.sh
12855
12856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12857cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12858_ACEOF
12859sed -n '
12860h
12861s/^/S["/; s/!.*/"]=/
12862p
12863g
12864s/^[^!]*!//
12865:repl
12866t repl
12867s/'"$ac_delim"'$//
12868t delim
12869:nl
12870h
12871s/\(.\{148\}\)..*/\1/
12872t more1
12873s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12874p
12875n
12876b repl
12877:more1
12878s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12879p
12880g
12881s/.\{148\}//
12882t nl
12883:delim
12884h
12885s/\(.\{148\}\)..*/\1/
12886t more2
12887s/["\\]/\\&/g; s/^/"/; s/$/"/
12888p
12889b
12890:more2
12891s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12892p
12893g
12894s/.\{148\}//
12895t delim
12896' <conf$$subs.awk | sed '
12897/^[^""]/{
12898  N
12899  s/\n//
12900}
12901' >>$CONFIG_STATUS || ac_write_fail=1
12902rm -f conf$$subs.awk
12903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12904_ACAWK
12905cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12906  for (key in S) S_is_set[key] = 1
12907  FS = ""
12908
12909}
12910{
12911  line = $ 0
12912  nfields = split(line, field, "@")
12913  substed = 0
12914  len = length(field[1])
12915  for (i = 2; i < nfields; i++) {
12916    key = field[i]
12917    keylen = length(key)
12918    if (S_is_set[key]) {
12919      value = S[key]
12920      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12921      len += length(value) + length(field[++i])
12922      substed = 1
12923    } else
12924      len += 1 + keylen
12925  }
12926
12927  print line
12928}
12929
12930_ACAWK
12931_ACEOF
12932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12933if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12934  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12935else
12936  cat
12937fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12938  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12939_ACEOF
12940
12941# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12942# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12943# trailing colons and then remove the whole line if VPATH becomes empty
12944# (actually we leave an empty line to preserve line numbers).
12945if test "x$srcdir" = x.; then
12946  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12947h
12948s///
12949s/^/:/
12950s/[	 ]*$/:/
12951s/:\$(srcdir):/:/g
12952s/:\${srcdir}:/:/g
12953s/:@srcdir@:/:/g
12954s/^:*//
12955s/:*$//
12956x
12957s/\(=[	 ]*\).*/\1/
12958G
12959s/\n//
12960s/^[^=]*=[	 ]*$//
12961}'
12962fi
12963
12964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12965fi # test -n "$CONFIG_FILES"
12966
12967# Set up the scripts for CONFIG_HEADERS section.
12968# No need to generate them if there are no CONFIG_HEADERS.
12969# This happens for instance with `./config.status Makefile'.
12970if test -n "$CONFIG_HEADERS"; then
12971cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12972BEGIN {
12973_ACEOF
12974
12975# Transform confdefs.h into an awk script `defines.awk', embedded as
12976# here-document in config.status, that substitutes the proper values into
12977# config.h.in to produce config.h.
12978
12979# Create a delimiter string that does not exist in confdefs.h, to ease
12980# handling of long lines.
12981ac_delim='%!_!# '
12982for ac_last_try in false false :; do
12983  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12984  if test -z "$ac_tt"; then
12985    break
12986  elif $ac_last_try; then
12987    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12988  else
12989    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12990  fi
12991done
12992
12993# For the awk script, D is an array of macro values keyed by name,
12994# likewise P contains macro parameters if any.  Preserve backslash
12995# newline sequences.
12996
12997ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12998sed -n '
12999s/.\{148\}/&'"$ac_delim"'/g
13000t rset
13001:rset
13002s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13003t def
13004d
13005:def
13006s/\\$//
13007t bsnl
13008s/["\\]/\\&/g
13009s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13010D["\1"]=" \3"/p
13011s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13012d
13013:bsnl
13014s/["\\]/\\&/g
13015s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13016D["\1"]=" \3\\\\\\n"\\/p
13017t cont
13018s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13019t cont
13020d
13021:cont
13022n
13023s/.\{148\}/&'"$ac_delim"'/g
13024t clear
13025:clear
13026s/\\$//
13027t bsnlc
13028s/["\\]/\\&/g; s/^/"/; s/$/"/p
13029d
13030:bsnlc
13031s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13032b cont
13033' <confdefs.h | sed '
13034s/'"$ac_delim"'/"\\\
13035"/g' >>$CONFIG_STATUS || ac_write_fail=1
13036
13037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13038  for (key in D) D_is_set[key] = 1
13039  FS = ""
13040}
13041/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13042  line = \$ 0
13043  split(line, arg, " ")
13044  if (arg[1] == "#") {
13045    defundef = arg[2]
13046    mac1 = arg[3]
13047  } else {
13048    defundef = substr(arg[1], 2)
13049    mac1 = arg[2]
13050  }
13051  split(mac1, mac2, "(") #)
13052  macro = mac2[1]
13053  prefix = substr(line, 1, index(line, defundef) - 1)
13054  if (D_is_set[macro]) {
13055    # Preserve the white space surrounding the "#".
13056    print prefix "define", macro P[macro] D[macro]
13057    next
13058  } else {
13059    # Replace #undef with comments.  This is necessary, for example,
13060    # in the case of _POSIX_SOURCE, which is predefined and required
13061    # on some systems where configure will not decide to define it.
13062    if (defundef == "undef") {
13063      print "/*", prefix defundef, macro, "*/"
13064      next
13065    }
13066  }
13067}
13068{ print }
13069_ACAWK
13070_ACEOF
13071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13072  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13073fi # test -n "$CONFIG_HEADERS"
13074
13075
13076eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13077shift
13078for ac_tag
13079do
13080  case $ac_tag in
13081  :[FHLC]) ac_mode=$ac_tag; continue;;
13082  esac
13083  case $ac_mode$ac_tag in
13084  :[FHL]*:*);;
13085  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13086  :[FH]-) ac_tag=-:-;;
13087  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13088  esac
13089  ac_save_IFS=$IFS
13090  IFS=:
13091  set x $ac_tag
13092  IFS=$ac_save_IFS
13093  shift
13094  ac_file=$1
13095  shift
13096
13097  case $ac_mode in
13098  :L) ac_source=$1;;
13099  :[FH])
13100    ac_file_inputs=
13101    for ac_f
13102    do
13103      case $ac_f in
13104      -) ac_f="$ac_tmp/stdin";;
13105      *) # Look for the file first in the build tree, then in the source tree
13106	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13107	 # because $ac_f cannot contain `:'.
13108	 test -f "$ac_f" ||
13109	   case $ac_f in
13110	   [\\/$]*) false;;
13111	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13112	   esac ||
13113	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13114      esac
13115      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13116      as_fn_append ac_file_inputs " '$ac_f'"
13117    done
13118
13119    # Let's still pretend it is `configure' which instantiates (i.e., don't
13120    # use $as_me), people would be surprised to read:
13121    #    /* config.h.  Generated by config.status.  */
13122    configure_input='Generated from '`
13123	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13124	`' by configure.'
13125    if test x"$ac_file" != x-; then
13126      configure_input="$ac_file.  $configure_input"
13127      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13128$as_echo "$as_me: creating $ac_file" >&6;}
13129    fi
13130    # Neutralize special characters interpreted by sed in replacement strings.
13131    case $configure_input in #(
13132    *\&* | *\|* | *\\* )
13133       ac_sed_conf_input=`$as_echo "$configure_input" |
13134       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13135    *) ac_sed_conf_input=$configure_input;;
13136    esac
13137
13138    case $ac_tag in
13139    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13140      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13141    esac
13142    ;;
13143  esac
13144
13145  ac_dir=`$as_dirname -- "$ac_file" ||
13146$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13147	 X"$ac_file" : 'X\(//\)[^/]' \| \
13148	 X"$ac_file" : 'X\(//\)$' \| \
13149	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13150$as_echo X"$ac_file" |
13151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13152	    s//\1/
13153	    q
13154	  }
13155	  /^X\(\/\/\)[^/].*/{
13156	    s//\1/
13157	    q
13158	  }
13159	  /^X\(\/\/\)$/{
13160	    s//\1/
13161	    q
13162	  }
13163	  /^X\(\/\).*/{
13164	    s//\1/
13165	    q
13166	  }
13167	  s/.*/./; q'`
13168  as_dir="$ac_dir"; as_fn_mkdir_p
13169  ac_builddir=.
13170
13171case "$ac_dir" in
13172.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13173*)
13174  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13175  # A ".." for each directory in $ac_dir_suffix.
13176  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13177  case $ac_top_builddir_sub in
13178  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13179  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13180  esac ;;
13181esac
13182ac_abs_top_builddir=$ac_pwd
13183ac_abs_builddir=$ac_pwd$ac_dir_suffix
13184# for backward compatibility:
13185ac_top_builddir=$ac_top_build_prefix
13186
13187case $srcdir in
13188  .)  # We are building in place.
13189    ac_srcdir=.
13190    ac_top_srcdir=$ac_top_builddir_sub
13191    ac_abs_top_srcdir=$ac_pwd ;;
13192  [\\/]* | ?:[\\/]* )  # Absolute name.
13193    ac_srcdir=$srcdir$ac_dir_suffix;
13194    ac_top_srcdir=$srcdir
13195    ac_abs_top_srcdir=$srcdir ;;
13196  *) # Relative name.
13197    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13198    ac_top_srcdir=$ac_top_build_prefix$srcdir
13199    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13200esac
13201ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13202
13203
13204  case $ac_mode in
13205  :F)
13206  #
13207  # CONFIG_FILE
13208  #
13209
13210  case $INSTALL in
13211  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13212  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13213  esac
13214  ac_MKDIR_P=$MKDIR_P
13215  case $MKDIR_P in
13216  [\\/$]* | ?:[\\/]* ) ;;
13217  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13218  esac
13219_ACEOF
13220
13221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13222# If the template does not know about datarootdir, expand it.
13223# FIXME: This hack should be removed a few years after 2.60.
13224ac_datarootdir_hack=; ac_datarootdir_seen=
13225ac_sed_dataroot='
13226/datarootdir/ {
13227  p
13228  q
13229}
13230/@datadir@/p
13231/@docdir@/p
13232/@infodir@/p
13233/@localedir@/p
13234/@mandir@/p'
13235case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13236*datarootdir*) ac_datarootdir_seen=yes;;
13237*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13238  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13239$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13240_ACEOF
13241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13242  ac_datarootdir_hack='
13243  s&@datadir@&$datadir&g
13244  s&@docdir@&$docdir&g
13245  s&@infodir@&$infodir&g
13246  s&@localedir@&$localedir&g
13247  s&@mandir@&$mandir&g
13248  s&\\\${datarootdir}&$datarootdir&g' ;;
13249esac
13250_ACEOF
13251
13252# Neutralize VPATH when `$srcdir' = `.'.
13253# Shell code in configure.ac might set extrasub.
13254# FIXME: do we really want to maintain this feature?
13255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13256ac_sed_extra="$ac_vpsub
13257$extrasub
13258_ACEOF
13259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13260:t
13261/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13262s|@configure_input@|$ac_sed_conf_input|;t t
13263s&@top_builddir@&$ac_top_builddir_sub&;t t
13264s&@top_build_prefix@&$ac_top_build_prefix&;t t
13265s&@srcdir@&$ac_srcdir&;t t
13266s&@abs_srcdir@&$ac_abs_srcdir&;t t
13267s&@top_srcdir@&$ac_top_srcdir&;t t
13268s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13269s&@builddir@&$ac_builddir&;t t
13270s&@abs_builddir@&$ac_abs_builddir&;t t
13271s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13272s&@INSTALL@&$ac_INSTALL&;t t
13273s&@MKDIR_P@&$ac_MKDIR_P&;t t
13274$ac_datarootdir_hack
13275"
13276eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13277  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13278
13279test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13280  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13281  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13282      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13283  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13284which seems to be undefined.  Please make sure it is defined" >&5
13285$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13286which seems to be undefined.  Please make sure it is defined" >&2;}
13287
13288  rm -f "$ac_tmp/stdin"
13289  case $ac_file in
13290  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13291  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13292  esac \
13293  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13294 ;;
13295  :H)
13296  #
13297  # CONFIG_HEADER
13298  #
13299  if test x"$ac_file" != x-; then
13300    {
13301      $as_echo "/* $configure_input  */" \
13302      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13303    } >"$ac_tmp/config.h" \
13304      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13305    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13306      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13307$as_echo "$as_me: $ac_file is unchanged" >&6;}
13308    else
13309      rm -f "$ac_file"
13310      mv "$ac_tmp/config.h" "$ac_file" \
13311	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13312    fi
13313  else
13314    $as_echo "/* $configure_input  */" \
13315      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13316      || as_fn_error $? "could not create -" "$LINENO" 5
13317  fi
13318# Compute "$ac_file"'s index in $config_headers.
13319_am_arg="$ac_file"
13320_am_stamp_count=1
13321for _am_header in $config_headers :; do
13322  case $_am_header in
13323    $_am_arg | $_am_arg:* )
13324      break ;;
13325    * )
13326      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13327  esac
13328done
13329echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13330$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13331	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13332	 X"$_am_arg" : 'X\(//\)$' \| \
13333	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13334$as_echo X"$_am_arg" |
13335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13336	    s//\1/
13337	    q
13338	  }
13339	  /^X\(\/\/\)[^/].*/{
13340	    s//\1/
13341	    q
13342	  }
13343	  /^X\(\/\/\)$/{
13344	    s//\1/
13345	    q
13346	  }
13347	  /^X\(\/\).*/{
13348	    s//\1/
13349	    q
13350	  }
13351	  s/.*/./; q'`/stamp-h$_am_stamp_count
13352 ;;
13353
13354  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13355$as_echo "$as_me: executing $ac_file commands" >&6;}
13356 ;;
13357  esac
13358
13359
13360  case $ac_file$ac_mode in
13361    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13362  # Older Autoconf quotes --file arguments for eval, but not when files
13363  # are listed without --file.  Let's play safe and only enable the eval
13364  # if we detect the quoting.
13365  case $CONFIG_FILES in
13366  *\'*) eval set x "$CONFIG_FILES" ;;
13367  *)   set x $CONFIG_FILES ;;
13368  esac
13369  shift
13370  for mf
13371  do
13372    # Strip MF so we end up with the name of the file.
13373    mf=`echo "$mf" | sed -e 's/:.*$//'`
13374    # Check whether this is an Automake generated Makefile or not.
13375    # We used to match only the files named 'Makefile.in', but
13376    # some people rename them; so instead we look at the file content.
13377    # Grep'ing the first line is not enough: some people post-process
13378    # each Makefile.in and add a new line on top of each file to say so.
13379    # Grep'ing the whole file is not good either: AIX grep has a line
13380    # limit of 2048, but all sed's we know have understand at least 4000.
13381    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13382      dirpart=`$as_dirname -- "$mf" ||
13383$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13384	 X"$mf" : 'X\(//\)[^/]' \| \
13385	 X"$mf" : 'X\(//\)$' \| \
13386	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13387$as_echo X"$mf" |
13388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13389	    s//\1/
13390	    q
13391	  }
13392	  /^X\(\/\/\)[^/].*/{
13393	    s//\1/
13394	    q
13395	  }
13396	  /^X\(\/\/\)$/{
13397	    s//\1/
13398	    q
13399	  }
13400	  /^X\(\/\).*/{
13401	    s//\1/
13402	    q
13403	  }
13404	  s/.*/./; q'`
13405    else
13406      continue
13407    fi
13408    # Extract the definition of DEPDIR, am__include, and am__quote
13409    # from the Makefile without running 'make'.
13410    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13411    test -z "$DEPDIR" && continue
13412    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13413    test -z "$am__include" && continue
13414    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13415    # Find all dependency output files, they are included files with
13416    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13417    # simplest approach to changing $(DEPDIR) to its actual value in the
13418    # expansion.
13419    for file in `sed -n "
13420      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13421	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13422      # Make sure the directory exists.
13423      test -f "$dirpart/$file" && continue
13424      fdir=`$as_dirname -- "$file" ||
13425$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13426	 X"$file" : 'X\(//\)[^/]' \| \
13427	 X"$file" : 'X\(//\)$' \| \
13428	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13429$as_echo X"$file" |
13430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13431	    s//\1/
13432	    q
13433	  }
13434	  /^X\(\/\/\)[^/].*/{
13435	    s//\1/
13436	    q
13437	  }
13438	  /^X\(\/\/\)$/{
13439	    s//\1/
13440	    q
13441	  }
13442	  /^X\(\/\).*/{
13443	    s//\1/
13444	    q
13445	  }
13446	  s/.*/./; q'`
13447      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13448      # echo "creating $dirpart/$file"
13449      echo '# dummy' > "$dirpart/$file"
13450    done
13451  done
13452}
13453 ;;
13454    "libtool":C)
13455
13456    # See if we are running on zsh, and set the options which allow our
13457    # commands through without removal of \ escapes.
13458    if test -n "${ZSH_VERSION+set}" ; then
13459      setopt NO_GLOB_SUBST
13460    fi
13461
13462    cfgfile="${ofile}T"
13463    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13464    $RM "$cfgfile"
13465
13466    cat <<_LT_EOF >> "$cfgfile"
13467#! $SHELL
13468
13469# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13470# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13471# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13472# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13473#
13474#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13475#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13476#                 Foundation, Inc.
13477#   Written by Gordon Matzigkeit, 1996
13478#
13479#   This file is part of GNU Libtool.
13480#
13481# GNU Libtool is free software; you can redistribute it and/or
13482# modify it under the terms of the GNU General Public License as
13483# published by the Free Software Foundation; either version 2 of
13484# the License, or (at your option) any later version.
13485#
13486# As a special exception to the GNU General Public License,
13487# if you distribute this file as part of a program or library that
13488# is built using GNU Libtool, you may include this file under the
13489# same distribution terms that you use for the rest of that program.
13490#
13491# GNU Libtool is distributed in the hope that it will be useful,
13492# but WITHOUT ANY WARRANTY; without even the implied warranty of
13493# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13494# GNU General Public License for more details.
13495#
13496# You should have received a copy of the GNU General Public License
13497# along with GNU Libtool; see the file COPYING.  If not, a copy
13498# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13499# obtained by writing to the Free Software Foundation, Inc.,
13500# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13501
13502
13503# The names of the tagged configurations supported by this script.
13504available_tags=""
13505
13506# ### BEGIN LIBTOOL CONFIG
13507
13508# Which release of libtool.m4 was used?
13509macro_version=$macro_version
13510macro_revision=$macro_revision
13511
13512# Whether or not to build shared libraries.
13513build_libtool_libs=$enable_shared
13514
13515# Whether or not to build static libraries.
13516build_old_libs=$enable_static
13517
13518# What type of objects to build.
13519pic_mode=$pic_mode
13520
13521# Whether or not to optimize for fast installation.
13522fast_install=$enable_fast_install
13523
13524# Shell to use when invoking shell scripts.
13525SHELL=$lt_SHELL
13526
13527# An echo program that protects backslashes.
13528ECHO=$lt_ECHO
13529
13530# The PATH separator for the build system.
13531PATH_SEPARATOR=$lt_PATH_SEPARATOR
13532
13533# The host system.
13534host_alias=$host_alias
13535host=$host
13536host_os=$host_os
13537
13538# The build system.
13539build_alias=$build_alias
13540build=$build
13541build_os=$build_os
13542
13543# A sed program that does not truncate output.
13544SED=$lt_SED
13545
13546# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13547Xsed="\$SED -e 1s/^X//"
13548
13549# A grep program that handles long lines.
13550GREP=$lt_GREP
13551
13552# An ERE matcher.
13553EGREP=$lt_EGREP
13554
13555# A literal string matcher.
13556FGREP=$lt_FGREP
13557
13558# A BSD- or MS-compatible name lister.
13559NM=$lt_NM
13560
13561# Whether we need soft or hard links.
13562LN_S=$lt_LN_S
13563
13564# What is the maximum length of a command?
13565max_cmd_len=$max_cmd_len
13566
13567# Object file suffix (normally "o").
13568objext=$ac_objext
13569
13570# Executable file suffix (normally "").
13571exeext=$exeext
13572
13573# whether the shell understands "unset".
13574lt_unset=$lt_unset
13575
13576# turn spaces into newlines.
13577SP2NL=$lt_lt_SP2NL
13578
13579# turn newlines into spaces.
13580NL2SP=$lt_lt_NL2SP
13581
13582# convert \$build file names to \$host format.
13583to_host_file_cmd=$lt_cv_to_host_file_cmd
13584
13585# convert \$build files to toolchain format.
13586to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13587
13588# An object symbol dumper.
13589OBJDUMP=$lt_OBJDUMP
13590
13591# Method to check whether dependent libraries are shared objects.
13592deplibs_check_method=$lt_deplibs_check_method
13593
13594# Command to use when deplibs_check_method = "file_magic".
13595file_magic_cmd=$lt_file_magic_cmd
13596
13597# How to find potential files when deplibs_check_method = "file_magic".
13598file_magic_glob=$lt_file_magic_glob
13599
13600# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13601want_nocaseglob=$lt_want_nocaseglob
13602
13603# DLL creation program.
13604DLLTOOL=$lt_DLLTOOL
13605
13606# Command to associate shared and link libraries.
13607sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13608
13609# The archiver.
13610AR=$lt_AR
13611
13612# Flags to create an archive.
13613AR_FLAGS=$lt_AR_FLAGS
13614
13615# How to feed a file listing to the archiver.
13616archiver_list_spec=$lt_archiver_list_spec
13617
13618# A symbol stripping program.
13619STRIP=$lt_STRIP
13620
13621# Commands used to install an old-style archive.
13622RANLIB=$lt_RANLIB
13623old_postinstall_cmds=$lt_old_postinstall_cmds
13624old_postuninstall_cmds=$lt_old_postuninstall_cmds
13625
13626# Whether to use a lock for old archive extraction.
13627lock_old_archive_extraction=$lock_old_archive_extraction
13628
13629# A C compiler.
13630LTCC=$lt_CC
13631
13632# LTCC compiler flags.
13633LTCFLAGS=$lt_CFLAGS
13634
13635# Take the output of nm and produce a listing of raw symbols and C names.
13636global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13637
13638# Transform the output of nm in a proper C declaration.
13639global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13640
13641# Transform the output of nm in a C name address pair.
13642global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13643
13644# Transform the output of nm in a C name address pair when lib prefix is needed.
13645global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13646
13647# Specify filename containing input files for \$NM.
13648nm_file_list_spec=$lt_nm_file_list_spec
13649
13650# The root where to search for dependent libraries,and in which our libraries should be installed.
13651lt_sysroot=$lt_sysroot
13652
13653# The name of the directory that contains temporary libtool files.
13654objdir=$objdir
13655
13656# Used to examine libraries when file_magic_cmd begins with "file".
13657MAGIC_CMD=$MAGIC_CMD
13658
13659# Must we lock files when doing compilation?
13660need_locks=$lt_need_locks
13661
13662# Manifest tool.
13663MANIFEST_TOOL=$lt_MANIFEST_TOOL
13664
13665# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13666DSYMUTIL=$lt_DSYMUTIL
13667
13668# Tool to change global to local symbols on Mac OS X.
13669NMEDIT=$lt_NMEDIT
13670
13671# Tool to manipulate fat objects and archives on Mac OS X.
13672LIPO=$lt_LIPO
13673
13674# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13675OTOOL=$lt_OTOOL
13676
13677# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13678OTOOL64=$lt_OTOOL64
13679
13680# Old archive suffix (normally "a").
13681libext=$libext
13682
13683# Shared library suffix (normally ".so").
13684shrext_cmds=$lt_shrext_cmds
13685
13686# The commands to extract the exported symbol list from a shared archive.
13687extract_expsyms_cmds=$lt_extract_expsyms_cmds
13688
13689# Variables whose values should be saved in libtool wrapper scripts and
13690# restored at link time.
13691variables_saved_for_relink=$lt_variables_saved_for_relink
13692
13693# Do we need the "lib" prefix for modules?
13694need_lib_prefix=$need_lib_prefix
13695
13696# Do we need a version for libraries?
13697need_version=$need_version
13698
13699# Library versioning type.
13700version_type=$version_type
13701
13702# Shared library runtime path variable.
13703runpath_var=$runpath_var
13704
13705# Shared library path variable.
13706shlibpath_var=$shlibpath_var
13707
13708# Is shlibpath searched before the hard-coded library search path?
13709shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13710
13711# Format of library name prefix.
13712libname_spec=$lt_libname_spec
13713
13714# List of archive names.  First name is the real one, the rest are links.
13715# The last name is the one that the linker finds with -lNAME
13716library_names_spec=$lt_library_names_spec
13717
13718# The coded name of the library, if different from the real name.
13719soname_spec=$lt_soname_spec
13720
13721# Permission mode override for installation of shared libraries.
13722install_override_mode=$lt_install_override_mode
13723
13724# Command to use after installation of a shared archive.
13725postinstall_cmds=$lt_postinstall_cmds
13726
13727# Command to use after uninstallation of a shared archive.
13728postuninstall_cmds=$lt_postuninstall_cmds
13729
13730# Commands used to finish a libtool library installation in a directory.
13731finish_cmds=$lt_finish_cmds
13732
13733# As "finish_cmds", except a single script fragment to be evaled but
13734# not shown.
13735finish_eval=$lt_finish_eval
13736
13737# Whether we should hardcode library paths into libraries.
13738hardcode_into_libs=$hardcode_into_libs
13739
13740# Compile-time system search path for libraries.
13741sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13742
13743# Run-time system search path for libraries.
13744sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13745
13746# Whether dlopen is supported.
13747dlopen_support=$enable_dlopen
13748
13749# Whether dlopen of programs is supported.
13750dlopen_self=$enable_dlopen_self
13751
13752# Whether dlopen of statically linked programs is supported.
13753dlopen_self_static=$enable_dlopen_self_static
13754
13755# Commands to strip libraries.
13756old_striplib=$lt_old_striplib
13757striplib=$lt_striplib
13758
13759
13760# The linker used to build libraries.
13761LD=$lt_LD
13762
13763# How to create reloadable object files.
13764reload_flag=$lt_reload_flag
13765reload_cmds=$lt_reload_cmds
13766
13767# Commands used to build an old-style archive.
13768old_archive_cmds=$lt_old_archive_cmds
13769
13770# A language specific compiler.
13771CC=$lt_compiler
13772
13773# Is the compiler the GNU compiler?
13774with_gcc=$GCC
13775
13776# Compiler flag to turn off builtin functions.
13777no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13778
13779# Additional compiler flags for building library objects.
13780pic_flag=$lt_lt_prog_compiler_pic
13781
13782# How to pass a linker flag through the compiler.
13783wl=$lt_lt_prog_compiler_wl
13784
13785# Compiler flag to prevent dynamic linking.
13786link_static_flag=$lt_lt_prog_compiler_static
13787
13788# Does compiler simultaneously support -c and -o options?
13789compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13790
13791# Whether or not to add -lc for building shared libraries.
13792build_libtool_need_lc=$archive_cmds_need_lc
13793
13794# Whether or not to disallow shared libs when runtime libs are static.
13795allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13796
13797# Compiler flag to allow reflexive dlopens.
13798export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13799
13800# Compiler flag to generate shared objects directly from archives.
13801whole_archive_flag_spec=$lt_whole_archive_flag_spec
13802
13803# Whether the compiler copes with passing no objects directly.
13804compiler_needs_object=$lt_compiler_needs_object
13805
13806# Create an old-style archive from a shared archive.
13807old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13808
13809# Create a temporary old-style archive to link instead of a shared archive.
13810old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13811
13812# Commands used to build a shared archive.
13813archive_cmds=$lt_archive_cmds
13814archive_expsym_cmds=$lt_archive_expsym_cmds
13815
13816# Commands used to build a loadable module if different from building
13817# a shared archive.
13818module_cmds=$lt_module_cmds
13819module_expsym_cmds=$lt_module_expsym_cmds
13820
13821# Whether we are building with GNU ld or not.
13822with_gnu_ld=$lt_with_gnu_ld
13823
13824# Flag that allows shared libraries with undefined symbols to be built.
13825allow_undefined_flag=$lt_allow_undefined_flag
13826
13827# Flag that enforces no undefined symbols.
13828no_undefined_flag=$lt_no_undefined_flag
13829
13830# Flag to hardcode \$libdir into a binary during linking.
13831# This must work even if \$libdir does not exist
13832hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13833
13834# Whether we need a single "-rpath" flag with a separated argument.
13835hardcode_libdir_separator=$lt_hardcode_libdir_separator
13836
13837# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13838# DIR into the resulting binary.
13839hardcode_direct=$hardcode_direct
13840
13841# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13842# DIR into the resulting binary and the resulting library dependency is
13843# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13844# library is relocated.
13845hardcode_direct_absolute=$hardcode_direct_absolute
13846
13847# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13848# into the resulting binary.
13849hardcode_minus_L=$hardcode_minus_L
13850
13851# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13852# into the resulting binary.
13853hardcode_shlibpath_var=$hardcode_shlibpath_var
13854
13855# Set to "yes" if building a shared library automatically hardcodes DIR
13856# into the library and all subsequent libraries and executables linked
13857# against it.
13858hardcode_automatic=$hardcode_automatic
13859
13860# Set to yes if linker adds runtime paths of dependent libraries
13861# to runtime path list.
13862inherit_rpath=$inherit_rpath
13863
13864# Whether libtool must link a program against all its dependency libraries.
13865link_all_deplibs=$link_all_deplibs
13866
13867# Set to "yes" if exported symbols are required.
13868always_export_symbols=$always_export_symbols
13869
13870# The commands to list exported symbols.
13871export_symbols_cmds=$lt_export_symbols_cmds
13872
13873# Symbols that should not be listed in the preloaded symbols.
13874exclude_expsyms=$lt_exclude_expsyms
13875
13876# Symbols that must always be exported.
13877include_expsyms=$lt_include_expsyms
13878
13879# Commands necessary for linking programs (against libraries) with templates.
13880prelink_cmds=$lt_prelink_cmds
13881
13882# Commands necessary for finishing linking programs.
13883postlink_cmds=$lt_postlink_cmds
13884
13885# Specify filename containing input files.
13886file_list_spec=$lt_file_list_spec
13887
13888# How to hardcode a shared library path into an executable.
13889hardcode_action=$hardcode_action
13890
13891# ### END LIBTOOL CONFIG
13892
13893_LT_EOF
13894
13895  case $host_os in
13896  aix3*)
13897    cat <<\_LT_EOF >> "$cfgfile"
13898# AIX sometimes has problems with the GCC collect2 program.  For some
13899# reason, if we set the COLLECT_NAMES environment variable, the problems
13900# vanish in a puff of smoke.
13901if test "X${COLLECT_NAMES+set}" != Xset; then
13902  COLLECT_NAMES=
13903  export COLLECT_NAMES
13904fi
13905_LT_EOF
13906    ;;
13907  esac
13908
13909
13910ltmain="$ac_aux_dir/ltmain.sh"
13911
13912
13913  # We use sed instead of cat because bash on DJGPP gets confused if
13914  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13915  # text mode, it properly converts lines to CR/LF.  This bash problem
13916  # is reportedly fixed, but why not run on old versions too?
13917  sed '$q' "$ltmain" >> "$cfgfile" \
13918     || (rm -f "$cfgfile"; exit 1)
13919
13920  if test x"$xsi_shell" = xyes; then
13921  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13922func_dirname ()\
13923{\
13924\    case ${1} in\
13925\      */*) func_dirname_result="${1%/*}${2}" ;;\
13926\      *  ) func_dirname_result="${3}" ;;\
13927\    esac\
13928} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13929  && mv -f "$cfgfile.tmp" "$cfgfile" \
13930    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13931test 0 -eq $? || _lt_function_replace_fail=:
13932
13933
13934  sed -e '/^func_basename ()$/,/^} # func_basename /c\
13935func_basename ()\
13936{\
13937\    func_basename_result="${1##*/}"\
13938} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13939  && mv -f "$cfgfile.tmp" "$cfgfile" \
13940    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13941test 0 -eq $? || _lt_function_replace_fail=:
13942
13943
13944  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13945func_dirname_and_basename ()\
13946{\
13947\    case ${1} in\
13948\      */*) func_dirname_result="${1%/*}${2}" ;;\
13949\      *  ) func_dirname_result="${3}" ;;\
13950\    esac\
13951\    func_basename_result="${1##*/}"\
13952} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13953  && mv -f "$cfgfile.tmp" "$cfgfile" \
13954    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13955test 0 -eq $? || _lt_function_replace_fail=:
13956
13957
13958  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13959func_stripname ()\
13960{\
13961\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13962\    # positional parameters, so assign one to ordinary parameter first.\
13963\    func_stripname_result=${3}\
13964\    func_stripname_result=${func_stripname_result#"${1}"}\
13965\    func_stripname_result=${func_stripname_result%"${2}"}\
13966} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13967  && mv -f "$cfgfile.tmp" "$cfgfile" \
13968    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13969test 0 -eq $? || _lt_function_replace_fail=:
13970
13971
13972  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13973func_split_long_opt ()\
13974{\
13975\    func_split_long_opt_name=${1%%=*}\
13976\    func_split_long_opt_arg=${1#*=}\
13977} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13978  && mv -f "$cfgfile.tmp" "$cfgfile" \
13979    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13980test 0 -eq $? || _lt_function_replace_fail=:
13981
13982
13983  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13984func_split_short_opt ()\
13985{\
13986\    func_split_short_opt_arg=${1#??}\
13987\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13988} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13989  && mv -f "$cfgfile.tmp" "$cfgfile" \
13990    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13991test 0 -eq $? || _lt_function_replace_fail=:
13992
13993
13994  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13995func_lo2o ()\
13996{\
13997\    case ${1} in\
13998\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13999\      *)    func_lo2o_result=${1} ;;\
14000\    esac\
14001} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14002  && mv -f "$cfgfile.tmp" "$cfgfile" \
14003    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14004test 0 -eq $? || _lt_function_replace_fail=:
14005
14006
14007  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14008func_xform ()\
14009{\
14010    func_xform_result=${1%.*}.lo\
14011} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14012  && mv -f "$cfgfile.tmp" "$cfgfile" \
14013    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14014test 0 -eq $? || _lt_function_replace_fail=:
14015
14016
14017  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14018func_arith ()\
14019{\
14020    func_arith_result=$(( $* ))\
14021} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14022  && mv -f "$cfgfile.tmp" "$cfgfile" \
14023    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14024test 0 -eq $? || _lt_function_replace_fail=:
14025
14026
14027  sed -e '/^func_len ()$/,/^} # func_len /c\
14028func_len ()\
14029{\
14030    func_len_result=${#1}\
14031} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14032  && mv -f "$cfgfile.tmp" "$cfgfile" \
14033    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14034test 0 -eq $? || _lt_function_replace_fail=:
14035
14036fi
14037
14038if test x"$lt_shell_append" = xyes; then
14039  sed -e '/^func_append ()$/,/^} # func_append /c\
14040func_append ()\
14041{\
14042    eval "${1}+=\\${2}"\
14043} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14044  && mv -f "$cfgfile.tmp" "$cfgfile" \
14045    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14046test 0 -eq $? || _lt_function_replace_fail=:
14047
14048
14049  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14050func_append_quoted ()\
14051{\
14052\    func_quote_for_eval "${2}"\
14053\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14054} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14055  && mv -f "$cfgfile.tmp" "$cfgfile" \
14056    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14057test 0 -eq $? || _lt_function_replace_fail=:
14058
14059
14060  # Save a `func_append' function call where possible by direct use of '+='
14061  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14062    && mv -f "$cfgfile.tmp" "$cfgfile" \
14063      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14064  test 0 -eq $? || _lt_function_replace_fail=:
14065else
14066  # Save a `func_append' function call even when '+=' is not available
14067  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14068    && mv -f "$cfgfile.tmp" "$cfgfile" \
14069      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14070  test 0 -eq $? || _lt_function_replace_fail=:
14071fi
14072
14073if test x"$_lt_function_replace_fail" = x":"; then
14074  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14075$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14076fi
14077
14078
14079   mv -f "$cfgfile" "$ofile" ||
14080    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14081  chmod +x "$ofile"
14082
14083 ;;
14084
14085  esac
14086done # for ac_tag
14087
14088
14089as_fn_exit 0
14090_ACEOF
14091ac_clean_files=$ac_clean_files_save
14092
14093test $ac_write_fail = 0 ||
14094  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14095
14096
14097# configure is writing to config.log, and then calls config.status.
14098# config.status does its own redirection, appending to config.log.
14099# Unfortunately, on DOS this fails, as config.log is still kept open
14100# by configure, so config.status won't be able to write to it; its
14101# output is simply discarded.  So we exec the FD to /dev/null,
14102# effectively closing config.log, so it can be properly (re)opened and
14103# appended to by config.status.  When coming back to configure, we
14104# need to make the FD available again.
14105if test "$no_create" != yes; then
14106  ac_cs_success=:
14107  ac_config_status_args=
14108  test "$silent" = yes &&
14109    ac_config_status_args="$ac_config_status_args --quiet"
14110  exec 5>/dev/null
14111  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14112  exec 5>>config.log
14113  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14114  # would make configure fail if this is the last instruction.
14115  $ac_cs_success || as_fn_exit 1
14116fi
14117if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14118  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14119$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14120fi
14121
14122