1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for librfc1035 0.10.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='librfc1035'
592PACKAGE_TARNAME='librfc1035'
593PACKAGE_VERSION='0.10'
594PACKAGE_STRING='librfc1035 0.10'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="rfc1035.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639RFC1035_SOLARIS8
640RFC1035_FREEBSD40
641LIBIDN_LIBS
642LIBIDN_CFLAGS
643PKG_CONFIG_LIBDIR
644PKG_CONFIG_PATH
645PKG_CONFIG
646CPP
647LT_SYS_LIBRARY_PATH
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
653MANIFEST_TOOL
654RANLIB
655ac_ct_AR
656AR
657DLLTOOL
658OBJDUMP
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664EGREP
665GREP
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675LIBTOOL
676LN_S
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
680am__nodep
681AMDEPBACKSLASH
682AMDEP_FALSE
683AMDEP_TRUE
684am__include
685DEPDIR
686OBJEXT
687EXEEXT
688ac_ct_CC
689CPPFLAGS
690LDFLAGS
691CFLAGS
692CC
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL
758am__quote'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762enable_silent_rules
763enable_dependency_tracking
764enable_shared
765enable_static
766with_pic
767enable_fast_install
768with_aix_soname
769with_gnu_ld
770with_sysroot
771enable_libtool_lock
772enable_largefile
773with_int32
774with_int16
775with_ipv6
776'
777      ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785LT_SYS_LIBRARY_PATH
786CPP
787PKG_CONFIG
788PKG_CONFIG_PATH
789PKG_CONFIG_LIBDIR
790LIBIDN_CFLAGS
791LIBIDN_LIBS'
792
793
794# Initialize some variables set by options.
795ac_init_help=
796ac_init_version=false
797ac_unrecognized_opts=
798ac_unrecognized_sep=
799# The variables have the same names as the options, with
800# dashes changed to underlines.
801cache_file=/dev/null
802exec_prefix=NONE
803no_create=
804no_recursion=
805prefix=NONE
806program_prefix=NONE
807program_suffix=NONE
808program_transform_name=s,x,x,
809silent=
810site=
811srcdir=
812verbose=
813x_includes=NONE
814x_libraries=NONE
815
816# Installation directory options.
817# These are left unexpanded so users can "make install exec_prefix=/foo"
818# and all the variables that are supposed to be based on exec_prefix
819# by default will actually change.
820# Use braces instead of parens because sh, perl, etc. also accept them.
821# (The list follows the same order as the GNU Coding Standards.)
822bindir='${exec_prefix}/bin'
823sbindir='${exec_prefix}/sbin'
824libexecdir='${exec_prefix}/libexec'
825datarootdir='${prefix}/share'
826datadir='${datarootdir}'
827sysconfdir='${prefix}/etc'
828sharedstatedir='${prefix}/com'
829localstatedir='${prefix}/var'
830includedir='${prefix}/include'
831oldincludedir='/usr/include'
832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833infodir='${datarootdir}/info'
834htmldir='${docdir}'
835dvidir='${docdir}'
836pdfdir='${docdir}'
837psdir='${docdir}'
838libdir='${exec_prefix}/lib'
839localedir='${datarootdir}/locale'
840mandir='${datarootdir}/man'
841
842ac_prev=
843ac_dashdash=
844for ac_option
845do
846  # If the previous option needs an argument, assign it.
847  if test -n "$ac_prev"; then
848    eval $ac_prev=\$ac_option
849    ac_prev=
850    continue
851  fi
852
853  case $ac_option in
854  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855  *=)   ac_optarg= ;;
856  *)    ac_optarg=yes ;;
857  esac
858
859  # Accept the important Cygnus configure options, so we can diagnose typos.
860
861  case $ac_dashdash$ac_option in
862  --)
863    ac_dashdash=yes ;;
864
865  -bindir | --bindir | --bindi | --bind | --bin | --bi)
866    ac_prev=bindir ;;
867  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868    bindir=$ac_optarg ;;
869
870  -build | --build | --buil | --bui | --bu)
871    ac_prev=build_alias ;;
872  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873    build_alias=$ac_optarg ;;
874
875  -cache-file | --cache-file | --cache-fil | --cache-fi \
876  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877    ac_prev=cache_file ;;
878  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880    cache_file=$ac_optarg ;;
881
882  --config-cache | -C)
883    cache_file=config.cache ;;
884
885  -datadir | --datadir | --datadi | --datad)
886    ac_prev=datadir ;;
887  -datadir=* | --datadir=* | --datadi=* | --datad=*)
888    datadir=$ac_optarg ;;
889
890  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891  | --dataroo | --dataro | --datar)
892    ac_prev=datarootdir ;;
893  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895    datarootdir=$ac_optarg ;;
896
897  -disable-* | --disable-*)
898    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899    # Reject names that are not valid shell variable names.
900    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901      as_fn_error $? "invalid feature name: $ac_useropt"
902    ac_useropt_orig=$ac_useropt
903    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904    case $ac_user_opts in
905      *"
906"enable_$ac_useropt"
907"*) ;;
908      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909	 ac_unrecognized_sep=', ';;
910    esac
911    eval enable_$ac_useropt=no ;;
912
913  -docdir | --docdir | --docdi | --doc | --do)
914    ac_prev=docdir ;;
915  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916    docdir=$ac_optarg ;;
917
918  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919    ac_prev=dvidir ;;
920  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921    dvidir=$ac_optarg ;;
922
923  -enable-* | --enable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error $? "invalid feature name: $ac_useropt"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=\$ac_optarg ;;
938
939  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941  | --exec | --exe | --ex)
942    ac_prev=exec_prefix ;;
943  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945  | --exec=* | --exe=* | --ex=*)
946    exec_prefix=$ac_optarg ;;
947
948  -gas | --gas | --ga | --g)
949    # Obsolete; use --with-gas.
950    with_gas=yes ;;
951
952  -help | --help | --hel | --he | -h)
953    ac_init_help=long ;;
954  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955    ac_init_help=recursive ;;
956  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957    ac_init_help=short ;;
958
959  -host | --host | --hos | --ho)
960    ac_prev=host_alias ;;
961  -host=* | --host=* | --hos=* | --ho=*)
962    host_alias=$ac_optarg ;;
963
964  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965    ac_prev=htmldir ;;
966  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967  | --ht=*)
968    htmldir=$ac_optarg ;;
969
970  -includedir | --includedir | --includedi | --included | --include \
971  | --includ | --inclu | --incl | --inc)
972    ac_prev=includedir ;;
973  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974  | --includ=* | --inclu=* | --incl=* | --inc=*)
975    includedir=$ac_optarg ;;
976
977  -infodir | --infodir | --infodi | --infod | --info | --inf)
978    ac_prev=infodir ;;
979  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980    infodir=$ac_optarg ;;
981
982  -libdir | --libdir | --libdi | --libd)
983    ac_prev=libdir ;;
984  -libdir=* | --libdir=* | --libdi=* | --libd=*)
985    libdir=$ac_optarg ;;
986
987  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988  | --libexe | --libex | --libe)
989    ac_prev=libexecdir ;;
990  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991  | --libexe=* | --libex=* | --libe=*)
992    libexecdir=$ac_optarg ;;
993
994  -localedir | --localedir | --localedi | --localed | --locale)
995    ac_prev=localedir ;;
996  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997    localedir=$ac_optarg ;;
998
999  -localstatedir | --localstatedir | --localstatedi | --localstated \
1000  | --localstate | --localstat | --localsta | --localst | --locals)
1001    ac_prev=localstatedir ;;
1002  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004    localstatedir=$ac_optarg ;;
1005
1006  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007    ac_prev=mandir ;;
1008  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009    mandir=$ac_optarg ;;
1010
1011  -nfp | --nfp | --nf)
1012    # Obsolete; use --without-fp.
1013    with_fp=no ;;
1014
1015  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016  | --no-cr | --no-c | -n)
1017    no_create=yes ;;
1018
1019  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021    no_recursion=yes ;;
1022
1023  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025  | --oldin | --oldi | --old | --ol | --o)
1026    ac_prev=oldincludedir ;;
1027  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030    oldincludedir=$ac_optarg ;;
1031
1032  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033    ac_prev=prefix ;;
1034  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035    prefix=$ac_optarg ;;
1036
1037  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038  | --program-pre | --program-pr | --program-p)
1039    ac_prev=program_prefix ;;
1040  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042    program_prefix=$ac_optarg ;;
1043
1044  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045  | --program-suf | --program-su | --program-s)
1046    ac_prev=program_suffix ;;
1047  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049    program_suffix=$ac_optarg ;;
1050
1051  -program-transform-name | --program-transform-name \
1052  | --program-transform-nam | --program-transform-na \
1053  | --program-transform-n | --program-transform- \
1054  | --program-transform | --program-transfor \
1055  | --program-transfo | --program-transf \
1056  | --program-trans | --program-tran \
1057  | --progr-tra | --program-tr | --program-t)
1058    ac_prev=program_transform_name ;;
1059  -program-transform-name=* | --program-transform-name=* \
1060  | --program-transform-nam=* | --program-transform-na=* \
1061  | --program-transform-n=* | --program-transform-=* \
1062  | --program-transform=* | --program-transfor=* \
1063  | --program-transfo=* | --program-transf=* \
1064  | --program-trans=* | --program-tran=* \
1065  | --progr-tra=* | --program-tr=* | --program-t=*)
1066    program_transform_name=$ac_optarg ;;
1067
1068  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069    ac_prev=pdfdir ;;
1070  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071    pdfdir=$ac_optarg ;;
1072
1073  -psdir | --psdir | --psdi | --psd | --ps)
1074    ac_prev=psdir ;;
1075  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076    psdir=$ac_optarg ;;
1077
1078  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079  | -silent | --silent | --silen | --sile | --sil)
1080    silent=yes ;;
1081
1082  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083    ac_prev=sbindir ;;
1084  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085  | --sbi=* | --sb=*)
1086    sbindir=$ac_optarg ;;
1087
1088  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090  | --sharedst | --shareds | --shared | --share | --shar \
1091  | --sha | --sh)
1092    ac_prev=sharedstatedir ;;
1093  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096  | --sha=* | --sh=*)
1097    sharedstatedir=$ac_optarg ;;
1098
1099  -site | --site | --sit)
1100    ac_prev=site ;;
1101  -site=* | --site=* | --sit=*)
1102    site=$ac_optarg ;;
1103
1104  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105    ac_prev=srcdir ;;
1106  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107    srcdir=$ac_optarg ;;
1108
1109  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110  | --syscon | --sysco | --sysc | --sys | --sy)
1111    ac_prev=sysconfdir ;;
1112  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114    sysconfdir=$ac_optarg ;;
1115
1116  -target | --target | --targe | --targ | --tar | --ta | --t)
1117    ac_prev=target_alias ;;
1118  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119    target_alias=$ac_optarg ;;
1120
1121  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122    verbose=yes ;;
1123
1124  -version | --version | --versio | --versi | --vers | -V)
1125    ac_init_version=: ;;
1126
1127  -with-* | --with-*)
1128    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129    # Reject names that are not valid shell variable names.
1130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131      as_fn_error $? "invalid package name: $ac_useropt"
1132    ac_useropt_orig=$ac_useropt
1133    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134    case $ac_user_opts in
1135      *"
1136"with_$ac_useropt"
1137"*) ;;
1138      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139	 ac_unrecognized_sep=', ';;
1140    esac
1141    eval with_$ac_useropt=\$ac_optarg ;;
1142
1143  -without-* | --without-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error $? "invalid package name: $ac_useropt"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"with_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval with_$ac_useropt=no ;;
1158
1159  --x)
1160    # Obsolete; use --with-x.
1161    with_x=yes ;;
1162
1163  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164  | --x-incl | --x-inc | --x-in | --x-i)
1165    ac_prev=x_includes ;;
1166  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168    x_includes=$ac_optarg ;;
1169
1170  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172    ac_prev=x_libraries ;;
1173  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175    x_libraries=$ac_optarg ;;
1176
1177  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178Try \`$0 --help' for more information"
1179    ;;
1180
1181  *=*)
1182    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183    # Reject names that are not valid shell variable names.
1184    case $ac_envvar in #(
1185      '' | [0-9]* | *[!_$as_cr_alnum]* )
1186      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187    esac
1188    eval $ac_envvar=\$ac_optarg
1189    export $ac_envvar ;;
1190
1191  *)
1192    # FIXME: should be removed in autoconf 3.0.
1193    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197    ;;
1198
1199  esac
1200done
1201
1202if test -n "$ac_prev"; then
1203  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204  as_fn_error $? "missing argument to $ac_option"
1205fi
1206
1207if test -n "$ac_unrecognized_opts"; then
1208  case $enable_option_checking in
1209    no) ;;
1210    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212  esac
1213fi
1214
1215# Check all directory arguments for consistency.
1216for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217		datadir sysconfdir sharedstatedir localstatedir includedir \
1218		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219		libdir localedir mandir
1220do
1221  eval ac_val=\$$ac_var
1222  # Remove trailing slashes.
1223  case $ac_val in
1224    */ )
1225      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226      eval $ac_var=\$ac_val;;
1227  esac
1228  # Be sure to have absolute directory names.
1229  case $ac_val in
1230    [\\/$]* | ?:[\\/]* )  continue;;
1231    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232  esac
1233  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234done
1235
1236# There might be people who depend on the old broken behavior: `$host'
1237# used to hold the argument of --host etc.
1238# FIXME: To remove some day.
1239build=$build_alias
1240host=$host_alias
1241target=$target_alias
1242
1243# FIXME: To remove some day.
1244if test "x$host_alias" != x; then
1245  if test "x$build_alias" = x; then
1246    cross_compiling=maybe
1247  elif test "x$build_alias" != "x$host_alias"; then
1248    cross_compiling=yes
1249  fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261  as_fn_error $? "working directory cannot be determined"
1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263  as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268  ac_srcdir_defaulted=yes
1269  # Try the directory containing this script, then the parent directory.
1270  ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272	 X"$as_myself" : 'X\(//\)[^/]' \| \
1273	 X"$as_myself" : 'X\(//\)$' \| \
1274	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\/\)[^/].*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\).*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  s/.*/./; q'`
1293  srcdir=$ac_confdir
1294  if test ! -r "$srcdir/$ac_unique_file"; then
1295    srcdir=..
1296  fi
1297else
1298  ac_srcdir_defaulted=no
1299fi
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307	pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310  srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_env_${ac_var}_value=\$${ac_var}
1321  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
1324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329  # Omit some internal or obsolete options to make the list less imposing.
1330  # This message is too long to be a string in the A/UX 3.1 sh.
1331  cat <<_ACEOF
1332\`configure' configures librfc1035 0.10 to adapt to many kinds of systems.
1333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342  -h, --help              display this help and exit
1343      --help=short        display options specific to this package
1344      --help=recursive    display the short help of all the included packages
1345  -V, --version           display version information and exit
1346  -q, --quiet, --silent   do not print \`checking ...' messages
1347      --cache-file=FILE   cache test results in FILE [disabled]
1348  -C, --config-cache      alias for \`--cache-file=config.cache'
1349  -n, --no-create         do not create output files
1350      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352Installation directories:
1353  --prefix=PREFIX         install architecture-independent files in PREFIX
1354                          [$ac_default_prefix]
1355  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                          [PREFIX]
1357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
1366  --bindir=DIR            user executables [EPREFIX/bin]
1367  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1368  --libexecdir=DIR        program executables [EPREFIX/libexec]
1369  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1370  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1371  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1372  --libdir=DIR            object code libraries [EPREFIX/lib]
1373  --includedir=DIR        C header files [PREFIX/include]
1374  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1375  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1376  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1377  --infodir=DIR           info documentation [DATAROOTDIR/info]
1378  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1379  --mandir=DIR            man documentation [DATAROOTDIR/man]
1380  --docdir=DIR            documentation root [DATAROOTDIR/doc/librfc1035]
1381  --htmldir=DIR           html documentation [DOCDIR]
1382  --dvidir=DIR            dvi documentation [DOCDIR]
1383  --pdfdir=DIR            pdf documentation [DOCDIR]
1384  --psdir=DIR             ps documentation [DOCDIR]
1385_ACEOF
1386
1387  cat <<\_ACEOF
1388
1389Program names:
1390  --program-prefix=PREFIX            prepend PREFIX to installed program names
1391  --program-suffix=SUFFIX            append SUFFIX to installed program names
1392  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1393
1394System types:
1395  --build=BUILD     configure for building on BUILD [guessed]
1396  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401  case $ac_init_help in
1402     short | recursive ) echo "Configuration of librfc1035 0.10:";;
1403   esac
1404  cat <<\_ACEOF
1405
1406Optional Features:
1407  --disable-option-checking  ignore unrecognized --enable/--with options
1408  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410  --enable-silent-rules   less verbose build output (undo: "make V=1")
1411  --disable-silent-rules  verbose build output (undo: "make V=0")
1412  --enable-dependency-tracking
1413                          do not reject slow dependency extractors
1414  --disable-dependency-tracking
1415                          speeds up one-time build
1416  --enable-shared[=PKGS]  build shared libraries [default=yes]
1417  --enable-static[=PKGS]  build static libraries [default=yes]
1418  --enable-fast-install[=PKGS]
1419                          optimize for fast installation [default=yes]
1420  --disable-libtool-lock  avoid locking (might break parallel builds)
1421  --disable-largefile     omit support for large files
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-aix-soname=aix|svr4|both
1429                          shared library versioning (aka "SONAME") variant to
1430                          provide on AIX, [default=aix].
1431  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1433                          compiler's sysroot if not specified).
1434  --with-int32='type'     use 'type' for an unsigned 32 bit integer type
1435                          ( default is 'unsigned')
1436  --with-int16='type'     use 'type' for an unsigned 16 bit integer type
1437                          ( default is 'unsigned')
1438 --without-ipv6               Disable IPv6 support
1439
1440Some influential environment variables:
1441  CC          C compiler command
1442  CFLAGS      C compiler flags
1443  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1444              nonstandard directory <lib dir>
1445  LIBS        libraries to pass to the linker, e.g. -l<library>
1446  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447              you have headers in a nonstandard directory <include dir>
1448  LT_SYS_LIBRARY_PATH
1449              User-defined run-time library search path.
1450  CPP         C preprocessor
1451  PKG_CONFIG  path to pkg-config utility
1452  PKG_CONFIG_PATH
1453              directories to add to pkg-config's search path
1454  PKG_CONFIG_LIBDIR
1455              path overriding pkg-config's built-in search path
1456  LIBIDN_CFLAGS
1457              C compiler flags for LIBIDN, overriding pkg-config
1458  LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config
1459
1460Use these variables to override the choices made by `configure' or to help
1461it to find libraries and programs with nonstandard names/locations.
1462
1463Report bugs to <courier-users@lists.sourceforge.net>.
1464_ACEOF
1465ac_status=$?
1466fi
1467
1468if test "$ac_init_help" = "recursive"; then
1469  # If there are subdirs, report their specific --help.
1470  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471    test -d "$ac_dir" ||
1472      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473      continue
1474    ac_builddir=.
1475
1476case "$ac_dir" in
1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478*)
1479  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480  # A ".." for each directory in $ac_dir_suffix.
1481  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482  case $ac_top_builddir_sub in
1483  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485  esac ;;
1486esac
1487ac_abs_top_builddir=$ac_pwd
1488ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489# for backward compatibility:
1490ac_top_builddir=$ac_top_build_prefix
1491
1492case $srcdir in
1493  .)  # We are building in place.
1494    ac_srcdir=.
1495    ac_top_srcdir=$ac_top_builddir_sub
1496    ac_abs_top_srcdir=$ac_pwd ;;
1497  [\\/]* | ?:[\\/]* )  # Absolute name.
1498    ac_srcdir=$srcdir$ac_dir_suffix;
1499    ac_top_srcdir=$srcdir
1500    ac_abs_top_srcdir=$srcdir ;;
1501  *) # Relative name.
1502    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503    ac_top_srcdir=$ac_top_build_prefix$srcdir
1504    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505esac
1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508    cd "$ac_dir" || { ac_status=$?; continue; }
1509    # Check for guested configure.
1510    if test -f "$ac_srcdir/configure.gnu"; then
1511      echo &&
1512      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513    elif test -f "$ac_srcdir/configure"; then
1514      echo &&
1515      $SHELL "$ac_srcdir/configure" --help=recursive
1516    else
1517      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518    fi || ac_status=$?
1519    cd "$ac_pwd" || { ac_status=$?; break; }
1520  done
1521fi
1522
1523test -n "$ac_init_help" && exit $ac_status
1524if $ac_init_version; then
1525  cat <<\_ACEOF
1526librfc1035 configure 0.10
1527generated by GNU Autoconf 2.69
1528
1529Copyright (C) 2012 Free Software Foundation, Inc.
1530This configure script is free software; the Free Software Foundation
1531gives unlimited permission to copy, distribute and modify it.
1532_ACEOF
1533  exit
1534fi
1535
1536## ------------------------ ##
1537## Autoconf initialization. ##
1538## ------------------------ ##
1539
1540# ac_fn_c_try_compile LINENO
1541# --------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_compile ()
1544{
1545  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546  rm -f conftest.$ac_objext
1547  if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550  *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554  (eval "$ac_compile") 2>conftest.err
1555  ac_status=$?
1556  if test -s conftest.err; then
1557    grep -v '^ *+' conftest.err >conftest.er1
1558    cat conftest.er1 >&5
1559    mv -f conftest.er1 conftest.err
1560  fi
1561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562  test $ac_status = 0; } && {
1563	 test -z "$ac_c_werror_flag" ||
1564	 test ! -s conftest.err
1565       } && test -s conftest.$ac_objext; then :
1566  ac_retval=0
1567else
1568  $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571	ac_retval=1
1572fi
1573  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574  as_fn_set_status $ac_retval
1575
1576} # ac_fn_c_try_compile
1577
1578# ac_fn_c_try_link LINENO
1579# -----------------------
1580# Try to link conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_link ()
1582{
1583  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584  rm -f conftest.$ac_objext conftest$ac_exeext
1585  if { { ac_try="$ac_link"
1586case "(($ac_try" in
1587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588  *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592  (eval "$ac_link") 2>conftest.err
1593  ac_status=$?
1594  if test -s conftest.err; then
1595    grep -v '^ *+' conftest.err >conftest.er1
1596    cat conftest.er1 >&5
1597    mv -f conftest.er1 conftest.err
1598  fi
1599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600  test $ac_status = 0; } && {
1601	 test -z "$ac_c_werror_flag" ||
1602	 test ! -s conftest.err
1603       } && test -s conftest$ac_exeext && {
1604	 test "$cross_compiling" = yes ||
1605	 test -x conftest$ac_exeext
1606       }; then :
1607  ac_retval=0
1608else
1609  $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612	ac_retval=1
1613fi
1614  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616  # interfere with the next link command; also delete a directory that is
1617  # left behind by Apple's compiler.  We do this before executing the actions.
1618  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620  as_fn_set_status $ac_retval
1621
1622} # ac_fn_c_try_link
1623
1624# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625# -------------------------------------------------------
1626# Tests whether HEADER exists and can be compiled using the include files in
1627# INCLUDES, setting the cache variable VAR accordingly.
1628ac_fn_c_check_header_compile ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632$as_echo_n "checking for $2... " >&6; }
1633if eval \${$3+:} false; then :
1634  $as_echo_n "(cached) " >&6
1635else
1636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h.  */
1638$4
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"; then :
1642  eval "$3=yes"
1643else
1644  eval "$3=no"
1645fi
1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647fi
1648eval ac_res=\$$3
1649	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650$as_echo "$ac_res" >&6; }
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
1653} # ac_fn_c_check_header_compile
1654
1655# ac_fn_c_try_cpp LINENO
1656# ----------------------
1657# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_cpp ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  if { { ac_try="$ac_cpp conftest.$ac_ext"
1662case "(($ac_try" in
1663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664  *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669  ac_status=$?
1670  if test -s conftest.err; then
1671    grep -v '^ *+' conftest.err >conftest.er1
1672    cat conftest.er1 >&5
1673    mv -f conftest.er1 conftest.err
1674  fi
1675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676  test $ac_status = 0; } > conftest.i && {
1677	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1678	 test ! -s conftest.err
1679       }; then :
1680  ac_retval=0
1681else
1682  $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685    ac_retval=1
1686fi
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688  as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_cpp
1691
1692# ac_fn_c_try_run LINENO
1693# ----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695# that executables *can* be run.
1696ac_fn_c_try_run ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_link") 2>&5
1707  ac_status=$?
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710  { { case "(($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_try") 2>&5
1717  ac_status=$?
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; }; }; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: program exited with status $ac_status" >&5
1723       $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726       ac_retval=$ac_status
1727fi
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_run
1733
1734# ac_fn_c_check_func LINENO FUNC VAR
1735# ----------------------------------
1736# Tests whether FUNC exists, setting the cache variable VAR accordingly
1737ac_fn_c_check_func ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
1742if eval \${$3+:} false; then :
1743  $as_echo_n "(cached) " >&6
1744else
1745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h.  */
1747/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1749#define $2 innocuous_$2
1750
1751/* System header to define __stub macros and hopefully few prototypes,
1752    which can conflict with char $2 (); below.
1753    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754    <limits.h> exists even on freestanding compilers.  */
1755
1756#ifdef __STDC__
1757# include <limits.h>
1758#else
1759# include <assert.h>
1760#endif
1761
1762#undef $2
1763
1764/* Override any GCC internal prototype to avoid an error.
1765   Use char because int might match the return type of a GCC
1766   builtin and then its argument prototype would still apply.  */
1767#ifdef __cplusplus
1768extern "C"
1769#endif
1770char $2 ();
1771/* The GNU C library defines this for functions which it implements
1772    to always fail with ENOSYS.  Some functions are actually named
1773    something starting with __ and the normal name is an alias.  */
1774#if defined __stub_$2 || defined __stub___$2
1775choke me
1776#endif
1777
1778int
1779main ()
1780{
1781return $2 ();
1782  ;
1783  return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_link "$LINENO"; then :
1787  eval "$3=yes"
1788else
1789  eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext \
1792    conftest$ac_exeext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_func
1800
1801# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802# -------------------------------------------------------
1803# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804# the include files in INCLUDES and setting the cache variable VAR
1805# accordingly.
1806ac_fn_c_check_header_mongrel ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  if eval \${$3+:} false; then :
1810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
1812if eval \${$3+:} false; then :
1813  $as_echo_n "(cached) " >&6
1814fi
1815eval ac_res=\$$3
1816	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818else
1819  # Is the header compilable?
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821$as_echo_n "checking $2 usability... " >&6; }
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828  ac_header_compiler=yes
1829else
1830  ac_header_compiler=no
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834$as_echo "$ac_header_compiler" >&6; }
1835
1836# Is the header present?
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838$as_echo_n "checking $2 presence... " >&6; }
1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_cpp "$LINENO"; then :
1844  ac_header_preproc=yes
1845else
1846  ac_header_preproc=no
1847fi
1848rm -f conftest.err conftest.i conftest.$ac_ext
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850$as_echo "$ac_header_preproc" >&6; }
1851
1852# So?  What about this header?
1853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854  yes:no: )
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859    ;;
1860  no:yes:* )
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1864$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1868$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871( $as_echo "## -------------------------------------------------- ##
1872## Report this to courier-users@lists.sourceforge.net ##
1873## -------------------------------------------------- ##"
1874     ) | sed "s/^/$as_me: WARNING:     /" >&2
1875    ;;
1876esac
1877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880  $as_echo_n "(cached) " >&6
1881else
1882  eval "$3=\$ac_header_compiler"
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887fi
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_header_mongrel
1891
1892# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1893# --------------------------------------------
1894# Tries to find the compile-time value of EXPR in a program that includes
1895# INCLUDES, setting VAR accordingly. Returns whether the value could be
1896# computed
1897ac_fn_c_compute_int ()
1898{
1899  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900  if test "$cross_compiling" = yes; then
1901    # Depending upon the size, compute the lo and hi bounds.
1902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904$4
1905int
1906main ()
1907{
1908static int test_array [1 - 2 * !(($2) >= 0)];
1909test_array [0] = 0;
1910return test_array [0];
1911
1912  ;
1913  return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917  ac_lo=0 ac_mid=0
1918  while :; do
1919    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h.  */
1921$4
1922int
1923main ()
1924{
1925static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1926test_array [0] = 0;
1927return test_array [0];
1928
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934  ac_hi=$ac_mid; break
1935else
1936  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1937			if test $ac_lo -le $ac_mid; then
1938			  ac_lo= ac_hi=
1939			  break
1940			fi
1941			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944  done
1945else
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949int
1950main ()
1951{
1952static int test_array [1 - 2 * !(($2) < 0)];
1953test_array [0] = 0;
1954return test_array [0];
1955
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961  ac_hi=-1 ac_mid=-1
1962  while :; do
1963    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h.  */
1965$4
1966int
1967main ()
1968{
1969static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1970test_array [0] = 0;
1971return test_array [0];
1972
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978  ac_lo=$ac_mid; break
1979else
1980  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981			if test $ac_mid -le $ac_hi; then
1982			  ac_lo= ac_hi=
1983			  break
1984			fi
1985			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988  done
1989else
1990  ac_lo= ac_hi=
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995# Binary search between lo and hi bounds.
1996while test "x$ac_lo" != "x$ac_hi"; do
1997  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000$4
2001int
2002main ()
2003{
2004static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005test_array [0] = 0;
2006return test_array [0];
2007
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013  ac_hi=$ac_mid
2014else
2015  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018done
2019case $ac_lo in #((
2020?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2021'') ac_retval=1 ;;
2022esac
2023  else
2024    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h.  */
2026$4
2027static long int longval () { return $2; }
2028static unsigned long int ulongval () { return $2; }
2029#include <stdio.h>
2030#include <stdlib.h>
2031int
2032main ()
2033{
2034
2035  FILE *f = fopen ("conftest.val", "w");
2036  if (! f)
2037    return 1;
2038  if (($2) < 0)
2039    {
2040      long int i = longval ();
2041      if (i != ($2))
2042	return 1;
2043      fprintf (f, "%ld", i);
2044    }
2045  else
2046    {
2047      unsigned long int i = ulongval ();
2048      if (i != ($2))
2049	return 1;
2050      fprintf (f, "%lu", i);
2051    }
2052  /* Do not output a trailing newline, as this causes \r\n confusion
2053     on some platforms.  */
2054  return ferror (f) || fclose (f) != 0;
2055
2056  ;
2057  return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_run "$LINENO"; then :
2061  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2062else
2063  ac_retval=1
2064fi
2065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2066  conftest.$ac_objext conftest.beam conftest.$ac_ext
2067rm -f conftest.val
2068
2069  fi
2070  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071  as_fn_set_status $ac_retval
2072
2073} # ac_fn_c_compute_int
2074cat >config.log <<_ACEOF
2075This file contains any messages produced by compilers while
2076running configure, to aid debugging if configure makes a mistake.
2077
2078It was created by librfc1035 $as_me 0.10, which was
2079generated by GNU Autoconf 2.69.  Invocation command line was
2080
2081  $ $0 $@
2082
2083_ACEOF
2084exec 5>>config.log
2085{
2086cat <<_ASUNAME
2087## --------- ##
2088## Platform. ##
2089## --------- ##
2090
2091hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095uname -v = `(uname -v) 2>/dev/null || echo unknown`
2096
2097/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2099
2100/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2101/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2102/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2104/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2105/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2106/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2107
2108_ASUNAME
2109
2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111for as_dir in $PATH
2112do
2113  IFS=$as_save_IFS
2114  test -z "$as_dir" && as_dir=.
2115    $as_echo "PATH: $as_dir"
2116  done
2117IFS=$as_save_IFS
2118
2119} >&5
2120
2121cat >&5 <<_ACEOF
2122
2123
2124## ----------- ##
2125## Core tests. ##
2126## ----------- ##
2127
2128_ACEOF
2129
2130
2131# Keep a trace of the command line.
2132# Strip out --no-create and --no-recursion so they do not pile up.
2133# Strip out --silent because we don't want to record it for future runs.
2134# Also quote any args containing shell meta-characters.
2135# Make two passes to allow for proper duplicate-argument suppression.
2136ac_configure_args=
2137ac_configure_args0=
2138ac_configure_args1=
2139ac_must_keep_next=false
2140for ac_pass in 1 2
2141do
2142  for ac_arg
2143  do
2144    case $ac_arg in
2145    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2146    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2147    | -silent | --silent | --silen | --sile | --sil)
2148      continue ;;
2149    *\'*)
2150      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2151    esac
2152    case $ac_pass in
2153    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2154    2)
2155      as_fn_append ac_configure_args1 " '$ac_arg'"
2156      if test $ac_must_keep_next = true; then
2157	ac_must_keep_next=false # Got value, back to normal.
2158      else
2159	case $ac_arg in
2160	  *=* | --config-cache | -C | -disable-* | --disable-* \
2161	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2162	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2163	  | -with-* | --with-* | -without-* | --without-* | --x)
2164	    case "$ac_configure_args0 " in
2165	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2166	    esac
2167	    ;;
2168	  -* ) ac_must_keep_next=true ;;
2169	esac
2170      fi
2171      as_fn_append ac_configure_args " '$ac_arg'"
2172      ;;
2173    esac
2174  done
2175done
2176{ ac_configure_args0=; unset ac_configure_args0;}
2177{ ac_configure_args1=; unset ac_configure_args1;}
2178
2179# When interrupted or exit'd, cleanup temporary files, and complete
2180# config.log.  We remove comments because anyway the quotes in there
2181# would cause problems or look ugly.
2182# WARNING: Use '\'' to represent an apostrophe within the trap.
2183# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2184trap 'exit_status=$?
2185  # Save into config.log some information that might help in debugging.
2186  {
2187    echo
2188
2189    $as_echo "## ---------------- ##
2190## Cache variables. ##
2191## ---------------- ##"
2192    echo
2193    # The following way of writing the cache mishandles newlines in values,
2194(
2195  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2196    eval ac_val=\$$ac_var
2197    case $ac_val in #(
2198    *${as_nl}*)
2199      case $ac_var in #(
2200      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2201$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2202      esac
2203      case $ac_var in #(
2204      _ | IFS | as_nl) ;; #(
2205      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2206      *) { eval $ac_var=; unset $ac_var;} ;;
2207      esac ;;
2208    esac
2209  done
2210  (set) 2>&1 |
2211    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2212    *${as_nl}ac_space=\ *)
2213      sed -n \
2214	"s/'\''/'\''\\\\'\'''\''/g;
2215	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2216      ;; #(
2217    *)
2218      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2219      ;;
2220    esac |
2221    sort
2222)
2223    echo
2224
2225    $as_echo "## ----------------- ##
2226## Output variables. ##
2227## ----------------- ##"
2228    echo
2229    for ac_var in $ac_subst_vars
2230    do
2231      eval ac_val=\$$ac_var
2232      case $ac_val in
2233      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234      esac
2235      $as_echo "$ac_var='\''$ac_val'\''"
2236    done | sort
2237    echo
2238
2239    if test -n "$ac_subst_files"; then
2240      $as_echo "## ------------------- ##
2241## File substitutions. ##
2242## ------------------- ##"
2243      echo
2244      for ac_var in $ac_subst_files
2245      do
2246	eval ac_val=\$$ac_var
2247	case $ac_val in
2248	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249	esac
2250	$as_echo "$ac_var='\''$ac_val'\''"
2251      done | sort
2252      echo
2253    fi
2254
2255    if test -s confdefs.h; then
2256      $as_echo "## ----------- ##
2257## confdefs.h. ##
2258## ----------- ##"
2259      echo
2260      cat confdefs.h
2261      echo
2262    fi
2263    test "$ac_signal" != 0 &&
2264      $as_echo "$as_me: caught signal $ac_signal"
2265    $as_echo "$as_me: exit $exit_status"
2266  } >&5
2267  rm -f core *.core core.conftest.* &&
2268    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2269    exit $exit_status
2270' 0
2271for ac_signal in 1 2 13 15; do
2272  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2273done
2274ac_signal=0
2275
2276# confdefs.h avoids OS command line length limits that DEFS can exceed.
2277rm -f -r conftest* confdefs.h
2278
2279$as_echo "/* confdefs.h */" > confdefs.h
2280
2281# Predefined preprocessor variables.
2282
2283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_NAME "$PACKAGE_NAME"
2285_ACEOF
2286
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2289_ACEOF
2290
2291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_VERSION "$PACKAGE_VERSION"
2293_ACEOF
2294
2295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_STRING "$PACKAGE_STRING"
2297_ACEOF
2298
2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2301_ACEOF
2302
2303cat >>confdefs.h <<_ACEOF
2304#define PACKAGE_URL "$PACKAGE_URL"
2305_ACEOF
2306
2307
2308# Let the site file select an alternate cache file if it wants to.
2309# Prefer an explicitly selected file to automatically selected ones.
2310ac_site_file1=NONE
2311ac_site_file2=NONE
2312if test -n "$CONFIG_SITE"; then
2313  # We do not want a PATH search for config.site.
2314  case $CONFIG_SITE in #((
2315    -*)  ac_site_file1=./$CONFIG_SITE;;
2316    */*) ac_site_file1=$CONFIG_SITE;;
2317    *)   ac_site_file1=./$CONFIG_SITE;;
2318  esac
2319elif test "x$prefix" != xNONE; then
2320  ac_site_file1=$prefix/share/config.site
2321  ac_site_file2=$prefix/etc/config.site
2322else
2323  ac_site_file1=$ac_default_prefix/share/config.site
2324  ac_site_file2=$ac_default_prefix/etc/config.site
2325fi
2326for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2327do
2328  test "x$ac_site_file" = xNONE && continue
2329  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2330    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2331$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2332    sed 's/^/| /' "$ac_site_file" >&5
2333    . "$ac_site_file" \
2334      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336as_fn_error $? "failed to load site script $ac_site_file
2337See \`config.log' for more details" "$LINENO" 5; }
2338  fi
2339done
2340
2341if test -r "$cache_file"; then
2342  # Some versions of bash will fail to source /dev/null (special files
2343  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2344  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2345    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346$as_echo "$as_me: loading cache $cache_file" >&6;}
2347    case $cache_file in
2348      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349      *)                      . "./$cache_file";;
2350    esac
2351  fi
2352else
2353  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354$as_echo "$as_me: creating cache $cache_file" >&6;}
2355  >$cache_file
2356fi
2357
2358# Check that the precious variables saved in the cache have kept the same
2359# value.
2360ac_cache_corrupted=false
2361for ac_var in $ac_precious_vars; do
2362  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2363  eval ac_new_set=\$ac_env_${ac_var}_set
2364  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2365  eval ac_new_val=\$ac_env_${ac_var}_value
2366  case $ac_old_set,$ac_new_set in
2367    set,)
2368      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2369$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2370      ac_cache_corrupted=: ;;
2371    ,set)
2372      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2373$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2374      ac_cache_corrupted=: ;;
2375    ,);;
2376    *)
2377      if test "x$ac_old_val" != "x$ac_new_val"; then
2378	# differences in whitespace do not lead to failure.
2379	ac_old_val_w=`echo x $ac_old_val`
2380	ac_new_val_w=`echo x $ac_new_val`
2381	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2382	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2383$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2384	  ac_cache_corrupted=:
2385	else
2386	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2387$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2388	  eval $ac_var=\$ac_old_val
2389	fi
2390	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2391$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2392	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2393$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2394      fi;;
2395  esac
2396  # Pass precious variables to config.status.
2397  if test "$ac_new_set" = set; then
2398    case $ac_new_val in
2399    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2400    *) ac_arg=$ac_var=$ac_new_val ;;
2401    esac
2402    case " $ac_configure_args " in
2403      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2404      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2405    esac
2406  fi
2407done
2408if $ac_cache_corrupted; then
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2412$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2413  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2414fi
2415## -------------------- ##
2416## Main body of script. ##
2417## -------------------- ##
2418
2419ac_ext=c
2420ac_cpp='$CPP $CPPFLAGS'
2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424
2425
2426
2427>confdefs.h  # Kill PACKAGE_ macros
2428
2429
2430ac_aux_dir=
2431for ac_dir in ../.. "$srcdir"/../..; do
2432  if test -f "$ac_dir/install-sh"; then
2433    ac_aux_dir=$ac_dir
2434    ac_install_sh="$ac_aux_dir/install-sh -c"
2435    break
2436  elif test -f "$ac_dir/install.sh"; then
2437    ac_aux_dir=$ac_dir
2438    ac_install_sh="$ac_aux_dir/install.sh -c"
2439    break
2440  elif test -f "$ac_dir/shtool"; then
2441    ac_aux_dir=$ac_dir
2442    ac_install_sh="$ac_aux_dir/shtool install -c"
2443    break
2444  fi
2445done
2446if test -z "$ac_aux_dir"; then
2447  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2448fi
2449
2450# These three variables are undocumented and unsupported,
2451# and are intended to be withdrawn in a future Autoconf release.
2452# They can cause serious problems if a builder's source tree is in a directory
2453# whose full name contains unusual characters.
2454ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2455ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2456ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2457
2458
2459am__api_version='1.16'
2460
2461# Find a good install program.  We prefer a C program (faster),
2462# so one script is as good as another.  But avoid the broken or
2463# incompatible versions:
2464# SysV /etc/install, /usr/sbin/install
2465# SunOS /usr/etc/install
2466# IRIX /sbin/install
2467# AIX /bin/install
2468# AmigaOS /C/install, which installs bootblocks on floppy discs
2469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472# OS/2's system install, which has a completely different semantic
2473# ./install, which can be erroneously created by make from ./install.sh.
2474# Reject install programs that cannot install multiple files.
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2476$as_echo_n "checking for a BSD-compatible install... " >&6; }
2477if test -z "$INSTALL"; then
2478if ${ac_cv_path_install+:} false; then :
2479  $as_echo_n "(cached) " >&6
2480else
2481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484  IFS=$as_save_IFS
2485  test -z "$as_dir" && as_dir=.
2486    # Account for people who put trailing slashes in PATH elements.
2487case $as_dir/ in #((
2488  ./ | .// | /[cC]/* | \
2489  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2490  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2491  /usr/ucb/* ) ;;
2492  *)
2493    # OSF1 and SCO ODT 3.0 have their own names for install.
2494    # Don't use installbsd from OSF since it installs stuff as root
2495    # by default.
2496    for ac_prog in ginstall scoinst install; do
2497      for ac_exec_ext in '' $ac_executable_extensions; do
2498	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2499	  if test $ac_prog = install &&
2500	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501	    # AIX install.  It has an incompatible calling convention.
2502	    :
2503	  elif test $ac_prog = install &&
2504	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505	    # program-specific install script used by HP pwplus--don't use.
2506	    :
2507	  else
2508	    rm -rf conftest.one conftest.two conftest.dir
2509	    echo one > conftest.one
2510	    echo two > conftest.two
2511	    mkdir conftest.dir
2512	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2513	      test -s conftest.one && test -s conftest.two &&
2514	      test -s conftest.dir/conftest.one &&
2515	      test -s conftest.dir/conftest.two
2516	    then
2517	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2518	      break 3
2519	    fi
2520	  fi
2521	fi
2522      done
2523    done
2524    ;;
2525esac
2526
2527  done
2528IFS=$as_save_IFS
2529
2530rm -rf conftest.one conftest.two conftest.dir
2531
2532fi
2533  if test "${ac_cv_path_install+set}" = set; then
2534    INSTALL=$ac_cv_path_install
2535  else
2536    # As a last resort, use the slow shell script.  Don't cache a
2537    # value for INSTALL within a source directory, because that will
2538    # break other packages using the cache if that directory is
2539    # removed, or if the value is a relative name.
2540    INSTALL=$ac_install_sh
2541  fi
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2544$as_echo "$INSTALL" >&6; }
2545
2546# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2547# It thinks the first close brace ends the variable substitution.
2548test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2549
2550test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2551
2552test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2553
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2555$as_echo_n "checking whether build environment is sane... " >&6; }
2556# Reject unsafe characters in $srcdir or the absolute working directory
2557# name.  Accept space and tab only in the latter.
2558am_lf='
2559'
2560case `pwd` in
2561  *[\\\"\#\$\&\'\`$am_lf]*)
2562    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2563esac
2564case $srcdir in
2565  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2566    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2567esac
2568
2569# Do 'set' in a subshell so we don't clobber the current shell's
2570# arguments.  Must try -L first in case configure is actually a
2571# symlink; some systems play weird games with the mod time of symlinks
2572# (eg FreeBSD returns the mod time of the symlink's containing
2573# directory).
2574if (
2575   am_has_slept=no
2576   for am_try in 1 2; do
2577     echo "timestamp, slept: $am_has_slept" > conftest.file
2578     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2579     if test "$*" = "X"; then
2580	# -L didn't work.
2581	set X `ls -t "$srcdir/configure" conftest.file`
2582     fi
2583     if test "$*" != "X $srcdir/configure conftest.file" \
2584	&& test "$*" != "X conftest.file $srcdir/configure"; then
2585
2586	# If neither matched, then we have a broken ls.  This can happen
2587	# if, for instance, CONFIG_SHELL is bash and it inherits a
2588	# broken ls alias from the environment.  This has actually
2589	# happened.  Such a system could not be considered "sane".
2590	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2591  alias in your environment" "$LINENO" 5
2592     fi
2593     if test "$2" = conftest.file || test $am_try -eq 2; then
2594       break
2595     fi
2596     # Just in case.
2597     sleep 1
2598     am_has_slept=yes
2599   done
2600   test "$2" = conftest.file
2601   )
2602then
2603   # Ok.
2604   :
2605else
2606   as_fn_error $? "newly created file is older than distributed files!
2607Check your system clock" "$LINENO" 5
2608fi
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2610$as_echo "yes" >&6; }
2611# If we didn't sleep, we still need to ensure time stamps of config.status and
2612# generated files are strictly newer.
2613am_sleep_pid=
2614if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2615  ( sleep 1 ) &
2616  am_sleep_pid=$!
2617fi
2618
2619rm -f conftest.file
2620
2621test "$program_prefix" != NONE &&
2622  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2623# Use a double $ so make ignores it.
2624test "$program_suffix" != NONE &&
2625  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2626# Double any \ or $.
2627# By default was `s,x,x', remove it if useless.
2628ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2629program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2630
2631# Expand $ac_aux_dir to an absolute path.
2632am_aux_dir=`cd "$ac_aux_dir" && pwd`
2633
2634if test x"${MISSING+set}" != xset; then
2635  case $am_aux_dir in
2636  *\ * | *\	*)
2637    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2638  *)
2639    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2640  esac
2641fi
2642# Use eval to expand $SHELL
2643if eval "$MISSING --is-lightweight"; then
2644  am_missing_run="$MISSING "
2645else
2646  am_missing_run=
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2648$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2649fi
2650
2651if test x"${install_sh+set}" != xset; then
2652  case $am_aux_dir in
2653  *\ * | *\	*)
2654    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2655  *)
2656    install_sh="\${SHELL} $am_aux_dir/install-sh"
2657  esac
2658fi
2659
2660# Installed binaries are usually stripped using 'strip' when the user
2661# run "make install-strip".  However 'strip' might not be the right
2662# tool to use in cross-compilation environments, therefore Automake
2663# will honor the 'STRIP' environment variable to overrule this program.
2664if test "$cross_compiling" != no; then
2665  if test -n "$ac_tool_prefix"; then
2666  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2667set dummy ${ac_tool_prefix}strip; ac_word=$2
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669$as_echo_n "checking for $ac_word... " >&6; }
2670if ${ac_cv_prog_STRIP+:} false; then :
2671  $as_echo_n "(cached) " >&6
2672else
2673  if test -n "$STRIP"; then
2674  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679  IFS=$as_save_IFS
2680  test -z "$as_dir" && as_dir=.
2681    for ac_exec_ext in '' $ac_executable_extensions; do
2682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685    break 2
2686  fi
2687done
2688  done
2689IFS=$as_save_IFS
2690
2691fi
2692fi
2693STRIP=$ac_cv_prog_STRIP
2694if test -n "$STRIP"; then
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2696$as_echo "$STRIP" >&6; }
2697else
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699$as_echo "no" >&6; }
2700fi
2701
2702
2703fi
2704if test -z "$ac_cv_prog_STRIP"; then
2705  ac_ct_STRIP=$STRIP
2706  # Extract the first word of "strip", so it can be a program name with args.
2707set dummy strip; ac_word=$2
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709$as_echo_n "checking for $ac_word... " >&6; }
2710if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2711  $as_echo_n "(cached) " >&6
2712else
2713  if test -n "$ac_ct_STRIP"; then
2714  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2715else
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719  IFS=$as_save_IFS
2720  test -z "$as_dir" && as_dir=.
2721    for ac_exec_ext in '' $ac_executable_extensions; do
2722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723    ac_cv_prog_ac_ct_STRIP="strip"
2724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725    break 2
2726  fi
2727done
2728  done
2729IFS=$as_save_IFS
2730
2731fi
2732fi
2733ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2734if test -n "$ac_ct_STRIP"; then
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2736$as_echo "$ac_ct_STRIP" >&6; }
2737else
2738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
2740fi
2741
2742  if test "x$ac_ct_STRIP" = x; then
2743    STRIP=":"
2744  else
2745    case $cross_compiling:$ac_tool_warned in
2746yes:)
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2749ac_tool_warned=yes ;;
2750esac
2751    STRIP=$ac_ct_STRIP
2752  fi
2753else
2754  STRIP="$ac_cv_prog_STRIP"
2755fi
2756
2757fi
2758INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2759
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2761$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2762if test -z "$MKDIR_P"; then
2763  if ${ac_cv_path_mkdir+:} false; then :
2764  $as_echo_n "(cached) " >&6
2765else
2766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2768do
2769  IFS=$as_save_IFS
2770  test -z "$as_dir" && as_dir=.
2771    for ac_prog in mkdir gmkdir; do
2772	 for ac_exec_ext in '' $ac_executable_extensions; do
2773	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2774	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2775	     'mkdir (GNU coreutils) '* | \
2776	     'mkdir (coreutils) '* | \
2777	     'mkdir (fileutils) '4.1*)
2778	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2779	       break 3;;
2780	   esac
2781	 done
2782       done
2783  done
2784IFS=$as_save_IFS
2785
2786fi
2787
2788  test -d ./--version && rmdir ./--version
2789  if test "${ac_cv_path_mkdir+set}" = set; then
2790    MKDIR_P="$ac_cv_path_mkdir -p"
2791  else
2792    # As a last resort, use the slow shell script.  Don't cache a
2793    # value for MKDIR_P within a source directory, because that will
2794    # break other packages using the cache if that directory is
2795    # removed, or if the value is a relative name.
2796    MKDIR_P="$ac_install_sh -d"
2797  fi
2798fi
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2800$as_echo "$MKDIR_P" >&6; }
2801
2802for ac_prog in gawk mawk nawk awk
2803do
2804  # Extract the first word of "$ac_prog", so it can be a program name with args.
2805set dummy $ac_prog; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_prog_AWK+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  if test -n "$AWK"; then
2812  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819    for ac_exec_ext in '' $ac_executable_extensions; do
2820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821    ac_cv_prog_AWK="$ac_prog"
2822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826  done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831AWK=$ac_cv_prog_AWK
2832if test -n "$AWK"; then
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2834$as_echo "$AWK" >&6; }
2835else
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840
2841  test -n "$AWK" && break
2842done
2843
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2845$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2846set x ${MAKE-make}
2847ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2848if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  cat >conftest.make <<\_ACEOF
2852SHELL = /bin/sh
2853all:
2854	@echo '@@@%%%=$(MAKE)=@@@%%%'
2855_ACEOF
2856# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2857case `${MAKE-make} -f conftest.make 2>/dev/null` in
2858  *@@@%%%=?*=@@@%%%*)
2859    eval ac_cv_prog_make_${ac_make}_set=yes;;
2860  *)
2861    eval ac_cv_prog_make_${ac_make}_set=no;;
2862esac
2863rm -f conftest.make
2864fi
2865if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2867$as_echo "yes" >&6; }
2868  SET_MAKE=
2869else
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
2872  SET_MAKE="MAKE=${MAKE-make}"
2873fi
2874
2875rm -rf .tst 2>/dev/null
2876mkdir .tst 2>/dev/null
2877if test -d .tst; then
2878  am__leading_dot=.
2879else
2880  am__leading_dot=_
2881fi
2882rmdir .tst 2>/dev/null
2883
2884# Check whether --enable-silent-rules was given.
2885if test "${enable_silent_rules+set}" = set; then :
2886  enableval=$enable_silent_rules;
2887fi
2888
2889case $enable_silent_rules in # (((
2890  yes) AM_DEFAULT_VERBOSITY=0;;
2891   no) AM_DEFAULT_VERBOSITY=1;;
2892    *) AM_DEFAULT_VERBOSITY=1;;
2893esac
2894am_make=${MAKE-make}
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2896$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2897if ${am_cv_make_support_nested_variables+:} false; then :
2898  $as_echo_n "(cached) " >&6
2899else
2900  if $as_echo 'TRUE=$(BAR$(V))
2901BAR0=false
2902BAR1=true
2903V=1
2904am__doit:
2905	@$(TRUE)
2906.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2907  am_cv_make_support_nested_variables=yes
2908else
2909  am_cv_make_support_nested_variables=no
2910fi
2911fi
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2913$as_echo "$am_cv_make_support_nested_variables" >&6; }
2914if test $am_cv_make_support_nested_variables = yes; then
2915    AM_V='$(V)'
2916  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2917else
2918  AM_V=$AM_DEFAULT_VERBOSITY
2919  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2920fi
2921AM_BACKSLASH='\'
2922
2923if test "`cd $srcdir && pwd`" != "`pwd`"; then
2924  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2925  # is not polluted with repeated "-I."
2926  am__isrc=' -I$(srcdir)'
2927  # test to see if srcdir already configured
2928  if test -f $srcdir/config.status; then
2929    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2930  fi
2931fi
2932
2933# test whether we have cygpath
2934if test -z "$CYGPATH_W"; then
2935  if (cygpath --version) >/dev/null 2>/dev/null; then
2936    CYGPATH_W='cygpath -w'
2937  else
2938    CYGPATH_W=echo
2939  fi
2940fi
2941
2942
2943# Define the identity of the package.
2944 PACKAGE='librfc1035'
2945 VERSION='0.10'
2946
2947
2948# Some tools Automake needs.
2949
2950ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2951
2952
2953AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2954
2955
2956AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2957
2958
2959AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2960
2961
2962MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2963
2964# For better backward compatibility.  To be removed once Automake 1.9.x
2965# dies out for good.  For more background, see:
2966# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2967# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2968mkdir_p='$(MKDIR_P)'
2969
2970# We need awk for the "check" target (and possibly the TAP driver).  The
2971# system "awk" is bad on some platforms.
2972# Always define AMTAR for backward compatibility.  Yes, it's still used
2973# in the wild :-(  We should find a proper way to deprecate it ...
2974AMTAR='$${TAR-tar}'
2975
2976
2977# We'll loop over all known methods to create a tar archive until one works.
2978_am_tools='gnutar  pax cpio none'
2979
2980am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2981
2982
2983
2984
2985
2986
2987# POSIX will say in a future version that running "rm -f" with no argument
2988# is OK; and we want to be able to make that assumption in our Makefile
2989# recipes.  So use an aggressive probe to check that the usage we want is
2990# actually supported "in the wild" to an acceptable degree.
2991# See automake bug#10828.
2992# To make any issue more visible, cause the running configure to be aborted
2993# by default if the 'rm' program in use doesn't match our expectations; the
2994# user can still override this though.
2995if rm -f && rm -fr && rm -rf; then : OK; else
2996  cat >&2 <<'END'
2997Oops!
2998
2999Your 'rm' program seems unable to run without file operands specified
3000on the command line, even when the '-f' option is present.  This is contrary
3001to the behaviour of most rm programs out there, and not conforming with
3002the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3003
3004Please tell bug-automake@gnu.org about your system, including the value
3005of your $PATH and any error possibly output before this message.  This
3006can help us improve future automake versions.
3007
3008END
3009  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3010    echo 'Configuration will proceed anyway, since you have set the' >&2
3011    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3012    echo >&2
3013  else
3014    cat >&2 <<'END'
3015Aborting the configuration process, to ensure you take notice of the issue.
3016
3017You can download and install GNU coreutils to get an 'rm' implementation
3018that behaves properly: <https://www.gnu.org/software/coreutils/>.
3019
3020If you want to complete the configuration process using your problematic
3021'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3022to "yes", and re-run configure.
3023
3024END
3025    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3026  fi
3027fi
3028
3029
3030ac_config_headers="$ac_config_headers config.h"
3031
3032
3033for ac_prog in gawk mawk nawk awk
3034do
3035  # Extract the first word of "$ac_prog", so it can be a program name with args.
3036set dummy $ac_prog; ac_word=$2
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038$as_echo_n "checking for $ac_word... " >&6; }
3039if ${ac_cv_prog_AWK+:} false; then :
3040  $as_echo_n "(cached) " >&6
3041else
3042  if test -n "$AWK"; then
3043  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3044else
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048  IFS=$as_save_IFS
3049  test -z "$as_dir" && as_dir=.
3050    for ac_exec_ext in '' $ac_executable_extensions; do
3051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052    ac_cv_prog_AWK="$ac_prog"
3053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054    break 2
3055  fi
3056done
3057  done
3058IFS=$as_save_IFS
3059
3060fi
3061fi
3062AWK=$ac_cv_prog_AWK
3063if test -n "$AWK"; then
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3065$as_echo "$AWK" >&6; }
3066else
3067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068$as_echo "no" >&6; }
3069fi
3070
3071
3072  test -n "$AWK" && break
3073done
3074
3075ac_ext=c
3076ac_cpp='$CPP $CPPFLAGS'
3077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080if test -n "$ac_tool_prefix"; then
3081  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if ${ac_cv_prog_CC+:} false; then :
3086  $as_echo_n "(cached) " >&6
3087else
3088  if test -n "$CC"; then
3089  ac_cv_prog_CC="$CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103  done
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108CC=$ac_cv_prog_CC
3109if test -n "$CC"; then
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111$as_echo "$CC" >&6; }
3112else
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3115fi
3116
3117
3118fi
3119if test -z "$ac_cv_prog_CC"; then
3120  ac_ct_CC=$CC
3121  # Extract the first word of "gcc", so it can be a program name with args.
3122set dummy gcc; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if ${ac_cv_prog_ac_ct_CC+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test -n "$ac_ct_CC"; then
3129  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136    for ac_exec_ext in '' $ac_executable_extensions; do
3137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138    ac_cv_prog_ac_ct_CC="gcc"
3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143  done
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149if test -n "$ac_ct_CC"; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151$as_echo "$ac_ct_CC" >&6; }
3152else
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157  if test "x$ac_ct_CC" = x; then
3158    CC=""
3159  else
3160    case $cross_compiling:$ac_tool_warned in
3161yes:)
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164ac_tool_warned=yes ;;
3165esac
3166    CC=$ac_ct_CC
3167  fi
3168else
3169  CC="$ac_cv_prog_CC"
3170fi
3171
3172if test -z "$CC"; then
3173          if test -n "$ac_tool_prefix"; then
3174    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175set dummy ${ac_tool_prefix}cc; ac_word=$2
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
3178if ${ac_cv_prog_CC+:} false; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181  if test -n "$CC"; then
3182  ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187  IFS=$as_save_IFS
3188  test -z "$as_dir" && as_dir=.
3189    for ac_exec_ext in '' $ac_executable_extensions; do
3190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191    ac_cv_prog_CC="${ac_tool_prefix}cc"
3192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193    break 2
3194  fi
3195done
3196  done
3197IFS=$as_save_IFS
3198
3199fi
3200fi
3201CC=$ac_cv_prog_CC
3202if test -n "$CC"; then
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204$as_echo "$CC" >&6; }
3205else
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208fi
3209
3210
3211  fi
3212fi
3213if test -z "$CC"; then
3214  # Extract the first word of "cc", so it can be a program name with args.
3215set dummy cc; ac_word=$2
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if ${ac_cv_prog_CC+:} false; then :
3219  $as_echo_n "(cached) " >&6
3220else
3221  if test -n "$CC"; then
3222  ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224  ac_prog_rejected=no
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230    for ac_exec_ext in '' $ac_executable_extensions; do
3231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233       ac_prog_rejected=yes
3234       continue
3235     fi
3236    ac_cv_prog_CC="cc"
3237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238    break 2
3239  fi
3240done
3241  done
3242IFS=$as_save_IFS
3243
3244if test $ac_prog_rejected = yes; then
3245  # We found a bogon in the path, so make sure we never use it.
3246  set dummy $ac_cv_prog_CC
3247  shift
3248  if test $# != 0; then
3249    # We chose a different compiler from the bogus one.
3250    # However, it has the same basename, so the bogon will be chosen
3251    # first if we set CC to just the basename; use the full file name.
3252    shift
3253    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254  fi
3255fi
3256fi
3257fi
3258CC=$ac_cv_prog_CC
3259if test -n "$CC"; then
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261$as_echo "$CC" >&6; }
3262else
3263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
3265fi
3266
3267
3268fi
3269if test -z "$CC"; then
3270  if test -n "$ac_tool_prefix"; then
3271  for ac_prog in cl.exe
3272  do
3273    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
3277if ${ac_cv_prog_CC+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  if test -n "$CC"; then
3281  ac_cv_prog_CC="$CC" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288    for ac_exec_ext in '' $ac_executable_extensions; do
3289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295  done
3296IFS=$as_save_IFS
3297
3298fi
3299fi
3300CC=$ac_cv_prog_CC
3301if test -n "$CC"; then
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303$as_echo "$CC" >&6; }
3304else
3305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307fi
3308
3309
3310    test -n "$CC" && break
3311  done
3312fi
3313if test -z "$CC"; then
3314  ac_ct_CC=$CC
3315  for ac_prog in cl.exe
3316do
3317  # Extract the first word of "$ac_prog", so it can be a program name with args.
3318set dummy $ac_prog; ac_word=$2
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320$as_echo_n "checking for $ac_word... " >&6; }
3321if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  if test -n "$ac_ct_CC"; then
3325  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332    for ac_exec_ext in '' $ac_executable_extensions; do
3333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_ac_ct_CC="$ac_prog"
3335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339  done
3340IFS=$as_save_IFS
3341
3342fi
3343fi
3344ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345if test -n "$ac_ct_CC"; then
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347$as_echo "$ac_ct_CC" >&6; }
3348else
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351fi
3352
3353
3354  test -n "$ac_ct_CC" && break
3355done
3356
3357  if test "x$ac_ct_CC" = x; then
3358    CC=""
3359  else
3360    case $cross_compiling:$ac_tool_warned in
3361yes:)
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364ac_tool_warned=yes ;;
3365esac
3366    CC=$ac_ct_CC
3367  fi
3368fi
3369
3370fi
3371
3372
3373test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375as_fn_error $? "no acceptable C compiler found in \$PATH
3376See \`config.log' for more details" "$LINENO" 5; }
3377
3378# Provide some information about the compiler.
3379$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380set X $ac_compile
3381ac_compiler=$2
3382for ac_option in --version -v -V -qversion; do
3383  { { ac_try="$ac_compiler $ac_option >&5"
3384case "(($ac_try" in
3385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386  *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391  ac_status=$?
3392  if test -s conftest.err; then
3393    sed '10a\
3394... rest of stderr output deleted ...
3395         10q' conftest.err >conftest.er1
3396    cat conftest.er1 >&5
3397  fi
3398  rm -f conftest.er1 conftest.err
3399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400  test $ac_status = 0; }
3401done
3402
3403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414ac_clean_files_save=$ac_clean_files
3415ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3416# Try to create an executable without -o first, disregard a.out.
3417# It will help us diagnose broken compilers, and finding out an intuition
3418# of exeext.
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420$as_echo_n "checking whether the C compiler works... " >&6; }
3421ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423# The possible output files:
3424ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
3426ac_rmfiles=
3427for ac_file in $ac_files
3428do
3429  case $ac_file in
3430    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432  esac
3433done
3434rm -f $ac_rmfiles
3435
3436if { { ac_try="$ac_link_default"
3437case "(($ac_try" in
3438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439  *) ac_try_echo=$ac_try;;
3440esac
3441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442$as_echo "$ac_try_echo"; } >&5
3443  (eval "$ac_link_default") 2>&5
3444  ac_status=$?
3445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446  test $ac_status = 0; }; then :
3447  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3450# so that the user can short-circuit this test for compilers unknown to
3451# Autoconf.
3452for ac_file in $ac_files ''
3453do
3454  test -f "$ac_file" || continue
3455  case $ac_file in
3456    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457	;;
3458    [ab].out )
3459	# We found the default executable, but exeext='' is most
3460	# certainly right.
3461	break;;
3462    *.* )
3463	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464	then :; else
3465	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466	fi
3467	# We set ac_cv_exeext here because the later test for it is not
3468	# safe: cross compilers may not add the suffix if given an `-o'
3469	# argument, so we may need to know it at that point already.
3470	# Even if this section looks crufty: it has the advantage of
3471	# actually working.
3472	break;;
3473    * )
3474	break;;
3475  esac
3476done
3477test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
3479else
3480  ac_file=''
3481fi
3482if test -z "$ac_file"; then :
3483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485$as_echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490as_fn_error 77 "C compiler cannot create executables
3491See \`config.log' for more details" "$LINENO" 5; }
3492else
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494$as_echo "yes" >&6; }
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497$as_echo_n "checking for C compiler default output file name... " >&6; }
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3499$as_echo "$ac_file" >&6; }
3500ac_exeext=$ac_cv_exeext
3501
3502rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503ac_clean_files=$ac_clean_files_save
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505$as_echo_n "checking for suffix of executables... " >&6; }
3506if { { ac_try="$ac_link"
3507case "(($ac_try" in
3508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509  *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513  (eval "$ac_link") 2>&5
3514  ac_status=$?
3515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516  test $ac_status = 0; }; then :
3517  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3519# work properly (i.e., refer to `conftest.exe'), while it won't with
3520# `rm'.
3521for ac_file in conftest.exe conftest conftest.*; do
3522  test -f "$ac_file" || continue
3523  case $ac_file in
3524    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526	  break;;
3527    * ) break;;
3528  esac
3529done
3530else
3531  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3534See \`config.log' for more details" "$LINENO" 5; }
3535fi
3536rm -f conftest conftest$ac_cv_exeext
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538$as_echo "$ac_cv_exeext" >&6; }
3539
3540rm -f conftest.$ac_ext
3541EXEEXT=$ac_cv_exeext
3542ac_exeext=$EXEEXT
3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h.  */
3545#include <stdio.h>
3546int
3547main ()
3548{
3549FILE *f = fopen ("conftest.out", "w");
3550 return ferror (f) || fclose (f) != 0;
3551
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556ac_clean_files="$ac_clean_files conftest.out"
3557# Check that the compiler produces executables we can run.  If not, either
3558# the compiler is broken, or we cross compile.
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3560$as_echo_n "checking whether we are cross compiling... " >&6; }
3561if test "$cross_compiling" != yes; then
3562  { { ac_try="$ac_link"
3563case "(($ac_try" in
3564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565  *) ac_try_echo=$ac_try;;
3566esac
3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568$as_echo "$ac_try_echo"; } >&5
3569  (eval "$ac_link") 2>&5
3570  ac_status=$?
3571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572  test $ac_status = 0; }
3573  if { ac_try='./conftest$ac_cv_exeext'
3574  { { case "(($ac_try" in
3575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576  *) ac_try_echo=$ac_try;;
3577esac
3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579$as_echo "$ac_try_echo"; } >&5
3580  (eval "$ac_try") 2>&5
3581  ac_status=$?
3582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583  test $ac_status = 0; }; }; then
3584    cross_compiling=no
3585  else
3586    if test "$cross_compiling" = maybe; then
3587	cross_compiling=yes
3588    else
3589	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591as_fn_error $? "cannot run C compiled programs.
3592If you meant to cross compile, use \`--host'.
3593See \`config.log' for more details" "$LINENO" 5; }
3594    fi
3595  fi
3596fi
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3598$as_echo "$cross_compiling" >&6; }
3599
3600rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3601ac_clean_files=$ac_clean_files_save
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603$as_echo_n "checking for suffix of object files... " >&6; }
3604if ${ac_cv_objext+:} false; then :
3605  $as_echo_n "(cached) " >&6
3606else
3607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609
3610int
3611main ()
3612{
3613
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618rm -f conftest.o conftest.obj
3619if { { ac_try="$ac_compile"
3620case "(($ac_try" in
3621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622  *) ac_try_echo=$ac_try;;
3623esac
3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625$as_echo "$ac_try_echo"; } >&5
3626  (eval "$ac_compile") 2>&5
3627  ac_status=$?
3628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629  test $ac_status = 0; }; then :
3630  for ac_file in conftest.o conftest.obj conftest.*; do
3631  test -f "$ac_file" || continue;
3632  case $ac_file in
3633    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635       break;;
3636  esac
3637done
3638else
3639  $as_echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644as_fn_error $? "cannot compute suffix of object files: cannot compile
3645See \`config.log' for more details" "$LINENO" 5; }
3646fi
3647rm -f conftest.$ac_cv_objext conftest.$ac_ext
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650$as_echo "$ac_cv_objext" >&6; }
3651OBJEXT=$ac_cv_objext
3652ac_objext=$OBJEXT
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655if ${ac_cv_c_compiler_gnu+:} false; then :
3656  $as_echo_n "(cached) " >&6
3657else
3658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h.  */
3660
3661int
3662main ()
3663{
3664#ifndef __GNUC__
3665       choke me
3666#endif
3667
3668  ;
3669  return 0;
3670}
3671_ACEOF
3672if ac_fn_c_try_compile "$LINENO"; then :
3673  ac_compiler_gnu=yes
3674else
3675  ac_compiler_gnu=no
3676fi
3677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683if test $ac_compiler_gnu = yes; then
3684  GCC=yes
3685else
3686  GCC=
3687fi
3688ac_test_CFLAGS=${CFLAGS+set}
3689ac_save_CFLAGS=$CFLAGS
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691$as_echo_n "checking whether $CC accepts -g... " >&6; }
3692if ${ac_cv_prog_cc_g+:} false; then :
3693  $as_echo_n "(cached) " >&6
3694else
3695  ac_save_c_werror_flag=$ac_c_werror_flag
3696   ac_c_werror_flag=yes
3697   ac_cv_prog_cc_g=no
3698   CFLAGS="-g"
3699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701
3702int
3703main ()
3704{
3705
3706  ;
3707  return 0;
3708}
3709_ACEOF
3710if ac_fn_c_try_compile "$LINENO"; then :
3711  ac_cv_prog_cc_g=yes
3712else
3713  CFLAGS=""
3714      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715/* end confdefs.h.  */
3716
3717int
3718main ()
3719{
3720
3721  ;
3722  return 0;
3723}
3724_ACEOF
3725if ac_fn_c_try_compile "$LINENO"; then :
3726
3727else
3728  ac_c_werror_flag=$ac_save_c_werror_flag
3729	 CFLAGS="-g"
3730	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732
3733int
3734main ()
3735{
3736
3737  ;
3738  return 0;
3739}
3740_ACEOF
3741if ac_fn_c_try_compile "$LINENO"; then :
3742  ac_cv_prog_cc_g=yes
3743fi
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745fi
3746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747fi
3748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749   ac_c_werror_flag=$ac_save_c_werror_flag
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752$as_echo "$ac_cv_prog_cc_g" >&6; }
3753if test "$ac_test_CFLAGS" = set; then
3754  CFLAGS=$ac_save_CFLAGS
3755elif test $ac_cv_prog_cc_g = yes; then
3756  if test "$GCC" = yes; then
3757    CFLAGS="-g -O2"
3758  else
3759    CFLAGS="-g"
3760  fi
3761else
3762  if test "$GCC" = yes; then
3763    CFLAGS="-O2"
3764  else
3765    CFLAGS=
3766  fi
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770if ${ac_cv_prog_cc_c89+:} false; then :
3771  $as_echo_n "(cached) " >&6
3772else
3773  ac_cv_prog_cc_c89=no
3774ac_save_CC=$CC
3775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776/* end confdefs.h.  */
3777#include <stdarg.h>
3778#include <stdio.h>
3779struct stat;
3780/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3781struct buf { int x; };
3782FILE * (*rcsopen) (struct buf *, struct stat *, int);
3783static char *e (p, i)
3784     char **p;
3785     int i;
3786{
3787  return p[i];
3788}
3789static char *f (char * (*g) (char **, int), char **p, ...)
3790{
3791  char *s;
3792  va_list v;
3793  va_start (v,p);
3794  s = g (p, va_arg (v,int));
3795  va_end (v);
3796  return s;
3797}
3798
3799/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3800   function prototypes and stuff, but not '\xHH' hex character constants.
3801   These don't provoke an error unfortunately, instead are silently treated
3802   as 'x'.  The following induces an error, until -std is added to get
3803   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3804   array size at least.  It's necessary to write '\x00'==0 to get something
3805   that's true only with -std.  */
3806int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807
3808/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3809   inside strings and character constants.  */
3810#define FOO(x) 'x'
3811int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812
3813int test (int i, double x);
3814struct s1 {int (*f) (int a);};
3815struct s2 {int (*f) (double a);};
3816int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817int argc;
3818char **argv;
3819int
3820main ()
3821{
3822return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3828	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829do
3830  CC="$ac_save_CC $ac_arg"
3831  if ac_fn_c_try_compile "$LINENO"; then :
3832  ac_cv_prog_cc_c89=$ac_arg
3833fi
3834rm -f core conftest.err conftest.$ac_objext
3835  test "x$ac_cv_prog_cc_c89" != "xno" && break
3836done
3837rm -f conftest.$ac_ext
3838CC=$ac_save_CC
3839
3840fi
3841# AC_CACHE_VAL
3842case "x$ac_cv_prog_cc_c89" in
3843  x)
3844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845$as_echo "none needed" >&6; } ;;
3846  xno)
3847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3848$as_echo "unsupported" >&6; } ;;
3849  *)
3850    CC="$CC $ac_cv_prog_cc_c89"
3851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3852$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853esac
3854if test "x$ac_cv_prog_cc_c89" != xno; then :
3855
3856fi
3857
3858ac_ext=c
3859ac_cpp='$CPP $CPPFLAGS'
3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863
3864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3870$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3871if ${am_cv_prog_cc_c_o+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h.  */
3876
3877int
3878main ()
3879{
3880
3881  ;
3882  return 0;
3883}
3884_ACEOF
3885  # Make sure it works both with $CC and with simple cc.
3886  # Following AC_PROG_CC_C_O, we do the test twice because some
3887  # compilers refuse to overwrite an existing .o file with -o,
3888  # though they will create one.
3889  am_cv_prog_cc_c_o=yes
3890  for am_i in 1 2; do
3891    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3892   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3893   ac_status=$?
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } \
3896         && test -f conftest2.$ac_objext; then
3897      : OK
3898    else
3899      am_cv_prog_cc_c_o=no
3900      break
3901    fi
3902  done
3903  rm -f core conftest*
3904  unset am_i
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3907$as_echo "$am_cv_prog_cc_c_o" >&6; }
3908if test "$am_cv_prog_cc_c_o" != yes; then
3909   # Losing compiler, so override with the script.
3910   # FIXME: It is wrong to rewrite CC.
3911   # But if we don't then we get into trouble of one sort or another.
3912   # A longer-term fix would be to have automake use am__CC in this case,
3913   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3914   CC="$am_aux_dir/compile $CC"
3915fi
3916ac_ext=c
3917ac_cpp='$CPP $CPPFLAGS'
3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922DEPDIR="${am__leading_dot}deps"
3923
3924ac_config_commands="$ac_config_commands depfiles"
3925
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3927$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3928cat > confinc.mk << 'END'
3929am__doit:
3930	@echo this is the am__doit target >confinc.out
3931.PHONY: am__doit
3932END
3933am__include="#"
3934am__quote=
3935# BSD make does it like this.
3936echo '.include "confinc.mk" # ignored' > confmf.BSD
3937# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3938echo 'include confinc.mk # ignored' > confmf.GNU
3939_am_result=no
3940for s in GNU BSD; do
3941  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3942   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3943   ac_status=$?
3944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945   (exit $ac_status); }
3946  case $?:`cat confinc.out 2>/dev/null` in #(
3947  '0:this is the am__doit target') :
3948    case $s in #(
3949  BSD) :
3950    am__include='.include' am__quote='"' ;; #(
3951  *) :
3952    am__include='include' am__quote='' ;;
3953esac ;; #(
3954  *) :
3955     ;;
3956esac
3957  if test "$am__include" != "#"; then
3958    _am_result="yes ($s style)"
3959    break
3960  fi
3961done
3962rm -f confinc.* confmf.*
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3964$as_echo "${_am_result}" >&6; }
3965
3966# Check whether --enable-dependency-tracking was given.
3967if test "${enable_dependency_tracking+set}" = set; then :
3968  enableval=$enable_dependency_tracking;
3969fi
3970
3971if test "x$enable_dependency_tracking" != xno; then
3972  am_depcomp="$ac_aux_dir/depcomp"
3973  AMDEPBACKSLASH='\'
3974  am__nodep='_no'
3975fi
3976 if test "x$enable_dependency_tracking" != xno; then
3977  AMDEP_TRUE=
3978  AMDEP_FALSE='#'
3979else
3980  AMDEP_TRUE='#'
3981  AMDEP_FALSE=
3982fi
3983
3984
3985
3986depcc="$CC"   am_compiler_list=
3987
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3989$as_echo_n "checking dependency style of $depcc... " >&6; }
3990if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3994  # We make a subdir and do the tests there.  Otherwise we can end up
3995  # making bogus files that we don't know about and never remove.  For
3996  # instance it was reported that on HP-UX the gcc test will end up
3997  # making a dummy file named 'D' -- because '-MD' means "put the output
3998  # in D".
3999  rm -rf conftest.dir
4000  mkdir conftest.dir
4001  # Copy depcomp to subdir because otherwise we won't find it if we're
4002  # using a relative directory.
4003  cp "$am_depcomp" conftest.dir
4004  cd conftest.dir
4005  # We will build objects and dependencies in a subdirectory because
4006  # it helps to detect inapplicable dependency modes.  For instance
4007  # both Tru64's cc and ICC support -MD to output dependencies as a
4008  # side effect of compilation, but ICC will put the dependencies in
4009  # the current directory while Tru64 will put them in the object
4010  # directory.
4011  mkdir sub
4012
4013  am_cv_CC_dependencies_compiler_type=none
4014  if test "$am_compiler_list" = ""; then
4015     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4016  fi
4017  am__universal=false
4018  case " $depcc " in #(
4019     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4020     esac
4021
4022  for depmode in $am_compiler_list; do
4023    # Setup a source with many dependencies, because some compilers
4024    # like to wrap large dependency lists on column 80 (with \), and
4025    # we should not choose a depcomp mode which is confused by this.
4026    #
4027    # We need to recreate these files for each test, as the compiler may
4028    # overwrite some of them when testing with obscure command lines.
4029    # This happens at least with the AIX C compiler.
4030    : > sub/conftest.c
4031    for i in 1 2 3 4 5 6; do
4032      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4033      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4034      # Solaris 10 /bin/sh.
4035      echo '/* dummy */' > sub/conftst$i.h
4036    done
4037    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4038
4039    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4040    # mode.  It turns out that the SunPro C++ compiler does not properly
4041    # handle '-M -o', and we need to detect this.  Also, some Intel
4042    # versions had trouble with output in subdirs.
4043    am__obj=sub/conftest.${OBJEXT-o}
4044    am__minus_obj="-o $am__obj"
4045    case $depmode in
4046    gcc)
4047      # This depmode causes a compiler race in universal mode.
4048      test "$am__universal" = false || continue
4049      ;;
4050    nosideeffect)
4051      # After this tag, mechanisms are not by side-effect, so they'll
4052      # only be used when explicitly requested.
4053      if test "x$enable_dependency_tracking" = xyes; then
4054	continue
4055      else
4056	break
4057      fi
4058      ;;
4059    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4060      # This compiler won't grok '-c -o', but also, the minuso test has
4061      # not run yet.  These depmodes are late enough in the game, and
4062      # so weak that their functioning should not be impacted.
4063      am__obj=conftest.${OBJEXT-o}
4064      am__minus_obj=
4065      ;;
4066    none) break ;;
4067    esac
4068    if depmode=$depmode \
4069       source=sub/conftest.c object=$am__obj \
4070       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4071       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4072         >/dev/null 2>conftest.err &&
4073       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4074       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4075       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4076       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4077      # icc doesn't choke on unknown options, it will just issue warnings
4078      # or remarks (even with -Werror).  So we grep stderr for any message
4079      # that says an option was ignored or not supported.
4080      # When given -MP, icc 7.0 and 7.1 complain thusly:
4081      #   icc: Command line warning: ignoring option '-M'; no argument required
4082      # The diagnosis changed in icc 8.0:
4083      #   icc: Command line remark: option '-MP' not supported
4084      if (grep 'ignoring option' conftest.err ||
4085          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4086        am_cv_CC_dependencies_compiler_type=$depmode
4087        break
4088      fi
4089    fi
4090  done
4091
4092  cd ..
4093  rm -rf conftest.dir
4094else
4095  am_cv_CC_dependencies_compiler_type=none
4096fi
4097
4098fi
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4100$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4101CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4102
4103 if
4104  test "x$enable_dependency_tracking" != xno \
4105  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4106  am__fastdepCC_TRUE=
4107  am__fastdepCC_FALSE='#'
4108else
4109  am__fastdepCC_TRUE='#'
4110  am__fastdepCC_FALSE=
4111fi
4112
4113
4114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4115$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4116if ${ac_cv_prog_cc_c99+:} false; then :
4117  $as_echo_n "(cached) " >&6
4118else
4119  ac_cv_prog_cc_c99=no
4120ac_save_CC=$CC
4121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#include <stdarg.h>
4124#include <stdbool.h>
4125#include <stdlib.h>
4126#include <wchar.h>
4127#include <stdio.h>
4128
4129// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4130#define debug(...) fprintf (stderr, __VA_ARGS__)
4131#define showlist(...) puts (#__VA_ARGS__)
4132#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4133static void
4134test_varargs_macros (void)
4135{
4136  int x = 1234;
4137  int y = 5678;
4138  debug ("Flag");
4139  debug ("X = %d\n", x);
4140  showlist (The first, second, and third items.);
4141  report (x>y, "x is %d but y is %d", x, y);
4142}
4143
4144// Check long long types.
4145#define BIG64 18446744073709551615ull
4146#define BIG32 4294967295ul
4147#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4148#if !BIG_OK
4149  your preprocessor is broken;
4150#endif
4151#if BIG_OK
4152#else
4153  your preprocessor is broken;
4154#endif
4155static long long int bignum = -9223372036854775807LL;
4156static unsigned long long int ubignum = BIG64;
4157
4158struct incomplete_array
4159{
4160  int datasize;
4161  double data[];
4162};
4163
4164struct named_init {
4165  int number;
4166  const wchar_t *name;
4167  double average;
4168};
4169
4170typedef const char *ccp;
4171
4172static inline int
4173test_restrict (ccp restrict text)
4174{
4175  // See if C++-style comments work.
4176  // Iterate through items via the restricted pointer.
4177  // Also check for declarations in for loops.
4178  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4179    continue;
4180  return 0;
4181}
4182
4183// Check varargs and va_copy.
4184static void
4185test_varargs (const char *format, ...)
4186{
4187  va_list args;
4188  va_start (args, format);
4189  va_list args_copy;
4190  va_copy (args_copy, args);
4191
4192  const char *str;
4193  int number;
4194  float fnumber;
4195
4196  while (*format)
4197    {
4198      switch (*format++)
4199	{
4200	case 's': // string
4201	  str = va_arg (args_copy, const char *);
4202	  break;
4203	case 'd': // int
4204	  number = va_arg (args_copy, int);
4205	  break;
4206	case 'f': // float
4207	  fnumber = va_arg (args_copy, double);
4208	  break;
4209	default:
4210	  break;
4211	}
4212    }
4213  va_end (args_copy);
4214  va_end (args);
4215}
4216
4217int
4218main ()
4219{
4220
4221  // Check bool.
4222  _Bool success = false;
4223
4224  // Check restrict.
4225  if (test_restrict ("String literal") == 0)
4226    success = true;
4227  char *restrict newvar = "Another string";
4228
4229  // Check varargs.
4230  test_varargs ("s, d' f .", "string", 65, 34.234);
4231  test_varargs_macros ();
4232
4233  // Check flexible array members.
4234  struct incomplete_array *ia =
4235    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4236  ia->datasize = 10;
4237  for (int i = 0; i < ia->datasize; ++i)
4238    ia->data[i] = i * 1.234;
4239
4240  // Check named initializers.
4241  struct named_init ni = {
4242    .number = 34,
4243    .name = L"Test wide string",
4244    .average = 543.34343,
4245  };
4246
4247  ni.number = 58;
4248
4249  int dynamic_array[ni.number];
4250  dynamic_array[ni.number - 1] = 543;
4251
4252  // work around unused variable warnings
4253  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4254	  || dynamic_array[ni.number - 1] != 543);
4255
4256  ;
4257  return 0;
4258}
4259_ACEOF
4260for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4261do
4262  CC="$ac_save_CC $ac_arg"
4263  if ac_fn_c_try_compile "$LINENO"; then :
4264  ac_cv_prog_cc_c99=$ac_arg
4265fi
4266rm -f core conftest.err conftest.$ac_objext
4267  test "x$ac_cv_prog_cc_c99" != "xno" && break
4268done
4269rm -f conftest.$ac_ext
4270CC=$ac_save_CC
4271
4272fi
4273# AC_CACHE_VAL
4274case "x$ac_cv_prog_cc_c99" in
4275  x)
4276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277$as_echo "none needed" >&6; } ;;
4278  xno)
4279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280$as_echo "unsupported" >&6; } ;;
4281  *)
4282    CC="$CC $ac_cv_prog_cc_c99"
4283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4284$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4285esac
4286if test "x$ac_cv_prog_cc_c99" != xno; then :
4287
4288fi
4289
4290
4291
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4293$as_echo_n "checking whether ln -s works... " >&6; }
4294LN_S=$as_ln_s
4295if test "$LN_S" = "ln -s"; then
4296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4297$as_echo "yes" >&6; }
4298else
4299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4300$as_echo "no, using $LN_S" >&6; }
4301fi
4302
4303enable_dlopen=yes
4304
4305
4306
4307case `pwd` in
4308  *\ * | *\	*)
4309    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4310$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4311esac
4312
4313
4314
4315macro_version='2.4.6'
4316macro_revision='2.4.6'
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330ltmain=$ac_aux_dir/ltmain.sh
4331
4332# Make sure we can run config.sub.
4333$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4334  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4335
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4337$as_echo_n "checking build system type... " >&6; }
4338if ${ac_cv_build+:} false; then :
4339  $as_echo_n "(cached) " >&6
4340else
4341  ac_build_alias=$build_alias
4342test "x$ac_build_alias" = x &&
4343  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4344test "x$ac_build_alias" = x &&
4345  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4346ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4347  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4348
4349fi
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4351$as_echo "$ac_cv_build" >&6; }
4352case $ac_cv_build in
4353*-*-*) ;;
4354*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4355esac
4356build=$ac_cv_build
4357ac_save_IFS=$IFS; IFS='-'
4358set x $ac_cv_build
4359shift
4360build_cpu=$1
4361build_vendor=$2
4362shift; shift
4363# Remember, the first character of IFS is used to create $*,
4364# except with old shells:
4365build_os=$*
4366IFS=$ac_save_IFS
4367case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4368
4369
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4371$as_echo_n "checking host system type... " >&6; }
4372if ${ac_cv_host+:} false; then :
4373  $as_echo_n "(cached) " >&6
4374else
4375  if test "x$host_alias" = x; then
4376  ac_cv_host=$ac_cv_build
4377else
4378  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4379    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4380fi
4381
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4384$as_echo "$ac_cv_host" >&6; }
4385case $ac_cv_host in
4386*-*-*) ;;
4387*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4388esac
4389host=$ac_cv_host
4390ac_save_IFS=$IFS; IFS='-'
4391set x $ac_cv_host
4392shift
4393host_cpu=$1
4394host_vendor=$2
4395shift; shift
4396# Remember, the first character of IFS is used to create $*,
4397# except with old shells:
4398host_os=$*
4399IFS=$ac_save_IFS
4400case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4401
4402
4403# Backslashify metacharacters that are still active within
4404# double-quoted strings.
4405sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4406
4407# Same as above, but do not quote variable references.
4408double_quote_subst='s/\(["`\\]\)/\\\1/g'
4409
4410# Sed substitution to delay expansion of an escaped shell variable in a
4411# double_quote_subst'ed string.
4412delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4413
4414# Sed substitution to delay expansion of an escaped single quote.
4415delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4416
4417# Sed substitution to avoid accidental globbing in evaled expressions
4418no_glob_subst='s/\*/\\\*/g'
4419
4420ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4421ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4422ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4423
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4425$as_echo_n "checking how to print strings... " >&6; }
4426# Test print first, because it will be a builtin if present.
4427if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4428   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4429  ECHO='print -r --'
4430elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4431  ECHO='printf %s\n'
4432else
4433  # Use this function as a fallback that always works.
4434  func_fallback_echo ()
4435  {
4436    eval 'cat <<_LTECHO_EOF
4437$1
4438_LTECHO_EOF'
4439  }
4440  ECHO='func_fallback_echo'
4441fi
4442
4443# func_echo_all arg...
4444# Invoke $ECHO with all args, space-separated.
4445func_echo_all ()
4446{
4447    $ECHO ""
4448}
4449
4450case $ECHO in
4451  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4452$as_echo "printf" >&6; } ;;
4453  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4454$as_echo "print -r" >&6; } ;;
4455  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4456$as_echo "cat" >&6; } ;;
4457esac
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4473$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4474if ${ac_cv_path_SED+:} false; then :
4475  $as_echo_n "(cached) " >&6
4476else
4477            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4478     for ac_i in 1 2 3 4 5 6 7; do
4479       ac_script="$ac_script$as_nl$ac_script"
4480     done
4481     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4482     { ac_script=; unset ac_script;}
4483     if test -z "$SED"; then
4484  ac_path_SED_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
4488do
4489  IFS=$as_save_IFS
4490  test -z "$as_dir" && as_dir=.
4491    for ac_prog in sed gsed; do
4492    for ac_exec_ext in '' $ac_executable_extensions; do
4493      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4494      as_fn_executable_p "$ac_path_SED" || continue
4495# Check for GNU ac_path_SED and select it if it is found.
4496  # Check for GNU $ac_path_SED
4497case `"$ac_path_SED" --version 2>&1` in
4498*GNU*)
4499  ac_cv_path_SED="$ac_path_SED" ac_path_SED_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 '' >> "conftest.nl"
4509    "$ac_path_SED" -f conftest.sed < "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_SED_max-0}; then
4513      # Best one so far, save it but keep looking for a better one
4514      ac_cv_path_SED="$ac_path_SED"
4515      ac_path_SED_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_SED_found && break 3
4524    done
4525  done
4526  done
4527IFS=$as_save_IFS
4528  if test -z "$ac_cv_path_SED"; then
4529    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4530  fi
4531else
4532  ac_cv_path_SED=$SED
4533fi
4534
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4537$as_echo "$ac_cv_path_SED" >&6; }
4538 SED="$ac_cv_path_SED"
4539  rm -f conftest.sed
4540
4541test -z "$SED" && SED=sed
4542Xsed="$SED -e 1s/^X//"
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4555$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4556if ${ac_cv_path_GREP+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  if test -z "$GREP"; then
4560  ac_path_GREP_found=false
4561  # Loop through the user's path and test for each of PROGNAME-LIST
4562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_prog in grep ggrep; do
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4570      as_fn_executable_p "$ac_path_GREP" || continue
4571# Check for GNU ac_path_GREP and select it if it is found.
4572  # Check for GNU $ac_path_GREP
4573case `"$ac_path_GREP" --version 2>&1` in
4574*GNU*)
4575  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4576*)
4577  ac_count=0
4578  $as_echo_n 0123456789 >"conftest.in"
4579  while :
4580  do
4581    cat "conftest.in" "conftest.in" >"conftest.tmp"
4582    mv "conftest.tmp" "conftest.in"
4583    cp "conftest.in" "conftest.nl"
4584    $as_echo 'GREP' >> "conftest.nl"
4585    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587    as_fn_arith $ac_count + 1 && ac_count=$as_val
4588    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4589      # Best one so far, save it but keep looking for a better one
4590      ac_cv_path_GREP="$ac_path_GREP"
4591      ac_path_GREP_max=$ac_count
4592    fi
4593    # 10*(2^10) chars as input seems more than enough
4594    test $ac_count -gt 10 && break
4595  done
4596  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597esac
4598
4599      $ac_path_GREP_found && break 3
4600    done
4601  done
4602  done
4603IFS=$as_save_IFS
4604  if test -z "$ac_cv_path_GREP"; then
4605    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4606  fi
4607else
4608  ac_cv_path_GREP=$GREP
4609fi
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4613$as_echo "$ac_cv_path_GREP" >&6; }
4614 GREP="$ac_cv_path_GREP"
4615
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4618$as_echo_n "checking for egrep... " >&6; }
4619if ${ac_cv_path_EGREP+:} false; then :
4620  $as_echo_n "(cached) " >&6
4621else
4622  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4623   then ac_cv_path_EGREP="$GREP -E"
4624   else
4625     if test -z "$EGREP"; then
4626  ac_path_EGREP_found=false
4627  # Loop through the user's path and test for each of PROGNAME-LIST
4628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630do
4631  IFS=$as_save_IFS
4632  test -z "$as_dir" && as_dir=.
4633    for ac_prog in egrep; do
4634    for ac_exec_ext in '' $ac_executable_extensions; do
4635      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4636      as_fn_executable_p "$ac_path_EGREP" || continue
4637# Check for GNU ac_path_EGREP and select it if it is found.
4638  # Check for GNU $ac_path_EGREP
4639case `"$ac_path_EGREP" --version 2>&1` in
4640*GNU*)
4641  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4642*)
4643  ac_count=0
4644  $as_echo_n 0123456789 >"conftest.in"
4645  while :
4646  do
4647    cat "conftest.in" "conftest.in" >"conftest.tmp"
4648    mv "conftest.tmp" "conftest.in"
4649    cp "conftest.in" "conftest.nl"
4650    $as_echo 'EGREP' >> "conftest.nl"
4651    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4653    as_fn_arith $ac_count + 1 && ac_count=$as_val
4654    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4655      # Best one so far, save it but keep looking for a better one
4656      ac_cv_path_EGREP="$ac_path_EGREP"
4657      ac_path_EGREP_max=$ac_count
4658    fi
4659    # 10*(2^10) chars as input seems more than enough
4660    test $ac_count -gt 10 && break
4661  done
4662  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663esac
4664
4665      $ac_path_EGREP_found && break 3
4666    done
4667  done
4668  done
4669IFS=$as_save_IFS
4670  if test -z "$ac_cv_path_EGREP"; then
4671    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672  fi
4673else
4674  ac_cv_path_EGREP=$EGREP
4675fi
4676
4677   fi
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4680$as_echo "$ac_cv_path_EGREP" >&6; }
4681 EGREP="$ac_cv_path_EGREP"
4682
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4685$as_echo_n "checking for fgrep... " >&6; }
4686if ${ac_cv_path_FGREP+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4690   then ac_cv_path_FGREP="$GREP -F"
4691   else
4692     if test -z "$FGREP"; then
4693  ac_path_FGREP_found=false
4694  # Loop through the user's path and test for each of PROGNAME-LIST
4695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697do
4698  IFS=$as_save_IFS
4699  test -z "$as_dir" && as_dir=.
4700    for ac_prog in fgrep; do
4701    for ac_exec_ext in '' $ac_executable_extensions; do
4702      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4703      as_fn_executable_p "$ac_path_FGREP" || continue
4704# Check for GNU ac_path_FGREP and select it if it is found.
4705  # Check for GNU $ac_path_FGREP
4706case `"$ac_path_FGREP" --version 2>&1` in
4707*GNU*)
4708  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4709*)
4710  ac_count=0
4711  $as_echo_n 0123456789 >"conftest.in"
4712  while :
4713  do
4714    cat "conftest.in" "conftest.in" >"conftest.tmp"
4715    mv "conftest.tmp" "conftest.in"
4716    cp "conftest.in" "conftest.nl"
4717    $as_echo 'FGREP' >> "conftest.nl"
4718    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720    as_fn_arith $ac_count + 1 && ac_count=$as_val
4721    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4722      # Best one so far, save it but keep looking for a better one
4723      ac_cv_path_FGREP="$ac_path_FGREP"
4724      ac_path_FGREP_max=$ac_count
4725    fi
4726    # 10*(2^10) chars as input seems more than enough
4727    test $ac_count -gt 10 && break
4728  done
4729  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730esac
4731
4732      $ac_path_FGREP_found && break 3
4733    done
4734  done
4735  done
4736IFS=$as_save_IFS
4737  if test -z "$ac_cv_path_FGREP"; then
4738    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739  fi
4740else
4741  ac_cv_path_FGREP=$FGREP
4742fi
4743
4744   fi
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4747$as_echo "$ac_cv_path_FGREP" >&6; }
4748 FGREP="$ac_cv_path_FGREP"
4749
4750
4751test -z "$GREP" && GREP=grep
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771# Check whether --with-gnu-ld was given.
4772if test "${with_gnu_ld+set}" = set; then :
4773  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4774else
4775  with_gnu_ld=no
4776fi
4777
4778ac_prog=ld
4779if test yes = "$GCC"; then
4780  # Check if gcc -print-prog-name=ld gives a path.
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4782$as_echo_n "checking for ld used by $CC... " >&6; }
4783  case $host in
4784  *-*-mingw*)
4785    # gcc leaves a trailing carriage return, which upsets mingw
4786    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4787  *)
4788    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4789  esac
4790  case $ac_prog in
4791    # Accept absolute paths.
4792    [\\/]* | ?:[\\/]*)
4793      re_direlt='/[^/][^/]*/\.\./'
4794      # Canonicalize the pathname of ld
4795      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4796      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4797	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4798      done
4799      test -z "$LD" && LD=$ac_prog
4800      ;;
4801  "")
4802    # If it fails, then pretend we aren't using GCC.
4803    ac_prog=ld
4804    ;;
4805  *)
4806    # If it is relative, then search for the first ld in PATH.
4807    with_gnu_ld=unknown
4808    ;;
4809  esac
4810elif test yes = "$with_gnu_ld"; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4812$as_echo_n "checking for GNU ld... " >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4815$as_echo_n "checking for non-GNU ld... " >&6; }
4816fi
4817if ${lt_cv_path_LD+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -z "$LD"; then
4821  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4822  for ac_dir in $PATH; do
4823    IFS=$lt_save_ifs
4824    test -z "$ac_dir" && ac_dir=.
4825    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4826      lt_cv_path_LD=$ac_dir/$ac_prog
4827      # Check to see if the program is GNU ld.  I'd rather use --version,
4828      # but apparently some variants of GNU ld only accept -v.
4829      # Break only if it was the GNU/non-GNU ld that we prefer.
4830      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4831      *GNU* | *'with BFD'*)
4832	test no != "$with_gnu_ld" && break
4833	;;
4834      *)
4835	test yes != "$with_gnu_ld" && break
4836	;;
4837      esac
4838    fi
4839  done
4840  IFS=$lt_save_ifs
4841else
4842  lt_cv_path_LD=$LD # Let the user override the test with a path.
4843fi
4844fi
4845
4846LD=$lt_cv_path_LD
4847if test -n "$LD"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4849$as_echo "$LD" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4856$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4857if ${lt_cv_prog_gnu_ld+:} false; then :
4858  $as_echo_n "(cached) " >&6
4859else
4860  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4861case `$LD -v 2>&1 </dev/null` in
4862*GNU* | *'with BFD'*)
4863  lt_cv_prog_gnu_ld=yes
4864  ;;
4865*)
4866  lt_cv_prog_gnu_ld=no
4867  ;;
4868esac
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4871$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4872with_gnu_ld=$lt_cv_prog_gnu_ld
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4883$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4884if ${lt_cv_path_NM+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  if test -n "$NM"; then
4888  # Let the user override the test.
4889  lt_cv_path_NM=$NM
4890else
4891  lt_nm_to_check=${ac_tool_prefix}nm
4892  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4893    lt_nm_to_check="$lt_nm_to_check nm"
4894  fi
4895  for lt_tmp_nm in $lt_nm_to_check; do
4896    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4897    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4898      IFS=$lt_save_ifs
4899      test -z "$ac_dir" && ac_dir=.
4900      tmp_nm=$ac_dir/$lt_tmp_nm
4901      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4902	# Check to see if the nm accepts a BSD-compat flag.
4903	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4904	#   nm: unknown option "B" ignored
4905	# Tru64's nm complains that /dev/null is an invalid object file
4906	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4907	case $build_os in
4908	mingw*) lt_bad_file=conftest.nm/nofile ;;
4909	*) lt_bad_file=/dev/null ;;
4910	esac
4911	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4912	*$lt_bad_file* | *'Invalid file or object type'*)
4913	  lt_cv_path_NM="$tmp_nm -B"
4914	  break 2
4915	  ;;
4916	*)
4917	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4918	  */dev/null*)
4919	    lt_cv_path_NM="$tmp_nm -p"
4920	    break 2
4921	    ;;
4922	  *)
4923	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4924	    continue # so that we can try to find one that supports BSD flags
4925	    ;;
4926	  esac
4927	  ;;
4928	esac
4929      fi
4930    done
4931    IFS=$lt_save_ifs
4932  done
4933  : ${lt_cv_path_NM=no}
4934fi
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4937$as_echo "$lt_cv_path_NM" >&6; }
4938if test no != "$lt_cv_path_NM"; then
4939  NM=$lt_cv_path_NM
4940else
4941  # Didn't find any BSD compatible name lister, look for dumpbin.
4942  if test -n "$DUMPBIN"; then :
4943    # Let the user override the test.
4944  else
4945    if test -n "$ac_tool_prefix"; then
4946  for ac_prog in dumpbin "link -dump"
4947  do
4948    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4949set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951$as_echo_n "checking for $ac_word... " >&6; }
4952if ${ac_cv_prog_DUMPBIN+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  if test -n "$DUMPBIN"; then
4956  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4957else
4958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961  IFS=$as_save_IFS
4962  test -z "$as_dir" && as_dir=.
4963    for ac_exec_ext in '' $ac_executable_extensions; do
4964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967    break 2
4968  fi
4969done
4970  done
4971IFS=$as_save_IFS
4972
4973fi
4974fi
4975DUMPBIN=$ac_cv_prog_DUMPBIN
4976if test -n "$DUMPBIN"; then
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4978$as_echo "$DUMPBIN" >&6; }
4979else
4980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981$as_echo "no" >&6; }
4982fi
4983
4984
4985    test -n "$DUMPBIN" && break
4986  done
4987fi
4988if test -z "$DUMPBIN"; then
4989  ac_ct_DUMPBIN=$DUMPBIN
4990  for ac_prog in dumpbin "link -dump"
4991do
4992  # Extract the first word of "$ac_prog", so it can be a program name with args.
4993set dummy $ac_prog; ac_word=$2
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995$as_echo_n "checking for $ac_word... " >&6; }
4996if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  if test -n "$ac_ct_DUMPBIN"; then
5000  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5001else
5002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH
5004do
5005  IFS=$as_save_IFS
5006  test -z "$as_dir" && as_dir=.
5007    for ac_exec_ext in '' $ac_executable_extensions; do
5008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011    break 2
5012  fi
5013done
5014  done
5015IFS=$as_save_IFS
5016
5017fi
5018fi
5019ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5020if test -n "$ac_ct_DUMPBIN"; then
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5022$as_echo "$ac_ct_DUMPBIN" >&6; }
5023else
5024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025$as_echo "no" >&6; }
5026fi
5027
5028
5029  test -n "$ac_ct_DUMPBIN" && break
5030done
5031
5032  if test "x$ac_ct_DUMPBIN" = x; then
5033    DUMPBIN=":"
5034  else
5035    case $cross_compiling:$ac_tool_warned in
5036yes:)
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5039ac_tool_warned=yes ;;
5040esac
5041    DUMPBIN=$ac_ct_DUMPBIN
5042  fi
5043fi
5044
5045    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5046    *COFF*)
5047      DUMPBIN="$DUMPBIN -symbols -headers"
5048      ;;
5049    *)
5050      DUMPBIN=:
5051      ;;
5052    esac
5053  fi
5054
5055  if test : != "$DUMPBIN"; then
5056    NM=$DUMPBIN
5057  fi
5058fi
5059test -z "$NM" && NM=nm
5060
5061
5062
5063
5064
5065
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5067$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5068if ${lt_cv_nm_interface+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  lt_cv_nm_interface="BSD nm"
5072  echo "int some_variable = 0;" > conftest.$ac_ext
5073  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5074  (eval "$ac_compile" 2>conftest.err)
5075  cat conftest.err >&5
5076  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5077  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5078  cat conftest.err >&5
5079  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5080  cat conftest.out >&5
5081  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5082    lt_cv_nm_interface="MS dumpbin"
5083  fi
5084  rm -f conftest*
5085fi
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5087$as_echo "$lt_cv_nm_interface" >&6; }
5088
5089# find the maximum length of command line arguments
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5091$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5092if ${lt_cv_sys_max_cmd_len+:} false; then :
5093  $as_echo_n "(cached) " >&6
5094else
5095    i=0
5096  teststring=ABCD
5097
5098  case $build_os in
5099  msdosdjgpp*)
5100    # On DJGPP, this test can blow up pretty badly due to problems in libc
5101    # (any single argument exceeding 2000 bytes causes a buffer overrun
5102    # during glob expansion).  Even if it were fixed, the result of this
5103    # check would be larger than it should be.
5104    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5105    ;;
5106
5107  gnu*)
5108    # Under GNU Hurd, this test is not required because there is
5109    # no limit to the length of command line arguments.
5110    # Libtool will interpret -1 as no limit whatsoever
5111    lt_cv_sys_max_cmd_len=-1;
5112    ;;
5113
5114  cygwin* | mingw* | cegcc*)
5115    # On Win9x/ME, this test blows up -- it succeeds, but takes
5116    # about 5 minutes as the teststring grows exponentially.
5117    # Worse, since 9x/ME are not pre-emptively multitasking,
5118    # you end up with a "frozen" computer, even though with patience
5119    # the test eventually succeeds (with a max line length of 256k).
5120    # Instead, let's just punt: use the minimum linelength reported by
5121    # all of the supported platforms: 8192 (on NT/2K/XP).
5122    lt_cv_sys_max_cmd_len=8192;
5123    ;;
5124
5125  mint*)
5126    # On MiNT this can take a long time and run out of memory.
5127    lt_cv_sys_max_cmd_len=8192;
5128    ;;
5129
5130  amigaos*)
5131    # On AmigaOS with pdksh, this test takes hours, literally.
5132    # So we just punt and use a minimum line length of 8192.
5133    lt_cv_sys_max_cmd_len=8192;
5134    ;;
5135
5136  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5137    # This has been around since 386BSD, at least.  Likely further.
5138    if test -x /sbin/sysctl; then
5139      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5140    elif test -x /usr/sbin/sysctl; then
5141      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5142    else
5143      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5144    fi
5145    # And add a safety zone
5146    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5147    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5148    ;;
5149
5150  interix*)
5151    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5152    lt_cv_sys_max_cmd_len=196608
5153    ;;
5154
5155  os2*)
5156    # The test takes a long time on OS/2.
5157    lt_cv_sys_max_cmd_len=8192
5158    ;;
5159
5160  osf*)
5161    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5162    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5163    # nice to cause kernel panics so lets avoid the loop below.
5164    # First set a reasonable default.
5165    lt_cv_sys_max_cmd_len=16384
5166    #
5167    if test -x /sbin/sysconfig; then
5168      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5169        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5170      esac
5171    fi
5172    ;;
5173  sco3.2v5*)
5174    lt_cv_sys_max_cmd_len=102400
5175    ;;
5176  sysv5* | sco5v6* | sysv4.2uw2*)
5177    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5178    if test -n "$kargmax"; then
5179      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5180    else
5181      lt_cv_sys_max_cmd_len=32768
5182    fi
5183    ;;
5184  *)
5185    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5186    if test -n "$lt_cv_sys_max_cmd_len" && \
5187       test undefined != "$lt_cv_sys_max_cmd_len"; then
5188      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5189      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5190    else
5191      # Make teststring a little bigger before we do anything with it.
5192      # a 1K string should be a reasonable start.
5193      for i in 1 2 3 4 5 6 7 8; do
5194        teststring=$teststring$teststring
5195      done
5196      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5197      # If test is not a shell built-in, we'll probably end up computing a
5198      # maximum length that is only half of the actual maximum length, but
5199      # we can't tell.
5200      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5201	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5202	      test 17 != "$i" # 1/2 MB should be enough
5203      do
5204        i=`expr $i + 1`
5205        teststring=$teststring$teststring
5206      done
5207      # Only check the string length outside the loop.
5208      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5209      teststring=
5210      # Add a significant safety factor because C++ compilers can tack on
5211      # massive amounts of additional arguments before passing them to the
5212      # linker.  It appears as though 1/2 is a usable value.
5213      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5214    fi
5215    ;;
5216  esac
5217
5218fi
5219
5220if test -n "$lt_cv_sys_max_cmd_len"; then
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5222$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5223else
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5225$as_echo "none" >&6; }
5226fi
5227max_cmd_len=$lt_cv_sys_max_cmd_len
5228
5229
5230
5231
5232
5233
5234: ${CP="cp -f"}
5235: ${MV="mv -f"}
5236: ${RM="rm -f"}
5237
5238if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5239  lt_unset=unset
5240else
5241  lt_unset=false
5242fi
5243
5244
5245
5246
5247
5248# test EBCDIC or ASCII
5249case `echo X|tr X '\101'` in
5250 A) # ASCII based system
5251    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5252  lt_SP2NL='tr \040 \012'
5253  lt_NL2SP='tr \015\012 \040\040'
5254  ;;
5255 *) # EBCDIC based system
5256  lt_SP2NL='tr \100 \n'
5257  lt_NL2SP='tr \r\n \100\100'
5258  ;;
5259esac
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5270$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5271if ${lt_cv_to_host_file_cmd+:} false; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  case $host in
5275  *-*-mingw* )
5276    case $build in
5277      *-*-mingw* ) # actually msys
5278        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5279        ;;
5280      *-*-cygwin* )
5281        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5282        ;;
5283      * ) # otherwise, assume *nix
5284        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5285        ;;
5286    esac
5287    ;;
5288  *-*-cygwin* )
5289    case $build in
5290      *-*-mingw* ) # actually msys
5291        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5292        ;;
5293      *-*-cygwin* )
5294        lt_cv_to_host_file_cmd=func_convert_file_noop
5295        ;;
5296      * ) # otherwise, assume *nix
5297        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5298        ;;
5299    esac
5300    ;;
5301  * ) # unhandled hosts (and "normal" native builds)
5302    lt_cv_to_host_file_cmd=func_convert_file_noop
5303    ;;
5304esac
5305
5306fi
5307
5308to_host_file_cmd=$lt_cv_to_host_file_cmd
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5310$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5311
5312
5313
5314
5315
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5317$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5318if ${lt_cv_to_tool_file_cmd+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  #assume ordinary cross tools, or native build.
5322lt_cv_to_tool_file_cmd=func_convert_file_noop
5323case $host in
5324  *-*-mingw* )
5325    case $build in
5326      *-*-mingw* ) # actually msys
5327        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5328        ;;
5329    esac
5330    ;;
5331esac
5332
5333fi
5334
5335to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5337$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5338
5339
5340
5341
5342
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5344$as_echo_n "checking for $LD option to reload object files... " >&6; }
5345if ${lt_cv_ld_reload_flag+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  lt_cv_ld_reload_flag='-r'
5349fi
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5351$as_echo "$lt_cv_ld_reload_flag" >&6; }
5352reload_flag=$lt_cv_ld_reload_flag
5353case $reload_flag in
5354"" | " "*) ;;
5355*) reload_flag=" $reload_flag" ;;
5356esac
5357reload_cmds='$LD$reload_flag -o $output$reload_objs'
5358case $host_os in
5359  cygwin* | mingw* | pw32* | cegcc*)
5360    if test yes != "$GCC"; then
5361      reload_cmds=false
5362    fi
5363    ;;
5364  darwin*)
5365    if test yes = "$GCC"; then
5366      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5367    else
5368      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5369    fi
5370    ;;
5371esac
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381if test -n "$ac_tool_prefix"; then
5382  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5383set dummy ${ac_tool_prefix}objdump; ac_word=$2
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385$as_echo_n "checking for $ac_word... " >&6; }
5386if ${ac_cv_prog_OBJDUMP+:} false; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389  if test -n "$OBJDUMP"; then
5390  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5391else
5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393for as_dir in $PATH
5394do
5395  IFS=$as_save_IFS
5396  test -z "$as_dir" && as_dir=.
5397    for ac_exec_ext in '' $ac_executable_extensions; do
5398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401    break 2
5402  fi
5403done
5404  done
5405IFS=$as_save_IFS
5406
5407fi
5408fi
5409OBJDUMP=$ac_cv_prog_OBJDUMP
5410if test -n "$OBJDUMP"; then
5411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5412$as_echo "$OBJDUMP" >&6; }
5413else
5414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415$as_echo "no" >&6; }
5416fi
5417
5418
5419fi
5420if test -z "$ac_cv_prog_OBJDUMP"; then
5421  ac_ct_OBJDUMP=$OBJDUMP
5422  # Extract the first word of "objdump", so it can be a program name with args.
5423set dummy objdump; ac_word=$2
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425$as_echo_n "checking for $ac_word... " >&6; }
5426if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  if test -n "$ac_ct_OBJDUMP"; then
5430  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435  IFS=$as_save_IFS
5436  test -z "$as_dir" && as_dir=.
5437    for ac_exec_ext in '' $ac_executable_extensions; do
5438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441    break 2
5442  fi
5443done
5444  done
5445IFS=$as_save_IFS
5446
5447fi
5448fi
5449ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5450if test -n "$ac_ct_OBJDUMP"; then
5451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5452$as_echo "$ac_ct_OBJDUMP" >&6; }
5453else
5454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455$as_echo "no" >&6; }
5456fi
5457
5458  if test "x$ac_ct_OBJDUMP" = x; then
5459    OBJDUMP="false"
5460  else
5461    case $cross_compiling:$ac_tool_warned in
5462yes:)
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5465ac_tool_warned=yes ;;
5466esac
5467    OBJDUMP=$ac_ct_OBJDUMP
5468  fi
5469else
5470  OBJDUMP="$ac_cv_prog_OBJDUMP"
5471fi
5472
5473test -z "$OBJDUMP" && OBJDUMP=objdump
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5484$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5485if ${lt_cv_deplibs_check_method+:} false; then :
5486  $as_echo_n "(cached) " >&6
5487else
5488  lt_cv_file_magic_cmd='$MAGIC_CMD'
5489lt_cv_file_magic_test_file=
5490lt_cv_deplibs_check_method='unknown'
5491# Need to set the preceding variable on all platforms that support
5492# interlibrary dependencies.
5493# 'none' -- dependencies not supported.
5494# 'unknown' -- same as none, but documents that we really don't know.
5495# 'pass_all' -- all dependencies passed with no checks.
5496# 'test_compile' -- check by making test program.
5497# 'file_magic [[regex]]' -- check by looking for files in library path
5498# that responds to the $file_magic_cmd with a given extended regex.
5499# If you have 'file' or equivalent on your system and you're not sure
5500# whether 'pass_all' will *always* work, you probably want this one.
5501
5502case $host_os in
5503aix[4-9]*)
5504  lt_cv_deplibs_check_method=pass_all
5505  ;;
5506
5507beos*)
5508  lt_cv_deplibs_check_method=pass_all
5509  ;;
5510
5511bsdi[45]*)
5512  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5513  lt_cv_file_magic_cmd='/usr/bin/file -L'
5514  lt_cv_file_magic_test_file=/shlib/libc.so
5515  ;;
5516
5517cygwin*)
5518  # func_win32_libid is a shell function defined in ltmain.sh
5519  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5520  lt_cv_file_magic_cmd='func_win32_libid'
5521  ;;
5522
5523mingw* | pw32*)
5524  # Base MSYS/MinGW do not provide the 'file' command needed by
5525  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5526  # unless we find 'file', for example because we are cross-compiling.
5527  if ( file / ) >/dev/null 2>&1; then
5528    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5529    lt_cv_file_magic_cmd='func_win32_libid'
5530  else
5531    # Keep this pattern in sync with the one in func_win32_libid.
5532    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5533    lt_cv_file_magic_cmd='$OBJDUMP -f'
5534  fi
5535  ;;
5536
5537cegcc*)
5538  # use the weaker test based on 'objdump'. See mingw*.
5539  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5540  lt_cv_file_magic_cmd='$OBJDUMP -f'
5541  ;;
5542
5543darwin* | rhapsody*)
5544  lt_cv_deplibs_check_method=pass_all
5545  ;;
5546
5547freebsd* | dragonfly*)
5548  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5549    case $host_cpu in
5550    i*86 )
5551      # Not sure whether the presence of OpenBSD here was a mistake.
5552      # Let's accept both of them until this is cleared up.
5553      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5554      lt_cv_file_magic_cmd=/usr/bin/file
5555      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5556      ;;
5557    esac
5558  else
5559    lt_cv_deplibs_check_method=pass_all
5560  fi
5561  ;;
5562
5563haiku*)
5564  lt_cv_deplibs_check_method=pass_all
5565  ;;
5566
5567hpux10.20* | hpux11*)
5568  lt_cv_file_magic_cmd=/usr/bin/file
5569  case $host_cpu in
5570  ia64*)
5571    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5572    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5573    ;;
5574  hppa*64*)
5575    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]'
5576    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5577    ;;
5578  *)
5579    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5580    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5581    ;;
5582  esac
5583  ;;
5584
5585interix[3-9]*)
5586  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5587  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5588  ;;
5589
5590irix5* | irix6* | nonstopux*)
5591  case $LD in
5592  *-32|*"-32 ") libmagic=32-bit;;
5593  *-n32|*"-n32 ") libmagic=N32;;
5594  *-64|*"-64 ") libmagic=64-bit;;
5595  *) libmagic=never-match;;
5596  esac
5597  lt_cv_deplibs_check_method=pass_all
5598  ;;
5599
5600# This must be glibc/ELF.
5601linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5602  lt_cv_deplibs_check_method=pass_all
5603  ;;
5604
5605netbsd*)
5606  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5607    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5608  else
5609    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5610  fi
5611  ;;
5612
5613newos6*)
5614  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5615  lt_cv_file_magic_cmd=/usr/bin/file
5616  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5617  ;;
5618
5619*nto* | *qnx*)
5620  lt_cv_deplibs_check_method=pass_all
5621  ;;
5622
5623openbsd* | bitrig*)
5624  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5625    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5626  else
5627    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5628  fi
5629  ;;
5630
5631osf3* | osf4* | osf5*)
5632  lt_cv_deplibs_check_method=pass_all
5633  ;;
5634
5635rdos*)
5636  lt_cv_deplibs_check_method=pass_all
5637  ;;
5638
5639solaris*)
5640  lt_cv_deplibs_check_method=pass_all
5641  ;;
5642
5643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5644  lt_cv_deplibs_check_method=pass_all
5645  ;;
5646
5647sysv4 | sysv4.3*)
5648  case $host_vendor in
5649  motorola)
5650    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]'
5651    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5652    ;;
5653  ncr)
5654    lt_cv_deplibs_check_method=pass_all
5655    ;;
5656  sequent)
5657    lt_cv_file_magic_cmd='/bin/file'
5658    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5659    ;;
5660  sni)
5661    lt_cv_file_magic_cmd='/bin/file'
5662    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5663    lt_cv_file_magic_test_file=/lib/libc.so
5664    ;;
5665  siemens)
5666    lt_cv_deplibs_check_method=pass_all
5667    ;;
5668  pc)
5669    lt_cv_deplibs_check_method=pass_all
5670    ;;
5671  esac
5672  ;;
5673
5674tpf*)
5675  lt_cv_deplibs_check_method=pass_all
5676  ;;
5677os2*)
5678  lt_cv_deplibs_check_method=pass_all
5679  ;;
5680esac
5681
5682fi
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5684$as_echo "$lt_cv_deplibs_check_method" >&6; }
5685
5686file_magic_glob=
5687want_nocaseglob=no
5688if test "$build" = "$host"; then
5689  case $host_os in
5690  mingw* | pw32*)
5691    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5692      want_nocaseglob=yes
5693    else
5694      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5695    fi
5696    ;;
5697  esac
5698fi
5699
5700file_magic_cmd=$lt_cv_file_magic_cmd
5701deplibs_check_method=$lt_cv_deplibs_check_method
5702test -z "$deplibs_check_method" && deplibs_check_method=unknown
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725if test -n "$ac_tool_prefix"; then
5726  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5727set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
5730if ${ac_cv_prog_DLLTOOL+:} false; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733  if test -n "$DLLTOOL"; then
5734  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739  IFS=$as_save_IFS
5740  test -z "$as_dir" && as_dir=.
5741    for ac_exec_ext in '' $ac_executable_extensions; do
5742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745    break 2
5746  fi
5747done
5748  done
5749IFS=$as_save_IFS
5750
5751fi
5752fi
5753DLLTOOL=$ac_cv_prog_DLLTOOL
5754if test -n "$DLLTOOL"; then
5755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5756$as_echo "$DLLTOOL" >&6; }
5757else
5758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
5760fi
5761
5762
5763fi
5764if test -z "$ac_cv_prog_DLLTOOL"; then
5765  ac_ct_DLLTOOL=$DLLTOOL
5766  # Extract the first word of "dlltool", so it can be a program name with args.
5767set dummy dlltool; ac_word=$2
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773  if test -n "$ac_ct_DLLTOOL"; then
5774  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779  IFS=$as_save_IFS
5780  test -z "$as_dir" && as_dir=.
5781    for ac_exec_ext in '' $ac_executable_extensions; do
5782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785    break 2
5786  fi
5787done
5788  done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5794if test -n "$ac_ct_DLLTOOL"; then
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5796$as_echo "$ac_ct_DLLTOOL" >&6; }
5797else
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802  if test "x$ac_ct_DLLTOOL" = x; then
5803    DLLTOOL="false"
5804  else
5805    case $cross_compiling:$ac_tool_warned in
5806yes:)
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809ac_tool_warned=yes ;;
5810esac
5811    DLLTOOL=$ac_ct_DLLTOOL
5812  fi
5813else
5814  DLLTOOL="$ac_cv_prog_DLLTOOL"
5815fi
5816
5817test -z "$DLLTOOL" && DLLTOOL=dlltool
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5829$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5830if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5831  $as_echo_n "(cached) " >&6
5832else
5833  lt_cv_sharedlib_from_linklib_cmd='unknown'
5834
5835case $host_os in
5836cygwin* | mingw* | pw32* | cegcc*)
5837  # two different shell functions defined in ltmain.sh;
5838  # decide which one to use based on capabilities of $DLLTOOL
5839  case `$DLLTOOL --help 2>&1` in
5840  *--identify-strict*)
5841    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5842    ;;
5843  *)
5844    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5845    ;;
5846  esac
5847  ;;
5848*)
5849  # fallback: assume linklib IS sharedlib
5850  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5851  ;;
5852esac
5853
5854fi
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5856$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5857sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5858test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5859
5860
5861
5862
5863
5864
5865
5866
5867if test -n "$ac_tool_prefix"; then
5868  for ac_prog in ar
5869  do
5870    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5871set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873$as_echo_n "checking for $ac_word... " >&6; }
5874if ${ac_cv_prog_AR+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877  if test -n "$AR"; then
5878  ac_cv_prog_AR="$AR" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883  IFS=$as_save_IFS
5884  test -z "$as_dir" && as_dir=.
5885    for ac_exec_ext in '' $ac_executable_extensions; do
5886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889    break 2
5890  fi
5891done
5892  done
5893IFS=$as_save_IFS
5894
5895fi
5896fi
5897AR=$ac_cv_prog_AR
5898if test -n "$AR"; then
5899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5900$as_echo "$AR" >&6; }
5901else
5902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903$as_echo "no" >&6; }
5904fi
5905
5906
5907    test -n "$AR" && break
5908  done
5909fi
5910if test -z "$AR"; then
5911  ac_ct_AR=$AR
5912  for ac_prog in ar
5913do
5914  # Extract the first word of "$ac_prog", so it can be a program name with args.
5915set dummy $ac_prog; ac_word=$2
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917$as_echo_n "checking for $ac_word... " >&6; }
5918if ${ac_cv_prog_ac_ct_AR+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  if test -n "$ac_ct_AR"; then
5922  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927  IFS=$as_save_IFS
5928  test -z "$as_dir" && as_dir=.
5929    for ac_exec_ext in '' $ac_executable_extensions; do
5930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931    ac_cv_prog_ac_ct_AR="$ac_prog"
5932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933    break 2
5934  fi
5935done
5936  done
5937IFS=$as_save_IFS
5938
5939fi
5940fi
5941ac_ct_AR=$ac_cv_prog_ac_ct_AR
5942if test -n "$ac_ct_AR"; then
5943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5944$as_echo "$ac_ct_AR" >&6; }
5945else
5946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947$as_echo "no" >&6; }
5948fi
5949
5950
5951  test -n "$ac_ct_AR" && break
5952done
5953
5954  if test "x$ac_ct_AR" = x; then
5955    AR="false"
5956  else
5957    case $cross_compiling:$ac_tool_warned in
5958yes:)
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961ac_tool_warned=yes ;;
5962esac
5963    AR=$ac_ct_AR
5964  fi
5965fi
5966
5967: ${AR=ar}
5968: ${AR_FLAGS=cru}
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5981$as_echo_n "checking for archiver @FILE support... " >&6; }
5982if ${lt_cv_ar_at_file+:} false; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985  lt_cv_ar_at_file=no
5986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h.  */
5988
5989int
5990main ()
5991{
5992
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997if ac_fn_c_try_compile "$LINENO"; then :
5998  echo conftest.$ac_objext > conftest.lst
5999      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6000      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6001  (eval $lt_ar_try) 2>&5
6002  ac_status=$?
6003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004  test $ac_status = 0; }
6005      if test 0 -eq "$ac_status"; then
6006	# Ensure the archiver fails upon bogus file names.
6007	rm -f conftest.$ac_objext libconftest.a
6008	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6009  (eval $lt_ar_try) 2>&5
6010  ac_status=$?
6011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6012  test $ac_status = 0; }
6013	if test 0 -ne "$ac_status"; then
6014          lt_cv_ar_at_file=@
6015        fi
6016      fi
6017      rm -f conftest.* libconftest.a
6018
6019fi
6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6024$as_echo "$lt_cv_ar_at_file" >&6; }
6025
6026if test no = "$lt_cv_ar_at_file"; then
6027  archiver_list_spec=
6028else
6029  archiver_list_spec=$lt_cv_ar_at_file
6030fi
6031
6032
6033
6034
6035
6036
6037
6038if test -n "$ac_tool_prefix"; then
6039  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6040set dummy ${ac_tool_prefix}strip; ac_word=$2
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if ${ac_cv_prog_STRIP+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  if test -n "$STRIP"; then
6047  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052  IFS=$as_save_IFS
6053  test -z "$as_dir" && as_dir=.
6054    for ac_exec_ext in '' $ac_executable_extensions; do
6055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058    break 2
6059  fi
6060done
6061  done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066STRIP=$ac_cv_prog_STRIP
6067if test -n "$STRIP"; then
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6069$as_echo "$STRIP" >&6; }
6070else
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075
6076fi
6077if test -z "$ac_cv_prog_STRIP"; then
6078  ac_ct_STRIP=$STRIP
6079  # Extract the first word of "strip", so it can be a program name with args.
6080set dummy strip; ac_word=$2
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082$as_echo_n "checking for $ac_word... " >&6; }
6083if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  if test -n "$ac_ct_STRIP"; then
6087  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092  IFS=$as_save_IFS
6093  test -z "$as_dir" && as_dir=.
6094    for ac_exec_ext in '' $ac_executable_extensions; do
6095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096    ac_cv_prog_ac_ct_STRIP="strip"
6097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098    break 2
6099  fi
6100done
6101  done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6107if test -n "$ac_ct_STRIP"; then
6108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6109$as_echo "$ac_ct_STRIP" >&6; }
6110else
6111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
6113fi
6114
6115  if test "x$ac_ct_STRIP" = x; then
6116    STRIP=":"
6117  else
6118    case $cross_compiling:$ac_tool_warned in
6119yes:)
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122ac_tool_warned=yes ;;
6123esac
6124    STRIP=$ac_ct_STRIP
6125  fi
6126else
6127  STRIP="$ac_cv_prog_STRIP"
6128fi
6129
6130test -z "$STRIP" && STRIP=:
6131
6132
6133
6134
6135
6136
6137if test -n "$ac_tool_prefix"; then
6138  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6139set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141$as_echo_n "checking for $ac_word... " >&6; }
6142if ${ac_cv_prog_RANLIB+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  if test -n "$RANLIB"; then
6146  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151  IFS=$as_save_IFS
6152  test -z "$as_dir" && as_dir=.
6153    for ac_exec_ext in '' $ac_executable_extensions; do
6154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157    break 2
6158  fi
6159done
6160  done
6161IFS=$as_save_IFS
6162
6163fi
6164fi
6165RANLIB=$ac_cv_prog_RANLIB
6166if test -n "$RANLIB"; then
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6168$as_echo "$RANLIB" >&6; }
6169else
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
6172fi
6173
6174
6175fi
6176if test -z "$ac_cv_prog_RANLIB"; then
6177  ac_ct_RANLIB=$RANLIB
6178  # Extract the first word of "ranlib", so it can be a program name with args.
6179set dummy ranlib; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  if test -n "$ac_ct_RANLIB"; then
6186  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193    for ac_exec_ext in '' $ac_executable_extensions; do
6194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195    ac_cv_prog_ac_ct_RANLIB="ranlib"
6196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200  done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6206if test -n "$ac_ct_RANLIB"; then
6207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6208$as_echo "$ac_ct_RANLIB" >&6; }
6209else
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214  if test "x$ac_ct_RANLIB" = x; then
6215    RANLIB=":"
6216  else
6217    case $cross_compiling:$ac_tool_warned in
6218yes:)
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221ac_tool_warned=yes ;;
6222esac
6223    RANLIB=$ac_ct_RANLIB
6224  fi
6225else
6226  RANLIB="$ac_cv_prog_RANLIB"
6227fi
6228
6229test -z "$RANLIB" && RANLIB=:
6230
6231
6232
6233
6234
6235
6236# Determine commands to create old-style static archives.
6237old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6238old_postinstall_cmds='chmod 644 $oldlib'
6239old_postuninstall_cmds=
6240
6241if test -n "$RANLIB"; then
6242  case $host_os in
6243  bitrig* | openbsd*)
6244    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6245    ;;
6246  *)
6247    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6248    ;;
6249  esac
6250  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6251fi
6252
6253case $host_os in
6254  darwin*)
6255    lock_old_archive_extraction=yes ;;
6256  *)
6257    lock_old_archive_extraction=no ;;
6258esac
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298# If no C compiler was specified, use CC.
6299LTCC=${LTCC-"$CC"}
6300
6301# If no C compiler flags were specified, use CFLAGS.
6302LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6303
6304# Allow CC to be a program name with arguments.
6305compiler=$CC
6306
6307
6308# Check for command to grab the raw symbol name followed by C symbol from nm.
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6310$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6311if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314
6315# These are sane defaults that work on at least a few old systems.
6316# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6317
6318# Character class describing NM global symbol codes.
6319symcode='[BCDEGRST]'
6320
6321# Regexp to match symbols that can be accessed directly from C.
6322sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6323
6324# Define system-specific variables.
6325case $host_os in
6326aix*)
6327  symcode='[BCDT]'
6328  ;;
6329cygwin* | mingw* | pw32* | cegcc*)
6330  symcode='[ABCDGISTW]'
6331  ;;
6332hpux*)
6333  if test ia64 = "$host_cpu"; then
6334    symcode='[ABCDEGRST]'
6335  fi
6336  ;;
6337irix* | nonstopux*)
6338  symcode='[BCDEGRST]'
6339  ;;
6340osf*)
6341  symcode='[BCDEGQRST]'
6342  ;;
6343solaris*)
6344  symcode='[BDRT]'
6345  ;;
6346sco3.2v5*)
6347  symcode='[DT]'
6348  ;;
6349sysv4.2uw2*)
6350  symcode='[DT]'
6351  ;;
6352sysv5* | sco5v6* | unixware* | OpenUNIX*)
6353  symcode='[ABDT]'
6354  ;;
6355sysv4)
6356  symcode='[DFNSTU]'
6357  ;;
6358esac
6359
6360# If we're using GNU nm, then use its standard symbol codes.
6361case `$NM -V 2>&1` in
6362*GNU* | *'with BFD'*)
6363  symcode='[ABCDGIRSTW]' ;;
6364esac
6365
6366if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6367  # Gets list of data symbols to import.
6368  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6369  # Adjust the below global symbol transforms to fixup imported variables.
6370  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6371  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6372  lt_c_name_lib_hook="\
6373  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6374  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6375else
6376  # Disable hooks by default.
6377  lt_cv_sys_global_symbol_to_import=
6378  lt_cdecl_hook=
6379  lt_c_name_hook=
6380  lt_c_name_lib_hook=
6381fi
6382
6383# Transform an extracted symbol line into a proper C declaration.
6384# Some systems (esp. on ia64) link data and code symbols differently,
6385# so use this general approach.
6386lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6387$lt_cdecl_hook\
6388" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6389" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6390
6391# Transform an extracted symbol line into symbol name and symbol address
6392lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6393$lt_c_name_hook\
6394" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6395" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6396
6397# Transform an extracted symbol line into symbol name with lib prefix and
6398# symbol address.
6399lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6400$lt_c_name_lib_hook\
6401" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6402" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6403" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6404
6405# Handle CRLF in mingw tool chain
6406opt_cr=
6407case $build_os in
6408mingw*)
6409  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6410  ;;
6411esac
6412
6413# Try without a prefix underscore, then with it.
6414for ac_symprfx in "" "_"; do
6415
6416  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6417  symxfrm="\\1 $ac_symprfx\\2 \\2"
6418
6419  # Write the raw and C identifiers.
6420  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6421    # Fake it for dumpbin and say T for any non-static function,
6422    # D for any global variable and I for any imported variable.
6423    # Also find C++ and __fastcall symbols from MSVC++,
6424    # which start with @ or ?.
6425    lt_cv_sys_global_symbol_pipe="$AWK '"\
6426"     {last_section=section; section=\$ 3};"\
6427"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6428"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6429"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6430"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6431"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6432"     \$ 0!~/External *\|/{next};"\
6433"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6434"     {if(hide[section]) next};"\
6435"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6436"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6437"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6438"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6439"     ' prfx=^$ac_symprfx"
6440  else
6441    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6442  fi
6443  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6444
6445  # Check to see that the pipe works correctly.
6446  pipe_works=no
6447
6448  rm -f conftest*
6449  cat > conftest.$ac_ext <<_LT_EOF
6450#ifdef __cplusplus
6451extern "C" {
6452#endif
6453char nm_test_var;
6454void nm_test_func(void);
6455void nm_test_func(void){}
6456#ifdef __cplusplus
6457}
6458#endif
6459int main(){nm_test_var='a';nm_test_func();return(0);}
6460_LT_EOF
6461
6462  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463  (eval $ac_compile) 2>&5
6464  ac_status=$?
6465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466  test $ac_status = 0; }; then
6467    # Now try to grab the symbols.
6468    nlist=conftest.nm
6469    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6470  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6471  ac_status=$?
6472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473  test $ac_status = 0; } && test -s "$nlist"; then
6474      # Try sorting and uniquifying the output.
6475      if sort "$nlist" | uniq > "$nlist"T; then
6476	mv -f "$nlist"T "$nlist"
6477      else
6478	rm -f "$nlist"T
6479      fi
6480
6481      # Make sure that we snagged all the symbols we need.
6482      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6483	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6484	  cat <<_LT_EOF > conftest.$ac_ext
6485/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6486#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6487/* DATA imports from DLLs on WIN32 can't be const, because runtime
6488   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6489# define LT_DLSYM_CONST
6490#elif defined __osf__
6491/* This system does not cope well with relocations in const data.  */
6492# define LT_DLSYM_CONST
6493#else
6494# define LT_DLSYM_CONST const
6495#endif
6496
6497#ifdef __cplusplus
6498extern "C" {
6499#endif
6500
6501_LT_EOF
6502	  # Now generate the symbol file.
6503	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6504
6505	  cat <<_LT_EOF >> conftest.$ac_ext
6506
6507/* The mapping between symbol names and symbols.  */
6508LT_DLSYM_CONST struct {
6509  const char *name;
6510  void       *address;
6511}
6512lt__PROGRAM__LTX_preloaded_symbols[] =
6513{
6514  { "@PROGRAM@", (void *) 0 },
6515_LT_EOF
6516	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6517	  cat <<\_LT_EOF >> conftest.$ac_ext
6518  {0, (void *) 0}
6519};
6520
6521/* This works around a problem in FreeBSD linker */
6522#ifdef FREEBSD_WORKAROUND
6523static const void *lt_preloaded_setup() {
6524  return lt__PROGRAM__LTX_preloaded_symbols;
6525}
6526#endif
6527
6528#ifdef __cplusplus
6529}
6530#endif
6531_LT_EOF
6532	  # Now try linking the two files.
6533	  mv conftest.$ac_objext conftstm.$ac_objext
6534	  lt_globsym_save_LIBS=$LIBS
6535	  lt_globsym_save_CFLAGS=$CFLAGS
6536	  LIBS=conftstm.$ac_objext
6537	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6538	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6539  (eval $ac_link) 2>&5
6540  ac_status=$?
6541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6543	    pipe_works=yes
6544	  fi
6545	  LIBS=$lt_globsym_save_LIBS
6546	  CFLAGS=$lt_globsym_save_CFLAGS
6547	else
6548	  echo "cannot find nm_test_func in $nlist" >&5
6549	fi
6550      else
6551	echo "cannot find nm_test_var in $nlist" >&5
6552      fi
6553    else
6554      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6555    fi
6556  else
6557    echo "$progname: failed program was:" >&5
6558    cat conftest.$ac_ext >&5
6559  fi
6560  rm -rf conftest* conftst*
6561
6562  # Do not use the global_symbol_pipe unless it works.
6563  if test yes = "$pipe_works"; then
6564    break
6565  else
6566    lt_cv_sys_global_symbol_pipe=
6567  fi
6568done
6569
6570fi
6571
6572if test -z "$lt_cv_sys_global_symbol_pipe"; then
6573  lt_cv_sys_global_symbol_to_cdecl=
6574fi
6575if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6577$as_echo "failed" >&6; }
6578else
6579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6580$as_echo "ok" >&6; }
6581fi
6582
6583# Response file support.
6584if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6585  nm_file_list_spec='@'
6586elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6587  nm_file_list_spec='@'
6588fi
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6627$as_echo_n "checking for sysroot... " >&6; }
6628
6629# Check whether --with-sysroot was given.
6630if test "${with_sysroot+set}" = set; then :
6631  withval=$with_sysroot;
6632else
6633  with_sysroot=no
6634fi
6635
6636
6637lt_sysroot=
6638case $with_sysroot in #(
6639 yes)
6640   if test yes = "$GCC"; then
6641     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6642   fi
6643   ;; #(
6644 /*)
6645   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6646   ;; #(
6647 no|'')
6648   ;; #(
6649 *)
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6651$as_echo "$with_sysroot" >&6; }
6652   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6653   ;;
6654esac
6655
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6657$as_echo "${lt_sysroot:-no}" >&6; }
6658
6659
6660
6661
6662
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6664$as_echo_n "checking for a working dd... " >&6; }
6665if ${ac_cv_path_lt_DD+:} false; then :
6666  $as_echo_n "(cached) " >&6
6667else
6668  printf 0123456789abcdef0123456789abcdef >conftest.i
6669cat conftest.i conftest.i >conftest2.i
6670: ${lt_DD:=$DD}
6671if test -z "$lt_DD"; then
6672  ac_path_lt_DD_found=false
6673  # Loop through the user's path and test for each of PROGNAME-LIST
6674  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677  IFS=$as_save_IFS
6678  test -z "$as_dir" && as_dir=.
6679    for ac_prog in dd; do
6680    for ac_exec_ext in '' $ac_executable_extensions; do
6681      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6682      as_fn_executable_p "$ac_path_lt_DD" || continue
6683if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6684  cmp -s conftest.i conftest.out \
6685  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6686fi
6687      $ac_path_lt_DD_found && break 3
6688    done
6689  done
6690  done
6691IFS=$as_save_IFS
6692  if test -z "$ac_cv_path_lt_DD"; then
6693    :
6694  fi
6695else
6696  ac_cv_path_lt_DD=$lt_DD
6697fi
6698
6699rm -f conftest.i conftest2.i conftest.out
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6702$as_echo "$ac_cv_path_lt_DD" >&6; }
6703
6704
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6706$as_echo_n "checking how to truncate binary pipes... " >&6; }
6707if ${lt_cv_truncate_bin+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710  printf 0123456789abcdef0123456789abcdef >conftest.i
6711cat conftest.i conftest.i >conftest2.i
6712lt_cv_truncate_bin=
6713if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6714  cmp -s conftest.i conftest.out \
6715  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6716fi
6717rm -f conftest.i conftest2.i conftest.out
6718test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6721$as_echo "$lt_cv_truncate_bin" >&6; }
6722
6723
6724
6725
6726
6727
6728
6729# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6730func_cc_basename ()
6731{
6732    for cc_temp in $*""; do
6733      case $cc_temp in
6734        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6735        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6736        \-*) ;;
6737        *) break;;
6738      esac
6739    done
6740    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6741}
6742
6743# Check whether --enable-libtool-lock was given.
6744if test "${enable_libtool_lock+set}" = set; then :
6745  enableval=$enable_libtool_lock;
6746fi
6747
6748test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6749
6750# Some flags need to be propagated to the compiler or linker for good
6751# libtool support.
6752case $host in
6753ia64-*-hpux*)
6754  # Find out what ABI is being produced by ac_compile, and set mode
6755  # options accordingly.
6756  echo 'int i;' > conftest.$ac_ext
6757  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6758  (eval $ac_compile) 2>&5
6759  ac_status=$?
6760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761  test $ac_status = 0; }; then
6762    case `/usr/bin/file conftest.$ac_objext` in
6763      *ELF-32*)
6764	HPUX_IA64_MODE=32
6765	;;
6766      *ELF-64*)
6767	HPUX_IA64_MODE=64
6768	;;
6769    esac
6770  fi
6771  rm -rf conftest*
6772  ;;
6773*-*-irix6*)
6774  # Find out what ABI is being produced by ac_compile, and set linker
6775  # options accordingly.
6776  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6777  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6778  (eval $ac_compile) 2>&5
6779  ac_status=$?
6780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6781  test $ac_status = 0; }; then
6782    if test yes = "$lt_cv_prog_gnu_ld"; then
6783      case `/usr/bin/file conftest.$ac_objext` in
6784	*32-bit*)
6785	  LD="${LD-ld} -melf32bsmip"
6786	  ;;
6787	*N32*)
6788	  LD="${LD-ld} -melf32bmipn32"
6789	  ;;
6790	*64-bit*)
6791	  LD="${LD-ld} -melf64bmip"
6792	;;
6793      esac
6794    else
6795      case `/usr/bin/file conftest.$ac_objext` in
6796	*32-bit*)
6797	  LD="${LD-ld} -32"
6798	  ;;
6799	*N32*)
6800	  LD="${LD-ld} -n32"
6801	  ;;
6802	*64-bit*)
6803	  LD="${LD-ld} -64"
6804	  ;;
6805      esac
6806    fi
6807  fi
6808  rm -rf conftest*
6809  ;;
6810
6811mips64*-*linux*)
6812  # Find out what ABI is being produced by ac_compile, and set linker
6813  # options accordingly.
6814  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6815  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6816  (eval $ac_compile) 2>&5
6817  ac_status=$?
6818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6819  test $ac_status = 0; }; then
6820    emul=elf
6821    case `/usr/bin/file conftest.$ac_objext` in
6822      *32-bit*)
6823	emul="${emul}32"
6824	;;
6825      *64-bit*)
6826	emul="${emul}64"
6827	;;
6828    esac
6829    case `/usr/bin/file conftest.$ac_objext` in
6830      *MSB*)
6831	emul="${emul}btsmip"
6832	;;
6833      *LSB*)
6834	emul="${emul}ltsmip"
6835	;;
6836    esac
6837    case `/usr/bin/file conftest.$ac_objext` in
6838      *N32*)
6839	emul="${emul}n32"
6840	;;
6841    esac
6842    LD="${LD-ld} -m $emul"
6843  fi
6844  rm -rf conftest*
6845  ;;
6846
6847x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6848s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6849  # Find out what ABI is being produced by ac_compile, and set linker
6850  # options accordingly.  Note that the listed cases only cover the
6851  # situations where additional linker options are needed (such as when
6852  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6853  # vice versa); the common cases where no linker options are needed do
6854  # not appear in the list.
6855  echo 'int i;' > conftest.$ac_ext
6856  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857  (eval $ac_compile) 2>&5
6858  ac_status=$?
6859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860  test $ac_status = 0; }; then
6861    case `/usr/bin/file conftest.o` in
6862      *32-bit*)
6863	case $host in
6864	  x86_64-*kfreebsd*-gnu)
6865	    LD="${LD-ld} -m elf_i386_fbsd"
6866	    ;;
6867	  x86_64-*linux*)
6868	    case `/usr/bin/file conftest.o` in
6869	      *x86-64*)
6870		LD="${LD-ld} -m elf32_x86_64"
6871		;;
6872	      *)
6873		LD="${LD-ld} -m elf_i386"
6874		;;
6875	    esac
6876	    ;;
6877	  powerpc64le-*linux*)
6878	    LD="${LD-ld} -m elf32lppclinux"
6879	    ;;
6880	  powerpc64-*linux*)
6881	    LD="${LD-ld} -m elf32ppclinux"
6882	    ;;
6883	  s390x-*linux*)
6884	    LD="${LD-ld} -m elf_s390"
6885	    ;;
6886	  sparc64-*linux*)
6887	    LD="${LD-ld} -m elf32_sparc"
6888	    ;;
6889	esac
6890	;;
6891      *64-bit*)
6892	case $host in
6893	  x86_64-*kfreebsd*-gnu)
6894	    LD="${LD-ld} -m elf_x86_64_fbsd"
6895	    ;;
6896	  x86_64-*linux*)
6897	    LD="${LD-ld} -m elf_x86_64"
6898	    ;;
6899	  powerpcle-*linux*)
6900	    LD="${LD-ld} -m elf64lppc"
6901	    ;;
6902	  powerpc-*linux*)
6903	    LD="${LD-ld} -m elf64ppc"
6904	    ;;
6905	  s390*-*linux*|s390*-*tpf*)
6906	    LD="${LD-ld} -m elf64_s390"
6907	    ;;
6908	  sparc*-*linux*)
6909	    LD="${LD-ld} -m elf64_sparc"
6910	    ;;
6911	esac
6912	;;
6913    esac
6914  fi
6915  rm -rf conftest*
6916  ;;
6917
6918*-*-sco3.2v5*)
6919  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6920  SAVE_CFLAGS=$CFLAGS
6921  CFLAGS="$CFLAGS -belf"
6922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6923$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6924if ${lt_cv_cc_needs_belf+:} false; then :
6925  $as_echo_n "(cached) " >&6
6926else
6927  ac_ext=c
6928ac_cpp='$CPP $CPPFLAGS'
6929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931ac_compiler_gnu=$ac_cv_c_compiler_gnu
6932
6933     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934/* end confdefs.h.  */
6935
6936int
6937main ()
6938{
6939
6940  ;
6941  return 0;
6942}
6943_ACEOF
6944if ac_fn_c_try_link "$LINENO"; then :
6945  lt_cv_cc_needs_belf=yes
6946else
6947  lt_cv_cc_needs_belf=no
6948fi
6949rm -f core conftest.err conftest.$ac_objext \
6950    conftest$ac_exeext conftest.$ac_ext
6951     ac_ext=c
6952ac_cpp='$CPP $CPPFLAGS'
6953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955ac_compiler_gnu=$ac_cv_c_compiler_gnu
6956
6957fi
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6959$as_echo "$lt_cv_cc_needs_belf" >&6; }
6960  if test yes != "$lt_cv_cc_needs_belf"; then
6961    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6962    CFLAGS=$SAVE_CFLAGS
6963  fi
6964  ;;
6965*-*solaris*)
6966  # Find out what ABI is being produced by ac_compile, and set linker
6967  # options accordingly.
6968  echo 'int i;' > conftest.$ac_ext
6969  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6970  (eval $ac_compile) 2>&5
6971  ac_status=$?
6972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973  test $ac_status = 0; }; then
6974    case `/usr/bin/file conftest.o` in
6975    *64-bit*)
6976      case $lt_cv_prog_gnu_ld in
6977      yes*)
6978        case $host in
6979        i?86-*-solaris*|x86_64-*-solaris*)
6980          LD="${LD-ld} -m elf_x86_64"
6981          ;;
6982        sparc*-*-solaris*)
6983          LD="${LD-ld} -m elf64_sparc"
6984          ;;
6985        esac
6986        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6987        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6988          LD=${LD-ld}_sol2
6989        fi
6990        ;;
6991      *)
6992	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6993	  LD="${LD-ld} -64"
6994	fi
6995	;;
6996      esac
6997      ;;
6998    esac
6999  fi
7000  rm -rf conftest*
7001  ;;
7002esac
7003
7004need_locks=$enable_libtool_lock
7005
7006if test -n "$ac_tool_prefix"; then
7007  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7008set dummy ${ac_tool_prefix}mt; ac_word=$2
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010$as_echo_n "checking for $ac_word... " >&6; }
7011if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  if test -n "$MANIFEST_TOOL"; then
7015  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7016else
7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020  IFS=$as_save_IFS
7021  test -z "$as_dir" && as_dir=.
7022    for ac_exec_ext in '' $ac_executable_extensions; do
7023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026    break 2
7027  fi
7028done
7029  done
7030IFS=$as_save_IFS
7031
7032fi
7033fi
7034MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7035if test -n "$MANIFEST_TOOL"; then
7036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7037$as_echo "$MANIFEST_TOOL" >&6; }
7038else
7039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040$as_echo "no" >&6; }
7041fi
7042
7043
7044fi
7045if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7046  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7047  # Extract the first word of "mt", so it can be a program name with args.
7048set dummy mt; ac_word=$2
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050$as_echo_n "checking for $ac_word... " >&6; }
7051if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7052  $as_echo_n "(cached) " >&6
7053else
7054  if test -n "$ac_ct_MANIFEST_TOOL"; then
7055  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7056else
7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060  IFS=$as_save_IFS
7061  test -z "$as_dir" && as_dir=.
7062    for ac_exec_ext in '' $ac_executable_extensions; do
7063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066    break 2
7067  fi
7068done
7069  done
7070IFS=$as_save_IFS
7071
7072fi
7073fi
7074ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7075if test -n "$ac_ct_MANIFEST_TOOL"; then
7076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7077$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7078else
7079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080$as_echo "no" >&6; }
7081fi
7082
7083  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7084    MANIFEST_TOOL=":"
7085  else
7086    case $cross_compiling:$ac_tool_warned in
7087yes:)
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090ac_tool_warned=yes ;;
7091esac
7092    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7093  fi
7094else
7095  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7096fi
7097
7098test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7100$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7101if ${lt_cv_path_mainfest_tool+:} false; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  lt_cv_path_mainfest_tool=no
7105  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7106  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7107  cat conftest.err >&5
7108  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7109    lt_cv_path_mainfest_tool=yes
7110  fi
7111  rm -f conftest*
7112fi
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7114$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7115if test yes != "$lt_cv_path_mainfest_tool"; then
7116  MANIFEST_TOOL=:
7117fi
7118
7119
7120
7121
7122
7123
7124  case $host_os in
7125    rhapsody* | darwin*)
7126    if test -n "$ac_tool_prefix"; then
7127  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7128set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130$as_echo_n "checking for $ac_word... " >&6; }
7131if ${ac_cv_prog_DSYMUTIL+:} false; then :
7132  $as_echo_n "(cached) " >&6
7133else
7134  if test -n "$DSYMUTIL"; then
7135  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140  IFS=$as_save_IFS
7141  test -z "$as_dir" && as_dir=.
7142    for ac_exec_ext in '' $ac_executable_extensions; do
7143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146    break 2
7147  fi
7148done
7149  done
7150IFS=$as_save_IFS
7151
7152fi
7153fi
7154DSYMUTIL=$ac_cv_prog_DSYMUTIL
7155if test -n "$DSYMUTIL"; then
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7157$as_echo "$DSYMUTIL" >&6; }
7158else
7159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160$as_echo "no" >&6; }
7161fi
7162
7163
7164fi
7165if test -z "$ac_cv_prog_DSYMUTIL"; then
7166  ac_ct_DSYMUTIL=$DSYMUTIL
7167  # Extract the first word of "dsymutil", so it can be a program name with args.
7168set dummy dsymutil; ac_word=$2
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170$as_echo_n "checking for $ac_word... " >&6; }
7171if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  if test -n "$ac_ct_DSYMUTIL"; then
7175  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180  IFS=$as_save_IFS
7181  test -z "$as_dir" && as_dir=.
7182    for ac_exec_ext in '' $ac_executable_extensions; do
7183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186    break 2
7187  fi
7188done
7189  done
7190IFS=$as_save_IFS
7191
7192fi
7193fi
7194ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7195if test -n "$ac_ct_DSYMUTIL"; then
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7197$as_echo "$ac_ct_DSYMUTIL" >&6; }
7198else
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200$as_echo "no" >&6; }
7201fi
7202
7203  if test "x$ac_ct_DSYMUTIL" = x; then
7204    DSYMUTIL=":"
7205  else
7206    case $cross_compiling:$ac_tool_warned in
7207yes:)
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210ac_tool_warned=yes ;;
7211esac
7212    DSYMUTIL=$ac_ct_DSYMUTIL
7213  fi
7214else
7215  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7216fi
7217
7218    if test -n "$ac_tool_prefix"; then
7219  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7220set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222$as_echo_n "checking for $ac_word... " >&6; }
7223if ${ac_cv_prog_NMEDIT+:} false; then :
7224  $as_echo_n "(cached) " >&6
7225else
7226  if test -n "$NMEDIT"; then
7227  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232  IFS=$as_save_IFS
7233  test -z "$as_dir" && as_dir=.
7234    for ac_exec_ext in '' $ac_executable_extensions; do
7235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238    break 2
7239  fi
7240done
7241  done
7242IFS=$as_save_IFS
7243
7244fi
7245fi
7246NMEDIT=$ac_cv_prog_NMEDIT
7247if test -n "$NMEDIT"; then
7248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7249$as_echo "$NMEDIT" >&6; }
7250else
7251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252$as_echo "no" >&6; }
7253fi
7254
7255
7256fi
7257if test -z "$ac_cv_prog_NMEDIT"; then
7258  ac_ct_NMEDIT=$NMEDIT
7259  # Extract the first word of "nmedit", so it can be a program name with args.
7260set dummy nmedit; ac_word=$2
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262$as_echo_n "checking for $ac_word... " >&6; }
7263if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7264  $as_echo_n "(cached) " >&6
7265else
7266  if test -n "$ac_ct_NMEDIT"; then
7267  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7268else
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272  IFS=$as_save_IFS
7273  test -z "$as_dir" && as_dir=.
7274    for ac_exec_ext in '' $ac_executable_extensions; do
7275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278    break 2
7279  fi
7280done
7281  done
7282IFS=$as_save_IFS
7283
7284fi
7285fi
7286ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7287if test -n "$ac_ct_NMEDIT"; then
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7289$as_echo "$ac_ct_NMEDIT" >&6; }
7290else
7291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292$as_echo "no" >&6; }
7293fi
7294
7295  if test "x$ac_ct_NMEDIT" = x; then
7296    NMEDIT=":"
7297  else
7298    case $cross_compiling:$ac_tool_warned in
7299yes:)
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302ac_tool_warned=yes ;;
7303esac
7304    NMEDIT=$ac_ct_NMEDIT
7305  fi
7306else
7307  NMEDIT="$ac_cv_prog_NMEDIT"
7308fi
7309
7310    if test -n "$ac_tool_prefix"; then
7311  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7312set dummy ${ac_tool_prefix}lipo; ac_word=$2
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314$as_echo_n "checking for $ac_word... " >&6; }
7315if ${ac_cv_prog_LIPO+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  if test -n "$LIPO"; then
7319  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7320else
7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324  IFS=$as_save_IFS
7325  test -z "$as_dir" && as_dir=.
7326    for ac_exec_ext in '' $ac_executable_extensions; do
7327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330    break 2
7331  fi
7332done
7333  done
7334IFS=$as_save_IFS
7335
7336fi
7337fi
7338LIPO=$ac_cv_prog_LIPO
7339if test -n "$LIPO"; then
7340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7341$as_echo "$LIPO" >&6; }
7342else
7343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344$as_echo "no" >&6; }
7345fi
7346
7347
7348fi
7349if test -z "$ac_cv_prog_LIPO"; then
7350  ac_ct_LIPO=$LIPO
7351  # Extract the first word of "lipo", so it can be a program name with args.
7352set dummy lipo; ac_word=$2
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354$as_echo_n "checking for $ac_word... " >&6; }
7355if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  if test -n "$ac_ct_LIPO"; then
7359  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364  IFS=$as_save_IFS
7365  test -z "$as_dir" && as_dir=.
7366    for ac_exec_ext in '' $ac_executable_extensions; do
7367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368    ac_cv_prog_ac_ct_LIPO="lipo"
7369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370    break 2
7371  fi
7372done
7373  done
7374IFS=$as_save_IFS
7375
7376fi
7377fi
7378ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7379if test -n "$ac_ct_LIPO"; then
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7381$as_echo "$ac_ct_LIPO" >&6; }
7382else
7383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384$as_echo "no" >&6; }
7385fi
7386
7387  if test "x$ac_ct_LIPO" = x; then
7388    LIPO=":"
7389  else
7390    case $cross_compiling:$ac_tool_warned in
7391yes:)
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394ac_tool_warned=yes ;;
7395esac
7396    LIPO=$ac_ct_LIPO
7397  fi
7398else
7399  LIPO="$ac_cv_prog_LIPO"
7400fi
7401
7402    if test -n "$ac_tool_prefix"; then
7403  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7404set dummy ${ac_tool_prefix}otool; ac_word=$2
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406$as_echo_n "checking for $ac_word... " >&6; }
7407if ${ac_cv_prog_OTOOL+:} false; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  if test -n "$OTOOL"; then
7411  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7412else
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416  IFS=$as_save_IFS
7417  test -z "$as_dir" && as_dir=.
7418    for ac_exec_ext in '' $ac_executable_extensions; do
7419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422    break 2
7423  fi
7424done
7425  done
7426IFS=$as_save_IFS
7427
7428fi
7429fi
7430OTOOL=$ac_cv_prog_OTOOL
7431if test -n "$OTOOL"; then
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7433$as_echo "$OTOOL" >&6; }
7434else
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437fi
7438
7439
7440fi
7441if test -z "$ac_cv_prog_OTOOL"; then
7442  ac_ct_OTOOL=$OTOOL
7443  # Extract the first word of "otool", so it can be a program name with args.
7444set dummy otool; ac_word=$2
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446$as_echo_n "checking for $ac_word... " >&6; }
7447if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  if test -n "$ac_ct_OTOOL"; then
7451  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7452else
7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456  IFS=$as_save_IFS
7457  test -z "$as_dir" && as_dir=.
7458    for ac_exec_ext in '' $ac_executable_extensions; do
7459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460    ac_cv_prog_ac_ct_OTOOL="otool"
7461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462    break 2
7463  fi
7464done
7465  done
7466IFS=$as_save_IFS
7467
7468fi
7469fi
7470ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7471if test -n "$ac_ct_OTOOL"; then
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7473$as_echo "$ac_ct_OTOOL" >&6; }
7474else
7475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
7477fi
7478
7479  if test "x$ac_ct_OTOOL" = x; then
7480    OTOOL=":"
7481  else
7482    case $cross_compiling:$ac_tool_warned in
7483yes:)
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486ac_tool_warned=yes ;;
7487esac
7488    OTOOL=$ac_ct_OTOOL
7489  fi
7490else
7491  OTOOL="$ac_cv_prog_OTOOL"
7492fi
7493
7494    if test -n "$ac_tool_prefix"; then
7495  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7496set dummy ${ac_tool_prefix}otool64; ac_word=$2
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498$as_echo_n "checking for $ac_word... " >&6; }
7499if ${ac_cv_prog_OTOOL64+:} false; then :
7500  $as_echo_n "(cached) " >&6
7501else
7502  if test -n "$OTOOL64"; then
7503  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7504else
7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508  IFS=$as_save_IFS
7509  test -z "$as_dir" && as_dir=.
7510    for ac_exec_ext in '' $ac_executable_extensions; do
7511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514    break 2
7515  fi
7516done
7517  done
7518IFS=$as_save_IFS
7519
7520fi
7521fi
7522OTOOL64=$ac_cv_prog_OTOOL64
7523if test -n "$OTOOL64"; then
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7525$as_echo "$OTOOL64" >&6; }
7526else
7527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528$as_echo "no" >&6; }
7529fi
7530
7531
7532fi
7533if test -z "$ac_cv_prog_OTOOL64"; then
7534  ac_ct_OTOOL64=$OTOOL64
7535  # Extract the first word of "otool64", so it can be a program name with args.
7536set dummy otool64; ac_word=$2
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538$as_echo_n "checking for $ac_word... " >&6; }
7539if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  if test -n "$ac_ct_OTOOL64"; then
7543  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7544else
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548  IFS=$as_save_IFS
7549  test -z "$as_dir" && as_dir=.
7550    for ac_exec_ext in '' $ac_executable_extensions; do
7551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552    ac_cv_prog_ac_ct_OTOOL64="otool64"
7553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554    break 2
7555  fi
7556done
7557  done
7558IFS=$as_save_IFS
7559
7560fi
7561fi
7562ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7563if test -n "$ac_ct_OTOOL64"; then
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7565$as_echo "$ac_ct_OTOOL64" >&6; }
7566else
7567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568$as_echo "no" >&6; }
7569fi
7570
7571  if test "x$ac_ct_OTOOL64" = x; then
7572    OTOOL64=":"
7573  else
7574    case $cross_compiling:$ac_tool_warned in
7575yes:)
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578ac_tool_warned=yes ;;
7579esac
7580    OTOOL64=$ac_ct_OTOOL64
7581  fi
7582else
7583  OTOOL64="$ac_cv_prog_OTOOL64"
7584fi
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7613$as_echo_n "checking for -single_module linker flag... " >&6; }
7614if ${lt_cv_apple_cc_single_mod+:} false; then :
7615  $as_echo_n "(cached) " >&6
7616else
7617  lt_cv_apple_cc_single_mod=no
7618      if test -z "$LT_MULTI_MODULE"; then
7619	# By default we will add the -single_module flag. You can override
7620	# by either setting the environment variable LT_MULTI_MODULE
7621	# non-empty at configure time, or by adding -multi_module to the
7622	# link flags.
7623	rm -rf libconftest.dylib*
7624	echo "int foo(void){return 1;}" > conftest.c
7625	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7626-dynamiclib -Wl,-single_module conftest.c" >&5
7627	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7628	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7629        _lt_result=$?
7630	# If there is a non-empty error log, and "single_module"
7631	# appears in it, assume the flag caused a linker warning
7632        if test -s conftest.err && $GREP single_module conftest.err; then
7633	  cat conftest.err >&5
7634	# Otherwise, if the output was created with a 0 exit code from
7635	# the compiler, it worked.
7636	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7637	  lt_cv_apple_cc_single_mod=yes
7638	else
7639	  cat conftest.err >&5
7640	fi
7641	rm -rf libconftest.dylib*
7642	rm -f conftest.*
7643      fi
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7646$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7647
7648    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7649$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7650if ${lt_cv_ld_exported_symbols_list+:} false; then :
7651  $as_echo_n "(cached) " >&6
7652else
7653  lt_cv_ld_exported_symbols_list=no
7654      save_LDFLAGS=$LDFLAGS
7655      echo "_main" > conftest.sym
7656      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7657      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658/* end confdefs.h.  */
7659
7660int
7661main ()
7662{
7663
7664  ;
7665  return 0;
7666}
7667_ACEOF
7668if ac_fn_c_try_link "$LINENO"; then :
7669  lt_cv_ld_exported_symbols_list=yes
7670else
7671  lt_cv_ld_exported_symbols_list=no
7672fi
7673rm -f core conftest.err conftest.$ac_objext \
7674    conftest$ac_exeext conftest.$ac_ext
7675	LDFLAGS=$save_LDFLAGS
7676
7677fi
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7679$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7680
7681    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7682$as_echo_n "checking for -force_load linker flag... " >&6; }
7683if ${lt_cv_ld_force_load+:} false; then :
7684  $as_echo_n "(cached) " >&6
7685else
7686  lt_cv_ld_force_load=no
7687      cat > conftest.c << _LT_EOF
7688int forced_loaded() { return 2;}
7689_LT_EOF
7690      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7691      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7692      echo "$AR cru libconftest.a conftest.o" >&5
7693      $AR cru libconftest.a conftest.o 2>&5
7694      echo "$RANLIB libconftest.a" >&5
7695      $RANLIB libconftest.a 2>&5
7696      cat > conftest.c << _LT_EOF
7697int main() { return 0;}
7698_LT_EOF
7699      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7700      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7701      _lt_result=$?
7702      if test -s conftest.err && $GREP force_load conftest.err; then
7703	cat conftest.err >&5
7704      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7705	lt_cv_ld_force_load=yes
7706      else
7707	cat conftest.err >&5
7708      fi
7709        rm -f conftest.err libconftest.a conftest conftest.c
7710        rm -rf conftest.dSYM
7711
7712fi
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7714$as_echo "$lt_cv_ld_force_load" >&6; }
7715    case $host_os in
7716    rhapsody* | darwin1.[012])
7717      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7718    darwin1.*)
7719      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7720    darwin*) # darwin 5.x on
7721      # if running on 10.5 or later, the deployment target defaults
7722      # to the OS version, if on x86, and 10.4, the deployment
7723      # target defaults to 10.4. Don't you love it?
7724      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7725	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7726	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7727	10.[012][,.]*)
7728	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7729	10.*)
7730	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7731      esac
7732    ;;
7733  esac
7734    if test yes = "$lt_cv_apple_cc_single_mod"; then
7735      _lt_dar_single_mod='$single_module'
7736    fi
7737    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7738      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7739    else
7740      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7741    fi
7742    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7743      _lt_dsymutil='~$DSYMUTIL $lib || :'
7744    else
7745      _lt_dsymutil=
7746    fi
7747    ;;
7748  esac
7749
7750# func_munge_path_list VARIABLE PATH
7751# -----------------------------------
7752# VARIABLE is name of variable containing _space_ separated list of
7753# directories to be munged by the contents of PATH, which is string
7754# having a format:
7755# "DIR[:DIR]:"
7756#       string "DIR[ DIR]" will be prepended to VARIABLE
7757# ":DIR[:DIR]"
7758#       string "DIR[ DIR]" will be appended to VARIABLE
7759# "DIRP[:DIRP]::[DIRA:]DIRA"
7760#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7761#       "DIRA[ DIRA]" will be appended to VARIABLE
7762# "DIR[:DIR]"
7763#       VARIABLE will be replaced by "DIR[ DIR]"
7764func_munge_path_list ()
7765{
7766    case x$2 in
7767    x)
7768        ;;
7769    *:)
7770        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7771        ;;
7772    x:*)
7773        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7774        ;;
7775    *::*)
7776        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7777        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7778        ;;
7779    *)
7780        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7781        ;;
7782    esac
7783}
7784
7785ac_ext=c
7786ac_cpp='$CPP $CPPFLAGS'
7787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789ac_compiler_gnu=$ac_cv_c_compiler_gnu
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7791$as_echo_n "checking how to run the C preprocessor... " >&6; }
7792# On Suns, sometimes $CPP names a directory.
7793if test -n "$CPP" && test -d "$CPP"; then
7794  CPP=
7795fi
7796if test -z "$CPP"; then
7797  if ${ac_cv_prog_CPP+:} false; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800      # Double quotes because CPP needs to be expanded
7801    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7802    do
7803      ac_preproc_ok=false
7804for ac_c_preproc_warn_flag in '' yes
7805do
7806  # Use a header file that comes with gcc, so configuring glibc
7807  # with a fresh cross-compiler works.
7808  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7809  # <limits.h> exists even on freestanding compilers.
7810  # On the NeXT, cc -E runs the code through the compiler's parser,
7811  # not just through cpp. "Syntax error" is here to catch this case.
7812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h.  */
7814#ifdef __STDC__
7815# include <limits.h>
7816#else
7817# include <assert.h>
7818#endif
7819		     Syntax error
7820_ACEOF
7821if ac_fn_c_try_cpp "$LINENO"; then :
7822
7823else
7824  # Broken: fails on valid input.
7825continue
7826fi
7827rm -f conftest.err conftest.i conftest.$ac_ext
7828
7829  # OK, works on sane cases.  Now check whether nonexistent headers
7830  # can be detected and how.
7831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h.  */
7833#include <ac_nonexistent.h>
7834_ACEOF
7835if ac_fn_c_try_cpp "$LINENO"; then :
7836  # Broken: success on invalid input.
7837continue
7838else
7839  # Passes both tests.
7840ac_preproc_ok=:
7841break
7842fi
7843rm -f conftest.err conftest.i conftest.$ac_ext
7844
7845done
7846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7847rm -f conftest.i conftest.err conftest.$ac_ext
7848if $ac_preproc_ok; then :
7849  break
7850fi
7851
7852    done
7853    ac_cv_prog_CPP=$CPP
7854
7855fi
7856  CPP=$ac_cv_prog_CPP
7857else
7858  ac_cv_prog_CPP=$CPP
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7861$as_echo "$CPP" >&6; }
7862ac_preproc_ok=false
7863for ac_c_preproc_warn_flag in '' yes
7864do
7865  # Use a header file that comes with gcc, so configuring glibc
7866  # with a fresh cross-compiler works.
7867  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7868  # <limits.h> exists even on freestanding compilers.
7869  # On the NeXT, cc -E runs the code through the compiler's parser,
7870  # not just through cpp. "Syntax error" is here to catch this case.
7871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h.  */
7873#ifdef __STDC__
7874# include <limits.h>
7875#else
7876# include <assert.h>
7877#endif
7878		     Syntax error
7879_ACEOF
7880if ac_fn_c_try_cpp "$LINENO"; then :
7881
7882else
7883  # Broken: fails on valid input.
7884continue
7885fi
7886rm -f conftest.err conftest.i conftest.$ac_ext
7887
7888  # OK, works on sane cases.  Now check whether nonexistent headers
7889  # can be detected and how.
7890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h.  */
7892#include <ac_nonexistent.h>
7893_ACEOF
7894if ac_fn_c_try_cpp "$LINENO"; then :
7895  # Broken: success on invalid input.
7896continue
7897else
7898  # Passes both tests.
7899ac_preproc_ok=:
7900break
7901fi
7902rm -f conftest.err conftest.i conftest.$ac_ext
7903
7904done
7905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7906rm -f conftest.i conftest.err conftest.$ac_ext
7907if $ac_preproc_ok; then :
7908
7909else
7910  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7912as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7913See \`config.log' for more details" "$LINENO" 5; }
7914fi
7915
7916ac_ext=c
7917ac_cpp='$CPP $CPPFLAGS'
7918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7924$as_echo_n "checking for ANSI C header files... " >&6; }
7925if ${ac_cv_header_stdc+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h.  */
7930#include <stdlib.h>
7931#include <stdarg.h>
7932#include <string.h>
7933#include <float.h>
7934
7935int
7936main ()
7937{
7938
7939  ;
7940  return 0;
7941}
7942_ACEOF
7943if ac_fn_c_try_compile "$LINENO"; then :
7944  ac_cv_header_stdc=yes
7945else
7946  ac_cv_header_stdc=no
7947fi
7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949
7950if test $ac_cv_header_stdc = yes; then
7951  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h.  */
7954#include <string.h>
7955
7956_ACEOF
7957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7958  $EGREP "memchr" >/dev/null 2>&1; then :
7959
7960else
7961  ac_cv_header_stdc=no
7962fi
7963rm -f conftest*
7964
7965fi
7966
7967if test $ac_cv_header_stdc = yes; then
7968  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h.  */
7971#include <stdlib.h>
7972
7973_ACEOF
7974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975  $EGREP "free" >/dev/null 2>&1; then :
7976
7977else
7978  ac_cv_header_stdc=no
7979fi
7980rm -f conftest*
7981
7982fi
7983
7984if test $ac_cv_header_stdc = yes; then
7985  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7986  if test "$cross_compiling" = yes; then :
7987  :
7988else
7989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990/* end confdefs.h.  */
7991#include <ctype.h>
7992#include <stdlib.h>
7993#if ((' ' & 0x0FF) == 0x020)
7994# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7995# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7996#else
7997# define ISLOWER(c) \
7998		   (('a' <= (c) && (c) <= 'i') \
7999		     || ('j' <= (c) && (c) <= 'r') \
8000		     || ('s' <= (c) && (c) <= 'z'))
8001# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8002#endif
8003
8004#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8005int
8006main ()
8007{
8008  int i;
8009  for (i = 0; i < 256; i++)
8010    if (XOR (islower (i), ISLOWER (i))
8011	|| toupper (i) != TOUPPER (i))
8012      return 2;
8013  return 0;
8014}
8015_ACEOF
8016if ac_fn_c_try_run "$LINENO"; then :
8017
8018else
8019  ac_cv_header_stdc=no
8020fi
8021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8022  conftest.$ac_objext conftest.beam conftest.$ac_ext
8023fi
8024
8025fi
8026fi
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8028$as_echo "$ac_cv_header_stdc" >&6; }
8029if test $ac_cv_header_stdc = yes; then
8030
8031$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8032
8033fi
8034
8035# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8036for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8037		  inttypes.h stdint.h unistd.h
8038do :
8039  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8041"
8042if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8043  cat >>confdefs.h <<_ACEOF
8044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8045_ACEOF
8046
8047fi
8048
8049done
8050
8051
8052for ac_header in dlfcn.h
8053do :
8054  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8055"
8056if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8057  cat >>confdefs.h <<_ACEOF
8058#define HAVE_DLFCN_H 1
8059_ACEOF
8060
8061fi
8062
8063done
8064
8065
8066
8067
8068
8069# Set options
8070
8071
8072
8073
8074  enable_win32_dll=no
8075
8076
8077            # Check whether --enable-shared was given.
8078if test "${enable_shared+set}" = set; then :
8079  enableval=$enable_shared; p=${PACKAGE-default}
8080    case $enableval in
8081    yes) enable_shared=yes ;;
8082    no) enable_shared=no ;;
8083    *)
8084      enable_shared=no
8085      # Look at the argument we got.  We use all the common list separators.
8086      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8087      for pkg in $enableval; do
8088	IFS=$lt_save_ifs
8089	if test "X$pkg" = "X$p"; then
8090	  enable_shared=yes
8091	fi
8092      done
8093      IFS=$lt_save_ifs
8094      ;;
8095    esac
8096else
8097  enable_shared=yes
8098fi
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108  # Check whether --enable-static was given.
8109if test "${enable_static+set}" = set; then :
8110  enableval=$enable_static; p=${PACKAGE-default}
8111    case $enableval in
8112    yes) enable_static=yes ;;
8113    no) enable_static=no ;;
8114    *)
8115     enable_static=no
8116      # Look at the argument we got.  We use all the common list separators.
8117      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8118      for pkg in $enableval; do
8119	IFS=$lt_save_ifs
8120	if test "X$pkg" = "X$p"; then
8121	  enable_static=yes
8122	fi
8123      done
8124      IFS=$lt_save_ifs
8125      ;;
8126    esac
8127else
8128  enable_static=yes
8129fi
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140# Check whether --with-pic was given.
8141if test "${with_pic+set}" = set; then :
8142  withval=$with_pic; lt_p=${PACKAGE-default}
8143    case $withval in
8144    yes|no) pic_mode=$withval ;;
8145    *)
8146      pic_mode=default
8147      # Look at the argument we got.  We use all the common list separators.
8148      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8149      for lt_pkg in $withval; do
8150	IFS=$lt_save_ifs
8151	if test "X$lt_pkg" = "X$lt_p"; then
8152	  pic_mode=yes
8153	fi
8154      done
8155      IFS=$lt_save_ifs
8156      ;;
8157    esac
8158else
8159  pic_mode=default
8160fi
8161
8162
8163
8164
8165
8166
8167
8168
8169  # Check whether --enable-fast-install was given.
8170if test "${enable_fast_install+set}" = set; then :
8171  enableval=$enable_fast_install; p=${PACKAGE-default}
8172    case $enableval in
8173    yes) enable_fast_install=yes ;;
8174    no) enable_fast_install=no ;;
8175    *)
8176      enable_fast_install=no
8177      # Look at the argument we got.  We use all the common list separators.
8178      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8179      for pkg in $enableval; do
8180	IFS=$lt_save_ifs
8181	if test "X$pkg" = "X$p"; then
8182	  enable_fast_install=yes
8183	fi
8184      done
8185      IFS=$lt_save_ifs
8186      ;;
8187    esac
8188else
8189  enable_fast_install=yes
8190fi
8191
8192
8193
8194
8195
8196
8197
8198
8199  shared_archive_member_spec=
8200case $host,$enable_shared in
8201power*-*-aix[5-9]*,yes)
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8203$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8204
8205# Check whether --with-aix-soname was given.
8206if test "${with_aix_soname+set}" = set; then :
8207  withval=$with_aix_soname; case $withval in
8208    aix|svr4|both)
8209      ;;
8210    *)
8211      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8212      ;;
8213    esac
8214    lt_cv_with_aix_soname=$with_aix_soname
8215else
8216  if ${lt_cv_with_aix_soname+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  lt_cv_with_aix_soname=aix
8220fi
8221
8222    with_aix_soname=$lt_cv_with_aix_soname
8223fi
8224
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8226$as_echo "$with_aix_soname" >&6; }
8227  if test aix != "$with_aix_soname"; then
8228    # For the AIX way of multilib, we name the shared archive member
8229    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8230    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8231    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8232    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8233    if test 64 = "${OBJECT_MODE-32}"; then
8234      shared_archive_member_spec=shr_64
8235    else
8236      shared_archive_member_spec=shr
8237    fi
8238  fi
8239  ;;
8240*)
8241  with_aix_soname=aix
8242  ;;
8243esac
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254# This can be used to rebuild libtool when needed
8255LIBTOOL_DEPS=$ltmain
8256
8257# Always use our own libtool.
8258LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289test -z "$LN_S" && LN_S="ln -s"
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304if test -n "${ZSH_VERSION+set}"; then
8305   setopt NO_GLOB_SUBST
8306fi
8307
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8309$as_echo_n "checking for objdir... " >&6; }
8310if ${lt_cv_objdir+:} false; then :
8311  $as_echo_n "(cached) " >&6
8312else
8313  rm -f .libs 2>/dev/null
8314mkdir .libs 2>/dev/null
8315if test -d .libs; then
8316  lt_cv_objdir=.libs
8317else
8318  # MS-DOS does not allow filenames that begin with a dot.
8319  lt_cv_objdir=_libs
8320fi
8321rmdir .libs 2>/dev/null
8322fi
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8324$as_echo "$lt_cv_objdir" >&6; }
8325objdir=$lt_cv_objdir
8326
8327
8328
8329
8330
8331cat >>confdefs.h <<_ACEOF
8332#define LT_OBJDIR "$lt_cv_objdir/"
8333_ACEOF
8334
8335
8336
8337
8338case $host_os in
8339aix3*)
8340  # AIX sometimes has problems with the GCC collect2 program.  For some
8341  # reason, if we set the COLLECT_NAMES environment variable, the problems
8342  # vanish in a puff of smoke.
8343  if test set != "${COLLECT_NAMES+set}"; then
8344    COLLECT_NAMES=
8345    export COLLECT_NAMES
8346  fi
8347  ;;
8348esac
8349
8350# Global variables:
8351ofile=libtool
8352can_build_shared=yes
8353
8354# All known linkers require a '.a' archive for static linking (except MSVC,
8355# which needs '.lib').
8356libext=a
8357
8358with_gnu_ld=$lt_cv_prog_gnu_ld
8359
8360old_CC=$CC
8361old_CFLAGS=$CFLAGS
8362
8363# Set sane defaults for various variables
8364test -z "$CC" && CC=cc
8365test -z "$LTCC" && LTCC=$CC
8366test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8367test -z "$LD" && LD=ld
8368test -z "$ac_objext" && ac_objext=o
8369
8370func_cc_basename $compiler
8371cc_basename=$func_cc_basename_result
8372
8373
8374# Only perform the check for file, if the check method requires it
8375test -z "$MAGIC_CMD" && MAGIC_CMD=file
8376case $deplibs_check_method in
8377file_magic*)
8378  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8380$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8381if ${lt_cv_path_MAGIC_CMD+:} false; then :
8382  $as_echo_n "(cached) " >&6
8383else
8384  case $MAGIC_CMD in
8385[\\/*] |  ?:[\\/]*)
8386  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8387  ;;
8388*)
8389  lt_save_MAGIC_CMD=$MAGIC_CMD
8390  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8391  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8392  for ac_dir in $ac_dummy; do
8393    IFS=$lt_save_ifs
8394    test -z "$ac_dir" && ac_dir=.
8395    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8396      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8397      if test -n "$file_magic_test_file"; then
8398	case $deplibs_check_method in
8399	"file_magic "*)
8400	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8401	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8402	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8403	    $EGREP "$file_magic_regex" > /dev/null; then
8404	    :
8405	  else
8406	    cat <<_LT_EOF 1>&2
8407
8408*** Warning: the command libtool uses to detect shared libraries,
8409*** $file_magic_cmd, produces output that libtool cannot recognize.
8410*** The result is that libtool may fail to recognize shared libraries
8411*** as such.  This will affect the creation of libtool libraries that
8412*** depend on shared libraries, but programs linked with such libtool
8413*** libraries will work regardless of this problem.  Nevertheless, you
8414*** may want to report the problem to your system manager and/or to
8415*** bug-libtool@gnu.org
8416
8417_LT_EOF
8418	  fi ;;
8419	esac
8420      fi
8421      break
8422    fi
8423  done
8424  IFS=$lt_save_ifs
8425  MAGIC_CMD=$lt_save_MAGIC_CMD
8426  ;;
8427esac
8428fi
8429
8430MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8431if test -n "$MAGIC_CMD"; then
8432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8433$as_echo "$MAGIC_CMD" >&6; }
8434else
8435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
8437fi
8438
8439
8440
8441
8442
8443if test -z "$lt_cv_path_MAGIC_CMD"; then
8444  if test -n "$ac_tool_prefix"; then
8445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8446$as_echo_n "checking for file... " >&6; }
8447if ${lt_cv_path_MAGIC_CMD+:} false; then :
8448  $as_echo_n "(cached) " >&6
8449else
8450  case $MAGIC_CMD in
8451[\\/*] |  ?:[\\/]*)
8452  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8453  ;;
8454*)
8455  lt_save_MAGIC_CMD=$MAGIC_CMD
8456  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8457  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8458  for ac_dir in $ac_dummy; do
8459    IFS=$lt_save_ifs
8460    test -z "$ac_dir" && ac_dir=.
8461    if test -f "$ac_dir/file"; then
8462      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8463      if test -n "$file_magic_test_file"; then
8464	case $deplibs_check_method in
8465	"file_magic "*)
8466	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8467	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8468	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8469	    $EGREP "$file_magic_regex" > /dev/null; then
8470	    :
8471	  else
8472	    cat <<_LT_EOF 1>&2
8473
8474*** Warning: the command libtool uses to detect shared libraries,
8475*** $file_magic_cmd, produces output that libtool cannot recognize.
8476*** The result is that libtool may fail to recognize shared libraries
8477*** as such.  This will affect the creation of libtool libraries that
8478*** depend on shared libraries, but programs linked with such libtool
8479*** libraries will work regardless of this problem.  Nevertheless, you
8480*** may want to report the problem to your system manager and/or to
8481*** bug-libtool@gnu.org
8482
8483_LT_EOF
8484	  fi ;;
8485	esac
8486      fi
8487      break
8488    fi
8489  done
8490  IFS=$lt_save_ifs
8491  MAGIC_CMD=$lt_save_MAGIC_CMD
8492  ;;
8493esac
8494fi
8495
8496MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8497if test -n "$MAGIC_CMD"; then
8498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8499$as_echo "$MAGIC_CMD" >&6; }
8500else
8501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502$as_echo "no" >&6; }
8503fi
8504
8505
8506  else
8507    MAGIC_CMD=:
8508  fi
8509fi
8510
8511  fi
8512  ;;
8513esac
8514
8515# Use C for the default configuration in the libtool script
8516
8517lt_save_CC=$CC
8518ac_ext=c
8519ac_cpp='$CPP $CPPFLAGS'
8520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8522ac_compiler_gnu=$ac_cv_c_compiler_gnu
8523
8524
8525# Source file extension for C test sources.
8526ac_ext=c
8527
8528# Object file extension for compiled C test sources.
8529objext=o
8530objext=$objext
8531
8532# Code to be used in simple compile tests
8533lt_simple_compile_test_code="int some_variable = 0;"
8534
8535# Code to be used in simple link tests
8536lt_simple_link_test_code='int main(){return(0);}'
8537
8538
8539
8540
8541
8542
8543
8544# If no C compiler was specified, use CC.
8545LTCC=${LTCC-"$CC"}
8546
8547# If no C compiler flags were specified, use CFLAGS.
8548LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8549
8550# Allow CC to be a program name with arguments.
8551compiler=$CC
8552
8553# Save the default compiler, since it gets overwritten when the other
8554# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8555compiler_DEFAULT=$CC
8556
8557# save warnings/boilerplate of simple test code
8558ac_outfile=conftest.$ac_objext
8559echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8560eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8561_lt_compiler_boilerplate=`cat conftest.err`
8562$RM conftest*
8563
8564ac_outfile=conftest.$ac_objext
8565echo "$lt_simple_link_test_code" >conftest.$ac_ext
8566eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8567_lt_linker_boilerplate=`cat conftest.err`
8568$RM -r conftest*
8569
8570
8571if test -n "$compiler"; then
8572
8573lt_prog_compiler_no_builtin_flag=
8574
8575if test yes = "$GCC"; then
8576  case $cc_basename in
8577  nvcc*)
8578    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8579  *)
8580    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8581  esac
8582
8583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8584$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8585if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8586  $as_echo_n "(cached) " >&6
8587else
8588  lt_cv_prog_compiler_rtti_exceptions=no
8589   ac_outfile=conftest.$ac_objext
8590   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8591   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8592   # Insert the option either (1) after the last *FLAGS variable, or
8593   # (2) before a word containing "conftest.", or (3) at the end.
8594   # Note that $ac_compile itself does not contain backslashes and begins
8595   # with a dollar sign (not a hyphen), so the echo should work correctly.
8596   # The option is referenced via a variable to avoid confusing sed.
8597   lt_compile=`echo "$ac_compile" | $SED \
8598   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8599   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8600   -e 's:$: $lt_compiler_flag:'`
8601   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8602   (eval "$lt_compile" 2>conftest.err)
8603   ac_status=$?
8604   cat conftest.err >&5
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   if (exit $ac_status) && test -s "$ac_outfile"; then
8607     # The compiler can only warn and ignore the option if not recognized
8608     # So say no if there are warnings other than the usual output.
8609     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8610     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8611     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8612       lt_cv_prog_compiler_rtti_exceptions=yes
8613     fi
8614   fi
8615   $RM conftest*
8616
8617fi
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8619$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8620
8621if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8622    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8623else
8624    :
8625fi
8626
8627fi
8628
8629
8630
8631
8632
8633
8634  lt_prog_compiler_wl=
8635lt_prog_compiler_pic=
8636lt_prog_compiler_static=
8637
8638
8639  if test yes = "$GCC"; then
8640    lt_prog_compiler_wl='-Wl,'
8641    lt_prog_compiler_static='-static'
8642
8643    case $host_os in
8644      aix*)
8645      # All AIX code is PIC.
8646      if test ia64 = "$host_cpu"; then
8647	# AIX 5 now supports IA64 processor
8648	lt_prog_compiler_static='-Bstatic'
8649      fi
8650      lt_prog_compiler_pic='-fPIC'
8651      ;;
8652
8653    amigaos*)
8654      case $host_cpu in
8655      powerpc)
8656            # see comment about AmigaOS4 .so support
8657            lt_prog_compiler_pic='-fPIC'
8658        ;;
8659      m68k)
8660            # FIXME: we need at least 68020 code to build shared libraries, but
8661            # adding the '-m68020' flag to GCC prevents building anything better,
8662            # like '-m68040'.
8663            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8664        ;;
8665      esac
8666      ;;
8667
8668    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8669      # PIC is the default for these OSes.
8670      ;;
8671
8672    mingw* | cygwin* | pw32* | os2* | cegcc*)
8673      # This hack is so that the source file can tell whether it is being
8674      # built for inclusion in a dll (and should export symbols for example).
8675      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8676      # (--disable-auto-import) libraries
8677      lt_prog_compiler_pic='-DDLL_EXPORT'
8678      case $host_os in
8679      os2*)
8680	lt_prog_compiler_static='$wl-static'
8681	;;
8682      esac
8683      ;;
8684
8685    darwin* | rhapsody*)
8686      # PIC is the default on this platform
8687      # Common symbols not allowed in MH_DYLIB files
8688      lt_prog_compiler_pic='-fno-common'
8689      ;;
8690
8691    haiku*)
8692      # PIC is the default for Haiku.
8693      # The "-static" flag exists, but is broken.
8694      lt_prog_compiler_static=
8695      ;;
8696
8697    hpux*)
8698      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8699      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8700      # sets the default TLS model and affects inlining.
8701      case $host_cpu in
8702      hppa*64*)
8703	# +Z the default
8704	;;
8705      *)
8706	lt_prog_compiler_pic='-fPIC'
8707	;;
8708      esac
8709      ;;
8710
8711    interix[3-9]*)
8712      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8713      # Instead, we relocate shared libraries at runtime.
8714      ;;
8715
8716    msdosdjgpp*)
8717      # Just because we use GCC doesn't mean we suddenly get shared libraries
8718      # on systems that don't support them.
8719      lt_prog_compiler_can_build_shared=no
8720      enable_shared=no
8721      ;;
8722
8723    *nto* | *qnx*)
8724      # QNX uses GNU C++, but need to define -shared option too, otherwise
8725      # it will coredump.
8726      lt_prog_compiler_pic='-fPIC -shared'
8727      ;;
8728
8729    sysv4*MP*)
8730      if test -d /usr/nec; then
8731	lt_prog_compiler_pic=-Kconform_pic
8732      fi
8733      ;;
8734
8735    *)
8736      lt_prog_compiler_pic='-fPIC'
8737      ;;
8738    esac
8739
8740    case $cc_basename in
8741    nvcc*) # Cuda Compiler Driver 2.2
8742      lt_prog_compiler_wl='-Xlinker '
8743      if test -n "$lt_prog_compiler_pic"; then
8744        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8745      fi
8746      ;;
8747    esac
8748  else
8749    # PORTME Check for flag to pass linker flags through the system compiler.
8750    case $host_os in
8751    aix*)
8752      lt_prog_compiler_wl='-Wl,'
8753      if test ia64 = "$host_cpu"; then
8754	# AIX 5 now supports IA64 processor
8755	lt_prog_compiler_static='-Bstatic'
8756      else
8757	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8758      fi
8759      ;;
8760
8761    darwin* | rhapsody*)
8762      # PIC is the default on this platform
8763      # Common symbols not allowed in MH_DYLIB files
8764      lt_prog_compiler_pic='-fno-common'
8765      case $cc_basename in
8766      nagfor*)
8767        # NAG Fortran compiler
8768        lt_prog_compiler_wl='-Wl,-Wl,,'
8769        lt_prog_compiler_pic='-PIC'
8770        lt_prog_compiler_static='-Bstatic'
8771        ;;
8772      esac
8773      ;;
8774
8775    mingw* | cygwin* | pw32* | os2* | cegcc*)
8776      # This hack is so that the source file can tell whether it is being
8777      # built for inclusion in a dll (and should export symbols for example).
8778      lt_prog_compiler_pic='-DDLL_EXPORT'
8779      case $host_os in
8780      os2*)
8781	lt_prog_compiler_static='$wl-static'
8782	;;
8783      esac
8784      ;;
8785
8786    hpux9* | hpux10* | hpux11*)
8787      lt_prog_compiler_wl='-Wl,'
8788      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8789      # not for PA HP-UX.
8790      case $host_cpu in
8791      hppa*64*|ia64*)
8792	# +Z the default
8793	;;
8794      *)
8795	lt_prog_compiler_pic='+Z'
8796	;;
8797      esac
8798      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8799      lt_prog_compiler_static='$wl-a ${wl}archive'
8800      ;;
8801
8802    irix5* | irix6* | nonstopux*)
8803      lt_prog_compiler_wl='-Wl,'
8804      # PIC (with -KPIC) is the default.
8805      lt_prog_compiler_static='-non_shared'
8806      ;;
8807
8808    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8809      case $cc_basename in
8810      # old Intel for x86_64, which still supported -KPIC.
8811      ecc*)
8812	lt_prog_compiler_wl='-Wl,'
8813	lt_prog_compiler_pic='-KPIC'
8814	lt_prog_compiler_static='-static'
8815        ;;
8816      # icc used to be incompatible with GCC.
8817      # ICC 10 doesn't accept -KPIC any more.
8818      icc* | ifort*)
8819	lt_prog_compiler_wl='-Wl,'
8820	lt_prog_compiler_pic='-fPIC'
8821	lt_prog_compiler_static='-static'
8822        ;;
8823      # Lahey Fortran 8.1.
8824      lf95*)
8825	lt_prog_compiler_wl='-Wl,'
8826	lt_prog_compiler_pic='--shared'
8827	lt_prog_compiler_static='--static'
8828	;;
8829      nagfor*)
8830	# NAG Fortran compiler
8831	lt_prog_compiler_wl='-Wl,-Wl,,'
8832	lt_prog_compiler_pic='-PIC'
8833	lt_prog_compiler_static='-Bstatic'
8834	;;
8835      tcc*)
8836	# Fabrice Bellard et al's Tiny C Compiler
8837	lt_prog_compiler_wl='-Wl,'
8838	lt_prog_compiler_pic='-fPIC'
8839	lt_prog_compiler_static='-static'
8840	;;
8841      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8842        # Portland Group compilers (*not* the Pentium gcc compiler,
8843	# which looks to be a dead project)
8844	lt_prog_compiler_wl='-Wl,'
8845	lt_prog_compiler_pic='-fpic'
8846	lt_prog_compiler_static='-Bstatic'
8847        ;;
8848      ccc*)
8849        lt_prog_compiler_wl='-Wl,'
8850        # All Alpha code is PIC.
8851        lt_prog_compiler_static='-non_shared'
8852        ;;
8853      xl* | bgxl* | bgf* | mpixl*)
8854	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8855	lt_prog_compiler_wl='-Wl,'
8856	lt_prog_compiler_pic='-qpic'
8857	lt_prog_compiler_static='-qstaticlink'
8858	;;
8859      *)
8860	case `$CC -V 2>&1 | sed 5q` in
8861	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8862	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8863	  lt_prog_compiler_pic='-KPIC'
8864	  lt_prog_compiler_static='-Bstatic'
8865	  lt_prog_compiler_wl=''
8866	  ;;
8867	*Sun\ F* | *Sun*Fortran*)
8868	  lt_prog_compiler_pic='-KPIC'
8869	  lt_prog_compiler_static='-Bstatic'
8870	  lt_prog_compiler_wl='-Qoption ld '
8871	  ;;
8872	*Sun\ C*)
8873	  # Sun C 5.9
8874	  lt_prog_compiler_pic='-KPIC'
8875	  lt_prog_compiler_static='-Bstatic'
8876	  lt_prog_compiler_wl='-Wl,'
8877	  ;;
8878        *Intel*\ [CF]*Compiler*)
8879	  lt_prog_compiler_wl='-Wl,'
8880	  lt_prog_compiler_pic='-fPIC'
8881	  lt_prog_compiler_static='-static'
8882	  ;;
8883	*Portland\ Group*)
8884	  lt_prog_compiler_wl='-Wl,'
8885	  lt_prog_compiler_pic='-fpic'
8886	  lt_prog_compiler_static='-Bstatic'
8887	  ;;
8888	esac
8889	;;
8890      esac
8891      ;;
8892
8893    newsos6)
8894      lt_prog_compiler_pic='-KPIC'
8895      lt_prog_compiler_static='-Bstatic'
8896      ;;
8897
8898    *nto* | *qnx*)
8899      # QNX uses GNU C++, but need to define -shared option too, otherwise
8900      # it will coredump.
8901      lt_prog_compiler_pic='-fPIC -shared'
8902      ;;
8903
8904    osf3* | osf4* | osf5*)
8905      lt_prog_compiler_wl='-Wl,'
8906      # All OSF/1 code is PIC.
8907      lt_prog_compiler_static='-non_shared'
8908      ;;
8909
8910    rdos*)
8911      lt_prog_compiler_static='-non_shared'
8912      ;;
8913
8914    solaris*)
8915      lt_prog_compiler_pic='-KPIC'
8916      lt_prog_compiler_static='-Bstatic'
8917      case $cc_basename in
8918      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8919	lt_prog_compiler_wl='-Qoption ld ';;
8920      *)
8921	lt_prog_compiler_wl='-Wl,';;
8922      esac
8923      ;;
8924
8925    sunos4*)
8926      lt_prog_compiler_wl='-Qoption ld '
8927      lt_prog_compiler_pic='-PIC'
8928      lt_prog_compiler_static='-Bstatic'
8929      ;;
8930
8931    sysv4 | sysv4.2uw2* | sysv4.3*)
8932      lt_prog_compiler_wl='-Wl,'
8933      lt_prog_compiler_pic='-KPIC'
8934      lt_prog_compiler_static='-Bstatic'
8935      ;;
8936
8937    sysv4*MP*)
8938      if test -d /usr/nec; then
8939	lt_prog_compiler_pic='-Kconform_pic'
8940	lt_prog_compiler_static='-Bstatic'
8941      fi
8942      ;;
8943
8944    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8945      lt_prog_compiler_wl='-Wl,'
8946      lt_prog_compiler_pic='-KPIC'
8947      lt_prog_compiler_static='-Bstatic'
8948      ;;
8949
8950    unicos*)
8951      lt_prog_compiler_wl='-Wl,'
8952      lt_prog_compiler_can_build_shared=no
8953      ;;
8954
8955    uts4*)
8956      lt_prog_compiler_pic='-pic'
8957      lt_prog_compiler_static='-Bstatic'
8958      ;;
8959
8960    *)
8961      lt_prog_compiler_can_build_shared=no
8962      ;;
8963    esac
8964  fi
8965
8966case $host_os in
8967  # For platforms that do not support PIC, -DPIC is meaningless:
8968  *djgpp*)
8969    lt_prog_compiler_pic=
8970    ;;
8971  *)
8972    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8973    ;;
8974esac
8975
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8977$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8978if ${lt_cv_prog_compiler_pic+:} false; then :
8979  $as_echo_n "(cached) " >&6
8980else
8981  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8982fi
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8984$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8985lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8986
8987#
8988# Check to make sure the PIC flag actually works.
8989#
8990if test -n "$lt_prog_compiler_pic"; then
8991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8992$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8993if ${lt_cv_prog_compiler_pic_works+:} false; then :
8994  $as_echo_n "(cached) " >&6
8995else
8996  lt_cv_prog_compiler_pic_works=no
8997   ac_outfile=conftest.$ac_objext
8998   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8999   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9000   # Insert the option either (1) after the last *FLAGS variable, or
9001   # (2) before a word containing "conftest.", or (3) at the end.
9002   # Note that $ac_compile itself does not contain backslashes and begins
9003   # with a dollar sign (not a hyphen), so the echo should work correctly.
9004   # The option is referenced via a variable to avoid confusing sed.
9005   lt_compile=`echo "$ac_compile" | $SED \
9006   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9007   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9008   -e 's:$: $lt_compiler_flag:'`
9009   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9010   (eval "$lt_compile" 2>conftest.err)
9011   ac_status=$?
9012   cat conftest.err >&5
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   if (exit $ac_status) && test -s "$ac_outfile"; then
9015     # The compiler can only warn and ignore the option if not recognized
9016     # So say no if there are warnings other than the usual output.
9017     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9018     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9019     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9020       lt_cv_prog_compiler_pic_works=yes
9021     fi
9022   fi
9023   $RM conftest*
9024
9025fi
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9027$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9028
9029if test yes = "$lt_cv_prog_compiler_pic_works"; then
9030    case $lt_prog_compiler_pic in
9031     "" | " "*) ;;
9032     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9033     esac
9034else
9035    lt_prog_compiler_pic=
9036     lt_prog_compiler_can_build_shared=no
9037fi
9038
9039fi
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051#
9052# Check to make sure the static flag actually works.
9053#
9054wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9056$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9057if ${lt_cv_prog_compiler_static_works+:} false; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060  lt_cv_prog_compiler_static_works=no
9061   save_LDFLAGS=$LDFLAGS
9062   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9063   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9064   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9065     # The linker can only warn and ignore the option if not recognized
9066     # So say no if there are warnings
9067     if test -s conftest.err; then
9068       # Append any errors to the config.log.
9069       cat conftest.err 1>&5
9070       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9071       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9072       if diff conftest.exp conftest.er2 >/dev/null; then
9073         lt_cv_prog_compiler_static_works=yes
9074       fi
9075     else
9076       lt_cv_prog_compiler_static_works=yes
9077     fi
9078   fi
9079   $RM -r conftest*
9080   LDFLAGS=$save_LDFLAGS
9081
9082fi
9083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9084$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9085
9086if test yes = "$lt_cv_prog_compiler_static_works"; then
9087    :
9088else
9089    lt_prog_compiler_static=
9090fi
9091
9092
9093
9094
9095
9096
9097
9098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9099$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9100if ${lt_cv_prog_compiler_c_o+:} false; then :
9101  $as_echo_n "(cached) " >&6
9102else
9103  lt_cv_prog_compiler_c_o=no
9104   $RM -r conftest 2>/dev/null
9105   mkdir conftest
9106   cd conftest
9107   mkdir out
9108   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9109
9110   lt_compiler_flag="-o out/conftest2.$ac_objext"
9111   # Insert the option either (1) after the last *FLAGS variable, or
9112   # (2) before a word containing "conftest.", or (3) at the end.
9113   # Note that $ac_compile itself does not contain backslashes and begins
9114   # with a dollar sign (not a hyphen), so the echo should work correctly.
9115   lt_compile=`echo "$ac_compile" | $SED \
9116   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9117   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9118   -e 's:$: $lt_compiler_flag:'`
9119   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9120   (eval "$lt_compile" 2>out/conftest.err)
9121   ac_status=$?
9122   cat out/conftest.err >&5
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9125   then
9126     # The compiler can only warn and ignore the option if not recognized
9127     # So say no if there are warnings
9128     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9129     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9130     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9131       lt_cv_prog_compiler_c_o=yes
9132     fi
9133   fi
9134   chmod u+w . 2>&5
9135   $RM conftest*
9136   # SGI C++ compiler will create directory out/ii_files/ for
9137   # template instantiation
9138   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9139   $RM out/* && rmdir out
9140   cd ..
9141   $RM -r conftest
9142   $RM conftest*
9143
9144fi
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9146$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9147
9148
9149
9150
9151
9152
9153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9154$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9155if ${lt_cv_prog_compiler_c_o+:} false; then :
9156  $as_echo_n "(cached) " >&6
9157else
9158  lt_cv_prog_compiler_c_o=no
9159   $RM -r conftest 2>/dev/null
9160   mkdir conftest
9161   cd conftest
9162   mkdir out
9163   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9164
9165   lt_compiler_flag="-o out/conftest2.$ac_objext"
9166   # Insert the option either (1) after the last *FLAGS variable, or
9167   # (2) before a word containing "conftest.", or (3) at the end.
9168   # Note that $ac_compile itself does not contain backslashes and begins
9169   # with a dollar sign (not a hyphen), so the echo should work correctly.
9170   lt_compile=`echo "$ac_compile" | $SED \
9171   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173   -e 's:$: $lt_compiler_flag:'`
9174   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9175   (eval "$lt_compile" 2>out/conftest.err)
9176   ac_status=$?
9177   cat out/conftest.err >&5
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9180   then
9181     # The compiler can only warn and ignore the option if not recognized
9182     # So say no if there are warnings
9183     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9184     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9185     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9186       lt_cv_prog_compiler_c_o=yes
9187     fi
9188   fi
9189   chmod u+w . 2>&5
9190   $RM conftest*
9191   # SGI C++ compiler will create directory out/ii_files/ for
9192   # template instantiation
9193   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9194   $RM out/* && rmdir out
9195   cd ..
9196   $RM -r conftest
9197   $RM conftest*
9198
9199fi
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9201$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9202
9203
9204
9205
9206hard_links=nottested
9207if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9208  # do not overwrite the value of need_locks provided by the user
9209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9210$as_echo_n "checking if we can lock with hard links... " >&6; }
9211  hard_links=yes
9212  $RM conftest*
9213  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9214  touch conftest.a
9215  ln conftest.a conftest.b 2>&5 || hard_links=no
9216  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9218$as_echo "$hard_links" >&6; }
9219  if test no = "$hard_links"; then
9220    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9221$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9222    need_locks=warn
9223  fi
9224else
9225  need_locks=no
9226fi
9227
9228
9229
9230
9231
9232
9233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9234$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9235
9236  runpath_var=
9237  allow_undefined_flag=
9238  always_export_symbols=no
9239  archive_cmds=
9240  archive_expsym_cmds=
9241  compiler_needs_object=no
9242  enable_shared_with_static_runtimes=no
9243  export_dynamic_flag_spec=
9244  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9245  hardcode_automatic=no
9246  hardcode_direct=no
9247  hardcode_direct_absolute=no
9248  hardcode_libdir_flag_spec=
9249  hardcode_libdir_separator=
9250  hardcode_minus_L=no
9251  hardcode_shlibpath_var=unsupported
9252  inherit_rpath=no
9253  link_all_deplibs=unknown
9254  module_cmds=
9255  module_expsym_cmds=
9256  old_archive_from_new_cmds=
9257  old_archive_from_expsyms_cmds=
9258  thread_safe_flag_spec=
9259  whole_archive_flag_spec=
9260  # include_expsyms should be a list of space-separated symbols to be *always*
9261  # included in the symbol list
9262  include_expsyms=
9263  # exclude_expsyms can be an extended regexp of symbols to exclude
9264  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9265  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9266  # as well as any symbol that contains 'd'.
9267  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9268  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9269  # platforms (ab)use it in PIC code, but their linkers get confused if
9270  # the symbol is explicitly referenced.  Since portable code cannot
9271  # rely on this symbol name, it's probably fine to never include it in
9272  # preloaded symbol tables.
9273  # Exclude shared library initialization/finalization symbols.
9274  extract_expsyms_cmds=
9275
9276  case $host_os in
9277  cygwin* | mingw* | pw32* | cegcc*)
9278    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9279    # When not using gcc, we currently assume that we are using
9280    # Microsoft Visual C++.
9281    if test yes != "$GCC"; then
9282      with_gnu_ld=no
9283    fi
9284    ;;
9285  interix*)
9286    # we just hope/assume this is gcc and not c89 (= MSVC++)
9287    with_gnu_ld=yes
9288    ;;
9289  openbsd* | bitrig*)
9290    with_gnu_ld=no
9291    ;;
9292  esac
9293
9294  ld_shlibs=yes
9295
9296  # On some targets, GNU ld is compatible enough with the native linker
9297  # that we're better off using the native interface for both.
9298  lt_use_gnu_ld_interface=no
9299  if test yes = "$with_gnu_ld"; then
9300    case $host_os in
9301      aix*)
9302	# The AIX port of GNU ld has always aspired to compatibility
9303	# with the native linker.  However, as the warning in the GNU ld
9304	# block says, versions before 2.19.5* couldn't really create working
9305	# shared libraries, regardless of the interface used.
9306	case `$LD -v 2>&1` in
9307	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9308	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9309	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9310	  *)
9311	    lt_use_gnu_ld_interface=yes
9312	    ;;
9313	esac
9314	;;
9315      *)
9316	lt_use_gnu_ld_interface=yes
9317	;;
9318    esac
9319  fi
9320
9321  if test yes = "$lt_use_gnu_ld_interface"; then
9322    # If archive_cmds runs LD, not CC, wlarc should be empty
9323    wlarc='$wl'
9324
9325    # Set some defaults for GNU ld with shared library support. These
9326    # are reset later if shared libraries are not supported. Putting them
9327    # here allows them to be overridden if necessary.
9328    runpath_var=LD_RUN_PATH
9329    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9330    export_dynamic_flag_spec='$wl--export-dynamic'
9331    # ancient GNU ld didn't support --whole-archive et. al.
9332    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9333      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9334    else
9335      whole_archive_flag_spec=
9336    fi
9337    supports_anon_versioning=no
9338    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9339      *GNU\ gold*) supports_anon_versioning=yes ;;
9340      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9341      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9342      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9343      *\ 2.11.*) ;; # other 2.11 versions
9344      *) supports_anon_versioning=yes ;;
9345    esac
9346
9347    # See if GNU ld supports shared libraries.
9348    case $host_os in
9349    aix[3-9]*)
9350      # On AIX/PPC, the GNU linker is very broken
9351      if test ia64 != "$host_cpu"; then
9352	ld_shlibs=no
9353	cat <<_LT_EOF 1>&2
9354
9355*** Warning: the GNU linker, at least up to release 2.19, is reported
9356*** to be unable to reliably create shared libraries on AIX.
9357*** Therefore, libtool is disabling shared libraries support.  If you
9358*** really care for shared libraries, you may want to install binutils
9359*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9360*** You will then need to restart the configuration process.
9361
9362_LT_EOF
9363      fi
9364      ;;
9365
9366    amigaos*)
9367      case $host_cpu in
9368      powerpc)
9369            # see comment about AmigaOS4 .so support
9370            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9371            archive_expsym_cmds=''
9372        ;;
9373      m68k)
9374            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)'
9375            hardcode_libdir_flag_spec='-L$libdir'
9376            hardcode_minus_L=yes
9377        ;;
9378      esac
9379      ;;
9380
9381    beos*)
9382      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9383	allow_undefined_flag=unsupported
9384	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9385	# support --undefined.  This deserves some investigation.  FIXME
9386	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9387      else
9388	ld_shlibs=no
9389      fi
9390      ;;
9391
9392    cygwin* | mingw* | pw32* | cegcc*)
9393      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9394      # as there is no search path for DLLs.
9395      hardcode_libdir_flag_spec='-L$libdir'
9396      export_dynamic_flag_spec='$wl--export-all-symbols'
9397      allow_undefined_flag=unsupported
9398      always_export_symbols=no
9399      enable_shared_with_static_runtimes=yes
9400      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'
9401      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9402
9403      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9404        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9405	# If the export-symbols file already is a .def file, use it as
9406	# is; otherwise, prepend EXPORTS...
9407	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9408          cp $export_symbols $output_objdir/$soname.def;
9409        else
9410          echo EXPORTS > $output_objdir/$soname.def;
9411          cat $export_symbols >> $output_objdir/$soname.def;
9412        fi~
9413        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9414      else
9415	ld_shlibs=no
9416      fi
9417      ;;
9418
9419    haiku*)
9420      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9421      link_all_deplibs=yes
9422      ;;
9423
9424    os2*)
9425      hardcode_libdir_flag_spec='-L$libdir'
9426      hardcode_minus_L=yes
9427      allow_undefined_flag=unsupported
9428      shrext_cmds=.dll
9429      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9430	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9431	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9432	$ECHO EXPORTS >> $output_objdir/$libname.def~
9433	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9434	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9435	emximp -o $lib $output_objdir/$libname.def'
9436      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9437	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9438	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9439	$ECHO EXPORTS >> $output_objdir/$libname.def~
9440	prefix_cmds="$SED"~
9441	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9442	  prefix_cmds="$prefix_cmds -e 1d";
9443	fi~
9444	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9445	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9446	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9447	emximp -o $lib $output_objdir/$libname.def'
9448      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9449      enable_shared_with_static_runtimes=yes
9450      ;;
9451
9452    interix[3-9]*)
9453      hardcode_direct=no
9454      hardcode_shlibpath_var=no
9455      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9456      export_dynamic_flag_spec='$wl-E'
9457      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9458      # Instead, shared libraries are loaded at an image base (0x10000000 by
9459      # default) and relocated if they conflict, which is a slow very memory
9460      # consuming and fragmenting process.  To avoid this, we pick a random,
9461      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9462      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9463      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9464      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'
9465      ;;
9466
9467    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9468      tmp_diet=no
9469      if test linux-dietlibc = "$host_os"; then
9470	case $cc_basename in
9471	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9472	esac
9473      fi
9474      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9475	 && test no = "$tmp_diet"
9476      then
9477	tmp_addflag=' $pic_flag'
9478	tmp_sharedflag='-shared'
9479	case $cc_basename,$host_cpu in
9480        pgcc*)				# Portland Group C compiler
9481	  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'
9482	  tmp_addflag=' $pic_flag'
9483	  ;;
9484	pgf77* | pgf90* | pgf95* | pgfortran*)
9485					# Portland Group f77 and f90 compilers
9486	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9487	  tmp_addflag=' $pic_flag -Mnomain' ;;
9488	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9489	  tmp_addflag=' -i_dynamic' ;;
9490	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9491	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9492	ifc* | ifort*)			# Intel Fortran compiler
9493	  tmp_addflag=' -nofor_main' ;;
9494	lf95*)				# Lahey Fortran 8.1
9495	  whole_archive_flag_spec=
9496	  tmp_sharedflag='--shared' ;;
9497        nagfor*)                        # NAGFOR 5.3
9498          tmp_sharedflag='-Wl,-shared' ;;
9499	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9500	  tmp_sharedflag='-qmkshrobj'
9501	  tmp_addflag= ;;
9502	nvcc*)	# Cuda Compiler Driver 2.2
9503	  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'
9504	  compiler_needs_object=yes
9505	  ;;
9506	esac
9507	case `$CC -V 2>&1 | sed 5q` in
9508	*Sun\ C*)			# Sun C 5.9
9509	  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'
9510	  compiler_needs_object=yes
9511	  tmp_sharedflag='-G' ;;
9512	*Sun\ F*)			# Sun Fortran 8.3
9513	  tmp_sharedflag='-G' ;;
9514	esac
9515	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9516
9517        if test yes = "$supports_anon_versioning"; then
9518          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9519            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9520            echo "local: *; };" >> $output_objdir/$libname.ver~
9521            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9522        fi
9523
9524	case $cc_basename in
9525	tcc*)
9526	  export_dynamic_flag_spec='-rdynamic'
9527	  ;;
9528	xlf* | bgf* | bgxlf* | mpixlf*)
9529	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9530	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9531	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9532	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9533	  if test yes = "$supports_anon_versioning"; then
9534	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9535              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9536              echo "local: *; };" >> $output_objdir/$libname.ver~
9537              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9538	  fi
9539	  ;;
9540	esac
9541      else
9542        ld_shlibs=no
9543      fi
9544      ;;
9545
9546    netbsd*)
9547      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9548	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9549	wlarc=
9550      else
9551	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9552	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9553      fi
9554      ;;
9555
9556    solaris*)
9557      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9558	ld_shlibs=no
9559	cat <<_LT_EOF 1>&2
9560
9561*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9562*** create shared libraries on Solaris systems.  Therefore, libtool
9563*** is disabling shared libraries support.  We urge you to upgrade GNU
9564*** binutils to release 2.9.1 or newer.  Another option is to modify
9565*** your PATH or compiler configuration so that the native linker is
9566*** used, and then restart.
9567
9568_LT_EOF
9569      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9570	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9571	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9572      else
9573	ld_shlibs=no
9574      fi
9575      ;;
9576
9577    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9578      case `$LD -v 2>&1` in
9579        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9580	ld_shlibs=no
9581	cat <<_LT_EOF 1>&2
9582
9583*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9584*** reliably create shared libraries on SCO systems.  Therefore, libtool
9585*** is disabling shared libraries support.  We urge you to upgrade GNU
9586*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9587*** your PATH or compiler configuration so that the native linker is
9588*** used, and then restart.
9589
9590_LT_EOF
9591	;;
9592	*)
9593	  # For security reasons, it is highly recommended that you always
9594	  # use absolute paths for naming shared libraries, and exclude the
9595	  # DT_RUNPATH tag from executables and libraries.  But doing so
9596	  # requires that you compile everything twice, which is a pain.
9597	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9598	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9599	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9600	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9601	  else
9602	    ld_shlibs=no
9603	  fi
9604	;;
9605      esac
9606      ;;
9607
9608    sunos4*)
9609      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9610      wlarc=
9611      hardcode_direct=yes
9612      hardcode_shlibpath_var=no
9613      ;;
9614
9615    *)
9616      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9617	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9618	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9619      else
9620	ld_shlibs=no
9621      fi
9622      ;;
9623    esac
9624
9625    if test no = "$ld_shlibs"; then
9626      runpath_var=
9627      hardcode_libdir_flag_spec=
9628      export_dynamic_flag_spec=
9629      whole_archive_flag_spec=
9630    fi
9631  else
9632    # PORTME fill in a description of your system's linker (not GNU ld)
9633    case $host_os in
9634    aix3*)
9635      allow_undefined_flag=unsupported
9636      always_export_symbols=yes
9637      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'
9638      # Note: this linker hardcodes the directories in LIBPATH if there
9639      # are no directories specified by -L.
9640      hardcode_minus_L=yes
9641      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9642	# Neither direct hardcoding nor static linking is supported with a
9643	# broken collect2.
9644	hardcode_direct=unsupported
9645      fi
9646      ;;
9647
9648    aix[4-9]*)
9649      if test ia64 = "$host_cpu"; then
9650	# On IA64, the linker does run time linking by default, so we don't
9651	# have to do anything special.
9652	aix_use_runtimelinking=no
9653	exp_sym_flag='-Bexport'
9654	no_entry_flag=
9655      else
9656	# If we're using GNU nm, then we don't want the "-C" option.
9657	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9658	# Without the "-l" option, or with the "-B" option, AIX nm treats
9659	# weak defined symbols like other global defined symbols, whereas
9660	# GNU nm marks them as "W".
9661	# While the 'weak' keyword is ignored in the Export File, we need
9662	# it in the Import File for the 'aix-soname' feature, so we have
9663	# to replace the "-B" option with "-P" for AIX nm.
9664	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9665	  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'
9666	else
9667	  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'
9668	fi
9669	aix_use_runtimelinking=no
9670
9671	# Test if we are trying to use run time linking or normal
9672	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9673	# have runtime linking enabled, and use it for executables.
9674	# For shared libraries, we enable/disable runtime linking
9675	# depending on the kind of the shared library created -
9676	# when "with_aix_soname,aix_use_runtimelinking" is:
9677	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9678	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9679	#            lib.a           static archive
9680	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9681	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9682	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9683	#            lib.a(lib.so.V) shared, rtl:no
9684	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9685	#            lib.a           static archive
9686	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9687	  for ld_flag in $LDFLAGS; do
9688	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9689	    aix_use_runtimelinking=yes
9690	    break
9691	  fi
9692	  done
9693	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9694	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9695	    # so we don't have lib.a shared libs to link our executables.
9696	    # We have to force runtime linking in this case.
9697	    aix_use_runtimelinking=yes
9698	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9699	  fi
9700	  ;;
9701	esac
9702
9703	exp_sym_flag='-bexport'
9704	no_entry_flag='-bnoentry'
9705      fi
9706
9707      # When large executables or shared objects are built, AIX ld can
9708      # have problems creating the table of contents.  If linking a library
9709      # or program results in "error TOC overflow" add -mminimal-toc to
9710      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9711      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9712
9713      archive_cmds=''
9714      hardcode_direct=yes
9715      hardcode_direct_absolute=yes
9716      hardcode_libdir_separator=':'
9717      link_all_deplibs=yes
9718      file_list_spec='$wl-f,'
9719      case $with_aix_soname,$aix_use_runtimelinking in
9720      aix,*) ;; # traditional, no import file
9721      svr4,* | *,yes) # use import file
9722	# The Import File defines what to hardcode.
9723	hardcode_direct=no
9724	hardcode_direct_absolute=no
9725	;;
9726      esac
9727
9728      if test yes = "$GCC"; then
9729	case $host_os in aix4.[012]|aix4.[012].*)
9730	# We only want to do this on AIX 4.2 and lower, the check
9731	# below for broken collect2 doesn't work under 4.3+
9732	  collect2name=`$CC -print-prog-name=collect2`
9733	  if test -f "$collect2name" &&
9734	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9735	  then
9736	  # We have reworked collect2
9737	  :
9738	  else
9739	  # We have old collect2
9740	  hardcode_direct=unsupported
9741	  # It fails to find uninstalled libraries when the uninstalled
9742	  # path is not listed in the libpath.  Setting hardcode_minus_L
9743	  # to unsupported forces relinking
9744	  hardcode_minus_L=yes
9745	  hardcode_libdir_flag_spec='-L$libdir'
9746	  hardcode_libdir_separator=
9747	  fi
9748	  ;;
9749	esac
9750	shared_flag='-shared'
9751	if test yes = "$aix_use_runtimelinking"; then
9752	  shared_flag="$shared_flag "'$wl-G'
9753	fi
9754	# Need to ensure runtime linking is disabled for the traditional
9755	# shared library, or the linker may eventually find shared libraries
9756	# /with/ Import File - we do not want to mix them.
9757	shared_flag_aix='-shared'
9758	shared_flag_svr4='-shared $wl-G'
9759      else
9760	# not using gcc
9761	if test ia64 = "$host_cpu"; then
9762	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9763	# chokes on -Wl,-G. The following line is correct:
9764	  shared_flag='-G'
9765	else
9766	  if test yes = "$aix_use_runtimelinking"; then
9767	    shared_flag='$wl-G'
9768	  else
9769	    shared_flag='$wl-bM:SRE'
9770	  fi
9771	  shared_flag_aix='$wl-bM:SRE'
9772	  shared_flag_svr4='$wl-G'
9773	fi
9774      fi
9775
9776      export_dynamic_flag_spec='$wl-bexpall'
9777      # It seems that -bexpall does not export symbols beginning with
9778      # underscore (_), so it is better to generate a list of symbols to export.
9779      always_export_symbols=yes
9780      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9781	# Warning - without using the other runtime loading flags (-brtl),
9782	# -berok will link without error, but may produce a broken library.
9783	allow_undefined_flag='-berok'
9784        # Determine the default libpath from the value encoded in an
9785        # empty executable.
9786        if test set = "${lt_cv_aix_libpath+set}"; then
9787  aix_libpath=$lt_cv_aix_libpath
9788else
9789  if ${lt_cv_aix_libpath_+:} false; then :
9790  $as_echo_n "(cached) " >&6
9791else
9792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793/* end confdefs.h.  */
9794
9795int
9796main ()
9797{
9798
9799  ;
9800  return 0;
9801}
9802_ACEOF
9803if ac_fn_c_try_link "$LINENO"; then :
9804
9805  lt_aix_libpath_sed='
9806      /Import File Strings/,/^$/ {
9807	  /^0/ {
9808	      s/^0  *\([^ ]*\) *$/\1/
9809	      p
9810	  }
9811      }'
9812  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9813  # Check for a 64-bit object if we didn't find anything.
9814  if test -z "$lt_cv_aix_libpath_"; then
9815    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9816  fi
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819    conftest$ac_exeext conftest.$ac_ext
9820  if test -z "$lt_cv_aix_libpath_"; then
9821    lt_cv_aix_libpath_=/usr/lib:/lib
9822  fi
9823
9824fi
9825
9826  aix_libpath=$lt_cv_aix_libpath_
9827fi
9828
9829        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9830        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
9831      else
9832	if test ia64 = "$host_cpu"; then
9833	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9834	  allow_undefined_flag="-z nodefs"
9835	  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"
9836	else
9837	 # Determine the default libpath from the value encoded in an
9838	 # empty executable.
9839	 if test set = "${lt_cv_aix_libpath+set}"; then
9840  aix_libpath=$lt_cv_aix_libpath
9841else
9842  if ${lt_cv_aix_libpath_+:} false; then :
9843  $as_echo_n "(cached) " >&6
9844else
9845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846/* end confdefs.h.  */
9847
9848int
9849main ()
9850{
9851
9852  ;
9853  return 0;
9854}
9855_ACEOF
9856if ac_fn_c_try_link "$LINENO"; then :
9857
9858  lt_aix_libpath_sed='
9859      /Import File Strings/,/^$/ {
9860	  /^0/ {
9861	      s/^0  *\([^ ]*\) *$/\1/
9862	      p
9863	  }
9864      }'
9865  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9866  # Check for a 64-bit object if we didn't find anything.
9867  if test -z "$lt_cv_aix_libpath_"; then
9868    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9869  fi
9870fi
9871rm -f core conftest.err conftest.$ac_objext \
9872    conftest$ac_exeext conftest.$ac_ext
9873  if test -z "$lt_cv_aix_libpath_"; then
9874    lt_cv_aix_libpath_=/usr/lib:/lib
9875  fi
9876
9877fi
9878
9879  aix_libpath=$lt_cv_aix_libpath_
9880fi
9881
9882	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9883	  # Warning - without using the other run time loading flags,
9884	  # -berok will link without error, but may produce a broken library.
9885	  no_undefined_flag=' $wl-bernotok'
9886	  allow_undefined_flag=' $wl-berok'
9887	  if test yes = "$with_gnu_ld"; then
9888	    # We only use this code for GNU lds that support --whole-archive.
9889	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9890	  else
9891	    # Exported symbols can be pulled into shared objects from archives
9892	    whole_archive_flag_spec='$convenience'
9893	  fi
9894	  archive_cmds_need_lc=yes
9895	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9896	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9897	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9898	  if test svr4 != "$with_aix_soname"; then
9899	    # This is similar to how AIX traditionally builds its shared libraries.
9900	    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'
9901	  fi
9902	  if test aix != "$with_aix_soname"; then
9903	    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'
9904	  else
9905	    # used by -dlpreopen to get the symbols
9906	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9907	  fi
9908	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9909	fi
9910      fi
9911      ;;
9912
9913    amigaos*)
9914      case $host_cpu in
9915      powerpc)
9916            # see comment about AmigaOS4 .so support
9917            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9918            archive_expsym_cmds=''
9919        ;;
9920      m68k)
9921            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)'
9922            hardcode_libdir_flag_spec='-L$libdir'
9923            hardcode_minus_L=yes
9924        ;;
9925      esac
9926      ;;
9927
9928    bsdi[45]*)
9929      export_dynamic_flag_spec=-rdynamic
9930      ;;
9931
9932    cygwin* | mingw* | pw32* | cegcc*)
9933      # When not using gcc, we currently assume that we are using
9934      # Microsoft Visual C++.
9935      # hardcode_libdir_flag_spec is actually meaningless, as there is
9936      # no search path for DLLs.
9937      case $cc_basename in
9938      cl*)
9939	# Native MSVC
9940	hardcode_libdir_flag_spec=' '
9941	allow_undefined_flag=unsupported
9942	always_export_symbols=yes
9943	file_list_spec='@'
9944	# Tell ltmain to make .lib files, not .a files.
9945	libext=lib
9946	# Tell ltmain to make .dll files, not .so files.
9947	shrext_cmds=.dll
9948	# FIXME: Setting linknames here is a bad hack.
9949	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9950	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9951            cp "$export_symbols" "$output_objdir/$soname.def";
9952            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9953          else
9954            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9955          fi~
9956          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9957          linknames='
9958	# The linker will not automatically build a static lib if we build a DLL.
9959	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9960	enable_shared_with_static_runtimes=yes
9961	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9962	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9963	# Don't use ranlib
9964	old_postinstall_cmds='chmod 644 $oldlib'
9965	postlink_cmds='lt_outputfile="@OUTPUT@"~
9966          lt_tool_outputfile="@TOOL_OUTPUT@"~
9967          case $lt_outputfile in
9968            *.exe|*.EXE) ;;
9969            *)
9970              lt_outputfile=$lt_outputfile.exe
9971              lt_tool_outputfile=$lt_tool_outputfile.exe
9972              ;;
9973          esac~
9974          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9975            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9976            $RM "$lt_outputfile.manifest";
9977          fi'
9978	;;
9979      *)
9980	# Assume MSVC wrapper
9981	hardcode_libdir_flag_spec=' '
9982	allow_undefined_flag=unsupported
9983	# Tell ltmain to make .lib files, not .a files.
9984	libext=lib
9985	# Tell ltmain to make .dll files, not .so files.
9986	shrext_cmds=.dll
9987	# FIXME: Setting linknames here is a bad hack.
9988	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9989	# The linker will automatically build a .lib file if we build a DLL.
9990	old_archive_from_new_cmds='true'
9991	# FIXME: Should let the user specify the lib program.
9992	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9993	enable_shared_with_static_runtimes=yes
9994	;;
9995      esac
9996      ;;
9997
9998    darwin* | rhapsody*)
9999
10000
10001  archive_cmds_need_lc=no
10002  hardcode_direct=no
10003  hardcode_automatic=yes
10004  hardcode_shlibpath_var=unsupported
10005  if test yes = "$lt_cv_ld_force_load"; then
10006    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\"`'
10007
10008  else
10009    whole_archive_flag_spec=''
10010  fi
10011  link_all_deplibs=yes
10012  allow_undefined_flag=$_lt_dar_allow_undefined
10013  case $cc_basename in
10014     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10015     *) _lt_dar_can_shared=$GCC ;;
10016  esac
10017  if test yes = "$_lt_dar_can_shared"; then
10018    output_verbose_link_cmd=func_echo_all
10019    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10020    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10021    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"
10022    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"
10023
10024  else
10025  ld_shlibs=no
10026  fi
10027
10028      ;;
10029
10030    dgux*)
10031      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032      hardcode_libdir_flag_spec='-L$libdir'
10033      hardcode_shlibpath_var=no
10034      ;;
10035
10036    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10037    # support.  Future versions do this automatically, but an explicit c++rt0.o
10038    # does not break anything, and helps significantly (at the cost of a little
10039    # extra space).
10040    freebsd2.2*)
10041      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10042      hardcode_libdir_flag_spec='-R$libdir'
10043      hardcode_direct=yes
10044      hardcode_shlibpath_var=no
10045      ;;
10046
10047    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10048    freebsd2.*)
10049      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10050      hardcode_direct=yes
10051      hardcode_minus_L=yes
10052      hardcode_shlibpath_var=no
10053      ;;
10054
10055    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10056    freebsd* | dragonfly*)
10057      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10058      hardcode_libdir_flag_spec='-R$libdir'
10059      hardcode_direct=yes
10060      hardcode_shlibpath_var=no
10061      ;;
10062
10063    hpux9*)
10064      if test yes = "$GCC"; then
10065	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'
10066      else
10067	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'
10068      fi
10069      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10070      hardcode_libdir_separator=:
10071      hardcode_direct=yes
10072
10073      # hardcode_minus_L: Not really in the search PATH,
10074      # but as the default location of the library.
10075      hardcode_minus_L=yes
10076      export_dynamic_flag_spec='$wl-E'
10077      ;;
10078
10079    hpux10*)
10080      if test yes,no = "$GCC,$with_gnu_ld"; then
10081	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10082      else
10083	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10084      fi
10085      if test no = "$with_gnu_ld"; then
10086	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10087	hardcode_libdir_separator=:
10088	hardcode_direct=yes
10089	hardcode_direct_absolute=yes
10090	export_dynamic_flag_spec='$wl-E'
10091	# hardcode_minus_L: Not really in the search PATH,
10092	# but as the default location of the library.
10093	hardcode_minus_L=yes
10094      fi
10095      ;;
10096
10097    hpux11*)
10098      if test yes,no = "$GCC,$with_gnu_ld"; then
10099	case $host_cpu in
10100	hppa*64*)
10101	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10102	  ;;
10103	ia64*)
10104	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10105	  ;;
10106	*)
10107	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10108	  ;;
10109	esac
10110      else
10111	case $host_cpu in
10112	hppa*64*)
10113	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10114	  ;;
10115	ia64*)
10116	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10117	  ;;
10118	*)
10119
10120	  # Older versions of the 11.00 compiler do not understand -b yet
10121	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10122	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10123$as_echo_n "checking if $CC understands -b... " >&6; }
10124if ${lt_cv_prog_compiler__b+:} false; then :
10125  $as_echo_n "(cached) " >&6
10126else
10127  lt_cv_prog_compiler__b=no
10128   save_LDFLAGS=$LDFLAGS
10129   LDFLAGS="$LDFLAGS -b"
10130   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10131   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10132     # The linker can only warn and ignore the option if not recognized
10133     # So say no if there are warnings
10134     if test -s conftest.err; then
10135       # Append any errors to the config.log.
10136       cat conftest.err 1>&5
10137       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10138       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10139       if diff conftest.exp conftest.er2 >/dev/null; then
10140         lt_cv_prog_compiler__b=yes
10141       fi
10142     else
10143       lt_cv_prog_compiler__b=yes
10144     fi
10145   fi
10146   $RM -r conftest*
10147   LDFLAGS=$save_LDFLAGS
10148
10149fi
10150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10151$as_echo "$lt_cv_prog_compiler__b" >&6; }
10152
10153if test yes = "$lt_cv_prog_compiler__b"; then
10154    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10155else
10156    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10157fi
10158
10159	  ;;
10160	esac
10161      fi
10162      if test no = "$with_gnu_ld"; then
10163	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10164	hardcode_libdir_separator=:
10165
10166	case $host_cpu in
10167	hppa*64*|ia64*)
10168	  hardcode_direct=no
10169	  hardcode_shlibpath_var=no
10170	  ;;
10171	*)
10172	  hardcode_direct=yes
10173	  hardcode_direct_absolute=yes
10174	  export_dynamic_flag_spec='$wl-E'
10175
10176	  # hardcode_minus_L: Not really in the search PATH,
10177	  # but as the default location of the library.
10178	  hardcode_minus_L=yes
10179	  ;;
10180	esac
10181      fi
10182      ;;
10183
10184    irix5* | irix6* | nonstopux*)
10185      if test yes = "$GCC"; then
10186	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'
10187	# Try to use the -exported_symbol ld option, if it does not
10188	# work, assume that -exports_file does not work either and
10189	# implicitly export all symbols.
10190	# This should be the same for all languages, so no per-tag cache variable.
10191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10192$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10193if ${lt_cv_irix_exported_symbol+:} false; then :
10194  $as_echo_n "(cached) " >&6
10195else
10196  save_LDFLAGS=$LDFLAGS
10197	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10198	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h.  */
10200int foo (void) { return 0; }
10201_ACEOF
10202if ac_fn_c_try_link "$LINENO"; then :
10203  lt_cv_irix_exported_symbol=yes
10204else
10205  lt_cv_irix_exported_symbol=no
10206fi
10207rm -f core conftest.err conftest.$ac_objext \
10208    conftest$ac_exeext conftest.$ac_ext
10209           LDFLAGS=$save_LDFLAGS
10210fi
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10212$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10213	if test yes = "$lt_cv_irix_exported_symbol"; then
10214          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'
10215	fi
10216      else
10217	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'
10218	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'
10219      fi
10220      archive_cmds_need_lc='no'
10221      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10222      hardcode_libdir_separator=:
10223      inherit_rpath=yes
10224      link_all_deplibs=yes
10225      ;;
10226
10227    linux*)
10228      case $cc_basename in
10229      tcc*)
10230	# Fabrice Bellard et al's Tiny C Compiler
10231	ld_shlibs=yes
10232	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10233	;;
10234      esac
10235      ;;
10236
10237    netbsd*)
10238      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10239	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10240      else
10241	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10242      fi
10243      hardcode_libdir_flag_spec='-R$libdir'
10244      hardcode_direct=yes
10245      hardcode_shlibpath_var=no
10246      ;;
10247
10248    newsos6)
10249      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250      hardcode_direct=yes
10251      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10252      hardcode_libdir_separator=:
10253      hardcode_shlibpath_var=no
10254      ;;
10255
10256    *nto* | *qnx*)
10257      ;;
10258
10259    openbsd* | bitrig*)
10260      if test -f /usr/libexec/ld.so; then
10261	hardcode_direct=yes
10262	hardcode_shlibpath_var=no
10263	hardcode_direct_absolute=yes
10264	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10265	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10266	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10267	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10268	  export_dynamic_flag_spec='$wl-E'
10269	else
10270	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10271	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10272	fi
10273      else
10274	ld_shlibs=no
10275      fi
10276      ;;
10277
10278    os2*)
10279      hardcode_libdir_flag_spec='-L$libdir'
10280      hardcode_minus_L=yes
10281      allow_undefined_flag=unsupported
10282      shrext_cmds=.dll
10283      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10284	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10285	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10286	$ECHO EXPORTS >> $output_objdir/$libname.def~
10287	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10288	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10289	emximp -o $lib $output_objdir/$libname.def'
10290      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10291	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10292	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10293	$ECHO EXPORTS >> $output_objdir/$libname.def~
10294	prefix_cmds="$SED"~
10295	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10296	  prefix_cmds="$prefix_cmds -e 1d";
10297	fi~
10298	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10299	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10300	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10301	emximp -o $lib $output_objdir/$libname.def'
10302      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10303      enable_shared_with_static_runtimes=yes
10304      ;;
10305
10306    osf3*)
10307      if test yes = "$GCC"; then
10308	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10309	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'
10310      else
10311	allow_undefined_flag=' -expect_unresolved \*'
10312	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'
10313      fi
10314      archive_cmds_need_lc='no'
10315      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10316      hardcode_libdir_separator=:
10317      ;;
10318
10319    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10320      if test yes = "$GCC"; then
10321	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10322	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'
10323	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10324      else
10325	allow_undefined_flag=' -expect_unresolved \*'
10326	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'
10327	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~
10328          $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'
10329
10330	# Both c and cxx compiler support -rpath directly
10331	hardcode_libdir_flag_spec='-rpath $libdir'
10332      fi
10333      archive_cmds_need_lc='no'
10334      hardcode_libdir_separator=:
10335      ;;
10336
10337    solaris*)
10338      no_undefined_flag=' -z defs'
10339      if test yes = "$GCC"; then
10340	wlarc='$wl'
10341	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10342	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10343          $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'
10344      else
10345	case `$CC -V 2>&1` in
10346	*"Compilers 5.0"*)
10347	  wlarc=''
10348	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10350            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10351	  ;;
10352	*)
10353	  wlarc='$wl'
10354	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10355	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10356            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10357	  ;;
10358	esac
10359      fi
10360      hardcode_libdir_flag_spec='-R$libdir'
10361      hardcode_shlibpath_var=no
10362      case $host_os in
10363      solaris2.[0-5] | solaris2.[0-5].*) ;;
10364      *)
10365	# The compiler driver will combine and reorder linker options,
10366	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10367	# but is careful enough not to reorder.
10368	# Supported since Solaris 2.6 (maybe 2.5.1?)
10369	if test yes = "$GCC"; then
10370	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10371	else
10372	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10373	fi
10374	;;
10375      esac
10376      link_all_deplibs=yes
10377      ;;
10378
10379    sunos4*)
10380      if test sequent = "$host_vendor"; then
10381	# Use $CC to link under sequent, because it throws in some extra .o
10382	# files that make .init and .fini sections work.
10383	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10384      else
10385	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10386      fi
10387      hardcode_libdir_flag_spec='-L$libdir'
10388      hardcode_direct=yes
10389      hardcode_minus_L=yes
10390      hardcode_shlibpath_var=no
10391      ;;
10392
10393    sysv4)
10394      case $host_vendor in
10395	sni)
10396	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10397	  hardcode_direct=yes # is this really true???
10398	;;
10399	siemens)
10400	  ## LD is ld it makes a PLAMLIB
10401	  ## CC just makes a GrossModule.
10402	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10403	  reload_cmds='$CC -r -o $output$reload_objs'
10404	  hardcode_direct=no
10405        ;;
10406	motorola)
10407	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10408	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10409	;;
10410      esac
10411      runpath_var='LD_RUN_PATH'
10412      hardcode_shlibpath_var=no
10413      ;;
10414
10415    sysv4.3*)
10416      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10417      hardcode_shlibpath_var=no
10418      export_dynamic_flag_spec='-Bexport'
10419      ;;
10420
10421    sysv4*MP*)
10422      if test -d /usr/nec; then
10423	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424	hardcode_shlibpath_var=no
10425	runpath_var=LD_RUN_PATH
10426	hardcode_runpath_var=yes
10427	ld_shlibs=yes
10428      fi
10429      ;;
10430
10431    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10432      no_undefined_flag='$wl-z,text'
10433      archive_cmds_need_lc=no
10434      hardcode_shlibpath_var=no
10435      runpath_var='LD_RUN_PATH'
10436
10437      if test yes = "$GCC"; then
10438	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10439	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10440      else
10441	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10442	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443      fi
10444      ;;
10445
10446    sysv5* | sco3.2v5* | sco5v6*)
10447      # Note: We CANNOT use -z defs as we might desire, because we do not
10448      # link with -lc, and that would cause any symbols used from libc to
10449      # always be unresolved, which means just about no library would
10450      # ever link correctly.  If we're not using GNU ld we use -z text
10451      # though, which does catch some bad symbols but isn't as heavy-handed
10452      # as -z defs.
10453      no_undefined_flag='$wl-z,text'
10454      allow_undefined_flag='$wl-z,nodefs'
10455      archive_cmds_need_lc=no
10456      hardcode_shlibpath_var=no
10457      hardcode_libdir_flag_spec='$wl-R,$libdir'
10458      hardcode_libdir_separator=':'
10459      link_all_deplibs=yes
10460      export_dynamic_flag_spec='$wl-Bexport'
10461      runpath_var='LD_RUN_PATH'
10462
10463      if test yes = "$GCC"; then
10464	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10465	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10466      else
10467	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10468	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10469      fi
10470      ;;
10471
10472    uts4*)
10473      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10474      hardcode_libdir_flag_spec='-L$libdir'
10475      hardcode_shlibpath_var=no
10476      ;;
10477
10478    *)
10479      ld_shlibs=no
10480      ;;
10481    esac
10482
10483    if test sni = "$host_vendor"; then
10484      case $host in
10485      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10486	export_dynamic_flag_spec='$wl-Blargedynsym'
10487	;;
10488      esac
10489    fi
10490  fi
10491
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10493$as_echo "$ld_shlibs" >&6; }
10494test no = "$ld_shlibs" && can_build_shared=no
10495
10496with_gnu_ld=$with_gnu_ld
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512#
10513# Do we need to explicitly link libc?
10514#
10515case "x$archive_cmds_need_lc" in
10516x|xyes)
10517  # Assume -lc should be added
10518  archive_cmds_need_lc=yes
10519
10520  if test yes,yes = "$GCC,$enable_shared"; then
10521    case $archive_cmds in
10522    *'~'*)
10523      # FIXME: we may have to deal with multi-command sequences.
10524      ;;
10525    '$CC '*)
10526      # Test whether the compiler implicitly links with -lc since on some
10527      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10528      # to ld, don't add -lc before -lgcc.
10529      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10530$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10531if ${lt_cv_archive_cmds_need_lc+:} false; then :
10532  $as_echo_n "(cached) " >&6
10533else
10534  $RM conftest*
10535	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10536
10537	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10538  (eval $ac_compile) 2>&5
10539  ac_status=$?
10540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10541  test $ac_status = 0; } 2>conftest.err; then
10542	  soname=conftest
10543	  lib=conftest
10544	  libobjs=conftest.$ac_objext
10545	  deplibs=
10546	  wl=$lt_prog_compiler_wl
10547	  pic_flag=$lt_prog_compiler_pic
10548	  compiler_flags=-v
10549	  linker_flags=-v
10550	  verstring=
10551	  output_objdir=.
10552	  libname=conftest
10553	  lt_save_allow_undefined_flag=$allow_undefined_flag
10554	  allow_undefined_flag=
10555	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10556  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10557  ac_status=$?
10558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10559  test $ac_status = 0; }
10560	  then
10561	    lt_cv_archive_cmds_need_lc=no
10562	  else
10563	    lt_cv_archive_cmds_need_lc=yes
10564	  fi
10565	  allow_undefined_flag=$lt_save_allow_undefined_flag
10566	else
10567	  cat conftest.err 1>&5
10568	fi
10569	$RM conftest*
10570
10571fi
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10573$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10574      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10575      ;;
10576    esac
10577  fi
10578  ;;
10579esac
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10733$as_echo_n "checking dynamic linker characteristics... " >&6; }
10734
10735if test yes = "$GCC"; then
10736  case $host_os in
10737    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10738    *) lt_awk_arg='/^libraries:/' ;;
10739  esac
10740  case $host_os in
10741    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10742    *) lt_sed_strip_eq='s|=/|/|g' ;;
10743  esac
10744  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10745  case $lt_search_path_spec in
10746  *\;*)
10747    # if the path contains ";" then we assume it to be the separator
10748    # otherwise default to the standard path separator (i.e. ":") - it is
10749    # assumed that no part of a normal pathname contains ";" but that should
10750    # okay in the real world where ";" in dirpaths is itself problematic.
10751    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10752    ;;
10753  *)
10754    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10755    ;;
10756  esac
10757  # Ok, now we have the path, separated by spaces, we can step through it
10758  # and add multilib dir if necessary...
10759  lt_tmp_lt_search_path_spec=
10760  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10761  # ...but if some path component already ends with the multilib dir we assume
10762  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10763  case "$lt_multi_os_dir; $lt_search_path_spec " in
10764  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10765    lt_multi_os_dir=
10766    ;;
10767  esac
10768  for lt_sys_path in $lt_search_path_spec; do
10769    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10770      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10771    elif test -n "$lt_multi_os_dir"; then
10772      test -d "$lt_sys_path" && \
10773	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10774    fi
10775  done
10776  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10777BEGIN {RS = " "; FS = "/|\n";} {
10778  lt_foo = "";
10779  lt_count = 0;
10780  for (lt_i = NF; lt_i > 0; lt_i--) {
10781    if ($lt_i != "" && $lt_i != ".") {
10782      if ($lt_i == "..") {
10783        lt_count++;
10784      } else {
10785        if (lt_count == 0) {
10786          lt_foo = "/" $lt_i lt_foo;
10787        } else {
10788          lt_count--;
10789        }
10790      }
10791    }
10792  }
10793  if (lt_foo != "") { lt_freq[lt_foo]++; }
10794  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10795}'`
10796  # AWK program above erroneously prepends '/' to C:/dos/paths
10797  # for these hosts.
10798  case $host_os in
10799    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10800      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10801  esac
10802  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10803else
10804  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10805fi
10806library_names_spec=
10807libname_spec='lib$name'
10808soname_spec=
10809shrext_cmds=.so
10810postinstall_cmds=
10811postuninstall_cmds=
10812finish_cmds=
10813finish_eval=
10814shlibpath_var=
10815shlibpath_overrides_runpath=unknown
10816version_type=none
10817dynamic_linker="$host_os ld.so"
10818sys_lib_dlsearch_path_spec="/lib /usr/lib"
10819need_lib_prefix=unknown
10820hardcode_into_libs=no
10821
10822# when you set need_version to no, make sure it does not cause -set_version
10823# flags to be left without arguments
10824need_version=unknown
10825
10826
10827
10828case $host_os in
10829aix3*)
10830  version_type=linux # correct to gnu/linux during the next big refactor
10831  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10832  shlibpath_var=LIBPATH
10833
10834  # AIX 3 has no versioning support, so we append a major version to the name.
10835  soname_spec='$libname$release$shared_ext$major'
10836  ;;
10837
10838aix[4-9]*)
10839  version_type=linux # correct to gnu/linux during the next big refactor
10840  need_lib_prefix=no
10841  need_version=no
10842  hardcode_into_libs=yes
10843  if test ia64 = "$host_cpu"; then
10844    # AIX 5 supports IA64
10845    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10846    shlibpath_var=LD_LIBRARY_PATH
10847  else
10848    # With GCC up to 2.95.x, collect2 would create an import file
10849    # for dependence libraries.  The import file would start with
10850    # the line '#! .'.  This would cause the generated library to
10851    # depend on '.', always an invalid library.  This was fixed in
10852    # development snapshots of GCC prior to 3.0.
10853    case $host_os in
10854      aix4 | aix4.[01] | aix4.[01].*)
10855      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10856	   echo ' yes '
10857	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10858	:
10859      else
10860	can_build_shared=no
10861      fi
10862      ;;
10863    esac
10864    # Using Import Files as archive members, it is possible to support
10865    # filename-based versioning of shared library archives on AIX. While
10866    # this would work for both with and without runtime linking, it will
10867    # prevent static linking of such archives. So we do filename-based
10868    # shared library versioning with .so extension only, which is used
10869    # when both runtime linking and shared linking is enabled.
10870    # Unfortunately, runtime linking may impact performance, so we do
10871    # not want this to be the default eventually. Also, we use the
10872    # versioned .so libs for executables only if there is the -brtl
10873    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10874    # To allow for filename-based versioning support, we need to create
10875    # libNAME.so.V as an archive file, containing:
10876    # *) an Import File, referring to the versioned filename of the
10877    #    archive as well as the shared archive member, telling the
10878    #    bitwidth (32 or 64) of that shared object, and providing the
10879    #    list of exported symbols of that shared object, eventually
10880    #    decorated with the 'weak' keyword
10881    # *) the shared object with the F_LOADONLY flag set, to really avoid
10882    #    it being seen by the linker.
10883    # At run time we better use the real file rather than another symlink,
10884    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10885
10886    case $with_aix_soname,$aix_use_runtimelinking in
10887    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10888    # soname into executable. Probably we can add versioning support to
10889    # collect2, so additional links can be useful in future.
10890    aix,yes) # traditional libtool
10891      dynamic_linker='AIX unversionable lib.so'
10892      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10893      # instead of lib<name>.a to let people know that these are not
10894      # typical AIX shared libraries.
10895      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10896      ;;
10897    aix,no) # traditional AIX only
10898      dynamic_linker='AIX lib.a(lib.so.V)'
10899      # We preserve .a as extension for shared libraries through AIX4.2
10900      # and later when we are not doing run time linking.
10901      library_names_spec='$libname$release.a $libname.a'
10902      soname_spec='$libname$release$shared_ext$major'
10903      ;;
10904    svr4,*) # full svr4 only
10905      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10906      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10907      # We do not specify a path in Import Files, so LIBPATH fires.
10908      shlibpath_overrides_runpath=yes
10909      ;;
10910    *,yes) # both, prefer svr4
10911      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10912      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10913      # unpreferred sharedlib libNAME.a needs extra handling
10914      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"'
10915      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"'
10916      # We do not specify a path in Import Files, so LIBPATH fires.
10917      shlibpath_overrides_runpath=yes
10918      ;;
10919    *,no) # both, prefer aix
10920      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10921      library_names_spec='$libname$release.a $libname.a'
10922      soname_spec='$libname$release$shared_ext$major'
10923      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10924      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)'
10925      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"'
10926      ;;
10927    esac
10928    shlibpath_var=LIBPATH
10929  fi
10930  ;;
10931
10932amigaos*)
10933  case $host_cpu in
10934  powerpc)
10935    # Since July 2007 AmigaOS4 officially supports .so libraries.
10936    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10937    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10938    ;;
10939  m68k)
10940    library_names_spec='$libname.ixlibrary $libname.a'
10941    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10942    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'
10943    ;;
10944  esac
10945  ;;
10946
10947beos*)
10948  library_names_spec='$libname$shared_ext'
10949  dynamic_linker="$host_os ld.so"
10950  shlibpath_var=LIBRARY_PATH
10951  ;;
10952
10953bsdi[45]*)
10954  version_type=linux # correct to gnu/linux during the next big refactor
10955  need_version=no
10956  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10957  soname_spec='$libname$release$shared_ext$major'
10958  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10959  shlibpath_var=LD_LIBRARY_PATH
10960  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10961  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10962  # the default ld.so.conf also contains /usr/contrib/lib and
10963  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10964  # libtool to hard-code these into programs
10965  ;;
10966
10967cygwin* | mingw* | pw32* | cegcc*)
10968  version_type=windows
10969  shrext_cmds=.dll
10970  need_version=no
10971  need_lib_prefix=no
10972
10973  case $GCC,$cc_basename in
10974  yes,*)
10975    # gcc
10976    library_names_spec='$libname.dll.a'
10977    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10978    postinstall_cmds='base_file=`basename \$file`~
10979      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10980      dldir=$destdir/`dirname \$dlpath`~
10981      test -d \$dldir || mkdir -p \$dldir~
10982      $install_prog $dir/$dlname \$dldir/$dlname~
10983      chmod a+x \$dldir/$dlname~
10984      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10985        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10986      fi'
10987    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10988      dlpath=$dir/\$dldll~
10989       $RM \$dlpath'
10990    shlibpath_overrides_runpath=yes
10991
10992    case $host_os in
10993    cygwin*)
10994      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10995      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10996
10997      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10998      ;;
10999    mingw* | cegcc*)
11000      # MinGW DLLs use traditional 'lib' prefix
11001      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11002      ;;
11003    pw32*)
11004      # pw32 DLLs use 'pw' prefix rather than 'lib'
11005      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11006      ;;
11007    esac
11008    dynamic_linker='Win32 ld.exe'
11009    ;;
11010
11011  *,cl*)
11012    # Native MSVC
11013    libname_spec='$name'
11014    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11015    library_names_spec='$libname.dll.lib'
11016
11017    case $build_os in
11018    mingw*)
11019      sys_lib_search_path_spec=
11020      lt_save_ifs=$IFS
11021      IFS=';'
11022      for lt_path in $LIB
11023      do
11024        IFS=$lt_save_ifs
11025        # Let DOS variable expansion print the short 8.3 style file name.
11026        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11027        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11028      done
11029      IFS=$lt_save_ifs
11030      # Convert to MSYS style.
11031      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11032      ;;
11033    cygwin*)
11034      # Convert to unix form, then to dos form, then back to unix form
11035      # but this time dos style (no spaces!) so that the unix form looks
11036      # like /cygdrive/c/PROGRA~1:/cygdr...
11037      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11038      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11039      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11040      ;;
11041    *)
11042      sys_lib_search_path_spec=$LIB
11043      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11044        # It is most probably a Windows format PATH.
11045        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11046      else
11047        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11048      fi
11049      # FIXME: find the short name or the path components, as spaces are
11050      # common. (e.g. "Program Files" -> "PROGRA~1")
11051      ;;
11052    esac
11053
11054    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11055    postinstall_cmds='base_file=`basename \$file`~
11056      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11057      dldir=$destdir/`dirname \$dlpath`~
11058      test -d \$dldir || mkdir -p \$dldir~
11059      $install_prog $dir/$dlname \$dldir/$dlname'
11060    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11061      dlpath=$dir/\$dldll~
11062       $RM \$dlpath'
11063    shlibpath_overrides_runpath=yes
11064    dynamic_linker='Win32 link.exe'
11065    ;;
11066
11067  *)
11068    # Assume MSVC wrapper
11069    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11070    dynamic_linker='Win32 ld.exe'
11071    ;;
11072  esac
11073  # FIXME: first we should search . and the directory the executable is in
11074  shlibpath_var=PATH
11075  ;;
11076
11077darwin* | rhapsody*)
11078  dynamic_linker="$host_os dyld"
11079  version_type=darwin
11080  need_lib_prefix=no
11081  need_version=no
11082  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11083  soname_spec='$libname$release$major$shared_ext'
11084  shlibpath_overrides_runpath=yes
11085  shlibpath_var=DYLD_LIBRARY_PATH
11086  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11087
11088  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11089  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11090  ;;
11091
11092dgux*)
11093  version_type=linux # correct to gnu/linux during the next big refactor
11094  need_lib_prefix=no
11095  need_version=no
11096  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097  soname_spec='$libname$release$shared_ext$major'
11098  shlibpath_var=LD_LIBRARY_PATH
11099  ;;
11100
11101freebsd* | dragonfly*)
11102  # DragonFly does not have aout.  When/if they implement a new
11103  # versioning mechanism, adjust this.
11104  if test -x /usr/bin/objformat; then
11105    objformat=`/usr/bin/objformat`
11106  else
11107    case $host_os in
11108    freebsd[23].*) objformat=aout ;;
11109    *) objformat=elf ;;
11110    esac
11111  fi
11112  version_type=freebsd-$objformat
11113  case $version_type in
11114    freebsd-elf*)
11115      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11116      soname_spec='$libname$release$shared_ext$major'
11117      need_version=no
11118      need_lib_prefix=no
11119      ;;
11120    freebsd-*)
11121      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11122      need_version=yes
11123      ;;
11124  esac
11125  shlibpath_var=LD_LIBRARY_PATH
11126  case $host_os in
11127  freebsd2.*)
11128    shlibpath_overrides_runpath=yes
11129    ;;
11130  freebsd3.[01]* | freebsdelf3.[01]*)
11131    shlibpath_overrides_runpath=yes
11132    hardcode_into_libs=yes
11133    ;;
11134  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11135  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11136    shlibpath_overrides_runpath=no
11137    hardcode_into_libs=yes
11138    ;;
11139  *) # from 4.6 on, and DragonFly
11140    shlibpath_overrides_runpath=yes
11141    hardcode_into_libs=yes
11142    ;;
11143  esac
11144  ;;
11145
11146haiku*)
11147  version_type=linux # correct to gnu/linux during the next big refactor
11148  need_lib_prefix=no
11149  need_version=no
11150  dynamic_linker="$host_os runtime_loader"
11151  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11152  soname_spec='$libname$release$shared_ext$major'
11153  shlibpath_var=LIBRARY_PATH
11154  shlibpath_overrides_runpath=no
11155  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11156  hardcode_into_libs=yes
11157  ;;
11158
11159hpux9* | hpux10* | hpux11*)
11160  # Give a soname corresponding to the major version so that dld.sl refuses to
11161  # link against other versions.
11162  version_type=sunos
11163  need_lib_prefix=no
11164  need_version=no
11165  case $host_cpu in
11166  ia64*)
11167    shrext_cmds='.so'
11168    hardcode_into_libs=yes
11169    dynamic_linker="$host_os dld.so"
11170    shlibpath_var=LD_LIBRARY_PATH
11171    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11172    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11173    soname_spec='$libname$release$shared_ext$major'
11174    if test 32 = "$HPUX_IA64_MODE"; then
11175      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11176      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11177    else
11178      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11179      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11180    fi
11181    ;;
11182  hppa*64*)
11183    shrext_cmds='.sl'
11184    hardcode_into_libs=yes
11185    dynamic_linker="$host_os dld.sl"
11186    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11187    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11188    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189    soname_spec='$libname$release$shared_ext$major'
11190    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11191    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11192    ;;
11193  *)
11194    shrext_cmds='.sl'
11195    dynamic_linker="$host_os dld.sl"
11196    shlibpath_var=SHLIB_PATH
11197    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11198    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11199    soname_spec='$libname$release$shared_ext$major'
11200    ;;
11201  esac
11202  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11203  postinstall_cmds='chmod 555 $lib'
11204  # or fails outright, so override atomically:
11205  install_override_mode=555
11206  ;;
11207
11208interix[3-9]*)
11209  version_type=linux # correct to gnu/linux during the next big refactor
11210  need_lib_prefix=no
11211  need_version=no
11212  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213  soname_spec='$libname$release$shared_ext$major'
11214  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11215  shlibpath_var=LD_LIBRARY_PATH
11216  shlibpath_overrides_runpath=no
11217  hardcode_into_libs=yes
11218  ;;
11219
11220irix5* | irix6* | nonstopux*)
11221  case $host_os in
11222    nonstopux*) version_type=nonstopux ;;
11223    *)
11224	if test yes = "$lt_cv_prog_gnu_ld"; then
11225		version_type=linux # correct to gnu/linux during the next big refactor
11226	else
11227		version_type=irix
11228	fi ;;
11229  esac
11230  need_lib_prefix=no
11231  need_version=no
11232  soname_spec='$libname$release$shared_ext$major'
11233  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11234  case $host_os in
11235  irix5* | nonstopux*)
11236    libsuff= shlibsuff=
11237    ;;
11238  *)
11239    case $LD in # libtool.m4 will add one of these switches to LD
11240    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11241      libsuff= shlibsuff= libmagic=32-bit;;
11242    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11243      libsuff=32 shlibsuff=N32 libmagic=N32;;
11244    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11245      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11246    *) libsuff= shlibsuff= libmagic=never-match;;
11247    esac
11248    ;;
11249  esac
11250  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11251  shlibpath_overrides_runpath=no
11252  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11253  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11254  hardcode_into_libs=yes
11255  ;;
11256
11257# No shared lib support for Linux oldld, aout, or coff.
11258linux*oldld* | linux*aout* | linux*coff*)
11259  dynamic_linker=no
11260  ;;
11261
11262linux*android*)
11263  version_type=none # Android doesn't support versioned libraries.
11264  need_lib_prefix=no
11265  need_version=no
11266  library_names_spec='$libname$release$shared_ext'
11267  soname_spec='$libname$release$shared_ext'
11268  finish_cmds=
11269  shlibpath_var=LD_LIBRARY_PATH
11270  shlibpath_overrides_runpath=yes
11271
11272  # This implies no fast_install, which is unacceptable.
11273  # Some rework will be needed to allow for fast_install
11274  # before this can be enabled.
11275  hardcode_into_libs=yes
11276
11277  dynamic_linker='Android linker'
11278  # Don't embed -rpath directories since the linker doesn't support them.
11279  hardcode_libdir_flag_spec='-L$libdir'
11280  ;;
11281
11282# This must be glibc/ELF.
11283linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11284  version_type=linux # correct to gnu/linux during the next big refactor
11285  need_lib_prefix=no
11286  need_version=no
11287  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11288  soname_spec='$libname$release$shared_ext$major'
11289  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11290  shlibpath_var=LD_LIBRARY_PATH
11291  shlibpath_overrides_runpath=no
11292
11293  # Some binutils ld are patched to set DT_RUNPATH
11294  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11295  $as_echo_n "(cached) " >&6
11296else
11297  lt_cv_shlibpath_overrides_runpath=no
11298    save_LDFLAGS=$LDFLAGS
11299    save_libdir=$libdir
11300    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11301	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11302    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h.  */
11304
11305int
11306main ()
11307{
11308
11309  ;
11310  return 0;
11311}
11312_ACEOF
11313if ac_fn_c_try_link "$LINENO"; then :
11314  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11315  lt_cv_shlibpath_overrides_runpath=yes
11316fi
11317fi
11318rm -f core conftest.err conftest.$ac_objext \
11319    conftest$ac_exeext conftest.$ac_ext
11320    LDFLAGS=$save_LDFLAGS
11321    libdir=$save_libdir
11322
11323fi
11324
11325  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11326
11327  # This implies no fast_install, which is unacceptable.
11328  # Some rework will be needed to allow for fast_install
11329  # before this can be enabled.
11330  hardcode_into_libs=yes
11331
11332  # Add ABI-specific directories to the system library path.
11333  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11334
11335  # Ideally, we could use ldconfig to report *all* directores which are
11336  # searched for libraries, however this is still not possible.  Aside from not
11337  # being certain /sbin/ldconfig is available, command
11338  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11339  # even though it is searched at run-time.  Try to do the best guess by
11340  # appending ld.so.conf contents (and includes) to the search path.
11341  if test -f /etc/ld.so.conf; then
11342    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' ' '`
11343    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11344  fi
11345
11346  # We used to test for /lib/ld.so.1 and disable shared libraries on
11347  # powerpc, because MkLinux only supported shared libraries with the
11348  # GNU dynamic linker.  Since this was broken with cross compilers,
11349  # most powerpc-linux boxes support dynamic linking these days and
11350  # people can always --disable-shared, the test was removed, and we
11351  # assume the GNU/Linux dynamic linker is in use.
11352  dynamic_linker='GNU/Linux ld.so'
11353  ;;
11354
11355netbsd*)
11356  version_type=sunos
11357  need_lib_prefix=no
11358  need_version=no
11359  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11360    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11361    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11362    dynamic_linker='NetBSD (a.out) ld.so'
11363  else
11364    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11365    soname_spec='$libname$release$shared_ext$major'
11366    dynamic_linker='NetBSD ld.elf_so'
11367  fi
11368  shlibpath_var=LD_LIBRARY_PATH
11369  shlibpath_overrides_runpath=yes
11370  hardcode_into_libs=yes
11371  ;;
11372
11373newsos6)
11374  version_type=linux # correct to gnu/linux during the next big refactor
11375  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11376  shlibpath_var=LD_LIBRARY_PATH
11377  shlibpath_overrides_runpath=yes
11378  ;;
11379
11380*nto* | *qnx*)
11381  version_type=qnx
11382  need_lib_prefix=no
11383  need_version=no
11384  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11385  soname_spec='$libname$release$shared_ext$major'
11386  shlibpath_var=LD_LIBRARY_PATH
11387  shlibpath_overrides_runpath=no
11388  hardcode_into_libs=yes
11389  dynamic_linker='ldqnx.so'
11390  ;;
11391
11392openbsd* | bitrig*)
11393  version_type=sunos
11394  sys_lib_dlsearch_path_spec=/usr/lib
11395  need_lib_prefix=no
11396  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11397    need_version=no
11398  else
11399    need_version=yes
11400  fi
11401  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11402  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11403  shlibpath_var=LD_LIBRARY_PATH
11404  shlibpath_overrides_runpath=yes
11405  ;;
11406
11407os2*)
11408  libname_spec='$name'
11409  version_type=windows
11410  shrext_cmds=.dll
11411  need_version=no
11412  need_lib_prefix=no
11413  # OS/2 can only load a DLL with a base name of 8 characters or less.
11414  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11415    v=$($ECHO $release$versuffix | tr -d .-);
11416    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11417    $ECHO $n$v`$shared_ext'
11418  library_names_spec='${libname}_dll.$libext'
11419  dynamic_linker='OS/2 ld.exe'
11420  shlibpath_var=BEGINLIBPATH
11421  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11422  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11423  postinstall_cmds='base_file=`basename \$file`~
11424    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11425    dldir=$destdir/`dirname \$dlpath`~
11426    test -d \$dldir || mkdir -p \$dldir~
11427    $install_prog $dir/$dlname \$dldir/$dlname~
11428    chmod a+x \$dldir/$dlname~
11429    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11430      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11431    fi'
11432  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11433    dlpath=$dir/\$dldll~
11434    $RM \$dlpath'
11435  ;;
11436
11437osf3* | osf4* | osf5*)
11438  version_type=osf
11439  need_lib_prefix=no
11440  need_version=no
11441  soname_spec='$libname$release$shared_ext$major'
11442  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11443  shlibpath_var=LD_LIBRARY_PATH
11444  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11445  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11446  ;;
11447
11448rdos*)
11449  dynamic_linker=no
11450  ;;
11451
11452solaris*)
11453  version_type=linux # correct to gnu/linux during the next big refactor
11454  need_lib_prefix=no
11455  need_version=no
11456  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457  soname_spec='$libname$release$shared_ext$major'
11458  shlibpath_var=LD_LIBRARY_PATH
11459  shlibpath_overrides_runpath=yes
11460  hardcode_into_libs=yes
11461  # ldd complains unless libraries are executable
11462  postinstall_cmds='chmod +x $lib'
11463  ;;
11464
11465sunos4*)
11466  version_type=sunos
11467  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11468  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11469  shlibpath_var=LD_LIBRARY_PATH
11470  shlibpath_overrides_runpath=yes
11471  if test yes = "$with_gnu_ld"; then
11472    need_lib_prefix=no
11473  fi
11474  need_version=yes
11475  ;;
11476
11477sysv4 | sysv4.3*)
11478  version_type=linux # correct to gnu/linux during the next big refactor
11479  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11480  soname_spec='$libname$release$shared_ext$major'
11481  shlibpath_var=LD_LIBRARY_PATH
11482  case $host_vendor in
11483    sni)
11484      shlibpath_overrides_runpath=no
11485      need_lib_prefix=no
11486      runpath_var=LD_RUN_PATH
11487      ;;
11488    siemens)
11489      need_lib_prefix=no
11490      ;;
11491    motorola)
11492      need_lib_prefix=no
11493      need_version=no
11494      shlibpath_overrides_runpath=no
11495      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11496      ;;
11497  esac
11498  ;;
11499
11500sysv4*MP*)
11501  if test -d /usr/nec; then
11502    version_type=linux # correct to gnu/linux during the next big refactor
11503    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11504    soname_spec='$libname$shared_ext.$major'
11505    shlibpath_var=LD_LIBRARY_PATH
11506  fi
11507  ;;
11508
11509sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11510  version_type=sco
11511  need_lib_prefix=no
11512  need_version=no
11513  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11514  soname_spec='$libname$release$shared_ext$major'
11515  shlibpath_var=LD_LIBRARY_PATH
11516  shlibpath_overrides_runpath=yes
11517  hardcode_into_libs=yes
11518  if test yes = "$with_gnu_ld"; then
11519    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11520  else
11521    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11522    case $host_os in
11523      sco3.2v5*)
11524        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11525	;;
11526    esac
11527  fi
11528  sys_lib_dlsearch_path_spec='/usr/lib'
11529  ;;
11530
11531tpf*)
11532  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11533  version_type=linux # correct to gnu/linux during the next big refactor
11534  need_lib_prefix=no
11535  need_version=no
11536  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537  shlibpath_var=LD_LIBRARY_PATH
11538  shlibpath_overrides_runpath=no
11539  hardcode_into_libs=yes
11540  ;;
11541
11542uts4*)
11543  version_type=linux # correct to gnu/linux during the next big refactor
11544  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11545  soname_spec='$libname$release$shared_ext$major'
11546  shlibpath_var=LD_LIBRARY_PATH
11547  ;;
11548
11549*)
11550  dynamic_linker=no
11551  ;;
11552esac
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11554$as_echo "$dynamic_linker" >&6; }
11555test no = "$dynamic_linker" && can_build_shared=no
11556
11557variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11558if test yes = "$GCC"; then
11559  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11560fi
11561
11562if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11563  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11564fi
11565
11566if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11567  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11568fi
11569
11570# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11571configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11572
11573# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11574func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11575
11576# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11577configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11676$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11677hardcode_action=
11678if test -n "$hardcode_libdir_flag_spec" ||
11679   test -n "$runpath_var" ||
11680   test yes = "$hardcode_automatic"; then
11681
11682  # We can hardcode non-existent directories.
11683  if test no != "$hardcode_direct" &&
11684     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11685     # have to relink, otherwise we might link with an installed library
11686     # when we should be linking with a yet-to-be-installed one
11687     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11688     test no != "$hardcode_minus_L"; then
11689    # Linking always hardcodes the temporary library directory.
11690    hardcode_action=relink
11691  else
11692    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11693    hardcode_action=immediate
11694  fi
11695else
11696  # We cannot hardcode anything, or else we can only hardcode existing
11697  # directories.
11698  hardcode_action=unsupported
11699fi
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11701$as_echo "$hardcode_action" >&6; }
11702
11703if test relink = "$hardcode_action" ||
11704   test yes = "$inherit_rpath"; then
11705  # Fast installation is not supported
11706  enable_fast_install=no
11707elif test yes = "$shlibpath_overrides_runpath" ||
11708     test no = "$enable_shared"; then
11709  # Fast installation is not necessary
11710  enable_fast_install=needless
11711fi
11712
11713
11714
11715
11716
11717
11718  if test yes != "$enable_dlopen"; then
11719  enable_dlopen=unknown
11720  enable_dlopen_self=unknown
11721  enable_dlopen_self_static=unknown
11722else
11723  lt_cv_dlopen=no
11724  lt_cv_dlopen_libs=
11725
11726  case $host_os in
11727  beos*)
11728    lt_cv_dlopen=load_add_on
11729    lt_cv_dlopen_libs=
11730    lt_cv_dlopen_self=yes
11731    ;;
11732
11733  mingw* | pw32* | cegcc*)
11734    lt_cv_dlopen=LoadLibrary
11735    lt_cv_dlopen_libs=
11736    ;;
11737
11738  cygwin*)
11739    lt_cv_dlopen=dlopen
11740    lt_cv_dlopen_libs=
11741    ;;
11742
11743  darwin*)
11744    # if libdl is installed we need to link against it
11745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11746$as_echo_n "checking for dlopen in -ldl... " >&6; }
11747if ${ac_cv_lib_dl_dlopen+:} false; then :
11748  $as_echo_n "(cached) " >&6
11749else
11750  ac_check_lib_save_LIBS=$LIBS
11751LIBS="-ldl  $LIBS"
11752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753/* end confdefs.h.  */
11754
11755/* Override any GCC internal prototype to avoid an error.
11756   Use char because int might match the return type of a GCC
11757   builtin and then its argument prototype would still apply.  */
11758#ifdef __cplusplus
11759extern "C"
11760#endif
11761char dlopen ();
11762int
11763main ()
11764{
11765return dlopen ();
11766  ;
11767  return 0;
11768}
11769_ACEOF
11770if ac_fn_c_try_link "$LINENO"; then :
11771  ac_cv_lib_dl_dlopen=yes
11772else
11773  ac_cv_lib_dl_dlopen=no
11774fi
11775rm -f core conftest.err conftest.$ac_objext \
11776    conftest$ac_exeext conftest.$ac_ext
11777LIBS=$ac_check_lib_save_LIBS
11778fi
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11780$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11781if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11782  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11783else
11784
11785    lt_cv_dlopen=dyld
11786    lt_cv_dlopen_libs=
11787    lt_cv_dlopen_self=yes
11788
11789fi
11790
11791    ;;
11792
11793  tpf*)
11794    # Don't try to run any link tests for TPF.  We know it's impossible
11795    # because TPF is a cross-compiler, and we know how we open DSOs.
11796    lt_cv_dlopen=dlopen
11797    lt_cv_dlopen_libs=
11798    lt_cv_dlopen_self=no
11799    ;;
11800
11801  *)
11802    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11803if test "x$ac_cv_func_shl_load" = xyes; then :
11804  lt_cv_dlopen=shl_load
11805else
11806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11807$as_echo_n "checking for shl_load in -ldld... " >&6; }
11808if ${ac_cv_lib_dld_shl_load+:} false; then :
11809  $as_echo_n "(cached) " >&6
11810else
11811  ac_check_lib_save_LIBS=$LIBS
11812LIBS="-ldld  $LIBS"
11813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h.  */
11815
11816/* Override any GCC internal prototype to avoid an error.
11817   Use char because int might match the return type of a GCC
11818   builtin and then its argument prototype would still apply.  */
11819#ifdef __cplusplus
11820extern "C"
11821#endif
11822char shl_load ();
11823int
11824main ()
11825{
11826return shl_load ();
11827  ;
11828  return 0;
11829}
11830_ACEOF
11831if ac_fn_c_try_link "$LINENO"; then :
11832  ac_cv_lib_dld_shl_load=yes
11833else
11834  ac_cv_lib_dld_shl_load=no
11835fi
11836rm -f core conftest.err conftest.$ac_objext \
11837    conftest$ac_exeext conftest.$ac_ext
11838LIBS=$ac_check_lib_save_LIBS
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11841$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11842if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11843  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11844else
11845  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11846if test "x$ac_cv_func_dlopen" = xyes; then :
11847  lt_cv_dlopen=dlopen
11848else
11849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11850$as_echo_n "checking for dlopen in -ldl... " >&6; }
11851if ${ac_cv_lib_dl_dlopen+:} false; then :
11852  $as_echo_n "(cached) " >&6
11853else
11854  ac_check_lib_save_LIBS=$LIBS
11855LIBS="-ldl  $LIBS"
11856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857/* end confdefs.h.  */
11858
11859/* Override any GCC internal prototype to avoid an error.
11860   Use char because int might match the return type of a GCC
11861   builtin and then its argument prototype would still apply.  */
11862#ifdef __cplusplus
11863extern "C"
11864#endif
11865char dlopen ();
11866int
11867main ()
11868{
11869return dlopen ();
11870  ;
11871  return 0;
11872}
11873_ACEOF
11874if ac_fn_c_try_link "$LINENO"; then :
11875  ac_cv_lib_dl_dlopen=yes
11876else
11877  ac_cv_lib_dl_dlopen=no
11878fi
11879rm -f core conftest.err conftest.$ac_objext \
11880    conftest$ac_exeext conftest.$ac_ext
11881LIBS=$ac_check_lib_save_LIBS
11882fi
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11884$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11885if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11886  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11887else
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11889$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11890if ${ac_cv_lib_svld_dlopen+:} false; then :
11891  $as_echo_n "(cached) " >&6
11892else
11893  ac_check_lib_save_LIBS=$LIBS
11894LIBS="-lsvld  $LIBS"
11895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896/* end confdefs.h.  */
11897
11898/* Override any GCC internal prototype to avoid an error.
11899   Use char because int might match the return type of a GCC
11900   builtin and then its argument prototype would still apply.  */
11901#ifdef __cplusplus
11902extern "C"
11903#endif
11904char dlopen ();
11905int
11906main ()
11907{
11908return dlopen ();
11909  ;
11910  return 0;
11911}
11912_ACEOF
11913if ac_fn_c_try_link "$LINENO"; then :
11914  ac_cv_lib_svld_dlopen=yes
11915else
11916  ac_cv_lib_svld_dlopen=no
11917fi
11918rm -f core conftest.err conftest.$ac_objext \
11919    conftest$ac_exeext conftest.$ac_ext
11920LIBS=$ac_check_lib_save_LIBS
11921fi
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11923$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11924if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11925  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11926else
11927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11928$as_echo_n "checking for dld_link in -ldld... " >&6; }
11929if ${ac_cv_lib_dld_dld_link+:} false; then :
11930  $as_echo_n "(cached) " >&6
11931else
11932  ac_check_lib_save_LIBS=$LIBS
11933LIBS="-ldld  $LIBS"
11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h.  */
11936
11937/* Override any GCC internal prototype to avoid an error.
11938   Use char because int might match the return type of a GCC
11939   builtin and then its argument prototype would still apply.  */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943char dld_link ();
11944int
11945main ()
11946{
11947return dld_link ();
11948  ;
11949  return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_link "$LINENO"; then :
11953  ac_cv_lib_dld_dld_link=yes
11954else
11955  ac_cv_lib_dld_dld_link=no
11956fi
11957rm -f core conftest.err conftest.$ac_objext \
11958    conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11962$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11963if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11964  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11965fi
11966
11967
11968fi
11969
11970
11971fi
11972
11973
11974fi
11975
11976
11977fi
11978
11979
11980fi
11981
11982    ;;
11983  esac
11984
11985  if test no = "$lt_cv_dlopen"; then
11986    enable_dlopen=no
11987  else
11988    enable_dlopen=yes
11989  fi
11990
11991  case $lt_cv_dlopen in
11992  dlopen)
11993    save_CPPFLAGS=$CPPFLAGS
11994    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11995
11996    save_LDFLAGS=$LDFLAGS
11997    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11998
11999    save_LIBS=$LIBS
12000    LIBS="$lt_cv_dlopen_libs $LIBS"
12001
12002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12003$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12004if ${lt_cv_dlopen_self+:} false; then :
12005  $as_echo_n "(cached) " >&6
12006else
12007  	  if test yes = "$cross_compiling"; then :
12008  lt_cv_dlopen_self=cross
12009else
12010  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12011  lt_status=$lt_dlunknown
12012  cat > conftest.$ac_ext <<_LT_EOF
12013#line $LINENO "configure"
12014#include "confdefs.h"
12015
12016#if HAVE_DLFCN_H
12017#include <dlfcn.h>
12018#endif
12019
12020#include <stdio.h>
12021
12022#ifdef RTLD_GLOBAL
12023#  define LT_DLGLOBAL		RTLD_GLOBAL
12024#else
12025#  ifdef DL_GLOBAL
12026#    define LT_DLGLOBAL		DL_GLOBAL
12027#  else
12028#    define LT_DLGLOBAL		0
12029#  endif
12030#endif
12031
12032/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12033   find out it does not work in some platform. */
12034#ifndef LT_DLLAZY_OR_NOW
12035#  ifdef RTLD_LAZY
12036#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12037#  else
12038#    ifdef DL_LAZY
12039#      define LT_DLLAZY_OR_NOW		DL_LAZY
12040#    else
12041#      ifdef RTLD_NOW
12042#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12043#      else
12044#        ifdef DL_NOW
12045#          define LT_DLLAZY_OR_NOW	DL_NOW
12046#        else
12047#          define LT_DLLAZY_OR_NOW	0
12048#        endif
12049#      endif
12050#    endif
12051#  endif
12052#endif
12053
12054/* When -fvisibility=hidden is used, assume the code has been annotated
12055   correspondingly for the symbols needed.  */
12056#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12057int fnord () __attribute__((visibility("default")));
12058#endif
12059
12060int fnord () { return 42; }
12061int main ()
12062{
12063  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12064  int status = $lt_dlunknown;
12065
12066  if (self)
12067    {
12068      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12069      else
12070        {
12071	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12072          else puts (dlerror ());
12073	}
12074      /* dlclose (self); */
12075    }
12076  else
12077    puts (dlerror ());
12078
12079  return status;
12080}
12081_LT_EOF
12082  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12083  (eval $ac_link) 2>&5
12084  ac_status=$?
12085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12086  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12087    (./conftest; exit; ) >&5 2>/dev/null
12088    lt_status=$?
12089    case x$lt_status in
12090      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12091      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12092      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12093    esac
12094  else :
12095    # compilation failed
12096    lt_cv_dlopen_self=no
12097  fi
12098fi
12099rm -fr conftest*
12100
12101
12102fi
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12104$as_echo "$lt_cv_dlopen_self" >&6; }
12105
12106    if test yes = "$lt_cv_dlopen_self"; then
12107      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12108      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12109$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12110if ${lt_cv_dlopen_self_static+:} false; then :
12111  $as_echo_n "(cached) " >&6
12112else
12113  	  if test yes = "$cross_compiling"; then :
12114  lt_cv_dlopen_self_static=cross
12115else
12116  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12117  lt_status=$lt_dlunknown
12118  cat > conftest.$ac_ext <<_LT_EOF
12119#line $LINENO "configure"
12120#include "confdefs.h"
12121
12122#if HAVE_DLFCN_H
12123#include <dlfcn.h>
12124#endif
12125
12126#include <stdio.h>
12127
12128#ifdef RTLD_GLOBAL
12129#  define LT_DLGLOBAL		RTLD_GLOBAL
12130#else
12131#  ifdef DL_GLOBAL
12132#    define LT_DLGLOBAL		DL_GLOBAL
12133#  else
12134#    define LT_DLGLOBAL		0
12135#  endif
12136#endif
12137
12138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12139   find out it does not work in some platform. */
12140#ifndef LT_DLLAZY_OR_NOW
12141#  ifdef RTLD_LAZY
12142#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12143#  else
12144#    ifdef DL_LAZY
12145#      define LT_DLLAZY_OR_NOW		DL_LAZY
12146#    else
12147#      ifdef RTLD_NOW
12148#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12149#      else
12150#        ifdef DL_NOW
12151#          define LT_DLLAZY_OR_NOW	DL_NOW
12152#        else
12153#          define LT_DLLAZY_OR_NOW	0
12154#        endif
12155#      endif
12156#    endif
12157#  endif
12158#endif
12159
12160/* When -fvisibility=hidden is used, assume the code has been annotated
12161   correspondingly for the symbols needed.  */
12162#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12163int fnord () __attribute__((visibility("default")));
12164#endif
12165
12166int fnord () { return 42; }
12167int main ()
12168{
12169  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12170  int status = $lt_dlunknown;
12171
12172  if (self)
12173    {
12174      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12175      else
12176        {
12177	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12178          else puts (dlerror ());
12179	}
12180      /* dlclose (self); */
12181    }
12182  else
12183    puts (dlerror ());
12184
12185  return status;
12186}
12187_LT_EOF
12188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12189  (eval $ac_link) 2>&5
12190  ac_status=$?
12191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12192  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12193    (./conftest; exit; ) >&5 2>/dev/null
12194    lt_status=$?
12195    case x$lt_status in
12196      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12197      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12198      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12199    esac
12200  else :
12201    # compilation failed
12202    lt_cv_dlopen_self_static=no
12203  fi
12204fi
12205rm -fr conftest*
12206
12207
12208fi
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12210$as_echo "$lt_cv_dlopen_self_static" >&6; }
12211    fi
12212
12213    CPPFLAGS=$save_CPPFLAGS
12214    LDFLAGS=$save_LDFLAGS
12215    LIBS=$save_LIBS
12216    ;;
12217  esac
12218
12219  case $lt_cv_dlopen_self in
12220  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12221  *) enable_dlopen_self=unknown ;;
12222  esac
12223
12224  case $lt_cv_dlopen_self_static in
12225  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12226  *) enable_dlopen_self_static=unknown ;;
12227  esac
12228fi
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246striplib=
12247old_striplib=
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12249$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12250if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12251  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12252  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254$as_echo "yes" >&6; }
12255else
12256# FIXME - insert some real tests, host_os isn't really good enough
12257  case $host_os in
12258  darwin*)
12259    if test -n "$STRIP"; then
12260      striplib="$STRIP -x"
12261      old_striplib="$STRIP -S"
12262      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263$as_echo "yes" >&6; }
12264    else
12265      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
12267    fi
12268    ;;
12269  *)
12270    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271$as_echo "no" >&6; }
12272    ;;
12273  esac
12274fi
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287  # Report what library types will actually be built
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12289$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12291$as_echo "$can_build_shared" >&6; }
12292
12293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12294$as_echo_n "checking whether to build shared libraries... " >&6; }
12295  test no = "$can_build_shared" && enable_shared=no
12296
12297  # On AIX, shared libraries and static libraries use the same namespace, and
12298  # are all built from PIC.
12299  case $host_os in
12300  aix3*)
12301    test yes = "$enable_shared" && enable_static=no
12302    if test -n "$RANLIB"; then
12303      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12304      postinstall_cmds='$RANLIB $lib'
12305    fi
12306    ;;
12307
12308  aix[4-9]*)
12309    if test ia64 != "$host_cpu"; then
12310      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12311      yes,aix,yes) ;;			# shared object as lib.so file only
12312      yes,svr4,*) ;;			# shared object as lib.so archive member only
12313      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12314      esac
12315    fi
12316    ;;
12317  esac
12318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12319$as_echo "$enable_shared" >&6; }
12320
12321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12322$as_echo_n "checking whether to build static libraries... " >&6; }
12323  # Make sure either enable_shared or enable_static is yes.
12324  test yes = "$enable_shared" || enable_static=yes
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12326$as_echo "$enable_static" >&6; }
12327
12328
12329
12330
12331fi
12332ac_ext=c
12333ac_cpp='$CPP $CPPFLAGS'
12334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12336ac_compiler_gnu=$ac_cv_c_compiler_gnu
12337
12338CC=$lt_save_CC
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354        ac_config_commands="$ac_config_commands libtool"
12355
12356
12357
12358
12359# Only expand once:
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12372	if test -n "$ac_tool_prefix"; then
12373  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12374set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376$as_echo_n "checking for $ac_word... " >&6; }
12377if ${ac_cv_path_PKG_CONFIG+:} false; then :
12378  $as_echo_n "(cached) " >&6
12379else
12380  case $PKG_CONFIG in
12381  [\\/]* | ?:[\\/]*)
12382  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12383  ;;
12384  *)
12385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386for as_dir in $PATH
12387do
12388  IFS=$as_save_IFS
12389  test -z "$as_dir" && as_dir=.
12390    for ac_exec_ext in '' $ac_executable_extensions; do
12391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394    break 2
12395  fi
12396done
12397  done
12398IFS=$as_save_IFS
12399
12400  ;;
12401esac
12402fi
12403PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12404if test -n "$PKG_CONFIG"; then
12405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12406$as_echo "$PKG_CONFIG" >&6; }
12407else
12408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
12410fi
12411
12412
12413fi
12414if test -z "$ac_cv_path_PKG_CONFIG"; then
12415  ac_pt_PKG_CONFIG=$PKG_CONFIG
12416  # Extract the first word of "pkg-config", so it can be a program name with args.
12417set dummy pkg-config; ac_word=$2
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419$as_echo_n "checking for $ac_word... " >&6; }
12420if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12421  $as_echo_n "(cached) " >&6
12422else
12423  case $ac_pt_PKG_CONFIG in
12424  [\\/]* | ?:[\\/]*)
12425  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12426  ;;
12427  *)
12428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429for as_dir in $PATH
12430do
12431  IFS=$as_save_IFS
12432  test -z "$as_dir" && as_dir=.
12433    for ac_exec_ext in '' $ac_executable_extensions; do
12434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437    break 2
12438  fi
12439done
12440  done
12441IFS=$as_save_IFS
12442
12443  ;;
12444esac
12445fi
12446ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12447if test -n "$ac_pt_PKG_CONFIG"; then
12448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12449$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12450else
12451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452$as_echo "no" >&6; }
12453fi
12454
12455  if test "x$ac_pt_PKG_CONFIG" = x; then
12456    PKG_CONFIG=""
12457  else
12458    case $cross_compiling:$ac_tool_warned in
12459yes:)
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12462ac_tool_warned=yes ;;
12463esac
12464    PKG_CONFIG=$ac_pt_PKG_CONFIG
12465  fi
12466else
12467  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12468fi
12469
12470fi
12471if test -n "$PKG_CONFIG"; then
12472	_pkg_min_version=0.9.0
12473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12474$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12475	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12477$as_echo "yes" >&6; }
12478	else
12479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
12481		PKG_CONFIG=""
12482	fi
12483fi
12484
12485pkg_failed=no
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5
12487$as_echo_n "checking for LIBIDN... " >&6; }
12488
12489if test -n "$LIBIDN_CFLAGS"; then
12490    pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS"
12491 elif test -n "$PKG_CONFIG"; then
12492    if test -n "$PKG_CONFIG" && \
12493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
12494  ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
12495  ac_status=$?
12496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12497  test $ac_status = 0; }; then
12498  pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null`
12499		      test "x$?" != "x0" && pkg_failed=yes
12500else
12501  pkg_failed=yes
12502fi
12503 else
12504    pkg_failed=untried
12505fi
12506if test -n "$LIBIDN_LIBS"; then
12507    pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS"
12508 elif test -n "$PKG_CONFIG"; then
12509    if test -n "$PKG_CONFIG" && \
12510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
12511  ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
12512  ac_status=$?
12513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12514  test $ac_status = 0; }; then
12515  pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null`
12516		      test "x$?" != "x0" && pkg_failed=yes
12517else
12518  pkg_failed=yes
12519fi
12520 else
12521    pkg_failed=untried
12522fi
12523
12524
12525
12526if test $pkg_failed = yes; then
12527   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
12529
12530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12531        _pkg_short_errors_supported=yes
12532else
12533        _pkg_short_errors_supported=no
12534fi
12535        if test $_pkg_short_errors_supported = yes; then
12536	        LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1`
12537        else
12538	        LIBIDN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1`
12539        fi
12540	# Put the nasty error message in config.log where it belongs
12541	echo "$LIBIDN_PKG_ERRORS" >&5
12542
12543	libidn=no
12544elif test $pkg_failed = untried; then
12545     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547	libidn=no
12548else
12549	LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS
12550	LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS
12551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12552$as_echo "yes" >&6; }
12553	libidn=yes
12554fi
12555
12556if test "$libidn" = "no"
12557then
12558	as_fn_error $? "libidn not found" "$LINENO" 5
12559fi
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12561$as_echo_n "checking for ANSI C header files... " >&6; }
12562if ${ac_cv_header_stdc+:} false; then :
12563  $as_echo_n "(cached) " >&6
12564else
12565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566/* end confdefs.h.  */
12567#include <stdlib.h>
12568#include <stdarg.h>
12569#include <string.h>
12570#include <float.h>
12571
12572int
12573main ()
12574{
12575
12576  ;
12577  return 0;
12578}
12579_ACEOF
12580if ac_fn_c_try_compile "$LINENO"; then :
12581  ac_cv_header_stdc=yes
12582else
12583  ac_cv_header_stdc=no
12584fi
12585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586
12587if test $ac_cv_header_stdc = yes; then
12588  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590/* end confdefs.h.  */
12591#include <string.h>
12592
12593_ACEOF
12594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12595  $EGREP "memchr" >/dev/null 2>&1; then :
12596
12597else
12598  ac_cv_header_stdc=no
12599fi
12600rm -f conftest*
12601
12602fi
12603
12604if test $ac_cv_header_stdc = yes; then
12605  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607/* end confdefs.h.  */
12608#include <stdlib.h>
12609
12610_ACEOF
12611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12612  $EGREP "free" >/dev/null 2>&1; then :
12613
12614else
12615  ac_cv_header_stdc=no
12616fi
12617rm -f conftest*
12618
12619fi
12620
12621if test $ac_cv_header_stdc = yes; then
12622  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12623  if test "$cross_compiling" = yes; then :
12624  :
12625else
12626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627/* end confdefs.h.  */
12628#include <ctype.h>
12629#include <stdlib.h>
12630#if ((' ' & 0x0FF) == 0x020)
12631# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12632# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12633#else
12634# define ISLOWER(c) \
12635		   (('a' <= (c) && (c) <= 'i') \
12636		     || ('j' <= (c) && (c) <= 'r') \
12637		     || ('s' <= (c) && (c) <= 'z'))
12638# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12639#endif
12640
12641#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12642int
12643main ()
12644{
12645  int i;
12646  for (i = 0; i < 256; i++)
12647    if (XOR (islower (i), ISLOWER (i))
12648	|| toupper (i) != TOUPPER (i))
12649      return 2;
12650  return 0;
12651}
12652_ACEOF
12653if ac_fn_c_try_run "$LINENO"; then :
12654
12655else
12656  ac_cv_header_stdc=no
12657fi
12658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12659  conftest.$ac_objext conftest.beam conftest.$ac_ext
12660fi
12661
12662fi
12663fi
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12665$as_echo "$ac_cv_header_stdc" >&6; }
12666if test $ac_cv_header_stdc = yes; then
12667
12668$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12669
12670fi
12671
12672for ac_header in sys/types.h sys/time.h unistd.h arpa/inet.h netinet/in.h
12673do :
12674  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12675ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12676if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12677  cat >>confdefs.h <<_ACEOF
12678#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12679_ACEOF
12680
12681fi
12682
12683done
12684
12685
12686USENSL=no
12687saveLIBS="$LIBS"
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12689$as_echo_n "checking for socket in -lsocket... " >&6; }
12690if ${ac_cv_lib_socket_socket+:} false; then :
12691  $as_echo_n "(cached) " >&6
12692else
12693  ac_check_lib_save_LIBS=$LIBS
12694LIBS="-lsocket  $LIBS"
12695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696/* end confdefs.h.  */
12697
12698/* Override any GCC internal prototype to avoid an error.
12699   Use char because int might match the return type of a GCC
12700   builtin and then its argument prototype would still apply.  */
12701#ifdef __cplusplus
12702extern "C"
12703#endif
12704char socket ();
12705int
12706main ()
12707{
12708return socket ();
12709  ;
12710  return 0;
12711}
12712_ACEOF
12713if ac_fn_c_try_link "$LINENO"; then :
12714  ac_cv_lib_socket_socket=yes
12715else
12716  ac_cv_lib_socket_socket=no
12717fi
12718rm -f core conftest.err conftest.$ac_objext \
12719    conftest$ac_exeext conftest.$ac_ext
12720LIBS=$ac_check_lib_save_LIBS
12721fi
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
12723$as_echo "$ac_cv_lib_socket_socket" >&6; }
12724if test "x$ac_cv_lib_socket_socket" = xyes; then :
12725  result=yes
12726else
12727  result=no
12728fi
12729
12730if test $result = yes; then
12731        NETLIBS="-lsocket"
12732else
12733        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12734$as_echo_n "checking for socket in -lsocket... " >&6; }
12735if ${ac_cv_lib_socket_socket+:} false; then :
12736  $as_echo_n "(cached) " >&6
12737else
12738  ac_check_lib_save_LIBS=$LIBS
12739LIBS="-lsocket -lnsl $LIBS"
12740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741/* end confdefs.h.  */
12742
12743/* Override any GCC internal prototype to avoid an error.
12744   Use char because int might match the return type of a GCC
12745   builtin and then its argument prototype would still apply.  */
12746#ifdef __cplusplus
12747extern "C"
12748#endif
12749char socket ();
12750int
12751main ()
12752{
12753return socket ();
12754  ;
12755  return 0;
12756}
12757_ACEOF
12758if ac_fn_c_try_link "$LINENO"; then :
12759  ac_cv_lib_socket_socket=yes
12760else
12761  ac_cv_lib_socket_socket=no
12762fi
12763rm -f core conftest.err conftest.$ac_objext \
12764    conftest$ac_exeext conftest.$ac_ext
12765LIBS=$ac_check_lib_save_LIBS
12766fi
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
12768$as_echo "$ac_cv_lib_socket_socket" >&6; }
12769if test "x$ac_cv_lib_socket_socket" = xyes; then :
12770  result=yes
12771else
12772  result=no
12773fi
12774
12775        if test $result = yes; then
12776                NETLIBS = "-lsocket -lnsl"
12777                USENSL=yes
12778        else
12779                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12780$as_echo_n "checking for connect in -lsocket... " >&6; }
12781if ${ac_cv_lib_socket_connect+:} false; then :
12782  $as_echo_n "(cached) " >&6
12783else
12784  ac_check_lib_save_LIBS=$LIBS
12785LIBS="-lsocket  $LIBS"
12786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787/* end confdefs.h.  */
12788
12789/* Override any GCC internal prototype to avoid an error.
12790   Use char because int might match the return type of a GCC
12791   builtin and then its argument prototype would still apply.  */
12792#ifdef __cplusplus
12793extern "C"
12794#endif
12795char connect ();
12796int
12797main ()
12798{
12799return connect ();
12800  ;
12801  return 0;
12802}
12803_ACEOF
12804if ac_fn_c_try_link "$LINENO"; then :
12805  ac_cv_lib_socket_connect=yes
12806else
12807  ac_cv_lib_socket_connect=no
12808fi
12809rm -f core conftest.err conftest.$ac_objext \
12810    conftest$ac_exeext conftest.$ac_ext
12811LIBS=$ac_check_lib_save_LIBS
12812fi
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12814$as_echo "$ac_cv_lib_socket_connect" >&6; }
12815if test "x$ac_cv_lib_socket_connect" = xyes; then :
12816  result=yes
12817else
12818  result=no
12819fi
12820
12821                if test $result = yes; then
12822                        NETLIBS="-lsocket"
12823                else
12824                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12825$as_echo_n "checking for connect in -lsocket... " >&6; }
12826if ${ac_cv_lib_socket_connect+:} false; then :
12827  $as_echo_n "(cached) " >&6
12828else
12829  ac_check_lib_save_LIBS=$LIBS
12830LIBS="-lsocket -lnsl $LIBS"
12831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832/* end confdefs.h.  */
12833
12834/* Override any GCC internal prototype to avoid an error.
12835   Use char because int might match the return type of a GCC
12836   builtin and then its argument prototype would still apply.  */
12837#ifdef __cplusplus
12838extern "C"
12839#endif
12840char connect ();
12841int
12842main ()
12843{
12844return connect ();
12845  ;
12846  return 0;
12847}
12848_ACEOF
12849if ac_fn_c_try_link "$LINENO"; then :
12850  ac_cv_lib_socket_connect=yes
12851else
12852  ac_cv_lib_socket_connect=no
12853fi
12854rm -f core conftest.err conftest.$ac_objext \
12855    conftest$ac_exeext conftest.$ac_ext
12856LIBS=$ac_check_lib_save_LIBS
12857fi
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12859$as_echo "$ac_cv_lib_socket_connect" >&6; }
12860if test "x$ac_cv_lib_socket_connect" = xyes; then :
12861  result=yes
12862else
12863  result=no
12864fi
12865
12866                        if test $result = yes; then
12867                                NETLIBS="-lsocket -lnsl"
12868                                USENSL=yes
12869                        fi
12870                fi
12871        fi
12872fi
12873
12874if test $USENSL != yes; then
12875	LIBS="$LIBS $NETLIBS"
12876	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h.  */
12878
12879/* Override any GCC internal prototype to avoid an error.
12880   Use char because int might match the return type of a GCC
12881   builtin and then its argument prototype would still apply.  */
12882#ifdef __cplusplus
12883extern "C"
12884#endif
12885char inet_addr ();
12886int
12887main ()
12888{
12889return inet_addr ();
12890  ;
12891  return 0;
12892}
12893_ACEOF
12894if ac_fn_c_try_link "$LINENO"; then :
12895   :
12896else
12897
12898	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
12899$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
12900if ${ac_cv_lib_nsl_inet_addr+:} false; then :
12901  $as_echo_n "(cached) " >&6
12902else
12903  ac_check_lib_save_LIBS=$LIBS
12904LIBS="-lnsl  $LIBS"
12905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906/* end confdefs.h.  */
12907
12908/* Override any GCC internal prototype to avoid an error.
12909   Use char because int might match the return type of a GCC
12910   builtin and then its argument prototype would still apply.  */
12911#ifdef __cplusplus
12912extern "C"
12913#endif
12914char inet_addr ();
12915int
12916main ()
12917{
12918return inet_addr ();
12919  ;
12920  return 0;
12921}
12922_ACEOF
12923if ac_fn_c_try_link "$LINENO"; then :
12924  ac_cv_lib_nsl_inet_addr=yes
12925else
12926  ac_cv_lib_nsl_inet_addr=no
12927fi
12928rm -f core conftest.err conftest.$ac_objext \
12929    conftest$ac_exeext conftest.$ac_ext
12930LIBS=$ac_check_lib_save_LIBS
12931fi
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
12933$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
12934if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
12935  result=yes
12936else
12937  result=no
12938fi
12939
12940	        if test $result = yes; then
12941	                NETLIBS="$NETLIBS -lnsl"
12942	        fi
12943
12944fi
12945rm -f core conftest.err conftest.$ac_objext \
12946    conftest$ac_exeext conftest.$ac_ext
12947fi
12948
12949LIBS="$saveLIBS $NETLIBS"
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12951$as_echo_n "checking for socket in -lsocket... " >&6; }
12952if ${ac_cv_lib_socket_socket+:} false; then :
12953  $as_echo_n "(cached) " >&6
12954else
12955  ac_check_lib_save_LIBS=$LIBS
12956LIBS="-lsocket  $LIBS"
12957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958/* end confdefs.h.  */
12959
12960/* Override any GCC internal prototype to avoid an error.
12961   Use char because int might match the return type of a GCC
12962   builtin and then its argument prototype would still apply.  */
12963#ifdef __cplusplus
12964extern "C"
12965#endif
12966char socket ();
12967int
12968main ()
12969{
12970return socket ();
12971  ;
12972  return 0;
12973}
12974_ACEOF
12975if ac_fn_c_try_link "$LINENO"; then :
12976  ac_cv_lib_socket_socket=yes
12977else
12978  ac_cv_lib_socket_socket=no
12979fi
12980rm -f core conftest.err conftest.$ac_objext \
12981    conftest$ac_exeext conftest.$ac_ext
12982LIBS=$ac_check_lib_save_LIBS
12983fi
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
12985$as_echo "$ac_cv_lib_socket_socket" >&6; }
12986if test "x$ac_cv_lib_socket_socket" = xyes; then :
12987  cat >>confdefs.h <<_ACEOF
12988#define HAVE_LIBSOCKET 1
12989_ACEOF
12990
12991  LIBS="-lsocket $LIBS"
12992
12993fi
12994
12995
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12997$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12998if ${ac_cv_c_const+:} false; then :
12999  $as_echo_n "(cached) " >&6
13000else
13001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002/* end confdefs.h.  */
13003
13004int
13005main ()
13006{
13007
13008#ifndef __cplusplus
13009  /* Ultrix mips cc rejects this sort of thing.  */
13010  typedef int charset[2];
13011  const charset cs = { 0, 0 };
13012  /* SunOS 4.1.1 cc rejects this.  */
13013  char const *const *pcpcc;
13014  char **ppc;
13015  /* NEC SVR4.0.2 mips cc rejects this.  */
13016  struct point {int x, y;};
13017  static struct point const zero = {0,0};
13018  /* AIX XL C 1.02.0.0 rejects this.
13019     It does not let you subtract one const X* pointer from another in
13020     an arm of an if-expression whose if-part is not a constant
13021     expression */
13022  const char *g = "string";
13023  pcpcc = &g + (g ? g-g : 0);
13024  /* HPUX 7.0 cc rejects these. */
13025  ++pcpcc;
13026  ppc = (char**) pcpcc;
13027  pcpcc = (char const *const *) ppc;
13028  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13029    char tx;
13030    char *t = &tx;
13031    char const *s = 0 ? (char *) 0 : (char const *) 0;
13032
13033    *t++ = 0;
13034    if (s) return 0;
13035  }
13036  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13037    int x[] = {25, 17};
13038    const int *foo = &x[0];
13039    ++foo;
13040  }
13041  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13042    typedef const int *iptr;
13043    iptr p = 0;
13044    ++p;
13045  }
13046  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13047       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13048    struct s { int j; const int *ap[3]; } bx;
13049    struct s *b = &bx; b->j = 5;
13050  }
13051  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13052    const int foo = 10;
13053    if (!foo) return 0;
13054  }
13055  return !cs[0] && !zero.x;
13056#endif
13057
13058  ;
13059  return 0;
13060}
13061_ACEOF
13062if ac_fn_c_try_compile "$LINENO"; then :
13063  ac_cv_c_const=yes
13064else
13065  ac_cv_c_const=no
13066fi
13067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068fi
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13070$as_echo "$ac_cv_c_const" >&6; }
13071if test $ac_cv_c_const = no; then
13072
13073$as_echo "#define const /**/" >>confdefs.h
13074
13075fi
13076
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13078$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13079if ${ac_cv_header_time+:} false; then :
13080  $as_echo_n "(cached) " >&6
13081else
13082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h.  */
13084#include <sys/types.h>
13085#include <sys/time.h>
13086#include <time.h>
13087
13088int
13089main ()
13090{
13091if ((struct tm *) 0)
13092return 0;
13093  ;
13094  return 0;
13095}
13096_ACEOF
13097if ac_fn_c_try_compile "$LINENO"; then :
13098  ac_cv_header_time=yes
13099else
13100  ac_cv_header_time=no
13101fi
13102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13105$as_echo "$ac_cv_header_time" >&6; }
13106if test $ac_cv_header_time = yes; then
13107
13108$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13109
13110fi
13111
13112# Check whether --enable-largefile was given.
13113if test "${enable_largefile+set}" = set; then :
13114  enableval=$enable_largefile;
13115fi
13116
13117if test "$enable_largefile" != no; then
13118
13119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13120$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13121if ${ac_cv_sys_largefile_CC+:} false; then :
13122  $as_echo_n "(cached) " >&6
13123else
13124  ac_cv_sys_largefile_CC=no
13125     if test "$GCC" != yes; then
13126       ac_save_CC=$CC
13127       while :; do
13128	 # IRIX 6.2 and later do not support large files by default,
13129	 # so use the C compiler's -n32 option if that helps.
13130	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131/* end confdefs.h.  */
13132#include <sys/types.h>
13133 /* Check that off_t can represent 2**63 - 1 correctly.
13134    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13135    since some C++ compilers masquerading as C compilers
13136    incorrectly reject 9223372036854775807.  */
13137#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13138  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13139		       && LARGE_OFF_T % 2147483647 == 1)
13140		      ? 1 : -1];
13141int
13142main ()
13143{
13144
13145  ;
13146  return 0;
13147}
13148_ACEOF
13149	 if ac_fn_c_try_compile "$LINENO"; then :
13150  break
13151fi
13152rm -f core conftest.err conftest.$ac_objext
13153	 CC="$CC -n32"
13154	 if ac_fn_c_try_compile "$LINENO"; then :
13155  ac_cv_sys_largefile_CC=' -n32'; break
13156fi
13157rm -f core conftest.err conftest.$ac_objext
13158	 break
13159       done
13160       CC=$ac_save_CC
13161       rm -f conftest.$ac_ext
13162    fi
13163fi
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13165$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13166  if test "$ac_cv_sys_largefile_CC" != no; then
13167    CC=$CC$ac_cv_sys_largefile_CC
13168  fi
13169
13170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13171$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13172if ${ac_cv_sys_file_offset_bits+:} false; then :
13173  $as_echo_n "(cached) " >&6
13174else
13175  while :; do
13176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177/* end confdefs.h.  */
13178#include <sys/types.h>
13179 /* Check that off_t can represent 2**63 - 1 correctly.
13180    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13181    since some C++ compilers masquerading as C compilers
13182    incorrectly reject 9223372036854775807.  */
13183#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13184  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13185		       && LARGE_OFF_T % 2147483647 == 1)
13186		      ? 1 : -1];
13187int
13188main ()
13189{
13190
13191  ;
13192  return 0;
13193}
13194_ACEOF
13195if ac_fn_c_try_compile "$LINENO"; then :
13196  ac_cv_sys_file_offset_bits=no; break
13197fi
13198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200/* end confdefs.h.  */
13201#define _FILE_OFFSET_BITS 64
13202#include <sys/types.h>
13203 /* Check that off_t can represent 2**63 - 1 correctly.
13204    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13205    since some C++ compilers masquerading as C compilers
13206    incorrectly reject 9223372036854775807.  */
13207#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13208  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13209		       && LARGE_OFF_T % 2147483647 == 1)
13210		      ? 1 : -1];
13211int
13212main ()
13213{
13214
13215  ;
13216  return 0;
13217}
13218_ACEOF
13219if ac_fn_c_try_compile "$LINENO"; then :
13220  ac_cv_sys_file_offset_bits=64; break
13221fi
13222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223  ac_cv_sys_file_offset_bits=unknown
13224  break
13225done
13226fi
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13228$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13229case $ac_cv_sys_file_offset_bits in #(
13230  no | unknown) ;;
13231  *)
13232cat >>confdefs.h <<_ACEOF
13233#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13234_ACEOF
13235;;
13236esac
13237rm -rf conftest*
13238  if test $ac_cv_sys_file_offset_bits = unknown; then
13239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13240$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13241if ${ac_cv_sys_large_files+:} false; then :
13242  $as_echo_n "(cached) " >&6
13243else
13244  while :; do
13245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246/* end confdefs.h.  */
13247#include <sys/types.h>
13248 /* Check that off_t can represent 2**63 - 1 correctly.
13249    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13250    since some C++ compilers masquerading as C compilers
13251    incorrectly reject 9223372036854775807.  */
13252#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13253  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13254		       && LARGE_OFF_T % 2147483647 == 1)
13255		      ? 1 : -1];
13256int
13257main ()
13258{
13259
13260  ;
13261  return 0;
13262}
13263_ACEOF
13264if ac_fn_c_try_compile "$LINENO"; then :
13265  ac_cv_sys_large_files=no; break
13266fi
13267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269/* end confdefs.h.  */
13270#define _LARGE_FILES 1
13271#include <sys/types.h>
13272 /* Check that off_t can represent 2**63 - 1 correctly.
13273    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13274    since some C++ compilers masquerading as C compilers
13275    incorrectly reject 9223372036854775807.  */
13276#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13277  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13278		       && LARGE_OFF_T % 2147483647 == 1)
13279		      ? 1 : -1];
13280int
13281main ()
13282{
13283
13284  ;
13285  return 0;
13286}
13287_ACEOF
13288if ac_fn_c_try_compile "$LINENO"; then :
13289  ac_cv_sys_large_files=1; break
13290fi
13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292  ac_cv_sys_large_files=unknown
13293  break
13294done
13295fi
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13297$as_echo "$ac_cv_sys_large_files" >&6; }
13298case $ac_cv_sys_large_files in #(
13299  no | unknown) ;;
13300  *)
13301cat >>confdefs.h <<_ACEOF
13302#define _LARGE_FILES $ac_cv_sys_large_files
13303_ACEOF
13304;;
13305esac
13306rm -rf conftest*
13307  fi
13308
13309
13310fi
13311
13312
13313
13314# Check whether --with-int32 was given.
13315if test "${with_int32+set}" = set; then :
13316  withval=$with_int32; int32="$withval"
13317else
13318
13319
13320		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
13321$as_echo_n "checking for uint32_t... " >&6; }
13322
13323		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324/* end confdefs.h.  */
13325
13326#if HAVE_SYS_TYPES_H
13327#include	<sys/types.h>
13328#endif
13329
13330int
13331main ()
13332{
13333
13334			uint32_t	i=0;
13335
13336  ;
13337  return 0;
13338}
13339_ACEOF
13340if ac_fn_c_try_compile "$LINENO"; then :
13341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13342$as_echo "yes" >&6; } ; int32="uint32_t"
13343else
13344
13345
13346		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
13348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5
13349$as_echo_n "checking for u_int_32_t... " >&6; }
13350
13351		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352/* end confdefs.h.  */
13353
13354#if HAVE_SYS_TYPES_H
13355#include	<sys/types.h>
13356#endif
13357
13358int
13359main ()
13360{
13361
13362				u_int32_t	i=0;
13363
13364  ;
13365  return 0;
13366}
13367_ACEOF
13368if ac_fn_c_try_compile "$LINENO"; then :
13369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13370$as_echo "yes" >&6; }; int32="u_int32_t"
13371else
13372
13373
13374			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375$as_echo "no" >&6; }
13376
13377			# The cast to long int works around a bug in the HP C Compiler
13378# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13379# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13380# This bug is HP SR number 8606223364.
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
13382$as_echo_n "checking size of unsigned... " >&6; }
13383if ${ac_cv_sizeof_unsigned+:} false; then :
13384  $as_echo_n "(cached) " >&6
13385else
13386  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned"        "$ac_includes_default"; then :
13387
13388else
13389  if test "$ac_cv_type_unsigned" = yes; then
13390     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13392as_fn_error 77 "cannot compute sizeof (unsigned)
13393See \`config.log' for more details" "$LINENO" 5; }
13394   else
13395     ac_cv_sizeof_unsigned=0
13396   fi
13397fi
13398
13399fi
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
13401$as_echo "$ac_cv_sizeof_unsigned" >&6; }
13402
13403
13404
13405cat >>confdefs.h <<_ACEOF
13406#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
13407_ACEOF
13408
13409
13410			if test "$ac_cv_sizeof_unsigned" != 4
13411			then
13412				# The cast to long int works around a bug in the HP C Compiler
13413# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13414# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13415# This bug is HP SR number 8606223364.
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13417$as_echo_n "checking size of unsigned long... " >&6; }
13418if ${ac_cv_sizeof_unsigned_long+:} false; then :
13419  $as_echo_n "(cached) " >&6
13420else
13421  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
13422
13423else
13424  if test "$ac_cv_type_unsigned_long" = yes; then
13425     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13427as_fn_error 77 "cannot compute sizeof (unsigned long)
13428See \`config.log' for more details" "$LINENO" 5; }
13429   else
13430     ac_cv_sizeof_unsigned_long=0
13431   fi
13432fi
13433
13434fi
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13436$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13437
13438
13439
13440cat >>confdefs.h <<_ACEOF
13441#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13442_ACEOF
13443
13444
13445				if test "$ac_cv_sizeof_unsigned_long" != 4
13446				then
13447					# The cast to long int works around a bug in the HP C Compiler
13448# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13449# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13450# This bug is HP SR number 8606223364.
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
13452$as_echo_n "checking size of unsigned short... " >&6; }
13453if ${ac_cv_sizeof_unsigned_short+:} false; then :
13454  $as_echo_n "(cached) " >&6
13455else
13456  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
13457
13458else
13459  if test "$ac_cv_type_unsigned_short" = yes; then
13460     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13462as_fn_error 77 "cannot compute sizeof (unsigned short)
13463See \`config.log' for more details" "$LINENO" 5; }
13464   else
13465     ac_cv_sizeof_unsigned_short=0
13466   fi
13467fi
13468
13469fi
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
13471$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
13472
13473
13474
13475cat >>confdefs.h <<_ACEOF
13476#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
13477_ACEOF
13478
13479
13480					if test "$ac_cv_sizeof_unsigned_short" != 4
13481					then
13482						as_fn_error $? "--with-int32 option is required" "$LINENO" 5
13483					fi
13484					int32="unsigned short"
13485				fi
13486				int32="unsigned long"
13487			else
13488				int32="unsigned"
13489			fi
13490
13491fi
13492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493
13494fi
13495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496
13497
13498fi
13499
13500UINT32="$int32"
13501
13502
13503# Check whether --with-int16 was given.
13504if test "${with_int16+set}" = set; then :
13505  withval=$with_int16; int16="$withval"
13506else
13507
13508
13509		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
13510$as_echo_n "checking for uint16_t... " >&6; }
13511
13512		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h.  */
13514
13515#if HAVE_SYS_TYPES_H
13516#include	<sys/types.h>
13517#endif
13518
13519int
13520main ()
13521{
13522
13523			uint16_t	i=0;
13524
13525  ;
13526  return 0;
13527}
13528_ACEOF
13529if ac_fn_c_try_compile "$LINENO"; then :
13530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13531$as_echo "yes" >&6; } ; int16="uint16_t"
13532else
13533
13534
13535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536$as_echo "no" >&6; }
13537		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_16_t" >&5
13538$as_echo_n "checking for u_int_16_t... " >&6; }
13539
13540		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541/* end confdefs.h.  */
13542
13543#if HAVE_SYS_TYPES_H
13544#include	<sys/types.h>
13545#endif
13546
13547int
13548main ()
13549{
13550
13551				u_int16_t	i=0;
13552
13553  ;
13554  return 0;
13555}
13556_ACEOF
13557if ac_fn_c_try_compile "$LINENO"; then :
13558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13559$as_echo "yes" >&6; }; int16="u_int16_t"
13560else
13561
13562
13563			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564$as_echo "no" >&6; }
13565
13566			# The cast to long int works around a bug in the HP C Compiler
13567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13569# This bug is HP SR number 8606223364.
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
13571$as_echo_n "checking size of unsigned... " >&6; }
13572if ${ac_cv_sizeof_unsigned+:} false; then :
13573  $as_echo_n "(cached) " >&6
13574else
13575  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned"        "$ac_includes_default"; then :
13576
13577else
13578  if test "$ac_cv_type_unsigned" = yes; then
13579     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13581as_fn_error 77 "cannot compute sizeof (unsigned)
13582See \`config.log' for more details" "$LINENO" 5; }
13583   else
13584     ac_cv_sizeof_unsigned=0
13585   fi
13586fi
13587
13588fi
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
13590$as_echo "$ac_cv_sizeof_unsigned" >&6; }
13591
13592
13593
13594cat >>confdefs.h <<_ACEOF
13595#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
13596_ACEOF
13597
13598
13599			if test "$ac_cv_sizeof_unsigned" != 4
13600			then
13601				# The cast to long int works around a bug in the HP C Compiler
13602# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13603# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13604# This bug is HP SR number 8606223364.
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13606$as_echo_n "checking size of unsigned long... " >&6; }
13607if ${ac_cv_sizeof_unsigned_long+:} false; then :
13608  $as_echo_n "(cached) " >&6
13609else
13610  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
13611
13612else
13613  if test "$ac_cv_type_unsigned_long" = yes; then
13614     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13616as_fn_error 77 "cannot compute sizeof (unsigned long)
13617See \`config.log' for more details" "$LINENO" 5; }
13618   else
13619     ac_cv_sizeof_unsigned_long=0
13620   fi
13621fi
13622
13623fi
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13625$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13626
13627
13628
13629cat >>confdefs.h <<_ACEOF
13630#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13631_ACEOF
13632
13633
13634				if test "$ac_cv_sizeof_unsigned_long" != 4
13635				then
13636					# The cast to long int works around a bug in the HP C Compiler
13637# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13638# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13639# This bug is HP SR number 8606223364.
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
13641$as_echo_n "checking size of unsigned short... " >&6; }
13642if ${ac_cv_sizeof_unsigned_short+:} false; then :
13643  $as_echo_n "(cached) " >&6
13644else
13645  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
13646
13647else
13648  if test "$ac_cv_type_unsigned_short" = yes; then
13649     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13651as_fn_error 77 "cannot compute sizeof (unsigned short)
13652See \`config.log' for more details" "$LINENO" 5; }
13653   else
13654     ac_cv_sizeof_unsigned_short=0
13655   fi
13656fi
13657
13658fi
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
13660$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
13661
13662
13663
13664cat >>confdefs.h <<_ACEOF
13665#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
13666_ACEOF
13667
13668
13669					if test "$ac_cv_sizeof_unsigned_short" != 4
13670					then
13671						as_fn_error $? "--with-int16 option is required" "$LINENO" 5
13672					fi
13673					int16="unsigned short"
13674				fi
13675				int16="unsigned long"
13676			else
13677				int16="unsigned"
13678			fi
13679
13680fi
13681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682
13683fi
13684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685
13686
13687fi
13688
13689UINT16="$int16"
13690
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
13692$as_echo_n "checking for socklen_t... " >&6; }
13693if ${courier_cv_hassocklen_t+:} false; then :
13694  $as_echo_n "(cached) " >&6
13695else
13696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697/* end confdefs.h.  */
13698
13699
13700#include <sys/types.h>
13701#include <sys/socket.h>
13702
13703socklen_t sl_t;
13704
13705_ACEOF
13706if ac_fn_c_try_compile "$LINENO"; then :
13707  courier_cv_hassocklen_t=yes
13708else
13709  courier_cv_hassocklen_t=no
13710fi
13711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13712
13713fi
13714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $courier_cv_hassocklen_t" >&5
13715$as_echo "$courier_cv_hassocklen_t" >&6; }
13716
13717socklen_t="int"
13718
13719if test $courier_cv_hassocklen_t = yes
13720then
13721	:
13722else
13723
13724cat >>confdefs.h <<_ACEOF
13725#define socklen_t int
13726_ACEOF
13727
13728fi
13729
13730
13731for ac_func in strcasecmp
13732do :
13733  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13734if test "x$ac_cv_func_strcasecmp" = xyes; then :
13735  cat >>confdefs.h <<_ACEOF
13736#define HAVE_STRCASECMP 1
13737_ACEOF
13738
13739fi
13740done
13741
13742
13743
13744if test "$GCC" = "yes"
13745then
13746	CFLAGS="$CFLAGS -Wall"
13747fi
13748
13749CFLAGS="$CFLAGS -I$srcdir/.. -I.."
13750
13751
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for structs in6_addr, sockaddr_in6, and sockaddr_storage" >&5
13753$as_echo_n "checking for structs in6_addr, sockaddr_in6, and sockaddr_storage... " >&6; }
13754if ${rfc1035_cv_hasipv6structs+:} false; then :
13755  $as_echo_n "(cached) " >&6
13756else
13757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758/* end confdefs.h.  */
13759
13760#include <sys/types.h>
13761#include <sys/socket.h>
13762#include <netinet/in.h>
13763#include <arpa/inet.h>
13764
13765
13766int
13767main ()
13768{
13769
13770struct in6_addr in6a;
13771struct sockaddr_in6 sain6;
13772struct sockaddr_storage soas;
13773int x=PF_INET6;
13774
13775
13776  ;
13777  return 0;
13778}
13779_ACEOF
13780if ac_fn_c_try_compile "$LINENO"; then :
13781  rfc1035_cv_hasipv6structs=yes
13782else
13783  rfc1035_cv_hasipv6structs=no
13784fi
13785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786
13787fi
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rfc1035_cv_hasipv6structs" >&5
13789$as_echo "$rfc1035_cv_hasipv6structs" >&6; }
13790
13791
13792
13793LB='['
13794RB=']'
13795
13796
13797
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 flavor" >&5
13799$as_echo_n "checking for IPv6 flavor... " >&6; }
13800if ${rfc1035_cv_ipv6flavor+:} false; then :
13801  $as_echo_n "(cached) " >&6
13802else
13803  if test "$rfc1035_cv_hasipv6structs" = no
13804then
13805	rfc1035_cv_ipv6flavor=none
13806else
13807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808/* end confdefs.h.  */
13809
13810#include <sys/types.h>
13811#include <sys/socket.h>
13812#include <netinet/in.h>
13813#include <arpa/inet.h>
13814
13815int
13816main ()
13817{
13818
13819struct in6_addr in6a;
13820
13821	in6a.s6_addr16 $LB 0 $RB =0;
13822	in6a.s6_addr32 $LB 0 $RB =0;
13823
13824  ;
13825  return 0;
13826}
13827_ACEOF
13828if ac_fn_c_try_compile "$LINENO"; then :
13829  rfc1035_cv_ipv6flavor="glibc (default)"
13830else
13831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832/* end confdefs.h.  */
13833
13834#include <sys/types.h>
13835#include <sys/socket.h>
13836#include <netinet/in.h>
13837#include <arpa/inet.h>
13838
13839
13840int
13841main ()
13842{
13843
13844struct in6_addr in6a;
13845
13846	in6a.__u6_addr.__u6_addr16 $LB 0 $RB =0;
13847	in6a.__u6_addr.__u6_addr32 $LB 0 $RB =0;
13848
13849  ;
13850  return 0;
13851}
13852_ACEOF
13853if ac_fn_c_try_compile "$LINENO"; then :
13854  rfc1035_cv_ipv6flavor="freebsd-4.0"
13855else
13856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857/* end confdefs.h.  */
13858
13859#include <sys/types.h>
13860#include <sys/socket.h>
13861#include <netinet/in.h>
13862#include <arpa/inet.h>
13863
13864
13865int
13866main ()
13867{
13868
13869struct in6_addr in6a;
13870
13871       in6a._S6_un._S6_u8 $LB 0 $RB = 0;
13872       in6a._S6_un._S6_u32 $LB 0 $RB = 0;
13873
13874
13875  ;
13876  return 0;
13877}
13878_ACEOF
13879if ac_fn_c_try_compile "$LINENO"; then :
13880  rfc1035_cv_ipv6flavor="solaris8"
13881else
13882  rfc1035_cv_ipv6flavor="unknown"
13883
13884fi
13885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886
13887fi
13888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889
13890fi
13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892fi
13893
13894fi
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rfc1035_cv_ipv6flavor" >&5
13896$as_echo "$rfc1035_cv_ipv6flavor" >&6; }
13897
13898RFC1035_FREEBSD40=0
13899if test "$rfc1035_cv_ipv6flavor" = "freebsd-4.0"
13900then
13901	RFC1035_FREEBSD40=1
13902
13903cat >>confdefs.h <<_ACEOF
13904#define RFC1035_FREEBSD40 1
13905_ACEOF
13906
13907fi
13908
13909
13910RFC1035_SOLARIS8=0
13911
13912if test "$rfc1035_cv_ipv6flavor" = "solaris8"
13913then
13914	RFC1035_SOLARIS8=1
13915
13916cat >>confdefs.h <<_ACEOF
13917#define RFC1035_SOLARIS8 1
13918_ACEOF
13919
13920fi
13921
13922
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIOCGIFCONF" >&5
13924$as_echo_n "checking for SIOCGIFCONF... " >&6; }
13925if ${rfc1035_cv_siocgifconf+:} false; then :
13926  $as_echo_n "(cached) " >&6
13927else
13928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929/* end confdefs.h.  */
13930
13931
13932#include <sys/types.h>
13933#include <sys/ioctl.h>
13934#include <net/if.h>
13935#include <unistd.h>
13936
13937int
13938main ()
13939{
13940
13941	struct ifreq ifreq_buf;
13942	struct ifconf ifc;
13943
13944	ifc.ifc_len=sizeof(ifreq_buf);
13945	ifc.ifc_req=&ifreq_buf;
13946
13947	ioctl(0, SIOCGIFCONF, &ifc);
13948
13949  ;
13950  return 0;
13951}
13952_ACEOF
13953if ac_fn_c_try_compile "$LINENO"; then :
13954  rfc1035_cv_siocgifconf=yes
13955else
13956  rfc1035_cv_siocgifconf=no
13957fi
13958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959
13960fi
13961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rfc1035_cv_siocgifconf" >&5
13962$as_echo "$rfc1035_cv_siocgifconf" >&6; }
13963
13964if test "$rfc1035_cv_siocgifconf" = "yes"
13965then
13966
13967cat >>confdefs.h <<_ACEOF
13968#define HAVE_SIOCGIFCONF 1
13969_ACEOF
13970
13971fi
13972
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13974$as_echo_n "checking for alloca... " >&6; }
13975if ${rfc1035_cv_alloca+:} false; then :
13976  $as_echo_n "(cached) " >&6
13977else
13978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979/* end confdefs.h.  */
13980
13981#include <stdio.h>
13982#include <stdlib.h>
13983
13984
13985int
13986main ()
13987{
13988
13989char *p=(char *)alloca(10);
13990
13991
13992  ;
13993  return 0;
13994}
13995_ACEOF
13996if ac_fn_c_try_compile "$LINENO"; then :
13997  rfc1035_cv_alloca=yes
13998else
13999  rfc1035_cv_alloca
14000fi
14001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14002
14003fi
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rfc1035_cv_alloca" >&5
14005$as_echo "$rfc1035_cv_alloca" >&6; }
14006
14007ipv6=0
14008if test "$rfc1035_cv_hasipv6structs$rfc1035_cv_alloca" = yesyes
14009then
14010	if test "$rfc1035_cv_ipv6flavor" != "unknown"
14011	then
14012		ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14013if test "x$ac_cv_func_inet_pton" = xyes; then :
14014
14015			ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14016if test "x$ac_cv_func_inet_ntop" = xyes; then :
14017  ipv6=1
14018fi
14019
14020
14021
14022fi
14023
14024	fi
14025fi
14026
14027
14028# Check whether --with-ipv6 was given.
14029if test "${with_ipv6+set}" = set; then :
14030  withval=$with_ipv6;
14031case $withval in
14032y*|Y*)
14033	if test "$ipv6" = 0
14034	then
14035		as_fn_error $? "IPv6 support not available" "$LINENO" 5
14036	fi
14037	;;
14038*)
14039	ipv6=0
14040	;;
14041esac
14042
14043
14044fi
14045
14046
14047RFC1035_IPV6="$ipv6"
14048
14049
14050cat >>confdefs.h <<_ACEOF
14051#define RFC1035_UINT32 $UINT32
14052_ACEOF
14053
14054
14055cat >>confdefs.h <<_ACEOF
14056#define RFC1035_UINT16 $UINT16
14057_ACEOF
14058
14059
14060cat >>confdefs.h <<_ACEOF
14061#define RFC1035_IPV6 $RFC1035_IPV6
14062_ACEOF
14063
14064
14065ac_config_files="$ac_config_files Makefile"
14066
14067cat >confcache <<\_ACEOF
14068# This file is a shell script that caches the results of configure
14069# tests run on this system so they can be shared between configure
14070# scripts and configure runs, see configure's option --config-cache.
14071# It is not useful on other systems.  If it contains results you don't
14072# want to keep, you may remove or edit it.
14073#
14074# config.status only pays attention to the cache file if you give it
14075# the --recheck option to rerun configure.
14076#
14077# `ac_cv_env_foo' variables (set or unset) will be overridden when
14078# loading this file, other *unset* `ac_cv_foo' will be assigned the
14079# following values.
14080
14081_ACEOF
14082
14083# The following way of writing the cache mishandles newlines in values,
14084# but we know of no workaround that is simple, portable, and efficient.
14085# So, we kill variables containing newlines.
14086# Ultrix sh set writes to stderr and can't be redirected directly,
14087# and sets the high bit in the cache file unless we assign to the vars.
14088(
14089  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14090    eval ac_val=\$$ac_var
14091    case $ac_val in #(
14092    *${as_nl}*)
14093      case $ac_var in #(
14094      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14095$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14096      esac
14097      case $ac_var in #(
14098      _ | IFS | as_nl) ;; #(
14099      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14100      *) { eval $ac_var=; unset $ac_var;} ;;
14101      esac ;;
14102    esac
14103  done
14104
14105  (set) 2>&1 |
14106    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14107    *${as_nl}ac_space=\ *)
14108      # `set' does not quote correctly, so add quotes: double-quote
14109      # substitution turns \\\\ into \\, and sed turns \\ into \.
14110      sed -n \
14111	"s/'/'\\\\''/g;
14112	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14113      ;; #(
14114    *)
14115      # `set' quotes correctly as required by POSIX, so do not add quotes.
14116      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14117      ;;
14118    esac |
14119    sort
14120) |
14121  sed '
14122     /^ac_cv_env_/b end
14123     t clear
14124     :clear
14125     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14126     t end
14127     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14128     :end' >>confcache
14129if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14130  if test -w "$cache_file"; then
14131    if test "x$cache_file" != "x/dev/null"; then
14132      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14133$as_echo "$as_me: updating cache $cache_file" >&6;}
14134      if test ! -f "$cache_file" || test -h "$cache_file"; then
14135	cat confcache >"$cache_file"
14136      else
14137        case $cache_file in #(
14138        */* | ?:*)
14139	  mv -f confcache "$cache_file"$$ &&
14140	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14141        *)
14142	  mv -f confcache "$cache_file" ;;
14143	esac
14144      fi
14145    fi
14146  else
14147    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14148$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14149  fi
14150fi
14151rm -f confcache
14152
14153test "x$prefix" = xNONE && prefix=$ac_default_prefix
14154# Let make expand exec_prefix.
14155test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14156
14157DEFS=-DHAVE_CONFIG_H
14158
14159ac_libobjs=
14160ac_ltlibobjs=
14161U=
14162for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14163  # 1. Remove the extension, and $U if already installed.
14164  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14165  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14166  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14167  #    will be set to the directory where LIBOBJS objects are built.
14168  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14169  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14170done
14171LIBOBJS=$ac_libobjs
14172
14173LTLIBOBJS=$ac_ltlibobjs
14174
14175
14176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14177$as_echo_n "checking that generated files are newer than configure... " >&6; }
14178   if test -n "$am_sleep_pid"; then
14179     # Hide warnings about reused PIDs.
14180     wait $am_sleep_pid 2>/dev/null
14181   fi
14182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14183$as_echo "done" >&6; }
14184 if test -n "$EXEEXT"; then
14185  am__EXEEXT_TRUE=
14186  am__EXEEXT_FALSE='#'
14187else
14188  am__EXEEXT_TRUE='#'
14189  am__EXEEXT_FALSE=
14190fi
14191
14192if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14193  as_fn_error $? "conditional \"AMDEP\" was never defined.
14194Usually this means the macro was only invoked conditionally." "$LINENO" 5
14195fi
14196if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14197  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14198Usually this means the macro was only invoked conditionally." "$LINENO" 5
14199fi
14200
14201: "${CONFIG_STATUS=./config.status}"
14202ac_write_fail=0
14203ac_clean_files_save=$ac_clean_files
14204ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14205{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14206$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14207as_write_fail=0
14208cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14209#! $SHELL
14210# Generated by $as_me.
14211# Run this file to recreate the current configuration.
14212# Compiler output produced by configure, useful for debugging
14213# configure, is in config.log if it exists.
14214
14215debug=false
14216ac_cs_recheck=false
14217ac_cs_silent=false
14218
14219SHELL=\${CONFIG_SHELL-$SHELL}
14220export SHELL
14221_ASEOF
14222cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14223## -------------------- ##
14224## M4sh Initialization. ##
14225## -------------------- ##
14226
14227# Be more Bourne compatible
14228DUALCASE=1; export DUALCASE # for MKS sh
14229if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14230  emulate sh
14231  NULLCMD=:
14232  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14233  # is contrary to our usage.  Disable this feature.
14234  alias -g '${1+"$@"}'='"$@"'
14235  setopt NO_GLOB_SUBST
14236else
14237  case `(set -o) 2>/dev/null` in #(
14238  *posix*) :
14239    set -o posix ;; #(
14240  *) :
14241     ;;
14242esac
14243fi
14244
14245
14246as_nl='
14247'
14248export as_nl
14249# Printing a long string crashes Solaris 7 /usr/bin/printf.
14250as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14251as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14252as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14253# Prefer a ksh shell builtin over an external printf program on Solaris,
14254# but without wasting forks for bash or zsh.
14255if test -z "$BASH_VERSION$ZSH_VERSION" \
14256    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14257  as_echo='print -r --'
14258  as_echo_n='print -rn --'
14259elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14260  as_echo='printf %s\n'
14261  as_echo_n='printf %s'
14262else
14263  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14264    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14265    as_echo_n='/usr/ucb/echo -n'
14266  else
14267    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14268    as_echo_n_body='eval
14269      arg=$1;
14270      case $arg in #(
14271      *"$as_nl"*)
14272	expr "X$arg" : "X\\(.*\\)$as_nl";
14273	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14274      esac;
14275      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14276    '
14277    export as_echo_n_body
14278    as_echo_n='sh -c $as_echo_n_body as_echo'
14279  fi
14280  export as_echo_body
14281  as_echo='sh -c $as_echo_body as_echo'
14282fi
14283
14284# The user is always right.
14285if test "${PATH_SEPARATOR+set}" != set; then
14286  PATH_SEPARATOR=:
14287  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14288    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14289      PATH_SEPARATOR=';'
14290  }
14291fi
14292
14293
14294# IFS
14295# We need space, tab and new line, in precisely that order.  Quoting is
14296# there to prevent editors from complaining about space-tab.
14297# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14298# splitting by setting IFS to empty value.)
14299IFS=" ""	$as_nl"
14300
14301# Find who we are.  Look in the path if we contain no directory separator.
14302as_myself=
14303case $0 in #((
14304  *[\\/]* ) as_myself=$0 ;;
14305  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306for as_dir in $PATH
14307do
14308  IFS=$as_save_IFS
14309  test -z "$as_dir" && as_dir=.
14310    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14311  done
14312IFS=$as_save_IFS
14313
14314     ;;
14315esac
14316# We did not find ourselves, most probably we were run as `sh COMMAND'
14317# in which case we are not to be found in the path.
14318if test "x$as_myself" = x; then
14319  as_myself=$0
14320fi
14321if test ! -f "$as_myself"; then
14322  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14323  exit 1
14324fi
14325
14326# Unset variables that we do not need and which cause bugs (e.g. in
14327# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14328# suppresses any "Segmentation fault" message there.  '((' could
14329# trigger a bug in pdksh 5.2.14.
14330for as_var in BASH_ENV ENV MAIL MAILPATH
14331do eval test x\${$as_var+set} = xset \
14332  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14333done
14334PS1='$ '
14335PS2='> '
14336PS4='+ '
14337
14338# NLS nuisances.
14339LC_ALL=C
14340export LC_ALL
14341LANGUAGE=C
14342export LANGUAGE
14343
14344# CDPATH.
14345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14346
14347
14348# as_fn_error STATUS ERROR [LINENO LOG_FD]
14349# ----------------------------------------
14350# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14351# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14352# script with STATUS, using 1 if that was 0.
14353as_fn_error ()
14354{
14355  as_status=$1; test $as_status -eq 0 && as_status=1
14356  if test "$4"; then
14357    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14358    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14359  fi
14360  $as_echo "$as_me: error: $2" >&2
14361  as_fn_exit $as_status
14362} # as_fn_error
14363
14364
14365# as_fn_set_status STATUS
14366# -----------------------
14367# Set $? to STATUS, without forking.
14368as_fn_set_status ()
14369{
14370  return $1
14371} # as_fn_set_status
14372
14373# as_fn_exit STATUS
14374# -----------------
14375# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14376as_fn_exit ()
14377{
14378  set +e
14379  as_fn_set_status $1
14380  exit $1
14381} # as_fn_exit
14382
14383# as_fn_unset VAR
14384# ---------------
14385# Portably unset VAR.
14386as_fn_unset ()
14387{
14388  { eval $1=; unset $1;}
14389}
14390as_unset=as_fn_unset
14391# as_fn_append VAR VALUE
14392# ----------------------
14393# Append the text in VALUE to the end of the definition contained in VAR. Take
14394# advantage of any shell optimizations that allow amortized linear growth over
14395# repeated appends, instead of the typical quadratic growth present in naive
14396# implementations.
14397if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14398  eval 'as_fn_append ()
14399  {
14400    eval $1+=\$2
14401  }'
14402else
14403  as_fn_append ()
14404  {
14405    eval $1=\$$1\$2
14406  }
14407fi # as_fn_append
14408
14409# as_fn_arith ARG...
14410# ------------------
14411# Perform arithmetic evaluation on the ARGs, and store the result in the
14412# global $as_val. Take advantage of shells that can avoid forks. The arguments
14413# must be portable across $(()) and expr.
14414if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14415  eval 'as_fn_arith ()
14416  {
14417    as_val=$(( $* ))
14418  }'
14419else
14420  as_fn_arith ()
14421  {
14422    as_val=`expr "$@" || test $? -eq 1`
14423  }
14424fi # as_fn_arith
14425
14426
14427if expr a : '\(a\)' >/dev/null 2>&1 &&
14428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14429  as_expr=expr
14430else
14431  as_expr=false
14432fi
14433
14434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14435  as_basename=basename
14436else
14437  as_basename=false
14438fi
14439
14440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14441  as_dirname=dirname
14442else
14443  as_dirname=false
14444fi
14445
14446as_me=`$as_basename -- "$0" ||
14447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14448	 X"$0" : 'X\(//\)$' \| \
14449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14450$as_echo X/"$0" |
14451    sed '/^.*\/\([^/][^/]*\)\/*$/{
14452	    s//\1/
14453	    q
14454	  }
14455	  /^X\/\(\/\/\)$/{
14456	    s//\1/
14457	    q
14458	  }
14459	  /^X\/\(\/\).*/{
14460	    s//\1/
14461	    q
14462	  }
14463	  s/.*/./; q'`
14464
14465# Avoid depending upon Character Ranges.
14466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14469as_cr_digits='0123456789'
14470as_cr_alnum=$as_cr_Letters$as_cr_digits
14471
14472ECHO_C= ECHO_N= ECHO_T=
14473case `echo -n x` in #(((((
14474-n*)
14475  case `echo 'xy\c'` in
14476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14477  xy)  ECHO_C='\c';;
14478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14479       ECHO_T='	';;
14480  esac;;
14481*)
14482  ECHO_N='-n';;
14483esac
14484
14485rm -f conf$$ conf$$.exe conf$$.file
14486if test -d conf$$.dir; then
14487  rm -f conf$$.dir/conf$$.file
14488else
14489  rm -f conf$$.dir
14490  mkdir conf$$.dir 2>/dev/null
14491fi
14492if (echo >conf$$.file) 2>/dev/null; then
14493  if ln -s conf$$.file conf$$ 2>/dev/null; then
14494    as_ln_s='ln -s'
14495    # ... but there are two gotchas:
14496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14498    # In both cases, we have to default to `cp -pR'.
14499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14500      as_ln_s='cp -pR'
14501  elif ln conf$$.file conf$$ 2>/dev/null; then
14502    as_ln_s=ln
14503  else
14504    as_ln_s='cp -pR'
14505  fi
14506else
14507  as_ln_s='cp -pR'
14508fi
14509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14510rmdir conf$$.dir 2>/dev/null
14511
14512
14513# as_fn_mkdir_p
14514# -------------
14515# Create "$as_dir" as a directory, including parents if necessary.
14516as_fn_mkdir_p ()
14517{
14518
14519  case $as_dir in #(
14520  -*) as_dir=./$as_dir;;
14521  esac
14522  test -d "$as_dir" || eval $as_mkdir_p || {
14523    as_dirs=
14524    while :; do
14525      case $as_dir in #(
14526      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14527      *) as_qdir=$as_dir;;
14528      esac
14529      as_dirs="'$as_qdir' $as_dirs"
14530      as_dir=`$as_dirname -- "$as_dir" ||
14531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532	 X"$as_dir" : 'X\(//\)[^/]' \| \
14533	 X"$as_dir" : 'X\(//\)$' \| \
14534	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14535$as_echo X"$as_dir" |
14536    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14537	    s//\1/
14538	    q
14539	  }
14540	  /^X\(\/\/\)[^/].*/{
14541	    s//\1/
14542	    q
14543	  }
14544	  /^X\(\/\/\)$/{
14545	    s//\1/
14546	    q
14547	  }
14548	  /^X\(\/\).*/{
14549	    s//\1/
14550	    q
14551	  }
14552	  s/.*/./; q'`
14553      test -d "$as_dir" && break
14554    done
14555    test -z "$as_dirs" || eval "mkdir $as_dirs"
14556  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14557
14558
14559} # as_fn_mkdir_p
14560if mkdir -p . 2>/dev/null; then
14561  as_mkdir_p='mkdir -p "$as_dir"'
14562else
14563  test -d ./-p && rmdir ./-p
14564  as_mkdir_p=false
14565fi
14566
14567
14568# as_fn_executable_p FILE
14569# -----------------------
14570# Test if FILE is an executable regular file.
14571as_fn_executable_p ()
14572{
14573  test -f "$1" && test -x "$1"
14574} # as_fn_executable_p
14575as_test_x='test -x'
14576as_executable_p=as_fn_executable_p
14577
14578# Sed expression to map a string onto a valid CPP name.
14579as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14580
14581# Sed expression to map a string onto a valid variable name.
14582as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14583
14584
14585exec 6>&1
14586## ----------------------------------- ##
14587## Main body of $CONFIG_STATUS script. ##
14588## ----------------------------------- ##
14589_ASEOF
14590test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14591
14592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14593# Save the log message, to keep $0 and so on meaningful, and to
14594# report actual input values of CONFIG_FILES etc. instead of their
14595# values after options handling.
14596ac_log="
14597This file was extended by librfc1035 $as_me 0.10, which was
14598generated by GNU Autoconf 2.69.  Invocation command line was
14599
14600  CONFIG_FILES    = $CONFIG_FILES
14601  CONFIG_HEADERS  = $CONFIG_HEADERS
14602  CONFIG_LINKS    = $CONFIG_LINKS
14603  CONFIG_COMMANDS = $CONFIG_COMMANDS
14604  $ $0 $@
14605
14606on `(hostname || uname -n) 2>/dev/null | sed 1q`
14607"
14608
14609_ACEOF
14610
14611case $ac_config_files in *"
14612"*) set x $ac_config_files; shift; ac_config_files=$*;;
14613esac
14614
14615case $ac_config_headers in *"
14616"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14617esac
14618
14619
14620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14621# Files that config.status was made for.
14622config_files="$ac_config_files"
14623config_headers="$ac_config_headers"
14624config_commands="$ac_config_commands"
14625
14626_ACEOF
14627
14628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14629ac_cs_usage="\
14630\`$as_me' instantiates files and other configuration actions
14631from templates according to the current configuration.  Unless the files
14632and actions are specified as TAGs, all are instantiated by default.
14633
14634Usage: $0 [OPTION]... [TAG]...
14635
14636  -h, --help       print this help, then exit
14637  -V, --version    print version number and configuration settings, then exit
14638      --config     print configuration, then exit
14639  -q, --quiet, --silent
14640                   do not print progress messages
14641  -d, --debug      don't remove temporary files
14642      --recheck    update $as_me by reconfiguring in the same conditions
14643      --file=FILE[:TEMPLATE]
14644                   instantiate the configuration file FILE
14645      --header=FILE[:TEMPLATE]
14646                   instantiate the configuration header FILE
14647
14648Configuration files:
14649$config_files
14650
14651Configuration headers:
14652$config_headers
14653
14654Configuration commands:
14655$config_commands
14656
14657Report bugs to <courier-users@lists.sourceforge.net>."
14658
14659_ACEOF
14660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14661ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14662ac_cs_version="\\
14663librfc1035 config.status 0.10
14664configured by $0, generated by GNU Autoconf 2.69,
14665  with options \\"\$ac_cs_config\\"
14666
14667Copyright (C) 2012 Free Software Foundation, Inc.
14668This config.status script is free software; the Free Software Foundation
14669gives unlimited permission to copy, distribute and modify it."
14670
14671ac_pwd='$ac_pwd'
14672srcdir='$srcdir'
14673INSTALL='$INSTALL'
14674MKDIR_P='$MKDIR_P'
14675AWK='$AWK'
14676test -n "\$AWK" || AWK=awk
14677_ACEOF
14678
14679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14680# The default lists apply if the user does not specify any file.
14681ac_need_defaults=:
14682while test $# != 0
14683do
14684  case $1 in
14685  --*=?*)
14686    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14687    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14688    ac_shift=:
14689    ;;
14690  --*=)
14691    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14692    ac_optarg=
14693    ac_shift=:
14694    ;;
14695  *)
14696    ac_option=$1
14697    ac_optarg=$2
14698    ac_shift=shift
14699    ;;
14700  esac
14701
14702  case $ac_option in
14703  # Handling of the options.
14704  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14705    ac_cs_recheck=: ;;
14706  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14707    $as_echo "$ac_cs_version"; exit ;;
14708  --config | --confi | --conf | --con | --co | --c )
14709    $as_echo "$ac_cs_config"; exit ;;
14710  --debug | --debu | --deb | --de | --d | -d )
14711    debug=: ;;
14712  --file | --fil | --fi | --f )
14713    $ac_shift
14714    case $ac_optarg in
14715    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14716    '') as_fn_error $? "missing file argument" ;;
14717    esac
14718    as_fn_append CONFIG_FILES " '$ac_optarg'"
14719    ac_need_defaults=false;;
14720  --header | --heade | --head | --hea )
14721    $ac_shift
14722    case $ac_optarg in
14723    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14724    esac
14725    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14726    ac_need_defaults=false;;
14727  --he | --h)
14728    # Conflict between --help and --header
14729    as_fn_error $? "ambiguous option: \`$1'
14730Try \`$0 --help' for more information.";;
14731  --help | --hel | -h )
14732    $as_echo "$ac_cs_usage"; exit ;;
14733  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14734  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14735    ac_cs_silent=: ;;
14736
14737  # This is an error.
14738  -*) as_fn_error $? "unrecognized option: \`$1'
14739Try \`$0 --help' for more information." ;;
14740
14741  *) as_fn_append ac_config_targets " $1"
14742     ac_need_defaults=false ;;
14743
14744  esac
14745  shift
14746done
14747
14748ac_configure_extra_args=
14749
14750if $ac_cs_silent; then
14751  exec 6>/dev/null
14752  ac_configure_extra_args="$ac_configure_extra_args --silent"
14753fi
14754
14755_ACEOF
14756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14757if \$ac_cs_recheck; then
14758  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14759  shift
14760  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14761  CONFIG_SHELL='$SHELL'
14762  export CONFIG_SHELL
14763  exec "\$@"
14764fi
14765
14766_ACEOF
14767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14768exec 5>>config.log
14769{
14770  echo
14771  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14772## Running $as_me. ##
14773_ASBOX
14774  $as_echo "$ac_log"
14775} >&5
14776
14777_ACEOF
14778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14779#
14780# INIT-COMMANDS
14781#
14782AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14783
14784
14785# The HP-UX ksh and POSIX shell print the target directory to stdout
14786# if CDPATH is set.
14787(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14788
14789sed_quote_subst='$sed_quote_subst'
14790double_quote_subst='$double_quote_subst'
14791delay_variable_subst='$delay_variable_subst'
14792macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14793macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14794enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14795enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14796pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14797enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14798shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14799SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14800ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14801PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14802host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14803host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14804host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14805build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14806build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14807build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14808SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14809Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14810GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14811EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14812FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14813LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14814NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14815LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14816max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14817ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14818exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14819lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14820lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14821lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14822lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14823lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14824reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14825reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14826OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14827deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14828file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14829file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14830want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14831DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14832sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14833AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14834AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14835archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14836STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14837RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14838old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14839old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14840old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14841lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14842CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14843CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14844compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14845GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14846lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14847lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14848lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14849lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14850lt_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"`'
14851lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14852nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14853lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14854lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14855objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14856MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14857lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14858lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14859lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14860lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14861lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14862need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14863MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14864DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14865NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14866LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14867OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14868OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14869libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14870shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14871extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14872archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14873enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14874export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14875whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14876compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14877old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14878old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14879archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14880archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14881module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14882module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14883with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14884allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14885no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14886hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14887hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14888hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14889hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14890hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14891hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14892hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14893inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14894link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14895always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14896export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14897exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14898include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14899prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14900postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14901file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14902variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14903need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14904need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14905version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14906runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14907shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14908shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14909libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14910library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14911soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14912install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14913postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14914postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14915finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14916finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14917hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14918sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14919configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14920configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14921hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14922enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14923enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14924enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14925old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14926striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14927
14928LTCC='$LTCC'
14929LTCFLAGS='$LTCFLAGS'
14930compiler='$compiler_DEFAULT'
14931
14932# A function that is used when there is no print builtin or printf.
14933func_fallback_echo ()
14934{
14935  eval 'cat <<_LTECHO_EOF
14936\$1
14937_LTECHO_EOF'
14938}
14939
14940# Quote evaled strings.
14941for var in SHELL \
14942ECHO \
14943PATH_SEPARATOR \
14944SED \
14945GREP \
14946EGREP \
14947FGREP \
14948LD \
14949NM \
14950LN_S \
14951lt_SP2NL \
14952lt_NL2SP \
14953reload_flag \
14954OBJDUMP \
14955deplibs_check_method \
14956file_magic_cmd \
14957file_magic_glob \
14958want_nocaseglob \
14959DLLTOOL \
14960sharedlib_from_linklib_cmd \
14961AR \
14962AR_FLAGS \
14963archiver_list_spec \
14964STRIP \
14965RANLIB \
14966CC \
14967CFLAGS \
14968compiler \
14969lt_cv_sys_global_symbol_pipe \
14970lt_cv_sys_global_symbol_to_cdecl \
14971lt_cv_sys_global_symbol_to_import \
14972lt_cv_sys_global_symbol_to_c_name_address \
14973lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14974lt_cv_nm_interface \
14975nm_file_list_spec \
14976lt_cv_truncate_bin \
14977lt_prog_compiler_no_builtin_flag \
14978lt_prog_compiler_pic \
14979lt_prog_compiler_wl \
14980lt_prog_compiler_static \
14981lt_cv_prog_compiler_c_o \
14982need_locks \
14983MANIFEST_TOOL \
14984DSYMUTIL \
14985NMEDIT \
14986LIPO \
14987OTOOL \
14988OTOOL64 \
14989shrext_cmds \
14990export_dynamic_flag_spec \
14991whole_archive_flag_spec \
14992compiler_needs_object \
14993with_gnu_ld \
14994allow_undefined_flag \
14995no_undefined_flag \
14996hardcode_libdir_flag_spec \
14997hardcode_libdir_separator \
14998exclude_expsyms \
14999include_expsyms \
15000file_list_spec \
15001variables_saved_for_relink \
15002libname_spec \
15003library_names_spec \
15004soname_spec \
15005install_override_mode \
15006finish_eval \
15007old_striplib \
15008striplib; do
15009    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15010    *[\\\\\\\`\\"\\\$]*)
15011      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15012      ;;
15013    *)
15014      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15015      ;;
15016    esac
15017done
15018
15019# Double-quote double-evaled strings.
15020for var in reload_cmds \
15021old_postinstall_cmds \
15022old_postuninstall_cmds \
15023old_archive_cmds \
15024extract_expsyms_cmds \
15025old_archive_from_new_cmds \
15026old_archive_from_expsyms_cmds \
15027archive_cmds \
15028archive_expsym_cmds \
15029module_cmds \
15030module_expsym_cmds \
15031export_symbols_cmds \
15032prelink_cmds \
15033postlink_cmds \
15034postinstall_cmds \
15035postuninstall_cmds \
15036finish_cmds \
15037sys_lib_search_path_spec \
15038configure_time_dlsearch_path \
15039configure_time_lt_sys_library_path; do
15040    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15041    *[\\\\\\\`\\"\\\$]*)
15042      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15043      ;;
15044    *)
15045      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15046      ;;
15047    esac
15048done
15049
15050ac_aux_dir='$ac_aux_dir'
15051
15052# See if we are running on zsh, and set the options that allow our
15053# commands through without removal of \ escapes INIT.
15054if test -n "\${ZSH_VERSION+set}"; then
15055   setopt NO_GLOB_SUBST
15056fi
15057
15058
15059    PACKAGE='$PACKAGE'
15060    VERSION='$VERSION'
15061    RM='$RM'
15062    ofile='$ofile'
15063
15064
15065
15066
15067_ACEOF
15068
15069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15070
15071# Handling of arguments.
15072for ac_config_target in $ac_config_targets
15073do
15074  case $ac_config_target in
15075    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15076    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15077    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15078    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15079
15080  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15081  esac
15082done
15083
15084
15085# If the user did not use the arguments to specify the items to instantiate,
15086# then the envvar interface is used.  Set only those that are not.
15087# We use the long form for the default assignment because of an extremely
15088# bizarre bug on SunOS 4.1.3.
15089if $ac_need_defaults; then
15090  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15091  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15092  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15093fi
15094
15095# Have a temporary directory for convenience.  Make it in the build tree
15096# simply because there is no reason against having it here, and in addition,
15097# creating and moving files from /tmp can sometimes cause problems.
15098# Hook for its removal unless debugging.
15099# Note that there is a small window in which the directory will not be cleaned:
15100# after its creation but before its name has been assigned to `$tmp'.
15101$debug ||
15102{
15103  tmp= ac_tmp=
15104  trap 'exit_status=$?
15105  : "${ac_tmp:=$tmp}"
15106  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15107' 0
15108  trap 'as_fn_exit 1' 1 2 13 15
15109}
15110# Create a (secure) tmp directory for tmp files.
15111
15112{
15113  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15114  test -d "$tmp"
15115}  ||
15116{
15117  tmp=./conf$$-$RANDOM
15118  (umask 077 && mkdir "$tmp")
15119} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15120ac_tmp=$tmp
15121
15122# Set up the scripts for CONFIG_FILES section.
15123# No need to generate them if there are no CONFIG_FILES.
15124# This happens for instance with `./config.status config.h'.
15125if test -n "$CONFIG_FILES"; then
15126
15127
15128ac_cr=`echo X | tr X '\015'`
15129# On cygwin, bash can eat \r inside `` if the user requested igncr.
15130# But we know of no other shell where ac_cr would be empty at this
15131# point, so we can use a bashism as a fallback.
15132if test "x$ac_cr" = x; then
15133  eval ac_cr=\$\'\\r\'
15134fi
15135ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15136if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15137  ac_cs_awk_cr='\\r'
15138else
15139  ac_cs_awk_cr=$ac_cr
15140fi
15141
15142echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15143_ACEOF
15144
15145
15146{
15147  echo "cat >conf$$subs.awk <<_ACEOF" &&
15148  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15149  echo "_ACEOF"
15150} >conf$$subs.sh ||
15151  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15152ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15153ac_delim='%!_!# '
15154for ac_last_try in false false false false false :; do
15155  . ./conf$$subs.sh ||
15156    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15157
15158  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15159  if test $ac_delim_n = $ac_delim_num; then
15160    break
15161  elif $ac_last_try; then
15162    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15163  else
15164    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15165  fi
15166done
15167rm -f conf$$subs.sh
15168
15169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15170cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15171_ACEOF
15172sed -n '
15173h
15174s/^/S["/; s/!.*/"]=/
15175p
15176g
15177s/^[^!]*!//
15178:repl
15179t repl
15180s/'"$ac_delim"'$//
15181t delim
15182:nl
15183h
15184s/\(.\{148\}\)..*/\1/
15185t more1
15186s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15187p
15188n
15189b repl
15190:more1
15191s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15192p
15193g
15194s/.\{148\}//
15195t nl
15196:delim
15197h
15198s/\(.\{148\}\)..*/\1/
15199t more2
15200s/["\\]/\\&/g; s/^/"/; s/$/"/
15201p
15202b
15203:more2
15204s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15205p
15206g
15207s/.\{148\}//
15208t delim
15209' <conf$$subs.awk | sed '
15210/^[^""]/{
15211  N
15212  s/\n//
15213}
15214' >>$CONFIG_STATUS || ac_write_fail=1
15215rm -f conf$$subs.awk
15216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15217_ACAWK
15218cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15219  for (key in S) S_is_set[key] = 1
15220  FS = ""
15221
15222}
15223{
15224  line = $ 0
15225  nfields = split(line, field, "@")
15226  substed = 0
15227  len = length(field[1])
15228  for (i = 2; i < nfields; i++) {
15229    key = field[i]
15230    keylen = length(key)
15231    if (S_is_set[key]) {
15232      value = S[key]
15233      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15234      len += length(value) + length(field[++i])
15235      substed = 1
15236    } else
15237      len += 1 + keylen
15238  }
15239
15240  print line
15241}
15242
15243_ACAWK
15244_ACEOF
15245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15246if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15247  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15248else
15249  cat
15250fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15251  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15252_ACEOF
15253
15254# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15255# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15256# trailing colons and then remove the whole line if VPATH becomes empty
15257# (actually we leave an empty line to preserve line numbers).
15258if test "x$srcdir" = x.; then
15259  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15260h
15261s///
15262s/^/:/
15263s/[	 ]*$/:/
15264s/:\$(srcdir):/:/g
15265s/:\${srcdir}:/:/g
15266s/:@srcdir@:/:/g
15267s/^:*//
15268s/:*$//
15269x
15270s/\(=[	 ]*\).*/\1/
15271G
15272s/\n//
15273s/^[^=]*=[	 ]*$//
15274}'
15275fi
15276
15277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15278fi # test -n "$CONFIG_FILES"
15279
15280# Set up the scripts for CONFIG_HEADERS section.
15281# No need to generate them if there are no CONFIG_HEADERS.
15282# This happens for instance with `./config.status Makefile'.
15283if test -n "$CONFIG_HEADERS"; then
15284cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15285BEGIN {
15286_ACEOF
15287
15288# Transform confdefs.h into an awk script `defines.awk', embedded as
15289# here-document in config.status, that substitutes the proper values into
15290# config.h.in to produce config.h.
15291
15292# Create a delimiter string that does not exist in confdefs.h, to ease
15293# handling of long lines.
15294ac_delim='%!_!# '
15295for ac_last_try in false false :; do
15296  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15297  if test -z "$ac_tt"; then
15298    break
15299  elif $ac_last_try; then
15300    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15301  else
15302    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15303  fi
15304done
15305
15306# For the awk script, D is an array of macro values keyed by name,
15307# likewise P contains macro parameters if any.  Preserve backslash
15308# newline sequences.
15309
15310ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15311sed -n '
15312s/.\{148\}/&'"$ac_delim"'/g
15313t rset
15314:rset
15315s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15316t def
15317d
15318:def
15319s/\\$//
15320t bsnl
15321s/["\\]/\\&/g
15322s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15323D["\1"]=" \3"/p
15324s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15325d
15326:bsnl
15327s/["\\]/\\&/g
15328s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15329D["\1"]=" \3\\\\\\n"\\/p
15330t cont
15331s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15332t cont
15333d
15334:cont
15335n
15336s/.\{148\}/&'"$ac_delim"'/g
15337t clear
15338:clear
15339s/\\$//
15340t bsnlc
15341s/["\\]/\\&/g; s/^/"/; s/$/"/p
15342d
15343:bsnlc
15344s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15345b cont
15346' <confdefs.h | sed '
15347s/'"$ac_delim"'/"\\\
15348"/g' >>$CONFIG_STATUS || ac_write_fail=1
15349
15350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15351  for (key in D) D_is_set[key] = 1
15352  FS = ""
15353}
15354/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15355  line = \$ 0
15356  split(line, arg, " ")
15357  if (arg[1] == "#") {
15358    defundef = arg[2]
15359    mac1 = arg[3]
15360  } else {
15361    defundef = substr(arg[1], 2)
15362    mac1 = arg[2]
15363  }
15364  split(mac1, mac2, "(") #)
15365  macro = mac2[1]
15366  prefix = substr(line, 1, index(line, defundef) - 1)
15367  if (D_is_set[macro]) {
15368    # Preserve the white space surrounding the "#".
15369    print prefix "define", macro P[macro] D[macro]
15370    next
15371  } else {
15372    # Replace #undef with comments.  This is necessary, for example,
15373    # in the case of _POSIX_SOURCE, which is predefined and required
15374    # on some systems where configure will not decide to define it.
15375    if (defundef == "undef") {
15376      print "/*", prefix defundef, macro, "*/"
15377      next
15378    }
15379  }
15380}
15381{ print }
15382_ACAWK
15383_ACEOF
15384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15386fi # test -n "$CONFIG_HEADERS"
15387
15388
15389eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15390shift
15391for ac_tag
15392do
15393  case $ac_tag in
15394  :[FHLC]) ac_mode=$ac_tag; continue;;
15395  esac
15396  case $ac_mode$ac_tag in
15397  :[FHL]*:*);;
15398  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15399  :[FH]-) ac_tag=-:-;;
15400  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15401  esac
15402  ac_save_IFS=$IFS
15403  IFS=:
15404  set x $ac_tag
15405  IFS=$ac_save_IFS
15406  shift
15407  ac_file=$1
15408  shift
15409
15410  case $ac_mode in
15411  :L) ac_source=$1;;
15412  :[FH])
15413    ac_file_inputs=
15414    for ac_f
15415    do
15416      case $ac_f in
15417      -) ac_f="$ac_tmp/stdin";;
15418      *) # Look for the file first in the build tree, then in the source tree
15419	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15420	 # because $ac_f cannot contain `:'.
15421	 test -f "$ac_f" ||
15422	   case $ac_f in
15423	   [\\/$]*) false;;
15424	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15425	   esac ||
15426	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15427      esac
15428      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15429      as_fn_append ac_file_inputs " '$ac_f'"
15430    done
15431
15432    # Let's still pretend it is `configure' which instantiates (i.e., don't
15433    # use $as_me), people would be surprised to read:
15434    #    /* config.h.  Generated by config.status.  */
15435    configure_input='Generated from '`
15436	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15437	`' by configure.'
15438    if test x"$ac_file" != x-; then
15439      configure_input="$ac_file.  $configure_input"
15440      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15441$as_echo "$as_me: creating $ac_file" >&6;}
15442    fi
15443    # Neutralize special characters interpreted by sed in replacement strings.
15444    case $configure_input in #(
15445    *\&* | *\|* | *\\* )
15446       ac_sed_conf_input=`$as_echo "$configure_input" |
15447       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15448    *) ac_sed_conf_input=$configure_input;;
15449    esac
15450
15451    case $ac_tag in
15452    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15453      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15454    esac
15455    ;;
15456  esac
15457
15458  ac_dir=`$as_dirname -- "$ac_file" ||
15459$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15460	 X"$ac_file" : 'X\(//\)[^/]' \| \
15461	 X"$ac_file" : 'X\(//\)$' \| \
15462	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15463$as_echo X"$ac_file" |
15464    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15465	    s//\1/
15466	    q
15467	  }
15468	  /^X\(\/\/\)[^/].*/{
15469	    s//\1/
15470	    q
15471	  }
15472	  /^X\(\/\/\)$/{
15473	    s//\1/
15474	    q
15475	  }
15476	  /^X\(\/\).*/{
15477	    s//\1/
15478	    q
15479	  }
15480	  s/.*/./; q'`
15481  as_dir="$ac_dir"; as_fn_mkdir_p
15482  ac_builddir=.
15483
15484case "$ac_dir" in
15485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15486*)
15487  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15488  # A ".." for each directory in $ac_dir_suffix.
15489  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15490  case $ac_top_builddir_sub in
15491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15493  esac ;;
15494esac
15495ac_abs_top_builddir=$ac_pwd
15496ac_abs_builddir=$ac_pwd$ac_dir_suffix
15497# for backward compatibility:
15498ac_top_builddir=$ac_top_build_prefix
15499
15500case $srcdir in
15501  .)  # We are building in place.
15502    ac_srcdir=.
15503    ac_top_srcdir=$ac_top_builddir_sub
15504    ac_abs_top_srcdir=$ac_pwd ;;
15505  [\\/]* | ?:[\\/]* )  # Absolute name.
15506    ac_srcdir=$srcdir$ac_dir_suffix;
15507    ac_top_srcdir=$srcdir
15508    ac_abs_top_srcdir=$srcdir ;;
15509  *) # Relative name.
15510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15511    ac_top_srcdir=$ac_top_build_prefix$srcdir
15512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15513esac
15514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15515
15516
15517  case $ac_mode in
15518  :F)
15519  #
15520  # CONFIG_FILE
15521  #
15522
15523  case $INSTALL in
15524  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15525  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15526  esac
15527  ac_MKDIR_P=$MKDIR_P
15528  case $MKDIR_P in
15529  [\\/$]* | ?:[\\/]* ) ;;
15530  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15531  esac
15532_ACEOF
15533
15534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15535# If the template does not know about datarootdir, expand it.
15536# FIXME: This hack should be removed a few years after 2.60.
15537ac_datarootdir_hack=; ac_datarootdir_seen=
15538ac_sed_dataroot='
15539/datarootdir/ {
15540  p
15541  q
15542}
15543/@datadir@/p
15544/@docdir@/p
15545/@infodir@/p
15546/@localedir@/p
15547/@mandir@/p'
15548case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15549*datarootdir*) ac_datarootdir_seen=yes;;
15550*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15551  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15552$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15553_ACEOF
15554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555  ac_datarootdir_hack='
15556  s&@datadir@&$datadir&g
15557  s&@docdir@&$docdir&g
15558  s&@infodir@&$infodir&g
15559  s&@localedir@&$localedir&g
15560  s&@mandir@&$mandir&g
15561  s&\\\${datarootdir}&$datarootdir&g' ;;
15562esac
15563_ACEOF
15564
15565# Neutralize VPATH when `$srcdir' = `.'.
15566# Shell code in configure.ac might set extrasub.
15567# FIXME: do we really want to maintain this feature?
15568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15569ac_sed_extra="$ac_vpsub
15570$extrasub
15571_ACEOF
15572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573:t
15574/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15575s|@configure_input@|$ac_sed_conf_input|;t t
15576s&@top_builddir@&$ac_top_builddir_sub&;t t
15577s&@top_build_prefix@&$ac_top_build_prefix&;t t
15578s&@srcdir@&$ac_srcdir&;t t
15579s&@abs_srcdir@&$ac_abs_srcdir&;t t
15580s&@top_srcdir@&$ac_top_srcdir&;t t
15581s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15582s&@builddir@&$ac_builddir&;t t
15583s&@abs_builddir@&$ac_abs_builddir&;t t
15584s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15585s&@INSTALL@&$ac_INSTALL&;t t
15586s&@MKDIR_P@&$ac_MKDIR_P&;t t
15587$ac_datarootdir_hack
15588"
15589eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15590  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15591
15592test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15593  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15594  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15595      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15596  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15597which seems to be undefined.  Please make sure it is defined" >&5
15598$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15599which seems to be undefined.  Please make sure it is defined" >&2;}
15600
15601  rm -f "$ac_tmp/stdin"
15602  case $ac_file in
15603  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15604  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15605  esac \
15606  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15607 ;;
15608  :H)
15609  #
15610  # CONFIG_HEADER
15611  #
15612  if test x"$ac_file" != x-; then
15613    {
15614      $as_echo "/* $configure_input  */" \
15615      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15616    } >"$ac_tmp/config.h" \
15617      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15618    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15619      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15620$as_echo "$as_me: $ac_file is unchanged" >&6;}
15621    else
15622      rm -f "$ac_file"
15623      mv "$ac_tmp/config.h" "$ac_file" \
15624	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15625    fi
15626  else
15627    $as_echo "/* $configure_input  */" \
15628      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15629      || as_fn_error $? "could not create -" "$LINENO" 5
15630  fi
15631# Compute "$ac_file"'s index in $config_headers.
15632_am_arg="$ac_file"
15633_am_stamp_count=1
15634for _am_header in $config_headers :; do
15635  case $_am_header in
15636    $_am_arg | $_am_arg:* )
15637      break ;;
15638    * )
15639      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15640  esac
15641done
15642echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15643$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15644	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15645	 X"$_am_arg" : 'X\(//\)$' \| \
15646	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15647$as_echo X"$_am_arg" |
15648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15649	    s//\1/
15650	    q
15651	  }
15652	  /^X\(\/\/\)[^/].*/{
15653	    s//\1/
15654	    q
15655	  }
15656	  /^X\(\/\/\)$/{
15657	    s//\1/
15658	    q
15659	  }
15660	  /^X\(\/\).*/{
15661	    s//\1/
15662	    q
15663	  }
15664	  s/.*/./; q'`/stamp-h$_am_stamp_count
15665 ;;
15666
15667  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15668$as_echo "$as_me: executing $ac_file commands" >&6;}
15669 ;;
15670  esac
15671
15672
15673  case $ac_file$ac_mode in
15674    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15675  # Older Autoconf quotes --file arguments for eval, but not when files
15676  # are listed without --file.  Let's play safe and only enable the eval
15677  # if we detect the quoting.
15678  # TODO: see whether this extra hack can be removed once we start
15679  # requiring Autoconf 2.70 or later.
15680  case $CONFIG_FILES in #(
15681  *\'*) :
15682    eval set x "$CONFIG_FILES" ;; #(
15683  *) :
15684    set x $CONFIG_FILES ;; #(
15685  *) :
15686     ;;
15687esac
15688  shift
15689  # Used to flag and report bootstrapping failures.
15690  am_rc=0
15691  for am_mf
15692  do
15693    # Strip MF so we end up with the name of the file.
15694    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15695    # Check whether this is an Automake generated Makefile which includes
15696    # dependency-tracking related rules and includes.
15697    # Grep'ing the whole file directly is not great: AIX grep has a line
15698    # limit of 2048, but all sed's we know have understand at least 4000.
15699    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15700      || continue
15701    am_dirpart=`$as_dirname -- "$am_mf" ||
15702$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15703	 X"$am_mf" : 'X\(//\)[^/]' \| \
15704	 X"$am_mf" : 'X\(//\)$' \| \
15705	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15706$as_echo X"$am_mf" |
15707    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15708	    s//\1/
15709	    q
15710	  }
15711	  /^X\(\/\/\)[^/].*/{
15712	    s//\1/
15713	    q
15714	  }
15715	  /^X\(\/\/\)$/{
15716	    s//\1/
15717	    q
15718	  }
15719	  /^X\(\/\).*/{
15720	    s//\1/
15721	    q
15722	  }
15723	  s/.*/./; q'`
15724    am_filepart=`$as_basename -- "$am_mf" ||
15725$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15726	 X"$am_mf" : 'X\(//\)$' \| \
15727	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15728$as_echo X/"$am_mf" |
15729    sed '/^.*\/\([^/][^/]*\)\/*$/{
15730	    s//\1/
15731	    q
15732	  }
15733	  /^X\/\(\/\/\)$/{
15734	    s//\1/
15735	    q
15736	  }
15737	  /^X\/\(\/\).*/{
15738	    s//\1/
15739	    q
15740	  }
15741	  s/.*/./; q'`
15742    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15743      && sed -e '/# am--include-marker/d' "$am_filepart" \
15744        | $MAKE -f - am--depfiles" >&5
15745   (cd "$am_dirpart" \
15746      && sed -e '/# am--include-marker/d' "$am_filepart" \
15747        | $MAKE -f - am--depfiles) >&5 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); } || am_rc=$?
15751  done
15752  if test $am_rc -ne 0; then
15753    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15755as_fn_error $? "Something went wrong bootstrapping makefile fragments
15756    for automatic dependency tracking.  Try re-running configure with the
15757    '--disable-dependency-tracking' option to at least be able to build
15758    the package (albeit without support for automatic dependency tracking).
15759See \`config.log' for more details" "$LINENO" 5; }
15760  fi
15761  { am_dirpart=; unset am_dirpart;}
15762  { am_filepart=; unset am_filepart;}
15763  { am_mf=; unset am_mf;}
15764  { am_rc=; unset am_rc;}
15765  rm -f conftest-deps.mk
15766}
15767 ;;
15768    "libtool":C)
15769
15770    # See if we are running on zsh, and set the options that allow our
15771    # commands through without removal of \ escapes.
15772    if test -n "${ZSH_VERSION+set}"; then
15773      setopt NO_GLOB_SUBST
15774    fi
15775
15776    cfgfile=${ofile}T
15777    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15778    $RM "$cfgfile"
15779
15780    cat <<_LT_EOF >> "$cfgfile"
15781#! $SHELL
15782# Generated automatically by $as_me ($PACKAGE) $VERSION
15783# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15784# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15785
15786# Provide generalized library-building support services.
15787# Written by Gordon Matzigkeit, 1996
15788
15789# Copyright (C) 2014 Free Software Foundation, Inc.
15790# This is free software; see the source for copying conditions.  There is NO
15791# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15792
15793# GNU Libtool is free software; you can redistribute it and/or modify
15794# it under the terms of the GNU General Public License as published by
15795# the Free Software Foundation; either version 2 of of the License, or
15796# (at your option) any later version.
15797#
15798# As a special exception to the GNU General Public License, if you
15799# distribute this file as part of a program or library that is built
15800# using GNU Libtool, you may include this file under the  same
15801# distribution terms that you use for the rest of that program.
15802#
15803# GNU Libtool is distributed in the hope that it will be useful, but
15804# WITHOUT ANY WARRANTY; without even the implied warranty of
15805# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15806# GNU General Public License for more details.
15807#
15808# You should have received a copy of the GNU General Public License
15809# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15810
15811
15812# The names of the tagged configurations supported by this script.
15813available_tags=''
15814
15815# Configured defaults for sys_lib_dlsearch_path munging.
15816: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15817
15818# ### BEGIN LIBTOOL CONFIG
15819
15820# Which release of libtool.m4 was used?
15821macro_version=$macro_version
15822macro_revision=$macro_revision
15823
15824# Whether or not to build shared libraries.
15825build_libtool_libs=$enable_shared
15826
15827# Whether or not to build static libraries.
15828build_old_libs=$enable_static
15829
15830# What type of objects to build.
15831pic_mode=$pic_mode
15832
15833# Whether or not to optimize for fast installation.
15834fast_install=$enable_fast_install
15835
15836# Shared archive member basename,for filename based shared library versioning on AIX.
15837shared_archive_member_spec=$shared_archive_member_spec
15838
15839# Shell to use when invoking shell scripts.
15840SHELL=$lt_SHELL
15841
15842# An echo program that protects backslashes.
15843ECHO=$lt_ECHO
15844
15845# The PATH separator for the build system.
15846PATH_SEPARATOR=$lt_PATH_SEPARATOR
15847
15848# The host system.
15849host_alias=$host_alias
15850host=$host
15851host_os=$host_os
15852
15853# The build system.
15854build_alias=$build_alias
15855build=$build
15856build_os=$build_os
15857
15858# A sed program that does not truncate output.
15859SED=$lt_SED
15860
15861# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15862Xsed="\$SED -e 1s/^X//"
15863
15864# A grep program that handles long lines.
15865GREP=$lt_GREP
15866
15867# An ERE matcher.
15868EGREP=$lt_EGREP
15869
15870# A literal string matcher.
15871FGREP=$lt_FGREP
15872
15873# A BSD- or MS-compatible name lister.
15874NM=$lt_NM
15875
15876# Whether we need soft or hard links.
15877LN_S=$lt_LN_S
15878
15879# What is the maximum length of a command?
15880max_cmd_len=$max_cmd_len
15881
15882# Object file suffix (normally "o").
15883objext=$ac_objext
15884
15885# Executable file suffix (normally "").
15886exeext=$exeext
15887
15888# whether the shell understands "unset".
15889lt_unset=$lt_unset
15890
15891# turn spaces into newlines.
15892SP2NL=$lt_lt_SP2NL
15893
15894# turn newlines into spaces.
15895NL2SP=$lt_lt_NL2SP
15896
15897# convert \$build file names to \$host format.
15898to_host_file_cmd=$lt_cv_to_host_file_cmd
15899
15900# convert \$build files to toolchain format.
15901to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15902
15903# An object symbol dumper.
15904OBJDUMP=$lt_OBJDUMP
15905
15906# Method to check whether dependent libraries are shared objects.
15907deplibs_check_method=$lt_deplibs_check_method
15908
15909# Command to use when deplibs_check_method = "file_magic".
15910file_magic_cmd=$lt_file_magic_cmd
15911
15912# How to find potential files when deplibs_check_method = "file_magic".
15913file_magic_glob=$lt_file_magic_glob
15914
15915# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15916want_nocaseglob=$lt_want_nocaseglob
15917
15918# DLL creation program.
15919DLLTOOL=$lt_DLLTOOL
15920
15921# Command to associate shared and link libraries.
15922sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15923
15924# The archiver.
15925AR=$lt_AR
15926
15927# Flags to create an archive.
15928AR_FLAGS=$lt_AR_FLAGS
15929
15930# How to feed a file listing to the archiver.
15931archiver_list_spec=$lt_archiver_list_spec
15932
15933# A symbol stripping program.
15934STRIP=$lt_STRIP
15935
15936# Commands used to install an old-style archive.
15937RANLIB=$lt_RANLIB
15938old_postinstall_cmds=$lt_old_postinstall_cmds
15939old_postuninstall_cmds=$lt_old_postuninstall_cmds
15940
15941# Whether to use a lock for old archive extraction.
15942lock_old_archive_extraction=$lock_old_archive_extraction
15943
15944# A C compiler.
15945LTCC=$lt_CC
15946
15947# LTCC compiler flags.
15948LTCFLAGS=$lt_CFLAGS
15949
15950# Take the output of nm and produce a listing of raw symbols and C names.
15951global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15952
15953# Transform the output of nm in a proper C declaration.
15954global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15955
15956# Transform the output of nm into a list of symbols to manually relocate.
15957global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15958
15959# Transform the output of nm in a C name address pair.
15960global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15961
15962# Transform the output of nm in a C name address pair when lib prefix is needed.
15963global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15964
15965# The name lister interface.
15966nm_interface=$lt_lt_cv_nm_interface
15967
15968# Specify filename containing input files for \$NM.
15969nm_file_list_spec=$lt_nm_file_list_spec
15970
15971# The root where to search for dependent libraries,and where our libraries should be installed.
15972lt_sysroot=$lt_sysroot
15973
15974# Command to truncate a binary pipe.
15975lt_truncate_bin=$lt_lt_cv_truncate_bin
15976
15977# The name of the directory that contains temporary libtool files.
15978objdir=$objdir
15979
15980# Used to examine libraries when file_magic_cmd begins with "file".
15981MAGIC_CMD=$MAGIC_CMD
15982
15983# Must we lock files when doing compilation?
15984need_locks=$lt_need_locks
15985
15986# Manifest tool.
15987MANIFEST_TOOL=$lt_MANIFEST_TOOL
15988
15989# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15990DSYMUTIL=$lt_DSYMUTIL
15991
15992# Tool to change global to local symbols on Mac OS X.
15993NMEDIT=$lt_NMEDIT
15994
15995# Tool to manipulate fat objects and archives on Mac OS X.
15996LIPO=$lt_LIPO
15997
15998# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15999OTOOL=$lt_OTOOL
16000
16001# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16002OTOOL64=$lt_OTOOL64
16003
16004# Old archive suffix (normally "a").
16005libext=$libext
16006
16007# Shared library suffix (normally ".so").
16008shrext_cmds=$lt_shrext_cmds
16009
16010# The commands to extract the exported symbol list from a shared archive.
16011extract_expsyms_cmds=$lt_extract_expsyms_cmds
16012
16013# Variables whose values should be saved in libtool wrapper scripts and
16014# restored at link time.
16015variables_saved_for_relink=$lt_variables_saved_for_relink
16016
16017# Do we need the "lib" prefix for modules?
16018need_lib_prefix=$need_lib_prefix
16019
16020# Do we need a version for libraries?
16021need_version=$need_version
16022
16023# Library versioning type.
16024version_type=$version_type
16025
16026# Shared library runtime path variable.
16027runpath_var=$runpath_var
16028
16029# Shared library path variable.
16030shlibpath_var=$shlibpath_var
16031
16032# Is shlibpath searched before the hard-coded library search path?
16033shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16034
16035# Format of library name prefix.
16036libname_spec=$lt_libname_spec
16037
16038# List of archive names.  First name is the real one, the rest are links.
16039# The last name is the one that the linker finds with -lNAME
16040library_names_spec=$lt_library_names_spec
16041
16042# The coded name of the library, if different from the real name.
16043soname_spec=$lt_soname_spec
16044
16045# Permission mode override for installation of shared libraries.
16046install_override_mode=$lt_install_override_mode
16047
16048# Command to use after installation of a shared archive.
16049postinstall_cmds=$lt_postinstall_cmds
16050
16051# Command to use after uninstallation of a shared archive.
16052postuninstall_cmds=$lt_postuninstall_cmds
16053
16054# Commands used to finish a libtool library installation in a directory.
16055finish_cmds=$lt_finish_cmds
16056
16057# As "finish_cmds", except a single script fragment to be evaled but
16058# not shown.
16059finish_eval=$lt_finish_eval
16060
16061# Whether we should hardcode library paths into libraries.
16062hardcode_into_libs=$hardcode_into_libs
16063
16064# Compile-time system search path for libraries.
16065sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16066
16067# Detected run-time system search path for libraries.
16068sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16069
16070# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16071configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16072
16073# Whether dlopen is supported.
16074dlopen_support=$enable_dlopen
16075
16076# Whether dlopen of programs is supported.
16077dlopen_self=$enable_dlopen_self
16078
16079# Whether dlopen of statically linked programs is supported.
16080dlopen_self_static=$enable_dlopen_self_static
16081
16082# Commands to strip libraries.
16083old_striplib=$lt_old_striplib
16084striplib=$lt_striplib
16085
16086
16087# The linker used to build libraries.
16088LD=$lt_LD
16089
16090# How to create reloadable object files.
16091reload_flag=$lt_reload_flag
16092reload_cmds=$lt_reload_cmds
16093
16094# Commands used to build an old-style archive.
16095old_archive_cmds=$lt_old_archive_cmds
16096
16097# A language specific compiler.
16098CC=$lt_compiler
16099
16100# Is the compiler the GNU compiler?
16101with_gcc=$GCC
16102
16103# Compiler flag to turn off builtin functions.
16104no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16105
16106# Additional compiler flags for building library objects.
16107pic_flag=$lt_lt_prog_compiler_pic
16108
16109# How to pass a linker flag through the compiler.
16110wl=$lt_lt_prog_compiler_wl
16111
16112# Compiler flag to prevent dynamic linking.
16113link_static_flag=$lt_lt_prog_compiler_static
16114
16115# Does compiler simultaneously support -c and -o options?
16116compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16117
16118# Whether or not to add -lc for building shared libraries.
16119build_libtool_need_lc=$archive_cmds_need_lc
16120
16121# Whether or not to disallow shared libs when runtime libs are static.
16122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16123
16124# Compiler flag to allow reflexive dlopens.
16125export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16126
16127# Compiler flag to generate shared objects directly from archives.
16128whole_archive_flag_spec=$lt_whole_archive_flag_spec
16129
16130# Whether the compiler copes with passing no objects directly.
16131compiler_needs_object=$lt_compiler_needs_object
16132
16133# Create an old-style archive from a shared archive.
16134old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16135
16136# Create a temporary old-style archive to link instead of a shared archive.
16137old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16138
16139# Commands used to build a shared archive.
16140archive_cmds=$lt_archive_cmds
16141archive_expsym_cmds=$lt_archive_expsym_cmds
16142
16143# Commands used to build a loadable module if different from building
16144# a shared archive.
16145module_cmds=$lt_module_cmds
16146module_expsym_cmds=$lt_module_expsym_cmds
16147
16148# Whether we are building with GNU ld or not.
16149with_gnu_ld=$lt_with_gnu_ld
16150
16151# Flag that allows shared libraries with undefined symbols to be built.
16152allow_undefined_flag=$lt_allow_undefined_flag
16153
16154# Flag that enforces no undefined symbols.
16155no_undefined_flag=$lt_no_undefined_flag
16156
16157# Flag to hardcode \$libdir into a binary during linking.
16158# This must work even if \$libdir does not exist
16159hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16160
16161# Whether we need a single "-rpath" flag with a separated argument.
16162hardcode_libdir_separator=$lt_hardcode_libdir_separator
16163
16164# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16165# DIR into the resulting binary.
16166hardcode_direct=$hardcode_direct
16167
16168# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16169# DIR into the resulting binary and the resulting library dependency is
16170# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16171# library is relocated.
16172hardcode_direct_absolute=$hardcode_direct_absolute
16173
16174# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16175# into the resulting binary.
16176hardcode_minus_L=$hardcode_minus_L
16177
16178# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16179# into the resulting binary.
16180hardcode_shlibpath_var=$hardcode_shlibpath_var
16181
16182# Set to "yes" if building a shared library automatically hardcodes DIR
16183# into the library and all subsequent libraries and executables linked
16184# against it.
16185hardcode_automatic=$hardcode_automatic
16186
16187# Set to yes if linker adds runtime paths of dependent libraries
16188# to runtime path list.
16189inherit_rpath=$inherit_rpath
16190
16191# Whether libtool must link a program against all its dependency libraries.
16192link_all_deplibs=$link_all_deplibs
16193
16194# Set to "yes" if exported symbols are required.
16195always_export_symbols=$always_export_symbols
16196
16197# The commands to list exported symbols.
16198export_symbols_cmds=$lt_export_symbols_cmds
16199
16200# Symbols that should not be listed in the preloaded symbols.
16201exclude_expsyms=$lt_exclude_expsyms
16202
16203# Symbols that must always be exported.
16204include_expsyms=$lt_include_expsyms
16205
16206# Commands necessary for linking programs (against libraries) with templates.
16207prelink_cmds=$lt_prelink_cmds
16208
16209# Commands necessary for finishing linking programs.
16210postlink_cmds=$lt_postlink_cmds
16211
16212# Specify filename containing input files.
16213file_list_spec=$lt_file_list_spec
16214
16215# How to hardcode a shared library path into an executable.
16216hardcode_action=$hardcode_action
16217
16218# ### END LIBTOOL CONFIG
16219
16220_LT_EOF
16221
16222    cat <<'_LT_EOF' >> "$cfgfile"
16223
16224# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16225
16226# func_munge_path_list VARIABLE PATH
16227# -----------------------------------
16228# VARIABLE is name of variable containing _space_ separated list of
16229# directories to be munged by the contents of PATH, which is string
16230# having a format:
16231# "DIR[:DIR]:"
16232#       string "DIR[ DIR]" will be prepended to VARIABLE
16233# ":DIR[:DIR]"
16234#       string "DIR[ DIR]" will be appended to VARIABLE
16235# "DIRP[:DIRP]::[DIRA:]DIRA"
16236#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16237#       "DIRA[ DIRA]" will be appended to VARIABLE
16238# "DIR[:DIR]"
16239#       VARIABLE will be replaced by "DIR[ DIR]"
16240func_munge_path_list ()
16241{
16242    case x$2 in
16243    x)
16244        ;;
16245    *:)
16246        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16247        ;;
16248    x:*)
16249        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16250        ;;
16251    *::*)
16252        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16253        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16254        ;;
16255    *)
16256        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16257        ;;
16258    esac
16259}
16260
16261
16262# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16263func_cc_basename ()
16264{
16265    for cc_temp in $*""; do
16266      case $cc_temp in
16267        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16268        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16269        \-*) ;;
16270        *) break;;
16271      esac
16272    done
16273    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16274}
16275
16276
16277# ### END FUNCTIONS SHARED WITH CONFIGURE
16278
16279_LT_EOF
16280
16281  case $host_os in
16282  aix3*)
16283    cat <<\_LT_EOF >> "$cfgfile"
16284# AIX sometimes has problems with the GCC collect2 program.  For some
16285# reason, if we set the COLLECT_NAMES environment variable, the problems
16286# vanish in a puff of smoke.
16287if test set != "${COLLECT_NAMES+set}"; then
16288  COLLECT_NAMES=
16289  export COLLECT_NAMES
16290fi
16291_LT_EOF
16292    ;;
16293  esac
16294
16295
16296ltmain=$ac_aux_dir/ltmain.sh
16297
16298
16299  # We use sed instead of cat because bash on DJGPP gets confused if
16300  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16301  # text mode, it properly converts lines to CR/LF.  This bash problem
16302  # is reportedly fixed, but why not run on old versions too?
16303  sed '$q' "$ltmain" >> "$cfgfile" \
16304     || (rm -f "$cfgfile"; exit 1)
16305
16306   mv -f "$cfgfile" "$ofile" ||
16307    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16308  chmod +x "$ofile"
16309
16310 ;;
16311
16312  esac
16313done # for ac_tag
16314
16315
16316as_fn_exit 0
16317_ACEOF
16318ac_clean_files=$ac_clean_files_save
16319
16320test $ac_write_fail = 0 ||
16321  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16322
16323
16324# configure is writing to config.log, and then calls config.status.
16325# config.status does its own redirection, appending to config.log.
16326# Unfortunately, on DOS this fails, as config.log is still kept open
16327# by configure, so config.status won't be able to write to it; its
16328# output is simply discarded.  So we exec the FD to /dev/null,
16329# effectively closing config.log, so it can be properly (re)opened and
16330# appended to by config.status.  When coming back to configure, we
16331# need to make the FD available again.
16332if test "$no_create" != yes; then
16333  ac_cs_success=:
16334  ac_config_status_args=
16335  test "$silent" = yes &&
16336    ac_config_status_args="$ac_config_status_args --quiet"
16337  exec 5>/dev/null
16338  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16339  exec 5>>config.log
16340  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16341  # would make configure fail if this is the last instruction.
16342  $ac_cs_success || as_fn_exit 1
16343fi
16344if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16345  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16346$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16347fi
16348
16349