1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for fakeroot 1.23.
4#
5# Report bugs to <clint@debian.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1
197echo \$(echo ok) > config.\$\$ 2>/dev/null
198		      j=\`cat config.\$\$\`
199		      test \"x\$j\" = \"xok\" || exit 1"
200  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
201  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
202  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
203  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
204
205  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
206    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
209    PATH=/empty FPATH=/empty; export PATH FPATH
210    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
211      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
212test \$(( 1 + 1 )) = 2 || exit 1"
213  if (eval "$as_required") 2>/dev/null; then :
214  as_have_required=yes
215else
216  as_have_required=no
217fi
218  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219
220else
221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222as_found=false
223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224do
225  IFS=$as_save_IFS
226  test -z "$as_dir" && as_dir=.
227  as_found=:
228  case $as_dir in #(
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     # Try only shells that exist, to save several forks.
232	     as_shell=$as_dir/$as_base
233	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
234		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  CONFIG_SHELL=$as_shell as_have_required=yes
236		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
237  break 2
238fi
239fi
240	   done;;
241       esac
242  as_found=false
243done
244$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
245	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
246  CONFIG_SHELL=$SHELL as_have_required=yes
247fi; }
248IFS=$as_save_IFS
249
250
251      if test "x$CONFIG_SHELL" != x; then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed `exec'.
269$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno; then :
274  $as_echo "$0: This script requires a shell more modern than all"
275  $as_echo "$0: the shells that I found on your system."
276  if test x${ZSH_VERSION+set} = xset ; then
277    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
278    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
279  else
280    $as_echo "$0: Please tell bug-autoconf@gnu.org and clint@debian.org
281$0: about your system, including any error possibly output
282$0: before this message. Then install a modern shell, or
283$0: manually run the script under such a shell if you do
284$0: have one."
285  fi
286  exit 1
287fi
288fi
289fi
290SHELL=${CONFIG_SHELL-/bin/sh}
291export SHELL
292# Unset more variables known to interfere with behavior of common tools.
293CLICOLOR_FORCE= GREP_OPTIONS=
294unset CLICOLOR_FORCE GREP_OPTIONS
295
296## --------------------- ##
297## M4sh Shell Functions. ##
298## --------------------- ##
299# as_fn_unset VAR
300# ---------------
301# Portably unset VAR.
302as_fn_unset ()
303{
304  { eval $1=; unset $1;}
305}
306as_unset=as_fn_unset
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348$as_echo X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
388  eval 'as_fn_append ()
389  {
390    eval $1+=\$2
391  }'
392else
393  as_fn_append ()
394  {
395    eval $1=\$$1\$2
396  }
397fi # as_fn_append
398
399# as_fn_arith ARG...
400# ------------------
401# Perform arithmetic evaluation on the ARGs, and store the result in the
402# global $as_val. Take advantage of shells that can avoid forks. The arguments
403# must be portable across $(()) and expr.
404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
405  eval 'as_fn_arith ()
406  {
407    as_val=$(( $* ))
408  }'
409else
410  as_fn_arith ()
411  {
412    as_val=`expr "$@" || test $? -eq 1`
413  }
414fi # as_fn_arith
415
416
417# as_fn_error STATUS ERROR [LINENO LOG_FD]
418# ----------------------------------------
419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421# script with STATUS, using 1 if that was 0.
422as_fn_error ()
423{
424  as_status=$1; test $as_status -eq 0 && as_status=1
425  if test "$4"; then
426    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428  fi
429  $as_echo "$as_me: error: $2" >&2
430  as_fn_exit $as_status
431} # as_fn_error
432
433if expr a : '\(a\)' >/dev/null 2>&1 &&
434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
435  as_expr=expr
436else
437  as_expr=false
438fi
439
440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441  as_basename=basename
442else
443  as_basename=false
444fi
445
446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447  as_dirname=dirname
448else
449  as_dirname=false
450fi
451
452as_me=`$as_basename -- "$0" ||
453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454	 X"$0" : 'X\(//\)$' \| \
455	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456$as_echo X/"$0" |
457    sed '/^.*\/\([^/][^/]*\)\/*$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\/\)$/{
462	    s//\1/
463	    q
464	  }
465	  /^X\/\(\/\).*/{
466	    s//\1/
467	    q
468	  }
469	  s/.*/./; q'`
470
471# Avoid depending upon Character Ranges.
472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475as_cr_digits='0123456789'
476as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484  sed -n '
485    p
486    /[$]LINENO/=
487  ' <$as_myself |
488    sed '
489      s/[$]LINENO.*/&-/
490      t lineno
491      b
492      :lineno
493      N
494      :loop
495      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496      t loop
497      s/-\n.*//
498    ' >$as_me.lineno &&
499  chmod +x "$as_me.lineno" ||
500    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
501
502  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503  # already done that, so ensure we don't try to do so again and fall
504  # in an infinite loop.  This has already happened in practice.
505  _as_can_reexec=no; export _as_can_reexec
506  # Don't try to exec as it changes $[0], causing all sort of problems
507  # (the dirname of $[0] is not the place where we might find the
508  # original and so on.  Autoconf is especially sensitive to this).
509  . "./$as_me.lineno"
510  # Exit status is that of the last command.
511  exit
512}
513
514ECHO_C= ECHO_N= ECHO_T=
515case `echo -n x` in #(((((
516-n*)
517  case `echo 'xy\c'` in
518  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
519  xy)  ECHO_C='\c';;
520  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
521       ECHO_T='	';;
522  esac;;
523*)
524  ECHO_N='-n';;
525esac
526
527rm -f conf$$ conf$$.exe conf$$.file
528if test -d conf$$.dir; then
529  rm -f conf$$.dir/conf$$.file
530else
531  rm -f conf$$.dir
532  mkdir conf$$.dir 2>/dev/null
533fi
534if (echo >conf$$.file) 2>/dev/null; then
535  if ln -s conf$$.file conf$$ 2>/dev/null; then
536    as_ln_s='ln -s'
537    # ... but there are two gotchas:
538    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
539    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
540    # In both cases, we have to default to `cp -pR'.
541    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
542      as_ln_s='cp -pR'
543  elif ln conf$$.file conf$$ 2>/dev/null; then
544    as_ln_s=ln
545  else
546    as_ln_s='cp -pR'
547  fi
548else
549  as_ln_s='cp -pR'
550fi
551rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
552rmdir conf$$.dir 2>/dev/null
553
554if mkdir -p . 2>/dev/null; then
555  as_mkdir_p='mkdir -p "$as_dir"'
556else
557  test -d ./-p && rmdir ./-p
558  as_mkdir_p=false
559fi
560
561as_test_x='test -x'
562as_executable_p=as_fn_executable_p
563
564# Sed expression to map a string onto a valid CPP name.
565as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
566
567# Sed expression to map a string onto a valid variable name.
568as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
569
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572
573test -n "$DJDIR" || exec 7<&0 </dev/null
574exec 6>&1
575
576# Name of the host.
577# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
585ac_clean_files=
586ac_config_libobj_dir=.
587LIBOBJS=
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592
593# Identity of this package.
594PACKAGE_NAME='fakeroot'
595PACKAGE_TARNAME='fakeroot'
596PACKAGE_VERSION='1.23'
597PACKAGE_STRING='fakeroot 1.23'
598PACKAGE_BUGREPORT='clint@debian.org'
599PACKAGE_URL=''
600
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615#  include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620#  include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640MACOSX_FALSE
641MACOSX_TRUE
642LIBOBJS
643LDEXTRAVAR
644LDPRELOADABS
645LDPRELOADVAR
646LDLIBPATHVAR
647DLSUFFIX
648signal
649CPP
650LT_SYS_LIBRARY_PATH
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656MANIFEST_TOOL
657RANLIB
658ac_ct_AR
659AR
660DLLTOOL
661OBJDUMP
662LN_S
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668EGREP
669GREP
670SED
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674am__nodep
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
688LIBTOOL
689MAINT
690MAINTAINER_MODE_FALSE
691MAINTAINER_MODE_TRUE
692AM_BACKSLASH
693AM_DEFAULT_VERBOSITY
694AM_DEFAULT_V
695AM_V
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_os
720target_vendor
721target_cpu
722target
723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750runstatedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_silent_rules
774enable_maintainer_mode
775enable_shared
776enable_static
777with_pic
778enable_fast_install
779with_aix_soname
780enable_dependency_tracking
781with_gnu_ld
782with_sysroot
783enable_libtool_lock
784with_ipc
785with_dbformat
786'
787      ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795LT_SYS_LIBRARY_PATH
796CPP'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835runstatedir='${localstatedir}/run'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  # Accept the important Cygnus configure options, so we can diagnose typos.
866
867  case $ac_dashdash$ac_option in
868  --)
869    ac_dashdash=yes ;;
870
871  -bindir | --bindir | --bindi | --bind | --bin | --bi)
872    ac_prev=bindir ;;
873  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874    bindir=$ac_optarg ;;
875
876  -build | --build | --buil | --bui | --bu)
877    ac_prev=build_alias ;;
878  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879    build_alias=$ac_optarg ;;
880
881  -cache-file | --cache-file | --cache-fil | --cache-fi \
882  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883    ac_prev=cache_file ;;
884  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886    cache_file=$ac_optarg ;;
887
888  --config-cache | -C)
889    cache_file=config.cache ;;
890
891  -datadir | --datadir | --datadi | --datad)
892    ac_prev=datadir ;;
893  -datadir=* | --datadir=* | --datadi=* | --datad=*)
894    datadir=$ac_optarg ;;
895
896  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897  | --dataroo | --dataro | --datar)
898    ac_prev=datarootdir ;;
899  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901    datarootdir=$ac_optarg ;;
902
903  -disable-* | --disable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error $? "invalid feature name: $ac_useropt"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=no ;;
918
919  -docdir | --docdir | --docdi | --doc | --do)
920    ac_prev=docdir ;;
921  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922    docdir=$ac_optarg ;;
923
924  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925    ac_prev=dvidir ;;
926  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927    dvidir=$ac_optarg ;;
928
929  -enable-* | --enable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: $ac_useropt"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=\$ac_optarg ;;
944
945  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947  | --exec | --exe | --ex)
948    ac_prev=exec_prefix ;;
949  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951  | --exec=* | --exe=* | --ex=*)
952    exec_prefix=$ac_optarg ;;
953
954  -gas | --gas | --ga | --g)
955    # Obsolete; use --with-gas.
956    with_gas=yes ;;
957
958  -help | --help | --hel | --he | -h)
959    ac_init_help=long ;;
960  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961    ac_init_help=recursive ;;
962  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963    ac_init_help=short ;;
964
965  -host | --host | --hos | --ho)
966    ac_prev=host_alias ;;
967  -host=* | --host=* | --hos=* | --ho=*)
968    host_alias=$ac_optarg ;;
969
970  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971    ac_prev=htmldir ;;
972  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973  | --ht=*)
974    htmldir=$ac_optarg ;;
975
976  -includedir | --includedir | --includedi | --included | --include \
977  | --includ | --inclu | --incl | --inc)
978    ac_prev=includedir ;;
979  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980  | --includ=* | --inclu=* | --incl=* | --inc=*)
981    includedir=$ac_optarg ;;
982
983  -infodir | --infodir | --infodi | --infod | --info | --inf)
984    ac_prev=infodir ;;
985  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986    infodir=$ac_optarg ;;
987
988  -libdir | --libdir | --libdi | --libd)
989    ac_prev=libdir ;;
990  -libdir=* | --libdir=* | --libdi=* | --libd=*)
991    libdir=$ac_optarg ;;
992
993  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994  | --libexe | --libex | --libe)
995    ac_prev=libexecdir ;;
996  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997  | --libexe=* | --libex=* | --libe=*)
998    libexecdir=$ac_optarg ;;
999
1000  -localedir | --localedir | --localedi | --localed | --locale)
1001    ac_prev=localedir ;;
1002  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003    localedir=$ac_optarg ;;
1004
1005  -localstatedir | --localstatedir | --localstatedi | --localstated \
1006  | --localstate | --localstat | --localsta | --localst | --locals)
1007    ac_prev=localstatedir ;;
1008  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010    localstatedir=$ac_optarg ;;
1011
1012  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013    ac_prev=mandir ;;
1014  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015    mandir=$ac_optarg ;;
1016
1017  -nfp | --nfp | --nf)
1018    # Obsolete; use --without-fp.
1019    with_fp=no ;;
1020
1021  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022  | --no-cr | --no-c | -n)
1023    no_create=yes ;;
1024
1025  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027    no_recursion=yes ;;
1028
1029  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031  | --oldin | --oldi | --old | --ol | --o)
1032    ac_prev=oldincludedir ;;
1033  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036    oldincludedir=$ac_optarg ;;
1037
1038  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039    ac_prev=prefix ;;
1040  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041    prefix=$ac_optarg ;;
1042
1043  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044  | --program-pre | --program-pr | --program-p)
1045    ac_prev=program_prefix ;;
1046  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048    program_prefix=$ac_optarg ;;
1049
1050  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051  | --program-suf | --program-su | --program-s)
1052    ac_prev=program_suffix ;;
1053  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055    program_suffix=$ac_optarg ;;
1056
1057  -program-transform-name | --program-transform-name \
1058  | --program-transform-nam | --program-transform-na \
1059  | --program-transform-n | --program-transform- \
1060  | --program-transform | --program-transfor \
1061  | --program-transfo | --program-transf \
1062  | --program-trans | --program-tran \
1063  | --progr-tra | --program-tr | --program-t)
1064    ac_prev=program_transform_name ;;
1065  -program-transform-name=* | --program-transform-name=* \
1066  | --program-transform-nam=* | --program-transform-na=* \
1067  | --program-transform-n=* | --program-transform-=* \
1068  | --program-transform=* | --program-transfor=* \
1069  | --program-transfo=* | --program-transf=* \
1070  | --program-trans=* | --program-tran=* \
1071  | --progr-tra=* | --program-tr=* | --program-t=*)
1072    program_transform_name=$ac_optarg ;;
1073
1074  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075    ac_prev=pdfdir ;;
1076  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077    pdfdir=$ac_optarg ;;
1078
1079  -psdir | --psdir | --psdi | --psd | --ps)
1080    ac_prev=psdir ;;
1081  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082    psdir=$ac_optarg ;;
1083
1084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085  | -silent | --silent | --silen | --sile | --sil)
1086    silent=yes ;;
1087
1088  -runstatedir | --runstatedir | --runstatedi | --runstated \
1089  | --runstate | --runstat | --runsta | --runst | --runs \
1090  | --run | --ru | --r)
1091    ac_prev=runstatedir ;;
1092  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094  | --run=* | --ru=* | --r=*)
1095    runstatedir=$ac_optarg ;;
1096
1097  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098    ac_prev=sbindir ;;
1099  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100  | --sbi=* | --sb=*)
1101    sbindir=$ac_optarg ;;
1102
1103  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105  | --sharedst | --shareds | --shared | --share | --shar \
1106  | --sha | --sh)
1107    ac_prev=sharedstatedir ;;
1108  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111  | --sha=* | --sh=*)
1112    sharedstatedir=$ac_optarg ;;
1113
1114  -site | --site | --sit)
1115    ac_prev=site ;;
1116  -site=* | --site=* | --sit=*)
1117    site=$ac_optarg ;;
1118
1119  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120    ac_prev=srcdir ;;
1121  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122    srcdir=$ac_optarg ;;
1123
1124  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125  | --syscon | --sysco | --sysc | --sys | --sy)
1126    ac_prev=sysconfdir ;;
1127  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129    sysconfdir=$ac_optarg ;;
1130
1131  -target | --target | --targe | --targ | --tar | --ta | --t)
1132    ac_prev=target_alias ;;
1133  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134    target_alias=$ac_optarg ;;
1135
1136  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137    verbose=yes ;;
1138
1139  -version | --version | --versio | --versi | --vers | -V)
1140    ac_init_version=: ;;
1141
1142  -with-* | --with-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=no ;;
1173
1174  --x)
1175    # Obsolete; use --with-x.
1176    with_x=yes ;;
1177
1178  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179  | --x-incl | --x-inc | --x-in | --x-i)
1180    ac_prev=x_includes ;;
1181  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183    x_includes=$ac_optarg ;;
1184
1185  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187    ac_prev=x_libraries ;;
1188  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190    x_libraries=$ac_optarg ;;
1191
1192  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information"
1194    ;;
1195
1196  *=*)
1197    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198    # Reject names that are not valid shell variable names.
1199    case $ac_envvar in #(
1200      '' | [0-9]* | *[!_$as_cr_alnum]* )
1201      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202    esac
1203    eval $ac_envvar=\$ac_optarg
1204    export $ac_envvar ;;
1205
1206  *)
1207    # FIXME: should be removed in autoconf 3.0.
1208    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212    ;;
1213
1214  esac
1215done
1216
1217if test -n "$ac_prev"; then
1218  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219  as_fn_error $? "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223  case $enable_option_checking in
1224    no) ;;
1225    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227  esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232		datadir sysconfdir sharedstatedir localstatedir includedir \
1233		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234		libdir localedir mandir runstatedir
1235do
1236  eval ac_val=\$$ac_var
1237  # Remove trailing slashes.
1238  case $ac_val in
1239    */ )
1240      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241      eval $ac_var=\$ac_val;;
1242  esac
1243  # Be sure to have absolute directory names.
1244  case $ac_val in
1245    [\\/$]* | ?:[\\/]* )  continue;;
1246    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247  esac
1248  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260  if test "x$build_alias" = x; then
1261    cross_compiling=maybe
1262  elif test "x$build_alias" != "x$host_alias"; then
1263    cross_compiling=yes
1264  fi
1265fi
1266
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
1271
1272
1273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276  as_fn_error $? "working directory cannot be determined"
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278  as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283  ac_srcdir_defaulted=yes
1284  # Try the directory containing this script, then the parent directory.
1285  ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287	 X"$as_myself" : 'X\(//\)[^/]' \| \
1288	 X"$as_myself" : 'X\(//\)$' \| \
1289	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290$as_echo X"$as_myself" |
1291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)[^/].*/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\).*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  s/.*/./; q'`
1308  srcdir=$ac_confdir
1309  if test ! -r "$srcdir/$ac_unique_file"; then
1310    srcdir=..
1311  fi
1312else
1313  ac_srcdir_defaulted=no
1314fi
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318fi
1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`(
1321	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322	pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325  srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_env_${ac_var}_value=\$${ac_var}
1336  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
1339
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344  # Omit some internal or obsolete options to make the list less imposing.
1345  # This message is too long to be a string in the A/UX 3.1 sh.
1346  cat <<_ACEOF
1347\`configure' configures fakeroot 1.23 to adapt to many kinds of systems.
1348
1349Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354Defaults for the options are specified in brackets.
1355
1356Configuration:
1357  -h, --help              display this help and exit
1358      --help=short        display options specific to this package
1359      --help=recursive    display the short help of all the included packages
1360  -V, --version           display version information and exit
1361  -q, --quiet, --silent   do not print \`checking ...' messages
1362      --cache-file=FILE   cache test results in FILE [disabled]
1363  -C, --config-cache      alias for \`--cache-file=config.cache'
1364  -n, --no-create         do not create output files
1365      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1366
1367Installation directories:
1368  --prefix=PREFIX         install architecture-independent files in PREFIX
1369                          [$ac_default_prefix]
1370  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                          [PREFIX]
1372
1373By default, \`make install' will install all the files in
1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1375an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376for instance \`--prefix=\$HOME'.
1377
1378For better control, use the options below.
1379
1380Fine tuning of the installation directories:
1381  --bindir=DIR            user executables [EPREFIX/bin]
1382  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383  --libexecdir=DIR        program executables [EPREFIX/libexec]
1384  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1388  --libdir=DIR            object code libraries [EPREFIX/lib]
1389  --includedir=DIR        C header files [PREFIX/include]
1390  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393  --infodir=DIR           info documentation [DATAROOTDIR/info]
1394  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395  --mandir=DIR            man documentation [DATAROOTDIR/man]
1396  --docdir=DIR            documentation root [DATAROOTDIR/doc/fakeroot]
1397  --htmldir=DIR           html documentation [DOCDIR]
1398  --dvidir=DIR            dvi documentation [DOCDIR]
1399  --pdfdir=DIR            pdf documentation [DOCDIR]
1400  --psdir=DIR             ps documentation [DOCDIR]
1401_ACEOF
1402
1403  cat <<\_ACEOF
1404
1405Program names:
1406  --program-prefix=PREFIX            prepend PREFIX to installed program names
1407  --program-suffix=SUFFIX            append SUFFIX to installed program names
1408  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410System types:
1411  --build=BUILD     configure for building on BUILD [guessed]
1412  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413  --target=TARGET   configure for building compilers for TARGET [HOST]
1414_ACEOF
1415fi
1416
1417if test -n "$ac_init_help"; then
1418  case $ac_init_help in
1419     short | recursive ) echo "Configuration of fakeroot 1.23:";;
1420   esac
1421  cat <<\_ACEOF
1422
1423Optional Features:
1424  --disable-option-checking  ignore unrecognized --enable/--with options
1425  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1426  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1427  --enable-silent-rules   less verbose build output (undo: "make V=1")
1428  --disable-silent-rules  verbose build output (undo: "make V=0")
1429  --enable-maintainer-mode
1430                          enable make rules and dependencies not useful (and
1431                          sometimes confusing) to the casual installer
1432  --enable-shared[=PKGS]  build shared libraries [default=yes]
1433  --enable-static[=PKGS]  build static libraries [default=yes]
1434  --enable-fast-install[=PKGS]
1435                          optimize for fast installation [default=yes]
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --disable-libtool-lock  avoid locking (might break parallel builds)
1441
1442Optional Packages:
1443  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1446                          both]
1447  --with-aix-soname=aix|svr4|both
1448                          shared library versioning (aka "SONAME") variant to
1449                          provide on AIX, [default=aix].
1450  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1451  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1452                          compiler's sysroot if not specified).
1453  --with-ipc[=IPCTYPE]    method of IPC to use: either sysv (default) or tcp
1454  --with-dbformat[=DBFORMAT]
1455                          database format to use: either inode (default) or
1456                          path
1457
1458Some influential environment variables:
1459  CC          C compiler command
1460  CFLAGS      C compiler flags
1461  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462              nonstandard directory <lib dir>
1463  LIBS        libraries to pass to the linker, e.g. -l<library>
1464  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465              you have headers in a nonstandard directory <include dir>
1466  LT_SYS_LIBRARY_PATH
1467              User-defined run-time library search path.
1468  CPP         C preprocessor
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <clint@debian.org>.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479  # If there are subdirs, report their specific --help.
1480  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481    test -d "$ac_dir" ||
1482      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483      continue
1484    ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490  # A ".." for each directory in $ac_dir_suffix.
1491  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492  case $ac_top_builddir_sub in
1493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495  esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503  .)  # We are building in place.
1504    ac_srcdir=.
1505    ac_top_srcdir=$ac_top_builddir_sub
1506    ac_abs_top_srcdir=$ac_pwd ;;
1507  [\\/]* | ?:[\\/]* )  # Absolute name.
1508    ac_srcdir=$srcdir$ac_dir_suffix;
1509    ac_top_srcdir=$srcdir
1510    ac_abs_top_srcdir=$srcdir ;;
1511  *) # Relative name.
1512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513    ac_top_srcdir=$ac_top_build_prefix$srcdir
1514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518    cd "$ac_dir" || { ac_status=$?; continue; }
1519    # Check for guested configure.
1520    if test -f "$ac_srcdir/configure.gnu"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523    elif test -f "$ac_srcdir/configure"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure" --help=recursive
1526    else
1527      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528    fi || ac_status=$?
1529    cd "$ac_pwd" || { ac_status=$?; break; }
1530  done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535  cat <<\_ACEOF
1536fakeroot configure 1.23
1537generated by GNU Autoconf 2.69
1538
1539Copyright (C) 2012 Free Software Foundation, Inc.
1540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
1543  exit
1544fi
1545
1546## ------------------------ ##
1547## Autoconf initialization. ##
1548## ------------------------ ##
1549
1550# ac_fn_c_try_compile LINENO
1551# --------------------------
1552# Try to compile conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_compile ()
1554{
1555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556  rm -f conftest.$ac_objext
1557  if { { ac_try="$ac_compile"
1558case "(($ac_try" in
1559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560  *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564  (eval "$ac_compile") 2>conftest.err
1565  ac_status=$?
1566  if test -s conftest.err; then
1567    grep -v '^ *+' conftest.err >conftest.er1
1568    cat conftest.er1 >&5
1569    mv -f conftest.er1 conftest.err
1570  fi
1571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572  test $ac_status = 0; } && {
1573	 test -z "$ac_c_werror_flag" ||
1574	 test ! -s conftest.err
1575       } && test -s conftest.$ac_objext; then :
1576  ac_retval=0
1577else
1578  $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581	ac_retval=1
1582fi
1583  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584  as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_compile
1587
1588# ac_fn_c_try_link LINENO
1589# -----------------------
1590# Try to link conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_link ()
1592{
1593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594  rm -f conftest.$ac_objext conftest$ac_exeext
1595  if { { ac_try="$ac_link"
1596case "(($ac_try" in
1597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598  *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602  (eval "$ac_link") 2>conftest.err
1603  ac_status=$?
1604  if test -s conftest.err; then
1605    grep -v '^ *+' conftest.err >conftest.er1
1606    cat conftest.er1 >&5
1607    mv -f conftest.er1 conftest.err
1608  fi
1609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610  test $ac_status = 0; } && {
1611	 test -z "$ac_c_werror_flag" ||
1612	 test ! -s conftest.err
1613       } && test -s conftest$ac_exeext && {
1614	 test "$cross_compiling" = yes ||
1615	 test -x conftest$ac_exeext
1616       }; then :
1617  ac_retval=0
1618else
1619  $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622	ac_retval=1
1623fi
1624  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626  # interfere with the next link command; also delete a directory that is
1627  # left behind by Apple's compiler.  We do this before executing the actions.
1628  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630  as_fn_set_status $ac_retval
1631
1632} # ac_fn_c_try_link
1633
1634# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635# -------------------------------------------------------
1636# Tests whether HEADER exists and can be compiled using the include files in
1637# INCLUDES, setting the cache variable VAR accordingly.
1638ac_fn_c_check_header_compile ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if eval \${$3+:} false; then :
1644  $as_echo_n "(cached) " >&6
1645else
1646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h.  */
1648$4
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_compile "$LINENO"; then :
1652  eval "$3=yes"
1653else
1654  eval "$3=no"
1655fi
1656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657fi
1658eval ac_res=\$$3
1659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663} # ac_fn_c_check_header_compile
1664
1665# ac_fn_c_try_cpp LINENO
1666# ----------------------
1667# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_cpp ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  if { { ac_try="$ac_cpp conftest.$ac_ext"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679  ac_status=$?
1680  if test -s conftest.err; then
1681    grep -v '^ *+' conftest.err >conftest.er1
1682    cat conftest.er1 >&5
1683    mv -f conftest.er1 conftest.err
1684  fi
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; } > conftest.i && {
1687	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688	 test ! -s conftest.err
1689       }; then :
1690  ac_retval=0
1691else
1692  $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695    ac_retval=1
1696fi
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698  as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_cpp
1701
1702# ac_fn_c_try_run LINENO
1703# ----------------------
1704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705# that executables *can* be run.
1706ac_fn_c_try_run ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  if { { ac_try="$ac_link"
1710case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_link") 2>&5
1717  ac_status=$?
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720  { { case "(($ac_try" in
1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722  *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726  (eval "$ac_try") 2>&5
1727  ac_status=$?
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; }; }; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: program exited with status $ac_status" >&5
1733       $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736       ac_retval=$ac_status
1737fi
1738  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_run
1743
1744# ac_fn_c_check_func LINENO FUNC VAR
1745# ----------------------------------
1746# Tests whether FUNC exists, setting the cache variable VAR accordingly
1747ac_fn_c_check_func ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1759#define $2 innocuous_$2
1760
1761/* System header to define __stub macros and hopefully few prototypes,
1762    which can conflict with char $2 (); below.
1763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764    <limits.h> exists even on freestanding compilers.  */
1765
1766#ifdef __STDC__
1767# include <limits.h>
1768#else
1769# include <assert.h>
1770#endif
1771
1772#undef $2
1773
1774/* Override any GCC internal prototype to avoid an error.
1775   Use char because int might match the return type of a GCC
1776   builtin and then its argument prototype would still apply.  */
1777#ifdef __cplusplus
1778extern "C"
1779#endif
1780char $2 ();
1781/* The GNU C library defines this for functions which it implements
1782    to always fail with ENOSYS.  Some functions are actually named
1783    something starting with __ and the normal name is an alias.  */
1784#if defined __stub_$2 || defined __stub___$2
1785choke me
1786#endif
1787
1788int
1789main ()
1790{
1791return $2 ();
1792  ;
1793  return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_link "$LINENO"; then :
1797  eval "$3=yes"
1798else
1799  eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext \
1802    conftest$ac_exeext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_func
1810
1811# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1812# -------------------------------------------------------
1813# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1814# the include files in INCLUDES and setting the cache variable VAR
1815# accordingly.
1816ac_fn_c_check_header_mongrel ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  if eval \${$3+:} false; then :
1820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval \${$3+:} false; then :
1823  $as_echo_n "(cached) " >&6
1824fi
1825eval ac_res=\$$3
1826	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828else
1829  # Is the header compilable?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1831$as_echo_n "checking $2 usability... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834$4
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838  ac_header_compiler=yes
1839else
1840  ac_header_compiler=no
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1844$as_echo "$ac_header_compiler" >&6; }
1845
1846# Is the header present?
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1848$as_echo_n "checking $2 presence... " >&6; }
1849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851#include <$2>
1852_ACEOF
1853if ac_fn_c_try_cpp "$LINENO"; then :
1854  ac_header_preproc=yes
1855else
1856  ac_header_preproc=no
1857fi
1858rm -f conftest.err conftest.i conftest.$ac_ext
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1860$as_echo "$ac_header_preproc" >&6; }
1861
1862# So?  What about this header?
1863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864  yes:no: )
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1866$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869    ;;
1870  no:yes:* )
1871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1872$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1874$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1875    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1876$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1878$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881( $as_echo "## ------------------------------- ##
1882## Report this to clint@debian.org ##
1883## ------------------------------- ##"
1884     ) | sed "s/^/$as_me: WARNING:     /" >&2
1885    ;;
1886esac
1887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if eval \${$3+:} false; then :
1890  $as_echo_n "(cached) " >&6
1891else
1892  eval "$3=\$ac_header_compiler"
1893fi
1894eval ac_res=\$$3
1895	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897fi
1898  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_header_mongrel
1901
1902# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1903# -------------------------------------------
1904# Tests whether TYPE exists after having included INCLUDES, setting cache
1905# variable VAR accordingly.
1906ac_fn_c_check_type ()
1907{
1908  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910$as_echo_n "checking for $2... " >&6; }
1911if eval \${$3+:} false; then :
1912  $as_echo_n "(cached) " >&6
1913else
1914  eval "$3=no"
1915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917$4
1918int
1919main ()
1920{
1921if (sizeof ($2))
1922	 return 0;
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"; then :
1928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h.  */
1930$4
1931int
1932main ()
1933{
1934if (sizeof (($2)))
1935	    return 0;
1936  ;
1937  return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941
1942else
1943  eval "$3=yes"
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949eval ac_res=\$$3
1950	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954} # ac_fn_c_check_type
1955
1956# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1957# ---------------------------------------------
1958# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1959# accordingly.
1960ac_fn_c_check_decl ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  as_decl_name=`echo $2|sed 's/ *(.*//'`
1964  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1966$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h.  */
1972$4
1973int
1974main ()
1975{
1976#ifndef $as_decl_name
1977#ifdef __cplusplus
1978  (void) $as_decl_use;
1979#else
1980  (void) $as_decl_name;
1981#endif
1982#endif
1983
1984  ;
1985  return 0;
1986}
1987_ACEOF
1988if ac_fn_c_try_compile "$LINENO"; then :
1989  eval "$3=yes"
1990else
1991  eval "$3=no"
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994fi
1995eval ac_res=\$$3
1996	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_decl
2001cat >config.log <<_ACEOF
2002This file contains any messages produced by compilers while
2003running configure, to aid debugging if configure makes a mistake.
2004
2005It was created by fakeroot $as_me 1.23, which was
2006generated by GNU Autoconf 2.69.  Invocation command line was
2007
2008  $ $0 $@
2009
2010_ACEOF
2011exec 5>>config.log
2012{
2013cat <<_ASUNAME
2014## --------- ##
2015## Platform. ##
2016## --------- ##
2017
2018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2019uname -m = `(uname -m) 2>/dev/null || echo unknown`
2020uname -r = `(uname -r) 2>/dev/null || echo unknown`
2021uname -s = `(uname -s) 2>/dev/null || echo unknown`
2022uname -v = `(uname -v) 2>/dev/null || echo unknown`
2023
2024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2025/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2026
2027/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2028/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2030/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2031/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2032/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2033/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2034
2035_ASUNAME
2036
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040  IFS=$as_save_IFS
2041  test -z "$as_dir" && as_dir=.
2042    $as_echo "PATH: $as_dir"
2043  done
2044IFS=$as_save_IFS
2045
2046} >&5
2047
2048cat >&5 <<_ACEOF
2049
2050
2051## ----------- ##
2052## Core tests. ##
2053## ----------- ##
2054
2055_ACEOF
2056
2057
2058# Keep a trace of the command line.
2059# Strip out --no-create and --no-recursion so they do not pile up.
2060# Strip out --silent because we don't want to record it for future runs.
2061# Also quote any args containing shell meta-characters.
2062# Make two passes to allow for proper duplicate-argument suppression.
2063ac_configure_args=
2064ac_configure_args0=
2065ac_configure_args1=
2066ac_must_keep_next=false
2067for ac_pass in 1 2
2068do
2069  for ac_arg
2070  do
2071    case $ac_arg in
2072    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2073    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2074    | -silent | --silent | --silen | --sile | --sil)
2075      continue ;;
2076    *\'*)
2077      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2078    esac
2079    case $ac_pass in
2080    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2081    2)
2082      as_fn_append ac_configure_args1 " '$ac_arg'"
2083      if test $ac_must_keep_next = true; then
2084	ac_must_keep_next=false # Got value, back to normal.
2085      else
2086	case $ac_arg in
2087	  *=* | --config-cache | -C | -disable-* | --disable-* \
2088	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2089	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2090	  | -with-* | --with-* | -without-* | --without-* | --x)
2091	    case "$ac_configure_args0 " in
2092	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2093	    esac
2094	    ;;
2095	  -* ) ac_must_keep_next=true ;;
2096	esac
2097      fi
2098      as_fn_append ac_configure_args " '$ac_arg'"
2099      ;;
2100    esac
2101  done
2102done
2103{ ac_configure_args0=; unset ac_configure_args0;}
2104{ ac_configure_args1=; unset ac_configure_args1;}
2105
2106# When interrupted or exit'd, cleanup temporary files, and complete
2107# config.log.  We remove comments because anyway the quotes in there
2108# would cause problems or look ugly.
2109# WARNING: Use '\'' to represent an apostrophe within the trap.
2110# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2111trap 'exit_status=$?
2112  # Save into config.log some information that might help in debugging.
2113  {
2114    echo
2115
2116    $as_echo "## ---------------- ##
2117## Cache variables. ##
2118## ---------------- ##"
2119    echo
2120    # The following way of writing the cache mishandles newlines in values,
2121(
2122  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2123    eval ac_val=\$$ac_var
2124    case $ac_val in #(
2125    *${as_nl}*)
2126      case $ac_var in #(
2127      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2128$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2129      esac
2130      case $ac_var in #(
2131      _ | IFS | as_nl) ;; #(
2132      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2133      *) { eval $ac_var=; unset $ac_var;} ;;
2134      esac ;;
2135    esac
2136  done
2137  (set) 2>&1 |
2138    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2139    *${as_nl}ac_space=\ *)
2140      sed -n \
2141	"s/'\''/'\''\\\\'\'''\''/g;
2142	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2143      ;; #(
2144    *)
2145      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2146      ;;
2147    esac |
2148    sort
2149)
2150    echo
2151
2152    $as_echo "## ----------------- ##
2153## Output variables. ##
2154## ----------------- ##"
2155    echo
2156    for ac_var in $ac_subst_vars
2157    do
2158      eval ac_val=\$$ac_var
2159      case $ac_val in
2160      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161      esac
2162      $as_echo "$ac_var='\''$ac_val'\''"
2163    done | sort
2164    echo
2165
2166    if test -n "$ac_subst_files"; then
2167      $as_echo "## ------------------- ##
2168## File substitutions. ##
2169## ------------------- ##"
2170      echo
2171      for ac_var in $ac_subst_files
2172      do
2173	eval ac_val=\$$ac_var
2174	case $ac_val in
2175	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176	esac
2177	$as_echo "$ac_var='\''$ac_val'\''"
2178      done | sort
2179      echo
2180    fi
2181
2182    if test -s confdefs.h; then
2183      $as_echo "## ----------- ##
2184## confdefs.h. ##
2185## ----------- ##"
2186      echo
2187      cat confdefs.h
2188      echo
2189    fi
2190    test "$ac_signal" != 0 &&
2191      $as_echo "$as_me: caught signal $ac_signal"
2192    $as_echo "$as_me: exit $exit_status"
2193  } >&5
2194  rm -f core *.core core.conftest.* &&
2195    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2196    exit $exit_status
2197' 0
2198for ac_signal in 1 2 13 15; do
2199  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2200done
2201ac_signal=0
2202
2203# confdefs.h avoids OS command line length limits that DEFS can exceed.
2204rm -f -r conftest* confdefs.h
2205
2206$as_echo "/* confdefs.h */" > confdefs.h
2207
2208# Predefined preprocessor variables.
2209
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_NAME "$PACKAGE_NAME"
2212_ACEOF
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2216_ACEOF
2217
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_VERSION "$PACKAGE_VERSION"
2220_ACEOF
2221
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_STRING "$PACKAGE_STRING"
2224_ACEOF
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2228_ACEOF
2229
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_URL "$PACKAGE_URL"
2232_ACEOF
2233
2234
2235# Let the site file select an alternate cache file if it wants to.
2236# Prefer an explicitly selected file to automatically selected ones.
2237ac_site_file1=NONE
2238ac_site_file2=NONE
2239if test -n "$CONFIG_SITE"; then
2240  # We do not want a PATH search for config.site.
2241  case $CONFIG_SITE in #((
2242    -*)  ac_site_file1=./$CONFIG_SITE;;
2243    */*) ac_site_file1=$CONFIG_SITE;;
2244    *)   ac_site_file1=./$CONFIG_SITE;;
2245  esac
2246elif test "x$prefix" != xNONE; then
2247  ac_site_file1=$prefix/share/config.site
2248  ac_site_file2=$prefix/etc/config.site
2249else
2250  ac_site_file1=$ac_default_prefix/share/config.site
2251  ac_site_file2=$ac_default_prefix/etc/config.site
2252fi
2253for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2254do
2255  test "x$ac_site_file" = xNONE && continue
2256  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2257    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2258$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2259    sed 's/^/| /' "$ac_site_file" >&5
2260    . "$ac_site_file" \
2261      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2263as_fn_error $? "failed to load site script $ac_site_file
2264See \`config.log' for more details" "$LINENO" 5; }
2265  fi
2266done
2267
2268if test -r "$cache_file"; then
2269  # Some versions of bash will fail to source /dev/null (special files
2270  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2271  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2272    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2273$as_echo "$as_me: loading cache $cache_file" >&6;}
2274    case $cache_file in
2275      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2276      *)                      . "./$cache_file";;
2277    esac
2278  fi
2279else
2280  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2281$as_echo "$as_me: creating cache $cache_file" >&6;}
2282  >$cache_file
2283fi
2284
2285# Check that the precious variables saved in the cache have kept the same
2286# value.
2287ac_cache_corrupted=false
2288for ac_var in $ac_precious_vars; do
2289  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2290  eval ac_new_set=\$ac_env_${ac_var}_set
2291  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2292  eval ac_new_val=\$ac_env_${ac_var}_value
2293  case $ac_old_set,$ac_new_set in
2294    set,)
2295      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2296$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2297      ac_cache_corrupted=: ;;
2298    ,set)
2299      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2300$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2301      ac_cache_corrupted=: ;;
2302    ,);;
2303    *)
2304      if test "x$ac_old_val" != "x$ac_new_val"; then
2305	# differences in whitespace do not lead to failure.
2306	ac_old_val_w=`echo x $ac_old_val`
2307	ac_new_val_w=`echo x $ac_new_val`
2308	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2309	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2310$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2311	  ac_cache_corrupted=:
2312	else
2313	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2314$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2315	  eval $ac_var=\$ac_old_val
2316	fi
2317	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2318$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2319	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2320$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2321      fi;;
2322  esac
2323  # Pass precious variables to config.status.
2324  if test "$ac_new_set" = set; then
2325    case $ac_new_val in
2326    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2327    *) ac_arg=$ac_var=$ac_new_val ;;
2328    esac
2329    case " $ac_configure_args " in
2330      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2331      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2332    esac
2333  fi
2334done
2335if $ac_cache_corrupted; then
2336  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2339$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2340  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2341fi
2342## -------------------- ##
2343## Main body of script. ##
2344## -------------------- ##
2345
2346ac_ext=c
2347ac_cpp='$CPP $CPPFLAGS'
2348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
2352
2353
2354
2355
2356ac_aux_dir=
2357for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2358  if test -f "$ac_dir/install-sh"; then
2359    ac_aux_dir=$ac_dir
2360    ac_install_sh="$ac_aux_dir/install-sh -c"
2361    break
2362  elif test -f "$ac_dir/install.sh"; then
2363    ac_aux_dir=$ac_dir
2364    ac_install_sh="$ac_aux_dir/install.sh -c"
2365    break
2366  elif test -f "$ac_dir/shtool"; then
2367    ac_aux_dir=$ac_dir
2368    ac_install_sh="$ac_aux_dir/shtool install -c"
2369    break
2370  fi
2371done
2372if test -z "$ac_aux_dir"; then
2373  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2374fi
2375
2376# These three variables are undocumented and unsupported,
2377# and are intended to be withdrawn in a future Autoconf release.
2378# They can cause serious problems if a builder's source tree is in a directory
2379# whose full name contains unusual characters.
2380ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2381ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2382ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2383
2384
2385# Make sure we can run config.sub.
2386$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2387  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2388
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2390$as_echo_n "checking build system type... " >&6; }
2391if ${ac_cv_build+:} false; then :
2392  $as_echo_n "(cached) " >&6
2393else
2394  ac_build_alias=$build_alias
2395test "x$ac_build_alias" = x &&
2396  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2397test "x$ac_build_alias" = x &&
2398  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2399ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2400  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2401
2402fi
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2404$as_echo "$ac_cv_build" >&6; }
2405case $ac_cv_build in
2406*-*-*) ;;
2407*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2408esac
2409build=$ac_cv_build
2410ac_save_IFS=$IFS; IFS='-'
2411set x $ac_cv_build
2412shift
2413build_cpu=$1
2414build_vendor=$2
2415shift; shift
2416# Remember, the first character of IFS is used to create $*,
2417# except with old shells:
2418build_os=$*
2419IFS=$ac_save_IFS
2420case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2421
2422
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2424$as_echo_n "checking host system type... " >&6; }
2425if ${ac_cv_host+:} false; then :
2426  $as_echo_n "(cached) " >&6
2427else
2428  if test "x$host_alias" = x; then
2429  ac_cv_host=$ac_cv_build
2430else
2431  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2432    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2433fi
2434
2435fi
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2437$as_echo "$ac_cv_host" >&6; }
2438case $ac_cv_host in
2439*-*-*) ;;
2440*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2441esac
2442host=$ac_cv_host
2443ac_save_IFS=$IFS; IFS='-'
2444set x $ac_cv_host
2445shift
2446host_cpu=$1
2447host_vendor=$2
2448shift; shift
2449# Remember, the first character of IFS is used to create $*,
2450# except with old shells:
2451host_os=$*
2452IFS=$ac_save_IFS
2453case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2454
2455
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2457$as_echo_n "checking target system type... " >&6; }
2458if ${ac_cv_target+:} false; then :
2459  $as_echo_n "(cached) " >&6
2460else
2461  if test "x$target_alias" = x; then
2462  ac_cv_target=$ac_cv_host
2463else
2464  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2465    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2466fi
2467
2468fi
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2470$as_echo "$ac_cv_target" >&6; }
2471case $ac_cv_target in
2472*-*-*) ;;
2473*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2474esac
2475target=$ac_cv_target
2476ac_save_IFS=$IFS; IFS='-'
2477set x $ac_cv_target
2478shift
2479target_cpu=$1
2480target_vendor=$2
2481shift; shift
2482# Remember, the first character of IFS is used to create $*,
2483# except with old shells:
2484target_os=$*
2485IFS=$ac_save_IFS
2486case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2487
2488
2489# The aliases save the names the user supplied, while $host etc.
2490# will get canonicalized.
2491test -n "$target_alias" &&
2492  test "$program_prefix$program_suffix$program_transform_name" = \
2493    NONENONEs,x,x, &&
2494  program_prefix=${target_alias}-
2495am__api_version='1.15'
2496
2497# Find a good install program.  We prefer a C program (faster),
2498# so one script is as good as another.  But avoid the broken or
2499# incompatible versions:
2500# SysV /etc/install, /usr/sbin/install
2501# SunOS /usr/etc/install
2502# IRIX /sbin/install
2503# AIX /bin/install
2504# AmigaOS /C/install, which installs bootblocks on floppy discs
2505# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2506# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2507# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2508# OS/2's system install, which has a completely different semantic
2509# ./install, which can be erroneously created by make from ./install.sh.
2510# Reject install programs that cannot install multiple files.
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2512$as_echo_n "checking for a BSD-compatible install... " >&6; }
2513if test -z "$INSTALL"; then
2514if ${ac_cv_path_install+:} false; then :
2515  $as_echo_n "(cached) " >&6
2516else
2517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520  IFS=$as_save_IFS
2521  test -z "$as_dir" && as_dir=.
2522    # Account for people who put trailing slashes in PATH elements.
2523case $as_dir/ in #((
2524  ./ | .// | /[cC]/* | \
2525  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2526  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2527  /usr/ucb/* ) ;;
2528  *)
2529    # OSF1 and SCO ODT 3.0 have their own names for install.
2530    # Don't use installbsd from OSF since it installs stuff as root
2531    # by default.
2532    for ac_prog in ginstall scoinst install; do
2533      for ac_exec_ext in '' $ac_executable_extensions; do
2534	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2535	  if test $ac_prog = install &&
2536	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537	    # AIX install.  It has an incompatible calling convention.
2538	    :
2539	  elif test $ac_prog = install &&
2540	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541	    # program-specific install script used by HP pwplus--don't use.
2542	    :
2543	  else
2544	    rm -rf conftest.one conftest.two conftest.dir
2545	    echo one > conftest.one
2546	    echo two > conftest.two
2547	    mkdir conftest.dir
2548	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2549	      test -s conftest.one && test -s conftest.two &&
2550	      test -s conftest.dir/conftest.one &&
2551	      test -s conftest.dir/conftest.two
2552	    then
2553	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2554	      break 3
2555	    fi
2556	  fi
2557	fi
2558      done
2559    done
2560    ;;
2561esac
2562
2563  done
2564IFS=$as_save_IFS
2565
2566rm -rf conftest.one conftest.two conftest.dir
2567
2568fi
2569  if test "${ac_cv_path_install+set}" = set; then
2570    INSTALL=$ac_cv_path_install
2571  else
2572    # As a last resort, use the slow shell script.  Don't cache a
2573    # value for INSTALL within a source directory, because that will
2574    # break other packages using the cache if that directory is
2575    # removed, or if the value is a relative name.
2576    INSTALL=$ac_install_sh
2577  fi
2578fi
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2580$as_echo "$INSTALL" >&6; }
2581
2582# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2583# It thinks the first close brace ends the variable substitution.
2584test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2585
2586test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2587
2588test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2589
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2591$as_echo_n "checking whether build environment is sane... " >&6; }
2592# Reject unsafe characters in $srcdir or the absolute working directory
2593# name.  Accept space and tab only in the latter.
2594am_lf='
2595'
2596case `pwd` in
2597  *[\\\"\#\$\&\'\`$am_lf]*)
2598    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2599esac
2600case $srcdir in
2601  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2602    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2603esac
2604
2605# Do 'set' in a subshell so we don't clobber the current shell's
2606# arguments.  Must try -L first in case configure is actually a
2607# symlink; some systems play weird games with the mod time of symlinks
2608# (eg FreeBSD returns the mod time of the symlink's containing
2609# directory).
2610if (
2611   am_has_slept=no
2612   for am_try in 1 2; do
2613     echo "timestamp, slept: $am_has_slept" > conftest.file
2614     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2615     if test "$*" = "X"; then
2616	# -L didn't work.
2617	set X `ls -t "$srcdir/configure" conftest.file`
2618     fi
2619     if test "$*" != "X $srcdir/configure conftest.file" \
2620	&& test "$*" != "X conftest.file $srcdir/configure"; then
2621
2622	# If neither matched, then we have a broken ls.  This can happen
2623	# if, for instance, CONFIG_SHELL is bash and it inherits a
2624	# broken ls alias from the environment.  This has actually
2625	# happened.  Such a system could not be considered "sane".
2626	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2627  alias in your environment" "$LINENO" 5
2628     fi
2629     if test "$2" = conftest.file || test $am_try -eq 2; then
2630       break
2631     fi
2632     # Just in case.
2633     sleep 1
2634     am_has_slept=yes
2635   done
2636   test "$2" = conftest.file
2637   )
2638then
2639   # Ok.
2640   :
2641else
2642   as_fn_error $? "newly created file is older than distributed files!
2643Check your system clock" "$LINENO" 5
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646$as_echo "yes" >&6; }
2647# If we didn't sleep, we still need to ensure time stamps of config.status and
2648# generated files are strictly newer.
2649am_sleep_pid=
2650if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2651  ( sleep 1 ) &
2652  am_sleep_pid=$!
2653fi
2654
2655rm -f conftest.file
2656
2657test "$program_prefix" != NONE &&
2658  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2659# Use a double $ so make ignores it.
2660test "$program_suffix" != NONE &&
2661  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2662# Double any \ or $.
2663# By default was `s,x,x', remove it if useless.
2664ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2665program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2666
2667# Expand $ac_aux_dir to an absolute path.
2668am_aux_dir=`cd "$ac_aux_dir" && pwd`
2669
2670if test x"${MISSING+set}" != xset; then
2671  case $am_aux_dir in
2672  *\ * | *\	*)
2673    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2674  *)
2675    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2676  esac
2677fi
2678# Use eval to expand $SHELL
2679if eval "$MISSING --is-lightweight"; then
2680  am_missing_run="$MISSING "
2681else
2682  am_missing_run=
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2684$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2685fi
2686
2687if test x"${install_sh+set}" != xset; then
2688  case $am_aux_dir in
2689  *\ * | *\	*)
2690    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2691  *)
2692    install_sh="\${SHELL} $am_aux_dir/install-sh"
2693  esac
2694fi
2695
2696# Installed binaries are usually stripped using 'strip' when the user
2697# run "make install-strip".  However 'strip' might not be the right
2698# tool to use in cross-compilation environments, therefore Automake
2699# will honor the 'STRIP' environment variable to overrule this program.
2700if test "$cross_compiling" != no; then
2701  if test -n "$ac_tool_prefix"; then
2702  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2703set dummy ${ac_tool_prefix}strip; ac_word=$2
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705$as_echo_n "checking for $ac_word... " >&6; }
2706if ${ac_cv_prog_STRIP+:} false; then :
2707  $as_echo_n "(cached) " >&6
2708else
2709  if test -n "$STRIP"; then
2710  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717    for ac_exec_ext in '' $ac_executable_extensions; do
2718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721    break 2
2722  fi
2723done
2724  done
2725IFS=$as_save_IFS
2726
2727fi
2728fi
2729STRIP=$ac_cv_prog_STRIP
2730if test -n "$STRIP"; then
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2732$as_echo "$STRIP" >&6; }
2733else
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735$as_echo "no" >&6; }
2736fi
2737
2738
2739fi
2740if test -z "$ac_cv_prog_STRIP"; then
2741  ac_ct_STRIP=$STRIP
2742  # Extract the first word of "strip", so it can be a program name with args.
2743set dummy strip; ac_word=$2
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745$as_echo_n "checking for $ac_word... " >&6; }
2746if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2747  $as_echo_n "(cached) " >&6
2748else
2749  if test -n "$ac_ct_STRIP"; then
2750  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755  IFS=$as_save_IFS
2756  test -z "$as_dir" && as_dir=.
2757    for ac_exec_ext in '' $ac_executable_extensions; do
2758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759    ac_cv_prog_ac_ct_STRIP="strip"
2760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761    break 2
2762  fi
2763done
2764  done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2770if test -n "$ac_ct_STRIP"; then
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2772$as_echo "$ac_ct_STRIP" >&6; }
2773else
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778  if test "x$ac_ct_STRIP" = x; then
2779    STRIP=":"
2780  else
2781    case $cross_compiling:$ac_tool_warned in
2782yes:)
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2785ac_tool_warned=yes ;;
2786esac
2787    STRIP=$ac_ct_STRIP
2788  fi
2789else
2790  STRIP="$ac_cv_prog_STRIP"
2791fi
2792
2793fi
2794INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2795
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2797$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2798if test -z "$MKDIR_P"; then
2799  if ${ac_cv_path_mkdir+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2804do
2805  IFS=$as_save_IFS
2806  test -z "$as_dir" && as_dir=.
2807    for ac_prog in mkdir gmkdir; do
2808	 for ac_exec_ext in '' $ac_executable_extensions; do
2809	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2810	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2811	     'mkdir (GNU coreutils) '* | \
2812	     'mkdir (coreutils) '* | \
2813	     'mkdir (fileutils) '4.1*)
2814	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2815	       break 3;;
2816	   esac
2817	 done
2818       done
2819  done
2820IFS=$as_save_IFS
2821
2822fi
2823
2824  test -d ./--version && rmdir ./--version
2825  if test "${ac_cv_path_mkdir+set}" = set; then
2826    MKDIR_P="$ac_cv_path_mkdir -p"
2827  else
2828    # As a last resort, use the slow shell script.  Don't cache a
2829    # value for MKDIR_P within a source directory, because that will
2830    # break other packages using the cache if that directory is
2831    # removed, or if the value is a relative name.
2832    MKDIR_P="$ac_install_sh -d"
2833  fi
2834fi
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2836$as_echo "$MKDIR_P" >&6; }
2837
2838for ac_prog in gawk mawk nawk awk
2839do
2840  # Extract the first word of "$ac_prog", so it can be a program name with args.
2841set dummy $ac_prog; ac_word=$2
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843$as_echo_n "checking for $ac_word... " >&6; }
2844if ${ac_cv_prog_AWK+:} false; then :
2845  $as_echo_n "(cached) " >&6
2846else
2847  if test -n "$AWK"; then
2848  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855    for ac_exec_ext in '' $ac_executable_extensions; do
2856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    ac_cv_prog_AWK="$ac_prog"
2858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859    break 2
2860  fi
2861done
2862  done
2863IFS=$as_save_IFS
2864
2865fi
2866fi
2867AWK=$ac_cv_prog_AWK
2868if test -n "$AWK"; then
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2870$as_echo "$AWK" >&6; }
2871else
2872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873$as_echo "no" >&6; }
2874fi
2875
2876
2877  test -n "$AWK" && break
2878done
2879
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2881$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2882set x ${MAKE-make}
2883ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2884if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2885  $as_echo_n "(cached) " >&6
2886else
2887  cat >conftest.make <<\_ACEOF
2888SHELL = /bin/sh
2889all:
2890	@echo '@@@%%%=$(MAKE)=@@@%%%'
2891_ACEOF
2892# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2893case `${MAKE-make} -f conftest.make 2>/dev/null` in
2894  *@@@%%%=?*=@@@%%%*)
2895    eval ac_cv_prog_make_${ac_make}_set=yes;;
2896  *)
2897    eval ac_cv_prog_make_${ac_make}_set=no;;
2898esac
2899rm -f conftest.make
2900fi
2901if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2903$as_echo "yes" >&6; }
2904  SET_MAKE=
2905else
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908  SET_MAKE="MAKE=${MAKE-make}"
2909fi
2910
2911rm -rf .tst 2>/dev/null
2912mkdir .tst 2>/dev/null
2913if test -d .tst; then
2914  am__leading_dot=.
2915else
2916  am__leading_dot=_
2917fi
2918rmdir .tst 2>/dev/null
2919
2920# Check whether --enable-silent-rules was given.
2921if test "${enable_silent_rules+set}" = set; then :
2922  enableval=$enable_silent_rules;
2923fi
2924
2925case $enable_silent_rules in # (((
2926  yes) AM_DEFAULT_VERBOSITY=0;;
2927   no) AM_DEFAULT_VERBOSITY=1;;
2928    *) AM_DEFAULT_VERBOSITY=1;;
2929esac
2930am_make=${MAKE-make}
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2932$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2933if ${am_cv_make_support_nested_variables+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if $as_echo 'TRUE=$(BAR$(V))
2937BAR0=false
2938BAR1=true
2939V=1
2940am__doit:
2941	@$(TRUE)
2942.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2943  am_cv_make_support_nested_variables=yes
2944else
2945  am_cv_make_support_nested_variables=no
2946fi
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2949$as_echo "$am_cv_make_support_nested_variables" >&6; }
2950if test $am_cv_make_support_nested_variables = yes; then
2951    AM_V='$(V)'
2952  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2953else
2954  AM_V=$AM_DEFAULT_VERBOSITY
2955  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2956fi
2957AM_BACKSLASH='\'
2958
2959if test "`cd $srcdir && pwd`" != "`pwd`"; then
2960  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2961  # is not polluted with repeated "-I."
2962  am__isrc=' -I$(srcdir)'
2963  # test to see if srcdir already configured
2964  if test -f $srcdir/config.status; then
2965    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2966  fi
2967fi
2968
2969# test whether we have cygpath
2970if test -z "$CYGPATH_W"; then
2971  if (cygpath --version) >/dev/null 2>/dev/null; then
2972    CYGPATH_W='cygpath -w'
2973  else
2974    CYGPATH_W=echo
2975  fi
2976fi
2977
2978
2979# Define the identity of the package.
2980 PACKAGE='fakeroot'
2981 VERSION='1.23'
2982
2983
2984cat >>confdefs.h <<_ACEOF
2985#define PACKAGE "$PACKAGE"
2986_ACEOF
2987
2988
2989cat >>confdefs.h <<_ACEOF
2990#define VERSION "$VERSION"
2991_ACEOF
2992
2993# Some tools Automake needs.
2994
2995ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2996
2997
2998AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2999
3000
3001AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3002
3003
3004AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3005
3006
3007MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3008
3009# For better backward compatibility.  To be removed once Automake 1.9.x
3010# dies out for good.  For more background, see:
3011# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3012# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3013mkdir_p='$(MKDIR_P)'
3014
3015# We need awk for the "check" target (and possibly the TAP driver).  The
3016# system "awk" is bad on some platforms.
3017# Always define AMTAR for backward compatibility.  Yes, it's still used
3018# in the wild :-(  We should find a proper way to deprecate it ...
3019AMTAR='$${TAR-tar}'
3020
3021
3022# We'll loop over all known methods to create a tar archive until one works.
3023_am_tools='gnutar  pax cpio none'
3024
3025am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3026
3027
3028
3029
3030
3031
3032# POSIX will say in a future version that running "rm -f" with no argument
3033# is OK; and we want to be able to make that assumption in our Makefile
3034# recipes.  So use an aggressive probe to check that the usage we want is
3035# actually supported "in the wild" to an acceptable degree.
3036# See automake bug#10828.
3037# To make any issue more visible, cause the running configure to be aborted
3038# by default if the 'rm' program in use doesn't match our expectations; the
3039# user can still override this though.
3040if rm -f && rm -fr && rm -rf; then : OK; else
3041  cat >&2 <<'END'
3042Oops!
3043
3044Your 'rm' program seems unable to run without file operands specified
3045on the command line, even when the '-f' option is present.  This is contrary
3046to the behaviour of most rm programs out there, and not conforming with
3047the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3048
3049Please tell bug-automake@gnu.org about your system, including the value
3050of your $PATH and any error possibly output before this message.  This
3051can help us improve future automake versions.
3052
3053END
3054  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3055    echo 'Configuration will proceed anyway, since you have set the' >&2
3056    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3057    echo >&2
3058  else
3059    cat >&2 <<'END'
3060Aborting the configuration process, to ensure you take notice of the issue.
3061
3062You can download and install GNU coreutils to get an 'rm' implementation
3063that behaves properly: <http://www.gnu.org/software/coreutils/>.
3064
3065If you want to complete the configuration process using your problematic
3066'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3067to "yes", and re-run configure.
3068
3069END
3070    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3071  fi
3072fi
3073
3074
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3076$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3077    # Check whether --enable-maintainer-mode was given.
3078if test "${enable_maintainer_mode+set}" = set; then :
3079  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3080else
3081  USE_MAINTAINER_MODE=no
3082fi
3083
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3085$as_echo "$USE_MAINTAINER_MODE" >&6; }
3086   if test $USE_MAINTAINER_MODE = yes; then
3087  MAINTAINER_MODE_TRUE=
3088  MAINTAINER_MODE_FALSE='#'
3089else
3090  MAINTAINER_MODE_TRUE='#'
3091  MAINTAINER_MODE_FALSE=
3092fi
3093
3094  MAINT=$MAINTAINER_MODE_TRUE
3095
3096
3097ac_config_headers="$ac_config_headers config.h"
3098
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3100$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3101set x ${MAKE-make}
3102ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3103if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  cat >conftest.make <<\_ACEOF
3107SHELL = /bin/sh
3108all:
3109	@echo '@@@%%%=$(MAKE)=@@@%%%'
3110_ACEOF
3111# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3112case `${MAKE-make} -f conftest.make 2>/dev/null` in
3113  *@@@%%%=?*=@@@%%%*)
3114    eval ac_cv_prog_make_${ac_make}_set=yes;;
3115  *)
3116    eval ac_cv_prog_make_${ac_make}_set=no;;
3117esac
3118rm -f conftest.make
3119fi
3120if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122$as_echo "yes" >&6; }
3123  SET_MAKE=
3124else
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127  SET_MAKE="MAKE=${MAKE-make}"
3128fi
3129
3130case `pwd` in
3131  *\ * | *\	*)
3132    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3133$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3134esac
3135
3136
3137
3138macro_version='2.4.6'
3139macro_revision='2.4.6'
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153ltmain=$ac_aux_dir/ltmain.sh
3154
3155# Backslashify metacharacters that are still active within
3156# double-quoted strings.
3157sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3158
3159# Same as above, but do not quote variable references.
3160double_quote_subst='s/\(["`\\]\)/\\\1/g'
3161
3162# Sed substitution to delay expansion of an escaped shell variable in a
3163# double_quote_subst'ed string.
3164delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3165
3166# Sed substitution to delay expansion of an escaped single quote.
3167delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3168
3169# Sed substitution to avoid accidental globbing in evaled expressions
3170no_glob_subst='s/\*/\\\*/g'
3171
3172ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3173ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3174ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3175
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3177$as_echo_n "checking how to print strings... " >&6; }
3178# Test print first, because it will be a builtin if present.
3179if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3180   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3181  ECHO='print -r --'
3182elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3183  ECHO='printf %s\n'
3184else
3185  # Use this function as a fallback that always works.
3186  func_fallback_echo ()
3187  {
3188    eval 'cat <<_LTECHO_EOF
3189$1
3190_LTECHO_EOF'
3191  }
3192  ECHO='func_fallback_echo'
3193fi
3194
3195# func_echo_all arg...
3196# Invoke $ECHO with all args, space-separated.
3197func_echo_all ()
3198{
3199    $ECHO ""
3200}
3201
3202case $ECHO in
3203  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3204$as_echo "printf" >&6; } ;;
3205  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3206$as_echo "print -r" >&6; } ;;
3207  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3208$as_echo "cat" >&6; } ;;
3209esac
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224DEPDIR="${am__leading_dot}deps"
3225
3226ac_config_commands="$ac_config_commands depfiles"
3227
3228
3229am_make=${MAKE-make}
3230cat > confinc << 'END'
3231am__doit:
3232	@echo this is the am__doit target
3233.PHONY: am__doit
3234END
3235# If we don't find an include directive, just comment out the code.
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3237$as_echo_n "checking for style of include used by $am_make... " >&6; }
3238am__include="#"
3239am__quote=
3240_am_result=none
3241# First try GNU make style include.
3242echo "include confinc" > confmf
3243# Ignore all kinds of additional output from 'make'.
3244case `$am_make -s -f confmf 2> /dev/null` in #(
3245*the\ am__doit\ target*)
3246  am__include=include
3247  am__quote=
3248  _am_result=GNU
3249  ;;
3250esac
3251# Now try BSD make style include.
3252if test "$am__include" = "#"; then
3253   echo '.include "confinc"' > confmf
3254   case `$am_make -s -f confmf 2> /dev/null` in #(
3255   *the\ am__doit\ target*)
3256     am__include=.include
3257     am__quote="\""
3258     _am_result=BSD
3259     ;;
3260   esac
3261fi
3262
3263
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3265$as_echo "$_am_result" >&6; }
3266rm -f confinc confmf
3267
3268# Check whether --enable-dependency-tracking was given.
3269if test "${enable_dependency_tracking+set}" = set; then :
3270  enableval=$enable_dependency_tracking;
3271fi
3272
3273if test "x$enable_dependency_tracking" != xno; then
3274  am_depcomp="$ac_aux_dir/depcomp"
3275  AMDEPBACKSLASH='\'
3276  am__nodep='_no'
3277fi
3278 if test "x$enable_dependency_tracking" != xno; then
3279  AMDEP_TRUE=
3280  AMDEP_FALSE='#'
3281else
3282  AMDEP_TRUE='#'
3283  AMDEP_FALSE=
3284fi
3285
3286
3287ac_ext=c
3288ac_cpp='$CPP $CPPFLAGS'
3289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292if test -n "$ac_tool_prefix"; then
3293  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3294set dummy ${ac_tool_prefix}gcc; ac_word=$2
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296$as_echo_n "checking for $ac_word... " >&6; }
3297if ${ac_cv_prog_CC+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  if test -n "$CC"; then
3301  ac_cv_prog_CC="$CC" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308    for ac_exec_ext in '' $ac_executable_extensions; do
3309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312    break 2
3313  fi
3314done
3315  done
3316IFS=$as_save_IFS
3317
3318fi
3319fi
3320CC=$ac_cv_prog_CC
3321if test -n "$CC"; then
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323$as_echo "$CC" >&6; }
3324else
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327fi
3328
3329
3330fi
3331if test -z "$ac_cv_prog_CC"; then
3332  ac_ct_CC=$CC
3333  # Extract the first word of "gcc", so it can be a program name with args.
3334set dummy gcc; ac_word=$2
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if ${ac_cv_prog_ac_ct_CC+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if test -n "$ac_ct_CC"; then
3341  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346  IFS=$as_save_IFS
3347  test -z "$as_dir" && as_dir=.
3348    for ac_exec_ext in '' $ac_executable_extensions; do
3349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350    ac_cv_prog_ac_ct_CC="gcc"
3351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352    break 2
3353  fi
3354done
3355  done
3356IFS=$as_save_IFS
3357
3358fi
3359fi
3360ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361if test -n "$ac_ct_CC"; then
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3363$as_echo "$ac_ct_CC" >&6; }
3364else
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367fi
3368
3369  if test "x$ac_ct_CC" = x; then
3370    CC=""
3371  else
3372    case $cross_compiling:$ac_tool_warned in
3373yes:)
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376ac_tool_warned=yes ;;
3377esac
3378    CC=$ac_ct_CC
3379  fi
3380else
3381  CC="$ac_cv_prog_CC"
3382fi
3383
3384if test -z "$CC"; then
3385          if test -n "$ac_tool_prefix"; then
3386    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3387set dummy ${ac_tool_prefix}cc; ac_word=$2
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389$as_echo_n "checking for $ac_word... " >&6; }
3390if ${ac_cv_prog_CC+:} false; then :
3391  $as_echo_n "(cached) " >&6
3392else
3393  if test -n "$CC"; then
3394  ac_cv_prog_CC="$CC" # Let the user override the test.
3395else
3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH
3398do
3399  IFS=$as_save_IFS
3400  test -z "$as_dir" && as_dir=.
3401    for ac_exec_ext in '' $ac_executable_extensions; do
3402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403    ac_cv_prog_CC="${ac_tool_prefix}cc"
3404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405    break 2
3406  fi
3407done
3408  done
3409IFS=$as_save_IFS
3410
3411fi
3412fi
3413CC=$ac_cv_prog_CC
3414if test -n "$CC"; then
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416$as_echo "$CC" >&6; }
3417else
3418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419$as_echo "no" >&6; }
3420fi
3421
3422
3423  fi
3424fi
3425if test -z "$CC"; then
3426  # Extract the first word of "cc", so it can be a program name with args.
3427set dummy cc; ac_word=$2
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429$as_echo_n "checking for $ac_word... " >&6; }
3430if ${ac_cv_prog_CC+:} false; then :
3431  $as_echo_n "(cached) " >&6
3432else
3433  if test -n "$CC"; then
3434  ac_cv_prog_CC="$CC" # Let the user override the test.
3435else
3436  ac_prog_rejected=no
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440  IFS=$as_save_IFS
3441  test -z "$as_dir" && as_dir=.
3442    for ac_exec_ext in '' $ac_executable_extensions; do
3443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3445       ac_prog_rejected=yes
3446       continue
3447     fi
3448    ac_cv_prog_CC="cc"
3449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450    break 2
3451  fi
3452done
3453  done
3454IFS=$as_save_IFS
3455
3456if test $ac_prog_rejected = yes; then
3457  # We found a bogon in the path, so make sure we never use it.
3458  set dummy $ac_cv_prog_CC
3459  shift
3460  if test $# != 0; then
3461    # We chose a different compiler from the bogus one.
3462    # However, it has the same basename, so the bogon will be chosen
3463    # first if we set CC to just the basename; use the full file name.
3464    shift
3465    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3466  fi
3467fi
3468fi
3469fi
3470CC=$ac_cv_prog_CC
3471if test -n "$CC"; then
3472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473$as_echo "$CC" >&6; }
3474else
3475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476$as_echo "no" >&6; }
3477fi
3478
3479
3480fi
3481if test -z "$CC"; then
3482  if test -n "$ac_tool_prefix"; then
3483  for ac_prog in cl.exe
3484  do
3485    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3486set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488$as_echo_n "checking for $ac_word... " >&6; }
3489if ${ac_cv_prog_CC+:} false; then :
3490  $as_echo_n "(cached) " >&6
3491else
3492  if test -n "$CC"; then
3493  ac_cv_prog_CC="$CC" # Let the user override the test.
3494else
3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH
3497do
3498  IFS=$as_save_IFS
3499  test -z "$as_dir" && as_dir=.
3500    for ac_exec_ext in '' $ac_executable_extensions; do
3501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3504    break 2
3505  fi
3506done
3507  done
3508IFS=$as_save_IFS
3509
3510fi
3511fi
3512CC=$ac_cv_prog_CC
3513if test -n "$CC"; then
3514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515$as_echo "$CC" >&6; }
3516else
3517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518$as_echo "no" >&6; }
3519fi
3520
3521
3522    test -n "$CC" && break
3523  done
3524fi
3525if test -z "$CC"; then
3526  ac_ct_CC=$CC
3527  for ac_prog in cl.exe
3528do
3529  # Extract the first word of "$ac_prog", so it can be a program name with args.
3530set dummy $ac_prog; ac_word=$2
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532$as_echo_n "checking for $ac_word... " >&6; }
3533if ${ac_cv_prog_ac_ct_CC+:} false; then :
3534  $as_echo_n "(cached) " >&6
3535else
3536  if test -n "$ac_ct_CC"; then
3537  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538else
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542  IFS=$as_save_IFS
3543  test -z "$as_dir" && as_dir=.
3544    for ac_exec_ext in '' $ac_executable_extensions; do
3545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546    ac_cv_prog_ac_ct_CC="$ac_prog"
3547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548    break 2
3549  fi
3550done
3551  done
3552IFS=$as_save_IFS
3553
3554fi
3555fi
3556ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557if test -n "$ac_ct_CC"; then
3558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3559$as_echo "$ac_ct_CC" >&6; }
3560else
3561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562$as_echo "no" >&6; }
3563fi
3564
3565
3566  test -n "$ac_ct_CC" && break
3567done
3568
3569  if test "x$ac_ct_CC" = x; then
3570    CC=""
3571  else
3572    case $cross_compiling:$ac_tool_warned in
3573yes:)
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576ac_tool_warned=yes ;;
3577esac
3578    CC=$ac_ct_CC
3579  fi
3580fi
3581
3582fi
3583
3584
3585test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587as_fn_error $? "no acceptable C compiler found in \$PATH
3588See \`config.log' for more details" "$LINENO" 5; }
3589
3590# Provide some information about the compiler.
3591$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3592set X $ac_compile
3593ac_compiler=$2
3594for ac_option in --version -v -V -qversion; do
3595  { { ac_try="$ac_compiler $ac_option >&5"
3596case "(($ac_try" in
3597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598  *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601$as_echo "$ac_try_echo"; } >&5
3602  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3603  ac_status=$?
3604  if test -s conftest.err; then
3605    sed '10a\
3606... rest of stderr output deleted ...
3607         10q' conftest.err >conftest.er1
3608    cat conftest.er1 >&5
3609  fi
3610  rm -f conftest.er1 conftest.err
3611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612  test $ac_status = 0; }
3613done
3614
3615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616/* end confdefs.h.  */
3617
3618int
3619main ()
3620{
3621
3622  ;
3623  return 0;
3624}
3625_ACEOF
3626ac_clean_files_save=$ac_clean_files
3627ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3628# Try to create an executable without -o first, disregard a.out.
3629# It will help us diagnose broken compilers, and finding out an intuition
3630# of exeext.
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3632$as_echo_n "checking whether the C compiler works... " >&6; }
3633ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3634
3635# The possible output files:
3636ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3637
3638ac_rmfiles=
3639for ac_file in $ac_files
3640do
3641  case $ac_file in
3642    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3643    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3644  esac
3645done
3646rm -f $ac_rmfiles
3647
3648if { { ac_try="$ac_link_default"
3649case "(($ac_try" in
3650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651  *) ac_try_echo=$ac_try;;
3652esac
3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654$as_echo "$ac_try_echo"; } >&5
3655  (eval "$ac_link_default") 2>&5
3656  ac_status=$?
3657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658  test $ac_status = 0; }; then :
3659  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3660# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3661# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3662# so that the user can short-circuit this test for compilers unknown to
3663# Autoconf.
3664for ac_file in $ac_files ''
3665do
3666  test -f "$ac_file" || continue
3667  case $ac_file in
3668    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3669	;;
3670    [ab].out )
3671	# We found the default executable, but exeext='' is most
3672	# certainly right.
3673	break;;
3674    *.* )
3675	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3676	then :; else
3677	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678	fi
3679	# We set ac_cv_exeext here because the later test for it is not
3680	# safe: cross compilers may not add the suffix if given an `-o'
3681	# argument, so we may need to know it at that point already.
3682	# Even if this section looks crufty: it has the advantage of
3683	# actually working.
3684	break;;
3685    * )
3686	break;;
3687  esac
3688done
3689test "$ac_cv_exeext" = no && ac_cv_exeext=
3690
3691else
3692  ac_file=''
3693fi
3694if test -z "$ac_file"; then :
3695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696$as_echo "no" >&6; }
3697$as_echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702as_fn_error 77 "C compiler cannot create executables
3703See \`config.log' for more details" "$LINENO" 5; }
3704else
3705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3706$as_echo "yes" >&6; }
3707fi
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3709$as_echo_n "checking for C compiler default output file name... " >&6; }
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3711$as_echo "$ac_file" >&6; }
3712ac_exeext=$ac_cv_exeext
3713
3714rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3715ac_clean_files=$ac_clean_files_save
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3717$as_echo_n "checking for suffix of executables... " >&6; }
3718if { { ac_try="$ac_link"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725  (eval "$ac_link") 2>&5
3726  ac_status=$?
3727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728  test $ac_status = 0; }; then :
3729  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3730# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3731# work properly (i.e., refer to `conftest.exe'), while it won't with
3732# `rm'.
3733for ac_file in conftest.exe conftest conftest.*; do
3734  test -f "$ac_file" || continue
3735  case $ac_file in
3736    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3737    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3738	  break;;
3739    * ) break;;
3740  esac
3741done
3742else
3743  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3746See \`config.log' for more details" "$LINENO" 5; }
3747fi
3748rm -f conftest conftest$ac_cv_exeext
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3750$as_echo "$ac_cv_exeext" >&6; }
3751
3752rm -f conftest.$ac_ext
3753EXEEXT=$ac_cv_exeext
3754ac_exeext=$EXEEXT
3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757#include <stdio.h>
3758int
3759main ()
3760{
3761FILE *f = fopen ("conftest.out", "w");
3762 return ferror (f) || fclose (f) != 0;
3763
3764  ;
3765  return 0;
3766}
3767_ACEOF
3768ac_clean_files="$ac_clean_files conftest.out"
3769# Check that the compiler produces executables we can run.  If not, either
3770# the compiler is broken, or we cross compile.
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3772$as_echo_n "checking whether we are cross compiling... " >&6; }
3773if test "$cross_compiling" != yes; then
3774  { { ac_try="$ac_link"
3775case "(($ac_try" in
3776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777  *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780$as_echo "$ac_try_echo"; } >&5
3781  (eval "$ac_link") 2>&5
3782  ac_status=$?
3783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784  test $ac_status = 0; }
3785  if { ac_try='./conftest$ac_cv_exeext'
3786  { { case "(($ac_try" in
3787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788  *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791$as_echo "$ac_try_echo"; } >&5
3792  (eval "$ac_try") 2>&5
3793  ac_status=$?
3794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795  test $ac_status = 0; }; }; then
3796    cross_compiling=no
3797  else
3798    if test "$cross_compiling" = maybe; then
3799	cross_compiling=yes
3800    else
3801	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803as_fn_error $? "cannot run C compiled programs.
3804If you meant to cross compile, use \`--host'.
3805See \`config.log' for more details" "$LINENO" 5; }
3806    fi
3807  fi
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3810$as_echo "$cross_compiling" >&6; }
3811
3812rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3813ac_clean_files=$ac_clean_files_save
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3815$as_echo_n "checking for suffix of object files... " >&6; }
3816if ${ac_cv_objext+:} false; then :
3817  $as_echo_n "(cached) " >&6
3818else
3819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h.  */
3821
3822int
3823main ()
3824{
3825
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830rm -f conftest.o conftest.obj
3831if { { ac_try="$ac_compile"
3832case "(($ac_try" in
3833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834  *) ac_try_echo=$ac_try;;
3835esac
3836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837$as_echo "$ac_try_echo"; } >&5
3838  (eval "$ac_compile") 2>&5
3839  ac_status=$?
3840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841  test $ac_status = 0; }; then :
3842  for ac_file in conftest.o conftest.obj conftest.*; do
3843  test -f "$ac_file" || continue;
3844  case $ac_file in
3845    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3846    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3847       break;;
3848  esac
3849done
3850else
3851  $as_echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856as_fn_error $? "cannot compute suffix of object files: cannot compile
3857See \`config.log' for more details" "$LINENO" 5; }
3858fi
3859rm -f conftest.$ac_cv_objext conftest.$ac_ext
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3862$as_echo "$ac_cv_objext" >&6; }
3863OBJEXT=$ac_cv_objext
3864ac_objext=$OBJEXT
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3866$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3867if ${ac_cv_c_compiler_gnu+:} false; then :
3868  $as_echo_n "(cached) " >&6
3869else
3870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872
3873int
3874main ()
3875{
3876#ifndef __GNUC__
3877       choke me
3878#endif
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885  ac_compiler_gnu=yes
3886else
3887  ac_compiler_gnu=no
3888fi
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890ac_cv_c_compiler_gnu=$ac_compiler_gnu
3891
3892fi
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3894$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3895if test $ac_compiler_gnu = yes; then
3896  GCC=yes
3897else
3898  GCC=
3899fi
3900ac_test_CFLAGS=${CFLAGS+set}
3901ac_save_CFLAGS=$CFLAGS
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3903$as_echo_n "checking whether $CC accepts -g... " >&6; }
3904if ${ac_cv_prog_cc_g+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907  ac_save_c_werror_flag=$ac_c_werror_flag
3908   ac_c_werror_flag=yes
3909   ac_cv_prog_cc_g=no
3910   CFLAGS="-g"
3911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923  ac_cv_prog_cc_g=yes
3924else
3925  CFLAGS=""
3926      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927/* end confdefs.h.  */
3928
3929int
3930main ()
3931{
3932
3933  ;
3934  return 0;
3935}
3936_ACEOF
3937if ac_fn_c_try_compile "$LINENO"; then :
3938
3939else
3940  ac_c_werror_flag=$ac_save_c_werror_flag
3941	 CFLAGS="-g"
3942	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943/* end confdefs.h.  */
3944
3945int
3946main ()
3947{
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953if ac_fn_c_try_compile "$LINENO"; then :
3954  ac_cv_prog_cc_g=yes
3955fi
3956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959fi
3960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961   ac_c_werror_flag=$ac_save_c_werror_flag
3962fi
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3964$as_echo "$ac_cv_prog_cc_g" >&6; }
3965if test "$ac_test_CFLAGS" = set; then
3966  CFLAGS=$ac_save_CFLAGS
3967elif test $ac_cv_prog_cc_g = yes; then
3968  if test "$GCC" = yes; then
3969    CFLAGS="-g -O2"
3970  else
3971    CFLAGS="-g"
3972  fi
3973else
3974  if test "$GCC" = yes; then
3975    CFLAGS="-O2"
3976  else
3977    CFLAGS=
3978  fi
3979fi
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3981$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3982if ${ac_cv_prog_cc_c89+:} false; then :
3983  $as_echo_n "(cached) " >&6
3984else
3985  ac_cv_prog_cc_c89=no
3986ac_save_CC=$CC
3987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h.  */
3989#include <stdarg.h>
3990#include <stdio.h>
3991struct stat;
3992/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3993struct buf { int x; };
3994FILE * (*rcsopen) (struct buf *, struct stat *, int);
3995static char *e (p, i)
3996     char **p;
3997     int i;
3998{
3999  return p[i];
4000}
4001static char *f (char * (*g) (char **, int), char **p, ...)
4002{
4003  char *s;
4004  va_list v;
4005  va_start (v,p);
4006  s = g (p, va_arg (v,int));
4007  va_end (v);
4008  return s;
4009}
4010
4011/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4012   function prototypes and stuff, but not '\xHH' hex character constants.
4013   These don't provoke an error unfortunately, instead are silently treated
4014   as 'x'.  The following induces an error, until -std is added to get
4015   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4016   array size at least.  It's necessary to write '\x00'==0 to get something
4017   that's true only with -std.  */
4018int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4019
4020/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4021   inside strings and character constants.  */
4022#define FOO(x) 'x'
4023int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4024
4025int test (int i, double x);
4026struct s1 {int (*f) (int a);};
4027struct s2 {int (*f) (double a);};
4028int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4029int argc;
4030char **argv;
4031int
4032main ()
4033{
4034return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4040	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041do
4042  CC="$ac_save_CC $ac_arg"
4043  if ac_fn_c_try_compile "$LINENO"; then :
4044  ac_cv_prog_cc_c89=$ac_arg
4045fi
4046rm -f core conftest.err conftest.$ac_objext
4047  test "x$ac_cv_prog_cc_c89" != "xno" && break
4048done
4049rm -f conftest.$ac_ext
4050CC=$ac_save_CC
4051
4052fi
4053# AC_CACHE_VAL
4054case "x$ac_cv_prog_cc_c89" in
4055  x)
4056    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4057$as_echo "none needed" >&6; } ;;
4058  xno)
4059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4060$as_echo "unsupported" >&6; } ;;
4061  *)
4062    CC="$CC $ac_cv_prog_cc_c89"
4063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4064$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4065esac
4066if test "x$ac_cv_prog_cc_c89" != xno; then :
4067
4068fi
4069
4070ac_ext=c
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076ac_ext=c
4077ac_cpp='$CPP $CPPFLAGS'
4078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4082$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4083if ${am_cv_prog_cc_c_o+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088
4089int
4090main ()
4091{
4092
4093  ;
4094  return 0;
4095}
4096_ACEOF
4097  # Make sure it works both with $CC and with simple cc.
4098  # Following AC_PROG_CC_C_O, we do the test twice because some
4099  # compilers refuse to overwrite an existing .o file with -o,
4100  # though they will create one.
4101  am_cv_prog_cc_c_o=yes
4102  for am_i in 1 2; do
4103    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4104   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } \
4108         && test -f conftest2.$ac_objext; then
4109      : OK
4110    else
4111      am_cv_prog_cc_c_o=no
4112      break
4113    fi
4114  done
4115  rm -f core conftest*
4116  unset am_i
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4119$as_echo "$am_cv_prog_cc_c_o" >&6; }
4120if test "$am_cv_prog_cc_c_o" != yes; then
4121   # Losing compiler, so override with the script.
4122   # FIXME: It is wrong to rewrite CC.
4123   # But if we don't then we get into trouble of one sort or another.
4124   # A longer-term fix would be to have automake use am__CC in this case,
4125   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4126   CC="$am_aux_dir/compile $CC"
4127fi
4128ac_ext=c
4129ac_cpp='$CPP $CPPFLAGS'
4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134
4135depcc="$CC"   am_compiler_list=
4136
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4138$as_echo_n "checking dependency style of $depcc... " >&6; }
4139if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4140  $as_echo_n "(cached) " >&6
4141else
4142  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4143  # We make a subdir and do the tests there.  Otherwise we can end up
4144  # making bogus files that we don't know about and never remove.  For
4145  # instance it was reported that on HP-UX the gcc test will end up
4146  # making a dummy file named 'D' -- because '-MD' means "put the output
4147  # in D".
4148  rm -rf conftest.dir
4149  mkdir conftest.dir
4150  # Copy depcomp to subdir because otherwise we won't find it if we're
4151  # using a relative directory.
4152  cp "$am_depcomp" conftest.dir
4153  cd conftest.dir
4154  # We will build objects and dependencies in a subdirectory because
4155  # it helps to detect inapplicable dependency modes.  For instance
4156  # both Tru64's cc and ICC support -MD to output dependencies as a
4157  # side effect of compilation, but ICC will put the dependencies in
4158  # the current directory while Tru64 will put them in the object
4159  # directory.
4160  mkdir sub
4161
4162  am_cv_CC_dependencies_compiler_type=none
4163  if test "$am_compiler_list" = ""; then
4164     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4165  fi
4166  am__universal=false
4167  case " $depcc " in #(
4168     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4169     esac
4170
4171  for depmode in $am_compiler_list; do
4172    # Setup a source with many dependencies, because some compilers
4173    # like to wrap large dependency lists on column 80 (with \), and
4174    # we should not choose a depcomp mode which is confused by this.
4175    #
4176    # We need to recreate these files for each test, as the compiler may
4177    # overwrite some of them when testing with obscure command lines.
4178    # This happens at least with the AIX C compiler.
4179    : > sub/conftest.c
4180    for i in 1 2 3 4 5 6; do
4181      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4182      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4183      # Solaris 10 /bin/sh.
4184      echo '/* dummy */' > sub/conftst$i.h
4185    done
4186    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4187
4188    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4189    # mode.  It turns out that the SunPro C++ compiler does not properly
4190    # handle '-M -o', and we need to detect this.  Also, some Intel
4191    # versions had trouble with output in subdirs.
4192    am__obj=sub/conftest.${OBJEXT-o}
4193    am__minus_obj="-o $am__obj"
4194    case $depmode in
4195    gcc)
4196      # This depmode causes a compiler race in universal mode.
4197      test "$am__universal" = false || continue
4198      ;;
4199    nosideeffect)
4200      # After this tag, mechanisms are not by side-effect, so they'll
4201      # only be used when explicitly requested.
4202      if test "x$enable_dependency_tracking" = xyes; then
4203	continue
4204      else
4205	break
4206      fi
4207      ;;
4208    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4209      # This compiler won't grok '-c -o', but also, the minuso test has
4210      # not run yet.  These depmodes are late enough in the game, and
4211      # so weak that their functioning should not be impacted.
4212      am__obj=conftest.${OBJEXT-o}
4213      am__minus_obj=
4214      ;;
4215    none) break ;;
4216    esac
4217    if depmode=$depmode \
4218       source=sub/conftest.c object=$am__obj \
4219       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4220       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4221         >/dev/null 2>conftest.err &&
4222       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4223       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4224       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4225       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4226      # icc doesn't choke on unknown options, it will just issue warnings
4227      # or remarks (even with -Werror).  So we grep stderr for any message
4228      # that says an option was ignored or not supported.
4229      # When given -MP, icc 7.0 and 7.1 complain thusly:
4230      #   icc: Command line warning: ignoring option '-M'; no argument required
4231      # The diagnosis changed in icc 8.0:
4232      #   icc: Command line remark: option '-MP' not supported
4233      if (grep 'ignoring option' conftest.err ||
4234          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4235        am_cv_CC_dependencies_compiler_type=$depmode
4236        break
4237      fi
4238    fi
4239  done
4240
4241  cd ..
4242  rm -rf conftest.dir
4243else
4244  am_cv_CC_dependencies_compiler_type=none
4245fi
4246
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4249$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4250CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4251
4252 if
4253  test "x$enable_dependency_tracking" != xno \
4254  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4255  am__fastdepCC_TRUE=
4256  am__fastdepCC_FALSE='#'
4257else
4258  am__fastdepCC_TRUE='#'
4259  am__fastdepCC_FALSE=
4260fi
4261
4262
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4264$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4265if ${ac_cv_path_SED+:} false; then :
4266  $as_echo_n "(cached) " >&6
4267else
4268            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4269     for ac_i in 1 2 3 4 5 6 7; do
4270       ac_script="$ac_script$as_nl$ac_script"
4271     done
4272     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4273     { ac_script=; unset ac_script;}
4274     if test -z "$SED"; then
4275  ac_path_SED_found=false
4276  # Loop through the user's path and test for each of PROGNAME-LIST
4277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280  IFS=$as_save_IFS
4281  test -z "$as_dir" && as_dir=.
4282    for ac_prog in sed gsed; do
4283    for ac_exec_ext in '' $ac_executable_extensions; do
4284      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4285      as_fn_executable_p "$ac_path_SED" || continue
4286# Check for GNU ac_path_SED and select it if it is found.
4287  # Check for GNU $ac_path_SED
4288case `"$ac_path_SED" --version 2>&1` in
4289*GNU*)
4290  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4291*)
4292  ac_count=0
4293  $as_echo_n 0123456789 >"conftest.in"
4294  while :
4295  do
4296    cat "conftest.in" "conftest.in" >"conftest.tmp"
4297    mv "conftest.tmp" "conftest.in"
4298    cp "conftest.in" "conftest.nl"
4299    $as_echo '' >> "conftest.nl"
4300    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302    as_fn_arith $ac_count + 1 && ac_count=$as_val
4303    if test $ac_count -gt ${ac_path_SED_max-0}; then
4304      # Best one so far, save it but keep looking for a better one
4305      ac_cv_path_SED="$ac_path_SED"
4306      ac_path_SED_max=$ac_count
4307    fi
4308    # 10*(2^10) chars as input seems more than enough
4309    test $ac_count -gt 10 && break
4310  done
4311  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312esac
4313
4314      $ac_path_SED_found && break 3
4315    done
4316  done
4317  done
4318IFS=$as_save_IFS
4319  if test -z "$ac_cv_path_SED"; then
4320    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4321  fi
4322else
4323  ac_cv_path_SED=$SED
4324fi
4325
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4328$as_echo "$ac_cv_path_SED" >&6; }
4329 SED="$ac_cv_path_SED"
4330  rm -f conftest.sed
4331
4332test -z "$SED" && SED=sed
4333Xsed="$SED -e 1s/^X//"
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4346$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4347if ${ac_cv_path_GREP+:} false; then :
4348  $as_echo_n "(cached) " >&6
4349else
4350  if test -z "$GREP"; then
4351  ac_path_GREP_found=false
4352  # Loop through the user's path and test for each of PROGNAME-LIST
4353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355do
4356  IFS=$as_save_IFS
4357  test -z "$as_dir" && as_dir=.
4358    for ac_prog in grep ggrep; do
4359    for ac_exec_ext in '' $ac_executable_extensions; do
4360      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4361      as_fn_executable_p "$ac_path_GREP" || continue
4362# Check for GNU ac_path_GREP and select it if it is found.
4363  # Check for GNU $ac_path_GREP
4364case `"$ac_path_GREP" --version 2>&1` in
4365*GNU*)
4366  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4367*)
4368  ac_count=0
4369  $as_echo_n 0123456789 >"conftest.in"
4370  while :
4371  do
4372    cat "conftest.in" "conftest.in" >"conftest.tmp"
4373    mv "conftest.tmp" "conftest.in"
4374    cp "conftest.in" "conftest.nl"
4375    $as_echo 'GREP' >> "conftest.nl"
4376    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378    as_fn_arith $ac_count + 1 && ac_count=$as_val
4379    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4380      # Best one so far, save it but keep looking for a better one
4381      ac_cv_path_GREP="$ac_path_GREP"
4382      ac_path_GREP_max=$ac_count
4383    fi
4384    # 10*(2^10) chars as input seems more than enough
4385    test $ac_count -gt 10 && break
4386  done
4387  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388esac
4389
4390      $ac_path_GREP_found && break 3
4391    done
4392  done
4393  done
4394IFS=$as_save_IFS
4395  if test -z "$ac_cv_path_GREP"; then
4396    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397  fi
4398else
4399  ac_cv_path_GREP=$GREP
4400fi
4401
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4404$as_echo "$ac_cv_path_GREP" >&6; }
4405 GREP="$ac_cv_path_GREP"
4406
4407
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4409$as_echo_n "checking for egrep... " >&6; }
4410if ${ac_cv_path_EGREP+:} false; then :
4411  $as_echo_n "(cached) " >&6
4412else
4413  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4414   then ac_cv_path_EGREP="$GREP -E"
4415   else
4416     if test -z "$EGREP"; then
4417  ac_path_EGREP_found=false
4418  # Loop through the user's path and test for each of PROGNAME-LIST
4419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421do
4422  IFS=$as_save_IFS
4423  test -z "$as_dir" && as_dir=.
4424    for ac_prog in egrep; do
4425    for ac_exec_ext in '' $ac_executable_extensions; do
4426      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4427      as_fn_executable_p "$ac_path_EGREP" || continue
4428# Check for GNU ac_path_EGREP and select it if it is found.
4429  # Check for GNU $ac_path_EGREP
4430case `"$ac_path_EGREP" --version 2>&1` in
4431*GNU*)
4432  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4433*)
4434  ac_count=0
4435  $as_echo_n 0123456789 >"conftest.in"
4436  while :
4437  do
4438    cat "conftest.in" "conftest.in" >"conftest.tmp"
4439    mv "conftest.tmp" "conftest.in"
4440    cp "conftest.in" "conftest.nl"
4441    $as_echo 'EGREP' >> "conftest.nl"
4442    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444    as_fn_arith $ac_count + 1 && ac_count=$as_val
4445    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4446      # Best one so far, save it but keep looking for a better one
4447      ac_cv_path_EGREP="$ac_path_EGREP"
4448      ac_path_EGREP_max=$ac_count
4449    fi
4450    # 10*(2^10) chars as input seems more than enough
4451    test $ac_count -gt 10 && break
4452  done
4453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454esac
4455
4456      $ac_path_EGREP_found && break 3
4457    done
4458  done
4459  done
4460IFS=$as_save_IFS
4461  if test -z "$ac_cv_path_EGREP"; then
4462    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463  fi
4464else
4465  ac_cv_path_EGREP=$EGREP
4466fi
4467
4468   fi
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4471$as_echo "$ac_cv_path_EGREP" >&6; }
4472 EGREP="$ac_cv_path_EGREP"
4473
4474
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4476$as_echo_n "checking for fgrep... " >&6; }
4477if ${ac_cv_path_FGREP+:} false; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4481   then ac_cv_path_FGREP="$GREP -F"
4482   else
4483     if test -z "$FGREP"; then
4484  ac_path_FGREP_found=false
4485  # Loop through the user's path and test for each of PROGNAME-LIST
4486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4488do
4489  IFS=$as_save_IFS
4490  test -z "$as_dir" && as_dir=.
4491    for ac_prog in fgrep; do
4492    for ac_exec_ext in '' $ac_executable_extensions; do
4493      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4494      as_fn_executable_p "$ac_path_FGREP" || continue
4495# Check for GNU ac_path_FGREP and select it if it is found.
4496  # Check for GNU $ac_path_FGREP
4497case `"$ac_path_FGREP" --version 2>&1` in
4498*GNU*)
4499  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4500*)
4501  ac_count=0
4502  $as_echo_n 0123456789 >"conftest.in"
4503  while :
4504  do
4505    cat "conftest.in" "conftest.in" >"conftest.tmp"
4506    mv "conftest.tmp" "conftest.in"
4507    cp "conftest.in" "conftest.nl"
4508    $as_echo 'FGREP' >> "conftest.nl"
4509    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511    as_fn_arith $ac_count + 1 && ac_count=$as_val
4512    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4513      # Best one so far, save it but keep looking for a better one
4514      ac_cv_path_FGREP="$ac_path_FGREP"
4515      ac_path_FGREP_max=$ac_count
4516    fi
4517    # 10*(2^10) chars as input seems more than enough
4518    test $ac_count -gt 10 && break
4519  done
4520  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521esac
4522
4523      $ac_path_FGREP_found && break 3
4524    done
4525  done
4526  done
4527IFS=$as_save_IFS
4528  if test -z "$ac_cv_path_FGREP"; then
4529    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4530  fi
4531else
4532  ac_cv_path_FGREP=$FGREP
4533fi
4534
4535   fi
4536fi
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4538$as_echo "$ac_cv_path_FGREP" >&6; }
4539 FGREP="$ac_cv_path_FGREP"
4540
4541
4542test -z "$GREP" && GREP=grep
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562# Check whether --with-gnu-ld was given.
4563if test "${with_gnu_ld+set}" = set; then :
4564  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4565else
4566  with_gnu_ld=no
4567fi
4568
4569ac_prog=ld
4570if test yes = "$GCC"; then
4571  # Check if gcc -print-prog-name=ld gives a path.
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4573$as_echo_n "checking for ld used by $CC... " >&6; }
4574  case $host in
4575  *-*-mingw*)
4576    # gcc leaves a trailing carriage return, which upsets mingw
4577    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4578  *)
4579    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4580  esac
4581  case $ac_prog in
4582    # Accept absolute paths.
4583    [\\/]* | ?:[\\/]*)
4584      re_direlt='/[^/][^/]*/\.\./'
4585      # Canonicalize the pathname of ld
4586      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4587      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4588	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4589      done
4590      test -z "$LD" && LD=$ac_prog
4591      ;;
4592  "")
4593    # If it fails, then pretend we aren't using GCC.
4594    ac_prog=ld
4595    ;;
4596  *)
4597    # If it is relative, then search for the first ld in PATH.
4598    with_gnu_ld=unknown
4599    ;;
4600  esac
4601elif test yes = "$with_gnu_ld"; then
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4603$as_echo_n "checking for GNU ld... " >&6; }
4604else
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4606$as_echo_n "checking for non-GNU ld... " >&6; }
4607fi
4608if ${lt_cv_path_LD+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611  if test -z "$LD"; then
4612  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4613  for ac_dir in $PATH; do
4614    IFS=$lt_save_ifs
4615    test -z "$ac_dir" && ac_dir=.
4616    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4617      lt_cv_path_LD=$ac_dir/$ac_prog
4618      # Check to see if the program is GNU ld.  I'd rather use --version,
4619      # but apparently some variants of GNU ld only accept -v.
4620      # Break only if it was the GNU/non-GNU ld that we prefer.
4621      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4622      *GNU* | *'with BFD'*)
4623	test no != "$with_gnu_ld" && break
4624	;;
4625      *)
4626	test yes != "$with_gnu_ld" && break
4627	;;
4628      esac
4629    fi
4630  done
4631  IFS=$lt_save_ifs
4632else
4633  lt_cv_path_LD=$LD # Let the user override the test with a path.
4634fi
4635fi
4636
4637LD=$lt_cv_path_LD
4638if test -n "$LD"; then
4639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4640$as_echo "$LD" >&6; }
4641else
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643$as_echo "no" >&6; }
4644fi
4645test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4647$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4648if ${lt_cv_prog_gnu_ld+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4652case `$LD -v 2>&1 </dev/null` in
4653*GNU* | *'with BFD'*)
4654  lt_cv_prog_gnu_ld=yes
4655  ;;
4656*)
4657  lt_cv_prog_gnu_ld=no
4658  ;;
4659esac
4660fi
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4662$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4663with_gnu_ld=$lt_cv_prog_gnu_ld
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4674$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4675if ${lt_cv_path_NM+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  if test -n "$NM"; then
4679  # Let the user override the test.
4680  lt_cv_path_NM=$NM
4681else
4682  lt_nm_to_check=${ac_tool_prefix}nm
4683  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4684    lt_nm_to_check="$lt_nm_to_check nm"
4685  fi
4686  for lt_tmp_nm in $lt_nm_to_check; do
4687    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4688    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4689      IFS=$lt_save_ifs
4690      test -z "$ac_dir" && ac_dir=.
4691      tmp_nm=$ac_dir/$lt_tmp_nm
4692      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4693	# Check to see if the nm accepts a BSD-compat flag.
4694	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4695	#   nm: unknown option "B" ignored
4696	# Tru64's nm complains that /dev/null is an invalid object file
4697	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4698	case $build_os in
4699	mingw*) lt_bad_file=conftest.nm/nofile ;;
4700	*) lt_bad_file=/dev/null ;;
4701	esac
4702	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4703	*$lt_bad_file* | *'Invalid file or object type'*)
4704	  lt_cv_path_NM="$tmp_nm -B"
4705	  break 2
4706	  ;;
4707	*)
4708	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4709	  */dev/null*)
4710	    lt_cv_path_NM="$tmp_nm -p"
4711	    break 2
4712	    ;;
4713	  *)
4714	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4715	    continue # so that we can try to find one that supports BSD flags
4716	    ;;
4717	  esac
4718	  ;;
4719	esac
4720      fi
4721    done
4722    IFS=$lt_save_ifs
4723  done
4724  : ${lt_cv_path_NM=no}
4725fi
4726fi
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4728$as_echo "$lt_cv_path_NM" >&6; }
4729if test no != "$lt_cv_path_NM"; then
4730  NM=$lt_cv_path_NM
4731else
4732  # Didn't find any BSD compatible name lister, look for dumpbin.
4733  if test -n "$DUMPBIN"; then :
4734    # Let the user override the test.
4735  else
4736    if test -n "$ac_tool_prefix"; then
4737  for ac_prog in dumpbin "link -dump"
4738  do
4739    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742$as_echo_n "checking for $ac_word... " >&6; }
4743if ${ac_cv_prog_DUMPBIN+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  if test -n "$DUMPBIN"; then
4747  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754    for ac_exec_ext in '' $ac_executable_extensions; do
4755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761  done
4762IFS=$as_save_IFS
4763
4764fi
4765fi
4766DUMPBIN=$ac_cv_prog_DUMPBIN
4767if test -n "$DUMPBIN"; then
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4769$as_echo "$DUMPBIN" >&6; }
4770else
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772$as_echo "no" >&6; }
4773fi
4774
4775
4776    test -n "$DUMPBIN" && break
4777  done
4778fi
4779if test -z "$DUMPBIN"; then
4780  ac_ct_DUMPBIN=$DUMPBIN
4781  for ac_prog in dumpbin "link -dump"
4782do
4783  # Extract the first word of "$ac_prog", so it can be a program name with args.
4784set dummy $ac_prog; ac_word=$2
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786$as_echo_n "checking for $ac_word... " >&6; }
4787if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4788  $as_echo_n "(cached) " >&6
4789else
4790  if test -n "$ac_ct_DUMPBIN"; then
4791  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796  IFS=$as_save_IFS
4797  test -z "$as_dir" && as_dir=.
4798    for ac_exec_ext in '' $ac_executable_extensions; do
4799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802    break 2
4803  fi
4804done
4805  done
4806IFS=$as_save_IFS
4807
4808fi
4809fi
4810ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4811if test -n "$ac_ct_DUMPBIN"; then
4812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4813$as_echo "$ac_ct_DUMPBIN" >&6; }
4814else
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817fi
4818
4819
4820  test -n "$ac_ct_DUMPBIN" && break
4821done
4822
4823  if test "x$ac_ct_DUMPBIN" = x; then
4824    DUMPBIN=":"
4825  else
4826    case $cross_compiling:$ac_tool_warned in
4827yes:)
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830ac_tool_warned=yes ;;
4831esac
4832    DUMPBIN=$ac_ct_DUMPBIN
4833  fi
4834fi
4835
4836    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4837    *COFF*)
4838      DUMPBIN="$DUMPBIN -symbols -headers"
4839      ;;
4840    *)
4841      DUMPBIN=:
4842      ;;
4843    esac
4844  fi
4845
4846  if test : != "$DUMPBIN"; then
4847    NM=$DUMPBIN
4848  fi
4849fi
4850test -z "$NM" && NM=nm
4851
4852
4853
4854
4855
4856
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4858$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4859if ${lt_cv_nm_interface+:} false; then :
4860  $as_echo_n "(cached) " >&6
4861else
4862  lt_cv_nm_interface="BSD nm"
4863  echo "int some_variable = 0;" > conftest.$ac_ext
4864  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4865  (eval "$ac_compile" 2>conftest.err)
4866  cat conftest.err >&5
4867  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4868  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4869  cat conftest.err >&5
4870  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4871  cat conftest.out >&5
4872  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4873    lt_cv_nm_interface="MS dumpbin"
4874  fi
4875  rm -f conftest*
4876fi
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4878$as_echo "$lt_cv_nm_interface" >&6; }
4879
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4881$as_echo_n "checking whether ln -s works... " >&6; }
4882LN_S=$as_ln_s
4883if test "$LN_S" = "ln -s"; then
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4885$as_echo "yes" >&6; }
4886else
4887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4888$as_echo "no, using $LN_S" >&6; }
4889fi
4890
4891# find the maximum length of command line arguments
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4893$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4894if ${lt_cv_sys_max_cmd_len+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897    i=0
4898  teststring=ABCD
4899
4900  case $build_os in
4901  msdosdjgpp*)
4902    # On DJGPP, this test can blow up pretty badly due to problems in libc
4903    # (any single argument exceeding 2000 bytes causes a buffer overrun
4904    # during glob expansion).  Even if it were fixed, the result of this
4905    # check would be larger than it should be.
4906    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4907    ;;
4908
4909  gnu*)
4910    # Under GNU Hurd, this test is not required because there is
4911    # no limit to the length of command line arguments.
4912    # Libtool will interpret -1 as no limit whatsoever
4913    lt_cv_sys_max_cmd_len=-1;
4914    ;;
4915
4916  cygwin* | mingw* | cegcc*)
4917    # On Win9x/ME, this test blows up -- it succeeds, but takes
4918    # about 5 minutes as the teststring grows exponentially.
4919    # Worse, since 9x/ME are not pre-emptively multitasking,
4920    # you end up with a "frozen" computer, even though with patience
4921    # the test eventually succeeds (with a max line length of 256k).
4922    # Instead, let's just punt: use the minimum linelength reported by
4923    # all of the supported platforms: 8192 (on NT/2K/XP).
4924    lt_cv_sys_max_cmd_len=8192;
4925    ;;
4926
4927  mint*)
4928    # On MiNT this can take a long time and run out of memory.
4929    lt_cv_sys_max_cmd_len=8192;
4930    ;;
4931
4932  amigaos*)
4933    # On AmigaOS with pdksh, this test takes hours, literally.
4934    # So we just punt and use a minimum line length of 8192.
4935    lt_cv_sys_max_cmd_len=8192;
4936    ;;
4937
4938  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4939    # This has been around since 386BSD, at least.  Likely further.
4940    if test -x /sbin/sysctl; then
4941      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4942    elif test -x /usr/sbin/sysctl; then
4943      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4944    else
4945      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4946    fi
4947    # And add a safety zone
4948    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4949    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4950    ;;
4951
4952  interix*)
4953    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4954    lt_cv_sys_max_cmd_len=196608
4955    ;;
4956
4957  os2*)
4958    # The test takes a long time on OS/2.
4959    lt_cv_sys_max_cmd_len=8192
4960    ;;
4961
4962  osf*)
4963    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4964    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4965    # nice to cause kernel panics so lets avoid the loop below.
4966    # First set a reasonable default.
4967    lt_cv_sys_max_cmd_len=16384
4968    #
4969    if test -x /sbin/sysconfig; then
4970      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4971        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4972      esac
4973    fi
4974    ;;
4975  sco3.2v5*)
4976    lt_cv_sys_max_cmd_len=102400
4977    ;;
4978  sysv5* | sco5v6* | sysv4.2uw2*)
4979    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4980    if test -n "$kargmax"; then
4981      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4982    else
4983      lt_cv_sys_max_cmd_len=32768
4984    fi
4985    ;;
4986  *)
4987    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4988    if test -n "$lt_cv_sys_max_cmd_len" && \
4989       test undefined != "$lt_cv_sys_max_cmd_len"; then
4990      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4991      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4992    else
4993      # Make teststring a little bigger before we do anything with it.
4994      # a 1K string should be a reasonable start.
4995      for i in 1 2 3 4 5 6 7 8; do
4996        teststring=$teststring$teststring
4997      done
4998      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4999      # If test is not a shell built-in, we'll probably end up computing a
5000      # maximum length that is only half of the actual maximum length, but
5001      # we can't tell.
5002      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5003	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5004	      test 17 != "$i" # 1/2 MB should be enough
5005      do
5006        i=`expr $i + 1`
5007        teststring=$teststring$teststring
5008      done
5009      # Only check the string length outside the loop.
5010      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5011      teststring=
5012      # Add a significant safety factor because C++ compilers can tack on
5013      # massive amounts of additional arguments before passing them to the
5014      # linker.  It appears as though 1/2 is a usable value.
5015      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5016    fi
5017    ;;
5018  esac
5019
5020fi
5021
5022if test -n "$lt_cv_sys_max_cmd_len"; then
5023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5024$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5025else
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5027$as_echo "none" >&6; }
5028fi
5029max_cmd_len=$lt_cv_sys_max_cmd_len
5030
5031
5032
5033
5034
5035
5036: ${CP="cp -f"}
5037: ${MV="mv -f"}
5038: ${RM="rm -f"}
5039
5040if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5041  lt_unset=unset
5042else
5043  lt_unset=false
5044fi
5045
5046
5047
5048
5049
5050# test EBCDIC or ASCII
5051case `echo X|tr X '\101'` in
5052 A) # ASCII based system
5053    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5054  lt_SP2NL='tr \040 \012'
5055  lt_NL2SP='tr \015\012 \040\040'
5056  ;;
5057 *) # EBCDIC based system
5058  lt_SP2NL='tr \100 \n'
5059  lt_NL2SP='tr \r\n \100\100'
5060  ;;
5061esac
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5072$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5073if ${lt_cv_to_host_file_cmd+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  case $host in
5077  *-*-mingw* )
5078    case $build in
5079      *-*-mingw* ) # actually msys
5080        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5081        ;;
5082      *-*-cygwin* )
5083        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5084        ;;
5085      * ) # otherwise, assume *nix
5086        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5087        ;;
5088    esac
5089    ;;
5090  *-*-cygwin* )
5091    case $build in
5092      *-*-mingw* ) # actually msys
5093        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5094        ;;
5095      *-*-cygwin* )
5096        lt_cv_to_host_file_cmd=func_convert_file_noop
5097        ;;
5098      * ) # otherwise, assume *nix
5099        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5100        ;;
5101    esac
5102    ;;
5103  * ) # unhandled hosts (and "normal" native builds)
5104    lt_cv_to_host_file_cmd=func_convert_file_noop
5105    ;;
5106esac
5107
5108fi
5109
5110to_host_file_cmd=$lt_cv_to_host_file_cmd
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5112$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5113
5114
5115
5116
5117
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5119$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5120if ${lt_cv_to_tool_file_cmd+:} false; then :
5121  $as_echo_n "(cached) " >&6
5122else
5123  #assume ordinary cross tools, or native build.
5124lt_cv_to_tool_file_cmd=func_convert_file_noop
5125case $host in
5126  *-*-mingw* )
5127    case $build in
5128      *-*-mingw* ) # actually msys
5129        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5130        ;;
5131    esac
5132    ;;
5133esac
5134
5135fi
5136
5137to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5139$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5140
5141
5142
5143
5144
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5146$as_echo_n "checking for $LD option to reload object files... " >&6; }
5147if ${lt_cv_ld_reload_flag+:} false; then :
5148  $as_echo_n "(cached) " >&6
5149else
5150  lt_cv_ld_reload_flag='-r'
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5153$as_echo "$lt_cv_ld_reload_flag" >&6; }
5154reload_flag=$lt_cv_ld_reload_flag
5155case $reload_flag in
5156"" | " "*) ;;
5157*) reload_flag=" $reload_flag" ;;
5158esac
5159reload_cmds='$LD$reload_flag -o $output$reload_objs'
5160case $host_os in
5161  cygwin* | mingw* | pw32* | cegcc*)
5162    if test yes != "$GCC"; then
5163      reload_cmds=false
5164    fi
5165    ;;
5166  darwin*)
5167    if test yes = "$GCC"; then
5168      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5169    else
5170      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5171    fi
5172    ;;
5173esac
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183if test -n "$ac_tool_prefix"; then
5184  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5185set dummy ${ac_tool_prefix}objdump; ac_word=$2
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187$as_echo_n "checking for $ac_word... " >&6; }
5188if ${ac_cv_prog_OBJDUMP+:} false; then :
5189  $as_echo_n "(cached) " >&6
5190else
5191  if test -n "$OBJDUMP"; then
5192  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197  IFS=$as_save_IFS
5198  test -z "$as_dir" && as_dir=.
5199    for ac_exec_ext in '' $ac_executable_extensions; do
5200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203    break 2
5204  fi
5205done
5206  done
5207IFS=$as_save_IFS
5208
5209fi
5210fi
5211OBJDUMP=$ac_cv_prog_OBJDUMP
5212if test -n "$OBJDUMP"; then
5213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5214$as_echo "$OBJDUMP" >&6; }
5215else
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
5218fi
5219
5220
5221fi
5222if test -z "$ac_cv_prog_OBJDUMP"; then
5223  ac_ct_OBJDUMP=$OBJDUMP
5224  # Extract the first word of "objdump", so it can be a program name with args.
5225set dummy objdump; ac_word=$2
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227$as_echo_n "checking for $ac_word... " >&6; }
5228if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231  if test -n "$ac_ct_OBJDUMP"; then
5232  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237  IFS=$as_save_IFS
5238  test -z "$as_dir" && as_dir=.
5239    for ac_exec_ext in '' $ac_executable_extensions; do
5240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243    break 2
5244  fi
5245done
5246  done
5247IFS=$as_save_IFS
5248
5249fi
5250fi
5251ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5252if test -n "$ac_ct_OBJDUMP"; then
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5254$as_echo "$ac_ct_OBJDUMP" >&6; }
5255else
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
5258fi
5259
5260  if test "x$ac_ct_OBJDUMP" = x; then
5261    OBJDUMP="false"
5262  else
5263    case $cross_compiling:$ac_tool_warned in
5264yes:)
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5267ac_tool_warned=yes ;;
5268esac
5269    OBJDUMP=$ac_ct_OBJDUMP
5270  fi
5271else
5272  OBJDUMP="$ac_cv_prog_OBJDUMP"
5273fi
5274
5275test -z "$OBJDUMP" && OBJDUMP=objdump
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5286$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5287if ${lt_cv_deplibs_check_method+:} false; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290  lt_cv_file_magic_cmd='$MAGIC_CMD'
5291lt_cv_file_magic_test_file=
5292lt_cv_deplibs_check_method='unknown'
5293# Need to set the preceding variable on all platforms that support
5294# interlibrary dependencies.
5295# 'none' -- dependencies not supported.
5296# 'unknown' -- same as none, but documents that we really don't know.
5297# 'pass_all' -- all dependencies passed with no checks.
5298# 'test_compile' -- check by making test program.
5299# 'file_magic [[regex]]' -- check by looking for files in library path
5300# that responds to the $file_magic_cmd with a given extended regex.
5301# If you have 'file' or equivalent on your system and you're not sure
5302# whether 'pass_all' will *always* work, you probably want this one.
5303
5304case $host_os in
5305aix[4-9]*)
5306  lt_cv_deplibs_check_method=pass_all
5307  ;;
5308
5309beos*)
5310  lt_cv_deplibs_check_method=pass_all
5311  ;;
5312
5313bsdi[45]*)
5314  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5315  lt_cv_file_magic_cmd='/usr/bin/file -L'
5316  lt_cv_file_magic_test_file=/shlib/libc.so
5317  ;;
5318
5319cygwin*)
5320  # func_win32_libid is a shell function defined in ltmain.sh
5321  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5322  lt_cv_file_magic_cmd='func_win32_libid'
5323  ;;
5324
5325mingw* | pw32*)
5326  # Base MSYS/MinGW do not provide the 'file' command needed by
5327  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5328  # unless we find 'file', for example because we are cross-compiling.
5329  if ( file / ) >/dev/null 2>&1; then
5330    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5331    lt_cv_file_magic_cmd='func_win32_libid'
5332  else
5333    # Keep this pattern in sync with the one in func_win32_libid.
5334    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5335    lt_cv_file_magic_cmd='$OBJDUMP -f'
5336  fi
5337  ;;
5338
5339cegcc*)
5340  # use the weaker test based on 'objdump'. See mingw*.
5341  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5342  lt_cv_file_magic_cmd='$OBJDUMP -f'
5343  ;;
5344
5345darwin* | rhapsody*)
5346  lt_cv_deplibs_check_method=pass_all
5347  ;;
5348
5349freebsd* | dragonfly*)
5350  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5351    case $host_cpu in
5352    i*86 )
5353      # Not sure whether the presence of OpenBSD here was a mistake.
5354      # Let's accept both of them until this is cleared up.
5355      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5356      lt_cv_file_magic_cmd=/usr/bin/file
5357      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5358      ;;
5359    esac
5360  else
5361    lt_cv_deplibs_check_method=pass_all
5362  fi
5363  ;;
5364
5365haiku*)
5366  lt_cv_deplibs_check_method=pass_all
5367  ;;
5368
5369hpux10.20* | hpux11*)
5370  lt_cv_file_magic_cmd=/usr/bin/file
5371  case $host_cpu in
5372  ia64*)
5373    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5374    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5375    ;;
5376  hppa*64*)
5377    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]'
5378    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5379    ;;
5380  *)
5381    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5382    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5383    ;;
5384  esac
5385  ;;
5386
5387interix[3-9]*)
5388  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5389  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5390  ;;
5391
5392irix5* | irix6* | nonstopux*)
5393  case $LD in
5394  *-32|*"-32 ") libmagic=32-bit;;
5395  *-n32|*"-n32 ") libmagic=N32;;
5396  *-64|*"-64 ") libmagic=64-bit;;
5397  *) libmagic=never-match;;
5398  esac
5399  lt_cv_deplibs_check_method=pass_all
5400  ;;
5401
5402# This must be glibc/ELF.
5403linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5404  lt_cv_deplibs_check_method=pass_all
5405  ;;
5406
5407netbsd* | netbsdelf*-gnu)
5408  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5409    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5410  else
5411    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5412  fi
5413  ;;
5414
5415newos6*)
5416  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5417  lt_cv_file_magic_cmd=/usr/bin/file
5418  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5419  ;;
5420
5421*nto* | *qnx*)
5422  lt_cv_deplibs_check_method=pass_all
5423  ;;
5424
5425openbsd* | bitrig*)
5426  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5427    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5428  else
5429    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5430  fi
5431  ;;
5432
5433osf3* | osf4* | osf5*)
5434  lt_cv_deplibs_check_method=pass_all
5435  ;;
5436
5437rdos*)
5438  lt_cv_deplibs_check_method=pass_all
5439  ;;
5440
5441solaris*)
5442  lt_cv_deplibs_check_method=pass_all
5443  ;;
5444
5445sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5446  lt_cv_deplibs_check_method=pass_all
5447  ;;
5448
5449sysv4 | sysv4.3*)
5450  case $host_vendor in
5451  motorola)
5452    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]'
5453    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5454    ;;
5455  ncr)
5456    lt_cv_deplibs_check_method=pass_all
5457    ;;
5458  sequent)
5459    lt_cv_file_magic_cmd='/bin/file'
5460    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5461    ;;
5462  sni)
5463    lt_cv_file_magic_cmd='/bin/file'
5464    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5465    lt_cv_file_magic_test_file=/lib/libc.so
5466    ;;
5467  siemens)
5468    lt_cv_deplibs_check_method=pass_all
5469    ;;
5470  pc)
5471    lt_cv_deplibs_check_method=pass_all
5472    ;;
5473  esac
5474  ;;
5475
5476tpf*)
5477  lt_cv_deplibs_check_method=pass_all
5478  ;;
5479os2*)
5480  lt_cv_deplibs_check_method=pass_all
5481  ;;
5482esac
5483
5484fi
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5486$as_echo "$lt_cv_deplibs_check_method" >&6; }
5487
5488file_magic_glob=
5489want_nocaseglob=no
5490if test "$build" = "$host"; then
5491  case $host_os in
5492  mingw* | pw32*)
5493    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5494      want_nocaseglob=yes
5495    else
5496      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5497    fi
5498    ;;
5499  esac
5500fi
5501
5502file_magic_cmd=$lt_cv_file_magic_cmd
5503deplibs_check_method=$lt_cv_deplibs_check_method
5504test -z "$deplibs_check_method" && deplibs_check_method=unknown
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527if test -n "$ac_tool_prefix"; then
5528  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5529set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531$as_echo_n "checking for $ac_word... " >&6; }
5532if ${ac_cv_prog_DLLTOOL+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  if test -n "$DLLTOOL"; then
5536  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5537else
5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541  IFS=$as_save_IFS
5542  test -z "$as_dir" && as_dir=.
5543    for ac_exec_ext in '' $ac_executable_extensions; do
5544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547    break 2
5548  fi
5549done
5550  done
5551IFS=$as_save_IFS
5552
5553fi
5554fi
5555DLLTOOL=$ac_cv_prog_DLLTOOL
5556if test -n "$DLLTOOL"; then
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5558$as_echo "$DLLTOOL" >&6; }
5559else
5560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561$as_echo "no" >&6; }
5562fi
5563
5564
5565fi
5566if test -z "$ac_cv_prog_DLLTOOL"; then
5567  ac_ct_DLLTOOL=$DLLTOOL
5568  # Extract the first word of "dlltool", so it can be a program name with args.
5569set dummy dlltool; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  if test -n "$ac_ct_DLLTOOL"; then
5576  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583    for ac_exec_ext in '' $ac_executable_extensions; do
5584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587    break 2
5588  fi
5589done
5590  done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5596if test -n "$ac_ct_DLLTOOL"; then
5597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5598$as_echo "$ac_ct_DLLTOOL" >&6; }
5599else
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604  if test "x$ac_ct_DLLTOOL" = x; then
5605    DLLTOOL="false"
5606  else
5607    case $cross_compiling:$ac_tool_warned in
5608yes:)
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5611ac_tool_warned=yes ;;
5612esac
5613    DLLTOOL=$ac_ct_DLLTOOL
5614  fi
5615else
5616  DLLTOOL="$ac_cv_prog_DLLTOOL"
5617fi
5618
5619test -z "$DLLTOOL" && DLLTOOL=dlltool
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5631$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5632if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  lt_cv_sharedlib_from_linklib_cmd='unknown'
5636
5637case $host_os in
5638cygwin* | mingw* | pw32* | cegcc*)
5639  # two different shell functions defined in ltmain.sh;
5640  # decide which one to use based on capabilities of $DLLTOOL
5641  case `$DLLTOOL --help 2>&1` in
5642  *--identify-strict*)
5643    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5644    ;;
5645  *)
5646    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5647    ;;
5648  esac
5649  ;;
5650*)
5651  # fallback: assume linklib IS sharedlib
5652  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5653  ;;
5654esac
5655
5656fi
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5658$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5659sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5660test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5661
5662
5663
5664
5665
5666
5667
5668
5669if test -n "$ac_tool_prefix"; then
5670  for ac_prog in ar
5671  do
5672    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675$as_echo_n "checking for $ac_word... " >&6; }
5676if ${ac_cv_prog_AR+:} false; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  if test -n "$AR"; then
5680  ac_cv_prog_AR="$AR" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685  IFS=$as_save_IFS
5686  test -z "$as_dir" && as_dir=.
5687    for ac_exec_ext in '' $ac_executable_extensions; do
5688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691    break 2
5692  fi
5693done
5694  done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699AR=$ac_cv_prog_AR
5700if test -n "$AR"; then
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5702$as_echo "$AR" >&6; }
5703else
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }
5706fi
5707
5708
5709    test -n "$AR" && break
5710  done
5711fi
5712if test -z "$AR"; then
5713  ac_ct_AR=$AR
5714  for ac_prog in ar
5715do
5716  # Extract the first word of "$ac_prog", so it can be a program name with args.
5717set dummy $ac_prog; ac_word=$2
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719$as_echo_n "checking for $ac_word... " >&6; }
5720if ${ac_cv_prog_ac_ct_AR+:} false; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723  if test -n "$ac_ct_AR"; then
5724  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729  IFS=$as_save_IFS
5730  test -z "$as_dir" && as_dir=.
5731    for ac_exec_ext in '' $ac_executable_extensions; do
5732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733    ac_cv_prog_ac_ct_AR="$ac_prog"
5734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735    break 2
5736  fi
5737done
5738  done
5739IFS=$as_save_IFS
5740
5741fi
5742fi
5743ac_ct_AR=$ac_cv_prog_ac_ct_AR
5744if test -n "$ac_ct_AR"; then
5745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5746$as_echo "$ac_ct_AR" >&6; }
5747else
5748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
5750fi
5751
5752
5753  test -n "$ac_ct_AR" && break
5754done
5755
5756  if test "x$ac_ct_AR" = x; then
5757    AR="false"
5758  else
5759    case $cross_compiling:$ac_tool_warned in
5760yes:)
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5763ac_tool_warned=yes ;;
5764esac
5765    AR=$ac_ct_AR
5766  fi
5767fi
5768
5769: ${AR=ar}
5770: ${AR_FLAGS=cru}
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5783$as_echo_n "checking for archiver @FILE support... " >&6; }
5784if ${lt_cv_ar_at_file+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  lt_cv_ar_at_file=no
5788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h.  */
5790
5791int
5792main ()
5793{
5794
5795  ;
5796  return 0;
5797}
5798_ACEOF
5799if ac_fn_c_try_compile "$LINENO"; then :
5800  echo conftest.$ac_objext > conftest.lst
5801      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5802      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5803  (eval $lt_ar_try) 2>&5
5804  ac_status=$?
5805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806  test $ac_status = 0; }
5807      if test 0 -eq "$ac_status"; then
5808	# Ensure the archiver fails upon bogus file names.
5809	rm -f conftest.$ac_objext libconftest.a
5810	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5811  (eval $lt_ar_try) 2>&5
5812  ac_status=$?
5813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5814  test $ac_status = 0; }
5815	if test 0 -ne "$ac_status"; then
5816          lt_cv_ar_at_file=@
5817        fi
5818      fi
5819      rm -f conftest.* libconftest.a
5820
5821fi
5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823
5824fi
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5826$as_echo "$lt_cv_ar_at_file" >&6; }
5827
5828if test no = "$lt_cv_ar_at_file"; then
5829  archiver_list_spec=
5830else
5831  archiver_list_spec=$lt_cv_ar_at_file
5832fi
5833
5834
5835
5836
5837
5838
5839
5840if test -n "$ac_tool_prefix"; then
5841  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5842set dummy ${ac_tool_prefix}strip; ac_word=$2
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844$as_echo_n "checking for $ac_word... " >&6; }
5845if ${ac_cv_prog_STRIP+:} false; then :
5846  $as_echo_n "(cached) " >&6
5847else
5848  if test -n "$STRIP"; then
5849  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854  IFS=$as_save_IFS
5855  test -z "$as_dir" && as_dir=.
5856    for ac_exec_ext in '' $ac_executable_extensions; do
5857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860    break 2
5861  fi
5862done
5863  done
5864IFS=$as_save_IFS
5865
5866fi
5867fi
5868STRIP=$ac_cv_prog_STRIP
5869if test -n "$STRIP"; then
5870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5871$as_echo "$STRIP" >&6; }
5872else
5873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876
5877
5878fi
5879if test -z "$ac_cv_prog_STRIP"; then
5880  ac_ct_STRIP=$STRIP
5881  # Extract the first word of "strip", so it can be a program name with args.
5882set dummy strip; ac_word=$2
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884$as_echo_n "checking for $ac_word... " >&6; }
5885if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  if test -n "$ac_ct_STRIP"; then
5889  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5890else
5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894  IFS=$as_save_IFS
5895  test -z "$as_dir" && as_dir=.
5896    for ac_exec_ext in '' $ac_executable_extensions; do
5897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898    ac_cv_prog_ac_ct_STRIP="strip"
5899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903  done
5904IFS=$as_save_IFS
5905
5906fi
5907fi
5908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5909if test -n "$ac_ct_STRIP"; then
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5911$as_echo "$ac_ct_STRIP" >&6; }
5912else
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914$as_echo "no" >&6; }
5915fi
5916
5917  if test "x$ac_ct_STRIP" = x; then
5918    STRIP=":"
5919  else
5920    case $cross_compiling:$ac_tool_warned in
5921yes:)
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924ac_tool_warned=yes ;;
5925esac
5926    STRIP=$ac_ct_STRIP
5927  fi
5928else
5929  STRIP="$ac_cv_prog_STRIP"
5930fi
5931
5932test -z "$STRIP" && STRIP=:
5933
5934
5935
5936
5937
5938
5939if test -n "$ac_tool_prefix"; then
5940  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5941set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
5944if ${ac_cv_prog_RANLIB+:} false; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  if test -n "$RANLIB"; then
5948  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955    for ac_exec_ext in '' $ac_executable_extensions; do
5956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962  done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967RANLIB=$ac_cv_prog_RANLIB
5968if test -n "$RANLIB"; then
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5970$as_echo "$RANLIB" >&6; }
5971else
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973$as_echo "no" >&6; }
5974fi
5975
5976
5977fi
5978if test -z "$ac_cv_prog_RANLIB"; then
5979  ac_ct_RANLIB=$RANLIB
5980  # Extract the first word of "ranlib", so it can be a program name with args.
5981set dummy ranlib; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
5984if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  if test -n "$ac_ct_RANLIB"; then
5988  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995    for ac_exec_ext in '' $ac_executable_extensions; do
5996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997    ac_cv_prog_ac_ct_RANLIB="ranlib"
5998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999    break 2
6000  fi
6001done
6002  done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6008if test -n "$ac_ct_RANLIB"; then
6009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6010$as_echo "$ac_ct_RANLIB" >&6; }
6011else
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016  if test "x$ac_ct_RANLIB" = x; then
6017    RANLIB=":"
6018  else
6019    case $cross_compiling:$ac_tool_warned in
6020yes:)
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6023ac_tool_warned=yes ;;
6024esac
6025    RANLIB=$ac_ct_RANLIB
6026  fi
6027else
6028  RANLIB="$ac_cv_prog_RANLIB"
6029fi
6030
6031test -z "$RANLIB" && RANLIB=:
6032
6033
6034
6035
6036
6037
6038# Determine commands to create old-style static archives.
6039old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6040old_postinstall_cmds='chmod 644 $oldlib'
6041old_postuninstall_cmds=
6042
6043if test -n "$RANLIB"; then
6044  case $host_os in
6045  bitrig* | openbsd*)
6046    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6047    ;;
6048  *)
6049    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6050    ;;
6051  esac
6052  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6053fi
6054
6055case $host_os in
6056  darwin*)
6057    lock_old_archive_extraction=yes ;;
6058  *)
6059    lock_old_archive_extraction=no ;;
6060esac
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100# If no C compiler was specified, use CC.
6101LTCC=${LTCC-"$CC"}
6102
6103# If no C compiler flags were specified, use CFLAGS.
6104LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6105
6106# Allow CC to be a program name with arguments.
6107compiler=$CC
6108
6109
6110# Check for command to grab the raw symbol name followed by C symbol from nm.
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6112$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6113if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116
6117# These are sane defaults that work on at least a few old systems.
6118# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6119
6120# Character class describing NM global symbol codes.
6121symcode='[BCDEGRST]'
6122
6123# Regexp to match symbols that can be accessed directly from C.
6124sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6125
6126# Define system-specific variables.
6127case $host_os in
6128aix*)
6129  symcode='[BCDT]'
6130  ;;
6131cygwin* | mingw* | pw32* | cegcc*)
6132  symcode='[ABCDGISTW]'
6133  ;;
6134hpux*)
6135  if test ia64 = "$host_cpu"; then
6136    symcode='[ABCDEGRST]'
6137  fi
6138  ;;
6139irix* | nonstopux*)
6140  symcode='[BCDEGRST]'
6141  ;;
6142osf*)
6143  symcode='[BCDEGQRST]'
6144  ;;
6145solaris*)
6146  symcode='[BDRT]'
6147  ;;
6148sco3.2v5*)
6149  symcode='[DT]'
6150  ;;
6151sysv4.2uw2*)
6152  symcode='[DT]'
6153  ;;
6154sysv5* | sco5v6* | unixware* | OpenUNIX*)
6155  symcode='[ABDT]'
6156  ;;
6157sysv4)
6158  symcode='[DFNSTU]'
6159  ;;
6160esac
6161
6162# If we're using GNU nm, then use its standard symbol codes.
6163case `$NM -V 2>&1` in
6164*GNU* | *'with BFD'*)
6165  symcode='[ABCDGIRSTW]' ;;
6166esac
6167
6168if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6169  # Gets list of data symbols to import.
6170  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6171  # Adjust the below global symbol transforms to fixup imported variables.
6172  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6173  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6174  lt_c_name_lib_hook="\
6175  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6176  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6177else
6178  # Disable hooks by default.
6179  lt_cv_sys_global_symbol_to_import=
6180  lt_cdecl_hook=
6181  lt_c_name_hook=
6182  lt_c_name_lib_hook=
6183fi
6184
6185# Transform an extracted symbol line into a proper C declaration.
6186# Some systems (esp. on ia64) link data and code symbols differently,
6187# so use this general approach.
6188lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6189$lt_cdecl_hook\
6190" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6191" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6192
6193# Transform an extracted symbol line into symbol name and symbol address
6194lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6195$lt_c_name_hook\
6196" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6197" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6198
6199# Transform an extracted symbol line into symbol name with lib prefix and
6200# symbol address.
6201lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6202$lt_c_name_lib_hook\
6203" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6204" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6205" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6206
6207# Handle CRLF in mingw tool chain
6208opt_cr=
6209case $build_os in
6210mingw*)
6211  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6212  ;;
6213esac
6214
6215# Try without a prefix underscore, then with it.
6216for ac_symprfx in "" "_"; do
6217
6218  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6219  symxfrm="\\1 $ac_symprfx\\2 \\2"
6220
6221  # Write the raw and C identifiers.
6222  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6223    # Fake it for dumpbin and say T for any non-static function,
6224    # D for any global variable and I for any imported variable.
6225    # Also find C++ and __fastcall symbols from MSVC++,
6226    # which start with @ or ?.
6227    lt_cv_sys_global_symbol_pipe="$AWK '"\
6228"     {last_section=section; section=\$ 3};"\
6229"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6230"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6231"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6232"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6233"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6234"     \$ 0!~/External *\|/{next};"\
6235"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6236"     {if(hide[section]) next};"\
6237"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6238"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6239"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6240"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6241"     ' prfx=^$ac_symprfx"
6242  else
6243    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6244  fi
6245  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6246
6247  # Check to see that the pipe works correctly.
6248  pipe_works=no
6249
6250  rm -f conftest*
6251  cat > conftest.$ac_ext <<_LT_EOF
6252#ifdef __cplusplus
6253extern "C" {
6254#endif
6255char nm_test_var;
6256void nm_test_func(void);
6257void nm_test_func(void){}
6258#ifdef __cplusplus
6259}
6260#endif
6261int main(){nm_test_var='a';nm_test_func();return(0);}
6262_LT_EOF
6263
6264  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6265  (eval $ac_compile) 2>&5
6266  ac_status=$?
6267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268  test $ac_status = 0; }; then
6269    # Now try to grab the symbols.
6270    nlist=conftest.nm
6271    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6272  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6273  ac_status=$?
6274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275  test $ac_status = 0; } && test -s "$nlist"; then
6276      # Try sorting and uniquifying the output.
6277      if sort "$nlist" | uniq > "$nlist"T; then
6278	mv -f "$nlist"T "$nlist"
6279      else
6280	rm -f "$nlist"T
6281      fi
6282
6283      # Make sure that we snagged all the symbols we need.
6284      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6285	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6286	  cat <<_LT_EOF > conftest.$ac_ext
6287/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6288#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6289/* DATA imports from DLLs on WIN32 can't be const, because runtime
6290   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6291# define LT_DLSYM_CONST
6292#elif defined __osf__
6293/* This system does not cope well with relocations in const data.  */
6294# define LT_DLSYM_CONST
6295#else
6296# define LT_DLSYM_CONST const
6297#endif
6298
6299#ifdef __cplusplus
6300extern "C" {
6301#endif
6302
6303_LT_EOF
6304	  # Now generate the symbol file.
6305	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6306
6307	  cat <<_LT_EOF >> conftest.$ac_ext
6308
6309/* The mapping between symbol names and symbols.  */
6310LT_DLSYM_CONST struct {
6311  const char *name;
6312  void       *address;
6313}
6314lt__PROGRAM__LTX_preloaded_symbols[] =
6315{
6316  { "@PROGRAM@", (void *) 0 },
6317_LT_EOF
6318	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6319	  cat <<\_LT_EOF >> conftest.$ac_ext
6320  {0, (void *) 0}
6321};
6322
6323/* This works around a problem in FreeBSD linker */
6324#ifdef FREEBSD_WORKAROUND
6325static const void *lt_preloaded_setup() {
6326  return lt__PROGRAM__LTX_preloaded_symbols;
6327}
6328#endif
6329
6330#ifdef __cplusplus
6331}
6332#endif
6333_LT_EOF
6334	  # Now try linking the two files.
6335	  mv conftest.$ac_objext conftstm.$ac_objext
6336	  lt_globsym_save_LIBS=$LIBS
6337	  lt_globsym_save_CFLAGS=$CFLAGS
6338	  LIBS=conftstm.$ac_objext
6339	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6340	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6341  (eval $ac_link) 2>&5
6342  ac_status=$?
6343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6345	    pipe_works=yes
6346	  fi
6347	  LIBS=$lt_globsym_save_LIBS
6348	  CFLAGS=$lt_globsym_save_CFLAGS
6349	else
6350	  echo "cannot find nm_test_func in $nlist" >&5
6351	fi
6352      else
6353	echo "cannot find nm_test_var in $nlist" >&5
6354      fi
6355    else
6356      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6357    fi
6358  else
6359    echo "$progname: failed program was:" >&5
6360    cat conftest.$ac_ext >&5
6361  fi
6362  rm -rf conftest* conftst*
6363
6364  # Do not use the global_symbol_pipe unless it works.
6365  if test yes = "$pipe_works"; then
6366    break
6367  else
6368    lt_cv_sys_global_symbol_pipe=
6369  fi
6370done
6371
6372fi
6373
6374if test -z "$lt_cv_sys_global_symbol_pipe"; then
6375  lt_cv_sys_global_symbol_to_cdecl=
6376fi
6377if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6379$as_echo "failed" >&6; }
6380else
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6382$as_echo "ok" >&6; }
6383fi
6384
6385# Response file support.
6386if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6387  nm_file_list_spec='@'
6388elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6389  nm_file_list_spec='@'
6390fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6429$as_echo_n "checking for sysroot... " >&6; }
6430
6431# Check whether --with-sysroot was given.
6432if test "${with_sysroot+set}" = set; then :
6433  withval=$with_sysroot;
6434else
6435  with_sysroot=no
6436fi
6437
6438
6439lt_sysroot=
6440case $with_sysroot in #(
6441 yes)
6442   if test yes = "$GCC"; then
6443     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6444   fi
6445   ;; #(
6446 /*)
6447   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6448   ;; #(
6449 no|'')
6450   ;; #(
6451 *)
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6453$as_echo "$with_sysroot" >&6; }
6454   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6455   ;;
6456esac
6457
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6459$as_echo "${lt_sysroot:-no}" >&6; }
6460
6461
6462
6463
6464
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6466$as_echo_n "checking for a working dd... " >&6; }
6467if ${ac_cv_path_lt_DD+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  printf 0123456789abcdef0123456789abcdef >conftest.i
6471cat conftest.i conftest.i >conftest2.i
6472: ${lt_DD:=$DD}
6473if test -z "$lt_DD"; then
6474  ac_path_lt_DD_found=false
6475  # Loop through the user's path and test for each of PROGNAME-LIST
6476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477for as_dir in $PATH
6478do
6479  IFS=$as_save_IFS
6480  test -z "$as_dir" && as_dir=.
6481    for ac_prog in dd; do
6482    for ac_exec_ext in '' $ac_executable_extensions; do
6483      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6484      as_fn_executable_p "$ac_path_lt_DD" || continue
6485if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6486  cmp -s conftest.i conftest.out \
6487  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6488fi
6489      $ac_path_lt_DD_found && break 3
6490    done
6491  done
6492  done
6493IFS=$as_save_IFS
6494  if test -z "$ac_cv_path_lt_DD"; then
6495    :
6496  fi
6497else
6498  ac_cv_path_lt_DD=$lt_DD
6499fi
6500
6501rm -f conftest.i conftest2.i conftest.out
6502fi
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6504$as_echo "$ac_cv_path_lt_DD" >&6; }
6505
6506
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6508$as_echo_n "checking how to truncate binary pipes... " >&6; }
6509if ${lt_cv_truncate_bin+:} false; then :
6510  $as_echo_n "(cached) " >&6
6511else
6512  printf 0123456789abcdef0123456789abcdef >conftest.i
6513cat conftest.i conftest.i >conftest2.i
6514lt_cv_truncate_bin=
6515if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6516  cmp -s conftest.i conftest.out \
6517  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6518fi
6519rm -f conftest.i conftest2.i conftest.out
6520test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6523$as_echo "$lt_cv_truncate_bin" >&6; }
6524
6525
6526
6527
6528
6529
6530
6531# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6532func_cc_basename ()
6533{
6534    for cc_temp in $*""; do
6535      case $cc_temp in
6536        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6537        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6538        \-*) ;;
6539        *) break;;
6540      esac
6541    done
6542    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6543}
6544
6545# Check whether --enable-libtool-lock was given.
6546if test "${enable_libtool_lock+set}" = set; then :
6547  enableval=$enable_libtool_lock;
6548fi
6549
6550test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6551
6552# Some flags need to be propagated to the compiler or linker for good
6553# libtool support.
6554case $host in
6555ia64-*-hpux*)
6556  # Find out what ABI is being produced by ac_compile, and set mode
6557  # options accordingly.
6558  echo 'int i;' > conftest.$ac_ext
6559  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6560  (eval $ac_compile) 2>&5
6561  ac_status=$?
6562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6563  test $ac_status = 0; }; then
6564    case `/usr/bin/file conftest.$ac_objext` in
6565      *ELF-32*)
6566	HPUX_IA64_MODE=32
6567	;;
6568      *ELF-64*)
6569	HPUX_IA64_MODE=64
6570	;;
6571    esac
6572  fi
6573  rm -rf conftest*
6574  ;;
6575*-*-irix6*)
6576  # Find out what ABI is being produced by ac_compile, and set linker
6577  # options accordingly.
6578  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6579  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6580  (eval $ac_compile) 2>&5
6581  ac_status=$?
6582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583  test $ac_status = 0; }; then
6584    if test yes = "$lt_cv_prog_gnu_ld"; then
6585      case `/usr/bin/file conftest.$ac_objext` in
6586	*32-bit*)
6587	  LD="${LD-ld} -melf32bsmip"
6588	  ;;
6589	*N32*)
6590	  LD="${LD-ld} -melf32bmipn32"
6591	  ;;
6592	*64-bit*)
6593	  LD="${LD-ld} -melf64bmip"
6594	;;
6595      esac
6596    else
6597      case `/usr/bin/file conftest.$ac_objext` in
6598	*32-bit*)
6599	  LD="${LD-ld} -32"
6600	  ;;
6601	*N32*)
6602	  LD="${LD-ld} -n32"
6603	  ;;
6604	*64-bit*)
6605	  LD="${LD-ld} -64"
6606	  ;;
6607      esac
6608    fi
6609  fi
6610  rm -rf conftest*
6611  ;;
6612
6613mips64*-*linux*)
6614  # Find out what ABI is being produced by ac_compile, and set linker
6615  # options accordingly.
6616  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6617  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618  (eval $ac_compile) 2>&5
6619  ac_status=$?
6620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621  test $ac_status = 0; }; then
6622    emul=elf
6623    case `/usr/bin/file conftest.$ac_objext` in
6624      *32-bit*)
6625	emul="${emul}32"
6626	;;
6627      *64-bit*)
6628	emul="${emul}64"
6629	;;
6630    esac
6631    case `/usr/bin/file conftest.$ac_objext` in
6632      *MSB*)
6633	emul="${emul}btsmip"
6634	;;
6635      *LSB*)
6636	emul="${emul}ltsmip"
6637	;;
6638    esac
6639    case `/usr/bin/file conftest.$ac_objext` in
6640      *N32*)
6641	emul="${emul}n32"
6642	;;
6643    esac
6644    LD="${LD-ld} -m $emul"
6645  fi
6646  rm -rf conftest*
6647  ;;
6648
6649x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6650s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6651  # Find out what ABI is being produced by ac_compile, and set linker
6652  # options accordingly.  Note that the listed cases only cover the
6653  # situations where additional linker options are needed (such as when
6654  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6655  # vice versa); the common cases where no linker options are needed do
6656  # not appear in the list.
6657  echo 'int i;' > conftest.$ac_ext
6658  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6659  (eval $ac_compile) 2>&5
6660  ac_status=$?
6661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662  test $ac_status = 0; }; then
6663    case `/usr/bin/file conftest.o` in
6664      *32-bit*)
6665	case $host in
6666	  x86_64-*kfreebsd*-gnu)
6667	    LD="${LD-ld} -m elf_i386_fbsd"
6668	    ;;
6669	  x86_64-*linux*)
6670	    case `/usr/bin/file conftest.o` in
6671	      *x86-64*)
6672		LD="${LD-ld} -m elf32_x86_64"
6673		;;
6674	      *)
6675		LD="${LD-ld} -m elf_i386"
6676		;;
6677	    esac
6678	    ;;
6679	  powerpc64le-*linux*)
6680	    LD="${LD-ld} -m elf32lppclinux"
6681	    ;;
6682	  powerpc64-*linux*)
6683	    LD="${LD-ld} -m elf32ppclinux"
6684	    ;;
6685	  s390x-*linux*)
6686	    LD="${LD-ld} -m elf_s390"
6687	    ;;
6688	  sparc64-*linux*)
6689	    LD="${LD-ld} -m elf32_sparc"
6690	    ;;
6691	esac
6692	;;
6693      *64-bit*)
6694	case $host in
6695	  x86_64-*kfreebsd*-gnu)
6696	    LD="${LD-ld} -m elf_x86_64_fbsd"
6697	    ;;
6698	  x86_64-*linux*)
6699	    LD="${LD-ld} -m elf_x86_64"
6700	    ;;
6701	  powerpcle-*linux*)
6702	    LD="${LD-ld} -m elf64lppc"
6703	    ;;
6704	  powerpc-*linux*)
6705	    LD="${LD-ld} -m elf64ppc"
6706	    ;;
6707	  s390*-*linux*|s390*-*tpf*)
6708	    LD="${LD-ld} -m elf64_s390"
6709	    ;;
6710	  sparc*-*linux*)
6711	    LD="${LD-ld} -m elf64_sparc"
6712	    ;;
6713	esac
6714	;;
6715    esac
6716  fi
6717  rm -rf conftest*
6718  ;;
6719
6720*-*-sco3.2v5*)
6721  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6722  SAVE_CFLAGS=$CFLAGS
6723  CFLAGS="$CFLAGS -belf"
6724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6725$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6726if ${lt_cv_cc_needs_belf+:} false; then :
6727  $as_echo_n "(cached) " >&6
6728else
6729  ac_ext=c
6730ac_cpp='$CPP $CPPFLAGS'
6731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6733ac_compiler_gnu=$ac_cv_c_compiler_gnu
6734
6735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736/* end confdefs.h.  */
6737
6738int
6739main ()
6740{
6741
6742  ;
6743  return 0;
6744}
6745_ACEOF
6746if ac_fn_c_try_link "$LINENO"; then :
6747  lt_cv_cc_needs_belf=yes
6748else
6749  lt_cv_cc_needs_belf=no
6750fi
6751rm -f core conftest.err conftest.$ac_objext \
6752    conftest$ac_exeext conftest.$ac_ext
6753     ac_ext=c
6754ac_cpp='$CPP $CPPFLAGS'
6755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758
6759fi
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6761$as_echo "$lt_cv_cc_needs_belf" >&6; }
6762  if test yes != "$lt_cv_cc_needs_belf"; then
6763    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6764    CFLAGS=$SAVE_CFLAGS
6765  fi
6766  ;;
6767*-*solaris*)
6768  # Find out what ABI is being produced by ac_compile, and set linker
6769  # options accordingly.
6770  echo 'int i;' > conftest.$ac_ext
6771  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6772  (eval $ac_compile) 2>&5
6773  ac_status=$?
6774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6775  test $ac_status = 0; }; then
6776    case `/usr/bin/file conftest.o` in
6777    *64-bit*)
6778      case $lt_cv_prog_gnu_ld in
6779      yes*)
6780        case $host in
6781        i?86-*-solaris*|x86_64-*-solaris*)
6782          LD="${LD-ld} -m elf_x86_64"
6783          ;;
6784        sparc*-*-solaris*)
6785          LD="${LD-ld} -m elf64_sparc"
6786          ;;
6787        esac
6788        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6789        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6790          LD=${LD-ld}_sol2
6791        fi
6792        ;;
6793      *)
6794	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6795	  LD="${LD-ld} -64"
6796	fi
6797	;;
6798      esac
6799      ;;
6800    esac
6801  fi
6802  rm -rf conftest*
6803  ;;
6804esac
6805
6806need_locks=$enable_libtool_lock
6807
6808if test -n "$ac_tool_prefix"; then
6809  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}mt; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  if test -n "$MANIFEST_TOOL"; then
6817  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822  IFS=$as_save_IFS
6823  test -z "$as_dir" && as_dir=.
6824    for ac_exec_ext in '' $ac_executable_extensions; do
6825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828    break 2
6829  fi
6830done
6831  done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6837if test -n "$MANIFEST_TOOL"; then
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6839$as_echo "$MANIFEST_TOOL" >&6; }
6840else
6841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845
6846fi
6847if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6848  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6849  # Extract the first word of "mt", so it can be a program name with args.
6850set dummy mt; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
6853if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  if test -n "$ac_ct_MANIFEST_TOOL"; then
6857  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862  IFS=$as_save_IFS
6863  test -z "$as_dir" && as_dir=.
6864    for ac_exec_ext in '' $ac_executable_extensions; do
6865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868    break 2
6869  fi
6870done
6871  done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6877if test -n "$ac_ct_MANIFEST_TOOL"; then
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6879$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6880else
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
6885  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6886    MANIFEST_TOOL=":"
6887  else
6888    case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892ac_tool_warned=yes ;;
6893esac
6894    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6895  fi
6896else
6897  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6898fi
6899
6900test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6902$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6903if ${lt_cv_path_mainfest_tool+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  lt_cv_path_mainfest_tool=no
6907  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6908  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6909  cat conftest.err >&5
6910  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6911    lt_cv_path_mainfest_tool=yes
6912  fi
6913  rm -f conftest*
6914fi
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6916$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6917if test yes != "$lt_cv_path_mainfest_tool"; then
6918  MANIFEST_TOOL=:
6919fi
6920
6921
6922
6923
6924
6925
6926  case $host_os in
6927    rhapsody* | darwin*)
6928    if test -n "$ac_tool_prefix"; then
6929  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6930set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
6933if ${ac_cv_prog_DSYMUTIL+:} false; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  if test -n "$DSYMUTIL"; then
6937  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942  IFS=$as_save_IFS
6943  test -z "$as_dir" && as_dir=.
6944    for ac_exec_ext in '' $ac_executable_extensions; do
6945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948    break 2
6949  fi
6950done
6951  done
6952IFS=$as_save_IFS
6953
6954fi
6955fi
6956DSYMUTIL=$ac_cv_prog_DSYMUTIL
6957if test -n "$DSYMUTIL"; then
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6959$as_echo "$DSYMUTIL" >&6; }
6960else
6961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962$as_echo "no" >&6; }
6963fi
6964
6965
6966fi
6967if test -z "$ac_cv_prog_DSYMUTIL"; then
6968  ac_ct_DSYMUTIL=$DSYMUTIL
6969  # Extract the first word of "dsymutil", so it can be a program name with args.
6970set dummy dsymutil; ac_word=$2
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972$as_echo_n "checking for $ac_word... " >&6; }
6973if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  if test -n "$ac_ct_DSYMUTIL"; then
6977  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6978else
6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982  IFS=$as_save_IFS
6983  test -z "$as_dir" && as_dir=.
6984    for ac_exec_ext in '' $ac_executable_extensions; do
6985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988    break 2
6989  fi
6990done
6991  done
6992IFS=$as_save_IFS
6993
6994fi
6995fi
6996ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6997if test -n "$ac_ct_DSYMUTIL"; then
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6999$as_echo "$ac_ct_DSYMUTIL" >&6; }
7000else
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002$as_echo "no" >&6; }
7003fi
7004
7005  if test "x$ac_ct_DSYMUTIL" = x; then
7006    DSYMUTIL=":"
7007  else
7008    case $cross_compiling:$ac_tool_warned in
7009yes:)
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012ac_tool_warned=yes ;;
7013esac
7014    DSYMUTIL=$ac_ct_DSYMUTIL
7015  fi
7016else
7017  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7018fi
7019
7020    if test -n "$ac_tool_prefix"; then
7021  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024$as_echo_n "checking for $ac_word... " >&6; }
7025if ${ac_cv_prog_NMEDIT+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  if test -n "$NMEDIT"; then
7029  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  test -z "$as_dir" && as_dir=.
7036    for ac_exec_ext in '' $ac_executable_extensions; do
7037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040    break 2
7041  fi
7042done
7043  done
7044IFS=$as_save_IFS
7045
7046fi
7047fi
7048NMEDIT=$ac_cv_prog_NMEDIT
7049if test -n "$NMEDIT"; then
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7051$as_echo "$NMEDIT" >&6; }
7052else
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054$as_echo "no" >&6; }
7055fi
7056
7057
7058fi
7059if test -z "$ac_cv_prog_NMEDIT"; then
7060  ac_ct_NMEDIT=$NMEDIT
7061  # Extract the first word of "nmedit", so it can be a program name with args.
7062set dummy nmedit; ac_word=$2
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064$as_echo_n "checking for $ac_word... " >&6; }
7065if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7066  $as_echo_n "(cached) " >&6
7067else
7068  if test -n "$ac_ct_NMEDIT"; then
7069  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074  IFS=$as_save_IFS
7075  test -z "$as_dir" && as_dir=.
7076    for ac_exec_ext in '' $ac_executable_extensions; do
7077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080    break 2
7081  fi
7082done
7083  done
7084IFS=$as_save_IFS
7085
7086fi
7087fi
7088ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7089if test -n "$ac_ct_NMEDIT"; then
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7091$as_echo "$ac_ct_NMEDIT" >&6; }
7092else
7093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094$as_echo "no" >&6; }
7095fi
7096
7097  if test "x$ac_ct_NMEDIT" = x; then
7098    NMEDIT=":"
7099  else
7100    case $cross_compiling:$ac_tool_warned in
7101yes:)
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104ac_tool_warned=yes ;;
7105esac
7106    NMEDIT=$ac_ct_NMEDIT
7107  fi
7108else
7109  NMEDIT="$ac_cv_prog_NMEDIT"
7110fi
7111
7112    if test -n "$ac_tool_prefix"; then
7113  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7114set dummy ${ac_tool_prefix}lipo; ac_word=$2
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116$as_echo_n "checking for $ac_word... " >&6; }
7117if ${ac_cv_prog_LIPO+:} false; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120  if test -n "$LIPO"; then
7121  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7122else
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126  IFS=$as_save_IFS
7127  test -z "$as_dir" && as_dir=.
7128    for ac_exec_ext in '' $ac_executable_extensions; do
7129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132    break 2
7133  fi
7134done
7135  done
7136IFS=$as_save_IFS
7137
7138fi
7139fi
7140LIPO=$ac_cv_prog_LIPO
7141if test -n "$LIPO"; then
7142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7143$as_echo "$LIPO" >&6; }
7144else
7145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146$as_echo "no" >&6; }
7147fi
7148
7149
7150fi
7151if test -z "$ac_cv_prog_LIPO"; then
7152  ac_ct_LIPO=$LIPO
7153  # Extract the first word of "lipo", so it can be a program name with args.
7154set dummy lipo; ac_word=$2
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
7157if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  if test -n "$ac_ct_LIPO"; then
7161  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166  IFS=$as_save_IFS
7167  test -z "$as_dir" && as_dir=.
7168    for ac_exec_ext in '' $ac_executable_extensions; do
7169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170    ac_cv_prog_ac_ct_LIPO="lipo"
7171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172    break 2
7173  fi
7174done
7175  done
7176IFS=$as_save_IFS
7177
7178fi
7179fi
7180ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7181if test -n "$ac_ct_LIPO"; then
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7183$as_echo "$ac_ct_LIPO" >&6; }
7184else
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
7187fi
7188
7189  if test "x$ac_ct_LIPO" = x; then
7190    LIPO=":"
7191  else
7192    case $cross_compiling:$ac_tool_warned in
7193yes:)
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196ac_tool_warned=yes ;;
7197esac
7198    LIPO=$ac_ct_LIPO
7199  fi
7200else
7201  LIPO="$ac_cv_prog_LIPO"
7202fi
7203
7204    if test -n "$ac_tool_prefix"; then
7205  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7206set dummy ${ac_tool_prefix}otool; ac_word=$2
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208$as_echo_n "checking for $ac_word... " >&6; }
7209if ${ac_cv_prog_OTOOL+:} false; then :
7210  $as_echo_n "(cached) " >&6
7211else
7212  if test -n "$OTOOL"; then
7213  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7214else
7215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218  IFS=$as_save_IFS
7219  test -z "$as_dir" && as_dir=.
7220    for ac_exec_ext in '' $ac_executable_extensions; do
7221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224    break 2
7225  fi
7226done
7227  done
7228IFS=$as_save_IFS
7229
7230fi
7231fi
7232OTOOL=$ac_cv_prog_OTOOL
7233if test -n "$OTOOL"; then
7234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7235$as_echo "$OTOOL" >&6; }
7236else
7237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238$as_echo "no" >&6; }
7239fi
7240
7241
7242fi
7243if test -z "$ac_cv_prog_OTOOL"; then
7244  ac_ct_OTOOL=$OTOOL
7245  # Extract the first word of "otool", so it can be a program name with args.
7246set dummy otool; ac_word=$2
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248$as_echo_n "checking for $ac_word... " >&6; }
7249if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  if test -n "$ac_ct_OTOOL"; then
7253  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7254else
7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258  IFS=$as_save_IFS
7259  test -z "$as_dir" && as_dir=.
7260    for ac_exec_ext in '' $ac_executable_extensions; do
7261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262    ac_cv_prog_ac_ct_OTOOL="otool"
7263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264    break 2
7265  fi
7266done
7267  done
7268IFS=$as_save_IFS
7269
7270fi
7271fi
7272ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7273if test -n "$ac_ct_OTOOL"; then
7274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7275$as_echo "$ac_ct_OTOOL" >&6; }
7276else
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278$as_echo "no" >&6; }
7279fi
7280
7281  if test "x$ac_ct_OTOOL" = x; then
7282    OTOOL=":"
7283  else
7284    case $cross_compiling:$ac_tool_warned in
7285yes:)
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288ac_tool_warned=yes ;;
7289esac
7290    OTOOL=$ac_ct_OTOOL
7291  fi
7292else
7293  OTOOL="$ac_cv_prog_OTOOL"
7294fi
7295
7296    if test -n "$ac_tool_prefix"; then
7297  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7298set dummy ${ac_tool_prefix}otool64; ac_word=$2
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300$as_echo_n "checking for $ac_word... " >&6; }
7301if ${ac_cv_prog_OTOOL64+:} false; then :
7302  $as_echo_n "(cached) " >&6
7303else
7304  if test -n "$OTOOL64"; then
7305  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7306else
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310  IFS=$as_save_IFS
7311  test -z "$as_dir" && as_dir=.
7312    for ac_exec_ext in '' $ac_executable_extensions; do
7313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316    break 2
7317  fi
7318done
7319  done
7320IFS=$as_save_IFS
7321
7322fi
7323fi
7324OTOOL64=$ac_cv_prog_OTOOL64
7325if test -n "$OTOOL64"; then
7326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7327$as_echo "$OTOOL64" >&6; }
7328else
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
7331fi
7332
7333
7334fi
7335if test -z "$ac_cv_prog_OTOOL64"; then
7336  ac_ct_OTOOL64=$OTOOL64
7337  # Extract the first word of "otool64", so it can be a program name with args.
7338set dummy otool64; ac_word=$2
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340$as_echo_n "checking for $ac_word... " >&6; }
7341if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  if test -n "$ac_ct_OTOOL64"; then
7345  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352    for ac_exec_ext in '' $ac_executable_extensions; do
7353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354    ac_cv_prog_ac_ct_OTOOL64="otool64"
7355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359  done
7360IFS=$as_save_IFS
7361
7362fi
7363fi
7364ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7365if test -n "$ac_ct_OTOOL64"; then
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7367$as_echo "$ac_ct_OTOOL64" >&6; }
7368else
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370$as_echo "no" >&6; }
7371fi
7372
7373  if test "x$ac_ct_OTOOL64" = x; then
7374    OTOOL64=":"
7375  else
7376    case $cross_compiling:$ac_tool_warned in
7377yes:)
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380ac_tool_warned=yes ;;
7381esac
7382    OTOOL64=$ac_ct_OTOOL64
7383  fi
7384else
7385  OTOOL64="$ac_cv_prog_OTOOL64"
7386fi
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7415$as_echo_n "checking for -single_module linker flag... " >&6; }
7416if ${lt_cv_apple_cc_single_mod+:} false; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  lt_cv_apple_cc_single_mod=no
7420      if test -z "$LT_MULTI_MODULE"; then
7421	# By default we will add the -single_module flag. You can override
7422	# by either setting the environment variable LT_MULTI_MODULE
7423	# non-empty at configure time, or by adding -multi_module to the
7424	# link flags.
7425	rm -rf libconftest.dylib*
7426	echo "int foo(void){return 1;}" > conftest.c
7427	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7428-dynamiclib -Wl,-single_module conftest.c" >&5
7429	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7430	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7431        _lt_result=$?
7432	# If there is a non-empty error log, and "single_module"
7433	# appears in it, assume the flag caused a linker warning
7434        if test -s conftest.err && $GREP single_module conftest.err; then
7435	  cat conftest.err >&5
7436	# Otherwise, if the output was created with a 0 exit code from
7437	# the compiler, it worked.
7438	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7439	  lt_cv_apple_cc_single_mod=yes
7440	else
7441	  cat conftest.err >&5
7442	fi
7443	rm -rf libconftest.dylib*
7444	rm -f conftest.*
7445      fi
7446fi
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7448$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7449
7450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7451$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7452if ${lt_cv_ld_exported_symbols_list+:} false; then :
7453  $as_echo_n "(cached) " >&6
7454else
7455  lt_cv_ld_exported_symbols_list=no
7456      save_LDFLAGS=$LDFLAGS
7457      echo "_main" > conftest.sym
7458      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7459      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461
7462int
7463main ()
7464{
7465
7466  ;
7467  return 0;
7468}
7469_ACEOF
7470if ac_fn_c_try_link "$LINENO"; then :
7471  lt_cv_ld_exported_symbols_list=yes
7472else
7473  lt_cv_ld_exported_symbols_list=no
7474fi
7475rm -f core conftest.err conftest.$ac_objext \
7476    conftest$ac_exeext conftest.$ac_ext
7477	LDFLAGS=$save_LDFLAGS
7478
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7481$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7482
7483    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7484$as_echo_n "checking for -force_load linker flag... " >&6; }
7485if ${lt_cv_ld_force_load+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  lt_cv_ld_force_load=no
7489      cat > conftest.c << _LT_EOF
7490int forced_loaded() { return 2;}
7491_LT_EOF
7492      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7493      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7494      echo "$AR cru libconftest.a conftest.o" >&5
7495      $AR cru libconftest.a conftest.o 2>&5
7496      echo "$RANLIB libconftest.a" >&5
7497      $RANLIB libconftest.a 2>&5
7498      cat > conftest.c << _LT_EOF
7499int main() { return 0;}
7500_LT_EOF
7501      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7502      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7503      _lt_result=$?
7504      if test -s conftest.err && $GREP force_load conftest.err; then
7505	cat conftest.err >&5
7506      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7507	lt_cv_ld_force_load=yes
7508      else
7509	cat conftest.err >&5
7510      fi
7511        rm -f conftest.err libconftest.a conftest conftest.c
7512        rm -rf conftest.dSYM
7513
7514fi
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7516$as_echo "$lt_cv_ld_force_load" >&6; }
7517    case $host_os in
7518    rhapsody* | darwin1.[012])
7519      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7520    darwin1.*)
7521      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7522    darwin*) # darwin 5.x on
7523      # if running on 10.5 or later, the deployment target defaults
7524      # to the OS version, if on x86, and 10.4, the deployment
7525      # target defaults to 10.4. Don't you love it?
7526      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7527	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7528	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7529	10.[012][,.]*)
7530	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7531	10.*)
7532	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7533      esac
7534    ;;
7535  esac
7536    if test yes = "$lt_cv_apple_cc_single_mod"; then
7537      _lt_dar_single_mod='$single_module'
7538    fi
7539    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7540      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7541    else
7542      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7543    fi
7544    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7545      _lt_dsymutil='~$DSYMUTIL $lib || :'
7546    else
7547      _lt_dsymutil=
7548    fi
7549    ;;
7550  esac
7551
7552# func_munge_path_list VARIABLE PATH
7553# -----------------------------------
7554# VARIABLE is name of variable containing _space_ separated list of
7555# directories to be munged by the contents of PATH, which is string
7556# having a format:
7557# "DIR[:DIR]:"
7558#       string "DIR[ DIR]" will be prepended to VARIABLE
7559# ":DIR[:DIR]"
7560#       string "DIR[ DIR]" will be appended to VARIABLE
7561# "DIRP[:DIRP]::[DIRA:]DIRA"
7562#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7563#       "DIRA[ DIRA]" will be appended to VARIABLE
7564# "DIR[:DIR]"
7565#       VARIABLE will be replaced by "DIR[ DIR]"
7566func_munge_path_list ()
7567{
7568    case x$2 in
7569    x)
7570        ;;
7571    *:)
7572        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7573        ;;
7574    x:*)
7575        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7576        ;;
7577    *::*)
7578        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7579        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7580        ;;
7581    *)
7582        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7583        ;;
7584    esac
7585}
7586
7587ac_ext=c
7588ac_cpp='$CPP $CPPFLAGS'
7589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7591ac_compiler_gnu=$ac_cv_c_compiler_gnu
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7593$as_echo_n "checking how to run the C preprocessor... " >&6; }
7594# On Suns, sometimes $CPP names a directory.
7595if test -n "$CPP" && test -d "$CPP"; then
7596  CPP=
7597fi
7598if test -z "$CPP"; then
7599  if ${ac_cv_prog_CPP+:} false; then :
7600  $as_echo_n "(cached) " >&6
7601else
7602      # Double quotes because CPP needs to be expanded
7603    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7604    do
7605      ac_preproc_ok=false
7606for ac_c_preproc_warn_flag in '' yes
7607do
7608  # Use a header file that comes with gcc, so configuring glibc
7609  # with a fresh cross-compiler works.
7610  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7611  # <limits.h> exists even on freestanding compilers.
7612  # On the NeXT, cc -E runs the code through the compiler's parser,
7613  # not just through cpp. "Syntax error" is here to catch this case.
7614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615/* end confdefs.h.  */
7616#ifdef __STDC__
7617# include <limits.h>
7618#else
7619# include <assert.h>
7620#endif
7621		     Syntax error
7622_ACEOF
7623if ac_fn_c_try_cpp "$LINENO"; then :
7624
7625else
7626  # Broken: fails on valid input.
7627continue
7628fi
7629rm -f conftest.err conftest.i conftest.$ac_ext
7630
7631  # OK, works on sane cases.  Now check whether nonexistent headers
7632  # can be detected and how.
7633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635#include <ac_nonexistent.h>
7636_ACEOF
7637if ac_fn_c_try_cpp "$LINENO"; then :
7638  # Broken: success on invalid input.
7639continue
7640else
7641  # Passes both tests.
7642ac_preproc_ok=:
7643break
7644fi
7645rm -f conftest.err conftest.i conftest.$ac_ext
7646
7647done
7648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7649rm -f conftest.i conftest.err conftest.$ac_ext
7650if $ac_preproc_ok; then :
7651  break
7652fi
7653
7654    done
7655    ac_cv_prog_CPP=$CPP
7656
7657fi
7658  CPP=$ac_cv_prog_CPP
7659else
7660  ac_cv_prog_CPP=$CPP
7661fi
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7663$as_echo "$CPP" >&6; }
7664ac_preproc_ok=false
7665for ac_c_preproc_warn_flag in '' yes
7666do
7667  # Use a header file that comes with gcc, so configuring glibc
7668  # with a fresh cross-compiler works.
7669  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7670  # <limits.h> exists even on freestanding compilers.
7671  # On the NeXT, cc -E runs the code through the compiler's parser,
7672  # not just through cpp. "Syntax error" is here to catch this case.
7673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h.  */
7675#ifdef __STDC__
7676# include <limits.h>
7677#else
7678# include <assert.h>
7679#endif
7680		     Syntax error
7681_ACEOF
7682if ac_fn_c_try_cpp "$LINENO"; then :
7683
7684else
7685  # Broken: fails on valid input.
7686continue
7687fi
7688rm -f conftest.err conftest.i conftest.$ac_ext
7689
7690  # OK, works on sane cases.  Now check whether nonexistent headers
7691  # can be detected and how.
7692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694#include <ac_nonexistent.h>
7695_ACEOF
7696if ac_fn_c_try_cpp "$LINENO"; then :
7697  # Broken: success on invalid input.
7698continue
7699else
7700  # Passes both tests.
7701ac_preproc_ok=:
7702break
7703fi
7704rm -f conftest.err conftest.i conftest.$ac_ext
7705
7706done
7707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7708rm -f conftest.i conftest.err conftest.$ac_ext
7709if $ac_preproc_ok; then :
7710
7711else
7712  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7714as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7715See \`config.log' for more details" "$LINENO" 5; }
7716fi
7717
7718ac_ext=c
7719ac_cpp='$CPP $CPPFLAGS'
7720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7722ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723
7724
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7726$as_echo_n "checking for ANSI C header files... " >&6; }
7727if ${ac_cv_header_stdc+:} false; then :
7728  $as_echo_n "(cached) " >&6
7729else
7730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731/* end confdefs.h.  */
7732#include <stdlib.h>
7733#include <stdarg.h>
7734#include <string.h>
7735#include <float.h>
7736
7737int
7738main ()
7739{
7740
7741  ;
7742  return 0;
7743}
7744_ACEOF
7745if ac_fn_c_try_compile "$LINENO"; then :
7746  ac_cv_header_stdc=yes
7747else
7748  ac_cv_header_stdc=no
7749fi
7750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751
7752if test $ac_cv_header_stdc = yes; then
7753  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756#include <string.h>
7757
7758_ACEOF
7759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7760  $EGREP "memchr" >/dev/null 2>&1; then :
7761
7762else
7763  ac_cv_header_stdc=no
7764fi
7765rm -f conftest*
7766
7767fi
7768
7769if test $ac_cv_header_stdc = yes; then
7770  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h.  */
7773#include <stdlib.h>
7774
7775_ACEOF
7776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7777  $EGREP "free" >/dev/null 2>&1; then :
7778
7779else
7780  ac_cv_header_stdc=no
7781fi
7782rm -f conftest*
7783
7784fi
7785
7786if test $ac_cv_header_stdc = yes; then
7787  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7788  if test "$cross_compiling" = yes; then :
7789  :
7790else
7791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792/* end confdefs.h.  */
7793#include <ctype.h>
7794#include <stdlib.h>
7795#if ((' ' & 0x0FF) == 0x020)
7796# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7797# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7798#else
7799# define ISLOWER(c) \
7800		   (('a' <= (c) && (c) <= 'i') \
7801		     || ('j' <= (c) && (c) <= 'r') \
7802		     || ('s' <= (c) && (c) <= 'z'))
7803# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7804#endif
7805
7806#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7807int
7808main ()
7809{
7810  int i;
7811  for (i = 0; i < 256; i++)
7812    if (XOR (islower (i), ISLOWER (i))
7813	|| toupper (i) != TOUPPER (i))
7814      return 2;
7815  return 0;
7816}
7817_ACEOF
7818if ac_fn_c_try_run "$LINENO"; then :
7819
7820else
7821  ac_cv_header_stdc=no
7822fi
7823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7824  conftest.$ac_objext conftest.beam conftest.$ac_ext
7825fi
7826
7827fi
7828fi
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7830$as_echo "$ac_cv_header_stdc" >&6; }
7831if test $ac_cv_header_stdc = yes; then
7832
7833$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7834
7835fi
7836
7837# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7838for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7839		  inttypes.h stdint.h unistd.h
7840do :
7841  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7842ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7843"
7844if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7845  cat >>confdefs.h <<_ACEOF
7846#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7847_ACEOF
7848
7849fi
7850
7851done
7852
7853
7854for ac_header in dlfcn.h
7855do :
7856  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7857"
7858if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7859  cat >>confdefs.h <<_ACEOF
7860#define HAVE_DLFCN_H 1
7861_ACEOF
7862
7863fi
7864
7865done
7866
7867
7868
7869
7870
7871# Set options
7872
7873
7874
7875        enable_dlopen=no
7876
7877
7878  enable_win32_dll=no
7879
7880
7881            # Check whether --enable-shared was given.
7882if test "${enable_shared+set}" = set; then :
7883  enableval=$enable_shared; p=${PACKAGE-default}
7884    case $enableval in
7885    yes) enable_shared=yes ;;
7886    no) enable_shared=no ;;
7887    *)
7888      enable_shared=no
7889      # Look at the argument we got.  We use all the common list separators.
7890      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7891      for pkg in $enableval; do
7892	IFS=$lt_save_ifs
7893	if test "X$pkg" = "X$p"; then
7894	  enable_shared=yes
7895	fi
7896      done
7897      IFS=$lt_save_ifs
7898      ;;
7899    esac
7900else
7901  enable_shared=yes
7902fi
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912  # Check whether --enable-static was given.
7913if test "${enable_static+set}" = set; then :
7914  enableval=$enable_static; p=${PACKAGE-default}
7915    case $enableval in
7916    yes) enable_static=yes ;;
7917    no) enable_static=no ;;
7918    *)
7919     enable_static=no
7920      # Look at the argument we got.  We use all the common list separators.
7921      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7922      for pkg in $enableval; do
7923	IFS=$lt_save_ifs
7924	if test "X$pkg" = "X$p"; then
7925	  enable_static=yes
7926	fi
7927      done
7928      IFS=$lt_save_ifs
7929      ;;
7930    esac
7931else
7932  enable_static=yes
7933fi
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944# Check whether --with-pic was given.
7945if test "${with_pic+set}" = set; then :
7946  withval=$with_pic; lt_p=${PACKAGE-default}
7947    case $withval in
7948    yes|no) pic_mode=$withval ;;
7949    *)
7950      pic_mode=default
7951      # Look at the argument we got.  We use all the common list separators.
7952      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7953      for lt_pkg in $withval; do
7954	IFS=$lt_save_ifs
7955	if test "X$lt_pkg" = "X$lt_p"; then
7956	  pic_mode=yes
7957	fi
7958      done
7959      IFS=$lt_save_ifs
7960      ;;
7961    esac
7962else
7963  pic_mode=default
7964fi
7965
7966
7967
7968
7969
7970
7971
7972
7973  # Check whether --enable-fast-install was given.
7974if test "${enable_fast_install+set}" = set; then :
7975  enableval=$enable_fast_install; p=${PACKAGE-default}
7976    case $enableval in
7977    yes) enable_fast_install=yes ;;
7978    no) enable_fast_install=no ;;
7979    *)
7980      enable_fast_install=no
7981      # Look at the argument we got.  We use all the common list separators.
7982      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7983      for pkg in $enableval; do
7984	IFS=$lt_save_ifs
7985	if test "X$pkg" = "X$p"; then
7986	  enable_fast_install=yes
7987	fi
7988      done
7989      IFS=$lt_save_ifs
7990      ;;
7991    esac
7992else
7993  enable_fast_install=yes
7994fi
7995
7996
7997
7998
7999
8000
8001
8002
8003  shared_archive_member_spec=
8004case $host,$enable_shared in
8005power*-*-aix[5-9]*,yes)
8006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8007$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8008
8009# Check whether --with-aix-soname was given.
8010if test "${with_aix_soname+set}" = set; then :
8011  withval=$with_aix_soname; case $withval in
8012    aix|svr4|both)
8013      ;;
8014    *)
8015      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8016      ;;
8017    esac
8018    lt_cv_with_aix_soname=$with_aix_soname
8019else
8020  if ${lt_cv_with_aix_soname+:} false; then :
8021  $as_echo_n "(cached) " >&6
8022else
8023  lt_cv_with_aix_soname=aix
8024fi
8025
8026    with_aix_soname=$lt_cv_with_aix_soname
8027fi
8028
8029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8030$as_echo "$with_aix_soname" >&6; }
8031  if test aix != "$with_aix_soname"; then
8032    # For the AIX way of multilib, we name the shared archive member
8033    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8034    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8035    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8036    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8037    if test 64 = "${OBJECT_MODE-32}"; then
8038      shared_archive_member_spec=shr_64
8039    else
8040      shared_archive_member_spec=shr
8041    fi
8042  fi
8043  ;;
8044*)
8045  with_aix_soname=aix
8046  ;;
8047esac
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058# This can be used to rebuild libtool when needed
8059LIBTOOL_DEPS=$ltmain
8060
8061# Always use our own libtool.
8062LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093test -z "$LN_S" && LN_S="ln -s"
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108if test -n "${ZSH_VERSION+set}"; then
8109   setopt NO_GLOB_SUBST
8110fi
8111
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8113$as_echo_n "checking for objdir... " >&6; }
8114if ${lt_cv_objdir+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  rm -f .libs 2>/dev/null
8118mkdir .libs 2>/dev/null
8119if test -d .libs; then
8120  lt_cv_objdir=.libs
8121else
8122  # MS-DOS does not allow filenames that begin with a dot.
8123  lt_cv_objdir=_libs
8124fi
8125rmdir .libs 2>/dev/null
8126fi
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8128$as_echo "$lt_cv_objdir" >&6; }
8129objdir=$lt_cv_objdir
8130
8131
8132
8133
8134
8135cat >>confdefs.h <<_ACEOF
8136#define LT_OBJDIR "$lt_cv_objdir/"
8137_ACEOF
8138
8139
8140
8141
8142case $host_os in
8143aix3*)
8144  # AIX sometimes has problems with the GCC collect2 program.  For some
8145  # reason, if we set the COLLECT_NAMES environment variable, the problems
8146  # vanish in a puff of smoke.
8147  if test set != "${COLLECT_NAMES+set}"; then
8148    COLLECT_NAMES=
8149    export COLLECT_NAMES
8150  fi
8151  ;;
8152esac
8153
8154# Global variables:
8155ofile=libtool
8156can_build_shared=yes
8157
8158# All known linkers require a '.a' archive for static linking (except MSVC,
8159# which needs '.lib').
8160libext=a
8161
8162with_gnu_ld=$lt_cv_prog_gnu_ld
8163
8164old_CC=$CC
8165old_CFLAGS=$CFLAGS
8166
8167# Set sane defaults for various variables
8168test -z "$CC" && CC=cc
8169test -z "$LTCC" && LTCC=$CC
8170test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8171test -z "$LD" && LD=ld
8172test -z "$ac_objext" && ac_objext=o
8173
8174func_cc_basename $compiler
8175cc_basename=$func_cc_basename_result
8176
8177
8178# Only perform the check for file, if the check method requires it
8179test -z "$MAGIC_CMD" && MAGIC_CMD=file
8180case $deplibs_check_method in
8181file_magic*)
8182  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8184$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8185if ${lt_cv_path_MAGIC_CMD+:} false; then :
8186  $as_echo_n "(cached) " >&6
8187else
8188  case $MAGIC_CMD in
8189[\\/*] |  ?:[\\/]*)
8190  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8191  ;;
8192*)
8193  lt_save_MAGIC_CMD=$MAGIC_CMD
8194  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8195  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8196  for ac_dir in $ac_dummy; do
8197    IFS=$lt_save_ifs
8198    test -z "$ac_dir" && ac_dir=.
8199    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8200      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8201      if test -n "$file_magic_test_file"; then
8202	case $deplibs_check_method in
8203	"file_magic "*)
8204	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8205	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8206	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8207	    $EGREP "$file_magic_regex" > /dev/null; then
8208	    :
8209	  else
8210	    cat <<_LT_EOF 1>&2
8211
8212*** Warning: the command libtool uses to detect shared libraries,
8213*** $file_magic_cmd, produces output that libtool cannot recognize.
8214*** The result is that libtool may fail to recognize shared libraries
8215*** as such.  This will affect the creation of libtool libraries that
8216*** depend on shared libraries, but programs linked with such libtool
8217*** libraries will work regardless of this problem.  Nevertheless, you
8218*** may want to report the problem to your system manager and/or to
8219*** bug-libtool@gnu.org
8220
8221_LT_EOF
8222	  fi ;;
8223	esac
8224      fi
8225      break
8226    fi
8227  done
8228  IFS=$lt_save_ifs
8229  MAGIC_CMD=$lt_save_MAGIC_CMD
8230  ;;
8231esac
8232fi
8233
8234MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8235if test -n "$MAGIC_CMD"; then
8236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8237$as_echo "$MAGIC_CMD" >&6; }
8238else
8239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240$as_echo "no" >&6; }
8241fi
8242
8243
8244
8245
8246
8247if test -z "$lt_cv_path_MAGIC_CMD"; then
8248  if test -n "$ac_tool_prefix"; then
8249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8250$as_echo_n "checking for file... " >&6; }
8251if ${lt_cv_path_MAGIC_CMD+:} false; then :
8252  $as_echo_n "(cached) " >&6
8253else
8254  case $MAGIC_CMD in
8255[\\/*] |  ?:[\\/]*)
8256  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8257  ;;
8258*)
8259  lt_save_MAGIC_CMD=$MAGIC_CMD
8260  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8261  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8262  for ac_dir in $ac_dummy; do
8263    IFS=$lt_save_ifs
8264    test -z "$ac_dir" && ac_dir=.
8265    if test -f "$ac_dir/file"; then
8266      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8267      if test -n "$file_magic_test_file"; then
8268	case $deplibs_check_method in
8269	"file_magic "*)
8270	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8271	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8272	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8273	    $EGREP "$file_magic_regex" > /dev/null; then
8274	    :
8275	  else
8276	    cat <<_LT_EOF 1>&2
8277
8278*** Warning: the command libtool uses to detect shared libraries,
8279*** $file_magic_cmd, produces output that libtool cannot recognize.
8280*** The result is that libtool may fail to recognize shared libraries
8281*** as such.  This will affect the creation of libtool libraries that
8282*** depend on shared libraries, but programs linked with such libtool
8283*** libraries will work regardless of this problem.  Nevertheless, you
8284*** may want to report the problem to your system manager and/or to
8285*** bug-libtool@gnu.org
8286
8287_LT_EOF
8288	  fi ;;
8289	esac
8290      fi
8291      break
8292    fi
8293  done
8294  IFS=$lt_save_ifs
8295  MAGIC_CMD=$lt_save_MAGIC_CMD
8296  ;;
8297esac
8298fi
8299
8300MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8301if test -n "$MAGIC_CMD"; then
8302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8303$as_echo "$MAGIC_CMD" >&6; }
8304else
8305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306$as_echo "no" >&6; }
8307fi
8308
8309
8310  else
8311    MAGIC_CMD=:
8312  fi
8313fi
8314
8315  fi
8316  ;;
8317esac
8318
8319# Use C for the default configuration in the libtool script
8320
8321lt_save_CC=$CC
8322ac_ext=c
8323ac_cpp='$CPP $CPPFLAGS'
8324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8326ac_compiler_gnu=$ac_cv_c_compiler_gnu
8327
8328
8329# Source file extension for C test sources.
8330ac_ext=c
8331
8332# Object file extension for compiled C test sources.
8333objext=o
8334objext=$objext
8335
8336# Code to be used in simple compile tests
8337lt_simple_compile_test_code="int some_variable = 0;"
8338
8339# Code to be used in simple link tests
8340lt_simple_link_test_code='int main(){return(0);}'
8341
8342
8343
8344
8345
8346
8347
8348# If no C compiler was specified, use CC.
8349LTCC=${LTCC-"$CC"}
8350
8351# If no C compiler flags were specified, use CFLAGS.
8352LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8353
8354# Allow CC to be a program name with arguments.
8355compiler=$CC
8356
8357# Save the default compiler, since it gets overwritten when the other
8358# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8359compiler_DEFAULT=$CC
8360
8361# save warnings/boilerplate of simple test code
8362ac_outfile=conftest.$ac_objext
8363echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8364eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8365_lt_compiler_boilerplate=`cat conftest.err`
8366$RM conftest*
8367
8368ac_outfile=conftest.$ac_objext
8369echo "$lt_simple_link_test_code" >conftest.$ac_ext
8370eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8371_lt_linker_boilerplate=`cat conftest.err`
8372$RM -r conftest*
8373
8374
8375## CAVEAT EMPTOR:
8376## There is no encapsulation within the following macros, do not change
8377## the running order or otherwise move them around unless you know exactly
8378## what you are doing...
8379if test -n "$compiler"; then
8380
8381lt_prog_compiler_no_builtin_flag=
8382
8383if test yes = "$GCC"; then
8384  case $cc_basename in
8385  nvcc*)
8386    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8387  *)
8388    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8389  esac
8390
8391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8392$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8393if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8394  $as_echo_n "(cached) " >&6
8395else
8396  lt_cv_prog_compiler_rtti_exceptions=no
8397   ac_outfile=conftest.$ac_objext
8398   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8399   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8400   # Insert the option either (1) after the last *FLAGS variable, or
8401   # (2) before a word containing "conftest.", or (3) at the end.
8402   # Note that $ac_compile itself does not contain backslashes and begins
8403   # with a dollar sign (not a hyphen), so the echo should work correctly.
8404   # The option is referenced via a variable to avoid confusing sed.
8405   lt_compile=`echo "$ac_compile" | $SED \
8406   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8407   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8408   -e 's:$: $lt_compiler_flag:'`
8409   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8410   (eval "$lt_compile" 2>conftest.err)
8411   ac_status=$?
8412   cat conftest.err >&5
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   if (exit $ac_status) && test -s "$ac_outfile"; then
8415     # The compiler can only warn and ignore the option if not recognized
8416     # So say no if there are warnings other than the usual output.
8417     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8418     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8419     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8420       lt_cv_prog_compiler_rtti_exceptions=yes
8421     fi
8422   fi
8423   $RM conftest*
8424
8425fi
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8427$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8428
8429if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8430    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8431else
8432    :
8433fi
8434
8435fi
8436
8437
8438
8439
8440
8441
8442  lt_prog_compiler_wl=
8443lt_prog_compiler_pic=
8444lt_prog_compiler_static=
8445
8446
8447  if test yes = "$GCC"; then
8448    lt_prog_compiler_wl='-Wl,'
8449    lt_prog_compiler_static='-static'
8450
8451    case $host_os in
8452      aix*)
8453      # All AIX code is PIC.
8454      if test ia64 = "$host_cpu"; then
8455	# AIX 5 now supports IA64 processor
8456	lt_prog_compiler_static='-Bstatic'
8457      fi
8458      lt_prog_compiler_pic='-fPIC'
8459      ;;
8460
8461    amigaos*)
8462      case $host_cpu in
8463      powerpc)
8464            # see comment about AmigaOS4 .so support
8465            lt_prog_compiler_pic='-fPIC'
8466        ;;
8467      m68k)
8468            # FIXME: we need at least 68020 code to build shared libraries, but
8469            # adding the '-m68020' flag to GCC prevents building anything better,
8470            # like '-m68040'.
8471            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8472        ;;
8473      esac
8474      ;;
8475
8476    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8477      # PIC is the default for these OSes.
8478      ;;
8479
8480    mingw* | cygwin* | pw32* | os2* | cegcc*)
8481      # This hack is so that the source file can tell whether it is being
8482      # built for inclusion in a dll (and should export symbols for example).
8483      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8484      # (--disable-auto-import) libraries
8485      lt_prog_compiler_pic='-DDLL_EXPORT'
8486      case $host_os in
8487      os2*)
8488	lt_prog_compiler_static='$wl-static'
8489	;;
8490      esac
8491      ;;
8492
8493    darwin* | rhapsody*)
8494      # PIC is the default on this platform
8495      # Common symbols not allowed in MH_DYLIB files
8496      lt_prog_compiler_pic='-fno-common'
8497      ;;
8498
8499    haiku*)
8500      # PIC is the default for Haiku.
8501      # The "-static" flag exists, but is broken.
8502      lt_prog_compiler_static=
8503      ;;
8504
8505    hpux*)
8506      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8507      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8508      # sets the default TLS model and affects inlining.
8509      case $host_cpu in
8510      hppa*64*)
8511	# +Z the default
8512	;;
8513      *)
8514	lt_prog_compiler_pic='-fPIC'
8515	;;
8516      esac
8517      ;;
8518
8519    interix[3-9]*)
8520      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8521      # Instead, we relocate shared libraries at runtime.
8522      ;;
8523
8524    msdosdjgpp*)
8525      # Just because we use GCC doesn't mean we suddenly get shared libraries
8526      # on systems that don't support them.
8527      lt_prog_compiler_can_build_shared=no
8528      enable_shared=no
8529      ;;
8530
8531    *nto* | *qnx*)
8532      # QNX uses GNU C++, but need to define -shared option too, otherwise
8533      # it will coredump.
8534      lt_prog_compiler_pic='-fPIC -shared'
8535      ;;
8536
8537    sysv4*MP*)
8538      if test -d /usr/nec; then
8539	lt_prog_compiler_pic=-Kconform_pic
8540      fi
8541      ;;
8542
8543    *)
8544      lt_prog_compiler_pic='-fPIC'
8545      ;;
8546    esac
8547
8548    case $cc_basename in
8549    nvcc*) # Cuda Compiler Driver 2.2
8550      lt_prog_compiler_wl='-Xlinker '
8551      if test -n "$lt_prog_compiler_pic"; then
8552        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8553      fi
8554      ;;
8555    esac
8556  else
8557    # PORTME Check for flag to pass linker flags through the system compiler.
8558    case $host_os in
8559    aix*)
8560      lt_prog_compiler_wl='-Wl,'
8561      if test ia64 = "$host_cpu"; then
8562	# AIX 5 now supports IA64 processor
8563	lt_prog_compiler_static='-Bstatic'
8564      else
8565	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8566      fi
8567      ;;
8568
8569    darwin* | rhapsody*)
8570      # PIC is the default on this platform
8571      # Common symbols not allowed in MH_DYLIB files
8572      lt_prog_compiler_pic='-fno-common'
8573      case $cc_basename in
8574      nagfor*)
8575        # NAG Fortran compiler
8576        lt_prog_compiler_wl='-Wl,-Wl,,'
8577        lt_prog_compiler_pic='-PIC'
8578        lt_prog_compiler_static='-Bstatic'
8579        ;;
8580      esac
8581      ;;
8582
8583    mingw* | cygwin* | pw32* | os2* | cegcc*)
8584      # This hack is so that the source file can tell whether it is being
8585      # built for inclusion in a dll (and should export symbols for example).
8586      lt_prog_compiler_pic='-DDLL_EXPORT'
8587      case $host_os in
8588      os2*)
8589	lt_prog_compiler_static='$wl-static'
8590	;;
8591      esac
8592      ;;
8593
8594    hpux9* | hpux10* | hpux11*)
8595      lt_prog_compiler_wl='-Wl,'
8596      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8597      # not for PA HP-UX.
8598      case $host_cpu in
8599      hppa*64*|ia64*)
8600	# +Z the default
8601	;;
8602      *)
8603	lt_prog_compiler_pic='+Z'
8604	;;
8605      esac
8606      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8607      lt_prog_compiler_static='$wl-a ${wl}archive'
8608      ;;
8609
8610    irix5* | irix6* | nonstopux*)
8611      lt_prog_compiler_wl='-Wl,'
8612      # PIC (with -KPIC) is the default.
8613      lt_prog_compiler_static='-non_shared'
8614      ;;
8615
8616    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8617      case $cc_basename in
8618      # old Intel for x86_64, which still supported -KPIC.
8619      ecc*)
8620	lt_prog_compiler_wl='-Wl,'
8621	lt_prog_compiler_pic='-KPIC'
8622	lt_prog_compiler_static='-static'
8623        ;;
8624      # icc used to be incompatible with GCC.
8625      # ICC 10 doesn't accept -KPIC any more.
8626      icc* | ifort*)
8627	lt_prog_compiler_wl='-Wl,'
8628	lt_prog_compiler_pic='-fPIC'
8629	lt_prog_compiler_static='-static'
8630        ;;
8631      # Lahey Fortran 8.1.
8632      lf95*)
8633	lt_prog_compiler_wl='-Wl,'
8634	lt_prog_compiler_pic='--shared'
8635	lt_prog_compiler_static='--static'
8636	;;
8637      nagfor*)
8638	# NAG Fortran compiler
8639	lt_prog_compiler_wl='-Wl,-Wl,,'
8640	lt_prog_compiler_pic='-PIC'
8641	lt_prog_compiler_static='-Bstatic'
8642	;;
8643      tcc*)
8644	# Fabrice Bellard et al's Tiny C Compiler
8645	lt_prog_compiler_wl='-Wl,'
8646	lt_prog_compiler_pic='-fPIC'
8647	lt_prog_compiler_static='-static'
8648	;;
8649      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8650        # Portland Group compilers (*not* the Pentium gcc compiler,
8651	# which looks to be a dead project)
8652	lt_prog_compiler_wl='-Wl,'
8653	lt_prog_compiler_pic='-fpic'
8654	lt_prog_compiler_static='-Bstatic'
8655        ;;
8656      ccc*)
8657        lt_prog_compiler_wl='-Wl,'
8658        # All Alpha code is PIC.
8659        lt_prog_compiler_static='-non_shared'
8660        ;;
8661      xl* | bgxl* | bgf* | mpixl*)
8662	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8663	lt_prog_compiler_wl='-Wl,'
8664	lt_prog_compiler_pic='-qpic'
8665	lt_prog_compiler_static='-qstaticlink'
8666	;;
8667      *)
8668	case `$CC -V 2>&1 | sed 5q` in
8669	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8670	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8671	  lt_prog_compiler_pic='-KPIC'
8672	  lt_prog_compiler_static='-Bstatic'
8673	  lt_prog_compiler_wl=''
8674	  ;;
8675	*Sun\ F* | *Sun*Fortran*)
8676	  lt_prog_compiler_pic='-KPIC'
8677	  lt_prog_compiler_static='-Bstatic'
8678	  lt_prog_compiler_wl='-Qoption ld '
8679	  ;;
8680	*Sun\ C*)
8681	  # Sun C 5.9
8682	  lt_prog_compiler_pic='-KPIC'
8683	  lt_prog_compiler_static='-Bstatic'
8684	  lt_prog_compiler_wl='-Wl,'
8685	  ;;
8686        *Intel*\ [CF]*Compiler*)
8687	  lt_prog_compiler_wl='-Wl,'
8688	  lt_prog_compiler_pic='-fPIC'
8689	  lt_prog_compiler_static='-static'
8690	  ;;
8691	*Portland\ Group*)
8692	  lt_prog_compiler_wl='-Wl,'
8693	  lt_prog_compiler_pic='-fpic'
8694	  lt_prog_compiler_static='-Bstatic'
8695	  ;;
8696	esac
8697	;;
8698      esac
8699      ;;
8700
8701    newsos6)
8702      lt_prog_compiler_pic='-KPIC'
8703      lt_prog_compiler_static='-Bstatic'
8704      ;;
8705
8706    *nto* | *qnx*)
8707      # QNX uses GNU C++, but need to define -shared option too, otherwise
8708      # it will coredump.
8709      lt_prog_compiler_pic='-fPIC -shared'
8710      ;;
8711
8712    osf3* | osf4* | osf5*)
8713      lt_prog_compiler_wl='-Wl,'
8714      # All OSF/1 code is PIC.
8715      lt_prog_compiler_static='-non_shared'
8716      ;;
8717
8718    rdos*)
8719      lt_prog_compiler_static='-non_shared'
8720      ;;
8721
8722    solaris*)
8723      lt_prog_compiler_pic='-KPIC'
8724      lt_prog_compiler_static='-Bstatic'
8725      case $cc_basename in
8726      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8727	lt_prog_compiler_wl='-Qoption ld ';;
8728      *)
8729	lt_prog_compiler_wl='-Wl,';;
8730      esac
8731      ;;
8732
8733    sunos4*)
8734      lt_prog_compiler_wl='-Qoption ld '
8735      lt_prog_compiler_pic='-PIC'
8736      lt_prog_compiler_static='-Bstatic'
8737      ;;
8738
8739    sysv4 | sysv4.2uw2* | sysv4.3*)
8740      lt_prog_compiler_wl='-Wl,'
8741      lt_prog_compiler_pic='-KPIC'
8742      lt_prog_compiler_static='-Bstatic'
8743      ;;
8744
8745    sysv4*MP*)
8746      if test -d /usr/nec; then
8747	lt_prog_compiler_pic='-Kconform_pic'
8748	lt_prog_compiler_static='-Bstatic'
8749      fi
8750      ;;
8751
8752    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8753      lt_prog_compiler_wl='-Wl,'
8754      lt_prog_compiler_pic='-KPIC'
8755      lt_prog_compiler_static='-Bstatic'
8756      ;;
8757
8758    unicos*)
8759      lt_prog_compiler_wl='-Wl,'
8760      lt_prog_compiler_can_build_shared=no
8761      ;;
8762
8763    uts4*)
8764      lt_prog_compiler_pic='-pic'
8765      lt_prog_compiler_static='-Bstatic'
8766      ;;
8767
8768    *)
8769      lt_prog_compiler_can_build_shared=no
8770      ;;
8771    esac
8772  fi
8773
8774case $host_os in
8775  # For platforms that do not support PIC, -DPIC is meaningless:
8776  *djgpp*)
8777    lt_prog_compiler_pic=
8778    ;;
8779  *)
8780    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8781    ;;
8782esac
8783
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8785$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8786if ${lt_cv_prog_compiler_pic+:} false; then :
8787  $as_echo_n "(cached) " >&6
8788else
8789  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8790fi
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8792$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8793lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8794
8795#
8796# Check to make sure the PIC flag actually works.
8797#
8798if test -n "$lt_prog_compiler_pic"; then
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8800$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8801if ${lt_cv_prog_compiler_pic_works+:} false; then :
8802  $as_echo_n "(cached) " >&6
8803else
8804  lt_cv_prog_compiler_pic_works=no
8805   ac_outfile=conftest.$ac_objext
8806   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8808   # Insert the option either (1) after the last *FLAGS variable, or
8809   # (2) before a word containing "conftest.", or (3) at the end.
8810   # Note that $ac_compile itself does not contain backslashes and begins
8811   # with a dollar sign (not a hyphen), so the echo should work correctly.
8812   # The option is referenced via a variable to avoid confusing sed.
8813   lt_compile=`echo "$ac_compile" | $SED \
8814   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816   -e 's:$: $lt_compiler_flag:'`
8817   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8818   (eval "$lt_compile" 2>conftest.err)
8819   ac_status=$?
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   if (exit $ac_status) && test -s "$ac_outfile"; then
8823     # The compiler can only warn and ignore the option if not recognized
8824     # So say no if there are warnings other than the usual output.
8825     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8826     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8827     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8828       lt_cv_prog_compiler_pic_works=yes
8829     fi
8830   fi
8831   $RM conftest*
8832
8833fi
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8835$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8836
8837if test yes = "$lt_cv_prog_compiler_pic_works"; then
8838    case $lt_prog_compiler_pic in
8839     "" | " "*) ;;
8840     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8841     esac
8842else
8843    lt_prog_compiler_pic=
8844     lt_prog_compiler_can_build_shared=no
8845fi
8846
8847fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859#
8860# Check to make sure the static flag actually works.
8861#
8862wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8864$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8865if ${lt_cv_prog_compiler_static_works+:} false; then :
8866  $as_echo_n "(cached) " >&6
8867else
8868  lt_cv_prog_compiler_static_works=no
8869   save_LDFLAGS=$LDFLAGS
8870   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8871   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8872   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8873     # The linker can only warn and ignore the option if not recognized
8874     # So say no if there are warnings
8875     if test -s conftest.err; then
8876       # Append any errors to the config.log.
8877       cat conftest.err 1>&5
8878       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8879       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8880       if diff conftest.exp conftest.er2 >/dev/null; then
8881         lt_cv_prog_compiler_static_works=yes
8882       fi
8883     else
8884       lt_cv_prog_compiler_static_works=yes
8885     fi
8886   fi
8887   $RM -r conftest*
8888   LDFLAGS=$save_LDFLAGS
8889
8890fi
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8892$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8893
8894if test yes = "$lt_cv_prog_compiler_static_works"; then
8895    :
8896else
8897    lt_prog_compiler_static=
8898fi
8899
8900
8901
8902
8903
8904
8905
8906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8907$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8908if ${lt_cv_prog_compiler_c_o+:} false; then :
8909  $as_echo_n "(cached) " >&6
8910else
8911  lt_cv_prog_compiler_c_o=no
8912   $RM -r conftest 2>/dev/null
8913   mkdir conftest
8914   cd conftest
8915   mkdir out
8916   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8917
8918   lt_compiler_flag="-o out/conftest2.$ac_objext"
8919   # Insert the option either (1) after the last *FLAGS variable, or
8920   # (2) before a word containing "conftest.", or (3) at the end.
8921   # Note that $ac_compile itself does not contain backslashes and begins
8922   # with a dollar sign (not a hyphen), so the echo should work correctly.
8923   lt_compile=`echo "$ac_compile" | $SED \
8924   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8925   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8926   -e 's:$: $lt_compiler_flag:'`
8927   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8928   (eval "$lt_compile" 2>out/conftest.err)
8929   ac_status=$?
8930   cat out/conftest.err >&5
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8933   then
8934     # The compiler can only warn and ignore the option if not recognized
8935     # So say no if there are warnings
8936     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8937     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8938     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8939       lt_cv_prog_compiler_c_o=yes
8940     fi
8941   fi
8942   chmod u+w . 2>&5
8943   $RM conftest*
8944   # SGI C++ compiler will create directory out/ii_files/ for
8945   # template instantiation
8946   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8947   $RM out/* && rmdir out
8948   cd ..
8949   $RM -r conftest
8950   $RM conftest*
8951
8952fi
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8954$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8955
8956
8957
8958
8959
8960
8961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8963if ${lt_cv_prog_compiler_c_o+:} false; then :
8964  $as_echo_n "(cached) " >&6
8965else
8966  lt_cv_prog_compiler_c_o=no
8967   $RM -r conftest 2>/dev/null
8968   mkdir conftest
8969   cd conftest
8970   mkdir out
8971   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8972
8973   lt_compiler_flag="-o out/conftest2.$ac_objext"
8974   # Insert the option either (1) after the last *FLAGS variable, or
8975   # (2) before a word containing "conftest.", or (3) at the end.
8976   # Note that $ac_compile itself does not contain backslashes and begins
8977   # with a dollar sign (not a hyphen), so the echo should work correctly.
8978   lt_compile=`echo "$ac_compile" | $SED \
8979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8981   -e 's:$: $lt_compiler_flag:'`
8982   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8983   (eval "$lt_compile" 2>out/conftest.err)
8984   ac_status=$?
8985   cat out/conftest.err >&5
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8988   then
8989     # The compiler can only warn and ignore the option if not recognized
8990     # So say no if there are warnings
8991     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8992     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8993     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8994       lt_cv_prog_compiler_c_o=yes
8995     fi
8996   fi
8997   chmod u+w . 2>&5
8998   $RM conftest*
8999   # SGI C++ compiler will create directory out/ii_files/ for
9000   # template instantiation
9001   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9002   $RM out/* && rmdir out
9003   cd ..
9004   $RM -r conftest
9005   $RM conftest*
9006
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9009$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9010
9011
9012
9013
9014hard_links=nottested
9015if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9016  # do not overwrite the value of need_locks provided by the user
9017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9018$as_echo_n "checking if we can lock with hard links... " >&6; }
9019  hard_links=yes
9020  $RM conftest*
9021  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9022  touch conftest.a
9023  ln conftest.a conftest.b 2>&5 || hard_links=no
9024  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9026$as_echo "$hard_links" >&6; }
9027  if test no = "$hard_links"; then
9028    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9029$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9030    need_locks=warn
9031  fi
9032else
9033  need_locks=no
9034fi
9035
9036
9037
9038
9039
9040
9041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9042$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9043
9044  runpath_var=
9045  allow_undefined_flag=
9046  always_export_symbols=no
9047  archive_cmds=
9048  archive_expsym_cmds=
9049  compiler_needs_object=no
9050  enable_shared_with_static_runtimes=no
9051  export_dynamic_flag_spec=
9052  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9053  hardcode_automatic=no
9054  hardcode_direct=no
9055  hardcode_direct_absolute=no
9056  hardcode_libdir_flag_spec=
9057  hardcode_libdir_separator=
9058  hardcode_minus_L=no
9059  hardcode_shlibpath_var=unsupported
9060  inherit_rpath=no
9061  link_all_deplibs=unknown
9062  module_cmds=
9063  module_expsym_cmds=
9064  old_archive_from_new_cmds=
9065  old_archive_from_expsyms_cmds=
9066  thread_safe_flag_spec=
9067  whole_archive_flag_spec=
9068  # include_expsyms should be a list of space-separated symbols to be *always*
9069  # included in the symbol list
9070  include_expsyms=
9071  # exclude_expsyms can be an extended regexp of symbols to exclude
9072  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9073  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9074  # as well as any symbol that contains 'd'.
9075  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9076  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9077  # platforms (ab)use it in PIC code, but their linkers get confused if
9078  # the symbol is explicitly referenced.  Since portable code cannot
9079  # rely on this symbol name, it's probably fine to never include it in
9080  # preloaded symbol tables.
9081  # Exclude shared library initialization/finalization symbols.
9082  extract_expsyms_cmds=
9083
9084  case $host_os in
9085  cygwin* | mingw* | pw32* | cegcc*)
9086    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9087    # When not using gcc, we currently assume that we are using
9088    # Microsoft Visual C++.
9089    if test yes != "$GCC"; then
9090      with_gnu_ld=no
9091    fi
9092    ;;
9093  interix*)
9094    # we just hope/assume this is gcc and not c89 (= MSVC++)
9095    with_gnu_ld=yes
9096    ;;
9097  openbsd* | bitrig*)
9098    with_gnu_ld=no
9099    ;;
9100  linux* | k*bsd*-gnu | gnu*)
9101    link_all_deplibs=no
9102    ;;
9103  esac
9104
9105  ld_shlibs=yes
9106
9107  # On some targets, GNU ld is compatible enough with the native linker
9108  # that we're better off using the native interface for both.
9109  lt_use_gnu_ld_interface=no
9110  if test yes = "$with_gnu_ld"; then
9111    case $host_os in
9112      aix*)
9113	# The AIX port of GNU ld has always aspired to compatibility
9114	# with the native linker.  However, as the warning in the GNU ld
9115	# block says, versions before 2.19.5* couldn't really create working
9116	# shared libraries, regardless of the interface used.
9117	case `$LD -v 2>&1` in
9118	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9119	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9120	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9121	  *)
9122	    lt_use_gnu_ld_interface=yes
9123	    ;;
9124	esac
9125	;;
9126      *)
9127	lt_use_gnu_ld_interface=yes
9128	;;
9129    esac
9130  fi
9131
9132  if test yes = "$lt_use_gnu_ld_interface"; then
9133    # If archive_cmds runs LD, not CC, wlarc should be empty
9134    wlarc='$wl'
9135
9136    # Set some defaults for GNU ld with shared library support. These
9137    # are reset later if shared libraries are not supported. Putting them
9138    # here allows them to be overridden if necessary.
9139    runpath_var=LD_RUN_PATH
9140    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9141    export_dynamic_flag_spec='$wl--export-dynamic'
9142    # ancient GNU ld didn't support --whole-archive et. al.
9143    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9144      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9145    else
9146      whole_archive_flag_spec=
9147    fi
9148    supports_anon_versioning=no
9149    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9150      *GNU\ gold*) supports_anon_versioning=yes ;;
9151      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9152      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9153      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9154      *\ 2.11.*) ;; # other 2.11 versions
9155      *) supports_anon_versioning=yes ;;
9156    esac
9157
9158    # See if GNU ld supports shared libraries.
9159    case $host_os in
9160    aix[3-9]*)
9161      # On AIX/PPC, the GNU linker is very broken
9162      if test ia64 != "$host_cpu"; then
9163	ld_shlibs=no
9164	cat <<_LT_EOF 1>&2
9165
9166*** Warning: the GNU linker, at least up to release 2.19, is reported
9167*** to be unable to reliably create shared libraries on AIX.
9168*** Therefore, libtool is disabling shared libraries support.  If you
9169*** really care for shared libraries, you may want to install binutils
9170*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9171*** You will then need to restart the configuration process.
9172
9173_LT_EOF
9174      fi
9175      ;;
9176
9177    amigaos*)
9178      case $host_cpu in
9179      powerpc)
9180            # see comment about AmigaOS4 .so support
9181            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9182            archive_expsym_cmds=''
9183        ;;
9184      m68k)
9185            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)'
9186            hardcode_libdir_flag_spec='-L$libdir'
9187            hardcode_minus_L=yes
9188        ;;
9189      esac
9190      ;;
9191
9192    beos*)
9193      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9194	allow_undefined_flag=unsupported
9195	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9196	# support --undefined.  This deserves some investigation.  FIXME
9197	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9198      else
9199	ld_shlibs=no
9200      fi
9201      ;;
9202
9203    cygwin* | mingw* | pw32* | cegcc*)
9204      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9205      # as there is no search path for DLLs.
9206      hardcode_libdir_flag_spec='-L$libdir'
9207      export_dynamic_flag_spec='$wl--export-all-symbols'
9208      allow_undefined_flag=unsupported
9209      always_export_symbols=no
9210      enable_shared_with_static_runtimes=yes
9211      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'
9212      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9213
9214      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9215        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9216	# If the export-symbols file already is a .def file, use it as
9217	# is; otherwise, prepend EXPORTS...
9218	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9219          cp $export_symbols $output_objdir/$soname.def;
9220        else
9221          echo EXPORTS > $output_objdir/$soname.def;
9222          cat $export_symbols >> $output_objdir/$soname.def;
9223        fi~
9224        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9225      else
9226	ld_shlibs=no
9227      fi
9228      ;;
9229
9230    haiku*)
9231      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9232      link_all_deplibs=yes
9233      ;;
9234
9235    os2*)
9236      hardcode_libdir_flag_spec='-L$libdir'
9237      hardcode_minus_L=yes
9238      allow_undefined_flag=unsupported
9239      shrext_cmds=.dll
9240      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9241	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9242	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9243	$ECHO EXPORTS >> $output_objdir/$libname.def~
9244	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9245	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9246	emximp -o $lib $output_objdir/$libname.def'
9247      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9248	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9249	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9250	$ECHO EXPORTS >> $output_objdir/$libname.def~
9251	prefix_cmds="$SED"~
9252	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9253	  prefix_cmds="$prefix_cmds -e 1d";
9254	fi~
9255	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9256	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9257	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9258	emximp -o $lib $output_objdir/$libname.def'
9259      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9260      enable_shared_with_static_runtimes=yes
9261      ;;
9262
9263    interix[3-9]*)
9264      hardcode_direct=no
9265      hardcode_shlibpath_var=no
9266      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9267      export_dynamic_flag_spec='$wl-E'
9268      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9269      # Instead, shared libraries are loaded at an image base (0x10000000 by
9270      # default) and relocated if they conflict, which is a slow very memory
9271      # consuming and fragmenting process.  To avoid this, we pick a random,
9272      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9273      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9274      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9275      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'
9276      ;;
9277
9278    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9279      tmp_diet=no
9280      if test linux-dietlibc = "$host_os"; then
9281	case $cc_basename in
9282	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9283	esac
9284      fi
9285      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9286	 && test no = "$tmp_diet"
9287      then
9288	tmp_addflag=' $pic_flag'
9289	tmp_sharedflag='-shared'
9290	case $cc_basename,$host_cpu in
9291        pgcc*)				# Portland Group C compiler
9292	  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'
9293	  tmp_addflag=' $pic_flag'
9294	  ;;
9295	pgf77* | pgf90* | pgf95* | pgfortran*)
9296					# Portland Group f77 and f90 compilers
9297	  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'
9298	  tmp_addflag=' $pic_flag -Mnomain' ;;
9299	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9300	  tmp_addflag=' -i_dynamic' ;;
9301	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9302	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9303	ifc* | ifort*)			# Intel Fortran compiler
9304	  tmp_addflag=' -nofor_main' ;;
9305	lf95*)				# Lahey Fortran 8.1
9306	  whole_archive_flag_spec=
9307	  tmp_sharedflag='--shared' ;;
9308        nagfor*)                        # NAGFOR 5.3
9309          tmp_sharedflag='-Wl,-shared' ;;
9310	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9311	  tmp_sharedflag='-qmkshrobj'
9312	  tmp_addflag= ;;
9313	nvcc*)	# Cuda Compiler Driver 2.2
9314	  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'
9315	  compiler_needs_object=yes
9316	  ;;
9317	esac
9318	case `$CC -V 2>&1 | sed 5q` in
9319	*Sun\ C*)			# Sun C 5.9
9320	  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'
9321	  compiler_needs_object=yes
9322	  tmp_sharedflag='-G' ;;
9323	*Sun\ F*)			# Sun Fortran 8.3
9324	  tmp_sharedflag='-G' ;;
9325	esac
9326	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9327
9328        if test yes = "$supports_anon_versioning"; then
9329          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9330            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9331            echo "local: *; };" >> $output_objdir/$libname.ver~
9332            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9333        fi
9334
9335	case $cc_basename in
9336	tcc*)
9337	  export_dynamic_flag_spec='-rdynamic'
9338	  ;;
9339	xlf* | bgf* | bgxlf* | mpixlf*)
9340	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9341	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9342	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9343	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9344	  if test yes = "$supports_anon_versioning"; then
9345	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9346              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9347              echo "local: *; };" >> $output_objdir/$libname.ver~
9348              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9349	  fi
9350	  ;;
9351	esac
9352      else
9353        ld_shlibs=no
9354      fi
9355      ;;
9356
9357    netbsd* | netbsdelf*-gnu)
9358      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9359	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9360	wlarc=
9361      else
9362	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9363	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9364      fi
9365      ;;
9366
9367    solaris*)
9368      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9369	ld_shlibs=no
9370	cat <<_LT_EOF 1>&2
9371
9372*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9373*** create shared libraries on Solaris systems.  Therefore, libtool
9374*** is disabling shared libraries support.  We urge you to upgrade GNU
9375*** binutils to release 2.9.1 or newer.  Another option is to modify
9376*** your PATH or compiler configuration so that the native linker is
9377*** used, and then restart.
9378
9379_LT_EOF
9380      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9381	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9382	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9383      else
9384	ld_shlibs=no
9385      fi
9386      ;;
9387
9388    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9389      case `$LD -v 2>&1` in
9390        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9391	ld_shlibs=no
9392	cat <<_LT_EOF 1>&2
9393
9394*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9395*** reliably create shared libraries on SCO systems.  Therefore, libtool
9396*** is disabling shared libraries support.  We urge you to upgrade GNU
9397*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9398*** your PATH or compiler configuration so that the native linker is
9399*** used, and then restart.
9400
9401_LT_EOF
9402	;;
9403	*)
9404	  # For security reasons, it is highly recommended that you always
9405	  # use absolute paths for naming shared libraries, and exclude the
9406	  # DT_RUNPATH tag from executables and libraries.  But doing so
9407	  # requires that you compile everything twice, which is a pain.
9408	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9409	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9410	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9411	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9412	  else
9413	    ld_shlibs=no
9414	  fi
9415	;;
9416      esac
9417      ;;
9418
9419    sunos4*)
9420      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9421      wlarc=
9422      hardcode_direct=yes
9423      hardcode_shlibpath_var=no
9424      ;;
9425
9426    *)
9427      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9428	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9429	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9430      else
9431	ld_shlibs=no
9432      fi
9433      ;;
9434    esac
9435
9436    if test no = "$ld_shlibs"; then
9437      runpath_var=
9438      hardcode_libdir_flag_spec=
9439      export_dynamic_flag_spec=
9440      whole_archive_flag_spec=
9441    fi
9442  else
9443    # PORTME fill in a description of your system's linker (not GNU ld)
9444    case $host_os in
9445    aix3*)
9446      allow_undefined_flag=unsupported
9447      always_export_symbols=yes
9448      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'
9449      # Note: this linker hardcodes the directories in LIBPATH if there
9450      # are no directories specified by -L.
9451      hardcode_minus_L=yes
9452      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9453	# Neither direct hardcoding nor static linking is supported with a
9454	# broken collect2.
9455	hardcode_direct=unsupported
9456      fi
9457      ;;
9458
9459    aix[4-9]*)
9460      if test ia64 = "$host_cpu"; then
9461	# On IA64, the linker does run time linking by default, so we don't
9462	# have to do anything special.
9463	aix_use_runtimelinking=no
9464	exp_sym_flag='-Bexport'
9465	no_entry_flag=
9466      else
9467	# If we're using GNU nm, then we don't want the "-C" option.
9468	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9469	# Without the "-l" option, or with the "-B" option, AIX nm treats
9470	# weak defined symbols like other global defined symbols, whereas
9471	# GNU nm marks them as "W".
9472	# While the 'weak' keyword is ignored in the Export File, we need
9473	# it in the Import File for the 'aix-soname' feature, so we have
9474	# to replace the "-B" option with "-P" for AIX nm.
9475	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9476	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9477	else
9478	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9479	fi
9480	aix_use_runtimelinking=no
9481
9482	# Test if we are trying to use run time linking or normal
9483	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9484	# have runtime linking enabled, and use it for executables.
9485	# For shared libraries, we enable/disable runtime linking
9486	# depending on the kind of the shared library created -
9487	# when "with_aix_soname,aix_use_runtimelinking" is:
9488	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9489	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9490	#            lib.a           static archive
9491	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9492	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9493	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9494	#            lib.a(lib.so.V) shared, rtl:no
9495	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9496	#            lib.a           static archive
9497	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9498	  for ld_flag in $LDFLAGS; do
9499	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9500	    aix_use_runtimelinking=yes
9501	    break
9502	  fi
9503	  done
9504	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9505	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9506	    # so we don't have lib.a shared libs to link our executables.
9507	    # We have to force runtime linking in this case.
9508	    aix_use_runtimelinking=yes
9509	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9510	  fi
9511	  ;;
9512	esac
9513
9514	exp_sym_flag='-bexport'
9515	no_entry_flag='-bnoentry'
9516      fi
9517
9518      # When large executables or shared objects are built, AIX ld can
9519      # have problems creating the table of contents.  If linking a library
9520      # or program results in "error TOC overflow" add -mminimal-toc to
9521      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9522      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9523
9524      archive_cmds=''
9525      hardcode_direct=yes
9526      hardcode_direct_absolute=yes
9527      hardcode_libdir_separator=':'
9528      link_all_deplibs=yes
9529      file_list_spec='$wl-f,'
9530      case $with_aix_soname,$aix_use_runtimelinking in
9531      aix,*) ;; # traditional, no import file
9532      svr4,* | *,yes) # use import file
9533	# The Import File defines what to hardcode.
9534	hardcode_direct=no
9535	hardcode_direct_absolute=no
9536	;;
9537      esac
9538
9539      if test yes = "$GCC"; then
9540	case $host_os in aix4.[012]|aix4.[012].*)
9541	# We only want to do this on AIX 4.2 and lower, the check
9542	# below for broken collect2 doesn't work under 4.3+
9543	  collect2name=`$CC -print-prog-name=collect2`
9544	  if test -f "$collect2name" &&
9545	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9546	  then
9547	  # We have reworked collect2
9548	  :
9549	  else
9550	  # We have old collect2
9551	  hardcode_direct=unsupported
9552	  # It fails to find uninstalled libraries when the uninstalled
9553	  # path is not listed in the libpath.  Setting hardcode_minus_L
9554	  # to unsupported forces relinking
9555	  hardcode_minus_L=yes
9556	  hardcode_libdir_flag_spec='-L$libdir'
9557	  hardcode_libdir_separator=
9558	  fi
9559	  ;;
9560	esac
9561	shared_flag='-shared'
9562	if test yes = "$aix_use_runtimelinking"; then
9563	  shared_flag="$shared_flag "'$wl-G'
9564	fi
9565	# Need to ensure runtime linking is disabled for the traditional
9566	# shared library, or the linker may eventually find shared libraries
9567	# /with/ Import File - we do not want to mix them.
9568	shared_flag_aix='-shared'
9569	shared_flag_svr4='-shared $wl-G'
9570      else
9571	# not using gcc
9572	if test ia64 = "$host_cpu"; then
9573	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9574	# chokes on -Wl,-G. The following line is correct:
9575	  shared_flag='-G'
9576	else
9577	  if test yes = "$aix_use_runtimelinking"; then
9578	    shared_flag='$wl-G'
9579	  else
9580	    shared_flag='$wl-bM:SRE'
9581	  fi
9582	  shared_flag_aix='$wl-bM:SRE'
9583	  shared_flag_svr4='$wl-G'
9584	fi
9585      fi
9586
9587      export_dynamic_flag_spec='$wl-bexpall'
9588      # It seems that -bexpall does not export symbols beginning with
9589      # underscore (_), so it is better to generate a list of symbols to export.
9590      always_export_symbols=yes
9591      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9592	# Warning - without using the other runtime loading flags (-brtl),
9593	# -berok will link without error, but may produce a broken library.
9594	allow_undefined_flag='-berok'
9595        # Determine the default libpath from the value encoded in an
9596        # empty executable.
9597        if test set = "${lt_cv_aix_libpath+set}"; then
9598  aix_libpath=$lt_cv_aix_libpath
9599else
9600  if ${lt_cv_aix_libpath_+:} false; then :
9601  $as_echo_n "(cached) " >&6
9602else
9603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604/* end confdefs.h.  */
9605
9606int
9607main ()
9608{
9609
9610  ;
9611  return 0;
9612}
9613_ACEOF
9614if ac_fn_c_try_link "$LINENO"; then :
9615
9616  lt_aix_libpath_sed='
9617      /Import File Strings/,/^$/ {
9618	  /^0/ {
9619	      s/^0  *\([^ ]*\) *$/\1/
9620	      p
9621	  }
9622      }'
9623  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624  # Check for a 64-bit object if we didn't find anything.
9625  if test -z "$lt_cv_aix_libpath_"; then
9626    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9627  fi
9628fi
9629rm -f core conftest.err conftest.$ac_objext \
9630    conftest$ac_exeext conftest.$ac_ext
9631  if test -z "$lt_cv_aix_libpath_"; then
9632    lt_cv_aix_libpath_=/usr/lib:/lib
9633  fi
9634
9635fi
9636
9637  aix_libpath=$lt_cv_aix_libpath_
9638fi
9639
9640        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9641        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9642      else
9643	if test ia64 = "$host_cpu"; then
9644	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9645	  allow_undefined_flag="-z nodefs"
9646	  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"
9647	else
9648	 # Determine the default libpath from the value encoded in an
9649	 # empty executable.
9650	 if test set = "${lt_cv_aix_libpath+set}"; then
9651  aix_libpath=$lt_cv_aix_libpath
9652else
9653  if ${lt_cv_aix_libpath_+:} false; then :
9654  $as_echo_n "(cached) " >&6
9655else
9656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658
9659int
9660main ()
9661{
9662
9663  ;
9664  return 0;
9665}
9666_ACEOF
9667if ac_fn_c_try_link "$LINENO"; then :
9668
9669  lt_aix_libpath_sed='
9670      /Import File Strings/,/^$/ {
9671	  /^0/ {
9672	      s/^0  *\([^ ]*\) *$/\1/
9673	      p
9674	  }
9675      }'
9676  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677  # Check for a 64-bit object if we didn't find anything.
9678  if test -z "$lt_cv_aix_libpath_"; then
9679    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9680  fi
9681fi
9682rm -f core conftest.err conftest.$ac_objext \
9683    conftest$ac_exeext conftest.$ac_ext
9684  if test -z "$lt_cv_aix_libpath_"; then
9685    lt_cv_aix_libpath_=/usr/lib:/lib
9686  fi
9687
9688fi
9689
9690  aix_libpath=$lt_cv_aix_libpath_
9691fi
9692
9693	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9694	  # Warning - without using the other run time loading flags,
9695	  # -berok will link without error, but may produce a broken library.
9696	  no_undefined_flag=' $wl-bernotok'
9697	  allow_undefined_flag=' $wl-berok'
9698	  if test yes = "$with_gnu_ld"; then
9699	    # We only use this code for GNU lds that support --whole-archive.
9700	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9701	  else
9702	    # Exported symbols can be pulled into shared objects from archives
9703	    whole_archive_flag_spec='$convenience'
9704	  fi
9705	  archive_cmds_need_lc=yes
9706	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9707	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9708	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9709	  if test svr4 != "$with_aix_soname"; then
9710	    # This is similar to how AIX traditionally builds its shared libraries.
9711	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9712	  fi
9713	  if test aix != "$with_aix_soname"; then
9714	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9715	  else
9716	    # used by -dlpreopen to get the symbols
9717	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9718	  fi
9719	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9720	fi
9721      fi
9722      ;;
9723
9724    amigaos*)
9725      case $host_cpu in
9726      powerpc)
9727            # see comment about AmigaOS4 .so support
9728            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9729            archive_expsym_cmds=''
9730        ;;
9731      m68k)
9732            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)'
9733            hardcode_libdir_flag_spec='-L$libdir'
9734            hardcode_minus_L=yes
9735        ;;
9736      esac
9737      ;;
9738
9739    bsdi[45]*)
9740      export_dynamic_flag_spec=-rdynamic
9741      ;;
9742
9743    cygwin* | mingw* | pw32* | cegcc*)
9744      # When not using gcc, we currently assume that we are using
9745      # Microsoft Visual C++.
9746      # hardcode_libdir_flag_spec is actually meaningless, as there is
9747      # no search path for DLLs.
9748      case $cc_basename in
9749      cl*)
9750	# Native MSVC
9751	hardcode_libdir_flag_spec=' '
9752	allow_undefined_flag=unsupported
9753	always_export_symbols=yes
9754	file_list_spec='@'
9755	# Tell ltmain to make .lib files, not .a files.
9756	libext=lib
9757	# Tell ltmain to make .dll files, not .so files.
9758	shrext_cmds=.dll
9759	# FIXME: Setting linknames here is a bad hack.
9760	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9761	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9762            cp "$export_symbols" "$output_objdir/$soname.def";
9763            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9764          else
9765            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9766          fi~
9767          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9768          linknames='
9769	# The linker will not automatically build a static lib if we build a DLL.
9770	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9771	enable_shared_with_static_runtimes=yes
9772	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9773	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9774	# Don't use ranlib
9775	old_postinstall_cmds='chmod 644 $oldlib'
9776	postlink_cmds='lt_outputfile="@OUTPUT@"~
9777          lt_tool_outputfile="@TOOL_OUTPUT@"~
9778          case $lt_outputfile in
9779            *.exe|*.EXE) ;;
9780            *)
9781              lt_outputfile=$lt_outputfile.exe
9782              lt_tool_outputfile=$lt_tool_outputfile.exe
9783              ;;
9784          esac~
9785          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9786            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9787            $RM "$lt_outputfile.manifest";
9788          fi'
9789	;;
9790      *)
9791	# Assume MSVC wrapper
9792	hardcode_libdir_flag_spec=' '
9793	allow_undefined_flag=unsupported
9794	# Tell ltmain to make .lib files, not .a files.
9795	libext=lib
9796	# Tell ltmain to make .dll files, not .so files.
9797	shrext_cmds=.dll
9798	# FIXME: Setting linknames here is a bad hack.
9799	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9800	# The linker will automatically build a .lib file if we build a DLL.
9801	old_archive_from_new_cmds='true'
9802	# FIXME: Should let the user specify the lib program.
9803	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9804	enable_shared_with_static_runtimes=yes
9805	;;
9806      esac
9807      ;;
9808
9809    darwin* | rhapsody*)
9810
9811
9812  archive_cmds_need_lc=no
9813  hardcode_direct=no
9814  hardcode_automatic=yes
9815  hardcode_shlibpath_var=unsupported
9816  if test yes = "$lt_cv_ld_force_load"; then
9817    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\"`'
9818
9819  else
9820    whole_archive_flag_spec=''
9821  fi
9822  link_all_deplibs=yes
9823  allow_undefined_flag=$_lt_dar_allow_undefined
9824  case $cc_basename in
9825     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9826     *) _lt_dar_can_shared=$GCC ;;
9827  esac
9828  if test yes = "$_lt_dar_can_shared"; then
9829    output_verbose_link_cmd=func_echo_all
9830    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9831    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9832    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"
9833    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"
9834
9835  else
9836  ld_shlibs=no
9837  fi
9838
9839      ;;
9840
9841    dgux*)
9842      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843      hardcode_libdir_flag_spec='-L$libdir'
9844      hardcode_shlibpath_var=no
9845      ;;
9846
9847    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9848    # support.  Future versions do this automatically, but an explicit c++rt0.o
9849    # does not break anything, and helps significantly (at the cost of a little
9850    # extra space).
9851    freebsd2.2*)
9852      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9853      hardcode_libdir_flag_spec='-R$libdir'
9854      hardcode_direct=yes
9855      hardcode_shlibpath_var=no
9856      ;;
9857
9858    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9859    freebsd2.*)
9860      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861      hardcode_direct=yes
9862      hardcode_minus_L=yes
9863      hardcode_shlibpath_var=no
9864      ;;
9865
9866    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9867    freebsd* | dragonfly*)
9868      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9869      hardcode_libdir_flag_spec='-R$libdir'
9870      hardcode_direct=yes
9871      hardcode_shlibpath_var=no
9872      ;;
9873
9874    hpux9*)
9875      if test yes = "$GCC"; then
9876	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9877      else
9878	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9879      fi
9880      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9881      hardcode_libdir_separator=:
9882      hardcode_direct=yes
9883
9884      # hardcode_minus_L: Not really in the search PATH,
9885      # but as the default location of the library.
9886      hardcode_minus_L=yes
9887      export_dynamic_flag_spec='$wl-E'
9888      ;;
9889
9890    hpux10*)
9891      if test yes,no = "$GCC,$with_gnu_ld"; then
9892	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893      else
9894	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9895      fi
9896      if test no = "$with_gnu_ld"; then
9897	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9898	hardcode_libdir_separator=:
9899	hardcode_direct=yes
9900	hardcode_direct_absolute=yes
9901	export_dynamic_flag_spec='$wl-E'
9902	# hardcode_minus_L: Not really in the search PATH,
9903	# but as the default location of the library.
9904	hardcode_minus_L=yes
9905      fi
9906      ;;
9907
9908    hpux11*)
9909      if test yes,no = "$GCC,$with_gnu_ld"; then
9910	case $host_cpu in
9911	hppa*64*)
9912	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9913	  ;;
9914	ia64*)
9915	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9916	  ;;
9917	*)
9918	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9919	  ;;
9920	esac
9921      else
9922	case $host_cpu in
9923	hppa*64*)
9924	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9925	  ;;
9926	ia64*)
9927	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9928	  ;;
9929	*)
9930
9931	  # Older versions of the 11.00 compiler do not understand -b yet
9932	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9933	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9934$as_echo_n "checking if $CC understands -b... " >&6; }
9935if ${lt_cv_prog_compiler__b+:} false; then :
9936  $as_echo_n "(cached) " >&6
9937else
9938  lt_cv_prog_compiler__b=no
9939   save_LDFLAGS=$LDFLAGS
9940   LDFLAGS="$LDFLAGS -b"
9941   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9942   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9943     # The linker can only warn and ignore the option if not recognized
9944     # So say no if there are warnings
9945     if test -s conftest.err; then
9946       # Append any errors to the config.log.
9947       cat conftest.err 1>&5
9948       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9949       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9950       if diff conftest.exp conftest.er2 >/dev/null; then
9951         lt_cv_prog_compiler__b=yes
9952       fi
9953     else
9954       lt_cv_prog_compiler__b=yes
9955     fi
9956   fi
9957   $RM -r conftest*
9958   LDFLAGS=$save_LDFLAGS
9959
9960fi
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9962$as_echo "$lt_cv_prog_compiler__b" >&6; }
9963
9964if test yes = "$lt_cv_prog_compiler__b"; then
9965    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9966else
9967    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9968fi
9969
9970	  ;;
9971	esac
9972      fi
9973      if test no = "$with_gnu_ld"; then
9974	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9975	hardcode_libdir_separator=:
9976
9977	case $host_cpu in
9978	hppa*64*|ia64*)
9979	  hardcode_direct=no
9980	  hardcode_shlibpath_var=no
9981	  ;;
9982	*)
9983	  hardcode_direct=yes
9984	  hardcode_direct_absolute=yes
9985	  export_dynamic_flag_spec='$wl-E'
9986
9987	  # hardcode_minus_L: Not really in the search PATH,
9988	  # but as the default location of the library.
9989	  hardcode_minus_L=yes
9990	  ;;
9991	esac
9992      fi
9993      ;;
9994
9995    irix5* | irix6* | nonstopux*)
9996      if test yes = "$GCC"; then
9997	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'
9998	# Try to use the -exported_symbol ld option, if it does not
9999	# work, assume that -exports_file does not work either and
10000	# implicitly export all symbols.
10001	# This should be the same for all languages, so no per-tag cache variable.
10002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10003$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10004if ${lt_cv_irix_exported_symbol+:} false; then :
10005  $as_echo_n "(cached) " >&6
10006else
10007  save_LDFLAGS=$LDFLAGS
10008	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10009	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010/* end confdefs.h.  */
10011int foo (void) { return 0; }
10012_ACEOF
10013if ac_fn_c_try_link "$LINENO"; then :
10014  lt_cv_irix_exported_symbol=yes
10015else
10016  lt_cv_irix_exported_symbol=no
10017fi
10018rm -f core conftest.err conftest.$ac_objext \
10019    conftest$ac_exeext conftest.$ac_ext
10020           LDFLAGS=$save_LDFLAGS
10021fi
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10023$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10024	if test yes = "$lt_cv_irix_exported_symbol"; then
10025          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'
10026	fi
10027	link_all_deplibs=no
10028      else
10029	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'
10030	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'
10031      fi
10032      archive_cmds_need_lc='no'
10033      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10034      hardcode_libdir_separator=:
10035      inherit_rpath=yes
10036      link_all_deplibs=yes
10037      ;;
10038
10039    linux*)
10040      case $cc_basename in
10041      tcc*)
10042	# Fabrice Bellard et al's Tiny C Compiler
10043	ld_shlibs=yes
10044	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10045	;;
10046      esac
10047      ;;
10048
10049    netbsd* | netbsdelf*-gnu)
10050      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10051	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10052      else
10053	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10054      fi
10055      hardcode_libdir_flag_spec='-R$libdir'
10056      hardcode_direct=yes
10057      hardcode_shlibpath_var=no
10058      ;;
10059
10060    newsos6)
10061      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062      hardcode_direct=yes
10063      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10064      hardcode_libdir_separator=:
10065      hardcode_shlibpath_var=no
10066      ;;
10067
10068    *nto* | *qnx*)
10069      ;;
10070
10071    openbsd* | bitrig*)
10072      if test -f /usr/libexec/ld.so; then
10073	hardcode_direct=yes
10074	hardcode_shlibpath_var=no
10075	hardcode_direct_absolute=yes
10076	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10077	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10078	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10079	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10080	  export_dynamic_flag_spec='$wl-E'
10081	else
10082	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10083	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10084	fi
10085      else
10086	ld_shlibs=no
10087      fi
10088      ;;
10089
10090    os2*)
10091      hardcode_libdir_flag_spec='-L$libdir'
10092      hardcode_minus_L=yes
10093      allow_undefined_flag=unsupported
10094      shrext_cmds=.dll
10095      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10096	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10097	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10098	$ECHO EXPORTS >> $output_objdir/$libname.def~
10099	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10100	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10101	emximp -o $lib $output_objdir/$libname.def'
10102      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10103	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10104	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10105	$ECHO EXPORTS >> $output_objdir/$libname.def~
10106	prefix_cmds="$SED"~
10107	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10108	  prefix_cmds="$prefix_cmds -e 1d";
10109	fi~
10110	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10111	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10112	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10113	emximp -o $lib $output_objdir/$libname.def'
10114      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10115      enable_shared_with_static_runtimes=yes
10116      ;;
10117
10118    osf3*)
10119      if test yes = "$GCC"; then
10120	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10121	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'
10122      else
10123	allow_undefined_flag=' -expect_unresolved \*'
10124	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'
10125      fi
10126      archive_cmds_need_lc='no'
10127      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10128      hardcode_libdir_separator=:
10129      ;;
10130
10131    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10132      if test yes = "$GCC"; then
10133	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10134	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'
10135	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10136      else
10137	allow_undefined_flag=' -expect_unresolved \*'
10138	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'
10139	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~
10140          $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'
10141
10142	# Both c and cxx compiler support -rpath directly
10143	hardcode_libdir_flag_spec='-rpath $libdir'
10144      fi
10145      archive_cmds_need_lc='no'
10146      hardcode_libdir_separator=:
10147      ;;
10148
10149    solaris*)
10150      no_undefined_flag=' -z defs'
10151      if test yes = "$GCC"; then
10152	wlarc='$wl'
10153	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10154	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10155          $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'
10156      else
10157	case `$CC -V 2>&1` in
10158	*"Compilers 5.0"*)
10159	  wlarc=''
10160	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10162            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10163	  ;;
10164	*)
10165	  wlarc='$wl'
10166	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10167	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10168            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10169	  ;;
10170	esac
10171      fi
10172      hardcode_libdir_flag_spec='-R$libdir'
10173      hardcode_shlibpath_var=no
10174      case $host_os in
10175      solaris2.[0-5] | solaris2.[0-5].*) ;;
10176      *)
10177	# The compiler driver will combine and reorder linker options,
10178	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10179	# but is careful enough not to reorder.
10180	# Supported since Solaris 2.6 (maybe 2.5.1?)
10181	if test yes = "$GCC"; then
10182	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10183	else
10184	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10185	fi
10186	;;
10187      esac
10188      link_all_deplibs=yes
10189      ;;
10190
10191    sunos4*)
10192      if test sequent = "$host_vendor"; then
10193	# Use $CC to link under sequent, because it throws in some extra .o
10194	# files that make .init and .fini sections work.
10195	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10196      else
10197	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10198      fi
10199      hardcode_libdir_flag_spec='-L$libdir'
10200      hardcode_direct=yes
10201      hardcode_minus_L=yes
10202      hardcode_shlibpath_var=no
10203      ;;
10204
10205    sysv4)
10206      case $host_vendor in
10207	sni)
10208	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209	  hardcode_direct=yes # is this really true???
10210	;;
10211	siemens)
10212	  ## LD is ld it makes a PLAMLIB
10213	  ## CC just makes a GrossModule.
10214	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10215	  reload_cmds='$CC -r -o $output$reload_objs'
10216	  hardcode_direct=no
10217        ;;
10218	motorola)
10219	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10221	;;
10222      esac
10223      runpath_var='LD_RUN_PATH'
10224      hardcode_shlibpath_var=no
10225      ;;
10226
10227    sysv4.3*)
10228      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229      hardcode_shlibpath_var=no
10230      export_dynamic_flag_spec='-Bexport'
10231      ;;
10232
10233    sysv4*MP*)
10234      if test -d /usr/nec; then
10235	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10236	hardcode_shlibpath_var=no
10237	runpath_var=LD_RUN_PATH
10238	hardcode_runpath_var=yes
10239	ld_shlibs=yes
10240      fi
10241      ;;
10242
10243    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10244      no_undefined_flag='$wl-z,text'
10245      archive_cmds_need_lc=no
10246      hardcode_shlibpath_var=no
10247      runpath_var='LD_RUN_PATH'
10248
10249      if test yes = "$GCC"; then
10250	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252      else
10253	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255      fi
10256      ;;
10257
10258    sysv5* | sco3.2v5* | sco5v6*)
10259      # Note: We CANNOT use -z defs as we might desire, because we do not
10260      # link with -lc, and that would cause any symbols used from libc to
10261      # always be unresolved, which means just about no library would
10262      # ever link correctly.  If we're not using GNU ld we use -z text
10263      # though, which does catch some bad symbols but isn't as heavy-handed
10264      # as -z defs.
10265      no_undefined_flag='$wl-z,text'
10266      allow_undefined_flag='$wl-z,nodefs'
10267      archive_cmds_need_lc=no
10268      hardcode_shlibpath_var=no
10269      hardcode_libdir_flag_spec='$wl-R,$libdir'
10270      hardcode_libdir_separator=':'
10271      link_all_deplibs=yes
10272      export_dynamic_flag_spec='$wl-Bexport'
10273      runpath_var='LD_RUN_PATH'
10274
10275      if test yes = "$GCC"; then
10276	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10278      else
10279	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10281      fi
10282      ;;
10283
10284    uts4*)
10285      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286      hardcode_libdir_flag_spec='-L$libdir'
10287      hardcode_shlibpath_var=no
10288      ;;
10289
10290    *)
10291      ld_shlibs=no
10292      ;;
10293    esac
10294
10295    if test sni = "$host_vendor"; then
10296      case $host in
10297      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10298	export_dynamic_flag_spec='$wl-Blargedynsym'
10299	;;
10300      esac
10301    fi
10302  fi
10303
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10305$as_echo "$ld_shlibs" >&6; }
10306test no = "$ld_shlibs" && can_build_shared=no
10307
10308with_gnu_ld=$with_gnu_ld
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324#
10325# Do we need to explicitly link libc?
10326#
10327case "x$archive_cmds_need_lc" in
10328x|xyes)
10329  # Assume -lc should be added
10330  archive_cmds_need_lc=yes
10331
10332  if test yes,yes = "$GCC,$enable_shared"; then
10333    case $archive_cmds in
10334    *'~'*)
10335      # FIXME: we may have to deal with multi-command sequences.
10336      ;;
10337    '$CC '*)
10338      # Test whether the compiler implicitly links with -lc since on some
10339      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10340      # to ld, don't add -lc before -lgcc.
10341      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10342$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10343if ${lt_cv_archive_cmds_need_lc+:} false; then :
10344  $as_echo_n "(cached) " >&6
10345else
10346  $RM conftest*
10347	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10348
10349	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10350  (eval $ac_compile) 2>&5
10351  ac_status=$?
10352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10353  test $ac_status = 0; } 2>conftest.err; then
10354	  soname=conftest
10355	  lib=conftest
10356	  libobjs=conftest.$ac_objext
10357	  deplibs=
10358	  wl=$lt_prog_compiler_wl
10359	  pic_flag=$lt_prog_compiler_pic
10360	  compiler_flags=-v
10361	  linker_flags=-v
10362	  verstring=
10363	  output_objdir=.
10364	  libname=conftest
10365	  lt_save_allow_undefined_flag=$allow_undefined_flag
10366	  allow_undefined_flag=
10367	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10368  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10369  ac_status=$?
10370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10371  test $ac_status = 0; }
10372	  then
10373	    lt_cv_archive_cmds_need_lc=no
10374	  else
10375	    lt_cv_archive_cmds_need_lc=yes
10376	  fi
10377	  allow_undefined_flag=$lt_save_allow_undefined_flag
10378	else
10379	  cat conftest.err 1>&5
10380	fi
10381	$RM conftest*
10382
10383fi
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10385$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10386      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10387      ;;
10388    esac
10389  fi
10390  ;;
10391esac
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10545$as_echo_n "checking dynamic linker characteristics... " >&6; }
10546
10547if test yes = "$GCC"; then
10548  case $host_os in
10549    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10550    *) lt_awk_arg='/^libraries:/' ;;
10551  esac
10552  case $host_os in
10553    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10554    *) lt_sed_strip_eq='s|=/|/|g' ;;
10555  esac
10556  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10557  case $lt_search_path_spec in
10558  *\;*)
10559    # if the path contains ";" then we assume it to be the separator
10560    # otherwise default to the standard path separator (i.e. ":") - it is
10561    # assumed that no part of a normal pathname contains ";" but that should
10562    # okay in the real world where ";" in dirpaths is itself problematic.
10563    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10564    ;;
10565  *)
10566    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10567    ;;
10568  esac
10569  # Ok, now we have the path, separated by spaces, we can step through it
10570  # and add multilib dir if necessary...
10571  lt_tmp_lt_search_path_spec=
10572  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10573  # ...but if some path component already ends with the multilib dir we assume
10574  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10575  case "$lt_multi_os_dir; $lt_search_path_spec " in
10576  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10577    lt_multi_os_dir=
10578    ;;
10579  esac
10580  for lt_sys_path in $lt_search_path_spec; do
10581    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10582      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10583    elif test -n "$lt_multi_os_dir"; then
10584      test -d "$lt_sys_path" && \
10585	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10586    fi
10587  done
10588  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10589BEGIN {RS = " "; FS = "/|\n";} {
10590  lt_foo = "";
10591  lt_count = 0;
10592  for (lt_i = NF; lt_i > 0; lt_i--) {
10593    if ($lt_i != "" && $lt_i != ".") {
10594      if ($lt_i == "..") {
10595        lt_count++;
10596      } else {
10597        if (lt_count == 0) {
10598          lt_foo = "/" $lt_i lt_foo;
10599        } else {
10600          lt_count--;
10601        }
10602      }
10603    }
10604  }
10605  if (lt_foo != "") { lt_freq[lt_foo]++; }
10606  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10607}'`
10608  # AWK program above erroneously prepends '/' to C:/dos/paths
10609  # for these hosts.
10610  case $host_os in
10611    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10612      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10613  esac
10614  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10615else
10616  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10617fi
10618library_names_spec=
10619libname_spec='lib$name'
10620soname_spec=
10621shrext_cmds=.so
10622postinstall_cmds=
10623postuninstall_cmds=
10624finish_cmds=
10625finish_eval=
10626shlibpath_var=
10627shlibpath_overrides_runpath=unknown
10628version_type=none
10629dynamic_linker="$host_os ld.so"
10630sys_lib_dlsearch_path_spec="/lib /usr/lib"
10631need_lib_prefix=unknown
10632hardcode_into_libs=no
10633
10634# when you set need_version to no, make sure it does not cause -set_version
10635# flags to be left without arguments
10636need_version=unknown
10637
10638
10639
10640case $host_os in
10641aix3*)
10642  version_type=linux # correct to gnu/linux during the next big refactor
10643  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10644  shlibpath_var=LIBPATH
10645
10646  # AIX 3 has no versioning support, so we append a major version to the name.
10647  soname_spec='$libname$release$shared_ext$major'
10648  ;;
10649
10650aix[4-9]*)
10651  version_type=linux # correct to gnu/linux during the next big refactor
10652  need_lib_prefix=no
10653  need_version=no
10654  hardcode_into_libs=yes
10655  if test ia64 = "$host_cpu"; then
10656    # AIX 5 supports IA64
10657    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10658    shlibpath_var=LD_LIBRARY_PATH
10659  else
10660    # With GCC up to 2.95.x, collect2 would create an import file
10661    # for dependence libraries.  The import file would start with
10662    # the line '#! .'.  This would cause the generated library to
10663    # depend on '.', always an invalid library.  This was fixed in
10664    # development snapshots of GCC prior to 3.0.
10665    case $host_os in
10666      aix4 | aix4.[01] | aix4.[01].*)
10667      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10668	   echo ' yes '
10669	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10670	:
10671      else
10672	can_build_shared=no
10673      fi
10674      ;;
10675    esac
10676    # Using Import Files as archive members, it is possible to support
10677    # filename-based versioning of shared library archives on AIX. While
10678    # this would work for both with and without runtime linking, it will
10679    # prevent static linking of such archives. So we do filename-based
10680    # shared library versioning with .so extension only, which is used
10681    # when both runtime linking and shared linking is enabled.
10682    # Unfortunately, runtime linking may impact performance, so we do
10683    # not want this to be the default eventually. Also, we use the
10684    # versioned .so libs for executables only if there is the -brtl
10685    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10686    # To allow for filename-based versioning support, we need to create
10687    # libNAME.so.V as an archive file, containing:
10688    # *) an Import File, referring to the versioned filename of the
10689    #    archive as well as the shared archive member, telling the
10690    #    bitwidth (32 or 64) of that shared object, and providing the
10691    #    list of exported symbols of that shared object, eventually
10692    #    decorated with the 'weak' keyword
10693    # *) the shared object with the F_LOADONLY flag set, to really avoid
10694    #    it being seen by the linker.
10695    # At run time we better use the real file rather than another symlink,
10696    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10697
10698    case $with_aix_soname,$aix_use_runtimelinking in
10699    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10700    # soname into executable. Probably we can add versioning support to
10701    # collect2, so additional links can be useful in future.
10702    aix,yes) # traditional libtool
10703      dynamic_linker='AIX unversionable lib.so'
10704      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10705      # instead of lib<name>.a to let people know that these are not
10706      # typical AIX shared libraries.
10707      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10708      ;;
10709    aix,no) # traditional AIX only
10710      dynamic_linker='AIX lib.a(lib.so.V)'
10711      # We preserve .a as extension for shared libraries through AIX4.2
10712      # and later when we are not doing run time linking.
10713      library_names_spec='$libname$release.a $libname.a'
10714      soname_spec='$libname$release$shared_ext$major'
10715      ;;
10716    svr4,*) # full svr4 only
10717      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10718      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10719      # We do not specify a path in Import Files, so LIBPATH fires.
10720      shlibpath_overrides_runpath=yes
10721      ;;
10722    *,yes) # both, prefer svr4
10723      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10724      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10725      # unpreferred sharedlib libNAME.a needs extra handling
10726      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10727      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10728      # We do not specify a path in Import Files, so LIBPATH fires.
10729      shlibpath_overrides_runpath=yes
10730      ;;
10731    *,no) # both, prefer aix
10732      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10733      library_names_spec='$libname$release.a $libname.a'
10734      soname_spec='$libname$release$shared_ext$major'
10735      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10736      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10737      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10738      ;;
10739    esac
10740    shlibpath_var=LIBPATH
10741  fi
10742  ;;
10743
10744amigaos*)
10745  case $host_cpu in
10746  powerpc)
10747    # Since July 2007 AmigaOS4 officially supports .so libraries.
10748    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10749    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10750    ;;
10751  m68k)
10752    library_names_spec='$libname.ixlibrary $libname.a'
10753    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10754    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10755    ;;
10756  esac
10757  ;;
10758
10759beos*)
10760  library_names_spec='$libname$shared_ext'
10761  dynamic_linker="$host_os ld.so"
10762  shlibpath_var=LIBRARY_PATH
10763  ;;
10764
10765bsdi[45]*)
10766  version_type=linux # correct to gnu/linux during the next big refactor
10767  need_version=no
10768  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10769  soname_spec='$libname$release$shared_ext$major'
10770  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10771  shlibpath_var=LD_LIBRARY_PATH
10772  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10773  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10774  # the default ld.so.conf also contains /usr/contrib/lib and
10775  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10776  # libtool to hard-code these into programs
10777  ;;
10778
10779cygwin* | mingw* | pw32* | cegcc*)
10780  version_type=windows
10781  shrext_cmds=.dll
10782  need_version=no
10783  need_lib_prefix=no
10784
10785  case $GCC,$cc_basename in
10786  yes,*)
10787    # gcc
10788    library_names_spec='$libname.dll.a'
10789    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10790    postinstall_cmds='base_file=`basename \$file`~
10791      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10792      dldir=$destdir/`dirname \$dlpath`~
10793      test -d \$dldir || mkdir -p \$dldir~
10794      $install_prog $dir/$dlname \$dldir/$dlname~
10795      chmod a+x \$dldir/$dlname~
10796      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10797        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10798      fi'
10799    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10800      dlpath=$dir/\$dldll~
10801       $RM \$dlpath'
10802    shlibpath_overrides_runpath=yes
10803
10804    case $host_os in
10805    cygwin*)
10806      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10807      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10808
10809      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10810      ;;
10811    mingw* | cegcc*)
10812      # MinGW DLLs use traditional 'lib' prefix
10813      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10814      ;;
10815    pw32*)
10816      # pw32 DLLs use 'pw' prefix rather than 'lib'
10817      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10818      ;;
10819    esac
10820    dynamic_linker='Win32 ld.exe'
10821    ;;
10822
10823  *,cl*)
10824    # Native MSVC
10825    libname_spec='$name'
10826    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10827    library_names_spec='$libname.dll.lib'
10828
10829    case $build_os in
10830    mingw*)
10831      sys_lib_search_path_spec=
10832      lt_save_ifs=$IFS
10833      IFS=';'
10834      for lt_path in $LIB
10835      do
10836        IFS=$lt_save_ifs
10837        # Let DOS variable expansion print the short 8.3 style file name.
10838        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10839        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10840      done
10841      IFS=$lt_save_ifs
10842      # Convert to MSYS style.
10843      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10844      ;;
10845    cygwin*)
10846      # Convert to unix form, then to dos form, then back to unix form
10847      # but this time dos style (no spaces!) so that the unix form looks
10848      # like /cygdrive/c/PROGRA~1:/cygdr...
10849      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10850      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10851      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10852      ;;
10853    *)
10854      sys_lib_search_path_spec=$LIB
10855      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10856        # It is most probably a Windows format PATH.
10857        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10858      else
10859        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10860      fi
10861      # FIXME: find the short name or the path components, as spaces are
10862      # common. (e.g. "Program Files" -> "PROGRA~1")
10863      ;;
10864    esac
10865
10866    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10867    postinstall_cmds='base_file=`basename \$file`~
10868      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10869      dldir=$destdir/`dirname \$dlpath`~
10870      test -d \$dldir || mkdir -p \$dldir~
10871      $install_prog $dir/$dlname \$dldir/$dlname'
10872    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10873      dlpath=$dir/\$dldll~
10874       $RM \$dlpath'
10875    shlibpath_overrides_runpath=yes
10876    dynamic_linker='Win32 link.exe'
10877    ;;
10878
10879  *)
10880    # Assume MSVC wrapper
10881    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10882    dynamic_linker='Win32 ld.exe'
10883    ;;
10884  esac
10885  # FIXME: first we should search . and the directory the executable is in
10886  shlibpath_var=PATH
10887  ;;
10888
10889darwin* | rhapsody*)
10890  dynamic_linker="$host_os dyld"
10891  version_type=darwin
10892  need_lib_prefix=no
10893  need_version=no
10894  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10895  soname_spec='$libname$release$major$shared_ext'
10896  shlibpath_overrides_runpath=yes
10897  shlibpath_var=DYLD_LIBRARY_PATH
10898  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10899
10900  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10901  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10902  ;;
10903
10904dgux*)
10905  version_type=linux # correct to gnu/linux during the next big refactor
10906  need_lib_prefix=no
10907  need_version=no
10908  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10909  soname_spec='$libname$release$shared_ext$major'
10910  shlibpath_var=LD_LIBRARY_PATH
10911  ;;
10912
10913freebsd* | dragonfly*)
10914  # DragonFly does not have aout.  When/if they implement a new
10915  # versioning mechanism, adjust this.
10916  if test -x /usr/bin/objformat; then
10917    objformat=`/usr/bin/objformat`
10918  else
10919    case $host_os in
10920    freebsd[23].*) objformat=aout ;;
10921    *) objformat=elf ;;
10922    esac
10923  fi
10924  version_type=freebsd-$objformat
10925  case $version_type in
10926    freebsd-elf*)
10927      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10928      soname_spec='$libname$release$shared_ext$major'
10929      need_version=no
10930      need_lib_prefix=no
10931      ;;
10932    freebsd-*)
10933      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10934      need_version=yes
10935      ;;
10936  esac
10937  shlibpath_var=LD_LIBRARY_PATH
10938  case $host_os in
10939  freebsd2.*)
10940    shlibpath_overrides_runpath=yes
10941    ;;
10942  freebsd3.[01]* | freebsdelf3.[01]*)
10943    shlibpath_overrides_runpath=yes
10944    hardcode_into_libs=yes
10945    ;;
10946  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10947  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10948    shlibpath_overrides_runpath=no
10949    hardcode_into_libs=yes
10950    ;;
10951  *) # from 4.6 on, and DragonFly
10952    shlibpath_overrides_runpath=yes
10953    hardcode_into_libs=yes
10954    ;;
10955  esac
10956  ;;
10957
10958haiku*)
10959  version_type=linux # correct to gnu/linux during the next big refactor
10960  need_lib_prefix=no
10961  need_version=no
10962  dynamic_linker="$host_os runtime_loader"
10963  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964  soname_spec='$libname$release$shared_ext$major'
10965  shlibpath_var=LIBRARY_PATH
10966  shlibpath_overrides_runpath=no
10967  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10968  hardcode_into_libs=yes
10969  ;;
10970
10971hpux9* | hpux10* | hpux11*)
10972  # Give a soname corresponding to the major version so that dld.sl refuses to
10973  # link against other versions.
10974  version_type=sunos
10975  need_lib_prefix=no
10976  need_version=no
10977  case $host_cpu in
10978  ia64*)
10979    shrext_cmds='.so'
10980    hardcode_into_libs=yes
10981    dynamic_linker="$host_os dld.so"
10982    shlibpath_var=LD_LIBRARY_PATH
10983    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10984    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10985    soname_spec='$libname$release$shared_ext$major'
10986    if test 32 = "$HPUX_IA64_MODE"; then
10987      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10988      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10989    else
10990      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10991      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10992    fi
10993    ;;
10994  hppa*64*)
10995    shrext_cmds='.sl'
10996    hardcode_into_libs=yes
10997    dynamic_linker="$host_os dld.sl"
10998    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10999    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11000    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11001    soname_spec='$libname$release$shared_ext$major'
11002    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11003    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11004    ;;
11005  *)
11006    shrext_cmds='.sl'
11007    dynamic_linker="$host_os dld.sl"
11008    shlibpath_var=SHLIB_PATH
11009    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11010    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11011    soname_spec='$libname$release$shared_ext$major'
11012    ;;
11013  esac
11014  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11015  postinstall_cmds='chmod 555 $lib'
11016  # or fails outright, so override atomically:
11017  install_override_mode=555
11018  ;;
11019
11020interix[3-9]*)
11021  version_type=linux # correct to gnu/linux during the next big refactor
11022  need_lib_prefix=no
11023  need_version=no
11024  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11025  soname_spec='$libname$release$shared_ext$major'
11026  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11027  shlibpath_var=LD_LIBRARY_PATH
11028  shlibpath_overrides_runpath=no
11029  hardcode_into_libs=yes
11030  ;;
11031
11032irix5* | irix6* | nonstopux*)
11033  case $host_os in
11034    nonstopux*) version_type=nonstopux ;;
11035    *)
11036	if test yes = "$lt_cv_prog_gnu_ld"; then
11037		version_type=linux # correct to gnu/linux during the next big refactor
11038	else
11039		version_type=irix
11040	fi ;;
11041  esac
11042  need_lib_prefix=no
11043  need_version=no
11044  soname_spec='$libname$release$shared_ext$major'
11045  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11046  case $host_os in
11047  irix5* | nonstopux*)
11048    libsuff= shlibsuff=
11049    ;;
11050  *)
11051    case $LD in # libtool.m4 will add one of these switches to LD
11052    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11053      libsuff= shlibsuff= libmagic=32-bit;;
11054    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11055      libsuff=32 shlibsuff=N32 libmagic=N32;;
11056    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11057      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11058    *) libsuff= shlibsuff= libmagic=never-match;;
11059    esac
11060    ;;
11061  esac
11062  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11063  shlibpath_overrides_runpath=no
11064  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11065  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11066  hardcode_into_libs=yes
11067  ;;
11068
11069# No shared lib support for Linux oldld, aout, or coff.
11070linux*oldld* | linux*aout* | linux*coff*)
11071  dynamic_linker=no
11072  ;;
11073
11074linux*android*)
11075  version_type=none # Android doesn't support versioned libraries.
11076  need_lib_prefix=no
11077  need_version=no
11078  library_names_spec='$libname$release$shared_ext'
11079  soname_spec='$libname$release$shared_ext'
11080  finish_cmds=
11081  shlibpath_var=LD_LIBRARY_PATH
11082  shlibpath_overrides_runpath=yes
11083
11084  # This implies no fast_install, which is unacceptable.
11085  # Some rework will be needed to allow for fast_install
11086  # before this can be enabled.
11087  hardcode_into_libs=yes
11088
11089  dynamic_linker='Android linker'
11090  # Don't embed -rpath directories since the linker doesn't support them.
11091  hardcode_libdir_flag_spec='-L$libdir'
11092  ;;
11093
11094# This must be glibc/ELF.
11095linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11096  version_type=linux # correct to gnu/linux during the next big refactor
11097  need_lib_prefix=no
11098  need_version=no
11099  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11100  soname_spec='$libname$release$shared_ext$major'
11101  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11102  shlibpath_var=LD_LIBRARY_PATH
11103  shlibpath_overrides_runpath=no
11104
11105  # Some binutils ld are patched to set DT_RUNPATH
11106  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11107  $as_echo_n "(cached) " >&6
11108else
11109  lt_cv_shlibpath_overrides_runpath=no
11110    save_LDFLAGS=$LDFLAGS
11111    save_libdir=$libdir
11112    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11113	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11114    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115/* end confdefs.h.  */
11116
11117int
11118main ()
11119{
11120
11121  ;
11122  return 0;
11123}
11124_ACEOF
11125if ac_fn_c_try_link "$LINENO"; then :
11126  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11127  lt_cv_shlibpath_overrides_runpath=yes
11128fi
11129fi
11130rm -f core conftest.err conftest.$ac_objext \
11131    conftest$ac_exeext conftest.$ac_ext
11132    LDFLAGS=$save_LDFLAGS
11133    libdir=$save_libdir
11134
11135fi
11136
11137  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11138
11139  # This implies no fast_install, which is unacceptable.
11140  # Some rework will be needed to allow for fast_install
11141  # before this can be enabled.
11142  hardcode_into_libs=yes
11143
11144  # Ideally, we could use ldconfig to report *all* directores which are
11145  # searched for libraries, however this is still not possible.  Aside from not
11146  # being certain /sbin/ldconfig is available, command
11147  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11148  # even though it is searched at run-time.  Try to do the best guess by
11149  # appending ld.so.conf contents (and includes) to the search path.
11150  if test -f /etc/ld.so.conf; then
11151    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' ' '`
11152    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11153  fi
11154
11155  # We used to test for /lib/ld.so.1 and disable shared libraries on
11156  # powerpc, because MkLinux only supported shared libraries with the
11157  # GNU dynamic linker.  Since this was broken with cross compilers,
11158  # most powerpc-linux boxes support dynamic linking these days and
11159  # people can always --disable-shared, the test was removed, and we
11160  # assume the GNU/Linux dynamic linker is in use.
11161  dynamic_linker='GNU/Linux ld.so'
11162  ;;
11163
11164netbsdelf*-gnu)
11165  version_type=linux
11166  need_lib_prefix=no
11167  need_version=no
11168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11169  soname_spec='${libname}${release}${shared_ext}$major'
11170  shlibpath_var=LD_LIBRARY_PATH
11171  shlibpath_overrides_runpath=no
11172  hardcode_into_libs=yes
11173  dynamic_linker='NetBSD ld.elf_so'
11174  ;;
11175
11176netbsd*)
11177  version_type=sunos
11178  need_lib_prefix=no
11179  need_version=no
11180  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11181    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11182    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11183    dynamic_linker='NetBSD (a.out) ld.so'
11184  else
11185    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11186    soname_spec='$libname$release$shared_ext$major'
11187    dynamic_linker='NetBSD ld.elf_so'
11188  fi
11189  shlibpath_var=LD_LIBRARY_PATH
11190  shlibpath_overrides_runpath=yes
11191  hardcode_into_libs=yes
11192  ;;
11193
11194newsos6)
11195  version_type=linux # correct to gnu/linux during the next big refactor
11196  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11197  shlibpath_var=LD_LIBRARY_PATH
11198  shlibpath_overrides_runpath=yes
11199  ;;
11200
11201*nto* | *qnx*)
11202  version_type=qnx
11203  need_lib_prefix=no
11204  need_version=no
11205  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206  soname_spec='$libname$release$shared_ext$major'
11207  shlibpath_var=LD_LIBRARY_PATH
11208  shlibpath_overrides_runpath=no
11209  hardcode_into_libs=yes
11210  dynamic_linker='ldqnx.so'
11211  ;;
11212
11213openbsd* | bitrig*)
11214  version_type=sunos
11215  sys_lib_dlsearch_path_spec=/usr/lib
11216  need_lib_prefix=no
11217  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11218    need_version=no
11219  else
11220    need_version=yes
11221  fi
11222  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11223  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11224  shlibpath_var=LD_LIBRARY_PATH
11225  shlibpath_overrides_runpath=yes
11226  ;;
11227
11228os2*)
11229  libname_spec='$name'
11230  version_type=windows
11231  shrext_cmds=.dll
11232  need_version=no
11233  need_lib_prefix=no
11234  # OS/2 can only load a DLL with a base name of 8 characters or less.
11235  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11236    v=$($ECHO $release$versuffix | tr -d .-);
11237    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11238    $ECHO $n$v`$shared_ext'
11239  library_names_spec='${libname}_dll.$libext'
11240  dynamic_linker='OS/2 ld.exe'
11241  shlibpath_var=BEGINLIBPATH
11242  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11243  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11244  postinstall_cmds='base_file=`basename \$file`~
11245    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11246    dldir=$destdir/`dirname \$dlpath`~
11247    test -d \$dldir || mkdir -p \$dldir~
11248    $install_prog $dir/$dlname \$dldir/$dlname~
11249    chmod a+x \$dldir/$dlname~
11250    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11251      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11252    fi'
11253  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11254    dlpath=$dir/\$dldll~
11255    $RM \$dlpath'
11256  ;;
11257
11258osf3* | osf4* | osf5*)
11259  version_type=osf
11260  need_lib_prefix=no
11261  need_version=no
11262  soname_spec='$libname$release$shared_ext$major'
11263  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11264  shlibpath_var=LD_LIBRARY_PATH
11265  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11266  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11267  ;;
11268
11269rdos*)
11270  dynamic_linker=no
11271  ;;
11272
11273solaris*)
11274  version_type=linux # correct to gnu/linux during the next big refactor
11275  need_lib_prefix=no
11276  need_version=no
11277  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11278  soname_spec='$libname$release$shared_ext$major'
11279  shlibpath_var=LD_LIBRARY_PATH
11280  shlibpath_overrides_runpath=yes
11281  hardcode_into_libs=yes
11282  # ldd complains unless libraries are executable
11283  postinstall_cmds='chmod +x $lib'
11284  ;;
11285
11286sunos4*)
11287  version_type=sunos
11288  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11289  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11290  shlibpath_var=LD_LIBRARY_PATH
11291  shlibpath_overrides_runpath=yes
11292  if test yes = "$with_gnu_ld"; then
11293    need_lib_prefix=no
11294  fi
11295  need_version=yes
11296  ;;
11297
11298sysv4 | sysv4.3*)
11299  version_type=linux # correct to gnu/linux during the next big refactor
11300  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11301  soname_spec='$libname$release$shared_ext$major'
11302  shlibpath_var=LD_LIBRARY_PATH
11303  case $host_vendor in
11304    sni)
11305      shlibpath_overrides_runpath=no
11306      need_lib_prefix=no
11307      runpath_var=LD_RUN_PATH
11308      ;;
11309    siemens)
11310      need_lib_prefix=no
11311      ;;
11312    motorola)
11313      need_lib_prefix=no
11314      need_version=no
11315      shlibpath_overrides_runpath=no
11316      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11317      ;;
11318  esac
11319  ;;
11320
11321sysv4*MP*)
11322  if test -d /usr/nec; then
11323    version_type=linux # correct to gnu/linux during the next big refactor
11324    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11325    soname_spec='$libname$shared_ext.$major'
11326    shlibpath_var=LD_LIBRARY_PATH
11327  fi
11328  ;;
11329
11330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11331  version_type=sco
11332  need_lib_prefix=no
11333  need_version=no
11334  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11335  soname_spec='$libname$release$shared_ext$major'
11336  shlibpath_var=LD_LIBRARY_PATH
11337  shlibpath_overrides_runpath=yes
11338  hardcode_into_libs=yes
11339  if test yes = "$with_gnu_ld"; then
11340    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11341  else
11342    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11343    case $host_os in
11344      sco3.2v5*)
11345        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11346	;;
11347    esac
11348  fi
11349  sys_lib_dlsearch_path_spec='/usr/lib'
11350  ;;
11351
11352tpf*)
11353  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11354  version_type=linux # correct to gnu/linux during the next big refactor
11355  need_lib_prefix=no
11356  need_version=no
11357  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11358  shlibpath_var=LD_LIBRARY_PATH
11359  shlibpath_overrides_runpath=no
11360  hardcode_into_libs=yes
11361  ;;
11362
11363uts4*)
11364  version_type=linux # correct to gnu/linux during the next big refactor
11365  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11366  soname_spec='$libname$release$shared_ext$major'
11367  shlibpath_var=LD_LIBRARY_PATH
11368  ;;
11369
11370*)
11371  dynamic_linker=no
11372  ;;
11373esac
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11375$as_echo "$dynamic_linker" >&6; }
11376test no = "$dynamic_linker" && can_build_shared=no
11377
11378variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11379if test yes = "$GCC"; then
11380  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11381fi
11382
11383if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11384  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11385fi
11386
11387if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11388  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11389fi
11390
11391# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11392configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11393
11394# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11395func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11396
11397# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11398configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11497$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11498hardcode_action=
11499if test -n "$hardcode_libdir_flag_spec" ||
11500   test -n "$runpath_var" ||
11501   test yes = "$hardcode_automatic"; then
11502
11503  # We can hardcode non-existent directories.
11504  if test no != "$hardcode_direct" &&
11505     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11506     # have to relink, otherwise we might link with an installed library
11507     # when we should be linking with a yet-to-be-installed one
11508     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11509     test no != "$hardcode_minus_L"; then
11510    # Linking always hardcodes the temporary library directory.
11511    hardcode_action=relink
11512  else
11513    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11514    hardcode_action=immediate
11515  fi
11516else
11517  # We cannot hardcode anything, or else we can only hardcode existing
11518  # directories.
11519  hardcode_action=unsupported
11520fi
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11522$as_echo "$hardcode_action" >&6; }
11523
11524if test relink = "$hardcode_action" ||
11525   test yes = "$inherit_rpath"; then
11526  # Fast installation is not supported
11527  enable_fast_install=no
11528elif test yes = "$shlibpath_overrides_runpath" ||
11529     test no = "$enable_shared"; then
11530  # Fast installation is not necessary
11531  enable_fast_install=needless
11532fi
11533
11534
11535
11536
11537
11538
11539  if test yes != "$enable_dlopen"; then
11540  enable_dlopen=unknown
11541  enable_dlopen_self=unknown
11542  enable_dlopen_self_static=unknown
11543else
11544  lt_cv_dlopen=no
11545  lt_cv_dlopen_libs=
11546
11547  case $host_os in
11548  beos*)
11549    lt_cv_dlopen=load_add_on
11550    lt_cv_dlopen_libs=
11551    lt_cv_dlopen_self=yes
11552    ;;
11553
11554  mingw* | pw32* | cegcc*)
11555    lt_cv_dlopen=LoadLibrary
11556    lt_cv_dlopen_libs=
11557    ;;
11558
11559  cygwin*)
11560    lt_cv_dlopen=dlopen
11561    lt_cv_dlopen_libs=
11562    ;;
11563
11564  darwin*)
11565    # if libdl is installed we need to link against it
11566    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11567$as_echo_n "checking for dlopen in -ldl... " >&6; }
11568if ${ac_cv_lib_dl_dlopen+:} false; then :
11569  $as_echo_n "(cached) " >&6
11570else
11571  ac_check_lib_save_LIBS=$LIBS
11572LIBS="-ldl  $LIBS"
11573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h.  */
11575
11576/* Override any GCC internal prototype to avoid an error.
11577   Use char because int might match the return type of a GCC
11578   builtin and then its argument prototype would still apply.  */
11579#ifdef __cplusplus
11580extern "C"
11581#endif
11582char dlopen ();
11583int
11584main ()
11585{
11586return dlopen ();
11587  ;
11588  return 0;
11589}
11590_ACEOF
11591if ac_fn_c_try_link "$LINENO"; then :
11592  ac_cv_lib_dl_dlopen=yes
11593else
11594  ac_cv_lib_dl_dlopen=no
11595fi
11596rm -f core conftest.err conftest.$ac_objext \
11597    conftest$ac_exeext conftest.$ac_ext
11598LIBS=$ac_check_lib_save_LIBS
11599fi
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11601$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11602if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11603  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11604else
11605
11606    lt_cv_dlopen=dyld
11607    lt_cv_dlopen_libs=
11608    lt_cv_dlopen_self=yes
11609
11610fi
11611
11612    ;;
11613
11614  tpf*)
11615    # Don't try to run any link tests for TPF.  We know it's impossible
11616    # because TPF is a cross-compiler, and we know how we open DSOs.
11617    lt_cv_dlopen=dlopen
11618    lt_cv_dlopen_libs=
11619    lt_cv_dlopen_self=no
11620    ;;
11621
11622  *)
11623    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11624if test "x$ac_cv_func_shl_load" = xyes; then :
11625  lt_cv_dlopen=shl_load
11626else
11627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11628$as_echo_n "checking for shl_load in -ldld... " >&6; }
11629if ${ac_cv_lib_dld_shl_load+:} false; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  ac_check_lib_save_LIBS=$LIBS
11633LIBS="-ldld  $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 shl_load ();
11644int
11645main ()
11646{
11647return shl_load ();
11648  ;
11649  return 0;
11650}
11651_ACEOF
11652if ac_fn_c_try_link "$LINENO"; then :
11653  ac_cv_lib_dld_shl_load=yes
11654else
11655  ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
11662$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11663if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11664  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11665else
11666  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11667if test "x$ac_cv_func_dlopen" = xyes; then :
11668  lt_cv_dlopen=dlopen
11669else
11670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11671$as_echo_n "checking for dlopen in -ldl... " >&6; }
11672if ${ac_cv_lib_dl_dlopen+:} false; then :
11673  $as_echo_n "(cached) " >&6
11674else
11675  ac_check_lib_save_LIBS=$LIBS
11676LIBS="-ldl  $LIBS"
11677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678/* end confdefs.h.  */
11679
11680/* Override any GCC internal prototype to avoid an error.
11681   Use char because int might match the return type of a GCC
11682   builtin and then its argument prototype would still apply.  */
11683#ifdef __cplusplus
11684extern "C"
11685#endif
11686char dlopen ();
11687int
11688main ()
11689{
11690return dlopen ();
11691  ;
11692  return 0;
11693}
11694_ACEOF
11695if ac_fn_c_try_link "$LINENO"; then :
11696  ac_cv_lib_dl_dlopen=yes
11697else
11698  ac_cv_lib_dl_dlopen=no
11699fi
11700rm -f core conftest.err conftest.$ac_objext \
11701    conftest$ac_exeext conftest.$ac_ext
11702LIBS=$ac_check_lib_save_LIBS
11703fi
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11705$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11706if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11707  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11708else
11709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11710$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11711if ${ac_cv_lib_svld_dlopen+:} false; then :
11712  $as_echo_n "(cached) " >&6
11713else
11714  ac_check_lib_save_LIBS=$LIBS
11715LIBS="-lsvld  $LIBS"
11716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717/* end confdefs.h.  */
11718
11719/* Override any GCC internal prototype to avoid an error.
11720   Use char because int might match the return type of a GCC
11721   builtin and then its argument prototype would still apply.  */
11722#ifdef __cplusplus
11723extern "C"
11724#endif
11725char dlopen ();
11726int
11727main ()
11728{
11729return dlopen ();
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734if ac_fn_c_try_link "$LINENO"; then :
11735  ac_cv_lib_svld_dlopen=yes
11736else
11737  ac_cv_lib_svld_dlopen=no
11738fi
11739rm -f core conftest.err conftest.$ac_objext \
11740    conftest$ac_exeext conftest.$ac_ext
11741LIBS=$ac_check_lib_save_LIBS
11742fi
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11744$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11745if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11746  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11747else
11748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11749$as_echo_n "checking for dld_link in -ldld... " >&6; }
11750if ${ac_cv_lib_dld_dld_link+:} false; then :
11751  $as_echo_n "(cached) " >&6
11752else
11753  ac_check_lib_save_LIBS=$LIBS
11754LIBS="-ldld  $LIBS"
11755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756/* end confdefs.h.  */
11757
11758/* Override any GCC internal prototype to avoid an error.
11759   Use char because int might match the return type of a GCC
11760   builtin and then its argument prototype would still apply.  */
11761#ifdef __cplusplus
11762extern "C"
11763#endif
11764char dld_link ();
11765int
11766main ()
11767{
11768return dld_link ();
11769  ;
11770  return 0;
11771}
11772_ACEOF
11773if ac_fn_c_try_link "$LINENO"; then :
11774  ac_cv_lib_dld_dld_link=yes
11775else
11776  ac_cv_lib_dld_dld_link=no
11777fi
11778rm -f core conftest.err conftest.$ac_objext \
11779    conftest$ac_exeext conftest.$ac_ext
11780LIBS=$ac_check_lib_save_LIBS
11781fi
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11783$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11784if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11785  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11786fi
11787
11788
11789fi
11790
11791
11792fi
11793
11794
11795fi
11796
11797
11798fi
11799
11800
11801fi
11802
11803    ;;
11804  esac
11805
11806  if test no = "$lt_cv_dlopen"; then
11807    enable_dlopen=no
11808  else
11809    enable_dlopen=yes
11810  fi
11811
11812  case $lt_cv_dlopen in
11813  dlopen)
11814    save_CPPFLAGS=$CPPFLAGS
11815    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11816
11817    save_LDFLAGS=$LDFLAGS
11818    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11819
11820    save_LIBS=$LIBS
11821    LIBS="$lt_cv_dlopen_libs $LIBS"
11822
11823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11824$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11825if ${lt_cv_dlopen_self+:} false; then :
11826  $as_echo_n "(cached) " >&6
11827else
11828  	  if test yes = "$cross_compiling"; then :
11829  lt_cv_dlopen_self=cross
11830else
11831  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832  lt_status=$lt_dlunknown
11833  cat > conftest.$ac_ext <<_LT_EOF
11834#line $LINENO "configure"
11835#include "confdefs.h"
11836
11837#if HAVE_DLFCN_H
11838#include <dlfcn.h>
11839#endif
11840
11841#include <stdio.h>
11842
11843#ifdef RTLD_GLOBAL
11844#  define LT_DLGLOBAL		RTLD_GLOBAL
11845#else
11846#  ifdef DL_GLOBAL
11847#    define LT_DLGLOBAL		DL_GLOBAL
11848#  else
11849#    define LT_DLGLOBAL		0
11850#  endif
11851#endif
11852
11853/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854   find out it does not work in some platform. */
11855#ifndef LT_DLLAZY_OR_NOW
11856#  ifdef RTLD_LAZY
11857#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11858#  else
11859#    ifdef DL_LAZY
11860#      define LT_DLLAZY_OR_NOW		DL_LAZY
11861#    else
11862#      ifdef RTLD_NOW
11863#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11864#      else
11865#        ifdef DL_NOW
11866#          define LT_DLLAZY_OR_NOW	DL_NOW
11867#        else
11868#          define LT_DLLAZY_OR_NOW	0
11869#        endif
11870#      endif
11871#    endif
11872#  endif
11873#endif
11874
11875/* When -fvisibility=hidden is used, assume the code has been annotated
11876   correspondingly for the symbols needed.  */
11877#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11878int fnord () __attribute__((visibility("default")));
11879#endif
11880
11881int fnord () { return 42; }
11882int main ()
11883{
11884  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11885  int status = $lt_dlunknown;
11886
11887  if (self)
11888    {
11889      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11890      else
11891        {
11892	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11893          else puts (dlerror ());
11894	}
11895      /* dlclose (self); */
11896    }
11897  else
11898    puts (dlerror ());
11899
11900  return status;
11901}
11902_LT_EOF
11903  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11904  (eval $ac_link) 2>&5
11905  ac_status=$?
11906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11908    (./conftest; exit; ) >&5 2>/dev/null
11909    lt_status=$?
11910    case x$lt_status in
11911      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11912      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11913      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11914    esac
11915  else :
11916    # compilation failed
11917    lt_cv_dlopen_self=no
11918  fi
11919fi
11920rm -fr conftest*
11921
11922
11923fi
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11925$as_echo "$lt_cv_dlopen_self" >&6; }
11926
11927    if test yes = "$lt_cv_dlopen_self"; then
11928      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11929      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11930$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11931if ${lt_cv_dlopen_self_static+:} false; then :
11932  $as_echo_n "(cached) " >&6
11933else
11934  	  if test yes = "$cross_compiling"; then :
11935  lt_cv_dlopen_self_static=cross
11936else
11937  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11938  lt_status=$lt_dlunknown
11939  cat > conftest.$ac_ext <<_LT_EOF
11940#line $LINENO "configure"
11941#include "confdefs.h"
11942
11943#if HAVE_DLFCN_H
11944#include <dlfcn.h>
11945#endif
11946
11947#include <stdio.h>
11948
11949#ifdef RTLD_GLOBAL
11950#  define LT_DLGLOBAL		RTLD_GLOBAL
11951#else
11952#  ifdef DL_GLOBAL
11953#    define LT_DLGLOBAL		DL_GLOBAL
11954#  else
11955#    define LT_DLGLOBAL		0
11956#  endif
11957#endif
11958
11959/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11960   find out it does not work in some platform. */
11961#ifndef LT_DLLAZY_OR_NOW
11962#  ifdef RTLD_LAZY
11963#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11964#  else
11965#    ifdef DL_LAZY
11966#      define LT_DLLAZY_OR_NOW		DL_LAZY
11967#    else
11968#      ifdef RTLD_NOW
11969#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11970#      else
11971#        ifdef DL_NOW
11972#          define LT_DLLAZY_OR_NOW	DL_NOW
11973#        else
11974#          define LT_DLLAZY_OR_NOW	0
11975#        endif
11976#      endif
11977#    endif
11978#  endif
11979#endif
11980
11981/* When -fvisibility=hidden is used, assume the code has been annotated
11982   correspondingly for the symbols needed.  */
11983#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11984int fnord () __attribute__((visibility("default")));
11985#endif
11986
11987int fnord () { return 42; }
11988int main ()
11989{
11990  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11991  int status = $lt_dlunknown;
11992
11993  if (self)
11994    {
11995      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11996      else
11997        {
11998	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11999          else puts (dlerror ());
12000	}
12001      /* dlclose (self); */
12002    }
12003  else
12004    puts (dlerror ());
12005
12006  return status;
12007}
12008_LT_EOF
12009  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12010  (eval $ac_link) 2>&5
12011  ac_status=$?
12012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12014    (./conftest; exit; ) >&5 2>/dev/null
12015    lt_status=$?
12016    case x$lt_status in
12017      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12018      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12019      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12020    esac
12021  else :
12022    # compilation failed
12023    lt_cv_dlopen_self_static=no
12024  fi
12025fi
12026rm -fr conftest*
12027
12028
12029fi
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12031$as_echo "$lt_cv_dlopen_self_static" >&6; }
12032    fi
12033
12034    CPPFLAGS=$save_CPPFLAGS
12035    LDFLAGS=$save_LDFLAGS
12036    LIBS=$save_LIBS
12037    ;;
12038  esac
12039
12040  case $lt_cv_dlopen_self in
12041  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12042  *) enable_dlopen_self=unknown ;;
12043  esac
12044
12045  case $lt_cv_dlopen_self_static in
12046  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12047  *) enable_dlopen_self_static=unknown ;;
12048  esac
12049fi
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067striplib=
12068old_striplib=
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12070$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12071if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12072  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12073  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12075$as_echo "yes" >&6; }
12076else
12077# FIXME - insert some real tests, host_os isn't really good enough
12078  case $host_os in
12079  darwin*)
12080    if test -n "$STRIP"; then
12081      striplib="$STRIP -x"
12082      old_striplib="$STRIP -S"
12083      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12084$as_echo "yes" >&6; }
12085    else
12086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087$as_echo "no" >&6; }
12088    fi
12089    ;;
12090  *)
12091    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092$as_echo "no" >&6; }
12093    ;;
12094  esac
12095fi
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108  # Report what library types will actually be built
12109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12110$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12112$as_echo "$can_build_shared" >&6; }
12113
12114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12115$as_echo_n "checking whether to build shared libraries... " >&6; }
12116  test no = "$can_build_shared" && enable_shared=no
12117
12118  # On AIX, shared libraries and static libraries use the same namespace, and
12119  # are all built from PIC.
12120  case $host_os in
12121  aix3*)
12122    test yes = "$enable_shared" && enable_static=no
12123    if test -n "$RANLIB"; then
12124      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12125      postinstall_cmds='$RANLIB $lib'
12126    fi
12127    ;;
12128
12129  aix[4-9]*)
12130    if test ia64 != "$host_cpu"; then
12131      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12132      yes,aix,yes) ;;			# shared object as lib.so file only
12133      yes,svr4,*) ;;			# shared object as lib.so archive member only
12134      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12135      esac
12136    fi
12137    ;;
12138  esac
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12140$as_echo "$enable_shared" >&6; }
12141
12142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12143$as_echo_n "checking whether to build static libraries... " >&6; }
12144  # Make sure either enable_shared or enable_static is yes.
12145  test yes = "$enable_shared" || enable_static=yes
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12147$as_echo "$enable_static" >&6; }
12148
12149
12150
12151
12152fi
12153ac_ext=c
12154ac_cpp='$CPP $CPPFLAGS'
12155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157ac_compiler_gnu=$ac_cv_c_compiler_gnu
12158
12159CC=$lt_save_CC
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175        ac_config_commands="$ac_config_commands libtool"
12176
12177
12178
12179
12180# Only expand once:
12181
12182
12183
12184
12185
12186
12187
12188# Check whether --with-ipc was given.
12189if test "${with_ipc+set}" = set; then :
12190  withval=$with_ipc; ac_cv_use_ipc=$withval
12191else
12192  ac_cv_use_ipc=sysv
12193fi
12194
12195
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which IPC method to use" >&5
12197$as_echo_n "checking which IPC method to use... " >&6; }
12198if ${ac_cv_use_ipc+:} false; then :
12199  $as_echo_n "(cached) " >&6
12200else
12201  ac_cv_use_ipc=sysv
12202fi
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_ipc" >&5
12204$as_echo "$ac_cv_use_ipc" >&6; }
12205
12206
12207# Check whether --with-dbformat was given.
12208if test "${with_dbformat+set}" = set; then :
12209  withval=$with_dbformat; ac_cv_dbformat=$withval
12210else
12211  ac_cv_dbformat=inode
12212fi
12213
12214
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which database format to use" >&5
12216$as_echo_n "checking which database format to use... " >&6; }
12217if ${ac_cv_dbformat+:} false; then :
12218  $as_echo_n "(cached) " >&6
12219else
12220  ac_cv_dbformat=inode
12221fi
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dbformat" >&5
12223$as_echo "$ac_cv_dbformat" >&6; }
12224
12225
12226if test $ac_cv_dbformat = "path"; then
12227cat >>confdefs.h <<_ACEOF
12228#define FAKEROOT_DB_PATH 1
12229_ACEOF
12230
12231fi
12232
12233
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12235$as_echo_n "checking for dlopen in -ldl... " >&6; }
12236if ${ac_cv_lib_dl_dlopen+:} false; then :
12237  $as_echo_n "(cached) " >&6
12238else
12239  ac_check_lib_save_LIBS=$LIBS
12240LIBS="-ldl  $LIBS"
12241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242/* end confdefs.h.  */
12243
12244/* Override any GCC internal prototype to avoid an error.
12245   Use char because int might match the return type of a GCC
12246   builtin and then its argument prototype would still apply.  */
12247#ifdef __cplusplus
12248extern "C"
12249#endif
12250char dlopen ();
12251int
12252main ()
12253{
12254return dlopen ();
12255  ;
12256  return 0;
12257}
12258_ACEOF
12259if ac_fn_c_try_link "$LINENO"; then :
12260  ac_cv_lib_dl_dlopen=yes
12261else
12262  ac_cv_lib_dl_dlopen=no
12263fi
12264rm -f core conftest.err conftest.$ac_objext \
12265    conftest$ac_exeext conftest.$ac_ext
12266LIBS=$ac_check_lib_save_LIBS
12267fi
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12269$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12270if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12271  cat >>confdefs.h <<_ACEOF
12272#define HAVE_LIBDL 1
12273_ACEOF
12274
12275  LIBS="-ldl $LIBS"
12276
12277fi
12278
12279
12280if test $ac_cv_use_ipc = "tcp"; then
12281cat >>confdefs.h <<_ACEOF
12282#define FAKEROOT_FAKENET TCP
12283_ACEOF
12284
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
12286$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12287if ${ac_cv_lib_pthread_pthread_self+:} false; then :
12288  $as_echo_n "(cached) " >&6
12289else
12290  ac_check_lib_save_LIBS=$LIBS
12291LIBS="-lpthread  $LIBS"
12292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293/* end confdefs.h.  */
12294
12295/* Override any GCC internal prototype to avoid an error.
12296   Use char because int might match the return type of a GCC
12297   builtin and then its argument prototype would still apply.  */
12298#ifdef __cplusplus
12299extern "C"
12300#endif
12301char pthread_self ();
12302int
12303main ()
12304{
12305return pthread_self ();
12306  ;
12307  return 0;
12308}
12309_ACEOF
12310if ac_fn_c_try_link "$LINENO"; then :
12311  ac_cv_lib_pthread_pthread_self=yes
12312else
12313  ac_cv_lib_pthread_pthread_self=no
12314fi
12315rm -f core conftest.err conftest.$ac_objext \
12316    conftest$ac_exeext conftest.$ac_ext
12317LIBS=$ac_check_lib_save_LIBS
12318fi
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
12320$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12321if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
12322  cat >>confdefs.h <<_ACEOF
12323#define HAVE_LIBPTHREAD 1
12324_ACEOF
12325
12326  LIBS="-lpthread $LIBS"
12327
12328fi
12329
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12331$as_echo_n "checking for connect in -lsocket... " >&6; }
12332if ${ac_cv_lib_socket_connect+:} false; then :
12333  $as_echo_n "(cached) " >&6
12334else
12335  ac_check_lib_save_LIBS=$LIBS
12336LIBS="-lsocket  $LIBS"
12337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338/* end confdefs.h.  */
12339
12340/* Override any GCC internal prototype to avoid an error.
12341   Use char because int might match the return type of a GCC
12342   builtin and then its argument prototype would still apply.  */
12343#ifdef __cplusplus
12344extern "C"
12345#endif
12346char connect ();
12347int
12348main ()
12349{
12350return connect ();
12351  ;
12352  return 0;
12353}
12354_ACEOF
12355if ac_fn_c_try_link "$LINENO"; then :
12356  ac_cv_lib_socket_connect=yes
12357else
12358  ac_cv_lib_socket_connect=no
12359fi
12360rm -f core conftest.err conftest.$ac_objext \
12361    conftest$ac_exeext conftest.$ac_ext
12362LIBS=$ac_check_lib_save_LIBS
12363fi
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12365$as_echo "$ac_cv_lib_socket_connect" >&6; }
12366if test "x$ac_cv_lib_socket_connect" = xyes; then :
12367  cat >>confdefs.h <<_ACEOF
12368#define HAVE_LIBSOCKET 1
12369_ACEOF
12370
12371  LIBS="-lsocket $LIBS"
12372
12373fi
12374
12375signal=HUP
12376else
12377signal=TERM
12378fi
12379
12380
12381
12382ac_header_dirent=no
12383for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12384  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12386$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12387if eval \${$as_ac_Header+:} false; then :
12388  $as_echo_n "(cached) " >&6
12389else
12390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391/* end confdefs.h.  */
12392#include <sys/types.h>
12393#include <$ac_hdr>
12394
12395int
12396main ()
12397{
12398if ((DIR *) 0)
12399return 0;
12400  ;
12401  return 0;
12402}
12403_ACEOF
12404if ac_fn_c_try_compile "$LINENO"; then :
12405  eval "$as_ac_Header=yes"
12406else
12407  eval "$as_ac_Header=no"
12408fi
12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410fi
12411eval ac_res=\$$as_ac_Header
12412	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12413$as_echo "$ac_res" >&6; }
12414if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12415  cat >>confdefs.h <<_ACEOF
12416#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12417_ACEOF
12418
12419ac_header_dirent=$ac_hdr; break
12420fi
12421
12422done
12423# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12424if test $ac_header_dirent = dirent.h; then
12425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12426$as_echo_n "checking for library containing opendir... " >&6; }
12427if ${ac_cv_search_opendir+:} false; then :
12428  $as_echo_n "(cached) " >&6
12429else
12430  ac_func_search_save_LIBS=$LIBS
12431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432/* end confdefs.h.  */
12433
12434/* Override any GCC internal prototype to avoid an error.
12435   Use char because int might match the return type of a GCC
12436   builtin and then its argument prototype would still apply.  */
12437#ifdef __cplusplus
12438extern "C"
12439#endif
12440char opendir ();
12441int
12442main ()
12443{
12444return opendir ();
12445  ;
12446  return 0;
12447}
12448_ACEOF
12449for ac_lib in '' dir; do
12450  if test -z "$ac_lib"; then
12451    ac_res="none required"
12452  else
12453    ac_res=-l$ac_lib
12454    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12455  fi
12456  if ac_fn_c_try_link "$LINENO"; then :
12457  ac_cv_search_opendir=$ac_res
12458fi
12459rm -f core conftest.err conftest.$ac_objext \
12460    conftest$ac_exeext
12461  if ${ac_cv_search_opendir+:} false; then :
12462  break
12463fi
12464done
12465if ${ac_cv_search_opendir+:} false; then :
12466
12467else
12468  ac_cv_search_opendir=no
12469fi
12470rm conftest.$ac_ext
12471LIBS=$ac_func_search_save_LIBS
12472fi
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12474$as_echo "$ac_cv_search_opendir" >&6; }
12475ac_res=$ac_cv_search_opendir
12476if test "$ac_res" != no; then :
12477  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12478
12479fi
12480
12481else
12482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12483$as_echo_n "checking for library containing opendir... " >&6; }
12484if ${ac_cv_search_opendir+:} false; then :
12485  $as_echo_n "(cached) " >&6
12486else
12487  ac_func_search_save_LIBS=$LIBS
12488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489/* end confdefs.h.  */
12490
12491/* Override any GCC internal prototype to avoid an error.
12492   Use char because int might match the return type of a GCC
12493   builtin and then its argument prototype would still apply.  */
12494#ifdef __cplusplus
12495extern "C"
12496#endif
12497char opendir ();
12498int
12499main ()
12500{
12501return opendir ();
12502  ;
12503  return 0;
12504}
12505_ACEOF
12506for ac_lib in '' x; do
12507  if test -z "$ac_lib"; then
12508    ac_res="none required"
12509  else
12510    ac_res=-l$ac_lib
12511    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12512  fi
12513  if ac_fn_c_try_link "$LINENO"; then :
12514  ac_cv_search_opendir=$ac_res
12515fi
12516rm -f core conftest.err conftest.$ac_objext \
12517    conftest$ac_exeext
12518  if ${ac_cv_search_opendir+:} false; then :
12519  break
12520fi
12521done
12522if ${ac_cv_search_opendir+:} false; then :
12523
12524else
12525  ac_cv_search_opendir=no
12526fi
12527rm conftest.$ac_ext
12528LIBS=$ac_func_search_save_LIBS
12529fi
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12531$as_echo "$ac_cv_search_opendir" >&6; }
12532ac_res=$ac_cv_search_opendir
12533if test "$ac_res" != no; then :
12534  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12535
12536fi
12537
12538fi
12539
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12541$as_echo_n "checking for ANSI C header files... " >&6; }
12542if ${ac_cv_header_stdc+:} false; then :
12543  $as_echo_n "(cached) " >&6
12544else
12545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546/* end confdefs.h.  */
12547#include <stdlib.h>
12548#include <stdarg.h>
12549#include <string.h>
12550#include <float.h>
12551
12552int
12553main ()
12554{
12555
12556  ;
12557  return 0;
12558}
12559_ACEOF
12560if ac_fn_c_try_compile "$LINENO"; then :
12561  ac_cv_header_stdc=yes
12562else
12563  ac_cv_header_stdc=no
12564fi
12565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566
12567if test $ac_cv_header_stdc = yes; then
12568  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570/* end confdefs.h.  */
12571#include <string.h>
12572
12573_ACEOF
12574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12575  $EGREP "memchr" >/dev/null 2>&1; then :
12576
12577else
12578  ac_cv_header_stdc=no
12579fi
12580rm -f conftest*
12581
12582fi
12583
12584if test $ac_cv_header_stdc = yes; then
12585  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587/* end confdefs.h.  */
12588#include <stdlib.h>
12589
12590_ACEOF
12591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12592  $EGREP "free" >/dev/null 2>&1; then :
12593
12594else
12595  ac_cv_header_stdc=no
12596fi
12597rm -f conftest*
12598
12599fi
12600
12601if test $ac_cv_header_stdc = yes; then
12602  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12603  if test "$cross_compiling" = yes; then :
12604  :
12605else
12606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607/* end confdefs.h.  */
12608#include <ctype.h>
12609#include <stdlib.h>
12610#if ((' ' & 0x0FF) == 0x020)
12611# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12612# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12613#else
12614# define ISLOWER(c) \
12615		   (('a' <= (c) && (c) <= 'i') \
12616		     || ('j' <= (c) && (c) <= 'r') \
12617		     || ('s' <= (c) && (c) <= 'z'))
12618# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12619#endif
12620
12621#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12622int
12623main ()
12624{
12625  int i;
12626  for (i = 0; i < 256; i++)
12627    if (XOR (islower (i), ISLOWER (i))
12628	|| toupper (i) != TOUPPER (i))
12629      return 2;
12630  return 0;
12631}
12632_ACEOF
12633if ac_fn_c_try_run "$LINENO"; then :
12634
12635else
12636  ac_cv_header_stdc=no
12637fi
12638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12639  conftest.$ac_objext conftest.beam conftest.$ac_ext
12640fi
12641
12642fi
12643fi
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12645$as_echo "$ac_cv_header_stdc" >&6; }
12646if test $ac_cv_header_stdc = yes; then
12647
12648$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12649
12650fi
12651
12652for ac_header in fcntl.h unistd.h features.h sys/feature_tests.h pthread.h stdint.h inttypes.h grp.h endian.h sys/sysmacros.h sys/socket.h sys/acl.h sys/capability.h sys/xattr.h fts.h
12653do :
12654  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12655ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12657  cat >>confdefs.h <<_ACEOF
12658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12659_ACEOF
12660
12661fi
12662
12663done
12664
12665
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12667$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12668if ${ac_cv_c_const+:} false; then :
12669  $as_echo_n "(cached) " >&6
12670else
12671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672/* end confdefs.h.  */
12673
12674int
12675main ()
12676{
12677
12678#ifndef __cplusplus
12679  /* Ultrix mips cc rejects this sort of thing.  */
12680  typedef int charset[2];
12681  const charset cs = { 0, 0 };
12682  /* SunOS 4.1.1 cc rejects this.  */
12683  char const *const *pcpcc;
12684  char **ppc;
12685  /* NEC SVR4.0.2 mips cc rejects this.  */
12686  struct point {int x, y;};
12687  static struct point const zero = {0,0};
12688  /* AIX XL C 1.02.0.0 rejects this.
12689     It does not let you subtract one const X* pointer from another in
12690     an arm of an if-expression whose if-part is not a constant
12691     expression */
12692  const char *g = "string";
12693  pcpcc = &g + (g ? g-g : 0);
12694  /* HPUX 7.0 cc rejects these. */
12695  ++pcpcc;
12696  ppc = (char**) pcpcc;
12697  pcpcc = (char const *const *) ppc;
12698  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12699    char tx;
12700    char *t = &tx;
12701    char const *s = 0 ? (char *) 0 : (char const *) 0;
12702
12703    *t++ = 0;
12704    if (s) return 0;
12705  }
12706  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12707    int x[] = {25, 17};
12708    const int *foo = &x[0];
12709    ++foo;
12710  }
12711  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12712    typedef const int *iptr;
12713    iptr p = 0;
12714    ++p;
12715  }
12716  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12717       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12718    struct s { int j; const int *ap[3]; } bx;
12719    struct s *b = &bx; b->j = 5;
12720  }
12721  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12722    const int foo = 10;
12723    if (!foo) return 0;
12724  }
12725  return !cs[0] && !zero.x;
12726#endif
12727
12728  ;
12729  return 0;
12730}
12731_ACEOF
12732if ac_fn_c_try_compile "$LINENO"; then :
12733  ac_cv_c_const=yes
12734else
12735  ac_cv_c_const=no
12736fi
12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738fi
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12740$as_echo "$ac_cv_c_const" >&6; }
12741if test $ac_cv_c_const = no; then
12742
12743$as_echo "#define const /**/" >>confdefs.h
12744
12745fi
12746
12747ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12748if test "x$ac_cv_type_mode_t" = xyes; then :
12749
12750else
12751
12752cat >>confdefs.h <<_ACEOF
12753#define mode_t int
12754_ACEOF
12755
12756fi
12757
12758ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12759if test "x$ac_cv_type_off_t" = xyes; then :
12760
12761else
12762
12763cat >>confdefs.h <<_ACEOF
12764#define off_t long
12765_ACEOF
12766
12767fi
12768
12769ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12770if test "x$ac_cv_type_size_t" = xyes; then :
12771
12772else
12773
12774cat >>confdefs.h <<_ACEOF
12775#define size_t unsigned
12776_ACEOF
12777
12778fi
12779
12780
12781
12782if test -n "$GCC";
12783then
12784cat >>confdefs.h <<_ACEOF
12785#define FAKEROOT_ATTR(x) __attribute__ ((x))
12786_ACEOF
12787
12788else
12789cat >>confdefs.h <<_ACEOF
12790#define FAKEROOT_ATTR(x) /**/
12791_ACEOF
12792
12793fi
12794
12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for return value and second and third argument of readlink" >&5
12796$as_echo_n "checking for return value and second and third argument of readlink... " >&6; }
12797readlink_buf_arg=unknown
12798readlink_bufsize_arg=unknown
12799for zeroth in ssize_t int; do
12800  for second in void char; do
12801    for third in size_t int; do
12802      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803/* end confdefs.h.  */
12804#include <unistd.h>
12805        $zeroth readlink(const char *path, $second *buf, $third bufsiz);
12806int
12807main ()
12808{
12809puts("hello, world");
12810  ;
12811  return 0;
12812}
12813_ACEOF
12814if ac_fn_c_try_compile "$LINENO"; then :
12815  readlink_retval=$zeroth
12816	 readlink_buf_arg=$second
12817	 readlink_bufsize_arg=$third
12818
12819fi
12820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821    done
12822  done
12823done
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $readlink_retval, $readlink_buf_arg, $readlink_bufsize_arg" >&5
12825$as_echo "$readlink_retval, $readlink_buf_arg, $readlink_bufsize_arg" >&6; }
12826
12827
12828
12829cat >>confdefs.h <<_ACEOF
12830#define READLINK_RETVAL_TYPE $readlink_retval
12831_ACEOF
12832
12833cat >>confdefs.h <<_ACEOF
12834#define READLINK_BUF_TYPE $readlink_buf_arg
12835_ACEOF
12836
12837cat >>confdefs.h <<_ACEOF
12838#define READLINK_BUFSIZE_TYPE $readlink_bufsize_arg
12839_ACEOF
12840
12841
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for first argument of setgroups" >&5
12843$as_echo_n "checking for first argument of setgroups... " >&6; }
12844setgroups_size_arg=unknown
12845for first in size_t int; do
12846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847/* end confdefs.h.  */
12848#define _BSD_SOURCE
12849#ifdef HAVE_SYS_TYPES_H
12850#include <sys/types.h>
12851#endif
12852#include <unistd.h>
12853#ifdef HAVE_GRP_H
12854#include <grp.h>
12855#endif
12856  int setgroups($first size, const gid_t *list);
12857int
12858main ()
12859{
12860puts("hello, world");
12861  ;
12862  return 0;
12863}
12864_ACEOF
12865if ac_fn_c_try_compile "$LINENO"; then :
12866  setgroups_size_arg=$first
12867fi
12868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869done
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $setgroups_size_arg" >&5
12871$as_echo "$setgroups_size_arg" >&6; }
12872
12873cat >>confdefs.h <<_ACEOF
12874#define SETGROUPS_SIZE_TYPE $setgroups_size_arg
12875_ACEOF
12876
12877
12878
12879
12880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5
12881$as_echo_n "checking for union semun... " >&6; }
12882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883/* end confdefs.h.  */
12884
12885       # include <sys/types.h>
12886       # include <sys/ipc.h>
12887       # include <sys/sem.h>
12888
12889int
12890main ()
12891{
12892
12893       union semun s;
12894
12895  ;
12896  return 0;
12897}
12898_ACEOF
12899if ac_fn_c_try_compile "$LINENO"; then :
12900  $as_echo "#define HAVE_SEMUN_DEF 1" >>confdefs.h
12901
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903$as_echo "yes" >&6; }
12904
12905else
12906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907$as_echo "no" >&6; }
12908
12909fi
12910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911
12912
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of arg of __xmknod" >&5
12914$as_echo_n "checking for type of arg of __xmknod... " >&6; }
12915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916/* end confdefs.h.  */
12917
12918       #include <sys/types.h>
12919       #include <sys/stat.h>
12920       #include <fcntl.h>
12921       #include <unistd.h>
12922
12923int
12924main ()
12925{
12926
12927       int __xmknod  ( int ver,
12928                       const char *pathname ,
12929                       mode_t  mode ,  dev_t dev);
12930
12931  ;
12932  return 0;
12933}
12934_ACEOF
12935if ac_fn_c_try_compile "$LINENO"; then :
12936
12937   $as_echo "#define XMKNOD_FRTH_ARG /**/" >>confdefs.h
12938
12939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no extra *" >&5
12940$as_echo "no extra *" >&6; }
12941
12942else
12943
12944   $as_echo "#define XMKNOD_FRTH_ARG *" >>confdefs.h
12945
12946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: needs *" >&5
12947$as_echo "needs *" >&6; }
12948
12949
12950fi
12951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12952
12953
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of arg of __xmknodat" >&5
12955$as_echo_n "checking for type of arg of __xmknodat... " >&6; }
12956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957/* end confdefs.h.  */
12958
12959       #include <sys/types.h>
12960       #include <sys/stat.h>
12961       #include <fcntl.h>
12962       #include <unistd.h>
12963
12964int
12965main ()
12966{
12967
12968       int __xmknodat  ( int ver,
12969                         int dirfd,
12970                         const char *pathname ,
12971                         mode_t  mode ,  dev_t dev);
12972
12973  ;
12974  return 0;
12975}
12976_ACEOF
12977if ac_fn_c_try_compile "$LINENO"; then :
12978
12979   $as_echo "#define XMKNODAT_FIFTH_ARG /**/" >>confdefs.h
12980
12981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no extra *" >&5
12982$as_echo "no extra *" >&6; }
12983
12984else
12985
12986   $as_echo "#define XMKNODAT_FIFTH_ARG *" >>confdefs.h
12987
12988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: needs *" >&5
12989$as_echo "needs *" >&6; }
12990
12991
12992fi
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994
12995
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of arg of initgroups" >&5
12997$as_echo_n "checking for type of arg of initgroups... " >&6; }
12998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999/* end confdefs.h.  */
13000
13001       #include <sys/types.h>
13002       #include <unistd.h>
13003
13004int
13005main ()
13006{
13007
13008       int initgroups ( const char *user, gid_t group );
13009
13010  ;
13011  return 0;
13012}
13013_ACEOF
13014if ac_fn_c_try_compile "$LINENO"; then :
13015
13016   $as_echo "#define INITGROUPS_SECOND_ARG gid_t" >>confdefs.h
13017
13018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: gid_t" >&5
13019$as_echo "gid_t" >&6; }
13020
13021else
13022
13023   $as_echo "#define INITGROUPS_SECOND_ARG int" >>confdefs.h
13024
13025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not gid_t; will assume int" >&5
13026$as_echo "not gid_t; will assume int" >&6; }
13027
13028fi
13029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030
13031
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of arg of setreuid" >&5
13033$as_echo_n "checking for type of arg of setreuid... " >&6; }
13034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035/* end confdefs.h.  */
13036
13037       #include <sys/types.h>
13038       #include <unistd.h>
13039
13040int
13041main ()
13042{
13043
13044       int setreuid ( uid_t ruid, uid_t euid );
13045
13046  ;
13047  return 0;
13048}
13049_ACEOF
13050if ac_fn_c_try_compile "$LINENO"; then :
13051
13052   $as_echo "#define SETREUID_ARG gid_t" >>confdefs.h
13053
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: gid_t" >&5
13055$as_echo "gid_t" >&6; }
13056
13057else
13058
13059   $as_echo "#define SETREUID_ARG int" >>confdefs.h
13060
13061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not uid_t; will assume int" >&5
13062$as_echo "not uid_t; will assume int" >&6; }
13063
13064fi
13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066
13067
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of arg of setregid" >&5
13069$as_echo_n "checking for type of arg of setregid... " >&6; }
13070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071/* end confdefs.h.  */
13072
13073       #include <sys/types.h>
13074       #include <unistd.h>
13075
13076int
13077main ()
13078{
13079
13080       int setreuid ( gid_t rgid, gid_t egid );
13081
13082  ;
13083  return 0;
13084}
13085_ACEOF
13086if ac_fn_c_try_compile "$LINENO"; then :
13087
13088   $as_echo "#define SETREGID_ARG gid_t" >>confdefs.h
13089
13090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: gid_t" >&5
13091$as_echo "gid_t" >&6; }
13092
13093else
13094
13095   $as_echo "#define SETREGID_ARG int" >>confdefs.h
13096
13097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not gid_t; will assume int" >&5
13098$as_echo "not gid_t; will assume int" >&6; }
13099
13100fi
13101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102
13103
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of second arg to stat" >&5
13105$as_echo_n "checking for type of second arg to stat... " >&6; }
13106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107/* end confdefs.h.  */
13108
13109       #include <sys/stat.h>
13110       #include <sys/types.h>
13111       #include <unistd.h>
13112
13113int
13114main ()
13115{
13116
13117       int stat ( const char *file_name, struct stat *buf);
13118
13119  ;
13120  return 0;
13121}
13122_ACEOF
13123if ac_fn_c_try_compile "$LINENO"; then :
13124
13125   $as_echo "#define STAT_SECOND_ARG struct stat *" >>confdefs.h
13126
13127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct stat *" >&5
13128$as_echo "struct stat *" >&6; }
13129
13130else
13131
13132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133/* end confdefs.h.  */
13134
13135       #include <sys/stat.h>
13136       #include <sys/types.h>
13137       #include <unistd.h>
13138
13139int
13140main ()
13141{
13142
13143       int stat ( const char *file_name, stat *buf);
13144
13145  ;
13146  return 0;
13147}
13148_ACEOF
13149if ac_fn_c_try_compile "$LINENO"; then :
13150
13151   $as_echo "#define STAT_SECOND_ARG stat *" >>confdefs.h
13152
13153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stat *" >&5
13154$as_echo "stat *" >&6; }
13155
13156else
13157
13158  as_fn_error $? "cannot determine second stat argument" "$LINENO" 5
13159
13160fi
13161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13162
13163fi
13164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165
13166for field in d_off d_type; do
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${field} in struct dirent" >&5
13168$as_echo_n "checking for ${field} in struct dirent... " >&6; }
13169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170/* end confdefs.h.  */
13171
13172       #include <sys/types.h>
13173       #include <dirent.h>
13174
13175int
13176main ()
13177{
13178
13179
13180       struct dirent d;
13181       d.${field}=0
13182
13183  ;
13184  return 0;
13185}
13186_ACEOF
13187if ac_fn_c_try_compile "$LINENO"; then :
13188  cat >>confdefs.h <<_ACEOF
13189#define STAT_HAS_${field} 1
13190_ACEOF
13191
13192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13193$as_echo "yes" >&6; }
13194
13195else
13196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197$as_echo "no" >&6; }
13198
13199fi
13200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201done
13202
13203
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_t struct" >&5
13205$as_echo_n "checking for acl_t struct... " >&6; }
13206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207/* end confdefs.h.  */
13208
13209       #include <sys/types.h>
13210       #include <sys/acl.h>
13211
13212int
13213main ()
13214{
13215
13216       acl_t t;
13217
13218  ;
13219  return 0;
13220}
13221_ACEOF
13222if ac_fn_c_try_compile "$LINENO"; then :
13223  cat >>confdefs.h <<_ACEOF
13224#define HAVE_ACL_T 1
13225_ACEOF
13226
13227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13228$as_echo "yes" >&6; }
13229
13230else
13231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232$as_echo "no" >&6; }
13233
13234fi
13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236
13237for ac_func in fchmodat fchownat fstatat mkdirat mknodat openat renameat unlinkat lchmod fgetattrlist
13238do :
13239  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13240ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13241if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13242  cat >>confdefs.h <<_ACEOF
13243#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13244_ACEOF
13245
13246fi
13247done
13248
13249
13250for ac_func in capset listxattr llistxattr flistxattr getxattr lgetxattr fgetxattr setxattr lsetxattr fsetxattr removexattr lremovexattr fremovexattr
13251do :
13252  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13253ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13254if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13255  cat >>confdefs.h <<_ACEOF
13256#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13257_ACEOF
13258
13259fi
13260done
13261
13262
13263
13264:>fakerootconfig.h.tmp
13265
13266for SEARCH in %stat f%stat l%stat f%statat %stat64 f%stat64 l%stat64 f%statat64 %mknod %mknodat; do
13267  FUNC=`echo $SEARCH|sed -e 's/.*%//'`
13268  PRE=`echo $SEARCH|sed -e 's/%.*//'`
13269  FOUND=
13270  for WRAPPED in __${PRE}x${FUNC} _${PRE}x${FUNC} __${PRE}${FUNC}13 ${PRE}${FUNC}; do
13271    for ac_func in $WRAPPED
13272do :
13273  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13274ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13275if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13276  cat >>confdefs.h <<_ACEOF
13277#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13278_ACEOF
13279 FOUND=$WRAPPED
13280fi
13281done
13282
13283    if test -n "$FOUND"; then
13284      PF=`echo ${PRE}${FUNC}| tr '[a-z]' '[A-Z]'`
13285      DEFINE_WRAP=`echo wrap_${PRE}${FUNC}| tr '[a-z]' '[A-Z]'`
13286      DEFINE_NEXT=`echo wrap_${FOUND}| tr '[a-z]' '[A-Z]'`
13287      DEFINE_ARG=`echo wrap_${FOUND}| tr '[a-z]' '[A-Z]'`
13288      cat >>confdefs.h <<_ACEOF
13289#define WRAP_${PF} $FOUND
13290_ACEOF
13291
13292      cat >>confdefs.h <<_ACEOF
13293#define WRAP_${PF}_RAW $FOUND
13294_ACEOF
13295
13296      cat >>confdefs.h <<_ACEOF
13297#define WRAP_${PF}_QUOTE "$FOUND"
13298_ACEOF
13299
13300      cat >>confdefs.h <<_ACEOF
13301#define TMP_${PF} tmp_$FOUND
13302_ACEOF
13303
13304      cat >>confdefs.h <<_ACEOF
13305#define NEXT_${PF}_NOARG next_$FOUND
13306_ACEOF
13307
13308      if test __"${PRE}x${FUNC}" != "${WRAPPED}" && test _"${PRE}x${FUNC}" != "${WRAPPED}" ; then
13309        DEF_BEGIN=""
13310      else
13311        DEF_BEGIN="a,"
13312      fi
13313      if test "${FUNC}" = "mknod"; then
13314        DEF_END=",d"
13315      elif test "${FUNC}" = "mknodat"; then
13316        DEF_END=",d,e"
13317      elif test "${FUNC}" = "statat"; then
13318        DEF_END=",d,e"
13319      elif test "${FUNC}" = "statat64"; then
13320        DEF_END=",d,e"
13321      else
13322        DEF_END=""
13323      fi
13324
13325                        {
13326       echo "#define NEXT_${PF}(a,b,c${DEF_END}) next_$FOUND(${DEF_BEGIN}b,c${DEF_END})"
13327       echo "#define ${PF}_ARG(a,b,c${DEF_END}) (${DEF_BEGIN}b,c${DEF_END})"
13328      } >>fakerootconfig.h.tmp
13329
13330      break
13331    fi
13332  done
13333done
13334
13335if test -r fakerootconfig.h
13336then
13337       if test "`diff fakerootconfig.h fakerootconfig.h.tmp`" = ""
13338       then
13339               { $as_echo "$as_me:${as_lineno-$LINENO}: result: fakerootconfig.h not changed" >&5
13340$as_echo "fakerootconfig.h not changed" >&6; }
13341               rm fakerootconfig.h.tmp
13342       else
13343               { $as_echo "$as_me:${as_lineno-$LINENO}: result: recreated fakerootconfig.h" >&5
13344$as_echo "recreated fakerootconfig.h" >&6; }
13345               rm fakerootconfig.h ; mv fakerootconfig.h.tmp fakerootconfig.h
13346       fi
13347else
13348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: created fakerootconfig.h" >&5
13349$as_echo "created fakerootconfig.h" >&6; }
13350       mv fakerootconfig.h.tmp fakerootconfig.h
13351fi
13352
13353DLSUFFIX=".so"
13354LDLIBPATHVAR="LD_LIBRARY_PATH"
13355LDPRELOADVAR="LD_PRELOAD"
13356LDPRELOADABS=0
13357LDEXTRAVAR=""
13358case $target_cpu:$target_os in
13359	(alpha*:linux*|ia64*:linux*)
13360		libcpath="/lib/libc.so.6.1"
13361		;;
13362	(*:linux*)
13363	        libcpath="/lib/libc.so.6"
13364		;;
13365	(*:k*bsd*-gnu)
13366	        libcpath="/lib/libc.so.0.1"
13367		;;
13368	(*:freebsd*)
13369		libcpath="/usr/lib/libc.so.4"
13370		;;
13371	(*:netbsd*)
13372		libcpath="/usr/lib/libc.so.12"
13373		;;
13374	(*:openbsd*|*:mirbsd*)
13375		libcpath=$(/bin/ls -1 /usr/lib/libc.so.* | \
13376		    sort -nt. -k3 | tail -1)
13377		;;
13378	(*:midnightbsd*)
13379		libcpath=$(/bin/ls -1 /lib/libc.so.* | \
13380		    sort -nt. -k3 | tail -1)
13381		;;
13382	(*:hpux*)
13383		libcpath="/usr/lib/hpux32/libc.so.1"
13384		;;
13385	(*:osf*)
13386		libcpath="/shlib/libc.so"
13387		;;
13388	(*:solaris*)
13389		libcpath="/lib/libc.so.1"
13390		;;
13391	(*:darwin*)
13392		libcpath="/usr/lib/libSystem.dylib"
13393		DLSUFFIX=".dylib"
13394		LDLIBPATHVAR="DYLD_LIBRARY_PATH"
13395		LDPRELOADVAR="DYLD_INSERT_LIBRARIES"
13396		LDPRELOADABS=1
13397		;;
13398	(*)
13399		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: don't know where libc is for $target_os on
13400			     $target_cpu, setting to /lib/libc.so" >&5
13401$as_echo "$as_me: WARNING: don't know where libc is for $target_os on
13402			     $target_cpu, setting to /lib/libc.so" >&2;}
13403		libcpath="/lib/libc.so"
13404		;;
13405esac
13406
13407
13408cat >>confdefs.h <<_ACEOF
13409#define LIBCPATH "$libcpath"
13410_ACEOF
13411
13412
13413
13414
13415
13416
13417
13418for ac_func in strdup strstr getresuid setresuid getresgid setresgid setfsuid setfsgid fts_read fts_children
13419do :
13420  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13421ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13422if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13423  cat >>confdefs.h <<_ACEOF
13424#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13425_ACEOF
13426
13427fi
13428done
13429
13430
13431ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
13432if test "x$ac_cv_have_decl_setenv" = xyes; then :
13433  ac_have_decl=1
13434else
13435  ac_have_decl=0
13436fi
13437
13438cat >>confdefs.h <<_ACEOF
13439#define HAVE_DECL_SETENV $ac_have_decl
13440_ACEOF
13441ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
13442if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
13443  ac_have_decl=1
13444else
13445  ac_have_decl=0
13446fi
13447
13448cat >>confdefs.h <<_ACEOF
13449#define HAVE_DECL_UNSETENV $ac_have_decl
13450_ACEOF
13451
13452ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
13453if test "x$ac_cv_func_setenv" = xyes; then :
13454  $as_echo "#define HAVE_SETENV 1" >>confdefs.h
13455
13456else
13457  case " $LIBOBJS " in
13458  *" setenv.$ac_objext "* ) ;;
13459  *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
13460 ;;
13461esac
13462
13463fi
13464
13465
13466
13467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468/* end confdefs.h.  */
13469int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
13470int
13471main ()
13472{
13473
13474  ;
13475  return 0;
13476}
13477_ACEOF
13478if ac_fn_c_try_link "$LINENO"; then :
13479
13480$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
13481
13482fi
13483rm -f core conftest.err conftest.$ac_objext \
13484    conftest$ac_exeext conftest.$ac_ext
13485
13486
13487
13488
13489
13490case "$target_cpu:$target_os" in
13491	(alpha*:linux*)
13492
13493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to do stat-struct conversion hackery" >&5
13494$as_echo_n "checking if we need to do stat-struct conversion hackery... " >&6; }
13495	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496/* end confdefs.h.  */
13497
13498#include <sys/stat.h>
13499_STAT_VER:_STAT_VER_GLIBC2_3_4
13500
13501_ACEOF
13502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13503  $EGREP "3:3" >/dev/null 2>&1; then :
13504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13505$as_echo "yes" >&6; }; $as_echo "#define STUPID_ALPHA_HACK 1" >>confdefs.h
13506
13507CPPFLAGS="$CPPFLAGS -I\$(srcdir)/statconv/glibc/linux/alpha"
13508
13509else
13510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511$as_echo "no" >&6; };
13512fi
13513rm -f conftest*
13514
13515        ;;
13516esac
13517
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MacOS X/Darwin" >&5
13519$as_echo_n "checking for MacOS X/Darwin... " >&6; }
13520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521/* end confdefs.h.  */
13522
13523       #ifndef __APPLE__
13524       #error We are somewhere better
13525       #endif
13526
13527int
13528main ()
13529{
13530
13531  ;
13532  return 0;
13533}
13534_ACEOF
13535if ac_fn_c_try_cpp "$LINENO"; then :
13536  macosx=true
13537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13538$as_echo "yes" >&6; }
13539else
13540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541$as_echo "no" >&6; }
13542     macosx=false
13543
13544fi
13545rm -f conftest.err conftest.i conftest.$ac_ext
13546 if test x$macosx = xtrue; then
13547  MACOSX_TRUE=
13548  MACOSX_FALSE='#'
13549else
13550  MACOSX_TRUE='#'
13551  MACOSX_FALSE=
13552fi
13553
13554
13555ac_config_files="$ac_config_files Makefile scripts/Makefile doc/Makefile doc/de/Makefile doc/es/Makefile doc/fr/Makefile doc/nl/Makefile doc/pt/Makefile doc/sv/Makefile test/Makefile test/defs"
13556
13557cat >confcache <<\_ACEOF
13558# This file is a shell script that caches the results of configure
13559# tests run on this system so they can be shared between configure
13560# scripts and configure runs, see configure's option --config-cache.
13561# It is not useful on other systems.  If it contains results you don't
13562# want to keep, you may remove or edit it.
13563#
13564# config.status only pays attention to the cache file if you give it
13565# the --recheck option to rerun configure.
13566#
13567# `ac_cv_env_foo' variables (set or unset) will be overridden when
13568# loading this file, other *unset* `ac_cv_foo' will be assigned the
13569# following values.
13570
13571_ACEOF
13572
13573# The following way of writing the cache mishandles newlines in values,
13574# but we know of no workaround that is simple, portable, and efficient.
13575# So, we kill variables containing newlines.
13576# Ultrix sh set writes to stderr and can't be redirected directly,
13577# and sets the high bit in the cache file unless we assign to the vars.
13578(
13579  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13580    eval ac_val=\$$ac_var
13581    case $ac_val in #(
13582    *${as_nl}*)
13583      case $ac_var in #(
13584      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13585$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13586      esac
13587      case $ac_var in #(
13588      _ | IFS | as_nl) ;; #(
13589      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13590      *) { eval $ac_var=; unset $ac_var;} ;;
13591      esac ;;
13592    esac
13593  done
13594
13595  (set) 2>&1 |
13596    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13597    *${as_nl}ac_space=\ *)
13598      # `set' does not quote correctly, so add quotes: double-quote
13599      # substitution turns \\\\ into \\, and sed turns \\ into \.
13600      sed -n \
13601	"s/'/'\\\\''/g;
13602	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13603      ;; #(
13604    *)
13605      # `set' quotes correctly as required by POSIX, so do not add quotes.
13606      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13607      ;;
13608    esac |
13609    sort
13610) |
13611  sed '
13612     /^ac_cv_env_/b end
13613     t clear
13614     :clear
13615     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13616     t end
13617     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13618     :end' >>confcache
13619if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13620  if test -w "$cache_file"; then
13621    if test "x$cache_file" != "x/dev/null"; then
13622      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13623$as_echo "$as_me: updating cache $cache_file" >&6;}
13624      if test ! -f "$cache_file" || test -h "$cache_file"; then
13625	cat confcache >"$cache_file"
13626      else
13627        case $cache_file in #(
13628        */* | ?:*)
13629	  mv -f confcache "$cache_file"$$ &&
13630	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13631        *)
13632	  mv -f confcache "$cache_file" ;;
13633	esac
13634      fi
13635    fi
13636  else
13637    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13638$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13639  fi
13640fi
13641rm -f confcache
13642
13643test "x$prefix" = xNONE && prefix=$ac_default_prefix
13644# Let make expand exec_prefix.
13645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13646
13647DEFS=-DHAVE_CONFIG_H
13648
13649ac_libobjs=
13650ac_ltlibobjs=
13651U=
13652for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13653  # 1. Remove the extension, and $U if already installed.
13654  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13655  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13656  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13657  #    will be set to the directory where LIBOBJS objects are built.
13658  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13659  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13660done
13661LIBOBJS=$ac_libobjs
13662
13663LTLIBOBJS=$ac_ltlibobjs
13664
13665
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13667$as_echo_n "checking that generated files are newer than configure... " >&6; }
13668   if test -n "$am_sleep_pid"; then
13669     # Hide warnings about reused PIDs.
13670     wait $am_sleep_pid 2>/dev/null
13671   fi
13672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13673$as_echo "done" >&6; }
13674 if test -n "$EXEEXT"; then
13675  am__EXEEXT_TRUE=
13676  am__EXEEXT_FALSE='#'
13677else
13678  am__EXEEXT_TRUE='#'
13679  am__EXEEXT_FALSE=
13680fi
13681
13682if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13683  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13684Usually this means the macro was only invoked conditionally." "$LINENO" 5
13685fi
13686if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13687  as_fn_error $? "conditional \"AMDEP\" was never defined.
13688Usually this means the macro was only invoked conditionally." "$LINENO" 5
13689fi
13690if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13691  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13692Usually this means the macro was only invoked conditionally." "$LINENO" 5
13693fi
13694if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
13695  as_fn_error $? "conditional \"MACOSX\" was never defined.
13696Usually this means the macro was only invoked conditionally." "$LINENO" 5
13697fi
13698
13699: "${CONFIG_STATUS=./config.status}"
13700ac_write_fail=0
13701ac_clean_files_save=$ac_clean_files
13702ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13704$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13705as_write_fail=0
13706cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13707#! $SHELL
13708# Generated by $as_me.
13709# Run this file to recreate the current configuration.
13710# Compiler output produced by configure, useful for debugging
13711# configure, is in config.log if it exists.
13712
13713debug=false
13714ac_cs_recheck=false
13715ac_cs_silent=false
13716
13717SHELL=\${CONFIG_SHELL-$SHELL}
13718export SHELL
13719_ASEOF
13720cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13721## -------------------- ##
13722## M4sh Initialization. ##
13723## -------------------- ##
13724
13725# Be more Bourne compatible
13726DUALCASE=1; export DUALCASE # for MKS sh
13727if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13728  emulate sh
13729  NULLCMD=:
13730  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13731  # is contrary to our usage.  Disable this feature.
13732  alias -g '${1+"$@"}'='"$@"'
13733  setopt NO_GLOB_SUBST
13734else
13735  case `(set -o) 2>/dev/null` in #(
13736  *posix*) :
13737    set -o posix ;; #(
13738  *) :
13739     ;;
13740esac
13741fi
13742
13743
13744as_nl='
13745'
13746export as_nl
13747# Printing a long string crashes Solaris 7 /usr/bin/printf.
13748as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13749as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13750as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13751# Prefer a ksh shell builtin over an external printf program on Solaris,
13752# but without wasting forks for bash or zsh.
13753if test -z "$BASH_VERSION$ZSH_VERSION" \
13754    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13755  as_echo='print -r --'
13756  as_echo_n='print -rn --'
13757elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13758  as_echo='printf %s\n'
13759  as_echo_n='printf %s'
13760else
13761  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13762    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13763    as_echo_n='/usr/ucb/echo -n'
13764  else
13765    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13766    as_echo_n_body='eval
13767      arg=$1;
13768      case $arg in #(
13769      *"$as_nl"*)
13770	expr "X$arg" : "X\\(.*\\)$as_nl";
13771	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13772      esac;
13773      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13774    '
13775    export as_echo_n_body
13776    as_echo_n='sh -c $as_echo_n_body as_echo'
13777  fi
13778  export as_echo_body
13779  as_echo='sh -c $as_echo_body as_echo'
13780fi
13781
13782# The user is always right.
13783if test "${PATH_SEPARATOR+set}" != set; then
13784  PATH_SEPARATOR=:
13785  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13786    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13787      PATH_SEPARATOR=';'
13788  }
13789fi
13790
13791
13792# IFS
13793# We need space, tab and new line, in precisely that order.  Quoting is
13794# there to prevent editors from complaining about space-tab.
13795# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13796# splitting by setting IFS to empty value.)
13797IFS=" ""	$as_nl"
13798
13799# Find who we are.  Look in the path if we contain no directory separator.
13800as_myself=
13801case $0 in #((
13802  *[\\/]* ) as_myself=$0 ;;
13803  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804for as_dir in $PATH
13805do
13806  IFS=$as_save_IFS
13807  test -z "$as_dir" && as_dir=.
13808    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13809  done
13810IFS=$as_save_IFS
13811
13812     ;;
13813esac
13814# We did not find ourselves, most probably we were run as `sh COMMAND'
13815# in which case we are not to be found in the path.
13816if test "x$as_myself" = x; then
13817  as_myself=$0
13818fi
13819if test ! -f "$as_myself"; then
13820  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13821  exit 1
13822fi
13823
13824# Unset variables that we do not need and which cause bugs (e.g. in
13825# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13826# suppresses any "Segmentation fault" message there.  '((' could
13827# trigger a bug in pdksh 5.2.14.
13828for as_var in BASH_ENV ENV MAIL MAILPATH
13829do eval test x\${$as_var+set} = xset \
13830  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13831done
13832PS1='$ '
13833PS2='> '
13834PS4='+ '
13835
13836# NLS nuisances.
13837LC_ALL=C
13838export LC_ALL
13839LANGUAGE=C
13840export LANGUAGE
13841
13842# CDPATH.
13843(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13844
13845
13846# as_fn_error STATUS ERROR [LINENO LOG_FD]
13847# ----------------------------------------
13848# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13849# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13850# script with STATUS, using 1 if that was 0.
13851as_fn_error ()
13852{
13853  as_status=$1; test $as_status -eq 0 && as_status=1
13854  if test "$4"; then
13855    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13856    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13857  fi
13858  $as_echo "$as_me: error: $2" >&2
13859  as_fn_exit $as_status
13860} # as_fn_error
13861
13862
13863# as_fn_set_status STATUS
13864# -----------------------
13865# Set $? to STATUS, without forking.
13866as_fn_set_status ()
13867{
13868  return $1
13869} # as_fn_set_status
13870
13871# as_fn_exit STATUS
13872# -----------------
13873# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13874as_fn_exit ()
13875{
13876  set +e
13877  as_fn_set_status $1
13878  exit $1
13879} # as_fn_exit
13880
13881# as_fn_unset VAR
13882# ---------------
13883# Portably unset VAR.
13884as_fn_unset ()
13885{
13886  { eval $1=; unset $1;}
13887}
13888as_unset=as_fn_unset
13889# as_fn_append VAR VALUE
13890# ----------------------
13891# Append the text in VALUE to the end of the definition contained in VAR. Take
13892# advantage of any shell optimizations that allow amortized linear growth over
13893# repeated appends, instead of the typical quadratic growth present in naive
13894# implementations.
13895if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13896  eval 'as_fn_append ()
13897  {
13898    eval $1+=\$2
13899  }'
13900else
13901  as_fn_append ()
13902  {
13903    eval $1=\$$1\$2
13904  }
13905fi # as_fn_append
13906
13907# as_fn_arith ARG...
13908# ------------------
13909# Perform arithmetic evaluation on the ARGs, and store the result in the
13910# global $as_val. Take advantage of shells that can avoid forks. The arguments
13911# must be portable across $(()) and expr.
13912if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13913  eval 'as_fn_arith ()
13914  {
13915    as_val=$(( $* ))
13916  }'
13917else
13918  as_fn_arith ()
13919  {
13920    as_val=`expr "$@" || test $? -eq 1`
13921  }
13922fi # as_fn_arith
13923
13924
13925if expr a : '\(a\)' >/dev/null 2>&1 &&
13926   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13927  as_expr=expr
13928else
13929  as_expr=false
13930fi
13931
13932if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13933  as_basename=basename
13934else
13935  as_basename=false
13936fi
13937
13938if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13939  as_dirname=dirname
13940else
13941  as_dirname=false
13942fi
13943
13944as_me=`$as_basename -- "$0" ||
13945$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13946	 X"$0" : 'X\(//\)$' \| \
13947	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13948$as_echo X/"$0" |
13949    sed '/^.*\/\([^/][^/]*\)\/*$/{
13950	    s//\1/
13951	    q
13952	  }
13953	  /^X\/\(\/\/\)$/{
13954	    s//\1/
13955	    q
13956	  }
13957	  /^X\/\(\/\).*/{
13958	    s//\1/
13959	    q
13960	  }
13961	  s/.*/./; q'`
13962
13963# Avoid depending upon Character Ranges.
13964as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13965as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13966as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13967as_cr_digits='0123456789'
13968as_cr_alnum=$as_cr_Letters$as_cr_digits
13969
13970ECHO_C= ECHO_N= ECHO_T=
13971case `echo -n x` in #(((((
13972-n*)
13973  case `echo 'xy\c'` in
13974  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13975  xy)  ECHO_C='\c';;
13976  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13977       ECHO_T='	';;
13978  esac;;
13979*)
13980  ECHO_N='-n';;
13981esac
13982
13983rm -f conf$$ conf$$.exe conf$$.file
13984if test -d conf$$.dir; then
13985  rm -f conf$$.dir/conf$$.file
13986else
13987  rm -f conf$$.dir
13988  mkdir conf$$.dir 2>/dev/null
13989fi
13990if (echo >conf$$.file) 2>/dev/null; then
13991  if ln -s conf$$.file conf$$ 2>/dev/null; then
13992    as_ln_s='ln -s'
13993    # ... but there are two gotchas:
13994    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13995    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13996    # In both cases, we have to default to `cp -pR'.
13997    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13998      as_ln_s='cp -pR'
13999  elif ln conf$$.file conf$$ 2>/dev/null; then
14000    as_ln_s=ln
14001  else
14002    as_ln_s='cp -pR'
14003  fi
14004else
14005  as_ln_s='cp -pR'
14006fi
14007rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14008rmdir conf$$.dir 2>/dev/null
14009
14010
14011# as_fn_mkdir_p
14012# -------------
14013# Create "$as_dir" as a directory, including parents if necessary.
14014as_fn_mkdir_p ()
14015{
14016
14017  case $as_dir in #(
14018  -*) as_dir=./$as_dir;;
14019  esac
14020  test -d "$as_dir" || eval $as_mkdir_p || {
14021    as_dirs=
14022    while :; do
14023      case $as_dir in #(
14024      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14025      *) as_qdir=$as_dir;;
14026      esac
14027      as_dirs="'$as_qdir' $as_dirs"
14028      as_dir=`$as_dirname -- "$as_dir" ||
14029$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14030	 X"$as_dir" : 'X\(//\)[^/]' \| \
14031	 X"$as_dir" : 'X\(//\)$' \| \
14032	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14033$as_echo X"$as_dir" |
14034    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14035	    s//\1/
14036	    q
14037	  }
14038	  /^X\(\/\/\)[^/].*/{
14039	    s//\1/
14040	    q
14041	  }
14042	  /^X\(\/\/\)$/{
14043	    s//\1/
14044	    q
14045	  }
14046	  /^X\(\/\).*/{
14047	    s//\1/
14048	    q
14049	  }
14050	  s/.*/./; q'`
14051      test -d "$as_dir" && break
14052    done
14053    test -z "$as_dirs" || eval "mkdir $as_dirs"
14054  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14055
14056
14057} # as_fn_mkdir_p
14058if mkdir -p . 2>/dev/null; then
14059  as_mkdir_p='mkdir -p "$as_dir"'
14060else
14061  test -d ./-p && rmdir ./-p
14062  as_mkdir_p=false
14063fi
14064
14065
14066# as_fn_executable_p FILE
14067# -----------------------
14068# Test if FILE is an executable regular file.
14069as_fn_executable_p ()
14070{
14071  test -f "$1" && test -x "$1"
14072} # as_fn_executable_p
14073as_test_x='test -x'
14074as_executable_p=as_fn_executable_p
14075
14076# Sed expression to map a string onto a valid CPP name.
14077as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14078
14079# Sed expression to map a string onto a valid variable name.
14080as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14081
14082
14083exec 6>&1
14084## ----------------------------------- ##
14085## Main body of $CONFIG_STATUS script. ##
14086## ----------------------------------- ##
14087_ASEOF
14088test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14089
14090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14091# Save the log message, to keep $0 and so on meaningful, and to
14092# report actual input values of CONFIG_FILES etc. instead of their
14093# values after options handling.
14094ac_log="
14095This file was extended by fakeroot $as_me 1.23, which was
14096generated by GNU Autoconf 2.69.  Invocation command line was
14097
14098  CONFIG_FILES    = $CONFIG_FILES
14099  CONFIG_HEADERS  = $CONFIG_HEADERS
14100  CONFIG_LINKS    = $CONFIG_LINKS
14101  CONFIG_COMMANDS = $CONFIG_COMMANDS
14102  $ $0 $@
14103
14104on `(hostname || uname -n) 2>/dev/null | sed 1q`
14105"
14106
14107_ACEOF
14108
14109case $ac_config_files in *"
14110"*) set x $ac_config_files; shift; ac_config_files=$*;;
14111esac
14112
14113case $ac_config_headers in *"
14114"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14115esac
14116
14117
14118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14119# Files that config.status was made for.
14120config_files="$ac_config_files"
14121config_headers="$ac_config_headers"
14122config_commands="$ac_config_commands"
14123
14124_ACEOF
14125
14126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14127ac_cs_usage="\
14128\`$as_me' instantiates files and other configuration actions
14129from templates according to the current configuration.  Unless the files
14130and actions are specified as TAGs, all are instantiated by default.
14131
14132Usage: $0 [OPTION]... [TAG]...
14133
14134  -h, --help       print this help, then exit
14135  -V, --version    print version number and configuration settings, then exit
14136      --config     print configuration, then exit
14137  -q, --quiet, --silent
14138                   do not print progress messages
14139  -d, --debug      don't remove temporary files
14140      --recheck    update $as_me by reconfiguring in the same conditions
14141      --file=FILE[:TEMPLATE]
14142                   instantiate the configuration file FILE
14143      --header=FILE[:TEMPLATE]
14144                   instantiate the configuration header FILE
14145
14146Configuration files:
14147$config_files
14148
14149Configuration headers:
14150$config_headers
14151
14152Configuration commands:
14153$config_commands
14154
14155Report bugs to <clint@debian.org>."
14156
14157_ACEOF
14158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14159ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14160ac_cs_version="\\
14161fakeroot config.status 1.23
14162configured by $0, generated by GNU Autoconf 2.69,
14163  with options \\"\$ac_cs_config\\"
14164
14165Copyright (C) 2012 Free Software Foundation, Inc.
14166This config.status script is free software; the Free Software Foundation
14167gives unlimited permission to copy, distribute and modify it."
14168
14169ac_pwd='$ac_pwd'
14170srcdir='$srcdir'
14171INSTALL='$INSTALL'
14172MKDIR_P='$MKDIR_P'
14173AWK='$AWK'
14174test -n "\$AWK" || AWK=awk
14175_ACEOF
14176
14177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14178# The default lists apply if the user does not specify any file.
14179ac_need_defaults=:
14180while test $# != 0
14181do
14182  case $1 in
14183  --*=?*)
14184    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14185    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14186    ac_shift=:
14187    ;;
14188  --*=)
14189    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14190    ac_optarg=
14191    ac_shift=:
14192    ;;
14193  *)
14194    ac_option=$1
14195    ac_optarg=$2
14196    ac_shift=shift
14197    ;;
14198  esac
14199
14200  case $ac_option in
14201  # Handling of the options.
14202  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14203    ac_cs_recheck=: ;;
14204  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14205    $as_echo "$ac_cs_version"; exit ;;
14206  --config | --confi | --conf | --con | --co | --c )
14207    $as_echo "$ac_cs_config"; exit ;;
14208  --debug | --debu | --deb | --de | --d | -d )
14209    debug=: ;;
14210  --file | --fil | --fi | --f )
14211    $ac_shift
14212    case $ac_optarg in
14213    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14214    '') as_fn_error $? "missing file argument" ;;
14215    esac
14216    as_fn_append CONFIG_FILES " '$ac_optarg'"
14217    ac_need_defaults=false;;
14218  --header | --heade | --head | --hea )
14219    $ac_shift
14220    case $ac_optarg in
14221    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14222    esac
14223    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14224    ac_need_defaults=false;;
14225  --he | --h)
14226    # Conflict between --help and --header
14227    as_fn_error $? "ambiguous option: \`$1'
14228Try \`$0 --help' for more information.";;
14229  --help | --hel | -h )
14230    $as_echo "$ac_cs_usage"; exit ;;
14231  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14232  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14233    ac_cs_silent=: ;;
14234
14235  # This is an error.
14236  -*) as_fn_error $? "unrecognized option: \`$1'
14237Try \`$0 --help' for more information." ;;
14238
14239  *) as_fn_append ac_config_targets " $1"
14240     ac_need_defaults=false ;;
14241
14242  esac
14243  shift
14244done
14245
14246ac_configure_extra_args=
14247
14248if $ac_cs_silent; then
14249  exec 6>/dev/null
14250  ac_configure_extra_args="$ac_configure_extra_args --silent"
14251fi
14252
14253_ACEOF
14254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14255if \$ac_cs_recheck; then
14256  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14257  shift
14258  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14259  CONFIG_SHELL='$SHELL'
14260  export CONFIG_SHELL
14261  exec "\$@"
14262fi
14263
14264_ACEOF
14265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14266exec 5>>config.log
14267{
14268  echo
14269  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14270## Running $as_me. ##
14271_ASBOX
14272  $as_echo "$ac_log"
14273} >&5
14274
14275_ACEOF
14276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14277#
14278# INIT-COMMANDS
14279#
14280AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14281
14282
14283# The HP-UX ksh and POSIX shell print the target directory to stdout
14284# if CDPATH is set.
14285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14286
14287sed_quote_subst='$sed_quote_subst'
14288double_quote_subst='$double_quote_subst'
14289delay_variable_subst='$delay_variable_subst'
14290macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14291macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14292enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14293enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14294pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14295enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14296shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14297SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14298ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14299PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14300host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14301host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14302host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14303build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14304build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14305build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14306SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14307Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14308GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14309EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14310FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14311LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14312NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14313LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14314max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14315ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14316exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14317lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14318lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14319lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14320lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14321lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14322reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14323reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14324OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14325deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14326file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14327file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14328want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14329DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14330sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14331AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14332AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14333archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14334STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14335RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14336old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14337old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14338old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14339lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14340CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14341CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14342compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14343GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14344lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14345lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14346lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14347lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14348lt_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"`'
14349lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14350nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14351lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14352lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14353objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14354MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14355lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14356lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14357lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14358lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14359lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14360need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14361MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14362DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14363NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14364LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14365OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14366OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14367libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14368shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14369extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14370archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14371enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14372export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14373whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14374compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14375old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14376old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14377archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14378archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14379module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14380module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14381with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14382allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14383no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14384hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14385hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14386hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14387hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14388hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14389hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14390hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14391inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14392link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14393always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14394export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14395exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14396include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14397prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14398postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14399file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14400variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14401need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14402need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14403version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14404runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14405shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14406shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14407libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14408library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14409soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14410install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14411postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14412postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14413finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14414finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14415hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14416sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14417configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14418configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14419hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14420enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14421enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14422enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14423old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14424striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14425
14426LTCC='$LTCC'
14427LTCFLAGS='$LTCFLAGS'
14428compiler='$compiler_DEFAULT'
14429
14430# A function that is used when there is no print builtin or printf.
14431func_fallback_echo ()
14432{
14433  eval 'cat <<_LTECHO_EOF
14434\$1
14435_LTECHO_EOF'
14436}
14437
14438# Quote evaled strings.
14439for var in SHELL \
14440ECHO \
14441PATH_SEPARATOR \
14442SED \
14443GREP \
14444EGREP \
14445FGREP \
14446LD \
14447NM \
14448LN_S \
14449lt_SP2NL \
14450lt_NL2SP \
14451reload_flag \
14452OBJDUMP \
14453deplibs_check_method \
14454file_magic_cmd \
14455file_magic_glob \
14456want_nocaseglob \
14457DLLTOOL \
14458sharedlib_from_linklib_cmd \
14459AR \
14460AR_FLAGS \
14461archiver_list_spec \
14462STRIP \
14463RANLIB \
14464CC \
14465CFLAGS \
14466compiler \
14467lt_cv_sys_global_symbol_pipe \
14468lt_cv_sys_global_symbol_to_cdecl \
14469lt_cv_sys_global_symbol_to_import \
14470lt_cv_sys_global_symbol_to_c_name_address \
14471lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14472lt_cv_nm_interface \
14473nm_file_list_spec \
14474lt_cv_truncate_bin \
14475lt_prog_compiler_no_builtin_flag \
14476lt_prog_compiler_pic \
14477lt_prog_compiler_wl \
14478lt_prog_compiler_static \
14479lt_cv_prog_compiler_c_o \
14480need_locks \
14481MANIFEST_TOOL \
14482DSYMUTIL \
14483NMEDIT \
14484LIPO \
14485OTOOL \
14486OTOOL64 \
14487shrext_cmds \
14488export_dynamic_flag_spec \
14489whole_archive_flag_spec \
14490compiler_needs_object \
14491with_gnu_ld \
14492allow_undefined_flag \
14493no_undefined_flag \
14494hardcode_libdir_flag_spec \
14495hardcode_libdir_separator \
14496exclude_expsyms \
14497include_expsyms \
14498file_list_spec \
14499variables_saved_for_relink \
14500libname_spec \
14501library_names_spec \
14502soname_spec \
14503install_override_mode \
14504finish_eval \
14505old_striplib \
14506striplib; do
14507    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14508    *[\\\\\\\`\\"\\\$]*)
14509      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14510      ;;
14511    *)
14512      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14513      ;;
14514    esac
14515done
14516
14517# Double-quote double-evaled strings.
14518for var in reload_cmds \
14519old_postinstall_cmds \
14520old_postuninstall_cmds \
14521old_archive_cmds \
14522extract_expsyms_cmds \
14523old_archive_from_new_cmds \
14524old_archive_from_expsyms_cmds \
14525archive_cmds \
14526archive_expsym_cmds \
14527module_cmds \
14528module_expsym_cmds \
14529export_symbols_cmds \
14530prelink_cmds \
14531postlink_cmds \
14532postinstall_cmds \
14533postuninstall_cmds \
14534finish_cmds \
14535sys_lib_search_path_spec \
14536configure_time_dlsearch_path \
14537configure_time_lt_sys_library_path; do
14538    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14539    *[\\\\\\\`\\"\\\$]*)
14540      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14541      ;;
14542    *)
14543      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14544      ;;
14545    esac
14546done
14547
14548ac_aux_dir='$ac_aux_dir'
14549
14550# See if we are running on zsh, and set the options that allow our
14551# commands through without removal of \ escapes INIT.
14552if test -n "\${ZSH_VERSION+set}"; then
14553   setopt NO_GLOB_SUBST
14554fi
14555
14556
14557    PACKAGE='$PACKAGE'
14558    VERSION='$VERSION'
14559    RM='$RM'
14560    ofile='$ofile'
14561
14562
14563
14564
14565_ACEOF
14566
14567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14568
14569# Handling of arguments.
14570for ac_config_target in $ac_config_targets
14571do
14572  case $ac_config_target in
14573    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14574    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14575    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14576    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14577    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
14578    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14579    "doc/de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/de/Makefile" ;;
14580    "doc/es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/es/Makefile" ;;
14581    "doc/fr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/fr/Makefile" ;;
14582    "doc/nl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/nl/Makefile" ;;
14583    "doc/pt/Makefile") CONFIG_FILES="$CONFIG_FILES doc/pt/Makefile" ;;
14584    "doc/sv/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sv/Makefile" ;;
14585    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14586    "test/defs") CONFIG_FILES="$CONFIG_FILES test/defs" ;;
14587
14588  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14589  esac
14590done
14591
14592
14593# If the user did not use the arguments to specify the items to instantiate,
14594# then the envvar interface is used.  Set only those that are not.
14595# We use the long form for the default assignment because of an extremely
14596# bizarre bug on SunOS 4.1.3.
14597if $ac_need_defaults; then
14598  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14599  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14600  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14601fi
14602
14603# Have a temporary directory for convenience.  Make it in the build tree
14604# simply because there is no reason against having it here, and in addition,
14605# creating and moving files from /tmp can sometimes cause problems.
14606# Hook for its removal unless debugging.
14607# Note that there is a small window in which the directory will not be cleaned:
14608# after its creation but before its name has been assigned to `$tmp'.
14609$debug ||
14610{
14611  tmp= ac_tmp=
14612  trap 'exit_status=$?
14613  : "${ac_tmp:=$tmp}"
14614  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14615' 0
14616  trap 'as_fn_exit 1' 1 2 13 15
14617}
14618# Create a (secure) tmp directory for tmp files.
14619
14620{
14621  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14622  test -d "$tmp"
14623}  ||
14624{
14625  tmp=./conf$$-$RANDOM
14626  (umask 077 && mkdir "$tmp")
14627} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14628ac_tmp=$tmp
14629
14630# Set up the scripts for CONFIG_FILES section.
14631# No need to generate them if there are no CONFIG_FILES.
14632# This happens for instance with `./config.status config.h'.
14633if test -n "$CONFIG_FILES"; then
14634
14635
14636ac_cr=`echo X | tr X '\015'`
14637# On cygwin, bash can eat \r inside `` if the user requested igncr.
14638# But we know of no other shell where ac_cr would be empty at this
14639# point, so we can use a bashism as a fallback.
14640if test "x$ac_cr" = x; then
14641  eval ac_cr=\$\'\\r\'
14642fi
14643ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14644if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14645  ac_cs_awk_cr='\\r'
14646else
14647  ac_cs_awk_cr=$ac_cr
14648fi
14649
14650echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14651_ACEOF
14652
14653
14654{
14655  echo "cat >conf$$subs.awk <<_ACEOF" &&
14656  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14657  echo "_ACEOF"
14658} >conf$$subs.sh ||
14659  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14660ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14661ac_delim='%!_!# '
14662for ac_last_try in false false false false false :; do
14663  . ./conf$$subs.sh ||
14664    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14665
14666  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14667  if test $ac_delim_n = $ac_delim_num; then
14668    break
14669  elif $ac_last_try; then
14670    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14671  else
14672    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14673  fi
14674done
14675rm -f conf$$subs.sh
14676
14677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14678cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14679_ACEOF
14680sed -n '
14681h
14682s/^/S["/; s/!.*/"]=/
14683p
14684g
14685s/^[^!]*!//
14686:repl
14687t repl
14688s/'"$ac_delim"'$//
14689t delim
14690:nl
14691h
14692s/\(.\{148\}\)..*/\1/
14693t more1
14694s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14695p
14696n
14697b repl
14698:more1
14699s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14700p
14701g
14702s/.\{148\}//
14703t nl
14704:delim
14705h
14706s/\(.\{148\}\)..*/\1/
14707t more2
14708s/["\\]/\\&/g; s/^/"/; s/$/"/
14709p
14710b
14711:more2
14712s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14713p
14714g
14715s/.\{148\}//
14716t delim
14717' <conf$$subs.awk | sed '
14718/^[^""]/{
14719  N
14720  s/\n//
14721}
14722' >>$CONFIG_STATUS || ac_write_fail=1
14723rm -f conf$$subs.awk
14724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14725_ACAWK
14726cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14727  for (key in S) S_is_set[key] = 1
14728  FS = ""
14729
14730}
14731{
14732  line = $ 0
14733  nfields = split(line, field, "@")
14734  substed = 0
14735  len = length(field[1])
14736  for (i = 2; i < nfields; i++) {
14737    key = field[i]
14738    keylen = length(key)
14739    if (S_is_set[key]) {
14740      value = S[key]
14741      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14742      len += length(value) + length(field[++i])
14743      substed = 1
14744    } else
14745      len += 1 + keylen
14746  }
14747
14748  print line
14749}
14750
14751_ACAWK
14752_ACEOF
14753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14754if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14755  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14756else
14757  cat
14758fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14759  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14760_ACEOF
14761
14762# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14763# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14764# trailing colons and then remove the whole line if VPATH becomes empty
14765# (actually we leave an empty line to preserve line numbers).
14766if test "x$srcdir" = x.; then
14767  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14768h
14769s///
14770s/^/:/
14771s/[	 ]*$/:/
14772s/:\$(srcdir):/:/g
14773s/:\${srcdir}:/:/g
14774s/:@srcdir@:/:/g
14775s/^:*//
14776s/:*$//
14777x
14778s/\(=[	 ]*\).*/\1/
14779G
14780s/\n//
14781s/^[^=]*=[	 ]*$//
14782}'
14783fi
14784
14785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14786fi # test -n "$CONFIG_FILES"
14787
14788# Set up the scripts for CONFIG_HEADERS section.
14789# No need to generate them if there are no CONFIG_HEADERS.
14790# This happens for instance with `./config.status Makefile'.
14791if test -n "$CONFIG_HEADERS"; then
14792cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14793BEGIN {
14794_ACEOF
14795
14796# Transform confdefs.h into an awk script `defines.awk', embedded as
14797# here-document in config.status, that substitutes the proper values into
14798# config.h.in to produce config.h.
14799
14800# Create a delimiter string that does not exist in confdefs.h, to ease
14801# handling of long lines.
14802ac_delim='%!_!# '
14803for ac_last_try in false false :; do
14804  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14805  if test -z "$ac_tt"; then
14806    break
14807  elif $ac_last_try; then
14808    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14809  else
14810    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14811  fi
14812done
14813
14814# For the awk script, D is an array of macro values keyed by name,
14815# likewise P contains macro parameters if any.  Preserve backslash
14816# newline sequences.
14817
14818ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14819sed -n '
14820s/.\{148\}/&'"$ac_delim"'/g
14821t rset
14822:rset
14823s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14824t def
14825d
14826:def
14827s/\\$//
14828t bsnl
14829s/["\\]/\\&/g
14830s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14831D["\1"]=" \3"/p
14832s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14833d
14834:bsnl
14835s/["\\]/\\&/g
14836s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14837D["\1"]=" \3\\\\\\n"\\/p
14838t cont
14839s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14840t cont
14841d
14842:cont
14843n
14844s/.\{148\}/&'"$ac_delim"'/g
14845t clear
14846:clear
14847s/\\$//
14848t bsnlc
14849s/["\\]/\\&/g; s/^/"/; s/$/"/p
14850d
14851:bsnlc
14852s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14853b cont
14854' <confdefs.h | sed '
14855s/'"$ac_delim"'/"\\\
14856"/g' >>$CONFIG_STATUS || ac_write_fail=1
14857
14858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14859  for (key in D) D_is_set[key] = 1
14860  FS = ""
14861}
14862/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14863  line = \$ 0
14864  split(line, arg, " ")
14865  if (arg[1] == "#") {
14866    defundef = arg[2]
14867    mac1 = arg[3]
14868  } else {
14869    defundef = substr(arg[1], 2)
14870    mac1 = arg[2]
14871  }
14872  split(mac1, mac2, "(") #)
14873  macro = mac2[1]
14874  prefix = substr(line, 1, index(line, defundef) - 1)
14875  if (D_is_set[macro]) {
14876    # Preserve the white space surrounding the "#".
14877    print prefix "define", macro P[macro] D[macro]
14878    next
14879  } else {
14880    # Replace #undef with comments.  This is necessary, for example,
14881    # in the case of _POSIX_SOURCE, which is predefined and required
14882    # on some systems where configure will not decide to define it.
14883    if (defundef == "undef") {
14884      print "/*", prefix defundef, macro, "*/"
14885      next
14886    }
14887  }
14888}
14889{ print }
14890_ACAWK
14891_ACEOF
14892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14893  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14894fi # test -n "$CONFIG_HEADERS"
14895
14896
14897eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14898shift
14899for ac_tag
14900do
14901  case $ac_tag in
14902  :[FHLC]) ac_mode=$ac_tag; continue;;
14903  esac
14904  case $ac_mode$ac_tag in
14905  :[FHL]*:*);;
14906  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14907  :[FH]-) ac_tag=-:-;;
14908  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14909  esac
14910  ac_save_IFS=$IFS
14911  IFS=:
14912  set x $ac_tag
14913  IFS=$ac_save_IFS
14914  shift
14915  ac_file=$1
14916  shift
14917
14918  case $ac_mode in
14919  :L) ac_source=$1;;
14920  :[FH])
14921    ac_file_inputs=
14922    for ac_f
14923    do
14924      case $ac_f in
14925      -) ac_f="$ac_tmp/stdin";;
14926      *) # Look for the file first in the build tree, then in the source tree
14927	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14928	 # because $ac_f cannot contain `:'.
14929	 test -f "$ac_f" ||
14930	   case $ac_f in
14931	   [\\/$]*) false;;
14932	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14933	   esac ||
14934	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14935      esac
14936      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14937      as_fn_append ac_file_inputs " '$ac_f'"
14938    done
14939
14940    # Let's still pretend it is `configure' which instantiates (i.e., don't
14941    # use $as_me), people would be surprised to read:
14942    #    /* config.h.  Generated by config.status.  */
14943    configure_input='Generated from '`
14944	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14945	`' by configure.'
14946    if test x"$ac_file" != x-; then
14947      configure_input="$ac_file.  $configure_input"
14948      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14949$as_echo "$as_me: creating $ac_file" >&6;}
14950    fi
14951    # Neutralize special characters interpreted by sed in replacement strings.
14952    case $configure_input in #(
14953    *\&* | *\|* | *\\* )
14954       ac_sed_conf_input=`$as_echo "$configure_input" |
14955       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14956    *) ac_sed_conf_input=$configure_input;;
14957    esac
14958
14959    case $ac_tag in
14960    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14961      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14962    esac
14963    ;;
14964  esac
14965
14966  ac_dir=`$as_dirname -- "$ac_file" ||
14967$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14968	 X"$ac_file" : 'X\(//\)[^/]' \| \
14969	 X"$ac_file" : 'X\(//\)$' \| \
14970	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14971$as_echo X"$ac_file" |
14972    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14973	    s//\1/
14974	    q
14975	  }
14976	  /^X\(\/\/\)[^/].*/{
14977	    s//\1/
14978	    q
14979	  }
14980	  /^X\(\/\/\)$/{
14981	    s//\1/
14982	    q
14983	  }
14984	  /^X\(\/\).*/{
14985	    s//\1/
14986	    q
14987	  }
14988	  s/.*/./; q'`
14989  as_dir="$ac_dir"; as_fn_mkdir_p
14990  ac_builddir=.
14991
14992case "$ac_dir" in
14993.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14994*)
14995  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14996  # A ".." for each directory in $ac_dir_suffix.
14997  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14998  case $ac_top_builddir_sub in
14999  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15000  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15001  esac ;;
15002esac
15003ac_abs_top_builddir=$ac_pwd
15004ac_abs_builddir=$ac_pwd$ac_dir_suffix
15005# for backward compatibility:
15006ac_top_builddir=$ac_top_build_prefix
15007
15008case $srcdir in
15009  .)  # We are building in place.
15010    ac_srcdir=.
15011    ac_top_srcdir=$ac_top_builddir_sub
15012    ac_abs_top_srcdir=$ac_pwd ;;
15013  [\\/]* | ?:[\\/]* )  # Absolute name.
15014    ac_srcdir=$srcdir$ac_dir_suffix;
15015    ac_top_srcdir=$srcdir
15016    ac_abs_top_srcdir=$srcdir ;;
15017  *) # Relative name.
15018    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15019    ac_top_srcdir=$ac_top_build_prefix$srcdir
15020    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15021esac
15022ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15023
15024
15025  case $ac_mode in
15026  :F)
15027  #
15028  # CONFIG_FILE
15029  #
15030
15031  case $INSTALL in
15032  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15033  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15034  esac
15035  ac_MKDIR_P=$MKDIR_P
15036  case $MKDIR_P in
15037  [\\/$]* | ?:[\\/]* ) ;;
15038  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15039  esac
15040_ACEOF
15041
15042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043# If the template does not know about datarootdir, expand it.
15044# FIXME: This hack should be removed a few years after 2.60.
15045ac_datarootdir_hack=; ac_datarootdir_seen=
15046ac_sed_dataroot='
15047/datarootdir/ {
15048  p
15049  q
15050}
15051/@datadir@/p
15052/@docdir@/p
15053/@infodir@/p
15054/@localedir@/p
15055/@mandir@/p'
15056case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15057*datarootdir*) ac_datarootdir_seen=yes;;
15058*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15059  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15060$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15061_ACEOF
15062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15063  ac_datarootdir_hack='
15064  s&@datadir@&$datadir&g
15065  s&@docdir@&$docdir&g
15066  s&@infodir@&$infodir&g
15067  s&@localedir@&$localedir&g
15068  s&@mandir@&$mandir&g
15069  s&\\\${datarootdir}&$datarootdir&g' ;;
15070esac
15071_ACEOF
15072
15073# Neutralize VPATH when `$srcdir' = `.'.
15074# Shell code in configure.ac might set extrasub.
15075# FIXME: do we really want to maintain this feature?
15076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15077ac_sed_extra="$ac_vpsub
15078$extrasub
15079_ACEOF
15080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081:t
15082/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15083s|@configure_input@|$ac_sed_conf_input|;t t
15084s&@top_builddir@&$ac_top_builddir_sub&;t t
15085s&@top_build_prefix@&$ac_top_build_prefix&;t t
15086s&@srcdir@&$ac_srcdir&;t t
15087s&@abs_srcdir@&$ac_abs_srcdir&;t t
15088s&@top_srcdir@&$ac_top_srcdir&;t t
15089s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15090s&@builddir@&$ac_builddir&;t t
15091s&@abs_builddir@&$ac_abs_builddir&;t t
15092s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15093s&@INSTALL@&$ac_INSTALL&;t t
15094s&@MKDIR_P@&$ac_MKDIR_P&;t t
15095$ac_datarootdir_hack
15096"
15097eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15098  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15099
15100test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15101  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15102  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15103      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15104  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15105which seems to be undefined.  Please make sure it is defined" >&5
15106$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15107which seems to be undefined.  Please make sure it is defined" >&2;}
15108
15109  rm -f "$ac_tmp/stdin"
15110  case $ac_file in
15111  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15112  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15113  esac \
15114  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15115 ;;
15116  :H)
15117  #
15118  # CONFIG_HEADER
15119  #
15120  if test x"$ac_file" != x-; then
15121    {
15122      $as_echo "/* $configure_input  */" \
15123      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15124    } >"$ac_tmp/config.h" \
15125      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15126    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15127      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15128$as_echo "$as_me: $ac_file is unchanged" >&6;}
15129    else
15130      rm -f "$ac_file"
15131      mv "$ac_tmp/config.h" "$ac_file" \
15132	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15133    fi
15134  else
15135    $as_echo "/* $configure_input  */" \
15136      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15137      || as_fn_error $? "could not create -" "$LINENO" 5
15138  fi
15139# Compute "$ac_file"'s index in $config_headers.
15140_am_arg="$ac_file"
15141_am_stamp_count=1
15142for _am_header in $config_headers :; do
15143  case $_am_header in
15144    $_am_arg | $_am_arg:* )
15145      break ;;
15146    * )
15147      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15148  esac
15149done
15150echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15151$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15152	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15153	 X"$_am_arg" : 'X\(//\)$' \| \
15154	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15155$as_echo X"$_am_arg" |
15156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15157	    s//\1/
15158	    q
15159	  }
15160	  /^X\(\/\/\)[^/].*/{
15161	    s//\1/
15162	    q
15163	  }
15164	  /^X\(\/\/\)$/{
15165	    s//\1/
15166	    q
15167	  }
15168	  /^X\(\/\).*/{
15169	    s//\1/
15170	    q
15171	  }
15172	  s/.*/./; q'`/stamp-h$_am_stamp_count
15173 ;;
15174
15175  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15176$as_echo "$as_me: executing $ac_file commands" >&6;}
15177 ;;
15178  esac
15179
15180
15181  case $ac_file$ac_mode in
15182    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15183  # Older Autoconf quotes --file arguments for eval, but not when files
15184  # are listed without --file.  Let's play safe and only enable the eval
15185  # if we detect the quoting.
15186  case $CONFIG_FILES in
15187  *\'*) eval set x "$CONFIG_FILES" ;;
15188  *)   set x $CONFIG_FILES ;;
15189  esac
15190  shift
15191  for mf
15192  do
15193    # Strip MF so we end up with the name of the file.
15194    mf=`echo "$mf" | sed -e 's/:.*$//'`
15195    # Check whether this is an Automake generated Makefile or not.
15196    # We used to match only the files named 'Makefile.in', but
15197    # some people rename them; so instead we look at the file content.
15198    # Grep'ing the first line is not enough: some people post-process
15199    # each Makefile.in and add a new line on top of each file to say so.
15200    # Grep'ing the whole file is not good either: AIX grep has a line
15201    # limit of 2048, but all sed's we know have understand at least 4000.
15202    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15203      dirpart=`$as_dirname -- "$mf" ||
15204$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15205	 X"$mf" : 'X\(//\)[^/]' \| \
15206	 X"$mf" : 'X\(//\)$' \| \
15207	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15208$as_echo X"$mf" |
15209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15210	    s//\1/
15211	    q
15212	  }
15213	  /^X\(\/\/\)[^/].*/{
15214	    s//\1/
15215	    q
15216	  }
15217	  /^X\(\/\/\)$/{
15218	    s//\1/
15219	    q
15220	  }
15221	  /^X\(\/\).*/{
15222	    s//\1/
15223	    q
15224	  }
15225	  s/.*/./; q'`
15226    else
15227      continue
15228    fi
15229    # Extract the definition of DEPDIR, am__include, and am__quote
15230    # from the Makefile without running 'make'.
15231    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15232    test -z "$DEPDIR" && continue
15233    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15234    test -z "$am__include" && continue
15235    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15236    # Find all dependency output files, they are included files with
15237    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15238    # simplest approach to changing $(DEPDIR) to its actual value in the
15239    # expansion.
15240    for file in `sed -n "
15241      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15242	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15243      # Make sure the directory exists.
15244      test -f "$dirpart/$file" && continue
15245      fdir=`$as_dirname -- "$file" ||
15246$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15247	 X"$file" : 'X\(//\)[^/]' \| \
15248	 X"$file" : 'X\(//\)$' \| \
15249	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15250$as_echo X"$file" |
15251    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15252	    s//\1/
15253	    q
15254	  }
15255	  /^X\(\/\/\)[^/].*/{
15256	    s//\1/
15257	    q
15258	  }
15259	  /^X\(\/\/\)$/{
15260	    s//\1/
15261	    q
15262	  }
15263	  /^X\(\/\).*/{
15264	    s//\1/
15265	    q
15266	  }
15267	  s/.*/./; q'`
15268      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15269      # echo "creating $dirpart/$file"
15270      echo '# dummy' > "$dirpart/$file"
15271    done
15272  done
15273}
15274 ;;
15275    "libtool":C)
15276
15277    # See if we are running on zsh, and set the options that allow our
15278    # commands through without removal of \ escapes.
15279    if test -n "${ZSH_VERSION+set}"; then
15280      setopt NO_GLOB_SUBST
15281    fi
15282
15283    cfgfile=${ofile}T
15284    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15285    $RM "$cfgfile"
15286
15287    cat <<_LT_EOF >> "$cfgfile"
15288#! $SHELL
15289# Generated automatically by $as_me ($PACKAGE) $VERSION
15290# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15291
15292# Provide generalized library-building support services.
15293# Written by Gordon Matzigkeit, 1996
15294
15295# Copyright (C) 2014 Free Software Foundation, Inc.
15296# This is free software; see the source for copying conditions.  There is NO
15297# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15298
15299# GNU Libtool is free software; you can redistribute it and/or modify
15300# it under the terms of the GNU General Public License as published by
15301# the Free Software Foundation; either version 2 of of the License, or
15302# (at your option) any later version.
15303#
15304# As a special exception to the GNU General Public License, if you
15305# distribute this file as part of a program or library that is built
15306# using GNU Libtool, you may include this file under the  same
15307# distribution terms that you use for the rest of that program.
15308#
15309# GNU Libtool is distributed in the hope that it will be useful, but
15310# WITHOUT ANY WARRANTY; without even the implied warranty of
15311# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15312# GNU General Public License for more details.
15313#
15314# You should have received a copy of the GNU General Public License
15315# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15316
15317
15318# The names of the tagged configurations supported by this script.
15319available_tags=''
15320
15321# Configured defaults for sys_lib_dlsearch_path munging.
15322: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15323
15324# ### BEGIN LIBTOOL CONFIG
15325
15326# Which release of libtool.m4 was used?
15327macro_version=$macro_version
15328macro_revision=$macro_revision
15329
15330# Whether or not to build shared libraries.
15331build_libtool_libs=$enable_shared
15332
15333# Whether or not to build static libraries.
15334build_old_libs=$enable_static
15335
15336# What type of objects to build.
15337pic_mode=$pic_mode
15338
15339# Whether or not to optimize for fast installation.
15340fast_install=$enable_fast_install
15341
15342# Shared archive member basename,for filename based shared library versioning on AIX.
15343shared_archive_member_spec=$shared_archive_member_spec
15344
15345# Shell to use when invoking shell scripts.
15346SHELL=$lt_SHELL
15347
15348# An echo program that protects backslashes.
15349ECHO=$lt_ECHO
15350
15351# The PATH separator for the build system.
15352PATH_SEPARATOR=$lt_PATH_SEPARATOR
15353
15354# The host system.
15355host_alias=$host_alias
15356host=$host
15357host_os=$host_os
15358
15359# The build system.
15360build_alias=$build_alias
15361build=$build
15362build_os=$build_os
15363
15364# A sed program that does not truncate output.
15365SED=$lt_SED
15366
15367# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15368Xsed="\$SED -e 1s/^X//"
15369
15370# A grep program that handles long lines.
15371GREP=$lt_GREP
15372
15373# An ERE matcher.
15374EGREP=$lt_EGREP
15375
15376# A literal string matcher.
15377FGREP=$lt_FGREP
15378
15379# A BSD- or MS-compatible name lister.
15380NM=$lt_NM
15381
15382# Whether we need soft or hard links.
15383LN_S=$lt_LN_S
15384
15385# What is the maximum length of a command?
15386max_cmd_len=$max_cmd_len
15387
15388# Object file suffix (normally "o").
15389objext=$ac_objext
15390
15391# Executable file suffix (normally "").
15392exeext=$exeext
15393
15394# whether the shell understands "unset".
15395lt_unset=$lt_unset
15396
15397# turn spaces into newlines.
15398SP2NL=$lt_lt_SP2NL
15399
15400# turn newlines into spaces.
15401NL2SP=$lt_lt_NL2SP
15402
15403# convert \$build file names to \$host format.
15404to_host_file_cmd=$lt_cv_to_host_file_cmd
15405
15406# convert \$build files to toolchain format.
15407to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15408
15409# An object symbol dumper.
15410OBJDUMP=$lt_OBJDUMP
15411
15412# Method to check whether dependent libraries are shared objects.
15413deplibs_check_method=$lt_deplibs_check_method
15414
15415# Command to use when deplibs_check_method = "file_magic".
15416file_magic_cmd=$lt_file_magic_cmd
15417
15418# How to find potential files when deplibs_check_method = "file_magic".
15419file_magic_glob=$lt_file_magic_glob
15420
15421# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15422want_nocaseglob=$lt_want_nocaseglob
15423
15424# DLL creation program.
15425DLLTOOL=$lt_DLLTOOL
15426
15427# Command to associate shared and link libraries.
15428sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15429
15430# The archiver.
15431AR=$lt_AR
15432
15433# Flags to create an archive.
15434AR_FLAGS=$lt_AR_FLAGS
15435
15436# How to feed a file listing to the archiver.
15437archiver_list_spec=$lt_archiver_list_spec
15438
15439# A symbol stripping program.
15440STRIP=$lt_STRIP
15441
15442# Commands used to install an old-style archive.
15443RANLIB=$lt_RANLIB
15444old_postinstall_cmds=$lt_old_postinstall_cmds
15445old_postuninstall_cmds=$lt_old_postuninstall_cmds
15446
15447# Whether to use a lock for old archive extraction.
15448lock_old_archive_extraction=$lock_old_archive_extraction
15449
15450# A C compiler.
15451LTCC=$lt_CC
15452
15453# LTCC compiler flags.
15454LTCFLAGS=$lt_CFLAGS
15455
15456# Take the output of nm and produce a listing of raw symbols and C names.
15457global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15458
15459# Transform the output of nm in a proper C declaration.
15460global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15461
15462# Transform the output of nm into a list of symbols to manually relocate.
15463global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15464
15465# Transform the output of nm in a C name address pair.
15466global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15467
15468# Transform the output of nm in a C name address pair when lib prefix is needed.
15469global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15470
15471# The name lister interface.
15472nm_interface=$lt_lt_cv_nm_interface
15473
15474# Specify filename containing input files for \$NM.
15475nm_file_list_spec=$lt_nm_file_list_spec
15476
15477# The root where to search for dependent libraries,and where our libraries should be installed.
15478lt_sysroot=$lt_sysroot
15479
15480# Command to truncate a binary pipe.
15481lt_truncate_bin=$lt_lt_cv_truncate_bin
15482
15483# The name of the directory that contains temporary libtool files.
15484objdir=$objdir
15485
15486# Used to examine libraries when file_magic_cmd begins with "file".
15487MAGIC_CMD=$MAGIC_CMD
15488
15489# Must we lock files when doing compilation?
15490need_locks=$lt_need_locks
15491
15492# Manifest tool.
15493MANIFEST_TOOL=$lt_MANIFEST_TOOL
15494
15495# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15496DSYMUTIL=$lt_DSYMUTIL
15497
15498# Tool to change global to local symbols on Mac OS X.
15499NMEDIT=$lt_NMEDIT
15500
15501# Tool to manipulate fat objects and archives on Mac OS X.
15502LIPO=$lt_LIPO
15503
15504# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15505OTOOL=$lt_OTOOL
15506
15507# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15508OTOOL64=$lt_OTOOL64
15509
15510# Old archive suffix (normally "a").
15511libext=$libext
15512
15513# Shared library suffix (normally ".so").
15514shrext_cmds=$lt_shrext_cmds
15515
15516# The commands to extract the exported symbol list from a shared archive.
15517extract_expsyms_cmds=$lt_extract_expsyms_cmds
15518
15519# Variables whose values should be saved in libtool wrapper scripts and
15520# restored at link time.
15521variables_saved_for_relink=$lt_variables_saved_for_relink
15522
15523# Do we need the "lib" prefix for modules?
15524need_lib_prefix=$need_lib_prefix
15525
15526# Do we need a version for libraries?
15527need_version=$need_version
15528
15529# Library versioning type.
15530version_type=$version_type
15531
15532# Shared library runtime path variable.
15533runpath_var=$runpath_var
15534
15535# Shared library path variable.
15536shlibpath_var=$shlibpath_var
15537
15538# Is shlibpath searched before the hard-coded library search path?
15539shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15540
15541# Format of library name prefix.
15542libname_spec=$lt_libname_spec
15543
15544# List of archive names.  First name is the real one, the rest are links.
15545# The last name is the one that the linker finds with -lNAME
15546library_names_spec=$lt_library_names_spec
15547
15548# The coded name of the library, if different from the real name.
15549soname_spec=$lt_soname_spec
15550
15551# Permission mode override for installation of shared libraries.
15552install_override_mode=$lt_install_override_mode
15553
15554# Command to use after installation of a shared archive.
15555postinstall_cmds=$lt_postinstall_cmds
15556
15557# Command to use after uninstallation of a shared archive.
15558postuninstall_cmds=$lt_postuninstall_cmds
15559
15560# Commands used to finish a libtool library installation in a directory.
15561finish_cmds=$lt_finish_cmds
15562
15563# As "finish_cmds", except a single script fragment to be evaled but
15564# not shown.
15565finish_eval=$lt_finish_eval
15566
15567# Whether we should hardcode library paths into libraries.
15568hardcode_into_libs=$hardcode_into_libs
15569
15570# Compile-time system search path for libraries.
15571sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15572
15573# Detected run-time system search path for libraries.
15574sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15575
15576# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15577configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15578
15579# Whether dlopen is supported.
15580dlopen_support=$enable_dlopen
15581
15582# Whether dlopen of programs is supported.
15583dlopen_self=$enable_dlopen_self
15584
15585# Whether dlopen of statically linked programs is supported.
15586dlopen_self_static=$enable_dlopen_self_static
15587
15588# Commands to strip libraries.
15589old_striplib=$lt_old_striplib
15590striplib=$lt_striplib
15591
15592
15593# The linker used to build libraries.
15594LD=$lt_LD
15595
15596# How to create reloadable object files.
15597reload_flag=$lt_reload_flag
15598reload_cmds=$lt_reload_cmds
15599
15600# Commands used to build an old-style archive.
15601old_archive_cmds=$lt_old_archive_cmds
15602
15603# A language specific compiler.
15604CC=$lt_compiler
15605
15606# Is the compiler the GNU compiler?
15607with_gcc=$GCC
15608
15609# Compiler flag to turn off builtin functions.
15610no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15611
15612# Additional compiler flags for building library objects.
15613pic_flag=$lt_lt_prog_compiler_pic
15614
15615# How to pass a linker flag through the compiler.
15616wl=$lt_lt_prog_compiler_wl
15617
15618# Compiler flag to prevent dynamic linking.
15619link_static_flag=$lt_lt_prog_compiler_static
15620
15621# Does compiler simultaneously support -c and -o options?
15622compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15623
15624# Whether or not to add -lc for building shared libraries.
15625build_libtool_need_lc=$archive_cmds_need_lc
15626
15627# Whether or not to disallow shared libs when runtime libs are static.
15628allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15629
15630# Compiler flag to allow reflexive dlopens.
15631export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15632
15633# Compiler flag to generate shared objects directly from archives.
15634whole_archive_flag_spec=$lt_whole_archive_flag_spec
15635
15636# Whether the compiler copes with passing no objects directly.
15637compiler_needs_object=$lt_compiler_needs_object
15638
15639# Create an old-style archive from a shared archive.
15640old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15641
15642# Create a temporary old-style archive to link instead of a shared archive.
15643old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15644
15645# Commands used to build a shared archive.
15646archive_cmds=$lt_archive_cmds
15647archive_expsym_cmds=$lt_archive_expsym_cmds
15648
15649# Commands used to build a loadable module if different from building
15650# a shared archive.
15651module_cmds=$lt_module_cmds
15652module_expsym_cmds=$lt_module_expsym_cmds
15653
15654# Whether we are building with GNU ld or not.
15655with_gnu_ld=$lt_with_gnu_ld
15656
15657# Flag that allows shared libraries with undefined symbols to be built.
15658allow_undefined_flag=$lt_allow_undefined_flag
15659
15660# Flag that enforces no undefined symbols.
15661no_undefined_flag=$lt_no_undefined_flag
15662
15663# Flag to hardcode \$libdir into a binary during linking.
15664# This must work even if \$libdir does not exist
15665hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15666
15667# Whether we need a single "-rpath" flag with a separated argument.
15668hardcode_libdir_separator=$lt_hardcode_libdir_separator
15669
15670# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15671# DIR into the resulting binary.
15672hardcode_direct=$hardcode_direct
15673
15674# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15675# DIR into the resulting binary and the resulting library dependency is
15676# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15677# library is relocated.
15678hardcode_direct_absolute=$hardcode_direct_absolute
15679
15680# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15681# into the resulting binary.
15682hardcode_minus_L=$hardcode_minus_L
15683
15684# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15685# into the resulting binary.
15686hardcode_shlibpath_var=$hardcode_shlibpath_var
15687
15688# Set to "yes" if building a shared library automatically hardcodes DIR
15689# into the library and all subsequent libraries and executables linked
15690# against it.
15691hardcode_automatic=$hardcode_automatic
15692
15693# Set to yes if linker adds runtime paths of dependent libraries
15694# to runtime path list.
15695inherit_rpath=$inherit_rpath
15696
15697# Whether libtool must link a program against all its dependency libraries.
15698link_all_deplibs=$link_all_deplibs
15699
15700# Set to "yes" if exported symbols are required.
15701always_export_symbols=$always_export_symbols
15702
15703# The commands to list exported symbols.
15704export_symbols_cmds=$lt_export_symbols_cmds
15705
15706# Symbols that should not be listed in the preloaded symbols.
15707exclude_expsyms=$lt_exclude_expsyms
15708
15709# Symbols that must always be exported.
15710include_expsyms=$lt_include_expsyms
15711
15712# Commands necessary for linking programs (against libraries) with templates.
15713prelink_cmds=$lt_prelink_cmds
15714
15715# Commands necessary for finishing linking programs.
15716postlink_cmds=$lt_postlink_cmds
15717
15718# Specify filename containing input files.
15719file_list_spec=$lt_file_list_spec
15720
15721# How to hardcode a shared library path into an executable.
15722hardcode_action=$hardcode_action
15723
15724# ### END LIBTOOL CONFIG
15725
15726_LT_EOF
15727
15728    cat <<'_LT_EOF' >> "$cfgfile"
15729
15730# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15731
15732# func_munge_path_list VARIABLE PATH
15733# -----------------------------------
15734# VARIABLE is name of variable containing _space_ separated list of
15735# directories to be munged by the contents of PATH, which is string
15736# having a format:
15737# "DIR[:DIR]:"
15738#       string "DIR[ DIR]" will be prepended to VARIABLE
15739# ":DIR[:DIR]"
15740#       string "DIR[ DIR]" will be appended to VARIABLE
15741# "DIRP[:DIRP]::[DIRA:]DIRA"
15742#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15743#       "DIRA[ DIRA]" will be appended to VARIABLE
15744# "DIR[:DIR]"
15745#       VARIABLE will be replaced by "DIR[ DIR]"
15746func_munge_path_list ()
15747{
15748    case x$2 in
15749    x)
15750        ;;
15751    *:)
15752        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15753        ;;
15754    x:*)
15755        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15756        ;;
15757    *::*)
15758        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15759        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15760        ;;
15761    *)
15762        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15763        ;;
15764    esac
15765}
15766
15767
15768# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15769func_cc_basename ()
15770{
15771    for cc_temp in $*""; do
15772      case $cc_temp in
15773        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15774        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15775        \-*) ;;
15776        *) break;;
15777      esac
15778    done
15779    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15780}
15781
15782
15783# ### END FUNCTIONS SHARED WITH CONFIGURE
15784
15785_LT_EOF
15786
15787  case $host_os in
15788  aix3*)
15789    cat <<\_LT_EOF >> "$cfgfile"
15790# AIX sometimes has problems with the GCC collect2 program.  For some
15791# reason, if we set the COLLECT_NAMES environment variable, the problems
15792# vanish in a puff of smoke.
15793if test set != "${COLLECT_NAMES+set}"; then
15794  COLLECT_NAMES=
15795  export COLLECT_NAMES
15796fi
15797_LT_EOF
15798    ;;
15799  esac
15800
15801
15802ltmain=$ac_aux_dir/ltmain.sh
15803
15804
15805  # We use sed instead of cat because bash on DJGPP gets confused if
15806  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15807  # text mode, it properly converts lines to CR/LF.  This bash problem
15808  # is reportedly fixed, but why not run on old versions too?
15809  sed '$q' "$ltmain" >> "$cfgfile" \
15810     || (rm -f "$cfgfile"; exit 1)
15811
15812   mv -f "$cfgfile" "$ofile" ||
15813    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15814  chmod +x "$ofile"
15815
15816 ;;
15817
15818  esac
15819done # for ac_tag
15820
15821
15822as_fn_exit 0
15823_ACEOF
15824ac_clean_files=$ac_clean_files_save
15825
15826test $ac_write_fail = 0 ||
15827  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15828
15829
15830# configure is writing to config.log, and then calls config.status.
15831# config.status does its own redirection, appending to config.log.
15832# Unfortunately, on DOS this fails, as config.log is still kept open
15833# by configure, so config.status won't be able to write to it; its
15834# output is simply discarded.  So we exec the FD to /dev/null,
15835# effectively closing config.log, so it can be properly (re)opened and
15836# appended to by config.status.  When coming back to configure, we
15837# need to make the FD available again.
15838if test "$no_create" != yes; then
15839  ac_cs_success=:
15840  ac_config_status_args=
15841  test "$silent" = yes &&
15842    ac_config_status_args="$ac_config_status_args --quiet"
15843  exec 5>/dev/null
15844  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15845  exec 5>>config.log
15846  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15847  # would make configure fail if this is the last instruction.
15848  $ac_cs_success || as_fn_exit 1
15849fi
15850if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15851  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15852$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15853fi
15854
15855
15856