1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for wdns 0.10.0.
4#
5# Report bugs to <https://github.com/farsightsec/wdns/issues>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://github.com/farsightsec/wdns/issues about your
279$0: system, 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='wdns'
592PACKAGE_TARNAME='wdns'
593PACKAGE_VERSION='0.10.0'
594PACKAGE_STRING='wdns 0.10.0'
595PACKAGE_BUGREPORT='https://github.com/farsightsec/wdns/issues'
596PACKAGE_URL='https://github.com/farsightsec/wdns'
597
598ac_unique_file="wdns/wdns.h.in"
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
639USE_LCOV
640GENHTML
641LCOV
642HAVE_PYTHON_FALSE
643HAVE_PYTHON_TRUE
644pkgpyexecdir
645pyexecdir
646pkgpythondir
647pythondir
648PYTHON_PLATFORM
649PYTHON_EXEC_PREFIX
650PYTHON_PREFIX
651PYTHON_VERSION
652PYTHON
653HAVE_LD_VERSION_SCRIPT_FALSE
654HAVE_LD_VERSION_SCRIPT_TRUE
655LIBPCAP_FALSE
656LIBPCAP_TRUE
657my_CFLAGS
658pkgconfigdir
659PKG_CONFIG_LIBDIR
660PKG_CONFIG_PATH
661PKG_CONFIG
662WDNS_VERSION
663WDNS_PATCHLEVEL_VERSION
664WDNS_MINOR_VERSION
665WDNS_MAJOR_VERSION
666LT_SYS_LIBRARY_PATH
667OTOOL64
668OTOOL
669LIPO
670NMEDIT
671DSYMUTIL
672MANIFEST_TOOL
673RANLIB
674ac_ct_AR
675AR
676DLLTOOL
677OBJDUMP
678LN_S
679NM
680ac_ct_DUMPBIN
681DUMPBIN
682LD
683FGREP
684SED
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
693LIBTOOL
694EGREP
695GREP
696CPP
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__quote
705am__include
706DEPDIR
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714AM_BACKSLASH
715AM_DEFAULT_VERBOSITY
716AM_DEFAULT_V
717AM_V
718am__untar
719am__tar
720AMTAR
721am__leading_dot
722SET_MAKE
723AWK
724mkdir_p
725MKDIR_P
726INSTALL_STRIP_PROGRAM
727STRIP
728install_sh
729MAKEINFO
730AUTOHEADER
731AUTOMAKE
732AUTOCONF
733ACLOCAL
734VERSION
735PACKAGE
736CYGPATH_W
737am__isrc
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760runstatedir
761localstatedir
762sharedstatedir
763sysconfdir
764datadir
765datarootdir
766libexecdir
767sbindir
768bindir
769program_transform_name
770prefix
771exec_prefix
772PACKAGE_URL
773PACKAGE_BUGREPORT
774PACKAGE_STRING
775PACKAGE_VERSION
776PACKAGE_TARNAME
777PACKAGE_NAME
778PATH_SEPARATOR
779SHELL'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_silent_rules
784enable_dependency_tracking
785enable_largefile
786enable_shared
787enable_static
788with_pic
789enable_fast_install
790with_aix_soname
791with_gnu_ld
792with_sysroot
793enable_libtool_lock
794with_pkgconfigdir
795enable_ld_version_script
796with_coverage
797'
798      ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CPP
807LT_SYS_LIBRARY_PATH
808PKG_CONFIG
809PKG_CONFIG_PATH
810PKG_CONFIG_LIBDIR
811PYTHON'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850runstatedir='${localstatedir}/run'
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
862
863ac_prev=
864ac_dashdash=
865for ac_option
866do
867  # If the previous option needs an argument, assign it.
868  if test -n "$ac_prev"; then
869    eval $ac_prev=\$ac_option
870    ac_prev=
871    continue
872  fi
873
874  case $ac_option in
875  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876  *=)   ac_optarg= ;;
877  *)    ac_optarg=yes ;;
878  esac
879
880  # Accept the important Cygnus configure options, so we can diagnose typos.
881
882  case $ac_dashdash$ac_option in
883  --)
884    ac_dashdash=yes ;;
885
886  -bindir | --bindir | --bindi | --bind | --bin | --bi)
887    ac_prev=bindir ;;
888  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889    bindir=$ac_optarg ;;
890
891  -build | --build | --buil | --bui | --bu)
892    ac_prev=build_alias ;;
893  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894    build_alias=$ac_optarg ;;
895
896  -cache-file | --cache-file | --cache-fil | --cache-fi \
897  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898    ac_prev=cache_file ;;
899  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901    cache_file=$ac_optarg ;;
902
903  --config-cache | -C)
904    cache_file=config.cache ;;
905
906  -datadir | --datadir | --datadi | --datad)
907    ac_prev=datadir ;;
908  -datadir=* | --datadir=* | --datadi=* | --datad=*)
909    datadir=$ac_optarg ;;
910
911  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912  | --dataroo | --dataro | --datar)
913    ac_prev=datarootdir ;;
914  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916    datarootdir=$ac_optarg ;;
917
918  -disable-* | --disable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=no ;;
933
934  -docdir | --docdir | --docdi | --doc | --do)
935    ac_prev=docdir ;;
936  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937    docdir=$ac_optarg ;;
938
939  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940    ac_prev=dvidir ;;
941  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942    dvidir=$ac_optarg ;;
943
944  -enable-* | --enable-*)
945    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946    # Reject names that are not valid shell variable names.
947    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948      as_fn_error $? "invalid feature name: $ac_useropt"
949    ac_useropt_orig=$ac_useropt
950    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951    case $ac_user_opts in
952      *"
953"enable_$ac_useropt"
954"*) ;;
955      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956	 ac_unrecognized_sep=', ';;
957    esac
958    eval enable_$ac_useropt=\$ac_optarg ;;
959
960  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962  | --exec | --exe | --ex)
963    ac_prev=exec_prefix ;;
964  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966  | --exec=* | --exe=* | --ex=*)
967    exec_prefix=$ac_optarg ;;
968
969  -gas | --gas | --ga | --g)
970    # Obsolete; use --with-gas.
971    with_gas=yes ;;
972
973  -help | --help | --hel | --he | -h)
974    ac_init_help=long ;;
975  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976    ac_init_help=recursive ;;
977  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978    ac_init_help=short ;;
979
980  -host | --host | --hos | --ho)
981    ac_prev=host_alias ;;
982  -host=* | --host=* | --hos=* | --ho=*)
983    host_alias=$ac_optarg ;;
984
985  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986    ac_prev=htmldir ;;
987  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988  | --ht=*)
989    htmldir=$ac_optarg ;;
990
991  -includedir | --includedir | --includedi | --included | --include \
992  | --includ | --inclu | --incl | --inc)
993    ac_prev=includedir ;;
994  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995  | --includ=* | --inclu=* | --incl=* | --inc=*)
996    includedir=$ac_optarg ;;
997
998  -infodir | --infodir | --infodi | --infod | --info | --inf)
999    ac_prev=infodir ;;
1000  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001    infodir=$ac_optarg ;;
1002
1003  -libdir | --libdir | --libdi | --libd)
1004    ac_prev=libdir ;;
1005  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006    libdir=$ac_optarg ;;
1007
1008  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009  | --libexe | --libex | --libe)
1010    ac_prev=libexecdir ;;
1011  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012  | --libexe=* | --libex=* | --libe=*)
1013    libexecdir=$ac_optarg ;;
1014
1015  -localedir | --localedir | --localedi | --localed | --locale)
1016    ac_prev=localedir ;;
1017  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018    localedir=$ac_optarg ;;
1019
1020  -localstatedir | --localstatedir | --localstatedi | --localstated \
1021  | --localstate | --localstat | --localsta | --localst | --locals)
1022    ac_prev=localstatedir ;;
1023  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025    localstatedir=$ac_optarg ;;
1026
1027  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028    ac_prev=mandir ;;
1029  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030    mandir=$ac_optarg ;;
1031
1032  -nfp | --nfp | --nf)
1033    # Obsolete; use --without-fp.
1034    with_fp=no ;;
1035
1036  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037  | --no-cr | --no-c | -n)
1038    no_create=yes ;;
1039
1040  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042    no_recursion=yes ;;
1043
1044  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046  | --oldin | --oldi | --old | --ol | --o)
1047    ac_prev=oldincludedir ;;
1048  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051    oldincludedir=$ac_optarg ;;
1052
1053  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054    ac_prev=prefix ;;
1055  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056    prefix=$ac_optarg ;;
1057
1058  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059  | --program-pre | --program-pr | --program-p)
1060    ac_prev=program_prefix ;;
1061  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063    program_prefix=$ac_optarg ;;
1064
1065  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066  | --program-suf | --program-su | --program-s)
1067    ac_prev=program_suffix ;;
1068  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070    program_suffix=$ac_optarg ;;
1071
1072  -program-transform-name | --program-transform-name \
1073  | --program-transform-nam | --program-transform-na \
1074  | --program-transform-n | --program-transform- \
1075  | --program-transform | --program-transfor \
1076  | --program-transfo | --program-transf \
1077  | --program-trans | --program-tran \
1078  | --progr-tra | --program-tr | --program-t)
1079    ac_prev=program_transform_name ;;
1080  -program-transform-name=* | --program-transform-name=* \
1081  | --program-transform-nam=* | --program-transform-na=* \
1082  | --program-transform-n=* | --program-transform-=* \
1083  | --program-transform=* | --program-transfor=* \
1084  | --program-transfo=* | --program-transf=* \
1085  | --program-trans=* | --program-tran=* \
1086  | --progr-tra=* | --program-tr=* | --program-t=*)
1087    program_transform_name=$ac_optarg ;;
1088
1089  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090    ac_prev=pdfdir ;;
1091  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092    pdfdir=$ac_optarg ;;
1093
1094  -psdir | --psdir | --psdi | --psd | --ps)
1095    ac_prev=psdir ;;
1096  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097    psdir=$ac_optarg ;;
1098
1099  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100  | -silent | --silent | --silen | --sile | --sil)
1101    silent=yes ;;
1102
1103  -runstatedir | --runstatedir | --runstatedi | --runstated \
1104  | --runstate | --runstat | --runsta | --runst | --runs \
1105  | --run | --ru | --r)
1106    ac_prev=runstatedir ;;
1107  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1108  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1109  | --run=* | --ru=* | --r=*)
1110    runstatedir=$ac_optarg ;;
1111
1112  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113    ac_prev=sbindir ;;
1114  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115  | --sbi=* | --sb=*)
1116    sbindir=$ac_optarg ;;
1117
1118  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120  | --sharedst | --shareds | --shared | --share | --shar \
1121  | --sha | --sh)
1122    ac_prev=sharedstatedir ;;
1123  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126  | --sha=* | --sh=*)
1127    sharedstatedir=$ac_optarg ;;
1128
1129  -site | --site | --sit)
1130    ac_prev=site ;;
1131  -site=* | --site=* | --sit=*)
1132    site=$ac_optarg ;;
1133
1134  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135    ac_prev=srcdir ;;
1136  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137    srcdir=$ac_optarg ;;
1138
1139  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140  | --syscon | --sysco | --sysc | --sys | --sy)
1141    ac_prev=sysconfdir ;;
1142  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144    sysconfdir=$ac_optarg ;;
1145
1146  -target | --target | --targe | --targ | --tar | --ta | --t)
1147    ac_prev=target_alias ;;
1148  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149    target_alias=$ac_optarg ;;
1150
1151  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152    verbose=yes ;;
1153
1154  -version | --version | --versio | --versi | --vers | -V)
1155    ac_init_version=: ;;
1156
1157  -with-* | --with-*)
1158    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159    # Reject names that are not valid shell variable names.
1160    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161      as_fn_error $? "invalid package name: $ac_useropt"
1162    ac_useropt_orig=$ac_useropt
1163    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164    case $ac_user_opts in
1165      *"
1166"with_$ac_useropt"
1167"*) ;;
1168      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169	 ac_unrecognized_sep=', ';;
1170    esac
1171    eval with_$ac_useropt=\$ac_optarg ;;
1172
1173  -without-* | --without-*)
1174    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175    # Reject names that are not valid shell variable names.
1176    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177      as_fn_error $? "invalid package name: $ac_useropt"
1178    ac_useropt_orig=$ac_useropt
1179    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180    case $ac_user_opts in
1181      *"
1182"with_$ac_useropt"
1183"*) ;;
1184      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185	 ac_unrecognized_sep=', ';;
1186    esac
1187    eval with_$ac_useropt=no ;;
1188
1189  --x)
1190    # Obsolete; use --with-x.
1191    with_x=yes ;;
1192
1193  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194  | --x-incl | --x-inc | --x-in | --x-i)
1195    ac_prev=x_includes ;;
1196  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198    x_includes=$ac_optarg ;;
1199
1200  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202    ac_prev=x_libraries ;;
1203  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205    x_libraries=$ac_optarg ;;
1206
1207  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1208Try \`$0 --help' for more information"
1209    ;;
1210
1211  *=*)
1212    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213    # Reject names that are not valid shell variable names.
1214    case $ac_envvar in #(
1215      '' | [0-9]* | *[!_$as_cr_alnum]* )
1216      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1217    esac
1218    eval $ac_envvar=\$ac_optarg
1219    export $ac_envvar ;;
1220
1221  *)
1222    # FIXME: should be removed in autoconf 3.0.
1223    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227    ;;
1228
1229  esac
1230done
1231
1232if test -n "$ac_prev"; then
1233  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234  as_fn_error $? "missing argument to $ac_option"
1235fi
1236
1237if test -n "$ac_unrecognized_opts"; then
1238  case $enable_option_checking in
1239    no) ;;
1240    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1241    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242  esac
1243fi
1244
1245# Check all directory arguments for consistency.
1246for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247		datadir sysconfdir sharedstatedir localstatedir includedir \
1248		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249		libdir localedir mandir runstatedir
1250do
1251  eval ac_val=\$$ac_var
1252  # Remove trailing slashes.
1253  case $ac_val in
1254    */ )
1255      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256      eval $ac_var=\$ac_val;;
1257  esac
1258  # Be sure to have absolute directory names.
1259  case $ac_val in
1260    [\\/$]* | ?:[\\/]* )  continue;;
1261    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262  esac
1263  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264done
1265
1266# There might be people who depend on the old broken behavior: `$host'
1267# used to hold the argument of --host etc.
1268# FIXME: To remove some day.
1269build=$build_alias
1270host=$host_alias
1271target=$target_alias
1272
1273# FIXME: To remove some day.
1274if test "x$host_alias" != x; then
1275  if test "x$build_alias" = x; then
1276    cross_compiling=maybe
1277  elif test "x$build_alias" != "x$host_alias"; then
1278    cross_compiling=yes
1279  fi
1280fi
1281
1282ac_tool_prefix=
1283test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284
1285test "$silent" = yes && exec 6>/dev/null
1286
1287
1288ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289ac_ls_di=`ls -di .` &&
1290ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291  as_fn_error $? "working directory cannot be determined"
1292test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293  as_fn_error $? "pwd does not report name of working directory"
1294
1295
1296# Find the source files, if location was not specified.
1297if test -z "$srcdir"; then
1298  ac_srcdir_defaulted=yes
1299  # Try the directory containing this script, then the parent directory.
1300  ac_confdir=`$as_dirname -- "$as_myself" ||
1301$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302	 X"$as_myself" : 'X\(//\)[^/]' \| \
1303	 X"$as_myself" : 'X\(//\)$' \| \
1304	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305$as_echo X"$as_myself" |
1306    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\/\)[^/].*/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\/\)$/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\).*/{
1319	    s//\1/
1320	    q
1321	  }
1322	  s/.*/./; q'`
1323  srcdir=$ac_confdir
1324  if test ! -r "$srcdir/$ac_unique_file"; then
1325    srcdir=..
1326  fi
1327else
1328  ac_srcdir_defaulted=no
1329fi
1330if test ! -r "$srcdir/$ac_unique_file"; then
1331  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1333fi
1334ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335ac_abs_confdir=`(
1336	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337	pwd)`
1338# When building in place, set srcdir=.
1339if test "$ac_abs_confdir" = "$ac_pwd"; then
1340  srcdir=.
1341fi
1342# Remove unnecessary trailing slashes from srcdir.
1343# Double slashes in file names in object file debugging info
1344# mess up M-x gdb in Emacs.
1345case $srcdir in
1346*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347esac
1348for ac_var in $ac_precious_vars; do
1349  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_env_${ac_var}_value=\$${ac_var}
1351  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353done
1354
1355#
1356# Report the --help message.
1357#
1358if test "$ac_init_help" = "long"; then
1359  # Omit some internal or obsolete options to make the list less imposing.
1360  # This message is too long to be a string in the A/UX 3.1 sh.
1361  cat <<_ACEOF
1362\`configure' configures wdns 0.10.0 to adapt to many kinds of systems.
1363
1364Usage: $0 [OPTION]... [VAR=VALUE]...
1365
1366To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367VAR=VALUE.  See below for descriptions of some of the useful variables.
1368
1369Defaults for the options are specified in brackets.
1370
1371Configuration:
1372  -h, --help              display this help and exit
1373      --help=short        display options specific to this package
1374      --help=recursive    display the short help of all the included packages
1375  -V, --version           display version information and exit
1376  -q, --quiet, --silent   do not print \`checking ...' messages
1377      --cache-file=FILE   cache test results in FILE [disabled]
1378  -C, --config-cache      alias for \`--cache-file=config.cache'
1379  -n, --no-create         do not create output files
1380      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1381
1382Installation directories:
1383  --prefix=PREFIX         install architecture-independent files in PREFIX
1384                          [$ac_default_prefix]
1385  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1386                          [PREFIX]
1387
1388By default, \`make install' will install all the files in
1389\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1390an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391for instance \`--prefix=\$HOME'.
1392
1393For better control, use the options below.
1394
1395Fine tuning of the installation directories:
1396  --bindir=DIR            user executables [EPREFIX/bin]
1397  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1398  --libexecdir=DIR        program executables [EPREFIX/libexec]
1399  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1400  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1401  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1402  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1403  --libdir=DIR            object code libraries [EPREFIX/lib]
1404  --includedir=DIR        C header files [PREFIX/include]
1405  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1406  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1407  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1408  --infodir=DIR           info documentation [DATAROOTDIR/info]
1409  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1410  --mandir=DIR            man documentation [DATAROOTDIR/man]
1411  --docdir=DIR            documentation root [DATAROOTDIR/doc/wdns]
1412  --htmldir=DIR           html documentation [DOCDIR]
1413  --dvidir=DIR            dvi documentation [DOCDIR]
1414  --pdfdir=DIR            pdf documentation [DOCDIR]
1415  --psdir=DIR             ps documentation [DOCDIR]
1416_ACEOF
1417
1418  cat <<\_ACEOF
1419
1420Program names:
1421  --program-prefix=PREFIX            prepend PREFIX to installed program names
1422  --program-suffix=SUFFIX            append SUFFIX to installed program names
1423  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1424
1425System types:
1426  --build=BUILD     configure for building on BUILD [guessed]
1427  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1428_ACEOF
1429fi
1430
1431if test -n "$ac_init_help"; then
1432  case $ac_init_help in
1433     short | recursive ) echo "Configuration of wdns 0.10.0:";;
1434   esac
1435  cat <<\_ACEOF
1436
1437Optional Features:
1438  --disable-option-checking  ignore unrecognized --enable/--with options
1439  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1440  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1441  --enable-silent-rules   less verbose build output (undo: "make V=1")
1442  --disable-silent-rules  verbose build output (undo: "make V=0")
1443  --enable-dependency-tracking
1444                          do not reject slow dependency extractors
1445  --disable-dependency-tracking
1446                          speeds up one-time build
1447  --disable-largefile     omit support for large files
1448  --enable-shared[=PKGS]  build shared libraries [default=yes]
1449  --enable-static[=PKGS]  build static libraries [default=yes]
1450  --enable-fast-install[=PKGS]
1451                          optimize for fast installation [default=yes]
1452  --disable-libtool-lock  avoid locking (might break parallel builds)
1453  --enable-ld-version-script
1454                          enable linker version script (default is enabled
1455                          when possible)
1456
1457Optional Packages:
1458  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1461                          both]
1462  --with-aix-soname=aix|svr4|both
1463                          shared library versioning (aka "SONAME") variant to
1464                          provide on AIX, [default=aix].
1465  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1466  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1467                          compiler's sysroot if not specified).
1468  --with-pkgconfigdir     pkg-config installation directory
1469                          ['${prefix}/libdata/pkgconfig']
1470 --with-coverage=PROGRAM enable gtest and coverage target using the specified lcov
1471
1472Some influential environment variables:
1473  CC          C compiler command
1474  CFLAGS      C compiler flags
1475  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476              nonstandard directory <lib dir>
1477  LIBS        libraries to pass to the linker, e.g. -l<library>
1478  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479              you have headers in a nonstandard directory <include dir>
1480  CPP         C preprocessor
1481  LT_SYS_LIBRARY_PATH
1482              User-defined run-time library search path.
1483  PKG_CONFIG  path to pkg-config utility
1484  PKG_CONFIG_PATH
1485              directories to add to pkg-config's search path
1486  PKG_CONFIG_LIBDIR
1487              path overriding pkg-config's built-in search path
1488  PYTHON      the Python interpreter
1489
1490Use these variables to override the choices made by `configure' or to help
1491it to find libraries and programs with nonstandard names/locations.
1492
1493Report bugs to <https://github.com/farsightsec/wdns/issues>.
1494wdns home page: <https://github.com/farsightsec/wdns>.
1495_ACEOF
1496ac_status=$?
1497fi
1498
1499if test "$ac_init_help" = "recursive"; then
1500  # If there are subdirs, report their specific --help.
1501  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502    test -d "$ac_dir" ||
1503      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504      continue
1505    ac_builddir=.
1506
1507case "$ac_dir" in
1508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509*)
1510  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1511  # A ".." for each directory in $ac_dir_suffix.
1512  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1513  case $ac_top_builddir_sub in
1514  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516  esac ;;
1517esac
1518ac_abs_top_builddir=$ac_pwd
1519ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520# for backward compatibility:
1521ac_top_builddir=$ac_top_build_prefix
1522
1523case $srcdir in
1524  .)  # We are building in place.
1525    ac_srcdir=.
1526    ac_top_srcdir=$ac_top_builddir_sub
1527    ac_abs_top_srcdir=$ac_pwd ;;
1528  [\\/]* | ?:[\\/]* )  # Absolute name.
1529    ac_srcdir=$srcdir$ac_dir_suffix;
1530    ac_top_srcdir=$srcdir
1531    ac_abs_top_srcdir=$srcdir ;;
1532  *) # Relative name.
1533    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534    ac_top_srcdir=$ac_top_build_prefix$srcdir
1535    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536esac
1537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538
1539    cd "$ac_dir" || { ac_status=$?; continue; }
1540    # Check for guested configure.
1541    if test -f "$ac_srcdir/configure.gnu"; then
1542      echo &&
1543      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544    elif test -f "$ac_srcdir/configure"; then
1545      echo &&
1546      $SHELL "$ac_srcdir/configure" --help=recursive
1547    else
1548      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549    fi || ac_status=$?
1550    cd "$ac_pwd" || { ac_status=$?; break; }
1551  done
1552fi
1553
1554test -n "$ac_init_help" && exit $ac_status
1555if $ac_init_version; then
1556  cat <<\_ACEOF
1557wdns configure 0.10.0
1558generated by GNU Autoconf 2.69
1559
1560Copyright (C) 2012 Free Software Foundation, Inc.
1561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
1563_ACEOF
1564  exit
1565fi
1566
1567## ------------------------ ##
1568## Autoconf initialization. ##
1569## ------------------------ ##
1570
1571# ac_fn_c_try_compile LINENO
1572# --------------------------
1573# Try to compile conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_compile ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  rm -f conftest.$ac_objext
1578  if { { ac_try="$ac_compile"
1579case "(($ac_try" in
1580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581  *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585  (eval "$ac_compile") 2>conftest.err
1586  ac_status=$?
1587  if test -s conftest.err; then
1588    grep -v '^ *+' conftest.err >conftest.er1
1589    cat conftest.er1 >&5
1590    mv -f conftest.er1 conftest.err
1591  fi
1592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593  test $ac_status = 0; } && {
1594	 test -z "$ac_c_werror_flag" ||
1595	 test ! -s conftest.err
1596       } && test -s conftest.$ac_objext; then :
1597  ac_retval=0
1598else
1599  $as_echo "$as_me: failed program was:" >&5
1600sed 's/^/| /' conftest.$ac_ext >&5
1601
1602	ac_retval=1
1603fi
1604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605  as_fn_set_status $ac_retval
1606
1607} # ac_fn_c_try_compile
1608
1609# ac_fn_c_try_cpp LINENO
1610# ----------------------
1611# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612ac_fn_c_try_cpp ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  if { { ac_try="$ac_cpp conftest.$ac_ext"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } > conftest.i && {
1631	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       }; then :
1634  ac_retval=0
1635else
1636  $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639    ac_retval=1
1640fi
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642  as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_cpp
1645
1646# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1649# the include files in INCLUDES and setting the cache variable VAR
1650# accordingly.
1651ac_fn_c_check_header_mongrel ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  if eval \${$3+:} false; then :
1655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if eval \${$3+:} false; then :
1658  $as_echo_n "(cached) " >&6
1659fi
1660eval ac_res=\$$3
1661	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
1663else
1664  # Is the header compilable?
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1666$as_echo_n "checking $2 usability... " >&6; }
1667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670#include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673  ac_header_compiler=yes
1674else
1675  ac_header_compiler=no
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1679$as_echo "$ac_header_compiler" >&6; }
1680
1681# Is the header present?
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1683$as_echo_n "checking $2 presence... " >&6; }
1684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h.  */
1686#include <$2>
1687_ACEOF
1688if ac_fn_c_try_cpp "$LINENO"; then :
1689  ac_header_preproc=yes
1690else
1691  ac_header_preproc=no
1692fi
1693rm -f conftest.err conftest.i conftest.$ac_ext
1694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1695$as_echo "$ac_header_preproc" >&6; }
1696
1697# So?  What about this header?
1698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699  yes:no: )
1700    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1701$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1702    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704    ;;
1705  no:yes:* )
1706    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1707$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1709$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1711$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1712    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1713$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1714    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716( $as_echo "## --------------------------------------------------------- ##
1717## Report this to https://github.com/farsightsec/wdns/issues ##
1718## --------------------------------------------------------- ##"
1719     ) | sed "s/^/$as_me: WARNING:     /" >&2
1720    ;;
1721esac
1722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725  $as_echo_n "(cached) " >&6
1726else
1727  eval "$3=\$ac_header_compiler"
1728fi
1729eval ac_res=\$$3
1730	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732fi
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735} # ac_fn_c_check_header_mongrel
1736
1737# ac_fn_c_try_run LINENO
1738# ----------------------
1739# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740# that executables *can* be run.
1741ac_fn_c_try_run ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  if { { ac_try="$ac_link"
1745case "(($ac_try" in
1746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747  *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751  (eval "$ac_link") 2>&5
1752  ac_status=$?
1753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755  { { case "(($ac_try" in
1756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757  *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761  (eval "$ac_try") 2>&5
1762  ac_status=$?
1763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764  test $ac_status = 0; }; }; then :
1765  ac_retval=0
1766else
1767  $as_echo "$as_me: program exited with status $ac_status" >&5
1768       $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771       ac_retval=$ac_status
1772fi
1773  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775  as_fn_set_status $ac_retval
1776
1777} # ac_fn_c_try_run
1778
1779# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780# -------------------------------------------------------
1781# Tests whether HEADER exists and can be compiled using the include files in
1782# INCLUDES, setting the cache variable VAR accordingly.
1783ac_fn_c_check_header_compile ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval \${$3+:} false; then :
1789  $as_echo_n "(cached) " >&6
1790else
1791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h.  */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797  eval "$3=yes"
1798else
1799  eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802fi
1803eval ac_res=\$$3
1804	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808} # ac_fn_c_check_header_compile
1809
1810# ac_fn_c_try_link LINENO
1811# -----------------------
1812# Try to link conftest.$ac_ext, and return whether this succeeded.
1813ac_fn_c_try_link ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  rm -f conftest.$ac_objext conftest$ac_exeext
1817  if { { ac_try="$ac_link"
1818case "(($ac_try" in
1819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820  *) ac_try_echo=$ac_try;;
1821esac
1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823$as_echo "$ac_try_echo"; } >&5
1824  (eval "$ac_link") 2>conftest.err
1825  ac_status=$?
1826  if test -s conftest.err; then
1827    grep -v '^ *+' conftest.err >conftest.er1
1828    cat conftest.er1 >&5
1829    mv -f conftest.er1 conftest.err
1830  fi
1831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832  test $ac_status = 0; } && {
1833	 test -z "$ac_c_werror_flag" ||
1834	 test ! -s conftest.err
1835       } && test -s conftest$ac_exeext && {
1836	 test "$cross_compiling" = yes ||
1837	 test -x conftest$ac_exeext
1838       }; then :
1839  ac_retval=0
1840else
1841  $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844	ac_retval=1
1845fi
1846  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1847  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1848  # interfere with the next link command; also delete a directory that is
1849  # left behind by Apple's compiler.  We do this before executing the actions.
1850  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852  as_fn_set_status $ac_retval
1853
1854} # ac_fn_c_try_link
1855
1856# ac_fn_c_check_func LINENO FUNC VAR
1857# ----------------------------------
1858# Tests whether FUNC exists, setting the cache variable VAR accordingly
1859ac_fn_c_check_func ()
1860{
1861  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if eval \${$3+:} false; then :
1865  $as_echo_n "(cached) " >&6
1866else
1867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h.  */
1869/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1871#define $2 innocuous_$2
1872
1873/* System header to define __stub macros and hopefully few prototypes,
1874    which can conflict with char $2 (); below.
1875    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876    <limits.h> exists even on freestanding compilers.  */
1877
1878#ifdef __STDC__
1879# include <limits.h>
1880#else
1881# include <assert.h>
1882#endif
1883
1884#undef $2
1885
1886/* Override any GCC internal prototype to avoid an error.
1887   Use char because int might match the return type of a GCC
1888   builtin and then its argument prototype would still apply.  */
1889#ifdef __cplusplus
1890extern "C"
1891#endif
1892char $2 ();
1893/* The GNU C library defines this for functions which it implements
1894    to always fail with ENOSYS.  Some functions are actually named
1895    something starting with __ and the normal name is an alias.  */
1896#if defined __stub_$2 || defined __stub___$2
1897choke me
1898#endif
1899
1900int
1901main ()
1902{
1903return $2 ();
1904  ;
1905  return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_link "$LINENO"; then :
1909  eval "$3=yes"
1910else
1911  eval "$3=no"
1912fi
1913rm -f core conftest.err conftest.$ac_objext \
1914    conftest$ac_exeext conftest.$ac_ext
1915fi
1916eval ac_res=\$$3
1917	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921} # ac_fn_c_check_func
1922cat >config.log <<_ACEOF
1923This file contains any messages produced by compilers while
1924running configure, to aid debugging if configure makes a mistake.
1925
1926It was created by wdns $as_me 0.10.0, which was
1927generated by GNU Autoconf 2.69.  Invocation command line was
1928
1929  $ $0 $@
1930
1931_ACEOF
1932exec 5>>config.log
1933{
1934cat <<_ASUNAME
1935## --------- ##
1936## Platform. ##
1937## --------- ##
1938
1939hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1940uname -m = `(uname -m) 2>/dev/null || echo unknown`
1941uname -r = `(uname -r) 2>/dev/null || echo unknown`
1942uname -s = `(uname -s) 2>/dev/null || echo unknown`
1943uname -v = `(uname -v) 2>/dev/null || echo unknown`
1944
1945/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1946/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1947
1948/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1949/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1950/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1951/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1952/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1953/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1954/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1955
1956_ASUNAME
1957
1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959for as_dir in $PATH
1960do
1961  IFS=$as_save_IFS
1962  test -z "$as_dir" && as_dir=.
1963    $as_echo "PATH: $as_dir"
1964  done
1965IFS=$as_save_IFS
1966
1967} >&5
1968
1969cat >&5 <<_ACEOF
1970
1971
1972## ----------- ##
1973## Core tests. ##
1974## ----------- ##
1975
1976_ACEOF
1977
1978
1979# Keep a trace of the command line.
1980# Strip out --no-create and --no-recursion so they do not pile up.
1981# Strip out --silent because we don't want to record it for future runs.
1982# Also quote any args containing shell meta-characters.
1983# Make two passes to allow for proper duplicate-argument suppression.
1984ac_configure_args=
1985ac_configure_args0=
1986ac_configure_args1=
1987ac_must_keep_next=false
1988for ac_pass in 1 2
1989do
1990  for ac_arg
1991  do
1992    case $ac_arg in
1993    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1994    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1995    | -silent | --silent | --silen | --sile | --sil)
1996      continue ;;
1997    *\'*)
1998      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1999    esac
2000    case $ac_pass in
2001    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2002    2)
2003      as_fn_append ac_configure_args1 " '$ac_arg'"
2004      if test $ac_must_keep_next = true; then
2005	ac_must_keep_next=false # Got value, back to normal.
2006      else
2007	case $ac_arg in
2008	  *=* | --config-cache | -C | -disable-* | --disable-* \
2009	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2010	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2011	  | -with-* | --with-* | -without-* | --without-* | --x)
2012	    case "$ac_configure_args0 " in
2013	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2014	    esac
2015	    ;;
2016	  -* ) ac_must_keep_next=true ;;
2017	esac
2018      fi
2019      as_fn_append ac_configure_args " '$ac_arg'"
2020      ;;
2021    esac
2022  done
2023done
2024{ ac_configure_args0=; unset ac_configure_args0;}
2025{ ac_configure_args1=; unset ac_configure_args1;}
2026
2027# When interrupted or exit'd, cleanup temporary files, and complete
2028# config.log.  We remove comments because anyway the quotes in there
2029# would cause problems or look ugly.
2030# WARNING: Use '\'' to represent an apostrophe within the trap.
2031# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2032trap 'exit_status=$?
2033  # Save into config.log some information that might help in debugging.
2034  {
2035    echo
2036
2037    $as_echo "## ---------------- ##
2038## Cache variables. ##
2039## ---------------- ##"
2040    echo
2041    # The following way of writing the cache mishandles newlines in values,
2042(
2043  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2044    eval ac_val=\$$ac_var
2045    case $ac_val in #(
2046    *${as_nl}*)
2047      case $ac_var in #(
2048      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2049$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2050      esac
2051      case $ac_var in #(
2052      _ | IFS | as_nl) ;; #(
2053      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2054      *) { eval $ac_var=; unset $ac_var;} ;;
2055      esac ;;
2056    esac
2057  done
2058  (set) 2>&1 |
2059    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2060    *${as_nl}ac_space=\ *)
2061      sed -n \
2062	"s/'\''/'\''\\\\'\'''\''/g;
2063	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2064      ;; #(
2065    *)
2066      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067      ;;
2068    esac |
2069    sort
2070)
2071    echo
2072
2073    $as_echo "## ----------------- ##
2074## Output variables. ##
2075## ----------------- ##"
2076    echo
2077    for ac_var in $ac_subst_vars
2078    do
2079      eval ac_val=\$$ac_var
2080      case $ac_val in
2081      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082      esac
2083      $as_echo "$ac_var='\''$ac_val'\''"
2084    done | sort
2085    echo
2086
2087    if test -n "$ac_subst_files"; then
2088      $as_echo "## ------------------- ##
2089## File substitutions. ##
2090## ------------------- ##"
2091      echo
2092      for ac_var in $ac_subst_files
2093      do
2094	eval ac_val=\$$ac_var
2095	case $ac_val in
2096	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097	esac
2098	$as_echo "$ac_var='\''$ac_val'\''"
2099      done | sort
2100      echo
2101    fi
2102
2103    if test -s confdefs.h; then
2104      $as_echo "## ----------- ##
2105## confdefs.h. ##
2106## ----------- ##"
2107      echo
2108      cat confdefs.h
2109      echo
2110    fi
2111    test "$ac_signal" != 0 &&
2112      $as_echo "$as_me: caught signal $ac_signal"
2113    $as_echo "$as_me: exit $exit_status"
2114  } >&5
2115  rm -f core *.core core.conftest.* &&
2116    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117    exit $exit_status
2118' 0
2119for ac_signal in 1 2 13 15; do
2120  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2121done
2122ac_signal=0
2123
2124# confdefs.h avoids OS command line length limits that DEFS can exceed.
2125rm -f -r conftest* confdefs.h
2126
2127$as_echo "/* confdefs.h */" > confdefs.h
2128
2129# Predefined preprocessor variables.
2130
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_NAME "$PACKAGE_NAME"
2133_ACEOF
2134
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2137_ACEOF
2138
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_VERSION "$PACKAGE_VERSION"
2141_ACEOF
2142
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_STRING "$PACKAGE_STRING"
2145_ACEOF
2146
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2149_ACEOF
2150
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_URL "$PACKAGE_URL"
2153_ACEOF
2154
2155
2156# Let the site file select an alternate cache file if it wants to.
2157# Prefer an explicitly selected file to automatically selected ones.
2158ac_site_file1=NONE
2159ac_site_file2=NONE
2160if test -n "$CONFIG_SITE"; then
2161  # We do not want a PATH search for config.site.
2162  case $CONFIG_SITE in #((
2163    -*)  ac_site_file1=./$CONFIG_SITE;;
2164    */*) ac_site_file1=$CONFIG_SITE;;
2165    *)   ac_site_file1=./$CONFIG_SITE;;
2166  esac
2167elif test "x$prefix" != xNONE; then
2168  ac_site_file1=$prefix/share/config.site
2169  ac_site_file2=$prefix/etc/config.site
2170else
2171  ac_site_file1=$ac_default_prefix/share/config.site
2172  ac_site_file2=$ac_default_prefix/etc/config.site
2173fi
2174for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2175do
2176  test "x$ac_site_file" = xNONE && continue
2177  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2178    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180    sed 's/^/| /' "$ac_site_file" >&5
2181    . "$ac_site_file" \
2182      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184as_fn_error $? "failed to load site script $ac_site_file
2185See \`config.log' for more details" "$LINENO" 5; }
2186  fi
2187done
2188
2189if test -r "$cache_file"; then
2190  # Some versions of bash will fail to source /dev/null (special files
2191  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2192  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2193    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2194$as_echo "$as_me: loading cache $cache_file" >&6;}
2195    case $cache_file in
2196      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2197      *)                      . "./$cache_file";;
2198    esac
2199  fi
2200else
2201  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2202$as_echo "$as_me: creating cache $cache_file" >&6;}
2203  >$cache_file
2204fi
2205
2206# Check that the precious variables saved in the cache have kept the same
2207# value.
2208ac_cache_corrupted=false
2209for ac_var in $ac_precious_vars; do
2210  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2211  eval ac_new_set=\$ac_env_${ac_var}_set
2212  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2213  eval ac_new_val=\$ac_env_${ac_var}_value
2214  case $ac_old_set,$ac_new_set in
2215    set,)
2216      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2217$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2218      ac_cache_corrupted=: ;;
2219    ,set)
2220      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2221$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2222      ac_cache_corrupted=: ;;
2223    ,);;
2224    *)
2225      if test "x$ac_old_val" != "x$ac_new_val"; then
2226	# differences in whitespace do not lead to failure.
2227	ac_old_val_w=`echo x $ac_old_val`
2228	ac_new_val_w=`echo x $ac_new_val`
2229	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2230	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2231$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2232	  ac_cache_corrupted=:
2233	else
2234	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2235$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2236	  eval $ac_var=\$ac_old_val
2237	fi
2238	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2239$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2240	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2241$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2242      fi;;
2243  esac
2244  # Pass precious variables to config.status.
2245  if test "$ac_new_set" = set; then
2246    case $ac_new_val in
2247    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2248    *) ac_arg=$ac_var=$ac_new_val ;;
2249    esac
2250    case " $ac_configure_args " in
2251      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2252      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2253    esac
2254  fi
2255done
2256if $ac_cache_corrupted; then
2257  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2260$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2261  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2262fi
2263## -------------------- ##
2264## Main body of script. ##
2265## -------------------- ##
2266
2267ac_ext=c
2268ac_cpp='$CPP $CPPFLAGS'
2269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272
2273
2274
2275ac_aux_dir=
2276for ac_dir in build-aux "$srcdir"/build-aux; do
2277  if test -f "$ac_dir/install-sh"; then
2278    ac_aux_dir=$ac_dir
2279    ac_install_sh="$ac_aux_dir/install-sh -c"
2280    break
2281  elif test -f "$ac_dir/install.sh"; then
2282    ac_aux_dir=$ac_dir
2283    ac_install_sh="$ac_aux_dir/install.sh -c"
2284    break
2285  elif test -f "$ac_dir/shtool"; then
2286    ac_aux_dir=$ac_dir
2287    ac_install_sh="$ac_aux_dir/shtool install -c"
2288    break
2289  fi
2290done
2291if test -z "$ac_aux_dir"; then
2292  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2293fi
2294
2295# These three variables are undocumented and unsupported,
2296# and are intended to be withdrawn in a future Autoconf release.
2297# They can cause serious problems if a builder's source tree is in a directory
2298# whose full name contains unusual characters.
2299ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2300ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2301ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2302
2303
2304am__api_version='1.15'
2305
2306# Find a good install program.  We prefer a C program (faster),
2307# so one script is as good as another.  But avoid the broken or
2308# incompatible versions:
2309# SysV /etc/install, /usr/sbin/install
2310# SunOS /usr/etc/install
2311# IRIX /sbin/install
2312# AIX /bin/install
2313# AmigaOS /C/install, which installs bootblocks on floppy discs
2314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317# OS/2's system install, which has a completely different semantic
2318# ./install, which can be erroneously created by make from ./install.sh.
2319# Reject install programs that cannot install multiple files.
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2321$as_echo_n "checking for a BSD-compatible install... " >&6; }
2322if test -z "$INSTALL"; then
2323if ${ac_cv_path_install+:} false; then :
2324  $as_echo_n "(cached) " >&6
2325else
2326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329  IFS=$as_save_IFS
2330  test -z "$as_dir" && as_dir=.
2331    # Account for people who put trailing slashes in PATH elements.
2332case $as_dir/ in #((
2333  ./ | .// | /[cC]/* | \
2334  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2336  /usr/ucb/* ) ;;
2337  *)
2338    # OSF1 and SCO ODT 3.0 have their own names for install.
2339    # Don't use installbsd from OSF since it installs stuff as root
2340    # by default.
2341    for ac_prog in ginstall scoinst install; do
2342      for ac_exec_ext in '' $ac_executable_extensions; do
2343	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2344	  if test $ac_prog = install &&
2345	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346	    # AIX install.  It has an incompatible calling convention.
2347	    :
2348	  elif test $ac_prog = install &&
2349	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350	    # program-specific install script used by HP pwplus--don't use.
2351	    :
2352	  else
2353	    rm -rf conftest.one conftest.two conftest.dir
2354	    echo one > conftest.one
2355	    echo two > conftest.two
2356	    mkdir conftest.dir
2357	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358	      test -s conftest.one && test -s conftest.two &&
2359	      test -s conftest.dir/conftest.one &&
2360	      test -s conftest.dir/conftest.two
2361	    then
2362	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2363	      break 3
2364	    fi
2365	  fi
2366	fi
2367      done
2368    done
2369    ;;
2370esac
2371
2372  done
2373IFS=$as_save_IFS
2374
2375rm -rf conftest.one conftest.two conftest.dir
2376
2377fi
2378  if test "${ac_cv_path_install+set}" = set; then
2379    INSTALL=$ac_cv_path_install
2380  else
2381    # As a last resort, use the slow shell script.  Don't cache a
2382    # value for INSTALL within a source directory, because that will
2383    # break other packages using the cache if that directory is
2384    # removed, or if the value is a relative name.
2385    INSTALL=$ac_install_sh
2386  fi
2387fi
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2389$as_echo "$INSTALL" >&6; }
2390
2391# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392# It thinks the first close brace ends the variable substitution.
2393test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394
2395test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396
2397test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2400$as_echo_n "checking whether build environment is sane... " >&6; }
2401# Reject unsafe characters in $srcdir or the absolute working directory
2402# name.  Accept space and tab only in the latter.
2403am_lf='
2404'
2405case `pwd` in
2406  *[\\\"\#\$\&\'\`$am_lf]*)
2407    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2408esac
2409case $srcdir in
2410  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2411    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2412esac
2413
2414# Do 'set' in a subshell so we don't clobber the current shell's
2415# arguments.  Must try -L first in case configure is actually a
2416# symlink; some systems play weird games with the mod time of symlinks
2417# (eg FreeBSD returns the mod time of the symlink's containing
2418# directory).
2419if (
2420   am_has_slept=no
2421   for am_try in 1 2; do
2422     echo "timestamp, slept: $am_has_slept" > conftest.file
2423     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2424     if test "$*" = "X"; then
2425	# -L didn't work.
2426	set X `ls -t "$srcdir/configure" conftest.file`
2427     fi
2428     if test "$*" != "X $srcdir/configure conftest.file" \
2429	&& test "$*" != "X conftest.file $srcdir/configure"; then
2430
2431	# If neither matched, then we have a broken ls.  This can happen
2432	# if, for instance, CONFIG_SHELL is bash and it inherits a
2433	# broken ls alias from the environment.  This has actually
2434	# happened.  Such a system could not be considered "sane".
2435	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2436  alias in your environment" "$LINENO" 5
2437     fi
2438     if test "$2" = conftest.file || test $am_try -eq 2; then
2439       break
2440     fi
2441     # Just in case.
2442     sleep 1
2443     am_has_slept=yes
2444   done
2445   test "$2" = conftest.file
2446   )
2447then
2448   # Ok.
2449   :
2450else
2451   as_fn_error $? "newly created file is older than distributed files!
2452Check your system clock" "$LINENO" 5
2453fi
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2455$as_echo "yes" >&6; }
2456# If we didn't sleep, we still need to ensure time stamps of config.status and
2457# generated files are strictly newer.
2458am_sleep_pid=
2459if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2460  ( sleep 1 ) &
2461  am_sleep_pid=$!
2462fi
2463
2464rm -f conftest.file
2465
2466test "$program_prefix" != NONE &&
2467  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2468# Use a double $ so make ignores it.
2469test "$program_suffix" != NONE &&
2470  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2471# Double any \ or $.
2472# By default was `s,x,x', remove it if useless.
2473ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2474program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2475
2476# Expand $ac_aux_dir to an absolute path.
2477am_aux_dir=`cd "$ac_aux_dir" && pwd`
2478
2479if test x"${MISSING+set}" != xset; then
2480  case $am_aux_dir in
2481  *\ * | *\	*)
2482    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2483  *)
2484    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2485  esac
2486fi
2487# Use eval to expand $SHELL
2488if eval "$MISSING --is-lightweight"; then
2489  am_missing_run="$MISSING "
2490else
2491  am_missing_run=
2492  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2493$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2494fi
2495
2496if test x"${install_sh+set}" != xset; then
2497  case $am_aux_dir in
2498  *\ * | *\	*)
2499    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2500  *)
2501    install_sh="\${SHELL} $am_aux_dir/install-sh"
2502  esac
2503fi
2504
2505# Installed binaries are usually stripped using 'strip' when the user
2506# run "make install-strip".  However 'strip' might not be the right
2507# tool to use in cross-compilation environments, therefore Automake
2508# will honor the 'STRIP' environment variable to overrule this program.
2509if test "$cross_compiling" != no; then
2510  if test -n "$ac_tool_prefix"; then
2511  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512set dummy ${ac_tool_prefix}strip; ac_word=$2
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if ${ac_cv_prog_STRIP+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test -n "$STRIP"; then
2519  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526    for ac_exec_ext in '' $ac_executable_extensions; do
2527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530    break 2
2531  fi
2532done
2533  done
2534IFS=$as_save_IFS
2535
2536fi
2537fi
2538STRIP=$ac_cv_prog_STRIP
2539if test -n "$STRIP"; then
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2541$as_echo "$STRIP" >&6; }
2542else
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
2545fi
2546
2547
2548fi
2549if test -z "$ac_cv_prog_STRIP"; then
2550  ac_ct_STRIP=$STRIP
2551  # Extract the first word of "strip", so it can be a program name with args.
2552set dummy strip; ac_word=$2
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  if test -n "$ac_ct_STRIP"; then
2559  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564  IFS=$as_save_IFS
2565  test -z "$as_dir" && as_dir=.
2566    for ac_exec_ext in '' $ac_executable_extensions; do
2567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568    ac_cv_prog_ac_ct_STRIP="strip"
2569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570    break 2
2571  fi
2572done
2573  done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579if test -n "$ac_ct_STRIP"; then
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2581$as_echo "$ac_ct_STRIP" >&6; }
2582else
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587  if test "x$ac_ct_STRIP" = x; then
2588    STRIP=":"
2589  else
2590    case $cross_compiling:$ac_tool_warned in
2591yes:)
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594ac_tool_warned=yes ;;
2595esac
2596    STRIP=$ac_ct_STRIP
2597  fi
2598else
2599  STRIP="$ac_cv_prog_STRIP"
2600fi
2601
2602fi
2603INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2604
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2606$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2607if test -z "$MKDIR_P"; then
2608  if ${ac_cv_path_mkdir+:} false; then :
2609  $as_echo_n "(cached) " >&6
2610else
2611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616    for ac_prog in mkdir gmkdir; do
2617	 for ac_exec_ext in '' $ac_executable_extensions; do
2618	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2619	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2620	     'mkdir (GNU coreutils) '* | \
2621	     'mkdir (coreutils) '* | \
2622	     'mkdir (fileutils) '4.1*)
2623	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2624	       break 3;;
2625	   esac
2626	 done
2627       done
2628  done
2629IFS=$as_save_IFS
2630
2631fi
2632
2633  test -d ./--version && rmdir ./--version
2634  if test "${ac_cv_path_mkdir+set}" = set; then
2635    MKDIR_P="$ac_cv_path_mkdir -p"
2636  else
2637    # As a last resort, use the slow shell script.  Don't cache a
2638    # value for MKDIR_P within a source directory, because that will
2639    # break other packages using the cache if that directory is
2640    # removed, or if the value is a relative name.
2641    MKDIR_P="$ac_install_sh -d"
2642  fi
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2645$as_echo "$MKDIR_P" >&6; }
2646
2647for ac_prog in gawk mawk nawk awk
2648do
2649  # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if ${ac_cv_prog_AWK+:} false; then :
2654  $as_echo_n "(cached) " >&6
2655else
2656  if test -n "$AWK"; then
2657  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664    for ac_exec_ext in '' $ac_executable_extensions; do
2665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666    ac_cv_prog_AWK="$ac_prog"
2667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668    break 2
2669  fi
2670done
2671  done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676AWK=$ac_cv_prog_AWK
2677if test -n "$AWK"; then
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679$as_echo "$AWK" >&6; }
2680else
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686  test -n "$AWK" && break
2687done
2688
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2691set x ${MAKE-make}
2692ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  cat >conftest.make <<\_ACEOF
2697SHELL = /bin/sh
2698all:
2699	@echo '@@@%%%=$(MAKE)=@@@%%%'
2700_ACEOF
2701# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702case `${MAKE-make} -f conftest.make 2>/dev/null` in
2703  *@@@%%%=?*=@@@%%%*)
2704    eval ac_cv_prog_make_${ac_make}_set=yes;;
2705  *)
2706    eval ac_cv_prog_make_${ac_make}_set=no;;
2707esac
2708rm -f conftest.make
2709fi
2710if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712$as_echo "yes" >&6; }
2713  SET_MAKE=
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717  SET_MAKE="MAKE=${MAKE-make}"
2718fi
2719
2720rm -rf .tst 2>/dev/null
2721mkdir .tst 2>/dev/null
2722if test -d .tst; then
2723  am__leading_dot=.
2724else
2725  am__leading_dot=_
2726fi
2727rmdir .tst 2>/dev/null
2728
2729# Check whether --enable-silent-rules was given.
2730if test "${enable_silent_rules+set}" = set; then :
2731  enableval=$enable_silent_rules;
2732fi
2733
2734case $enable_silent_rules in # (((
2735  yes) AM_DEFAULT_VERBOSITY=0;;
2736   no) AM_DEFAULT_VERBOSITY=1;;
2737    *) AM_DEFAULT_VERBOSITY=1;;
2738esac
2739am_make=${MAKE-make}
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2741$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2742if ${am_cv_make_support_nested_variables+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  if $as_echo 'TRUE=$(BAR$(V))
2746BAR0=false
2747BAR1=true
2748V=1
2749am__doit:
2750	@$(TRUE)
2751.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2752  am_cv_make_support_nested_variables=yes
2753else
2754  am_cv_make_support_nested_variables=no
2755fi
2756fi
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2758$as_echo "$am_cv_make_support_nested_variables" >&6; }
2759if test $am_cv_make_support_nested_variables = yes; then
2760    AM_V='$(V)'
2761  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2762else
2763  AM_V=$AM_DEFAULT_VERBOSITY
2764  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2765fi
2766AM_BACKSLASH='\'
2767
2768if test "`cd $srcdir && pwd`" != "`pwd`"; then
2769  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2770  # is not polluted with repeated "-I."
2771  am__isrc=' -I$(srcdir)'
2772  # test to see if srcdir already configured
2773  if test -f $srcdir/config.status; then
2774    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2775  fi
2776fi
2777
2778# test whether we have cygpath
2779if test -z "$CYGPATH_W"; then
2780  if (cygpath --version) >/dev/null 2>/dev/null; then
2781    CYGPATH_W='cygpath -w'
2782  else
2783    CYGPATH_W=echo
2784  fi
2785fi
2786
2787
2788# Define the identity of the package.
2789 PACKAGE='wdns'
2790 VERSION='0.10.0'
2791
2792
2793cat >>confdefs.h <<_ACEOF
2794#define PACKAGE "$PACKAGE"
2795_ACEOF
2796
2797
2798cat >>confdefs.h <<_ACEOF
2799#define VERSION "$VERSION"
2800_ACEOF
2801
2802# Some tools Automake needs.
2803
2804ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2805
2806
2807AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2808
2809
2810AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2811
2812
2813AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2814
2815
2816MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2817
2818# For better backward compatibility.  To be removed once Automake 1.9.x
2819# dies out for good.  For more background, see:
2820# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2821# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2822mkdir_p='$(MKDIR_P)'
2823
2824# We need awk for the "check" target (and possibly the TAP driver).  The
2825# system "awk" is bad on some platforms.
2826# Always define AMTAR for backward compatibility.  Yes, it's still used
2827# in the wild :-(  We should find a proper way to deprecate it ...
2828AMTAR='$${TAR-tar}'
2829
2830
2831# We'll loop over all known methods to create a tar archive until one works.
2832_am_tools='gnutar  pax cpio none'
2833
2834am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2835
2836
2837
2838
2839
2840
2841# POSIX will say in a future version that running "rm -f" with no argument
2842# is OK; and we want to be able to make that assumption in our Makefile
2843# recipes.  So use an aggressive probe to check that the usage we want is
2844# actually supported "in the wild" to an acceptable degree.
2845# See automake bug#10828.
2846# To make any issue more visible, cause the running configure to be aborted
2847# by default if the 'rm' program in use doesn't match our expectations; the
2848# user can still override this though.
2849if rm -f && rm -fr && rm -rf; then : OK; else
2850  cat >&2 <<'END'
2851Oops!
2852
2853Your 'rm' program seems unable to run without file operands specified
2854on the command line, even when the '-f' option is present.  This is contrary
2855to the behaviour of most rm programs out there, and not conforming with
2856the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2857
2858Please tell bug-automake@gnu.org about your system, including the value
2859of your $PATH and any error possibly output before this message.  This
2860can help us improve future automake versions.
2861
2862END
2863  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2864    echo 'Configuration will proceed anyway, since you have set the' >&2
2865    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2866    echo >&2
2867  else
2868    cat >&2 <<'END'
2869Aborting the configuration process, to ensure you take notice of the issue.
2870
2871You can download and install GNU coreutils to get an 'rm' implementation
2872that behaves properly: <http://www.gnu.org/software/coreutils/>.
2873
2874If you want to complete the configuration process using your problematic
2875'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2876to "yes", and re-run configure.
2877
2878END
2879    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2880  fi
2881fi
2882
2883DEPDIR="${am__leading_dot}deps"
2884
2885ac_config_commands="$ac_config_commands depfiles"
2886
2887
2888am_make=${MAKE-make}
2889cat > confinc << 'END'
2890am__doit:
2891	@echo this is the am__doit target
2892.PHONY: am__doit
2893END
2894# If we don't find an include directive, just comment out the code.
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2896$as_echo_n "checking for style of include used by $am_make... " >&6; }
2897am__include="#"
2898am__quote=
2899_am_result=none
2900# First try GNU make style include.
2901echo "include confinc" > confmf
2902# Ignore all kinds of additional output from 'make'.
2903case `$am_make -s -f confmf 2> /dev/null` in #(
2904*the\ am__doit\ target*)
2905  am__include=include
2906  am__quote=
2907  _am_result=GNU
2908  ;;
2909esac
2910# Now try BSD make style include.
2911if test "$am__include" = "#"; then
2912   echo '.include "confinc"' > confmf
2913   case `$am_make -s -f confmf 2> /dev/null` in #(
2914   *the\ am__doit\ target*)
2915     am__include=.include
2916     am__quote="\""
2917     _am_result=BSD
2918     ;;
2919   esac
2920fi
2921
2922
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2924$as_echo "$_am_result" >&6; }
2925rm -f confinc confmf
2926
2927# Check whether --enable-dependency-tracking was given.
2928if test "${enable_dependency_tracking+set}" = set; then :
2929  enableval=$enable_dependency_tracking;
2930fi
2931
2932if test "x$enable_dependency_tracking" != xno; then
2933  am_depcomp="$ac_aux_dir/depcomp"
2934  AMDEPBACKSLASH='\'
2935  am__nodep='_no'
2936fi
2937 if test "x$enable_dependency_tracking" != xno; then
2938  AMDEP_TRUE=
2939  AMDEP_FALSE='#'
2940else
2941  AMDEP_TRUE='#'
2942  AMDEP_FALSE=
2943fi
2944
2945
2946ac_ext=c
2947ac_cpp='$CPP $CPPFLAGS'
2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951if test -n "$ac_tool_prefix"; then
2952  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2953set dummy ${ac_tool_prefix}gcc; ac_word=$2
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955$as_echo_n "checking for $ac_word... " >&6; }
2956if ${ac_cv_prog_CC+:} false; then :
2957  $as_echo_n "(cached) " >&6
2958else
2959  if test -n "$CC"; then
2960  ac_cv_prog_CC="$CC" # Let the user override the test.
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965  IFS=$as_save_IFS
2966  test -z "$as_dir" && as_dir=.
2967    for ac_exec_ext in '' $ac_executable_extensions; do
2968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974  done
2975IFS=$as_save_IFS
2976
2977fi
2978fi
2979CC=$ac_cv_prog_CC
2980if test -n "$CC"; then
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982$as_echo "$CC" >&6; }
2983else
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986fi
2987
2988
2989fi
2990if test -z "$ac_cv_prog_CC"; then
2991  ac_ct_CC=$CC
2992  # Extract the first word of "gcc", so it can be a program name with args.
2993set dummy gcc; ac_word=$2
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995$as_echo_n "checking for $ac_word... " >&6; }
2996if ${ac_cv_prog_ac_ct_CC+:} false; then :
2997  $as_echo_n "(cached) " >&6
2998else
2999  if test -n "$ac_ct_CC"; then
3000  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3001else
3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005  IFS=$as_save_IFS
3006  test -z "$as_dir" && as_dir=.
3007    for ac_exec_ext in '' $ac_executable_extensions; do
3008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3009    ac_cv_prog_ac_ct_CC="gcc"
3010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011    break 2
3012  fi
3013done
3014  done
3015IFS=$as_save_IFS
3016
3017fi
3018fi
3019ac_ct_CC=$ac_cv_prog_ac_ct_CC
3020if test -n "$ac_ct_CC"; then
3021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3022$as_echo "$ac_ct_CC" >&6; }
3023else
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
3026fi
3027
3028  if test "x$ac_ct_CC" = x; then
3029    CC=""
3030  else
3031    case $cross_compiling:$ac_tool_warned in
3032yes:)
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035ac_tool_warned=yes ;;
3036esac
3037    CC=$ac_ct_CC
3038  fi
3039else
3040  CC="$ac_cv_prog_CC"
3041fi
3042
3043if test -z "$CC"; then
3044          if test -n "$ac_tool_prefix"; then
3045    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3046set dummy ${ac_tool_prefix}cc; ac_word=$2
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
3049if ${ac_cv_prog_CC+:} false; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  if test -n "$CC"; then
3053  ac_cv_prog_CC="$CC" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060    for ac_exec_ext in '' $ac_executable_extensions; do
3061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062    ac_cv_prog_CC="${ac_tool_prefix}cc"
3063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064    break 2
3065  fi
3066done
3067  done
3068IFS=$as_save_IFS
3069
3070fi
3071fi
3072CC=$ac_cv_prog_CC
3073if test -n "$CC"; then
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075$as_echo "$CC" >&6; }
3076else
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079fi
3080
3081
3082  fi
3083fi
3084if test -z "$CC"; then
3085  # Extract the first word of "cc", so it can be a program name with args.
3086set dummy cc; ac_word=$2
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
3089if ${ac_cv_prog_CC+:} false; then :
3090  $as_echo_n "(cached) " >&6
3091else
3092  if test -n "$CC"; then
3093  ac_cv_prog_CC="$CC" # Let the user override the test.
3094else
3095  ac_prog_rejected=no
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099  IFS=$as_save_IFS
3100  test -z "$as_dir" && as_dir=.
3101    for ac_exec_ext in '' $ac_executable_extensions; do
3102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3104       ac_prog_rejected=yes
3105       continue
3106     fi
3107    ac_cv_prog_CC="cc"
3108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109    break 2
3110  fi
3111done
3112  done
3113IFS=$as_save_IFS
3114
3115if test $ac_prog_rejected = yes; then
3116  # We found a bogon in the path, so make sure we never use it.
3117  set dummy $ac_cv_prog_CC
3118  shift
3119  if test $# != 0; then
3120    # We chose a different compiler from the bogus one.
3121    # However, it has the same basename, so the bogon will be chosen
3122    # first if we set CC to just the basename; use the full file name.
3123    shift
3124    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3125  fi
3126fi
3127fi
3128fi
3129CC=$ac_cv_prog_CC
3130if test -n "$CC"; then
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132$as_echo "$CC" >&6; }
3133else
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
3136fi
3137
3138
3139fi
3140if test -z "$CC"; then
3141  if test -n "$ac_tool_prefix"; then
3142  for ac_prog in cl.exe
3143  do
3144    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147$as_echo_n "checking for $ac_word... " >&6; }
3148if ${ac_cv_prog_CC+:} false; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  if test -n "$CC"; then
3152  ac_cv_prog_CC="$CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157  IFS=$as_save_IFS
3158  test -z "$as_dir" && as_dir=.
3159    for ac_exec_ext in '' $ac_executable_extensions; do
3160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163    break 2
3164  fi
3165done
3166  done
3167IFS=$as_save_IFS
3168
3169fi
3170fi
3171CC=$ac_cv_prog_CC
3172if test -n "$CC"; then
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174$as_echo "$CC" >&6; }
3175else
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178fi
3179
3180
3181    test -n "$CC" && break
3182  done
3183fi
3184if test -z "$CC"; then
3185  ac_ct_CC=$CC
3186  for ac_prog in cl.exe
3187do
3188  # Extract the first word of "$ac_prog", so it can be a program name with args.
3189set dummy $ac_prog; ac_word=$2
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
3192if ${ac_cv_prog_ac_ct_CC+:} false; then :
3193  $as_echo_n "(cached) " >&6
3194else
3195  if test -n "$ac_ct_CC"; then
3196  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201  IFS=$as_save_IFS
3202  test -z "$as_dir" && as_dir=.
3203    for ac_exec_ext in '' $ac_executable_extensions; do
3204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205    ac_cv_prog_ac_ct_CC="$ac_prog"
3206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207    break 2
3208  fi
3209done
3210  done
3211IFS=$as_save_IFS
3212
3213fi
3214fi
3215ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216if test -n "$ac_ct_CC"; then
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3218$as_echo "$ac_ct_CC" >&6; }
3219else
3220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221$as_echo "no" >&6; }
3222fi
3223
3224
3225  test -n "$ac_ct_CC" && break
3226done
3227
3228  if test "x$ac_ct_CC" = x; then
3229    CC=""
3230  else
3231    case $cross_compiling:$ac_tool_warned in
3232yes:)
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235ac_tool_warned=yes ;;
3236esac
3237    CC=$ac_ct_CC
3238  fi
3239fi
3240
3241fi
3242
3243
3244test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246as_fn_error $? "no acceptable C compiler found in \$PATH
3247See \`config.log' for more details" "$LINENO" 5; }
3248
3249# Provide some information about the compiler.
3250$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3251set X $ac_compile
3252ac_compiler=$2
3253for ac_option in --version -v -V -qversion; do
3254  { { ac_try="$ac_compiler $ac_option >&5"
3255case "(($ac_try" in
3256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257  *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3262  ac_status=$?
3263  if test -s conftest.err; then
3264    sed '10a\
3265... rest of stderr output deleted ...
3266         10q' conftest.err >conftest.er1
3267    cat conftest.er1 >&5
3268  fi
3269  rm -f conftest.er1 conftest.err
3270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271  test $ac_status = 0; }
3272done
3273
3274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275/* end confdefs.h.  */
3276
3277int
3278main ()
3279{
3280
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285ac_clean_files_save=$ac_clean_files
3286ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3287# Try to create an executable without -o first, disregard a.out.
3288# It will help us diagnose broken compilers, and finding out an intuition
3289# of exeext.
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3291$as_echo_n "checking whether the C compiler works... " >&6; }
3292ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3293
3294# The possible output files:
3295ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3296
3297ac_rmfiles=
3298for ac_file in $ac_files
3299do
3300  case $ac_file in
3301    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3302    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3303  esac
3304done
3305rm -f $ac_rmfiles
3306
3307if { { ac_try="$ac_link_default"
3308case "(($ac_try" in
3309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310  *) ac_try_echo=$ac_try;;
3311esac
3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313$as_echo "$ac_try_echo"; } >&5
3314  (eval "$ac_link_default") 2>&5
3315  ac_status=$?
3316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317  test $ac_status = 0; }; then :
3318  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3319# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3320# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3321# so that the user can short-circuit this test for compilers unknown to
3322# Autoconf.
3323for ac_file in $ac_files ''
3324do
3325  test -f "$ac_file" || continue
3326  case $ac_file in
3327    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3328	;;
3329    [ab].out )
3330	# We found the default executable, but exeext='' is most
3331	# certainly right.
3332	break;;
3333    *.* )
3334	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3335	then :; else
3336	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337	fi
3338	# We set ac_cv_exeext here because the later test for it is not
3339	# safe: cross compilers may not add the suffix if given an `-o'
3340	# argument, so we may need to know it at that point already.
3341	# Even if this section looks crufty: it has the advantage of
3342	# actually working.
3343	break;;
3344    * )
3345	break;;
3346  esac
3347done
3348test "$ac_cv_exeext" = no && ac_cv_exeext=
3349
3350else
3351  ac_file=''
3352fi
3353if test -z "$ac_file"; then :
3354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
3356$as_echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361as_fn_error 77 "C compiler cannot create executables
3362See \`config.log' for more details" "$LINENO" 5; }
3363else
3364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365$as_echo "yes" >&6; }
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3368$as_echo_n "checking for C compiler default output file name... " >&6; }
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3370$as_echo "$ac_file" >&6; }
3371ac_exeext=$ac_cv_exeext
3372
3373rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3374ac_clean_files=$ac_clean_files_save
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3376$as_echo_n "checking for suffix of executables... " >&6; }
3377if { { ac_try="$ac_link"
3378case "(($ac_try" in
3379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380  *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383$as_echo "$ac_try_echo"; } >&5
3384  (eval "$ac_link") 2>&5
3385  ac_status=$?
3386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387  test $ac_status = 0; }; then :
3388  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3389# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3390# work properly (i.e., refer to `conftest.exe'), while it won't with
3391# `rm'.
3392for ac_file in conftest.exe conftest conftest.*; do
3393  test -f "$ac_file" || continue
3394  case $ac_file in
3395    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3396    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3397	  break;;
3398    * ) break;;
3399  esac
3400done
3401else
3402  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3405See \`config.log' for more details" "$LINENO" 5; }
3406fi
3407rm -f conftest conftest$ac_cv_exeext
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3409$as_echo "$ac_cv_exeext" >&6; }
3410
3411rm -f conftest.$ac_ext
3412EXEEXT=$ac_cv_exeext
3413ac_exeext=$EXEEXT
3414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415/* end confdefs.h.  */
3416#include <stdio.h>
3417int
3418main ()
3419{
3420FILE *f = fopen ("conftest.out", "w");
3421 return ferror (f) || fclose (f) != 0;
3422
3423  ;
3424  return 0;
3425}
3426_ACEOF
3427ac_clean_files="$ac_clean_files conftest.out"
3428# Check that the compiler produces executables we can run.  If not, either
3429# the compiler is broken, or we cross compile.
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3431$as_echo_n "checking whether we are cross compiling... " >&6; }
3432if test "$cross_compiling" != yes; then
3433  { { ac_try="$ac_link"
3434case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440  (eval "$ac_link") 2>&5
3441  ac_status=$?
3442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443  test $ac_status = 0; }
3444  if { ac_try='./conftest$ac_cv_exeext'
3445  { { case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450$as_echo "$ac_try_echo"; } >&5
3451  (eval "$ac_try") 2>&5
3452  ac_status=$?
3453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454  test $ac_status = 0; }; }; then
3455    cross_compiling=no
3456  else
3457    if test "$cross_compiling" = maybe; then
3458	cross_compiling=yes
3459    else
3460	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462as_fn_error $? "cannot run C compiled programs.
3463If you meant to cross compile, use \`--host'.
3464See \`config.log' for more details" "$LINENO" 5; }
3465    fi
3466  fi
3467fi
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3469$as_echo "$cross_compiling" >&6; }
3470
3471rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3472ac_clean_files=$ac_clean_files_save
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3474$as_echo_n "checking for suffix of object files... " >&6; }
3475if ${ac_cv_objext+:} false; then :
3476  $as_echo_n "(cached) " >&6
3477else
3478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h.  */
3480
3481int
3482main ()
3483{
3484
3485  ;
3486  return 0;
3487}
3488_ACEOF
3489rm -f conftest.o conftest.obj
3490if { { ac_try="$ac_compile"
3491case "(($ac_try" in
3492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493  *) ac_try_echo=$ac_try;;
3494esac
3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496$as_echo "$ac_try_echo"; } >&5
3497  (eval "$ac_compile") 2>&5
3498  ac_status=$?
3499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500  test $ac_status = 0; }; then :
3501  for ac_file in conftest.o conftest.obj conftest.*; do
3502  test -f "$ac_file" || continue;
3503  case $ac_file in
3504    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3505    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3506       break;;
3507  esac
3508done
3509else
3510  $as_echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515as_fn_error $? "cannot compute suffix of object files: cannot compile
3516See \`config.log' for more details" "$LINENO" 5; }
3517fi
3518rm -f conftest.$ac_cv_objext conftest.$ac_ext
3519fi
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3521$as_echo "$ac_cv_objext" >&6; }
3522OBJEXT=$ac_cv_objext
3523ac_objext=$OBJEXT
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3525$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3526if ${ac_cv_c_compiler_gnu+:} false; then :
3527  $as_echo_n "(cached) " >&6
3528else
3529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530/* end confdefs.h.  */
3531
3532int
3533main ()
3534{
3535#ifndef __GNUC__
3536       choke me
3537#endif
3538
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543if ac_fn_c_try_compile "$LINENO"; then :
3544  ac_compiler_gnu=yes
3545else
3546  ac_compiler_gnu=no
3547fi
3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549ac_cv_c_compiler_gnu=$ac_compiler_gnu
3550
3551fi
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3553$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3554if test $ac_compiler_gnu = yes; then
3555  GCC=yes
3556else
3557  GCC=
3558fi
3559ac_test_CFLAGS=${CFLAGS+set}
3560ac_save_CFLAGS=$CFLAGS
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3562$as_echo_n "checking whether $CC accepts -g... " >&6; }
3563if ${ac_cv_prog_cc_g+:} false; then :
3564  $as_echo_n "(cached) " >&6
3565else
3566  ac_save_c_werror_flag=$ac_c_werror_flag
3567   ac_c_werror_flag=yes
3568   ac_cv_prog_cc_g=no
3569   CFLAGS="-g"
3570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h.  */
3572
3573int
3574main ()
3575{
3576
3577  ;
3578  return 0;
3579}
3580_ACEOF
3581if ac_fn_c_try_compile "$LINENO"; then :
3582  ac_cv_prog_cc_g=yes
3583else
3584  CFLAGS=""
3585      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h.  */
3587
3588int
3589main ()
3590{
3591
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596if ac_fn_c_try_compile "$LINENO"; then :
3597
3598else
3599  ac_c_werror_flag=$ac_save_c_werror_flag
3600	 CFLAGS="-g"
3601	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h.  */
3603
3604int
3605main ()
3606{
3607
3608  ;
3609  return 0;
3610}
3611_ACEOF
3612if ac_fn_c_try_compile "$LINENO"; then :
3613  ac_cv_prog_cc_g=yes
3614fi
3615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616fi
3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618fi
3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620   ac_c_werror_flag=$ac_save_c_werror_flag
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3623$as_echo "$ac_cv_prog_cc_g" >&6; }
3624if test "$ac_test_CFLAGS" = set; then
3625  CFLAGS=$ac_save_CFLAGS
3626elif test $ac_cv_prog_cc_g = yes; then
3627  if test "$GCC" = yes; then
3628    CFLAGS="-g -O2"
3629  else
3630    CFLAGS="-g"
3631  fi
3632else
3633  if test "$GCC" = yes; then
3634    CFLAGS="-O2"
3635  else
3636    CFLAGS=
3637  fi
3638fi
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3640$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3641if ${ac_cv_prog_cc_c89+:} false; then :
3642  $as_echo_n "(cached) " >&6
3643else
3644  ac_cv_prog_cc_c89=no
3645ac_save_CC=$CC
3646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h.  */
3648#include <stdarg.h>
3649#include <stdio.h>
3650struct stat;
3651/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3652struct buf { int x; };
3653FILE * (*rcsopen) (struct buf *, struct stat *, int);
3654static char *e (p, i)
3655     char **p;
3656     int i;
3657{
3658  return p[i];
3659}
3660static char *f (char * (*g) (char **, int), char **p, ...)
3661{
3662  char *s;
3663  va_list v;
3664  va_start (v,p);
3665  s = g (p, va_arg (v,int));
3666  va_end (v);
3667  return s;
3668}
3669
3670/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3671   function prototypes and stuff, but not '\xHH' hex character constants.
3672   These don't provoke an error unfortunately, instead are silently treated
3673   as 'x'.  The following induces an error, until -std is added to get
3674   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3675   array size at least.  It's necessary to write '\x00'==0 to get something
3676   that's true only with -std.  */
3677int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678
3679/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3680   inside strings and character constants.  */
3681#define FOO(x) 'x'
3682int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683
3684int test (int i, double x);
3685struct s1 {int (*f) (int a);};
3686struct s2 {int (*f) (double a);};
3687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688int argc;
3689char **argv;
3690int
3691main ()
3692{
3693return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3699	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700do
3701  CC="$ac_save_CC $ac_arg"
3702  if ac_fn_c_try_compile "$LINENO"; then :
3703  ac_cv_prog_cc_c89=$ac_arg
3704fi
3705rm -f core conftest.err conftest.$ac_objext
3706  test "x$ac_cv_prog_cc_c89" != "xno" && break
3707done
3708rm -f conftest.$ac_ext
3709CC=$ac_save_CC
3710
3711fi
3712# AC_CACHE_VAL
3713case "x$ac_cv_prog_cc_c89" in
3714  x)
3715    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3716$as_echo "none needed" >&6; } ;;
3717  xno)
3718    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3719$as_echo "unsupported" >&6; } ;;
3720  *)
3721    CC="$CC $ac_cv_prog_cc_c89"
3722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3723$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3724esac
3725if test "x$ac_cv_prog_cc_c89" != xno; then :
3726
3727fi
3728
3729ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
3735ac_ext=c
3736ac_cpp='$CPP $CPPFLAGS'
3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3741$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3742if ${am_cv_prog_cc_c_o+:} false; then :
3743  $as_echo_n "(cached) " >&6
3744else
3745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h.  */
3747
3748int
3749main ()
3750{
3751
3752  ;
3753  return 0;
3754}
3755_ACEOF
3756  # Make sure it works both with $CC and with simple cc.
3757  # Following AC_PROG_CC_C_O, we do the test twice because some
3758  # compilers refuse to overwrite an existing .o file with -o,
3759  # though they will create one.
3760  am_cv_prog_cc_c_o=yes
3761  for am_i in 1 2; do
3762    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3763   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); } \
3767         && test -f conftest2.$ac_objext; then
3768      : OK
3769    else
3770      am_cv_prog_cc_c_o=no
3771      break
3772    fi
3773  done
3774  rm -f core conftest*
3775  unset am_i
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3778$as_echo "$am_cv_prog_cc_c_o" >&6; }
3779if test "$am_cv_prog_cc_c_o" != yes; then
3780   # Losing compiler, so override with the script.
3781   # FIXME: It is wrong to rewrite CC.
3782   # But if we don't then we get into trouble of one sort or another.
3783   # A longer-term fix would be to have automake use am__CC in this case,
3784   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3785   CC="$am_aux_dir/compile $CC"
3786fi
3787ac_ext=c
3788ac_cpp='$CPP $CPPFLAGS'
3789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793
3794depcc="$CC"   am_compiler_list=
3795
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3797$as_echo_n "checking dependency style of $depcc... " >&6; }
3798if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3799  $as_echo_n "(cached) " >&6
3800else
3801  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3802  # We make a subdir and do the tests there.  Otherwise we can end up
3803  # making bogus files that we don't know about and never remove.  For
3804  # instance it was reported that on HP-UX the gcc test will end up
3805  # making a dummy file named 'D' -- because '-MD' means "put the output
3806  # in D".
3807  rm -rf conftest.dir
3808  mkdir conftest.dir
3809  # Copy depcomp to subdir because otherwise we won't find it if we're
3810  # using a relative directory.
3811  cp "$am_depcomp" conftest.dir
3812  cd conftest.dir
3813  # We will build objects and dependencies in a subdirectory because
3814  # it helps to detect inapplicable dependency modes.  For instance
3815  # both Tru64's cc and ICC support -MD to output dependencies as a
3816  # side effect of compilation, but ICC will put the dependencies in
3817  # the current directory while Tru64 will put them in the object
3818  # directory.
3819  mkdir sub
3820
3821  am_cv_CC_dependencies_compiler_type=none
3822  if test "$am_compiler_list" = ""; then
3823     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3824  fi
3825  am__universal=false
3826  case " $depcc " in #(
3827     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3828     esac
3829
3830  for depmode in $am_compiler_list; do
3831    # Setup a source with many dependencies, because some compilers
3832    # like to wrap large dependency lists on column 80 (with \), and
3833    # we should not choose a depcomp mode which is confused by this.
3834    #
3835    # We need to recreate these files for each test, as the compiler may
3836    # overwrite some of them when testing with obscure command lines.
3837    # This happens at least with the AIX C compiler.
3838    : > sub/conftest.c
3839    for i in 1 2 3 4 5 6; do
3840      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3841      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3842      # Solaris 10 /bin/sh.
3843      echo '/* dummy */' > sub/conftst$i.h
3844    done
3845    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3846
3847    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3848    # mode.  It turns out that the SunPro C++ compiler does not properly
3849    # handle '-M -o', and we need to detect this.  Also, some Intel
3850    # versions had trouble with output in subdirs.
3851    am__obj=sub/conftest.${OBJEXT-o}
3852    am__minus_obj="-o $am__obj"
3853    case $depmode in
3854    gcc)
3855      # This depmode causes a compiler race in universal mode.
3856      test "$am__universal" = false || continue
3857      ;;
3858    nosideeffect)
3859      # After this tag, mechanisms are not by side-effect, so they'll
3860      # only be used when explicitly requested.
3861      if test "x$enable_dependency_tracking" = xyes; then
3862	continue
3863      else
3864	break
3865      fi
3866      ;;
3867    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3868      # This compiler won't grok '-c -o', but also, the minuso test has
3869      # not run yet.  These depmodes are late enough in the game, and
3870      # so weak that their functioning should not be impacted.
3871      am__obj=conftest.${OBJEXT-o}
3872      am__minus_obj=
3873      ;;
3874    none) break ;;
3875    esac
3876    if depmode=$depmode \
3877       source=sub/conftest.c object=$am__obj \
3878       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3879       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3880         >/dev/null 2>conftest.err &&
3881       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3882       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3883       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3884       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3885      # icc doesn't choke on unknown options, it will just issue warnings
3886      # or remarks (even with -Werror).  So we grep stderr for any message
3887      # that says an option was ignored or not supported.
3888      # When given -MP, icc 7.0 and 7.1 complain thusly:
3889      #   icc: Command line warning: ignoring option '-M'; no argument required
3890      # The diagnosis changed in icc 8.0:
3891      #   icc: Command line remark: option '-MP' not supported
3892      if (grep 'ignoring option' conftest.err ||
3893          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3894        am_cv_CC_dependencies_compiler_type=$depmode
3895        break
3896      fi
3897    fi
3898  done
3899
3900  cd ..
3901  rm -rf conftest.dir
3902else
3903  am_cv_CC_dependencies_compiler_type=none
3904fi
3905
3906fi
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3908$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3909CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3910
3911 if
3912  test "x$enable_dependency_tracking" != xno \
3913  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3914  am__fastdepCC_TRUE=
3915  am__fastdepCC_FALSE='#'
3916else
3917  am__fastdepCC_TRUE='#'
3918  am__fastdepCC_FALSE=
3919fi
3920
3921
3922   case $ac_cv_prog_cc_stdc in #(
3923  no) :
3924    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3925  *) :
3926    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3927$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3928if ${ac_cv_prog_cc_c99+:} false; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  ac_cv_prog_cc_c99=no
3932ac_save_CC=$CC
3933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h.  */
3935#include <stdarg.h>
3936#include <stdbool.h>
3937#include <stdlib.h>
3938#include <wchar.h>
3939#include <stdio.h>
3940
3941// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3942#define debug(...) fprintf (stderr, __VA_ARGS__)
3943#define showlist(...) puts (#__VA_ARGS__)
3944#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3945static void
3946test_varargs_macros (void)
3947{
3948  int x = 1234;
3949  int y = 5678;
3950  debug ("Flag");
3951  debug ("X = %d\n", x);
3952  showlist (The first, second, and third items.);
3953  report (x>y, "x is %d but y is %d", x, y);
3954}
3955
3956// Check long long types.
3957#define BIG64 18446744073709551615ull
3958#define BIG32 4294967295ul
3959#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3960#if !BIG_OK
3961  your preprocessor is broken;
3962#endif
3963#if BIG_OK
3964#else
3965  your preprocessor is broken;
3966#endif
3967static long long int bignum = -9223372036854775807LL;
3968static unsigned long long int ubignum = BIG64;
3969
3970struct incomplete_array
3971{
3972  int datasize;
3973  double data[];
3974};
3975
3976struct named_init {
3977  int number;
3978  const wchar_t *name;
3979  double average;
3980};
3981
3982typedef const char *ccp;
3983
3984static inline int
3985test_restrict (ccp restrict text)
3986{
3987  // See if C++-style comments work.
3988  // Iterate through items via the restricted pointer.
3989  // Also check for declarations in for loops.
3990  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3991    continue;
3992  return 0;
3993}
3994
3995// Check varargs and va_copy.
3996static void
3997test_varargs (const char *format, ...)
3998{
3999  va_list args;
4000  va_start (args, format);
4001  va_list args_copy;
4002  va_copy (args_copy, args);
4003
4004  const char *str;
4005  int number;
4006  float fnumber;
4007
4008  while (*format)
4009    {
4010      switch (*format++)
4011	{
4012	case 's': // string
4013	  str = va_arg (args_copy, const char *);
4014	  break;
4015	case 'd': // int
4016	  number = va_arg (args_copy, int);
4017	  break;
4018	case 'f': // float
4019	  fnumber = va_arg (args_copy, double);
4020	  break;
4021	default:
4022	  break;
4023	}
4024    }
4025  va_end (args_copy);
4026  va_end (args);
4027}
4028
4029int
4030main ()
4031{
4032
4033  // Check bool.
4034  _Bool success = false;
4035
4036  // Check restrict.
4037  if (test_restrict ("String literal") == 0)
4038    success = true;
4039  char *restrict newvar = "Another string";
4040
4041  // Check varargs.
4042  test_varargs ("s, d' f .", "string", 65, 34.234);
4043  test_varargs_macros ();
4044
4045  // Check flexible array members.
4046  struct incomplete_array *ia =
4047    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4048  ia->datasize = 10;
4049  for (int i = 0; i < ia->datasize; ++i)
4050    ia->data[i] = i * 1.234;
4051
4052  // Check named initializers.
4053  struct named_init ni = {
4054    .number = 34,
4055    .name = L"Test wide string",
4056    .average = 543.34343,
4057  };
4058
4059  ni.number = 58;
4060
4061  int dynamic_array[ni.number];
4062  dynamic_array[ni.number - 1] = 543;
4063
4064  // work around unused variable warnings
4065  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4066	  || dynamic_array[ni.number - 1] != 543);
4067
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4073do
4074  CC="$ac_save_CC $ac_arg"
4075  if ac_fn_c_try_compile "$LINENO"; then :
4076  ac_cv_prog_cc_c99=$ac_arg
4077fi
4078rm -f core conftest.err conftest.$ac_objext
4079  test "x$ac_cv_prog_cc_c99" != "xno" && break
4080done
4081rm -f conftest.$ac_ext
4082CC=$ac_save_CC
4083
4084fi
4085# AC_CACHE_VAL
4086case "x$ac_cv_prog_cc_c99" in
4087  x)
4088    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4089$as_echo "none needed" >&6; } ;;
4090  xno)
4091    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4092$as_echo "unsupported" >&6; } ;;
4093  *)
4094    CC="$CC $ac_cv_prog_cc_c99"
4095    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4096$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4097esac
4098if test "x$ac_cv_prog_cc_c99" != xno; then :
4099  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4100else
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4102$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4103if ${ac_cv_prog_cc_c89+:} false; then :
4104  $as_echo_n "(cached) " >&6
4105else
4106  ac_cv_prog_cc_c89=no
4107ac_save_CC=$CC
4108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110#include <stdarg.h>
4111#include <stdio.h>
4112struct stat;
4113/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4114struct buf { int x; };
4115FILE * (*rcsopen) (struct buf *, struct stat *, int);
4116static char *e (p, i)
4117     char **p;
4118     int i;
4119{
4120  return p[i];
4121}
4122static char *f (char * (*g) (char **, int), char **p, ...)
4123{
4124  char *s;
4125  va_list v;
4126  va_start (v,p);
4127  s = g (p, va_arg (v,int));
4128  va_end (v);
4129  return s;
4130}
4131
4132/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4133   function prototypes and stuff, but not '\xHH' hex character constants.
4134   These don't provoke an error unfortunately, instead are silently treated
4135   as 'x'.  The following induces an error, until -std is added to get
4136   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4137   array size at least.  It's necessary to write '\x00'==0 to get something
4138   that's true only with -std.  */
4139int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4140
4141/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4142   inside strings and character constants.  */
4143#define FOO(x) 'x'
4144int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4145
4146int test (int i, double x);
4147struct s1 {int (*f) (int a);};
4148struct s2 {int (*f) (double a);};
4149int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4150int argc;
4151char **argv;
4152int
4153main ()
4154{
4155return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4156  ;
4157  return 0;
4158}
4159_ACEOF
4160for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4161	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4162do
4163  CC="$ac_save_CC $ac_arg"
4164  if ac_fn_c_try_compile "$LINENO"; then :
4165  ac_cv_prog_cc_c89=$ac_arg
4166fi
4167rm -f core conftest.err conftest.$ac_objext
4168  test "x$ac_cv_prog_cc_c89" != "xno" && break
4169done
4170rm -f conftest.$ac_ext
4171CC=$ac_save_CC
4172
4173fi
4174# AC_CACHE_VAL
4175case "x$ac_cv_prog_cc_c89" in
4176  x)
4177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4178$as_echo "none needed" >&6; } ;;
4179  xno)
4180    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4181$as_echo "unsupported" >&6; } ;;
4182  *)
4183    CC="$CC $ac_cv_prog_cc_c89"
4184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4185$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4186esac
4187if test "x$ac_cv_prog_cc_c89" != xno; then :
4188  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4189else
4190  ac_cv_prog_cc_stdc=no
4191fi
4192
4193fi
4194 ;;
4195esac
4196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4197$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4198  if ${ac_cv_prog_cc_stdc+:} false; then :
4199  $as_echo_n "(cached) " >&6
4200fi
4201
4202  case $ac_cv_prog_cc_stdc in #(
4203  no) :
4204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4205$as_echo "unsupported" >&6; } ;; #(
4206  '') :
4207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4208$as_echo "none needed" >&6; } ;; #(
4209  *) :
4210    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4211$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4212esac
4213
4214
4215ac_ext=c
4216ac_cpp='$CPP $CPPFLAGS'
4217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219ac_compiler_gnu=$ac_cv_c_compiler_gnu
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4221$as_echo_n "checking how to run the C preprocessor... " >&6; }
4222# On Suns, sometimes $CPP names a directory.
4223if test -n "$CPP" && test -d "$CPP"; then
4224  CPP=
4225fi
4226if test -z "$CPP"; then
4227  if ${ac_cv_prog_CPP+:} false; then :
4228  $as_echo_n "(cached) " >&6
4229else
4230      # Double quotes because CPP needs to be expanded
4231    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4232    do
4233      ac_preproc_ok=false
4234for ac_c_preproc_warn_flag in '' yes
4235do
4236  # Use a header file that comes with gcc, so configuring glibc
4237  # with a fresh cross-compiler works.
4238  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4239  # <limits.h> exists even on freestanding compilers.
4240  # On the NeXT, cc -E runs the code through the compiler's parser,
4241  # not just through cpp. "Syntax error" is here to catch this case.
4242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h.  */
4244#ifdef __STDC__
4245# include <limits.h>
4246#else
4247# include <assert.h>
4248#endif
4249		     Syntax error
4250_ACEOF
4251if ac_fn_c_try_cpp "$LINENO"; then :
4252
4253else
4254  # Broken: fails on valid input.
4255continue
4256fi
4257rm -f conftest.err conftest.i conftest.$ac_ext
4258
4259  # OK, works on sane cases.  Now check whether nonexistent headers
4260  # can be detected and how.
4261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263#include <ac_nonexistent.h>
4264_ACEOF
4265if ac_fn_c_try_cpp "$LINENO"; then :
4266  # Broken: success on invalid input.
4267continue
4268else
4269  # Passes both tests.
4270ac_preproc_ok=:
4271break
4272fi
4273rm -f conftest.err conftest.i conftest.$ac_ext
4274
4275done
4276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4277rm -f conftest.i conftest.err conftest.$ac_ext
4278if $ac_preproc_ok; then :
4279  break
4280fi
4281
4282    done
4283    ac_cv_prog_CPP=$CPP
4284
4285fi
4286  CPP=$ac_cv_prog_CPP
4287else
4288  ac_cv_prog_CPP=$CPP
4289fi
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4291$as_echo "$CPP" >&6; }
4292ac_preproc_ok=false
4293for ac_c_preproc_warn_flag in '' yes
4294do
4295  # Use a header file that comes with gcc, so configuring glibc
4296  # with a fresh cross-compiler works.
4297  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4298  # <limits.h> exists even on freestanding compilers.
4299  # On the NeXT, cc -E runs the code through the compiler's parser,
4300  # not just through cpp. "Syntax error" is here to catch this case.
4301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303#ifdef __STDC__
4304# include <limits.h>
4305#else
4306# include <assert.h>
4307#endif
4308		     Syntax error
4309_ACEOF
4310if ac_fn_c_try_cpp "$LINENO"; then :
4311
4312else
4313  # Broken: fails on valid input.
4314continue
4315fi
4316rm -f conftest.err conftest.i conftest.$ac_ext
4317
4318  # OK, works on sane cases.  Now check whether nonexistent headers
4319  # can be detected and how.
4320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h.  */
4322#include <ac_nonexistent.h>
4323_ACEOF
4324if ac_fn_c_try_cpp "$LINENO"; then :
4325  # Broken: success on invalid input.
4326continue
4327else
4328  # Passes both tests.
4329ac_preproc_ok=:
4330break
4331fi
4332rm -f conftest.err conftest.i conftest.$ac_ext
4333
4334done
4335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4336rm -f conftest.i conftest.err conftest.$ac_ext
4337if $ac_preproc_ok; then :
4338
4339else
4340  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4342as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4343See \`config.log' for more details" "$LINENO" 5; }
4344fi
4345
4346ac_ext=c
4347ac_cpp='$CPP $CPPFLAGS'
4348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4354$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4355if ${ac_cv_path_GREP+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  if test -z "$GREP"; then
4359  ac_path_GREP_found=false
4360  # Loop through the user's path and test for each of PROGNAME-LIST
4361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4363do
4364  IFS=$as_save_IFS
4365  test -z "$as_dir" && as_dir=.
4366    for ac_prog in grep ggrep; do
4367    for ac_exec_ext in '' $ac_executable_extensions; do
4368      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4369      as_fn_executable_p "$ac_path_GREP" || continue
4370# Check for GNU ac_path_GREP and select it if it is found.
4371  # Check for GNU $ac_path_GREP
4372case `"$ac_path_GREP" --version 2>&1` in
4373*GNU*)
4374  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4375*)
4376  ac_count=0
4377  $as_echo_n 0123456789 >"conftest.in"
4378  while :
4379  do
4380    cat "conftest.in" "conftest.in" >"conftest.tmp"
4381    mv "conftest.tmp" "conftest.in"
4382    cp "conftest.in" "conftest.nl"
4383    $as_echo 'GREP' >> "conftest.nl"
4384    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4385    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4386    as_fn_arith $ac_count + 1 && ac_count=$as_val
4387    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4388      # Best one so far, save it but keep looking for a better one
4389      ac_cv_path_GREP="$ac_path_GREP"
4390      ac_path_GREP_max=$ac_count
4391    fi
4392    # 10*(2^10) chars as input seems more than enough
4393    test $ac_count -gt 10 && break
4394  done
4395  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4396esac
4397
4398      $ac_path_GREP_found && break 3
4399    done
4400  done
4401  done
4402IFS=$as_save_IFS
4403  if test -z "$ac_cv_path_GREP"; then
4404    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4405  fi
4406else
4407  ac_cv_path_GREP=$GREP
4408fi
4409
4410fi
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4412$as_echo "$ac_cv_path_GREP" >&6; }
4413 GREP="$ac_cv_path_GREP"
4414
4415
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4417$as_echo_n "checking for egrep... " >&6; }
4418if ${ac_cv_path_EGREP+:} false; then :
4419  $as_echo_n "(cached) " >&6
4420else
4421  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4422   then ac_cv_path_EGREP="$GREP -E"
4423   else
4424     if test -z "$EGREP"; then
4425  ac_path_EGREP_found=false
4426  # Loop through the user's path and test for each of PROGNAME-LIST
4427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4429do
4430  IFS=$as_save_IFS
4431  test -z "$as_dir" && as_dir=.
4432    for ac_prog in egrep; do
4433    for ac_exec_ext in '' $ac_executable_extensions; do
4434      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4435      as_fn_executable_p "$ac_path_EGREP" || continue
4436# Check for GNU ac_path_EGREP and select it if it is found.
4437  # Check for GNU $ac_path_EGREP
4438case `"$ac_path_EGREP" --version 2>&1` in
4439*GNU*)
4440  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4441*)
4442  ac_count=0
4443  $as_echo_n 0123456789 >"conftest.in"
4444  while :
4445  do
4446    cat "conftest.in" "conftest.in" >"conftest.tmp"
4447    mv "conftest.tmp" "conftest.in"
4448    cp "conftest.in" "conftest.nl"
4449    $as_echo 'EGREP' >> "conftest.nl"
4450    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4451    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4452    as_fn_arith $ac_count + 1 && ac_count=$as_val
4453    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4454      # Best one so far, save it but keep looking for a better one
4455      ac_cv_path_EGREP="$ac_path_EGREP"
4456      ac_path_EGREP_max=$ac_count
4457    fi
4458    # 10*(2^10) chars as input seems more than enough
4459    test $ac_count -gt 10 && break
4460  done
4461  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4462esac
4463
4464      $ac_path_EGREP_found && break 3
4465    done
4466  done
4467  done
4468IFS=$as_save_IFS
4469  if test -z "$ac_cv_path_EGREP"; then
4470    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4471  fi
4472else
4473  ac_cv_path_EGREP=$EGREP
4474fi
4475
4476   fi
4477fi
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4479$as_echo "$ac_cv_path_EGREP" >&6; }
4480 EGREP="$ac_cv_path_EGREP"
4481
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4484$as_echo_n "checking for ANSI C header files... " >&6; }
4485if ${ac_cv_header_stdc+:} false; then :
4486  $as_echo_n "(cached) " >&6
4487else
4488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489/* end confdefs.h.  */
4490#include <stdlib.h>
4491#include <stdarg.h>
4492#include <string.h>
4493#include <float.h>
4494
4495int
4496main ()
4497{
4498
4499  ;
4500  return 0;
4501}
4502_ACEOF
4503if ac_fn_c_try_compile "$LINENO"; then :
4504  ac_cv_header_stdc=yes
4505else
4506  ac_cv_header_stdc=no
4507fi
4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509
4510if test $ac_cv_header_stdc = yes; then
4511  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513/* end confdefs.h.  */
4514#include <string.h>
4515
4516_ACEOF
4517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4518  $EGREP "memchr" >/dev/null 2>&1; then :
4519
4520else
4521  ac_cv_header_stdc=no
4522fi
4523rm -f conftest*
4524
4525fi
4526
4527if test $ac_cv_header_stdc = yes; then
4528  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h.  */
4531#include <stdlib.h>
4532
4533_ACEOF
4534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4535  $EGREP "free" >/dev/null 2>&1; then :
4536
4537else
4538  ac_cv_header_stdc=no
4539fi
4540rm -f conftest*
4541
4542fi
4543
4544if test $ac_cv_header_stdc = yes; then
4545  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4546  if test "$cross_compiling" = yes; then :
4547  :
4548else
4549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551#include <ctype.h>
4552#include <stdlib.h>
4553#if ((' ' & 0x0FF) == 0x020)
4554# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4555# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4556#else
4557# define ISLOWER(c) \
4558		   (('a' <= (c) && (c) <= 'i') \
4559		     || ('j' <= (c) && (c) <= 'r') \
4560		     || ('s' <= (c) && (c) <= 'z'))
4561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4562#endif
4563
4564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4565int
4566main ()
4567{
4568  int i;
4569  for (i = 0; i < 256; i++)
4570    if (XOR (islower (i), ISLOWER (i))
4571	|| toupper (i) != TOUPPER (i))
4572      return 2;
4573  return 0;
4574}
4575_ACEOF
4576if ac_fn_c_try_run "$LINENO"; then :
4577
4578else
4579  ac_cv_header_stdc=no
4580fi
4581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4582  conftest.$ac_objext conftest.beam conftest.$ac_ext
4583fi
4584
4585fi
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4588$as_echo "$ac_cv_header_stdc" >&6; }
4589if test $ac_cv_header_stdc = yes; then
4590
4591$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4592
4593fi
4594
4595# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4596for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4597		  inttypes.h stdint.h unistd.h
4598do :
4599  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4600ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4601"
4602if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4603  cat >>confdefs.h <<_ACEOF
4604#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605_ACEOF
4606
4607fi
4608
4609done
4610
4611
4612
4613  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4614if test "x$ac_cv_header_minix_config_h" = xyes; then :
4615  MINIX=yes
4616else
4617  MINIX=
4618fi
4619
4620
4621  if test "$MINIX" = yes; then
4622
4623$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4624
4625
4626$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4627
4628
4629$as_echo "#define _MINIX 1" >>confdefs.h
4630
4631  fi
4632
4633
4634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4635$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4636if ${ac_cv_safe_to_define___extensions__+:} false; then :
4637  $as_echo_n "(cached) " >&6
4638else
4639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h.  */
4641
4642#         define __EXTENSIONS__ 1
4643          $ac_includes_default
4644int
4645main ()
4646{
4647
4648  ;
4649  return 0;
4650}
4651_ACEOF
4652if ac_fn_c_try_compile "$LINENO"; then :
4653  ac_cv_safe_to_define___extensions__=yes
4654else
4655  ac_cv_safe_to_define___extensions__=no
4656fi
4657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4660$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4661  test $ac_cv_safe_to_define___extensions__ = yes &&
4662    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4663
4664  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4665
4666  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4667
4668  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4669
4670  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4671
4672
4673# Check whether --enable-largefile was given.
4674if test "${enable_largefile+set}" = set; then :
4675  enableval=$enable_largefile;
4676fi
4677
4678if test "$enable_largefile" != no; then
4679
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4681$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4682if ${ac_cv_sys_largefile_CC+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685  ac_cv_sys_largefile_CC=no
4686     if test "$GCC" != yes; then
4687       ac_save_CC=$CC
4688       while :; do
4689	 # IRIX 6.2 and later do not support large files by default,
4690	 # so use the C compiler's -n32 option if that helps.
4691	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h.  */
4693#include <sys/types.h>
4694 /* Check that off_t can represent 2**63 - 1 correctly.
4695    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4696    since some C++ compilers masquerading as C compilers
4697    incorrectly reject 9223372036854775807.  */
4698#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4699  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4700		       && LARGE_OFF_T % 2147483647 == 1)
4701		      ? 1 : -1];
4702int
4703main ()
4704{
4705
4706  ;
4707  return 0;
4708}
4709_ACEOF
4710	 if ac_fn_c_try_compile "$LINENO"; then :
4711  break
4712fi
4713rm -f core conftest.err conftest.$ac_objext
4714	 CC="$CC -n32"
4715	 if ac_fn_c_try_compile "$LINENO"; then :
4716  ac_cv_sys_largefile_CC=' -n32'; break
4717fi
4718rm -f core conftest.err conftest.$ac_objext
4719	 break
4720       done
4721       CC=$ac_save_CC
4722       rm -f conftest.$ac_ext
4723    fi
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4726$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4727  if test "$ac_cv_sys_largefile_CC" != no; then
4728    CC=$CC$ac_cv_sys_largefile_CC
4729  fi
4730
4731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4732$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4733if ${ac_cv_sys_file_offset_bits+:} false; then :
4734  $as_echo_n "(cached) " >&6
4735else
4736  while :; do
4737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h.  */
4739#include <sys/types.h>
4740 /* Check that off_t can represent 2**63 - 1 correctly.
4741    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742    since some C++ compilers masquerading as C compilers
4743    incorrectly reject 9223372036854775807.  */
4744#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4745  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746		       && LARGE_OFF_T % 2147483647 == 1)
4747		      ? 1 : -1];
4748int
4749main ()
4750{
4751
4752  ;
4753  return 0;
4754}
4755_ACEOF
4756if ac_fn_c_try_compile "$LINENO"; then :
4757  ac_cv_sys_file_offset_bits=no; break
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h.  */
4762#define _FILE_OFFSET_BITS 64
4763#include <sys/types.h>
4764 /* Check that off_t can represent 2**63 - 1 correctly.
4765    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4766    since some C++ compilers masquerading as C compilers
4767    incorrectly reject 9223372036854775807.  */
4768#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4769  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4770		       && LARGE_OFF_T % 2147483647 == 1)
4771		      ? 1 : -1];
4772int
4773main ()
4774{
4775
4776  ;
4777  return 0;
4778}
4779_ACEOF
4780if ac_fn_c_try_compile "$LINENO"; then :
4781  ac_cv_sys_file_offset_bits=64; break
4782fi
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784  ac_cv_sys_file_offset_bits=unknown
4785  break
4786done
4787fi
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4789$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4790case $ac_cv_sys_file_offset_bits in #(
4791  no | unknown) ;;
4792  *)
4793cat >>confdefs.h <<_ACEOF
4794#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4795_ACEOF
4796;;
4797esac
4798rm -rf conftest*
4799  if test $ac_cv_sys_file_offset_bits = unknown; then
4800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4801$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4802if ${ac_cv_sys_large_files+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  while :; do
4806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807/* end confdefs.h.  */
4808#include <sys/types.h>
4809 /* Check that off_t can represent 2**63 - 1 correctly.
4810    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4811    since some C++ compilers masquerading as C compilers
4812    incorrectly reject 9223372036854775807.  */
4813#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4814  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4815		       && LARGE_OFF_T % 2147483647 == 1)
4816		      ? 1 : -1];
4817int
4818main ()
4819{
4820
4821  ;
4822  return 0;
4823}
4824_ACEOF
4825if ac_fn_c_try_compile "$LINENO"; then :
4826  ac_cv_sys_large_files=no; break
4827fi
4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h.  */
4831#define _LARGE_FILES 1
4832#include <sys/types.h>
4833 /* Check that off_t can represent 2**63 - 1 correctly.
4834    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4835    since some C++ compilers masquerading as C compilers
4836    incorrectly reject 9223372036854775807.  */
4837#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4838  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4839		       && LARGE_OFF_T % 2147483647 == 1)
4840		      ? 1 : -1];
4841int
4842main ()
4843{
4844
4845  ;
4846  return 0;
4847}
4848_ACEOF
4849if ac_fn_c_try_compile "$LINENO"; then :
4850  ac_cv_sys_large_files=1; break
4851fi
4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853  ac_cv_sys_large_files=unknown
4854  break
4855done
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4858$as_echo "$ac_cv_sys_large_files" >&6; }
4859case $ac_cv_sys_large_files in #(
4860  no | unknown) ;;
4861  *)
4862cat >>confdefs.h <<_ACEOF
4863#define _LARGE_FILES $ac_cv_sys_large_files
4864_ACEOF
4865;;
4866esac
4867rm -rf conftest*
4868  fi
4869
4870
4871fi
4872
4873
4874# Check whether --enable-silent-rules was given.
4875if test "${enable_silent_rules+set}" = set; then :
4876  enableval=$enable_silent_rules;
4877fi
4878
4879case $enable_silent_rules in # (((
4880  yes) AM_DEFAULT_VERBOSITY=0;;
4881   no) AM_DEFAULT_VERBOSITY=1;;
4882    *) AM_DEFAULT_VERBOSITY=0;;
4883esac
4884am_make=${MAKE-make}
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4886$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4887if ${am_cv_make_support_nested_variables+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  if $as_echo 'TRUE=$(BAR$(V))
4891BAR0=false
4892BAR1=true
4893V=1
4894am__doit:
4895	@$(TRUE)
4896.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4897  am_cv_make_support_nested_variables=yes
4898else
4899  am_cv_make_support_nested_variables=no
4900fi
4901fi
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4903$as_echo "$am_cv_make_support_nested_variables" >&6; }
4904if test $am_cv_make_support_nested_variables = yes; then
4905    AM_V='$(V)'
4906  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4907else
4908  AM_V=$AM_DEFAULT_VERBOSITY
4909  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4910fi
4911AM_BACKSLASH='\'
4912
4913case `pwd` in
4914  *\ * | *\	*)
4915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4916$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4917esac
4918
4919
4920
4921macro_version='2.4.6'
4922macro_revision='2.4.6'
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936ltmain=$ac_aux_dir/ltmain.sh
4937
4938# Make sure we can run config.sub.
4939$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4940  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4943$as_echo_n "checking build system type... " >&6; }
4944if ${ac_cv_build+:} false; then :
4945  $as_echo_n "(cached) " >&6
4946else
4947  ac_build_alias=$build_alias
4948test "x$ac_build_alias" = x &&
4949  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4950test "x$ac_build_alias" = x &&
4951  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4952ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4953  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4954
4955fi
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4957$as_echo "$ac_cv_build" >&6; }
4958case $ac_cv_build in
4959*-*-*) ;;
4960*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4961esac
4962build=$ac_cv_build
4963ac_save_IFS=$IFS; IFS='-'
4964set x $ac_cv_build
4965shift
4966build_cpu=$1
4967build_vendor=$2
4968shift; shift
4969# Remember, the first character of IFS is used to create $*,
4970# except with old shells:
4971build_os=$*
4972IFS=$ac_save_IFS
4973case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4974
4975
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4977$as_echo_n "checking host system type... " >&6; }
4978if ${ac_cv_host+:} false; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  if test "x$host_alias" = x; then
4982  ac_cv_host=$ac_cv_build
4983else
4984  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4985    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4986fi
4987
4988fi
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4990$as_echo "$ac_cv_host" >&6; }
4991case $ac_cv_host in
4992*-*-*) ;;
4993*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4994esac
4995host=$ac_cv_host
4996ac_save_IFS=$IFS; IFS='-'
4997set x $ac_cv_host
4998shift
4999host_cpu=$1
5000host_vendor=$2
5001shift; shift
5002# Remember, the first character of IFS is used to create $*,
5003# except with old shells:
5004host_os=$*
5005IFS=$ac_save_IFS
5006case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5007
5008
5009# Backslashify metacharacters that are still active within
5010# double-quoted strings.
5011sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5012
5013# Same as above, but do not quote variable references.
5014double_quote_subst='s/\(["`\\]\)/\\\1/g'
5015
5016# Sed substitution to delay expansion of an escaped shell variable in a
5017# double_quote_subst'ed string.
5018delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5019
5020# Sed substitution to delay expansion of an escaped single quote.
5021delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5022
5023# Sed substitution to avoid accidental globbing in evaled expressions
5024no_glob_subst='s/\*/\\\*/g'
5025
5026ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5027ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5028ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5029
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5031$as_echo_n "checking how to print strings... " >&6; }
5032# Test print first, because it will be a builtin if present.
5033if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5034   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5035  ECHO='print -r --'
5036elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5037  ECHO='printf %s\n'
5038else
5039  # Use this function as a fallback that always works.
5040  func_fallback_echo ()
5041  {
5042    eval 'cat <<_LTECHO_EOF
5043$1
5044_LTECHO_EOF'
5045  }
5046  ECHO='func_fallback_echo'
5047fi
5048
5049# func_echo_all arg...
5050# Invoke $ECHO with all args, space-separated.
5051func_echo_all ()
5052{
5053    $ECHO ""
5054}
5055
5056case $ECHO in
5057  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5058$as_echo "printf" >&6; } ;;
5059  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5060$as_echo "print -r" >&6; } ;;
5061  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5062$as_echo "cat" >&6; } ;;
5063esac
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5079$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5080if ${ac_cv_path_SED+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5084     for ac_i in 1 2 3 4 5 6 7; do
5085       ac_script="$ac_script$as_nl$ac_script"
5086     done
5087     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5088     { ac_script=; unset ac_script;}
5089     if test -z "$SED"; then
5090  ac_path_SED_found=false
5091  # Loop through the user's path and test for each of PROGNAME-LIST
5092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095  IFS=$as_save_IFS
5096  test -z "$as_dir" && as_dir=.
5097    for ac_prog in sed gsed; do
5098    for ac_exec_ext in '' $ac_executable_extensions; do
5099      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5100      as_fn_executable_p "$ac_path_SED" || continue
5101# Check for GNU ac_path_SED and select it if it is found.
5102  # Check for GNU $ac_path_SED
5103case `"$ac_path_SED" --version 2>&1` in
5104*GNU*)
5105  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5106*)
5107  ac_count=0
5108  $as_echo_n 0123456789 >"conftest.in"
5109  while :
5110  do
5111    cat "conftest.in" "conftest.in" >"conftest.tmp"
5112    mv "conftest.tmp" "conftest.in"
5113    cp "conftest.in" "conftest.nl"
5114    $as_echo '' >> "conftest.nl"
5115    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5116    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5117    as_fn_arith $ac_count + 1 && ac_count=$as_val
5118    if test $ac_count -gt ${ac_path_SED_max-0}; then
5119      # Best one so far, save it but keep looking for a better one
5120      ac_cv_path_SED="$ac_path_SED"
5121      ac_path_SED_max=$ac_count
5122    fi
5123    # 10*(2^10) chars as input seems more than enough
5124    test $ac_count -gt 10 && break
5125  done
5126  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5127esac
5128
5129      $ac_path_SED_found && break 3
5130    done
5131  done
5132  done
5133IFS=$as_save_IFS
5134  if test -z "$ac_cv_path_SED"; then
5135    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5136  fi
5137else
5138  ac_cv_path_SED=$SED
5139fi
5140
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5143$as_echo "$ac_cv_path_SED" >&6; }
5144 SED="$ac_cv_path_SED"
5145  rm -f conftest.sed
5146
5147test -z "$SED" && SED=sed
5148Xsed="$SED -e 1s/^X//"
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5161$as_echo_n "checking for fgrep... " >&6; }
5162if ${ac_cv_path_FGREP+:} false; then :
5163  $as_echo_n "(cached) " >&6
5164else
5165  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5166   then ac_cv_path_FGREP="$GREP -F"
5167   else
5168     if test -z "$FGREP"; then
5169  ac_path_FGREP_found=false
5170  # Loop through the user's path and test for each of PROGNAME-LIST
5171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5173do
5174  IFS=$as_save_IFS
5175  test -z "$as_dir" && as_dir=.
5176    for ac_prog in fgrep; do
5177    for ac_exec_ext in '' $ac_executable_extensions; do
5178      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5179      as_fn_executable_p "$ac_path_FGREP" || continue
5180# Check for GNU ac_path_FGREP and select it if it is found.
5181  # Check for GNU $ac_path_FGREP
5182case `"$ac_path_FGREP" --version 2>&1` in
5183*GNU*)
5184  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5185*)
5186  ac_count=0
5187  $as_echo_n 0123456789 >"conftest.in"
5188  while :
5189  do
5190    cat "conftest.in" "conftest.in" >"conftest.tmp"
5191    mv "conftest.tmp" "conftest.in"
5192    cp "conftest.in" "conftest.nl"
5193    $as_echo 'FGREP' >> "conftest.nl"
5194    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5195    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5196    as_fn_arith $ac_count + 1 && ac_count=$as_val
5197    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5198      # Best one so far, save it but keep looking for a better one
5199      ac_cv_path_FGREP="$ac_path_FGREP"
5200      ac_path_FGREP_max=$ac_count
5201    fi
5202    # 10*(2^10) chars as input seems more than enough
5203    test $ac_count -gt 10 && break
5204  done
5205  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5206esac
5207
5208      $ac_path_FGREP_found && break 3
5209    done
5210  done
5211  done
5212IFS=$as_save_IFS
5213  if test -z "$ac_cv_path_FGREP"; then
5214    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5215  fi
5216else
5217  ac_cv_path_FGREP=$FGREP
5218fi
5219
5220   fi
5221fi
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5223$as_echo "$ac_cv_path_FGREP" >&6; }
5224 FGREP="$ac_cv_path_FGREP"
5225
5226
5227test -z "$GREP" && GREP=grep
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247# Check whether --with-gnu-ld was given.
5248if test "${with_gnu_ld+set}" = set; then :
5249  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5250else
5251  with_gnu_ld=no
5252fi
5253
5254ac_prog=ld
5255if test yes = "$GCC"; then
5256  # Check if gcc -print-prog-name=ld gives a path.
5257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5258$as_echo_n "checking for ld used by $CC... " >&6; }
5259  case $host in
5260  *-*-mingw*)
5261    # gcc leaves a trailing carriage return, which upsets mingw
5262    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5263  *)
5264    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5265  esac
5266  case $ac_prog in
5267    # Accept absolute paths.
5268    [\\/]* | ?:[\\/]*)
5269      re_direlt='/[^/][^/]*/\.\./'
5270      # Canonicalize the pathname of ld
5271      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5272      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5273	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5274      done
5275      test -z "$LD" && LD=$ac_prog
5276      ;;
5277  "")
5278    # If it fails, then pretend we aren't using GCC.
5279    ac_prog=ld
5280    ;;
5281  *)
5282    # If it is relative, then search for the first ld in PATH.
5283    with_gnu_ld=unknown
5284    ;;
5285  esac
5286elif test yes = "$with_gnu_ld"; then
5287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5288$as_echo_n "checking for GNU ld... " >&6; }
5289else
5290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5291$as_echo_n "checking for non-GNU ld... " >&6; }
5292fi
5293if ${lt_cv_path_LD+:} false; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296  if test -z "$LD"; then
5297  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5298  for ac_dir in $PATH; do
5299    IFS=$lt_save_ifs
5300    test -z "$ac_dir" && ac_dir=.
5301    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5302      lt_cv_path_LD=$ac_dir/$ac_prog
5303      # Check to see if the program is GNU ld.  I'd rather use --version,
5304      # but apparently some variants of GNU ld only accept -v.
5305      # Break only if it was the GNU/non-GNU ld that we prefer.
5306      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5307      *GNU* | *'with BFD'*)
5308	test no != "$with_gnu_ld" && break
5309	;;
5310      *)
5311	test yes != "$with_gnu_ld" && break
5312	;;
5313      esac
5314    fi
5315  done
5316  IFS=$lt_save_ifs
5317else
5318  lt_cv_path_LD=$LD # Let the user override the test with a path.
5319fi
5320fi
5321
5322LD=$lt_cv_path_LD
5323if test -n "$LD"; then
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5325$as_echo "$LD" >&6; }
5326else
5327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328$as_echo "no" >&6; }
5329fi
5330test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5332$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5333if ${lt_cv_prog_gnu_ld+:} false; then :
5334  $as_echo_n "(cached) " >&6
5335else
5336  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5337case `$LD -v 2>&1 </dev/null` in
5338*GNU* | *'with BFD'*)
5339  lt_cv_prog_gnu_ld=yes
5340  ;;
5341*)
5342  lt_cv_prog_gnu_ld=no
5343  ;;
5344esac
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5347$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5348with_gnu_ld=$lt_cv_prog_gnu_ld
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5359$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5360if ${lt_cv_path_NM+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  if test -n "$NM"; then
5364  # Let the user override the test.
5365  lt_cv_path_NM=$NM
5366else
5367  lt_nm_to_check=${ac_tool_prefix}nm
5368  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5369    lt_nm_to_check="$lt_nm_to_check nm"
5370  fi
5371  for lt_tmp_nm in $lt_nm_to_check; do
5372    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5373    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5374      IFS=$lt_save_ifs
5375      test -z "$ac_dir" && ac_dir=.
5376      tmp_nm=$ac_dir/$lt_tmp_nm
5377      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5378	# Check to see if the nm accepts a BSD-compat flag.
5379	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5380	#   nm: unknown option "B" ignored
5381	# Tru64's nm complains that /dev/null is an invalid object file
5382	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5383	case $build_os in
5384	mingw*) lt_bad_file=conftest.nm/nofile ;;
5385	*) lt_bad_file=/dev/null ;;
5386	esac
5387	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5388	*$lt_bad_file* | *'Invalid file or object type'*)
5389	  lt_cv_path_NM="$tmp_nm -B"
5390	  break 2
5391	  ;;
5392	*)
5393	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5394	  */dev/null*)
5395	    lt_cv_path_NM="$tmp_nm -p"
5396	    break 2
5397	    ;;
5398	  *)
5399	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5400	    continue # so that we can try to find one that supports BSD flags
5401	    ;;
5402	  esac
5403	  ;;
5404	esac
5405      fi
5406    done
5407    IFS=$lt_save_ifs
5408  done
5409  : ${lt_cv_path_NM=no}
5410fi
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5413$as_echo "$lt_cv_path_NM" >&6; }
5414if test no != "$lt_cv_path_NM"; then
5415  NM=$lt_cv_path_NM
5416else
5417  # Didn't find any BSD compatible name lister, look for dumpbin.
5418  if test -n "$DUMPBIN"; then :
5419    # Let the user override the test.
5420  else
5421    if test -n "$ac_tool_prefix"; then
5422  for ac_prog in dumpbin "link -dump"
5423  do
5424    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427$as_echo_n "checking for $ac_word... " >&6; }
5428if ${ac_cv_prog_DUMPBIN+:} false; then :
5429  $as_echo_n "(cached) " >&6
5430else
5431  if test -n "$DUMPBIN"; then
5432  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437  IFS=$as_save_IFS
5438  test -z "$as_dir" && as_dir=.
5439    for ac_exec_ext in '' $ac_executable_extensions; do
5440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443    break 2
5444  fi
5445done
5446  done
5447IFS=$as_save_IFS
5448
5449fi
5450fi
5451DUMPBIN=$ac_cv_prog_DUMPBIN
5452if test -n "$DUMPBIN"; then
5453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5454$as_echo "$DUMPBIN" >&6; }
5455else
5456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457$as_echo "no" >&6; }
5458fi
5459
5460
5461    test -n "$DUMPBIN" && break
5462  done
5463fi
5464if test -z "$DUMPBIN"; then
5465  ac_ct_DUMPBIN=$DUMPBIN
5466  for ac_prog in dumpbin "link -dump"
5467do
5468  # Extract the first word of "$ac_prog", so it can be a program name with args.
5469set dummy $ac_prog; ac_word=$2
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471$as_echo_n "checking for $ac_word... " >&6; }
5472if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  if test -n "$ac_ct_DUMPBIN"; then
5476  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5477else
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481  IFS=$as_save_IFS
5482  test -z "$as_dir" && as_dir=.
5483    for ac_exec_ext in '' $ac_executable_extensions; do
5484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487    break 2
5488  fi
5489done
5490  done
5491IFS=$as_save_IFS
5492
5493fi
5494fi
5495ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5496if test -n "$ac_ct_DUMPBIN"; then
5497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5498$as_echo "$ac_ct_DUMPBIN" >&6; }
5499else
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501$as_echo "no" >&6; }
5502fi
5503
5504
5505  test -n "$ac_ct_DUMPBIN" && break
5506done
5507
5508  if test "x$ac_ct_DUMPBIN" = x; then
5509    DUMPBIN=":"
5510  else
5511    case $cross_compiling:$ac_tool_warned in
5512yes:)
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515ac_tool_warned=yes ;;
5516esac
5517    DUMPBIN=$ac_ct_DUMPBIN
5518  fi
5519fi
5520
5521    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5522    *COFF*)
5523      DUMPBIN="$DUMPBIN -symbols -headers"
5524      ;;
5525    *)
5526      DUMPBIN=:
5527      ;;
5528    esac
5529  fi
5530
5531  if test : != "$DUMPBIN"; then
5532    NM=$DUMPBIN
5533  fi
5534fi
5535test -z "$NM" && NM=nm
5536
5537
5538
5539
5540
5541
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5543$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5544if ${lt_cv_nm_interface+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  lt_cv_nm_interface="BSD nm"
5548  echo "int some_variable = 0;" > conftest.$ac_ext
5549  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5550  (eval "$ac_compile" 2>conftest.err)
5551  cat conftest.err >&5
5552  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5553  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5554  cat conftest.err >&5
5555  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5556  cat conftest.out >&5
5557  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5558    lt_cv_nm_interface="MS dumpbin"
5559  fi
5560  rm -f conftest*
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5563$as_echo "$lt_cv_nm_interface" >&6; }
5564
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5566$as_echo_n "checking whether ln -s works... " >&6; }
5567LN_S=$as_ln_s
5568if test "$LN_S" = "ln -s"; then
5569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5570$as_echo "yes" >&6; }
5571else
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5573$as_echo "no, using $LN_S" >&6; }
5574fi
5575
5576# find the maximum length of command line arguments
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5578$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5579if ${lt_cv_sys_max_cmd_len+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582    i=0
5583  teststring=ABCD
5584
5585  case $build_os in
5586  msdosdjgpp*)
5587    # On DJGPP, this test can blow up pretty badly due to problems in libc
5588    # (any single argument exceeding 2000 bytes causes a buffer overrun
5589    # during glob expansion).  Even if it were fixed, the result of this
5590    # check would be larger than it should be.
5591    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5592    ;;
5593
5594  gnu*)
5595    # Under GNU Hurd, this test is not required because there is
5596    # no limit to the length of command line arguments.
5597    # Libtool will interpret -1 as no limit whatsoever
5598    lt_cv_sys_max_cmd_len=-1;
5599    ;;
5600
5601  cygwin* | mingw* | cegcc*)
5602    # On Win9x/ME, this test blows up -- it succeeds, but takes
5603    # about 5 minutes as the teststring grows exponentially.
5604    # Worse, since 9x/ME are not pre-emptively multitasking,
5605    # you end up with a "frozen" computer, even though with patience
5606    # the test eventually succeeds (with a max line length of 256k).
5607    # Instead, let's just punt: use the minimum linelength reported by
5608    # all of the supported platforms: 8192 (on NT/2K/XP).
5609    lt_cv_sys_max_cmd_len=8192;
5610    ;;
5611
5612  mint*)
5613    # On MiNT this can take a long time and run out of memory.
5614    lt_cv_sys_max_cmd_len=8192;
5615    ;;
5616
5617  amigaos*)
5618    # On AmigaOS with pdksh, this test takes hours, literally.
5619    # So we just punt and use a minimum line length of 8192.
5620    lt_cv_sys_max_cmd_len=8192;
5621    ;;
5622
5623  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5624    # This has been around since 386BSD, at least.  Likely further.
5625    if test -x /sbin/sysctl; then
5626      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5627    elif test -x /usr/sbin/sysctl; then
5628      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5629    else
5630      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5631    fi
5632    # And add a safety zone
5633    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5634    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5635    ;;
5636
5637  interix*)
5638    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5639    lt_cv_sys_max_cmd_len=196608
5640    ;;
5641
5642  os2*)
5643    # The test takes a long time on OS/2.
5644    lt_cv_sys_max_cmd_len=8192
5645    ;;
5646
5647  osf*)
5648    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5649    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5650    # nice to cause kernel panics so lets avoid the loop below.
5651    # First set a reasonable default.
5652    lt_cv_sys_max_cmd_len=16384
5653    #
5654    if test -x /sbin/sysconfig; then
5655      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5656        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5657      esac
5658    fi
5659    ;;
5660  sco3.2v5*)
5661    lt_cv_sys_max_cmd_len=102400
5662    ;;
5663  sysv5* | sco5v6* | sysv4.2uw2*)
5664    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5665    if test -n "$kargmax"; then
5666      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5667    else
5668      lt_cv_sys_max_cmd_len=32768
5669    fi
5670    ;;
5671  *)
5672    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5673    if test -n "$lt_cv_sys_max_cmd_len" && \
5674       test undefined != "$lt_cv_sys_max_cmd_len"; then
5675      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5676      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5677    else
5678      # Make teststring a little bigger before we do anything with it.
5679      # a 1K string should be a reasonable start.
5680      for i in 1 2 3 4 5 6 7 8; do
5681        teststring=$teststring$teststring
5682      done
5683      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5684      # If test is not a shell built-in, we'll probably end up computing a
5685      # maximum length that is only half of the actual maximum length, but
5686      # we can't tell.
5687      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5688	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5689	      test 17 != "$i" # 1/2 MB should be enough
5690      do
5691        i=`expr $i + 1`
5692        teststring=$teststring$teststring
5693      done
5694      # Only check the string length outside the loop.
5695      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5696      teststring=
5697      # Add a significant safety factor because C++ compilers can tack on
5698      # massive amounts of additional arguments before passing them to the
5699      # linker.  It appears as though 1/2 is a usable value.
5700      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5701    fi
5702    ;;
5703  esac
5704
5705fi
5706
5707if test -n "$lt_cv_sys_max_cmd_len"; then
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5709$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5710else
5711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5712$as_echo "none" >&6; }
5713fi
5714max_cmd_len=$lt_cv_sys_max_cmd_len
5715
5716
5717
5718
5719
5720
5721: ${CP="cp -f"}
5722: ${MV="mv -f"}
5723: ${RM="rm -f"}
5724
5725if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5726  lt_unset=unset
5727else
5728  lt_unset=false
5729fi
5730
5731
5732
5733
5734
5735# test EBCDIC or ASCII
5736case `echo X|tr X '\101'` in
5737 A) # ASCII based system
5738    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5739  lt_SP2NL='tr \040 \012'
5740  lt_NL2SP='tr \015\012 \040\040'
5741  ;;
5742 *) # EBCDIC based system
5743  lt_SP2NL='tr \100 \n'
5744  lt_NL2SP='tr \r\n \100\100'
5745  ;;
5746esac
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5757$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5758if ${lt_cv_to_host_file_cmd+:} false; then :
5759  $as_echo_n "(cached) " >&6
5760else
5761  case $host in
5762  *-*-mingw* )
5763    case $build in
5764      *-*-mingw* ) # actually msys
5765        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5766        ;;
5767      *-*-cygwin* )
5768        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5769        ;;
5770      * ) # otherwise, assume *nix
5771        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5772        ;;
5773    esac
5774    ;;
5775  *-*-cygwin* )
5776    case $build in
5777      *-*-mingw* ) # actually msys
5778        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5779        ;;
5780      *-*-cygwin* )
5781        lt_cv_to_host_file_cmd=func_convert_file_noop
5782        ;;
5783      * ) # otherwise, assume *nix
5784        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5785        ;;
5786    esac
5787    ;;
5788  * ) # unhandled hosts (and "normal" native builds)
5789    lt_cv_to_host_file_cmd=func_convert_file_noop
5790    ;;
5791esac
5792
5793fi
5794
5795to_host_file_cmd=$lt_cv_to_host_file_cmd
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5797$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5798
5799
5800
5801
5802
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5804$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5805if ${lt_cv_to_tool_file_cmd+:} false; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808  #assume ordinary cross tools, or native build.
5809lt_cv_to_tool_file_cmd=func_convert_file_noop
5810case $host in
5811  *-*-mingw* )
5812    case $build in
5813      *-*-mingw* ) # actually msys
5814        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5815        ;;
5816    esac
5817    ;;
5818esac
5819
5820fi
5821
5822to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5824$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5825
5826
5827
5828
5829
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5831$as_echo_n "checking for $LD option to reload object files... " >&6; }
5832if ${lt_cv_ld_reload_flag+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835  lt_cv_ld_reload_flag='-r'
5836fi
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5838$as_echo "$lt_cv_ld_reload_flag" >&6; }
5839reload_flag=$lt_cv_ld_reload_flag
5840case $reload_flag in
5841"" | " "*) ;;
5842*) reload_flag=" $reload_flag" ;;
5843esac
5844reload_cmds='$LD$reload_flag -o $output$reload_objs'
5845case $host_os in
5846  cygwin* | mingw* | pw32* | cegcc*)
5847    if test yes != "$GCC"; then
5848      reload_cmds=false
5849    fi
5850    ;;
5851  darwin*)
5852    if test yes = "$GCC"; then
5853      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5854    else
5855      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5856    fi
5857    ;;
5858esac
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868if test -n "$ac_tool_prefix"; then
5869  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5870set dummy ${ac_tool_prefix}objdump; ac_word=$2
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872$as_echo_n "checking for $ac_word... " >&6; }
5873if ${ac_cv_prog_OBJDUMP+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  if test -n "$OBJDUMP"; then
5877  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882  IFS=$as_save_IFS
5883  test -z "$as_dir" && as_dir=.
5884    for ac_exec_ext in '' $ac_executable_extensions; do
5885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888    break 2
5889  fi
5890done
5891  done
5892IFS=$as_save_IFS
5893
5894fi
5895fi
5896OBJDUMP=$ac_cv_prog_OBJDUMP
5897if test -n "$OBJDUMP"; then
5898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5899$as_echo "$OBJDUMP" >&6; }
5900else
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
5903fi
5904
5905
5906fi
5907if test -z "$ac_cv_prog_OBJDUMP"; then
5908  ac_ct_OBJDUMP=$OBJDUMP
5909  # Extract the first word of "objdump", so it can be a program name with args.
5910set dummy objdump; ac_word=$2
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912$as_echo_n "checking for $ac_word... " >&6; }
5913if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5914  $as_echo_n "(cached) " >&6
5915else
5916  if test -n "$ac_ct_OBJDUMP"; then
5917  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922  IFS=$as_save_IFS
5923  test -z "$as_dir" && as_dir=.
5924    for ac_exec_ext in '' $ac_executable_extensions; do
5925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928    break 2
5929  fi
5930done
5931  done
5932IFS=$as_save_IFS
5933
5934fi
5935fi
5936ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5937if test -n "$ac_ct_OBJDUMP"; then
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5939$as_echo "$ac_ct_OBJDUMP" >&6; }
5940else
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
5943fi
5944
5945  if test "x$ac_ct_OBJDUMP" = x; then
5946    OBJDUMP="false"
5947  else
5948    case $cross_compiling:$ac_tool_warned in
5949yes:)
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5952ac_tool_warned=yes ;;
5953esac
5954    OBJDUMP=$ac_ct_OBJDUMP
5955  fi
5956else
5957  OBJDUMP="$ac_cv_prog_OBJDUMP"
5958fi
5959
5960test -z "$OBJDUMP" && OBJDUMP=objdump
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5971$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5972if ${lt_cv_deplibs_check_method+:} false; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  lt_cv_file_magic_cmd='$MAGIC_CMD'
5976lt_cv_file_magic_test_file=
5977lt_cv_deplibs_check_method='unknown'
5978# Need to set the preceding variable on all platforms that support
5979# interlibrary dependencies.
5980# 'none' -- dependencies not supported.
5981# 'unknown' -- same as none, but documents that we really don't know.
5982# 'pass_all' -- all dependencies passed with no checks.
5983# 'test_compile' -- check by making test program.
5984# 'file_magic [[regex]]' -- check by looking for files in library path
5985# that responds to the $file_magic_cmd with a given extended regex.
5986# If you have 'file' or equivalent on your system and you're not sure
5987# whether 'pass_all' will *always* work, you probably want this one.
5988
5989case $host_os in
5990aix[4-9]*)
5991  lt_cv_deplibs_check_method=pass_all
5992  ;;
5993
5994beos*)
5995  lt_cv_deplibs_check_method=pass_all
5996  ;;
5997
5998bsdi[45]*)
5999  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6000  lt_cv_file_magic_cmd='/usr/bin/file -L'
6001  lt_cv_file_magic_test_file=/shlib/libc.so
6002  ;;
6003
6004cygwin*)
6005  # func_win32_libid is a shell function defined in ltmain.sh
6006  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6007  lt_cv_file_magic_cmd='func_win32_libid'
6008  ;;
6009
6010mingw* | pw32*)
6011  # Base MSYS/MinGW do not provide the 'file' command needed by
6012  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6013  # unless we find 'file', for example because we are cross-compiling.
6014  if ( file / ) >/dev/null 2>&1; then
6015    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6016    lt_cv_file_magic_cmd='func_win32_libid'
6017  else
6018    # Keep this pattern in sync with the one in func_win32_libid.
6019    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6020    lt_cv_file_magic_cmd='$OBJDUMP -f'
6021  fi
6022  ;;
6023
6024cegcc*)
6025  # use the weaker test based on 'objdump'. See mingw*.
6026  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6027  lt_cv_file_magic_cmd='$OBJDUMP -f'
6028  ;;
6029
6030darwin* | rhapsody*)
6031  lt_cv_deplibs_check_method=pass_all
6032  ;;
6033
6034freebsd* | dragonfly*)
6035  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6036    case $host_cpu in
6037    i*86 )
6038      # Not sure whether the presence of OpenBSD here was a mistake.
6039      # Let's accept both of them until this is cleared up.
6040      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6041      lt_cv_file_magic_cmd=/usr/bin/file
6042      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6043      ;;
6044    esac
6045  else
6046    lt_cv_deplibs_check_method=pass_all
6047  fi
6048  ;;
6049
6050haiku*)
6051  lt_cv_deplibs_check_method=pass_all
6052  ;;
6053
6054hpux10.20* | hpux11*)
6055  lt_cv_file_magic_cmd=/usr/bin/file
6056  case $host_cpu in
6057  ia64*)
6058    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6059    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6060    ;;
6061  hppa*64*)
6062    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]'
6063    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6064    ;;
6065  *)
6066    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6067    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6068    ;;
6069  esac
6070  ;;
6071
6072interix[3-9]*)
6073  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6074  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6075  ;;
6076
6077irix5* | irix6* | nonstopux*)
6078  case $LD in
6079  *-32|*"-32 ") libmagic=32-bit;;
6080  *-n32|*"-n32 ") libmagic=N32;;
6081  *-64|*"-64 ") libmagic=64-bit;;
6082  *) libmagic=never-match;;
6083  esac
6084  lt_cv_deplibs_check_method=pass_all
6085  ;;
6086
6087# This must be glibc/ELF.
6088linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6089  lt_cv_deplibs_check_method=pass_all
6090  ;;
6091
6092netbsd* | netbsdelf*-gnu)
6093  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6094    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6095  else
6096    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6097  fi
6098  ;;
6099
6100newos6*)
6101  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6102  lt_cv_file_magic_cmd=/usr/bin/file
6103  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6104  ;;
6105
6106*nto* | *qnx*)
6107  lt_cv_deplibs_check_method=pass_all
6108  ;;
6109
6110openbsd* | bitrig*)
6111  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6112    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6113  else
6114    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6115  fi
6116  ;;
6117
6118osf3* | osf4* | osf5*)
6119  lt_cv_deplibs_check_method=pass_all
6120  ;;
6121
6122rdos*)
6123  lt_cv_deplibs_check_method=pass_all
6124  ;;
6125
6126solaris*)
6127  lt_cv_deplibs_check_method=pass_all
6128  ;;
6129
6130sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6131  lt_cv_deplibs_check_method=pass_all
6132  ;;
6133
6134sysv4 | sysv4.3*)
6135  case $host_vendor in
6136  motorola)
6137    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]'
6138    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6139    ;;
6140  ncr)
6141    lt_cv_deplibs_check_method=pass_all
6142    ;;
6143  sequent)
6144    lt_cv_file_magic_cmd='/bin/file'
6145    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6146    ;;
6147  sni)
6148    lt_cv_file_magic_cmd='/bin/file'
6149    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6150    lt_cv_file_magic_test_file=/lib/libc.so
6151    ;;
6152  siemens)
6153    lt_cv_deplibs_check_method=pass_all
6154    ;;
6155  pc)
6156    lt_cv_deplibs_check_method=pass_all
6157    ;;
6158  esac
6159  ;;
6160
6161tpf*)
6162  lt_cv_deplibs_check_method=pass_all
6163  ;;
6164os2*)
6165  lt_cv_deplibs_check_method=pass_all
6166  ;;
6167esac
6168
6169fi
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6171$as_echo "$lt_cv_deplibs_check_method" >&6; }
6172
6173file_magic_glob=
6174want_nocaseglob=no
6175if test "$build" = "$host"; then
6176  case $host_os in
6177  mingw* | pw32*)
6178    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6179      want_nocaseglob=yes
6180    else
6181      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6182    fi
6183    ;;
6184  esac
6185fi
6186
6187file_magic_cmd=$lt_cv_file_magic_cmd
6188deplibs_check_method=$lt_cv_deplibs_check_method
6189test -z "$deplibs_check_method" && deplibs_check_method=unknown
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212if test -n "$ac_tool_prefix"; then
6213  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6214set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216$as_echo_n "checking for $ac_word... " >&6; }
6217if ${ac_cv_prog_DLLTOOL+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  if test -n "$DLLTOOL"; then
6221  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6222else
6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226  IFS=$as_save_IFS
6227  test -z "$as_dir" && as_dir=.
6228    for ac_exec_ext in '' $ac_executable_extensions; do
6229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232    break 2
6233  fi
6234done
6235  done
6236IFS=$as_save_IFS
6237
6238fi
6239fi
6240DLLTOOL=$ac_cv_prog_DLLTOOL
6241if test -n "$DLLTOOL"; then
6242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6243$as_echo "$DLLTOOL" >&6; }
6244else
6245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246$as_echo "no" >&6; }
6247fi
6248
6249
6250fi
6251if test -z "$ac_cv_prog_DLLTOOL"; then
6252  ac_ct_DLLTOOL=$DLLTOOL
6253  # Extract the first word of "dlltool", so it can be a program name with args.
6254set dummy dlltool; ac_word=$2
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256$as_echo_n "checking for $ac_word... " >&6; }
6257if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6258  $as_echo_n "(cached) " >&6
6259else
6260  if test -n "$ac_ct_DLLTOOL"; then
6261  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266  IFS=$as_save_IFS
6267  test -z "$as_dir" && as_dir=.
6268    for ac_exec_ext in '' $ac_executable_extensions; do
6269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272    break 2
6273  fi
6274done
6275  done
6276IFS=$as_save_IFS
6277
6278fi
6279fi
6280ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6281if test -n "$ac_ct_DLLTOOL"; then
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6283$as_echo "$ac_ct_DLLTOOL" >&6; }
6284else
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286$as_echo "no" >&6; }
6287fi
6288
6289  if test "x$ac_ct_DLLTOOL" = x; then
6290    DLLTOOL="false"
6291  else
6292    case $cross_compiling:$ac_tool_warned in
6293yes:)
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296ac_tool_warned=yes ;;
6297esac
6298    DLLTOOL=$ac_ct_DLLTOOL
6299  fi
6300else
6301  DLLTOOL="$ac_cv_prog_DLLTOOL"
6302fi
6303
6304test -z "$DLLTOOL" && DLLTOOL=dlltool
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6316$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6317if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6318  $as_echo_n "(cached) " >&6
6319else
6320  lt_cv_sharedlib_from_linklib_cmd='unknown'
6321
6322case $host_os in
6323cygwin* | mingw* | pw32* | cegcc*)
6324  # two different shell functions defined in ltmain.sh;
6325  # decide which one to use based on capabilities of $DLLTOOL
6326  case `$DLLTOOL --help 2>&1` in
6327  *--identify-strict*)
6328    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6329    ;;
6330  *)
6331    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6332    ;;
6333  esac
6334  ;;
6335*)
6336  # fallback: assume linklib IS sharedlib
6337  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6338  ;;
6339esac
6340
6341fi
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6343$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6344sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6345test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6346
6347
6348
6349
6350
6351
6352
6353if test -n "$ac_tool_prefix"; then
6354  for ac_prog in ar
6355  do
6356    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6357set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359$as_echo_n "checking for $ac_word... " >&6; }
6360if ${ac_cv_prog_AR+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  if test -n "$AR"; then
6364  ac_cv_prog_AR="$AR" # Let the user override the test.
6365else
6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369  IFS=$as_save_IFS
6370  test -z "$as_dir" && as_dir=.
6371    for ac_exec_ext in '' $ac_executable_extensions; do
6372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375    break 2
6376  fi
6377done
6378  done
6379IFS=$as_save_IFS
6380
6381fi
6382fi
6383AR=$ac_cv_prog_AR
6384if test -n "$AR"; then
6385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6386$as_echo "$AR" >&6; }
6387else
6388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389$as_echo "no" >&6; }
6390fi
6391
6392
6393    test -n "$AR" && break
6394  done
6395fi
6396if test -z "$AR"; then
6397  ac_ct_AR=$AR
6398  for ac_prog in ar
6399do
6400  # Extract the first word of "$ac_prog", so it can be a program name with args.
6401set dummy $ac_prog; ac_word=$2
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403$as_echo_n "checking for $ac_word... " >&6; }
6404if ${ac_cv_prog_ac_ct_AR+:} false; then :
6405  $as_echo_n "(cached) " >&6
6406else
6407  if test -n "$ac_ct_AR"; then
6408  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6409else
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413  IFS=$as_save_IFS
6414  test -z "$as_dir" && as_dir=.
6415    for ac_exec_ext in '' $ac_executable_extensions; do
6416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417    ac_cv_prog_ac_ct_AR="$ac_prog"
6418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419    break 2
6420  fi
6421done
6422  done
6423IFS=$as_save_IFS
6424
6425fi
6426fi
6427ac_ct_AR=$ac_cv_prog_ac_ct_AR
6428if test -n "$ac_ct_AR"; then
6429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6430$as_echo "$ac_ct_AR" >&6; }
6431else
6432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433$as_echo "no" >&6; }
6434fi
6435
6436
6437  test -n "$ac_ct_AR" && break
6438done
6439
6440  if test "x$ac_ct_AR" = x; then
6441    AR="false"
6442  else
6443    case $cross_compiling:$ac_tool_warned in
6444yes:)
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447ac_tool_warned=yes ;;
6448esac
6449    AR=$ac_ct_AR
6450  fi
6451fi
6452
6453: ${AR=ar}
6454: ${AR_FLAGS=cru}
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6467$as_echo_n "checking for archiver @FILE support... " >&6; }
6468if ${lt_cv_ar_at_file+:} false; then :
6469  $as_echo_n "(cached) " >&6
6470else
6471  lt_cv_ar_at_file=no
6472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h.  */
6474
6475int
6476main ()
6477{
6478
6479  ;
6480  return 0;
6481}
6482_ACEOF
6483if ac_fn_c_try_compile "$LINENO"; then :
6484  echo conftest.$ac_objext > conftest.lst
6485      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6486      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6487  (eval $lt_ar_try) 2>&5
6488  ac_status=$?
6489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6490  test $ac_status = 0; }
6491      if test 0 -eq "$ac_status"; then
6492	# Ensure the archiver fails upon bogus file names.
6493	rm -f conftest.$ac_objext libconftest.a
6494	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6495  (eval $lt_ar_try) 2>&5
6496  ac_status=$?
6497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6498  test $ac_status = 0; }
6499	if test 0 -ne "$ac_status"; then
6500          lt_cv_ar_at_file=@
6501        fi
6502      fi
6503      rm -f conftest.* libconftest.a
6504
6505fi
6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507
6508fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6510$as_echo "$lt_cv_ar_at_file" >&6; }
6511
6512if test no = "$lt_cv_ar_at_file"; then
6513  archiver_list_spec=
6514else
6515  archiver_list_spec=$lt_cv_ar_at_file
6516fi
6517
6518
6519
6520
6521
6522
6523
6524if test -n "$ac_tool_prefix"; then
6525  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6526set dummy ${ac_tool_prefix}strip; ac_word=$2
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528$as_echo_n "checking for $ac_word... " >&6; }
6529if ${ac_cv_prog_STRIP+:} false; then :
6530  $as_echo_n "(cached) " >&6
6531else
6532  if test -n "$STRIP"; then
6533  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538  IFS=$as_save_IFS
6539  test -z "$as_dir" && as_dir=.
6540    for ac_exec_ext in '' $ac_executable_extensions; do
6541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544    break 2
6545  fi
6546done
6547  done
6548IFS=$as_save_IFS
6549
6550fi
6551fi
6552STRIP=$ac_cv_prog_STRIP
6553if test -n "$STRIP"; then
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6555$as_echo "$STRIP" >&6; }
6556else
6557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558$as_echo "no" >&6; }
6559fi
6560
6561
6562fi
6563if test -z "$ac_cv_prog_STRIP"; then
6564  ac_ct_STRIP=$STRIP
6565  # Extract the first word of "strip", so it can be a program name with args.
6566set dummy strip; ac_word=$2
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568$as_echo_n "checking for $ac_word... " >&6; }
6569if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  if test -n "$ac_ct_STRIP"; then
6573  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6574else
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578  IFS=$as_save_IFS
6579  test -z "$as_dir" && as_dir=.
6580    for ac_exec_ext in '' $ac_executable_extensions; do
6581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582    ac_cv_prog_ac_ct_STRIP="strip"
6583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584    break 2
6585  fi
6586done
6587  done
6588IFS=$as_save_IFS
6589
6590fi
6591fi
6592ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6593if test -n "$ac_ct_STRIP"; then
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6595$as_echo "$ac_ct_STRIP" >&6; }
6596else
6597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598$as_echo "no" >&6; }
6599fi
6600
6601  if test "x$ac_ct_STRIP" = x; then
6602    STRIP=":"
6603  else
6604    case $cross_compiling:$ac_tool_warned in
6605yes:)
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608ac_tool_warned=yes ;;
6609esac
6610    STRIP=$ac_ct_STRIP
6611  fi
6612else
6613  STRIP="$ac_cv_prog_STRIP"
6614fi
6615
6616test -z "$STRIP" && STRIP=:
6617
6618
6619
6620
6621
6622
6623if test -n "$ac_tool_prefix"; then
6624  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6625set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627$as_echo_n "checking for $ac_word... " >&6; }
6628if ${ac_cv_prog_RANLIB+:} false; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631  if test -n "$RANLIB"; then
6632  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639    for ac_exec_ext in '' $ac_executable_extensions; do
6640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643    break 2
6644  fi
6645done
6646  done
6647IFS=$as_save_IFS
6648
6649fi
6650fi
6651RANLIB=$ac_cv_prog_RANLIB
6652if test -n "$RANLIB"; then
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6654$as_echo "$RANLIB" >&6; }
6655else
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
6658fi
6659
6660
6661fi
6662if test -z "$ac_cv_prog_RANLIB"; then
6663  ac_ct_RANLIB=$RANLIB
6664  # Extract the first word of "ranlib", so it can be a program name with args.
6665set dummy ranlib; ac_word=$2
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6669  $as_echo_n "(cached) " >&6
6670else
6671  if test -n "$ac_ct_RANLIB"; then
6672  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6673else
6674as_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_exec_ext in '' $ac_executable_extensions; do
6680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681    ac_cv_prog_ac_ct_RANLIB="ranlib"
6682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683    break 2
6684  fi
6685done
6686  done
6687IFS=$as_save_IFS
6688
6689fi
6690fi
6691ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6692if test -n "$ac_ct_RANLIB"; then
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6694$as_echo "$ac_ct_RANLIB" >&6; }
6695else
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697$as_echo "no" >&6; }
6698fi
6699
6700  if test "x$ac_ct_RANLIB" = x; then
6701    RANLIB=":"
6702  else
6703    case $cross_compiling:$ac_tool_warned in
6704yes:)
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707ac_tool_warned=yes ;;
6708esac
6709    RANLIB=$ac_ct_RANLIB
6710  fi
6711else
6712  RANLIB="$ac_cv_prog_RANLIB"
6713fi
6714
6715test -z "$RANLIB" && RANLIB=:
6716
6717
6718
6719
6720
6721
6722# Determine commands to create old-style static archives.
6723old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6724old_postinstall_cmds='chmod 644 $oldlib'
6725old_postuninstall_cmds=
6726
6727if test -n "$RANLIB"; then
6728  case $host_os in
6729  bitrig* | openbsd*)
6730    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6731    ;;
6732  *)
6733    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6734    ;;
6735  esac
6736  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6737fi
6738
6739case $host_os in
6740  darwin*)
6741    lock_old_archive_extraction=yes ;;
6742  *)
6743    lock_old_archive_extraction=no ;;
6744esac
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784# If no C compiler was specified, use CC.
6785LTCC=${LTCC-"$CC"}
6786
6787# If no C compiler flags were specified, use CFLAGS.
6788LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6789
6790# Allow CC to be a program name with arguments.
6791compiler=$CC
6792
6793
6794# Check for command to grab the raw symbol name followed by C symbol from nm.
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6796$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6797if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800
6801# These are sane defaults that work on at least a few old systems.
6802# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6803
6804# Character class describing NM global symbol codes.
6805symcode='[BCDEGRST]'
6806
6807# Regexp to match symbols that can be accessed directly from C.
6808sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6809
6810# Define system-specific variables.
6811case $host_os in
6812aix*)
6813  symcode='[BCDT]'
6814  ;;
6815cygwin* | mingw* | pw32* | cegcc*)
6816  symcode='[ABCDGISTW]'
6817  ;;
6818hpux*)
6819  if test ia64 = "$host_cpu"; then
6820    symcode='[ABCDEGRST]'
6821  fi
6822  ;;
6823irix* | nonstopux*)
6824  symcode='[BCDEGRST]'
6825  ;;
6826osf*)
6827  symcode='[BCDEGQRST]'
6828  ;;
6829solaris*)
6830  symcode='[BDRT]'
6831  ;;
6832sco3.2v5*)
6833  symcode='[DT]'
6834  ;;
6835sysv4.2uw2*)
6836  symcode='[DT]'
6837  ;;
6838sysv5* | sco5v6* | unixware* | OpenUNIX*)
6839  symcode='[ABDT]'
6840  ;;
6841sysv4)
6842  symcode='[DFNSTU]'
6843  ;;
6844esac
6845
6846# If we're using GNU nm, then use its standard symbol codes.
6847case `$NM -V 2>&1` in
6848*GNU* | *'with BFD'*)
6849  symcode='[ABCDGIRSTW]' ;;
6850esac
6851
6852if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6853  # Gets list of data symbols to import.
6854  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6855  # Adjust the below global symbol transforms to fixup imported variables.
6856  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6857  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6858  lt_c_name_lib_hook="\
6859  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6860  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6861else
6862  # Disable hooks by default.
6863  lt_cv_sys_global_symbol_to_import=
6864  lt_cdecl_hook=
6865  lt_c_name_hook=
6866  lt_c_name_lib_hook=
6867fi
6868
6869# Transform an extracted symbol line into a proper C declaration.
6870# Some systems (esp. on ia64) link data and code symbols differently,
6871# so use this general approach.
6872lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6873$lt_cdecl_hook\
6874" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6875" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6876
6877# Transform an extracted symbol line into symbol name and symbol address
6878lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6879$lt_c_name_hook\
6880" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6881" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6882
6883# Transform an extracted symbol line into symbol name with lib prefix and
6884# symbol address.
6885lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6886$lt_c_name_lib_hook\
6887" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6888" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6889" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6890
6891# Handle CRLF in mingw tool chain
6892opt_cr=
6893case $build_os in
6894mingw*)
6895  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6896  ;;
6897esac
6898
6899# Try without a prefix underscore, then with it.
6900for ac_symprfx in "" "_"; do
6901
6902  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6903  symxfrm="\\1 $ac_symprfx\\2 \\2"
6904
6905  # Write the raw and C identifiers.
6906  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6907    # Fake it for dumpbin and say T for any non-static function,
6908    # D for any global variable and I for any imported variable.
6909    # Also find C++ and __fastcall symbols from MSVC++,
6910    # which start with @ or ?.
6911    lt_cv_sys_global_symbol_pipe="$AWK '"\
6912"     {last_section=section; section=\$ 3};"\
6913"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6914"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6915"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6916"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6917"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6918"     \$ 0!~/External *\|/{next};"\
6919"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6920"     {if(hide[section]) next};"\
6921"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6922"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6923"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6924"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6925"     ' prfx=^$ac_symprfx"
6926  else
6927    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6928  fi
6929  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6930
6931  # Check to see that the pipe works correctly.
6932  pipe_works=no
6933
6934  rm -f conftest*
6935  cat > conftest.$ac_ext <<_LT_EOF
6936#ifdef __cplusplus
6937extern "C" {
6938#endif
6939char nm_test_var;
6940void nm_test_func(void);
6941void nm_test_func(void){}
6942#ifdef __cplusplus
6943}
6944#endif
6945int main(){nm_test_var='a';nm_test_func();return(0);}
6946_LT_EOF
6947
6948  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6949  (eval $ac_compile) 2>&5
6950  ac_status=$?
6951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952  test $ac_status = 0; }; then
6953    # Now try to grab the symbols.
6954    nlist=conftest.nm
6955    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6956  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6957  ac_status=$?
6958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959  test $ac_status = 0; } && test -s "$nlist"; then
6960      # Try sorting and uniquifying the output.
6961      if sort "$nlist" | uniq > "$nlist"T; then
6962	mv -f "$nlist"T "$nlist"
6963      else
6964	rm -f "$nlist"T
6965      fi
6966
6967      # Make sure that we snagged all the symbols we need.
6968      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6969	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6970	  cat <<_LT_EOF > conftest.$ac_ext
6971/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6972#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6973/* DATA imports from DLLs on WIN32 can't be const, because runtime
6974   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6975# define LT_DLSYM_CONST
6976#elif defined __osf__
6977/* This system does not cope well with relocations in const data.  */
6978# define LT_DLSYM_CONST
6979#else
6980# define LT_DLSYM_CONST const
6981#endif
6982
6983#ifdef __cplusplus
6984extern "C" {
6985#endif
6986
6987_LT_EOF
6988	  # Now generate the symbol file.
6989	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6990
6991	  cat <<_LT_EOF >> conftest.$ac_ext
6992
6993/* The mapping between symbol names and symbols.  */
6994LT_DLSYM_CONST struct {
6995  const char *name;
6996  void       *address;
6997}
6998lt__PROGRAM__LTX_preloaded_symbols[] =
6999{
7000  { "@PROGRAM@", (void *) 0 },
7001_LT_EOF
7002	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7003	  cat <<\_LT_EOF >> conftest.$ac_ext
7004  {0, (void *) 0}
7005};
7006
7007/* This works around a problem in FreeBSD linker */
7008#ifdef FREEBSD_WORKAROUND
7009static const void *lt_preloaded_setup() {
7010  return lt__PROGRAM__LTX_preloaded_symbols;
7011}
7012#endif
7013
7014#ifdef __cplusplus
7015}
7016#endif
7017_LT_EOF
7018	  # Now try linking the two files.
7019	  mv conftest.$ac_objext conftstm.$ac_objext
7020	  lt_globsym_save_LIBS=$LIBS
7021	  lt_globsym_save_CFLAGS=$CFLAGS
7022	  LIBS=conftstm.$ac_objext
7023	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7025  (eval $ac_link) 2>&5
7026  ac_status=$?
7027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7029	    pipe_works=yes
7030	  fi
7031	  LIBS=$lt_globsym_save_LIBS
7032	  CFLAGS=$lt_globsym_save_CFLAGS
7033	else
7034	  echo "cannot find nm_test_func in $nlist" >&5
7035	fi
7036      else
7037	echo "cannot find nm_test_var in $nlist" >&5
7038      fi
7039    else
7040      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7041    fi
7042  else
7043    echo "$progname: failed program was:" >&5
7044    cat conftest.$ac_ext >&5
7045  fi
7046  rm -rf conftest* conftst*
7047
7048  # Do not use the global_symbol_pipe unless it works.
7049  if test yes = "$pipe_works"; then
7050    break
7051  else
7052    lt_cv_sys_global_symbol_pipe=
7053  fi
7054done
7055
7056fi
7057
7058if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059  lt_cv_sys_global_symbol_to_cdecl=
7060fi
7061if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7063$as_echo "failed" >&6; }
7064else
7065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7066$as_echo "ok" >&6; }
7067fi
7068
7069# Response file support.
7070if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7071  nm_file_list_spec='@'
7072elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7073  nm_file_list_spec='@'
7074fi
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7113$as_echo_n "checking for sysroot... " >&6; }
7114
7115# Check whether --with-sysroot was given.
7116if test "${with_sysroot+set}" = set; then :
7117  withval=$with_sysroot;
7118else
7119  with_sysroot=no
7120fi
7121
7122
7123lt_sysroot=
7124case $with_sysroot in #(
7125 yes)
7126   if test yes = "$GCC"; then
7127     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7128   fi
7129   ;; #(
7130 /*)
7131   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7132   ;; #(
7133 no|'')
7134   ;; #(
7135 *)
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7137$as_echo "$with_sysroot" >&6; }
7138   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7139   ;;
7140esac
7141
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7143$as_echo "${lt_sysroot:-no}" >&6; }
7144
7145
7146
7147
7148
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7150$as_echo_n "checking for a working dd... " >&6; }
7151if ${ac_cv_path_lt_DD+:} false; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  printf 0123456789abcdef0123456789abcdef >conftest.i
7155cat conftest.i conftest.i >conftest2.i
7156: ${lt_DD:=$DD}
7157if test -z "$lt_DD"; then
7158  ac_path_lt_DD_found=false
7159  # Loop through the user's path and test for each of PROGNAME-LIST
7160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163  IFS=$as_save_IFS
7164  test -z "$as_dir" && as_dir=.
7165    for ac_prog in dd; do
7166    for ac_exec_ext in '' $ac_executable_extensions; do
7167      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7168      as_fn_executable_p "$ac_path_lt_DD" || continue
7169if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7170  cmp -s conftest.i conftest.out \
7171  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7172fi
7173      $ac_path_lt_DD_found && break 3
7174    done
7175  done
7176  done
7177IFS=$as_save_IFS
7178  if test -z "$ac_cv_path_lt_DD"; then
7179    :
7180  fi
7181else
7182  ac_cv_path_lt_DD=$lt_DD
7183fi
7184
7185rm -f conftest.i conftest2.i conftest.out
7186fi
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7188$as_echo "$ac_cv_path_lt_DD" >&6; }
7189
7190
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7192$as_echo_n "checking how to truncate binary pipes... " >&6; }
7193if ${lt_cv_truncate_bin+:} false; then :
7194  $as_echo_n "(cached) " >&6
7195else
7196  printf 0123456789abcdef0123456789abcdef >conftest.i
7197cat conftest.i conftest.i >conftest2.i
7198lt_cv_truncate_bin=
7199if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7200  cmp -s conftest.i conftest.out \
7201  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7202fi
7203rm -f conftest.i conftest2.i conftest.out
7204test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7207$as_echo "$lt_cv_truncate_bin" >&6; }
7208
7209
7210
7211
7212
7213
7214
7215# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7216func_cc_basename ()
7217{
7218    for cc_temp in $*""; do
7219      case $cc_temp in
7220        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7221        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7222        \-*) ;;
7223        *) break;;
7224      esac
7225    done
7226    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7227}
7228
7229# Check whether --enable-libtool-lock was given.
7230if test "${enable_libtool_lock+set}" = set; then :
7231  enableval=$enable_libtool_lock;
7232fi
7233
7234test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7235
7236# Some flags need to be propagated to the compiler or linker for good
7237# libtool support.
7238case $host in
7239ia64-*-hpux*)
7240  # Find out what ABI is being produced by ac_compile, and set mode
7241  # options accordingly.
7242  echo 'int i;' > conftest.$ac_ext
7243  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7244  (eval $ac_compile) 2>&5
7245  ac_status=$?
7246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7247  test $ac_status = 0; }; then
7248    case `/usr/bin/file conftest.$ac_objext` in
7249      *ELF-32*)
7250	HPUX_IA64_MODE=32
7251	;;
7252      *ELF-64*)
7253	HPUX_IA64_MODE=64
7254	;;
7255    esac
7256  fi
7257  rm -rf conftest*
7258  ;;
7259*-*-irix6*)
7260  # Find out what ABI is being produced by ac_compile, and set linker
7261  # options accordingly.
7262  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7263  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7264  (eval $ac_compile) 2>&5
7265  ac_status=$?
7266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267  test $ac_status = 0; }; then
7268    if test yes = "$lt_cv_prog_gnu_ld"; then
7269      case `/usr/bin/file conftest.$ac_objext` in
7270	*32-bit*)
7271	  LD="${LD-ld} -melf32bsmip"
7272	  ;;
7273	*N32*)
7274	  LD="${LD-ld} -melf32bmipn32"
7275	  ;;
7276	*64-bit*)
7277	  LD="${LD-ld} -melf64bmip"
7278	;;
7279      esac
7280    else
7281      case `/usr/bin/file conftest.$ac_objext` in
7282	*32-bit*)
7283	  LD="${LD-ld} -32"
7284	  ;;
7285	*N32*)
7286	  LD="${LD-ld} -n32"
7287	  ;;
7288	*64-bit*)
7289	  LD="${LD-ld} -64"
7290	  ;;
7291      esac
7292    fi
7293  fi
7294  rm -rf conftest*
7295  ;;
7296
7297mips64*-*linux*)
7298  # Find out what ABI is being produced by ac_compile, and set linker
7299  # options accordingly.
7300  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7301  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7302  (eval $ac_compile) 2>&5
7303  ac_status=$?
7304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305  test $ac_status = 0; }; then
7306    emul=elf
7307    case `/usr/bin/file conftest.$ac_objext` in
7308      *32-bit*)
7309	emul="${emul}32"
7310	;;
7311      *64-bit*)
7312	emul="${emul}64"
7313	;;
7314    esac
7315    case `/usr/bin/file conftest.$ac_objext` in
7316      *MSB*)
7317	emul="${emul}btsmip"
7318	;;
7319      *LSB*)
7320	emul="${emul}ltsmip"
7321	;;
7322    esac
7323    case `/usr/bin/file conftest.$ac_objext` in
7324      *N32*)
7325	emul="${emul}n32"
7326	;;
7327    esac
7328    LD="${LD-ld} -m $emul"
7329  fi
7330  rm -rf conftest*
7331  ;;
7332
7333x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7334s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7335  # Find out what ABI is being produced by ac_compile, and set linker
7336  # options accordingly.  Note that the listed cases only cover the
7337  # situations where additional linker options are needed (such as when
7338  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7339  # vice versa); the common cases where no linker options are needed do
7340  # not appear in the list.
7341  echo 'int i;' > conftest.$ac_ext
7342  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7343  (eval $ac_compile) 2>&5
7344  ac_status=$?
7345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346  test $ac_status = 0; }; then
7347    case `/usr/bin/file conftest.o` in
7348      *32-bit*)
7349	case $host in
7350	  x86_64-*kfreebsd*-gnu)
7351	    LD="${LD-ld} -m elf_i386_fbsd"
7352	    ;;
7353	  x86_64-*linux*)
7354	    case `/usr/bin/file conftest.o` in
7355	      *x86-64*)
7356		LD="${LD-ld} -m elf32_x86_64"
7357		;;
7358	      *)
7359		LD="${LD-ld} -m elf_i386"
7360		;;
7361	    esac
7362	    ;;
7363	  powerpc64le-*linux*)
7364	    LD="${LD-ld} -m elf32lppclinux"
7365	    ;;
7366	  powerpc64-*linux*)
7367	    LD="${LD-ld} -m elf32ppclinux"
7368	    ;;
7369	  s390x-*linux*)
7370	    LD="${LD-ld} -m elf_s390"
7371	    ;;
7372	  sparc64-*linux*)
7373	    LD="${LD-ld} -m elf32_sparc"
7374	    ;;
7375	esac
7376	;;
7377      *64-bit*)
7378	case $host in
7379	  x86_64-*kfreebsd*-gnu)
7380	    LD="${LD-ld} -m elf_x86_64_fbsd"
7381	    ;;
7382	  x86_64-*linux*)
7383	    LD="${LD-ld} -m elf_x86_64"
7384	    ;;
7385	  powerpcle-*linux*)
7386	    LD="${LD-ld} -m elf64lppc"
7387	    ;;
7388	  powerpc-*linux*)
7389	    LD="${LD-ld} -m elf64ppc"
7390	    ;;
7391	  s390*-*linux*|s390*-*tpf*)
7392	    LD="${LD-ld} -m elf64_s390"
7393	    ;;
7394	  sparc*-*linux*)
7395	    LD="${LD-ld} -m elf64_sparc"
7396	    ;;
7397	esac
7398	;;
7399    esac
7400  fi
7401  rm -rf conftest*
7402  ;;
7403
7404*-*-sco3.2v5*)
7405  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7406  SAVE_CFLAGS=$CFLAGS
7407  CFLAGS="$CFLAGS -belf"
7408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7409$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7410if ${lt_cv_cc_needs_belf+:} false; then :
7411  $as_echo_n "(cached) " >&6
7412else
7413  ac_ext=c
7414ac_cpp='$CPP $CPPFLAGS'
7415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7417ac_compiler_gnu=$ac_cv_c_compiler_gnu
7418
7419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h.  */
7421
7422int
7423main ()
7424{
7425
7426  ;
7427  return 0;
7428}
7429_ACEOF
7430if ac_fn_c_try_link "$LINENO"; then :
7431  lt_cv_cc_needs_belf=yes
7432else
7433  lt_cv_cc_needs_belf=no
7434fi
7435rm -f core conftest.err conftest.$ac_objext \
7436    conftest$ac_exeext conftest.$ac_ext
7437     ac_ext=c
7438ac_cpp='$CPP $CPPFLAGS'
7439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441ac_compiler_gnu=$ac_cv_c_compiler_gnu
7442
7443fi
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7445$as_echo "$lt_cv_cc_needs_belf" >&6; }
7446  if test yes != "$lt_cv_cc_needs_belf"; then
7447    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7448    CFLAGS=$SAVE_CFLAGS
7449  fi
7450  ;;
7451*-*solaris*)
7452  # Find out what ABI is being produced by ac_compile, and set linker
7453  # options accordingly.
7454  echo 'int i;' > conftest.$ac_ext
7455  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7456  (eval $ac_compile) 2>&5
7457  ac_status=$?
7458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459  test $ac_status = 0; }; then
7460    case `/usr/bin/file conftest.o` in
7461    *64-bit*)
7462      case $lt_cv_prog_gnu_ld in
7463      yes*)
7464        case $host in
7465        i?86-*-solaris*|x86_64-*-solaris*)
7466          LD="${LD-ld} -m elf_x86_64"
7467          ;;
7468        sparc*-*-solaris*)
7469          LD="${LD-ld} -m elf64_sparc"
7470          ;;
7471        esac
7472        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7473        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7474          LD=${LD-ld}_sol2
7475        fi
7476        ;;
7477      *)
7478	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7479	  LD="${LD-ld} -64"
7480	fi
7481	;;
7482      esac
7483      ;;
7484    esac
7485  fi
7486  rm -rf conftest*
7487  ;;
7488esac
7489
7490need_locks=$enable_libtool_lock
7491
7492if test -n "$ac_tool_prefix"; then
7493  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7494set dummy ${ac_tool_prefix}mt; ac_word=$2
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496$as_echo_n "checking for $ac_word... " >&6; }
7497if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7498  $as_echo_n "(cached) " >&6
7499else
7500  if test -n "$MANIFEST_TOOL"; then
7501  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7502else
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506  IFS=$as_save_IFS
7507  test -z "$as_dir" && as_dir=.
7508    for ac_exec_ext in '' $ac_executable_extensions; do
7509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512    break 2
7513  fi
7514done
7515  done
7516IFS=$as_save_IFS
7517
7518fi
7519fi
7520MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7521if test -n "$MANIFEST_TOOL"; then
7522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7523$as_echo "$MANIFEST_TOOL" >&6; }
7524else
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526$as_echo "no" >&6; }
7527fi
7528
7529
7530fi
7531if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7532  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7533  # Extract the first word of "mt", so it can be a program name with args.
7534set dummy mt; ac_word=$2
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536$as_echo_n "checking for $ac_word... " >&6; }
7537if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7538  $as_echo_n "(cached) " >&6
7539else
7540  if test -n "$ac_ct_MANIFEST_TOOL"; then
7541  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7542else
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546  IFS=$as_save_IFS
7547  test -z "$as_dir" && as_dir=.
7548    for ac_exec_ext in '' $ac_executable_extensions; do
7549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552    break 2
7553  fi
7554done
7555  done
7556IFS=$as_save_IFS
7557
7558fi
7559fi
7560ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7561if test -n "$ac_ct_MANIFEST_TOOL"; then
7562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7563$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7564else
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566$as_echo "no" >&6; }
7567fi
7568
7569  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7570    MANIFEST_TOOL=":"
7571  else
7572    case $cross_compiling:$ac_tool_warned in
7573yes:)
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576ac_tool_warned=yes ;;
7577esac
7578    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7579  fi
7580else
7581  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7582fi
7583
7584test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7586$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7587if ${lt_cv_path_mainfest_tool+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  lt_cv_path_mainfest_tool=no
7591  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7592  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7593  cat conftest.err >&5
7594  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7595    lt_cv_path_mainfest_tool=yes
7596  fi
7597  rm -f conftest*
7598fi
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7600$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7601if test yes != "$lt_cv_path_mainfest_tool"; then
7602  MANIFEST_TOOL=:
7603fi
7604
7605
7606
7607
7608
7609
7610  case $host_os in
7611    rhapsody* | darwin*)
7612    if test -n "$ac_tool_prefix"; then
7613  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7614set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if ${ac_cv_prog_DSYMUTIL+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  if test -n "$DSYMUTIL"; then
7621  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626  IFS=$as_save_IFS
7627  test -z "$as_dir" && as_dir=.
7628    for ac_exec_ext in '' $ac_executable_extensions; do
7629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632    break 2
7633  fi
7634done
7635  done
7636IFS=$as_save_IFS
7637
7638fi
7639fi
7640DSYMUTIL=$ac_cv_prog_DSYMUTIL
7641if test -n "$DSYMUTIL"; then
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7643$as_echo "$DSYMUTIL" >&6; }
7644else
7645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649
7650fi
7651if test -z "$ac_cv_prog_DSYMUTIL"; then
7652  ac_ct_DSYMUTIL=$DSYMUTIL
7653  # Extract the first word of "dsymutil", so it can be a program name with args.
7654set dummy dsymutil; ac_word=$2
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656$as_echo_n "checking for $ac_word... " >&6; }
7657if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7658  $as_echo_n "(cached) " >&6
7659else
7660  if test -n "$ac_ct_DSYMUTIL"; then
7661  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7662else
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666  IFS=$as_save_IFS
7667  test -z "$as_dir" && as_dir=.
7668    for ac_exec_ext in '' $ac_executable_extensions; do
7669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672    break 2
7673  fi
7674done
7675  done
7676IFS=$as_save_IFS
7677
7678fi
7679fi
7680ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7681if test -n "$ac_ct_DSYMUTIL"; then
7682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7683$as_echo "$ac_ct_DSYMUTIL" >&6; }
7684else
7685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
7687fi
7688
7689  if test "x$ac_ct_DSYMUTIL" = x; then
7690    DSYMUTIL=":"
7691  else
7692    case $cross_compiling:$ac_tool_warned in
7693yes:)
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696ac_tool_warned=yes ;;
7697esac
7698    DSYMUTIL=$ac_ct_DSYMUTIL
7699  fi
7700else
7701  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7702fi
7703
7704    if test -n "$ac_tool_prefix"; then
7705  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7706set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
7709if ${ac_cv_prog_NMEDIT+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  if test -n "$NMEDIT"; then
7713  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718  IFS=$as_save_IFS
7719  test -z "$as_dir" && as_dir=.
7720    for ac_exec_ext in '' $ac_executable_extensions; do
7721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724    break 2
7725  fi
7726done
7727  done
7728IFS=$as_save_IFS
7729
7730fi
7731fi
7732NMEDIT=$ac_cv_prog_NMEDIT
7733if test -n "$NMEDIT"; then
7734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7735$as_echo "$NMEDIT" >&6; }
7736else
7737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
7740
7741
7742fi
7743if test -z "$ac_cv_prog_NMEDIT"; then
7744  ac_ct_NMEDIT=$NMEDIT
7745  # Extract the first word of "nmedit", so it can be a program name with args.
7746set dummy nmedit; ac_word=$2
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748$as_echo_n "checking for $ac_word... " >&6; }
7749if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7750  $as_echo_n "(cached) " >&6
7751else
7752  if test -n "$ac_ct_NMEDIT"; then
7753  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7754else
7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758  IFS=$as_save_IFS
7759  test -z "$as_dir" && as_dir=.
7760    for ac_exec_ext in '' $ac_executable_extensions; do
7761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764    break 2
7765  fi
7766done
7767  done
7768IFS=$as_save_IFS
7769
7770fi
7771fi
7772ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7773if test -n "$ac_ct_NMEDIT"; then
7774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7775$as_echo "$ac_ct_NMEDIT" >&6; }
7776else
7777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778$as_echo "no" >&6; }
7779fi
7780
7781  if test "x$ac_ct_NMEDIT" = x; then
7782    NMEDIT=":"
7783  else
7784    case $cross_compiling:$ac_tool_warned in
7785yes:)
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788ac_tool_warned=yes ;;
7789esac
7790    NMEDIT=$ac_ct_NMEDIT
7791  fi
7792else
7793  NMEDIT="$ac_cv_prog_NMEDIT"
7794fi
7795
7796    if test -n "$ac_tool_prefix"; then
7797  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7798set dummy ${ac_tool_prefix}lipo; ac_word=$2
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800$as_echo_n "checking for $ac_word... " >&6; }
7801if ${ac_cv_prog_LIPO+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  if test -n "$LIPO"; then
7805  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810  IFS=$as_save_IFS
7811  test -z "$as_dir" && as_dir=.
7812    for ac_exec_ext in '' $ac_executable_extensions; do
7813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816    break 2
7817  fi
7818done
7819  done
7820IFS=$as_save_IFS
7821
7822fi
7823fi
7824LIPO=$ac_cv_prog_LIPO
7825if test -n "$LIPO"; then
7826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7827$as_echo "$LIPO" >&6; }
7828else
7829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
7832
7833
7834fi
7835if test -z "$ac_cv_prog_LIPO"; then
7836  ac_ct_LIPO=$LIPO
7837  # Extract the first word of "lipo", so it can be a program name with args.
7838set dummy lipo; ac_word=$2
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840$as_echo_n "checking for $ac_word... " >&6; }
7841if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7842  $as_echo_n "(cached) " >&6
7843else
7844  if test -n "$ac_ct_LIPO"; then
7845  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7846else
7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850  IFS=$as_save_IFS
7851  test -z "$as_dir" && as_dir=.
7852    for ac_exec_ext in '' $ac_executable_extensions; do
7853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854    ac_cv_prog_ac_ct_LIPO="lipo"
7855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856    break 2
7857  fi
7858done
7859  done
7860IFS=$as_save_IFS
7861
7862fi
7863fi
7864ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7865if test -n "$ac_ct_LIPO"; then
7866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7867$as_echo "$ac_ct_LIPO" >&6; }
7868else
7869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870$as_echo "no" >&6; }
7871fi
7872
7873  if test "x$ac_ct_LIPO" = x; then
7874    LIPO=":"
7875  else
7876    case $cross_compiling:$ac_tool_warned in
7877yes:)
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880ac_tool_warned=yes ;;
7881esac
7882    LIPO=$ac_ct_LIPO
7883  fi
7884else
7885  LIPO="$ac_cv_prog_LIPO"
7886fi
7887
7888    if test -n "$ac_tool_prefix"; then
7889  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7890set dummy ${ac_tool_prefix}otool; ac_word=$2
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if ${ac_cv_prog_OTOOL+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  if test -n "$OTOOL"; then
7897  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902  IFS=$as_save_IFS
7903  test -z "$as_dir" && as_dir=.
7904    for ac_exec_ext in '' $ac_executable_extensions; do
7905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908    break 2
7909  fi
7910done
7911  done
7912IFS=$as_save_IFS
7913
7914fi
7915fi
7916OTOOL=$ac_cv_prog_OTOOL
7917if test -n "$OTOOL"; then
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7919$as_echo "$OTOOL" >&6; }
7920else
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925
7926fi
7927if test -z "$ac_cv_prog_OTOOL"; then
7928  ac_ct_OTOOL=$OTOOL
7929  # Extract the first word of "otool", so it can be a program name with args.
7930set dummy otool; ac_word=$2
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932$as_echo_n "checking for $ac_word... " >&6; }
7933if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  if test -n "$ac_ct_OTOOL"; then
7937  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7938else
7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942  IFS=$as_save_IFS
7943  test -z "$as_dir" && as_dir=.
7944    for ac_exec_ext in '' $ac_executable_extensions; do
7945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946    ac_cv_prog_ac_ct_OTOOL="otool"
7947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948    break 2
7949  fi
7950done
7951  done
7952IFS=$as_save_IFS
7953
7954fi
7955fi
7956ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7957if test -n "$ac_ct_OTOOL"; then
7958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7959$as_echo "$ac_ct_OTOOL" >&6; }
7960else
7961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962$as_echo "no" >&6; }
7963fi
7964
7965  if test "x$ac_ct_OTOOL" = x; then
7966    OTOOL=":"
7967  else
7968    case $cross_compiling:$ac_tool_warned in
7969yes:)
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972ac_tool_warned=yes ;;
7973esac
7974    OTOOL=$ac_ct_OTOOL
7975  fi
7976else
7977  OTOOL="$ac_cv_prog_OTOOL"
7978fi
7979
7980    if test -n "$ac_tool_prefix"; then
7981  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7982set dummy ${ac_tool_prefix}otool64; ac_word=$2
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984$as_echo_n "checking for $ac_word... " >&6; }
7985if ${ac_cv_prog_OTOOL64+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  if test -n "$OTOOL64"; then
7989  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7990else
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994  IFS=$as_save_IFS
7995  test -z "$as_dir" && as_dir=.
7996    for ac_exec_ext in '' $ac_executable_extensions; do
7997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000    break 2
8001  fi
8002done
8003  done
8004IFS=$as_save_IFS
8005
8006fi
8007fi
8008OTOOL64=$ac_cv_prog_OTOOL64
8009if test -n "$OTOOL64"; then
8010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8011$as_echo "$OTOOL64" >&6; }
8012else
8013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
8015fi
8016
8017
8018fi
8019if test -z "$ac_cv_prog_OTOOL64"; then
8020  ac_ct_OTOOL64=$OTOOL64
8021  # Extract the first word of "otool64", so it can be a program name with args.
8022set dummy otool64; ac_word=$2
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
8025if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8026  $as_echo_n "(cached) " >&6
8027else
8028  if test -n "$ac_ct_OTOOL64"; then
8029  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8030else
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034  IFS=$as_save_IFS
8035  test -z "$as_dir" && as_dir=.
8036    for ac_exec_ext in '' $ac_executable_extensions; do
8037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038    ac_cv_prog_ac_ct_OTOOL64="otool64"
8039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040    break 2
8041  fi
8042done
8043  done
8044IFS=$as_save_IFS
8045
8046fi
8047fi
8048ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8049if test -n "$ac_ct_OTOOL64"; then
8050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8051$as_echo "$ac_ct_OTOOL64" >&6; }
8052else
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
8055fi
8056
8057  if test "x$ac_ct_OTOOL64" = x; then
8058    OTOOL64=":"
8059  else
8060    case $cross_compiling:$ac_tool_warned in
8061yes:)
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064ac_tool_warned=yes ;;
8065esac
8066    OTOOL64=$ac_ct_OTOOL64
8067  fi
8068else
8069  OTOOL64="$ac_cv_prog_OTOOL64"
8070fi
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8099$as_echo_n "checking for -single_module linker flag... " >&6; }
8100if ${lt_cv_apple_cc_single_mod+:} false; then :
8101  $as_echo_n "(cached) " >&6
8102else
8103  lt_cv_apple_cc_single_mod=no
8104      if test -z "$LT_MULTI_MODULE"; then
8105	# By default we will add the -single_module flag. You can override
8106	# by either setting the environment variable LT_MULTI_MODULE
8107	# non-empty at configure time, or by adding -multi_module to the
8108	# link flags.
8109	rm -rf libconftest.dylib*
8110	echo "int foo(void){return 1;}" > conftest.c
8111	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8112-dynamiclib -Wl,-single_module conftest.c" >&5
8113	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8114	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8115        _lt_result=$?
8116	# If there is a non-empty error log, and "single_module"
8117	# appears in it, assume the flag caused a linker warning
8118        if test -s conftest.err && $GREP single_module conftest.err; then
8119	  cat conftest.err >&5
8120	# Otherwise, if the output was created with a 0 exit code from
8121	# the compiler, it worked.
8122	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8123	  lt_cv_apple_cc_single_mod=yes
8124	else
8125	  cat conftest.err >&5
8126	fi
8127	rm -rf libconftest.dylib*
8128	rm -f conftest.*
8129      fi
8130fi
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8132$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8133
8134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8135$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8136if ${lt_cv_ld_exported_symbols_list+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  lt_cv_ld_exported_symbols_list=no
8140      save_LDFLAGS=$LDFLAGS
8141      echo "_main" > conftest.sym
8142      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8143      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h.  */
8145
8146int
8147main ()
8148{
8149
8150  ;
8151  return 0;
8152}
8153_ACEOF
8154if ac_fn_c_try_link "$LINENO"; then :
8155  lt_cv_ld_exported_symbols_list=yes
8156else
8157  lt_cv_ld_exported_symbols_list=no
8158fi
8159rm -f core conftest.err conftest.$ac_objext \
8160    conftest$ac_exeext conftest.$ac_ext
8161	LDFLAGS=$save_LDFLAGS
8162
8163fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8165$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8166
8167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8168$as_echo_n "checking for -force_load linker flag... " >&6; }
8169if ${lt_cv_ld_force_load+:} false; then :
8170  $as_echo_n "(cached) " >&6
8171else
8172  lt_cv_ld_force_load=no
8173      cat > conftest.c << _LT_EOF
8174int forced_loaded() { return 2;}
8175_LT_EOF
8176      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8177      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8178      echo "$AR cru libconftest.a conftest.o" >&5
8179      $AR cru libconftest.a conftest.o 2>&5
8180      echo "$RANLIB libconftest.a" >&5
8181      $RANLIB libconftest.a 2>&5
8182      cat > conftest.c << _LT_EOF
8183int main() { return 0;}
8184_LT_EOF
8185      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8186      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8187      _lt_result=$?
8188      if test -s conftest.err && $GREP force_load conftest.err; then
8189	cat conftest.err >&5
8190      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8191	lt_cv_ld_force_load=yes
8192      else
8193	cat conftest.err >&5
8194      fi
8195        rm -f conftest.err libconftest.a conftest conftest.c
8196        rm -rf conftest.dSYM
8197
8198fi
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8200$as_echo "$lt_cv_ld_force_load" >&6; }
8201    case $host_os in
8202    rhapsody* | darwin1.[012])
8203      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8204    darwin1.*)
8205      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8206    darwin*) # darwin 5.x on
8207      # if running on 10.5 or later, the deployment target defaults
8208      # to the OS version, if on x86, and 10.4, the deployment
8209      # target defaults to 10.4. Don't you love it?
8210      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8211	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8212	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8213	10.[012][,.]*)
8214	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8215	10.*)
8216	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8217      esac
8218    ;;
8219  esac
8220    if test yes = "$lt_cv_apple_cc_single_mod"; then
8221      _lt_dar_single_mod='$single_module'
8222    fi
8223    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8224      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8225    else
8226      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8227    fi
8228    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8229      _lt_dsymutil='~$DSYMUTIL $lib || :'
8230    else
8231      _lt_dsymutil=
8232    fi
8233    ;;
8234  esac
8235
8236# func_munge_path_list VARIABLE PATH
8237# -----------------------------------
8238# VARIABLE is name of variable containing _space_ separated list of
8239# directories to be munged by the contents of PATH, which is string
8240# having a format:
8241# "DIR[:DIR]:"
8242#       string "DIR[ DIR]" will be prepended to VARIABLE
8243# ":DIR[:DIR]"
8244#       string "DIR[ DIR]" will be appended to VARIABLE
8245# "DIRP[:DIRP]::[DIRA:]DIRA"
8246#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8247#       "DIRA[ DIRA]" will be appended to VARIABLE
8248# "DIR[:DIR]"
8249#       VARIABLE will be replaced by "DIR[ DIR]"
8250func_munge_path_list ()
8251{
8252    case x$2 in
8253    x)
8254        ;;
8255    *:)
8256        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8257        ;;
8258    x:*)
8259        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8260        ;;
8261    *::*)
8262        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8263        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8264        ;;
8265    *)
8266        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8267        ;;
8268    esac
8269}
8270
8271for ac_header in dlfcn.h
8272do :
8273  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8274"
8275if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8276  cat >>confdefs.h <<_ACEOF
8277#define HAVE_DLFCN_H 1
8278_ACEOF
8279
8280fi
8281
8282done
8283
8284
8285
8286
8287
8288# Set options
8289
8290
8291
8292        enable_dlopen=no
8293
8294
8295  enable_win32_dll=no
8296
8297
8298            # Check whether --enable-shared was given.
8299if test "${enable_shared+set}" = set; then :
8300  enableval=$enable_shared; p=${PACKAGE-default}
8301    case $enableval in
8302    yes) enable_shared=yes ;;
8303    no) enable_shared=no ;;
8304    *)
8305      enable_shared=no
8306      # Look at the argument we got.  We use all the common list separators.
8307      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8308      for pkg in $enableval; do
8309	IFS=$lt_save_ifs
8310	if test "X$pkg" = "X$p"; then
8311	  enable_shared=yes
8312	fi
8313      done
8314      IFS=$lt_save_ifs
8315      ;;
8316    esac
8317else
8318  enable_shared=yes
8319fi
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329  # Check whether --enable-static was given.
8330if test "${enable_static+set}" = set; then :
8331  enableval=$enable_static; p=${PACKAGE-default}
8332    case $enableval in
8333    yes) enable_static=yes ;;
8334    no) enable_static=no ;;
8335    *)
8336     enable_static=no
8337      # Look at the argument we got.  We use all the common list separators.
8338      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8339      for pkg in $enableval; do
8340	IFS=$lt_save_ifs
8341	if test "X$pkg" = "X$p"; then
8342	  enable_static=yes
8343	fi
8344      done
8345      IFS=$lt_save_ifs
8346      ;;
8347    esac
8348else
8349  enable_static=yes
8350fi
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361# Check whether --with-pic was given.
8362if test "${with_pic+set}" = set; then :
8363  withval=$with_pic; lt_p=${PACKAGE-default}
8364    case $withval in
8365    yes|no) pic_mode=$withval ;;
8366    *)
8367      pic_mode=default
8368      # Look at the argument we got.  We use all the common list separators.
8369      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8370      for lt_pkg in $withval; do
8371	IFS=$lt_save_ifs
8372	if test "X$lt_pkg" = "X$lt_p"; then
8373	  pic_mode=yes
8374	fi
8375      done
8376      IFS=$lt_save_ifs
8377      ;;
8378    esac
8379else
8380  pic_mode=default
8381fi
8382
8383
8384
8385
8386
8387
8388
8389
8390  # Check whether --enable-fast-install was given.
8391if test "${enable_fast_install+set}" = set; then :
8392  enableval=$enable_fast_install; p=${PACKAGE-default}
8393    case $enableval in
8394    yes) enable_fast_install=yes ;;
8395    no) enable_fast_install=no ;;
8396    *)
8397      enable_fast_install=no
8398      # Look at the argument we got.  We use all the common list separators.
8399      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8400      for pkg in $enableval; do
8401	IFS=$lt_save_ifs
8402	if test "X$pkg" = "X$p"; then
8403	  enable_fast_install=yes
8404	fi
8405      done
8406      IFS=$lt_save_ifs
8407      ;;
8408    esac
8409else
8410  enable_fast_install=yes
8411fi
8412
8413
8414
8415
8416
8417
8418
8419
8420  shared_archive_member_spec=
8421case $host,$enable_shared in
8422power*-*-aix[5-9]*,yes)
8423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8424$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8425
8426# Check whether --with-aix-soname was given.
8427if test "${with_aix_soname+set}" = set; then :
8428  withval=$with_aix_soname; case $withval in
8429    aix|svr4|both)
8430      ;;
8431    *)
8432      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8433      ;;
8434    esac
8435    lt_cv_with_aix_soname=$with_aix_soname
8436else
8437  if ${lt_cv_with_aix_soname+:} false; then :
8438  $as_echo_n "(cached) " >&6
8439else
8440  lt_cv_with_aix_soname=aix
8441fi
8442
8443    with_aix_soname=$lt_cv_with_aix_soname
8444fi
8445
8446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8447$as_echo "$with_aix_soname" >&6; }
8448  if test aix != "$with_aix_soname"; then
8449    # For the AIX way of multilib, we name the shared archive member
8450    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8451    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8452    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8453    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8454    if test 64 = "${OBJECT_MODE-32}"; then
8455      shared_archive_member_spec=shr_64
8456    else
8457      shared_archive_member_spec=shr
8458    fi
8459  fi
8460  ;;
8461*)
8462  with_aix_soname=aix
8463  ;;
8464esac
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475# This can be used to rebuild libtool when needed
8476LIBTOOL_DEPS=$ltmain
8477
8478# Always use our own libtool.
8479LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510test -z "$LN_S" && LN_S="ln -s"
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525if test -n "${ZSH_VERSION+set}"; then
8526   setopt NO_GLOB_SUBST
8527fi
8528
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8530$as_echo_n "checking for objdir... " >&6; }
8531if ${lt_cv_objdir+:} false; then :
8532  $as_echo_n "(cached) " >&6
8533else
8534  rm -f .libs 2>/dev/null
8535mkdir .libs 2>/dev/null
8536if test -d .libs; then
8537  lt_cv_objdir=.libs
8538else
8539  # MS-DOS does not allow filenames that begin with a dot.
8540  lt_cv_objdir=_libs
8541fi
8542rmdir .libs 2>/dev/null
8543fi
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8545$as_echo "$lt_cv_objdir" >&6; }
8546objdir=$lt_cv_objdir
8547
8548
8549
8550
8551
8552cat >>confdefs.h <<_ACEOF
8553#define LT_OBJDIR "$lt_cv_objdir/"
8554_ACEOF
8555
8556
8557
8558
8559case $host_os in
8560aix3*)
8561  # AIX sometimes has problems with the GCC collect2 program.  For some
8562  # reason, if we set the COLLECT_NAMES environment variable, the problems
8563  # vanish in a puff of smoke.
8564  if test set != "${COLLECT_NAMES+set}"; then
8565    COLLECT_NAMES=
8566    export COLLECT_NAMES
8567  fi
8568  ;;
8569esac
8570
8571# Global variables:
8572ofile=libtool
8573can_build_shared=yes
8574
8575# All known linkers require a '.a' archive for static linking (except MSVC,
8576# which needs '.lib').
8577libext=a
8578
8579with_gnu_ld=$lt_cv_prog_gnu_ld
8580
8581old_CC=$CC
8582old_CFLAGS=$CFLAGS
8583
8584# Set sane defaults for various variables
8585test -z "$CC" && CC=cc
8586test -z "$LTCC" && LTCC=$CC
8587test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8588test -z "$LD" && LD=ld
8589test -z "$ac_objext" && ac_objext=o
8590
8591func_cc_basename $compiler
8592cc_basename=$func_cc_basename_result
8593
8594
8595# Only perform the check for file, if the check method requires it
8596test -z "$MAGIC_CMD" && MAGIC_CMD=file
8597case $deplibs_check_method in
8598file_magic*)
8599  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8601$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8602if ${lt_cv_path_MAGIC_CMD+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  case $MAGIC_CMD in
8606[\\/*] |  ?:[\\/]*)
8607  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8608  ;;
8609*)
8610  lt_save_MAGIC_CMD=$MAGIC_CMD
8611  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8612  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8613  for ac_dir in $ac_dummy; do
8614    IFS=$lt_save_ifs
8615    test -z "$ac_dir" && ac_dir=.
8616    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8617      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8618      if test -n "$file_magic_test_file"; then
8619	case $deplibs_check_method in
8620	"file_magic "*)
8621	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8622	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8623	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8624	    $EGREP "$file_magic_regex" > /dev/null; then
8625	    :
8626	  else
8627	    cat <<_LT_EOF 1>&2
8628
8629*** Warning: the command libtool uses to detect shared libraries,
8630*** $file_magic_cmd, produces output that libtool cannot recognize.
8631*** The result is that libtool may fail to recognize shared libraries
8632*** as such.  This will affect the creation of libtool libraries that
8633*** depend on shared libraries, but programs linked with such libtool
8634*** libraries will work regardless of this problem.  Nevertheless, you
8635*** may want to report the problem to your system manager and/or to
8636*** bug-libtool@gnu.org
8637
8638_LT_EOF
8639	  fi ;;
8640	esac
8641      fi
8642      break
8643    fi
8644  done
8645  IFS=$lt_save_ifs
8646  MAGIC_CMD=$lt_save_MAGIC_CMD
8647  ;;
8648esac
8649fi
8650
8651MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8652if test -n "$MAGIC_CMD"; then
8653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8654$as_echo "$MAGIC_CMD" >&6; }
8655else
8656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657$as_echo "no" >&6; }
8658fi
8659
8660
8661
8662
8663
8664if test -z "$lt_cv_path_MAGIC_CMD"; then
8665  if test -n "$ac_tool_prefix"; then
8666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8667$as_echo_n "checking for file... " >&6; }
8668if ${lt_cv_path_MAGIC_CMD+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  case $MAGIC_CMD in
8672[\\/*] |  ?:[\\/]*)
8673  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8674  ;;
8675*)
8676  lt_save_MAGIC_CMD=$MAGIC_CMD
8677  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8678  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8679  for ac_dir in $ac_dummy; do
8680    IFS=$lt_save_ifs
8681    test -z "$ac_dir" && ac_dir=.
8682    if test -f "$ac_dir/file"; then
8683      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8684      if test -n "$file_magic_test_file"; then
8685	case $deplibs_check_method in
8686	"file_magic "*)
8687	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8688	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8689	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8690	    $EGREP "$file_magic_regex" > /dev/null; then
8691	    :
8692	  else
8693	    cat <<_LT_EOF 1>&2
8694
8695*** Warning: the command libtool uses to detect shared libraries,
8696*** $file_magic_cmd, produces output that libtool cannot recognize.
8697*** The result is that libtool may fail to recognize shared libraries
8698*** as such.  This will affect the creation of libtool libraries that
8699*** depend on shared libraries, but programs linked with such libtool
8700*** libraries will work regardless of this problem.  Nevertheless, you
8701*** may want to report the problem to your system manager and/or to
8702*** bug-libtool@gnu.org
8703
8704_LT_EOF
8705	  fi ;;
8706	esac
8707      fi
8708      break
8709    fi
8710  done
8711  IFS=$lt_save_ifs
8712  MAGIC_CMD=$lt_save_MAGIC_CMD
8713  ;;
8714esac
8715fi
8716
8717MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8718if test -n "$MAGIC_CMD"; then
8719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8720$as_echo "$MAGIC_CMD" >&6; }
8721else
8722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723$as_echo "no" >&6; }
8724fi
8725
8726
8727  else
8728    MAGIC_CMD=:
8729  fi
8730fi
8731
8732  fi
8733  ;;
8734esac
8735
8736# Use C for the default configuration in the libtool script
8737
8738lt_save_CC=$CC
8739ac_ext=c
8740ac_cpp='$CPP $CPPFLAGS'
8741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8743ac_compiler_gnu=$ac_cv_c_compiler_gnu
8744
8745
8746# Source file extension for C test sources.
8747ac_ext=c
8748
8749# Object file extension for compiled C test sources.
8750objext=o
8751objext=$objext
8752
8753# Code to be used in simple compile tests
8754lt_simple_compile_test_code="int some_variable = 0;"
8755
8756# Code to be used in simple link tests
8757lt_simple_link_test_code='int main(){return(0);}'
8758
8759
8760
8761
8762
8763
8764
8765# If no C compiler was specified, use CC.
8766LTCC=${LTCC-"$CC"}
8767
8768# If no C compiler flags were specified, use CFLAGS.
8769LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8770
8771# Allow CC to be a program name with arguments.
8772compiler=$CC
8773
8774# Save the default compiler, since it gets overwritten when the other
8775# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8776compiler_DEFAULT=$CC
8777
8778# save warnings/boilerplate of simple test code
8779ac_outfile=conftest.$ac_objext
8780echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8781eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8782_lt_compiler_boilerplate=`cat conftest.err`
8783$RM conftest*
8784
8785ac_outfile=conftest.$ac_objext
8786echo "$lt_simple_link_test_code" >conftest.$ac_ext
8787eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8788_lt_linker_boilerplate=`cat conftest.err`
8789$RM -r conftest*
8790
8791
8792## CAVEAT EMPTOR:
8793## There is no encapsulation within the following macros, do not change
8794## the running order or otherwise move them around unless you know exactly
8795## what you are doing...
8796if test -n "$compiler"; then
8797
8798lt_prog_compiler_no_builtin_flag=
8799
8800if test yes = "$GCC"; then
8801  case $cc_basename in
8802  nvcc*)
8803    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8804  *)
8805    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8806  esac
8807
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8809$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8810if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8811  $as_echo_n "(cached) " >&6
8812else
8813  lt_cv_prog_compiler_rtti_exceptions=no
8814   ac_outfile=conftest.$ac_objext
8815   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8816   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8817   # Insert the option either (1) after the last *FLAGS variable, or
8818   # (2) before a word containing "conftest.", or (3) at the end.
8819   # Note that $ac_compile itself does not contain backslashes and begins
8820   # with a dollar sign (not a hyphen), so the echo should work correctly.
8821   # The option is referenced via a variable to avoid confusing sed.
8822   lt_compile=`echo "$ac_compile" | $SED \
8823   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8824   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8825   -e 's:$: $lt_compiler_flag:'`
8826   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8827   (eval "$lt_compile" 2>conftest.err)
8828   ac_status=$?
8829   cat conftest.err >&5
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   if (exit $ac_status) && test -s "$ac_outfile"; then
8832     # The compiler can only warn and ignore the option if not recognized
8833     # So say no if there are warnings other than the usual output.
8834     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8835     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8836     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8837       lt_cv_prog_compiler_rtti_exceptions=yes
8838     fi
8839   fi
8840   $RM conftest*
8841
8842fi
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8844$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8845
8846if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8847    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8848else
8849    :
8850fi
8851
8852fi
8853
8854
8855
8856
8857
8858
8859  lt_prog_compiler_wl=
8860lt_prog_compiler_pic=
8861lt_prog_compiler_static=
8862
8863
8864  if test yes = "$GCC"; then
8865    lt_prog_compiler_wl='-Wl,'
8866    lt_prog_compiler_static='-static'
8867
8868    case $host_os in
8869      aix*)
8870      # All AIX code is PIC.
8871      if test ia64 = "$host_cpu"; then
8872	# AIX 5 now supports IA64 processor
8873	lt_prog_compiler_static='-Bstatic'
8874      fi
8875      lt_prog_compiler_pic='-fPIC'
8876      ;;
8877
8878    amigaos*)
8879      case $host_cpu in
8880      powerpc)
8881            # see comment about AmigaOS4 .so support
8882            lt_prog_compiler_pic='-fPIC'
8883        ;;
8884      m68k)
8885            # FIXME: we need at least 68020 code to build shared libraries, but
8886            # adding the '-m68020' flag to GCC prevents building anything better,
8887            # like '-m68040'.
8888            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8889        ;;
8890      esac
8891      ;;
8892
8893    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8894      # PIC is the default for these OSes.
8895      ;;
8896
8897    mingw* | cygwin* | pw32* | os2* | cegcc*)
8898      # This hack is so that the source file can tell whether it is being
8899      # built for inclusion in a dll (and should export symbols for example).
8900      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8901      # (--disable-auto-import) libraries
8902      lt_prog_compiler_pic='-DDLL_EXPORT'
8903      case $host_os in
8904      os2*)
8905	lt_prog_compiler_static='$wl-static'
8906	;;
8907      esac
8908      ;;
8909
8910    darwin* | rhapsody*)
8911      # PIC is the default on this platform
8912      # Common symbols not allowed in MH_DYLIB files
8913      lt_prog_compiler_pic='-fno-common'
8914      ;;
8915
8916    haiku*)
8917      # PIC is the default for Haiku.
8918      # The "-static" flag exists, but is broken.
8919      lt_prog_compiler_static=
8920      ;;
8921
8922    hpux*)
8923      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8924      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8925      # sets the default TLS model and affects inlining.
8926      case $host_cpu in
8927      hppa*64*)
8928	# +Z the default
8929	;;
8930      *)
8931	lt_prog_compiler_pic='-fPIC'
8932	;;
8933      esac
8934      ;;
8935
8936    interix[3-9]*)
8937      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8938      # Instead, we relocate shared libraries at runtime.
8939      ;;
8940
8941    msdosdjgpp*)
8942      # Just because we use GCC doesn't mean we suddenly get shared libraries
8943      # on systems that don't support them.
8944      lt_prog_compiler_can_build_shared=no
8945      enable_shared=no
8946      ;;
8947
8948    *nto* | *qnx*)
8949      # QNX uses GNU C++, but need to define -shared option too, otherwise
8950      # it will coredump.
8951      lt_prog_compiler_pic='-fPIC -shared'
8952      ;;
8953
8954    sysv4*MP*)
8955      if test -d /usr/nec; then
8956	lt_prog_compiler_pic=-Kconform_pic
8957      fi
8958      ;;
8959
8960    *)
8961      lt_prog_compiler_pic='-fPIC'
8962      ;;
8963    esac
8964
8965    case $cc_basename in
8966    nvcc*) # Cuda Compiler Driver 2.2
8967      lt_prog_compiler_wl='-Xlinker '
8968      if test -n "$lt_prog_compiler_pic"; then
8969        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8970      fi
8971      ;;
8972    esac
8973  else
8974    # PORTME Check for flag to pass linker flags through the system compiler.
8975    case $host_os in
8976    aix*)
8977      lt_prog_compiler_wl='-Wl,'
8978      if test ia64 = "$host_cpu"; then
8979	# AIX 5 now supports IA64 processor
8980	lt_prog_compiler_static='-Bstatic'
8981      else
8982	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8983      fi
8984      ;;
8985
8986    darwin* | rhapsody*)
8987      # PIC is the default on this platform
8988      # Common symbols not allowed in MH_DYLIB files
8989      lt_prog_compiler_pic='-fno-common'
8990      case $cc_basename in
8991      nagfor*)
8992        # NAG Fortran compiler
8993        lt_prog_compiler_wl='-Wl,-Wl,,'
8994        lt_prog_compiler_pic='-PIC'
8995        lt_prog_compiler_static='-Bstatic'
8996        ;;
8997      esac
8998      ;;
8999
9000    mingw* | cygwin* | pw32* | os2* | cegcc*)
9001      # This hack is so that the source file can tell whether it is being
9002      # built for inclusion in a dll (and should export symbols for example).
9003      lt_prog_compiler_pic='-DDLL_EXPORT'
9004      case $host_os in
9005      os2*)
9006	lt_prog_compiler_static='$wl-static'
9007	;;
9008      esac
9009      ;;
9010
9011    hpux9* | hpux10* | hpux11*)
9012      lt_prog_compiler_wl='-Wl,'
9013      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9014      # not for PA HP-UX.
9015      case $host_cpu in
9016      hppa*64*|ia64*)
9017	# +Z the default
9018	;;
9019      *)
9020	lt_prog_compiler_pic='+Z'
9021	;;
9022      esac
9023      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9024      lt_prog_compiler_static='$wl-a ${wl}archive'
9025      ;;
9026
9027    irix5* | irix6* | nonstopux*)
9028      lt_prog_compiler_wl='-Wl,'
9029      # PIC (with -KPIC) is the default.
9030      lt_prog_compiler_static='-non_shared'
9031      ;;
9032
9033    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9034      case $cc_basename in
9035      # old Intel for x86_64, which still supported -KPIC.
9036      ecc*)
9037	lt_prog_compiler_wl='-Wl,'
9038	lt_prog_compiler_pic='-KPIC'
9039	lt_prog_compiler_static='-static'
9040        ;;
9041      # icc used to be incompatible with GCC.
9042      # ICC 10 doesn't accept -KPIC any more.
9043      icc* | ifort*)
9044	lt_prog_compiler_wl='-Wl,'
9045	lt_prog_compiler_pic='-fPIC'
9046	lt_prog_compiler_static='-static'
9047        ;;
9048      # Lahey Fortran 8.1.
9049      lf95*)
9050	lt_prog_compiler_wl='-Wl,'
9051	lt_prog_compiler_pic='--shared'
9052	lt_prog_compiler_static='--static'
9053	;;
9054      nagfor*)
9055	# NAG Fortran compiler
9056	lt_prog_compiler_wl='-Wl,-Wl,,'
9057	lt_prog_compiler_pic='-PIC'
9058	lt_prog_compiler_static='-Bstatic'
9059	;;
9060      tcc*)
9061	# Fabrice Bellard et al's Tiny C Compiler
9062	lt_prog_compiler_wl='-Wl,'
9063	lt_prog_compiler_pic='-fPIC'
9064	lt_prog_compiler_static='-static'
9065	;;
9066      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9067        # Portland Group compilers (*not* the Pentium gcc compiler,
9068	# which looks to be a dead project)
9069	lt_prog_compiler_wl='-Wl,'
9070	lt_prog_compiler_pic='-fpic'
9071	lt_prog_compiler_static='-Bstatic'
9072        ;;
9073      ccc*)
9074        lt_prog_compiler_wl='-Wl,'
9075        # All Alpha code is PIC.
9076        lt_prog_compiler_static='-non_shared'
9077        ;;
9078      xl* | bgxl* | bgf* | mpixl*)
9079	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9080	lt_prog_compiler_wl='-Wl,'
9081	lt_prog_compiler_pic='-qpic'
9082	lt_prog_compiler_static='-qstaticlink'
9083	;;
9084      *)
9085	case `$CC -V 2>&1 | sed 5q` in
9086	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9087	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9088	  lt_prog_compiler_pic='-KPIC'
9089	  lt_prog_compiler_static='-Bstatic'
9090	  lt_prog_compiler_wl=''
9091	  ;;
9092	*Sun\ F* | *Sun*Fortran*)
9093	  lt_prog_compiler_pic='-KPIC'
9094	  lt_prog_compiler_static='-Bstatic'
9095	  lt_prog_compiler_wl='-Qoption ld '
9096	  ;;
9097	*Sun\ C*)
9098	  # Sun C 5.9
9099	  lt_prog_compiler_pic='-KPIC'
9100	  lt_prog_compiler_static='-Bstatic'
9101	  lt_prog_compiler_wl='-Wl,'
9102	  ;;
9103        *Intel*\ [CF]*Compiler*)
9104	  lt_prog_compiler_wl='-Wl,'
9105	  lt_prog_compiler_pic='-fPIC'
9106	  lt_prog_compiler_static='-static'
9107	  ;;
9108	*Portland\ Group*)
9109	  lt_prog_compiler_wl='-Wl,'
9110	  lt_prog_compiler_pic='-fpic'
9111	  lt_prog_compiler_static='-Bstatic'
9112	  ;;
9113	esac
9114	;;
9115      esac
9116      ;;
9117
9118    newsos6)
9119      lt_prog_compiler_pic='-KPIC'
9120      lt_prog_compiler_static='-Bstatic'
9121      ;;
9122
9123    *nto* | *qnx*)
9124      # QNX uses GNU C++, but need to define -shared option too, otherwise
9125      # it will coredump.
9126      lt_prog_compiler_pic='-fPIC -shared'
9127      ;;
9128
9129    osf3* | osf4* | osf5*)
9130      lt_prog_compiler_wl='-Wl,'
9131      # All OSF/1 code is PIC.
9132      lt_prog_compiler_static='-non_shared'
9133      ;;
9134
9135    rdos*)
9136      lt_prog_compiler_static='-non_shared'
9137      ;;
9138
9139    solaris*)
9140      lt_prog_compiler_pic='-KPIC'
9141      lt_prog_compiler_static='-Bstatic'
9142      case $cc_basename in
9143      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9144	lt_prog_compiler_wl='-Qoption ld ';;
9145      *)
9146	lt_prog_compiler_wl='-Wl,';;
9147      esac
9148      ;;
9149
9150    sunos4*)
9151      lt_prog_compiler_wl='-Qoption ld '
9152      lt_prog_compiler_pic='-PIC'
9153      lt_prog_compiler_static='-Bstatic'
9154      ;;
9155
9156    sysv4 | sysv4.2uw2* | sysv4.3*)
9157      lt_prog_compiler_wl='-Wl,'
9158      lt_prog_compiler_pic='-KPIC'
9159      lt_prog_compiler_static='-Bstatic'
9160      ;;
9161
9162    sysv4*MP*)
9163      if test -d /usr/nec; then
9164	lt_prog_compiler_pic='-Kconform_pic'
9165	lt_prog_compiler_static='-Bstatic'
9166      fi
9167      ;;
9168
9169    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9170      lt_prog_compiler_wl='-Wl,'
9171      lt_prog_compiler_pic='-KPIC'
9172      lt_prog_compiler_static='-Bstatic'
9173      ;;
9174
9175    unicos*)
9176      lt_prog_compiler_wl='-Wl,'
9177      lt_prog_compiler_can_build_shared=no
9178      ;;
9179
9180    uts4*)
9181      lt_prog_compiler_pic='-pic'
9182      lt_prog_compiler_static='-Bstatic'
9183      ;;
9184
9185    *)
9186      lt_prog_compiler_can_build_shared=no
9187      ;;
9188    esac
9189  fi
9190
9191case $host_os in
9192  # For platforms that do not support PIC, -DPIC is meaningless:
9193  *djgpp*)
9194    lt_prog_compiler_pic=
9195    ;;
9196  *)
9197    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9198    ;;
9199esac
9200
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9202$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9203if ${lt_cv_prog_compiler_pic+:} false; then :
9204  $as_echo_n "(cached) " >&6
9205else
9206  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9207fi
9208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9209$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9210lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9211
9212#
9213# Check to make sure the PIC flag actually works.
9214#
9215if test -n "$lt_prog_compiler_pic"; then
9216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9217$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9218if ${lt_cv_prog_compiler_pic_works+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  lt_cv_prog_compiler_pic_works=no
9222   ac_outfile=conftest.$ac_objext
9223   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9225   # Insert the option either (1) after the last *FLAGS variable, or
9226   # (2) before a word containing "conftest.", or (3) at the end.
9227   # Note that $ac_compile itself does not contain backslashes and begins
9228   # with a dollar sign (not a hyphen), so the echo should work correctly.
9229   # The option is referenced via a variable to avoid confusing sed.
9230   lt_compile=`echo "$ac_compile" | $SED \
9231   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233   -e 's:$: $lt_compiler_flag:'`
9234   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235   (eval "$lt_compile" 2>conftest.err)
9236   ac_status=$?
9237   cat conftest.err >&5
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   if (exit $ac_status) && test -s "$ac_outfile"; then
9240     # The compiler can only warn and ignore the option if not recognized
9241     # So say no if there are warnings other than the usual output.
9242     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9243     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9244     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9245       lt_cv_prog_compiler_pic_works=yes
9246     fi
9247   fi
9248   $RM conftest*
9249
9250fi
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9252$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9253
9254if test yes = "$lt_cv_prog_compiler_pic_works"; then
9255    case $lt_prog_compiler_pic in
9256     "" | " "*) ;;
9257     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9258     esac
9259else
9260    lt_prog_compiler_pic=
9261     lt_prog_compiler_can_build_shared=no
9262fi
9263
9264fi
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276#
9277# Check to make sure the static flag actually works.
9278#
9279wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9281$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9282if ${lt_cv_prog_compiler_static_works+:} false; then :
9283  $as_echo_n "(cached) " >&6
9284else
9285  lt_cv_prog_compiler_static_works=no
9286   save_LDFLAGS=$LDFLAGS
9287   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9288   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9289   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9290     # The linker can only warn and ignore the option if not recognized
9291     # So say no if there are warnings
9292     if test -s conftest.err; then
9293       # Append any errors to the config.log.
9294       cat conftest.err 1>&5
9295       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9296       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9297       if diff conftest.exp conftest.er2 >/dev/null; then
9298         lt_cv_prog_compiler_static_works=yes
9299       fi
9300     else
9301       lt_cv_prog_compiler_static_works=yes
9302     fi
9303   fi
9304   $RM -r conftest*
9305   LDFLAGS=$save_LDFLAGS
9306
9307fi
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9309$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9310
9311if test yes = "$lt_cv_prog_compiler_static_works"; then
9312    :
9313else
9314    lt_prog_compiler_static=
9315fi
9316
9317
9318
9319
9320
9321
9322
9323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9324$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9325if ${lt_cv_prog_compiler_c_o+:} false; then :
9326  $as_echo_n "(cached) " >&6
9327else
9328  lt_cv_prog_compiler_c_o=no
9329   $RM -r conftest 2>/dev/null
9330   mkdir conftest
9331   cd conftest
9332   mkdir out
9333   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9334
9335   lt_compiler_flag="-o out/conftest2.$ac_objext"
9336   # Insert the option either (1) after the last *FLAGS variable, or
9337   # (2) before a word containing "conftest.", or (3) at the end.
9338   # Note that $ac_compile itself does not contain backslashes and begins
9339   # with a dollar sign (not a hyphen), so the echo should work correctly.
9340   lt_compile=`echo "$ac_compile" | $SED \
9341   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9342   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9343   -e 's:$: $lt_compiler_flag:'`
9344   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9345   (eval "$lt_compile" 2>out/conftest.err)
9346   ac_status=$?
9347   cat out/conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9350   then
9351     # The compiler can only warn and ignore the option if not recognized
9352     # So say no if there are warnings
9353     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9354     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9355     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9356       lt_cv_prog_compiler_c_o=yes
9357     fi
9358   fi
9359   chmod u+w . 2>&5
9360   $RM conftest*
9361   # SGI C++ compiler will create directory out/ii_files/ for
9362   # template instantiation
9363   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9364   $RM out/* && rmdir out
9365   cd ..
9366   $RM -r conftest
9367   $RM conftest*
9368
9369fi
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9371$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9372
9373
9374
9375
9376
9377
9378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9379$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9380if ${lt_cv_prog_compiler_c_o+:} false; then :
9381  $as_echo_n "(cached) " >&6
9382else
9383  lt_cv_prog_compiler_c_o=no
9384   $RM -r conftest 2>/dev/null
9385   mkdir conftest
9386   cd conftest
9387   mkdir out
9388   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9389
9390   lt_compiler_flag="-o out/conftest2.$ac_objext"
9391   # Insert the option either (1) after the last *FLAGS variable, or
9392   # (2) before a word containing "conftest.", or (3) at the end.
9393   # Note that $ac_compile itself does not contain backslashes and begins
9394   # with a dollar sign (not a hyphen), so the echo should work correctly.
9395   lt_compile=`echo "$ac_compile" | $SED \
9396   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9397   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9398   -e 's:$: $lt_compiler_flag:'`
9399   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9400   (eval "$lt_compile" 2>out/conftest.err)
9401   ac_status=$?
9402   cat out/conftest.err >&5
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9405   then
9406     # The compiler can only warn and ignore the option if not recognized
9407     # So say no if there are warnings
9408     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9409     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9410     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9411       lt_cv_prog_compiler_c_o=yes
9412     fi
9413   fi
9414   chmod u+w . 2>&5
9415   $RM conftest*
9416   # SGI C++ compiler will create directory out/ii_files/ for
9417   # template instantiation
9418   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9419   $RM out/* && rmdir out
9420   cd ..
9421   $RM -r conftest
9422   $RM conftest*
9423
9424fi
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9426$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9427
9428
9429
9430
9431hard_links=nottested
9432if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9433  # do not overwrite the value of need_locks provided by the user
9434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9435$as_echo_n "checking if we can lock with hard links... " >&6; }
9436  hard_links=yes
9437  $RM conftest*
9438  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9439  touch conftest.a
9440  ln conftest.a conftest.b 2>&5 || hard_links=no
9441  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9443$as_echo "$hard_links" >&6; }
9444  if test no = "$hard_links"; then
9445    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9446$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9447    need_locks=warn
9448  fi
9449else
9450  need_locks=no
9451fi
9452
9453
9454
9455
9456
9457
9458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9459$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9460
9461  runpath_var=
9462  allow_undefined_flag=
9463  always_export_symbols=no
9464  archive_cmds=
9465  archive_expsym_cmds=
9466  compiler_needs_object=no
9467  enable_shared_with_static_runtimes=no
9468  export_dynamic_flag_spec=
9469  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9470  hardcode_automatic=no
9471  hardcode_direct=no
9472  hardcode_direct_absolute=no
9473  hardcode_libdir_flag_spec=
9474  hardcode_libdir_separator=
9475  hardcode_minus_L=no
9476  hardcode_shlibpath_var=unsupported
9477  inherit_rpath=no
9478  link_all_deplibs=unknown
9479  module_cmds=
9480  module_expsym_cmds=
9481  old_archive_from_new_cmds=
9482  old_archive_from_expsyms_cmds=
9483  thread_safe_flag_spec=
9484  whole_archive_flag_spec=
9485  # include_expsyms should be a list of space-separated symbols to be *always*
9486  # included in the symbol list
9487  include_expsyms=
9488  # exclude_expsyms can be an extended regexp of symbols to exclude
9489  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9490  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9491  # as well as any symbol that contains 'd'.
9492  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9493  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9494  # platforms (ab)use it in PIC code, but their linkers get confused if
9495  # the symbol is explicitly referenced.  Since portable code cannot
9496  # rely on this symbol name, it's probably fine to never include it in
9497  # preloaded symbol tables.
9498  # Exclude shared library initialization/finalization symbols.
9499  extract_expsyms_cmds=
9500
9501  case $host_os in
9502  cygwin* | mingw* | pw32* | cegcc*)
9503    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9504    # When not using gcc, we currently assume that we are using
9505    # Microsoft Visual C++.
9506    if test yes != "$GCC"; then
9507      with_gnu_ld=no
9508    fi
9509    ;;
9510  interix*)
9511    # we just hope/assume this is gcc and not c89 (= MSVC++)
9512    with_gnu_ld=yes
9513    ;;
9514  openbsd* | bitrig*)
9515    with_gnu_ld=no
9516    ;;
9517  linux* | k*bsd*-gnu | gnu*)
9518    link_all_deplibs=no
9519    ;;
9520  esac
9521
9522  ld_shlibs=yes
9523
9524  # On some targets, GNU ld is compatible enough with the native linker
9525  # that we're better off using the native interface for both.
9526  lt_use_gnu_ld_interface=no
9527  if test yes = "$with_gnu_ld"; then
9528    case $host_os in
9529      aix*)
9530	# The AIX port of GNU ld has always aspired to compatibility
9531	# with the native linker.  However, as the warning in the GNU ld
9532	# block says, versions before 2.19.5* couldn't really create working
9533	# shared libraries, regardless of the interface used.
9534	case `$LD -v 2>&1` in
9535	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9536	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9537	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9538	  *)
9539	    lt_use_gnu_ld_interface=yes
9540	    ;;
9541	esac
9542	;;
9543      *)
9544	lt_use_gnu_ld_interface=yes
9545	;;
9546    esac
9547  fi
9548
9549  if test yes = "$lt_use_gnu_ld_interface"; then
9550    # If archive_cmds runs LD, not CC, wlarc should be empty
9551    wlarc='$wl'
9552
9553    # Set some defaults for GNU ld with shared library support. These
9554    # are reset later if shared libraries are not supported. Putting them
9555    # here allows them to be overridden if necessary.
9556    runpath_var=LD_RUN_PATH
9557    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9558    export_dynamic_flag_spec='$wl--export-dynamic'
9559    # ancient GNU ld didn't support --whole-archive et. al.
9560    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9561      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9562    else
9563      whole_archive_flag_spec=
9564    fi
9565    supports_anon_versioning=no
9566    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9567      *GNU\ gold*) supports_anon_versioning=yes ;;
9568      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9569      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9570      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9571      *\ 2.11.*) ;; # other 2.11 versions
9572      *) supports_anon_versioning=yes ;;
9573    esac
9574
9575    # See if GNU ld supports shared libraries.
9576    case $host_os in
9577    aix[3-9]*)
9578      # On AIX/PPC, the GNU linker is very broken
9579      if test ia64 != "$host_cpu"; then
9580	ld_shlibs=no
9581	cat <<_LT_EOF 1>&2
9582
9583*** Warning: the GNU linker, at least up to release 2.19, is reported
9584*** to be unable to reliably create shared libraries on AIX.
9585*** Therefore, libtool is disabling shared libraries support.  If you
9586*** really care for shared libraries, you may want to install binutils
9587*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9588*** You will then need to restart the configuration process.
9589
9590_LT_EOF
9591      fi
9592      ;;
9593
9594    amigaos*)
9595      case $host_cpu in
9596      powerpc)
9597            # see comment about AmigaOS4 .so support
9598            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9599            archive_expsym_cmds=''
9600        ;;
9601      m68k)
9602            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)'
9603            hardcode_libdir_flag_spec='-L$libdir'
9604            hardcode_minus_L=yes
9605        ;;
9606      esac
9607      ;;
9608
9609    beos*)
9610      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9611	allow_undefined_flag=unsupported
9612	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9613	# support --undefined.  This deserves some investigation.  FIXME
9614	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9615      else
9616	ld_shlibs=no
9617      fi
9618      ;;
9619
9620    cygwin* | mingw* | pw32* | cegcc*)
9621      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9622      # as there is no search path for DLLs.
9623      hardcode_libdir_flag_spec='-L$libdir'
9624      export_dynamic_flag_spec='$wl--export-all-symbols'
9625      allow_undefined_flag=unsupported
9626      always_export_symbols=no
9627      enable_shared_with_static_runtimes=yes
9628      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'
9629      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9630
9631      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9632        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9633	# If the export-symbols file already is a .def file, use it as
9634	# is; otherwise, prepend EXPORTS...
9635	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9636          cp $export_symbols $output_objdir/$soname.def;
9637        else
9638          echo EXPORTS > $output_objdir/$soname.def;
9639          cat $export_symbols >> $output_objdir/$soname.def;
9640        fi~
9641        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9642      else
9643	ld_shlibs=no
9644      fi
9645      ;;
9646
9647    haiku*)
9648      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9649      link_all_deplibs=yes
9650      ;;
9651
9652    os2*)
9653      hardcode_libdir_flag_spec='-L$libdir'
9654      hardcode_minus_L=yes
9655      allow_undefined_flag=unsupported
9656      shrext_cmds=.dll
9657      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9658	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9659	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9660	$ECHO EXPORTS >> $output_objdir/$libname.def~
9661	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9662	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9663	emximp -o $lib $output_objdir/$libname.def'
9664      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9665	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9666	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9667	$ECHO EXPORTS >> $output_objdir/$libname.def~
9668	prefix_cmds="$SED"~
9669	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9670	  prefix_cmds="$prefix_cmds -e 1d";
9671	fi~
9672	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9673	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9674	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9675	emximp -o $lib $output_objdir/$libname.def'
9676      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9677      enable_shared_with_static_runtimes=yes
9678      ;;
9679
9680    interix[3-9]*)
9681      hardcode_direct=no
9682      hardcode_shlibpath_var=no
9683      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9684      export_dynamic_flag_spec='$wl-E'
9685      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9686      # Instead, shared libraries are loaded at an image base (0x10000000 by
9687      # default) and relocated if they conflict, which is a slow very memory
9688      # consuming and fragmenting process.  To avoid this, we pick a random,
9689      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9690      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9691      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9692      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'
9693      ;;
9694
9695    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9696      tmp_diet=no
9697      if test linux-dietlibc = "$host_os"; then
9698	case $cc_basename in
9699	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9700	esac
9701      fi
9702      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9703	 && test no = "$tmp_diet"
9704      then
9705	tmp_addflag=' $pic_flag'
9706	tmp_sharedflag='-shared'
9707	case $cc_basename,$host_cpu in
9708        pgcc*)				# Portland Group C compiler
9709	  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'
9710	  tmp_addflag=' $pic_flag'
9711	  ;;
9712	pgf77* | pgf90* | pgf95* | pgfortran*)
9713					# Portland Group f77 and f90 compilers
9714	  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'
9715	  tmp_addflag=' $pic_flag -Mnomain' ;;
9716	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9717	  tmp_addflag=' -i_dynamic' ;;
9718	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9719	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9720	ifc* | ifort*)			# Intel Fortran compiler
9721	  tmp_addflag=' -nofor_main' ;;
9722	lf95*)				# Lahey Fortran 8.1
9723	  whole_archive_flag_spec=
9724	  tmp_sharedflag='--shared' ;;
9725        nagfor*)                        # NAGFOR 5.3
9726          tmp_sharedflag='-Wl,-shared' ;;
9727	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9728	  tmp_sharedflag='-qmkshrobj'
9729	  tmp_addflag= ;;
9730	nvcc*)	# Cuda Compiler Driver 2.2
9731	  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'
9732	  compiler_needs_object=yes
9733	  ;;
9734	esac
9735	case `$CC -V 2>&1 | sed 5q` in
9736	*Sun\ C*)			# Sun C 5.9
9737	  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'
9738	  compiler_needs_object=yes
9739	  tmp_sharedflag='-G' ;;
9740	*Sun\ F*)			# Sun Fortran 8.3
9741	  tmp_sharedflag='-G' ;;
9742	esac
9743	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9744
9745        if test yes = "$supports_anon_versioning"; then
9746          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9747            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9748            echo "local: *; };" >> $output_objdir/$libname.ver~
9749            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9750        fi
9751
9752	case $cc_basename in
9753	tcc*)
9754	  export_dynamic_flag_spec='-rdynamic'
9755	  ;;
9756	xlf* | bgf* | bgxlf* | mpixlf*)
9757	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9758	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9759	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9760	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9761	  if test yes = "$supports_anon_versioning"; then
9762	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9763              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9764              echo "local: *; };" >> $output_objdir/$libname.ver~
9765              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9766	  fi
9767	  ;;
9768	esac
9769      else
9770        ld_shlibs=no
9771      fi
9772      ;;
9773
9774    netbsd* | netbsdelf*-gnu)
9775      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9776	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9777	wlarc=
9778      else
9779	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9780	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9781      fi
9782      ;;
9783
9784    solaris*)
9785      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9786	ld_shlibs=no
9787	cat <<_LT_EOF 1>&2
9788
9789*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9790*** create shared libraries on Solaris systems.  Therefore, libtool
9791*** is disabling shared libraries support.  We urge you to upgrade GNU
9792*** binutils to release 2.9.1 or newer.  Another option is to modify
9793*** your PATH or compiler configuration so that the native linker is
9794*** used, and then restart.
9795
9796_LT_EOF
9797      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9798	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9799	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9800      else
9801	ld_shlibs=no
9802      fi
9803      ;;
9804
9805    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9806      case `$LD -v 2>&1` in
9807        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9808	ld_shlibs=no
9809	cat <<_LT_EOF 1>&2
9810
9811*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9812*** reliably create shared libraries on SCO systems.  Therefore, libtool
9813*** is disabling shared libraries support.  We urge you to upgrade GNU
9814*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9815*** your PATH or compiler configuration so that the native linker is
9816*** used, and then restart.
9817
9818_LT_EOF
9819	;;
9820	*)
9821	  # For security reasons, it is highly recommended that you always
9822	  # use absolute paths for naming shared libraries, and exclude the
9823	  # DT_RUNPATH tag from executables and libraries.  But doing so
9824	  # requires that you compile everything twice, which is a pain.
9825	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9826	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9827	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9828	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9829	  else
9830	    ld_shlibs=no
9831	  fi
9832	;;
9833      esac
9834      ;;
9835
9836    sunos4*)
9837      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9838      wlarc=
9839      hardcode_direct=yes
9840      hardcode_shlibpath_var=no
9841      ;;
9842
9843    *)
9844      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9845	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9846	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9847      else
9848	ld_shlibs=no
9849      fi
9850      ;;
9851    esac
9852
9853    if test no = "$ld_shlibs"; then
9854      runpath_var=
9855      hardcode_libdir_flag_spec=
9856      export_dynamic_flag_spec=
9857      whole_archive_flag_spec=
9858    fi
9859  else
9860    # PORTME fill in a description of your system's linker (not GNU ld)
9861    case $host_os in
9862    aix3*)
9863      allow_undefined_flag=unsupported
9864      always_export_symbols=yes
9865      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'
9866      # Note: this linker hardcodes the directories in LIBPATH if there
9867      # are no directories specified by -L.
9868      hardcode_minus_L=yes
9869      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9870	# Neither direct hardcoding nor static linking is supported with a
9871	# broken collect2.
9872	hardcode_direct=unsupported
9873      fi
9874      ;;
9875
9876    aix[4-9]*)
9877      if test ia64 = "$host_cpu"; then
9878	# On IA64, the linker does run time linking by default, so we don't
9879	# have to do anything special.
9880	aix_use_runtimelinking=no
9881	exp_sym_flag='-Bexport'
9882	no_entry_flag=
9883      else
9884	# If we're using GNU nm, then we don't want the "-C" option.
9885	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9886	# Without the "-l" option, or with the "-B" option, AIX nm treats
9887	# weak defined symbols like other global defined symbols, whereas
9888	# GNU nm marks them as "W".
9889	# While the 'weak' keyword is ignored in the Export File, we need
9890	# it in the Import File for the 'aix-soname' feature, so we have
9891	# to replace the "-B" option with "-P" for AIX nm.
9892	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9893	  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'
9894	else
9895	  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'
9896	fi
9897	aix_use_runtimelinking=no
9898
9899	# Test if we are trying to use run time linking or normal
9900	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9901	# have runtime linking enabled, and use it for executables.
9902	# For shared libraries, we enable/disable runtime linking
9903	# depending on the kind of the shared library created -
9904	# when "with_aix_soname,aix_use_runtimelinking" is:
9905	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9906	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9907	#            lib.a           static archive
9908	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9909	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9910	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9911	#            lib.a(lib.so.V) shared, rtl:no
9912	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9913	#            lib.a           static archive
9914	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9915	  for ld_flag in $LDFLAGS; do
9916	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9917	    aix_use_runtimelinking=yes
9918	    break
9919	  fi
9920	  done
9921	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9922	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9923	    # so we don't have lib.a shared libs to link our executables.
9924	    # We have to force runtime linking in this case.
9925	    aix_use_runtimelinking=yes
9926	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9927	  fi
9928	  ;;
9929	esac
9930
9931	exp_sym_flag='-bexport'
9932	no_entry_flag='-bnoentry'
9933      fi
9934
9935      # When large executables or shared objects are built, AIX ld can
9936      # have problems creating the table of contents.  If linking a library
9937      # or program results in "error TOC overflow" add -mminimal-toc to
9938      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9939      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9940
9941      archive_cmds=''
9942      hardcode_direct=yes
9943      hardcode_direct_absolute=yes
9944      hardcode_libdir_separator=':'
9945      link_all_deplibs=yes
9946      file_list_spec='$wl-f,'
9947      case $with_aix_soname,$aix_use_runtimelinking in
9948      aix,*) ;; # traditional, no import file
9949      svr4,* | *,yes) # use import file
9950	# The Import File defines what to hardcode.
9951	hardcode_direct=no
9952	hardcode_direct_absolute=no
9953	;;
9954      esac
9955
9956      if test yes = "$GCC"; then
9957	case $host_os in aix4.[012]|aix4.[012].*)
9958	# We only want to do this on AIX 4.2 and lower, the check
9959	# below for broken collect2 doesn't work under 4.3+
9960	  collect2name=`$CC -print-prog-name=collect2`
9961	  if test -f "$collect2name" &&
9962	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9963	  then
9964	  # We have reworked collect2
9965	  :
9966	  else
9967	  # We have old collect2
9968	  hardcode_direct=unsupported
9969	  # It fails to find uninstalled libraries when the uninstalled
9970	  # path is not listed in the libpath.  Setting hardcode_minus_L
9971	  # to unsupported forces relinking
9972	  hardcode_minus_L=yes
9973	  hardcode_libdir_flag_spec='-L$libdir'
9974	  hardcode_libdir_separator=
9975	  fi
9976	  ;;
9977	esac
9978	shared_flag='-shared'
9979	if test yes = "$aix_use_runtimelinking"; then
9980	  shared_flag="$shared_flag "'$wl-G'
9981	fi
9982	# Need to ensure runtime linking is disabled for the traditional
9983	# shared library, or the linker may eventually find shared libraries
9984	# /with/ Import File - we do not want to mix them.
9985	shared_flag_aix='-shared'
9986	shared_flag_svr4='-shared $wl-G'
9987      else
9988	# not using gcc
9989	if test ia64 = "$host_cpu"; then
9990	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9991	# chokes on -Wl,-G. The following line is correct:
9992	  shared_flag='-G'
9993	else
9994	  if test yes = "$aix_use_runtimelinking"; then
9995	    shared_flag='$wl-G'
9996	  else
9997	    shared_flag='$wl-bM:SRE'
9998	  fi
9999	  shared_flag_aix='$wl-bM:SRE'
10000	  shared_flag_svr4='$wl-G'
10001	fi
10002      fi
10003
10004      export_dynamic_flag_spec='$wl-bexpall'
10005      # It seems that -bexpall does not export symbols beginning with
10006      # underscore (_), so it is better to generate a list of symbols to export.
10007      always_export_symbols=yes
10008      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10009	# Warning - without using the other runtime loading flags (-brtl),
10010	# -berok will link without error, but may produce a broken library.
10011	allow_undefined_flag='-berok'
10012        # Determine the default libpath from the value encoded in an
10013        # empty executable.
10014        if test set = "${lt_cv_aix_libpath+set}"; then
10015  aix_libpath=$lt_cv_aix_libpath
10016else
10017  if ${lt_cv_aix_libpath_+:} false; then :
10018  $as_echo_n "(cached) " >&6
10019else
10020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h.  */
10022
10023int
10024main ()
10025{
10026
10027  ;
10028  return 0;
10029}
10030_ACEOF
10031if ac_fn_c_try_link "$LINENO"; then :
10032
10033  lt_aix_libpath_sed='
10034      /Import File Strings/,/^$/ {
10035	  /^0/ {
10036	      s/^0  *\([^ ]*\) *$/\1/
10037	      p
10038	  }
10039      }'
10040  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10041  # Check for a 64-bit object if we didn't find anything.
10042  if test -z "$lt_cv_aix_libpath_"; then
10043    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10044  fi
10045fi
10046rm -f core conftest.err conftest.$ac_objext \
10047    conftest$ac_exeext conftest.$ac_ext
10048  if test -z "$lt_cv_aix_libpath_"; then
10049    lt_cv_aix_libpath_=/usr/lib:/lib
10050  fi
10051
10052fi
10053
10054  aix_libpath=$lt_cv_aix_libpath_
10055fi
10056
10057        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10058        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
10059      else
10060	if test ia64 = "$host_cpu"; then
10061	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10062	  allow_undefined_flag="-z nodefs"
10063	  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"
10064	else
10065	 # Determine the default libpath from the value encoded in an
10066	 # empty executable.
10067	 if test set = "${lt_cv_aix_libpath+set}"; then
10068  aix_libpath=$lt_cv_aix_libpath
10069else
10070  if ${lt_cv_aix_libpath_+:} false; then :
10071  $as_echo_n "(cached) " >&6
10072else
10073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h.  */
10075
10076int
10077main ()
10078{
10079
10080  ;
10081  return 0;
10082}
10083_ACEOF
10084if ac_fn_c_try_link "$LINENO"; then :
10085
10086  lt_aix_libpath_sed='
10087      /Import File Strings/,/^$/ {
10088	  /^0/ {
10089	      s/^0  *\([^ ]*\) *$/\1/
10090	      p
10091	  }
10092      }'
10093  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10094  # Check for a 64-bit object if we didn't find anything.
10095  if test -z "$lt_cv_aix_libpath_"; then
10096    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10097  fi
10098fi
10099rm -f core conftest.err conftest.$ac_objext \
10100    conftest$ac_exeext conftest.$ac_ext
10101  if test -z "$lt_cv_aix_libpath_"; then
10102    lt_cv_aix_libpath_=/usr/lib:/lib
10103  fi
10104
10105fi
10106
10107  aix_libpath=$lt_cv_aix_libpath_
10108fi
10109
10110	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10111	  # Warning - without using the other run time loading flags,
10112	  # -berok will link without error, but may produce a broken library.
10113	  no_undefined_flag=' $wl-bernotok'
10114	  allow_undefined_flag=' $wl-berok'
10115	  if test yes = "$with_gnu_ld"; then
10116	    # We only use this code for GNU lds that support --whole-archive.
10117	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10118	  else
10119	    # Exported symbols can be pulled into shared objects from archives
10120	    whole_archive_flag_spec='$convenience'
10121	  fi
10122	  archive_cmds_need_lc=yes
10123	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10124	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10125	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10126	  if test svr4 != "$with_aix_soname"; then
10127	    # This is similar to how AIX traditionally builds its shared libraries.
10128	    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'
10129	  fi
10130	  if test aix != "$with_aix_soname"; then
10131	    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'
10132	  else
10133	    # used by -dlpreopen to get the symbols
10134	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10135	  fi
10136	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10137	fi
10138      fi
10139      ;;
10140
10141    amigaos*)
10142      case $host_cpu in
10143      powerpc)
10144            # see comment about AmigaOS4 .so support
10145            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10146            archive_expsym_cmds=''
10147        ;;
10148      m68k)
10149            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)'
10150            hardcode_libdir_flag_spec='-L$libdir'
10151            hardcode_minus_L=yes
10152        ;;
10153      esac
10154      ;;
10155
10156    bsdi[45]*)
10157      export_dynamic_flag_spec=-rdynamic
10158      ;;
10159
10160    cygwin* | mingw* | pw32* | cegcc*)
10161      # When not using gcc, we currently assume that we are using
10162      # Microsoft Visual C++.
10163      # hardcode_libdir_flag_spec is actually meaningless, as there is
10164      # no search path for DLLs.
10165      case $cc_basename in
10166      cl*)
10167	# Native MSVC
10168	hardcode_libdir_flag_spec=' '
10169	allow_undefined_flag=unsupported
10170	always_export_symbols=yes
10171	file_list_spec='@'
10172	# Tell ltmain to make .lib files, not .a files.
10173	libext=lib
10174	# Tell ltmain to make .dll files, not .so files.
10175	shrext_cmds=.dll
10176	# FIXME: Setting linknames here is a bad hack.
10177	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10178	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10179            cp "$export_symbols" "$output_objdir/$soname.def";
10180            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10181          else
10182            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10183          fi~
10184          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10185          linknames='
10186	# The linker will not automatically build a static lib if we build a DLL.
10187	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10188	enable_shared_with_static_runtimes=yes
10189	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10190	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10191	# Don't use ranlib
10192	old_postinstall_cmds='chmod 644 $oldlib'
10193	postlink_cmds='lt_outputfile="@OUTPUT@"~
10194          lt_tool_outputfile="@TOOL_OUTPUT@"~
10195          case $lt_outputfile in
10196            *.exe|*.EXE) ;;
10197            *)
10198              lt_outputfile=$lt_outputfile.exe
10199              lt_tool_outputfile=$lt_tool_outputfile.exe
10200              ;;
10201          esac~
10202          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10203            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10204            $RM "$lt_outputfile.manifest";
10205          fi'
10206	;;
10207      *)
10208	# Assume MSVC wrapper
10209	hardcode_libdir_flag_spec=' '
10210	allow_undefined_flag=unsupported
10211	# Tell ltmain to make .lib files, not .a files.
10212	libext=lib
10213	# Tell ltmain to make .dll files, not .so files.
10214	shrext_cmds=.dll
10215	# FIXME: Setting linknames here is a bad hack.
10216	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10217	# The linker will automatically build a .lib file if we build a DLL.
10218	old_archive_from_new_cmds='true'
10219	# FIXME: Should let the user specify the lib program.
10220	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10221	enable_shared_with_static_runtimes=yes
10222	;;
10223      esac
10224      ;;
10225
10226    darwin* | rhapsody*)
10227
10228
10229  archive_cmds_need_lc=no
10230  hardcode_direct=no
10231  hardcode_automatic=yes
10232  hardcode_shlibpath_var=unsupported
10233  if test yes = "$lt_cv_ld_force_load"; then
10234    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\"`'
10235
10236  else
10237    whole_archive_flag_spec=''
10238  fi
10239  link_all_deplibs=yes
10240  allow_undefined_flag=$_lt_dar_allow_undefined
10241  case $cc_basename in
10242     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10243     *) _lt_dar_can_shared=$GCC ;;
10244  esac
10245  if test yes = "$_lt_dar_can_shared"; then
10246    output_verbose_link_cmd=func_echo_all
10247    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10248    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10249    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"
10250    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"
10251
10252  else
10253  ld_shlibs=no
10254  fi
10255
10256      ;;
10257
10258    dgux*)
10259      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10260      hardcode_libdir_flag_spec='-L$libdir'
10261      hardcode_shlibpath_var=no
10262      ;;
10263
10264    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10265    # support.  Future versions do this automatically, but an explicit c++rt0.o
10266    # does not break anything, and helps significantly (at the cost of a little
10267    # extra space).
10268    freebsd2.2*)
10269      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10270      hardcode_libdir_flag_spec='-R$libdir'
10271      hardcode_direct=yes
10272      hardcode_shlibpath_var=no
10273      ;;
10274
10275    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10276    freebsd2.*)
10277      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10278      hardcode_direct=yes
10279      hardcode_minus_L=yes
10280      hardcode_shlibpath_var=no
10281      ;;
10282
10283    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10284    freebsd* | dragonfly*)
10285      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10286      hardcode_libdir_flag_spec='-R$libdir'
10287      hardcode_direct=yes
10288      hardcode_shlibpath_var=no
10289      ;;
10290
10291    hpux9*)
10292      if test yes = "$GCC"; then
10293	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'
10294      else
10295	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'
10296      fi
10297      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10298      hardcode_libdir_separator=:
10299      hardcode_direct=yes
10300
10301      # hardcode_minus_L: Not really in the search PATH,
10302      # but as the default location of the library.
10303      hardcode_minus_L=yes
10304      export_dynamic_flag_spec='$wl-E'
10305      ;;
10306
10307    hpux10*)
10308      if test yes,no = "$GCC,$with_gnu_ld"; then
10309	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10310      else
10311	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10312      fi
10313      if test no = "$with_gnu_ld"; then
10314	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10315	hardcode_libdir_separator=:
10316	hardcode_direct=yes
10317	hardcode_direct_absolute=yes
10318	export_dynamic_flag_spec='$wl-E'
10319	# hardcode_minus_L: Not really in the search PATH,
10320	# but as the default location of the library.
10321	hardcode_minus_L=yes
10322      fi
10323      ;;
10324
10325    hpux11*)
10326      if test yes,no = "$GCC,$with_gnu_ld"; then
10327	case $host_cpu in
10328	hppa*64*)
10329	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10330	  ;;
10331	ia64*)
10332	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10333	  ;;
10334	*)
10335	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10336	  ;;
10337	esac
10338      else
10339	case $host_cpu in
10340	hppa*64*)
10341	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10342	  ;;
10343	ia64*)
10344	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10345	  ;;
10346	*)
10347
10348	  # Older versions of the 11.00 compiler do not understand -b yet
10349	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10350	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10351$as_echo_n "checking if $CC understands -b... " >&6; }
10352if ${lt_cv_prog_compiler__b+:} false; then :
10353  $as_echo_n "(cached) " >&6
10354else
10355  lt_cv_prog_compiler__b=no
10356   save_LDFLAGS=$LDFLAGS
10357   LDFLAGS="$LDFLAGS -b"
10358   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10359   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10360     # The linker can only warn and ignore the option if not recognized
10361     # So say no if there are warnings
10362     if test -s conftest.err; then
10363       # Append any errors to the config.log.
10364       cat conftest.err 1>&5
10365       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10366       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10367       if diff conftest.exp conftest.er2 >/dev/null; then
10368         lt_cv_prog_compiler__b=yes
10369       fi
10370     else
10371       lt_cv_prog_compiler__b=yes
10372     fi
10373   fi
10374   $RM -r conftest*
10375   LDFLAGS=$save_LDFLAGS
10376
10377fi
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10379$as_echo "$lt_cv_prog_compiler__b" >&6; }
10380
10381if test yes = "$lt_cv_prog_compiler__b"; then
10382    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10383else
10384    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10385fi
10386
10387	  ;;
10388	esac
10389      fi
10390      if test no = "$with_gnu_ld"; then
10391	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10392	hardcode_libdir_separator=:
10393
10394	case $host_cpu in
10395	hppa*64*|ia64*)
10396	  hardcode_direct=no
10397	  hardcode_shlibpath_var=no
10398	  ;;
10399	*)
10400	  hardcode_direct=yes
10401	  hardcode_direct_absolute=yes
10402	  export_dynamic_flag_spec='$wl-E'
10403
10404	  # hardcode_minus_L: Not really in the search PATH,
10405	  # but as the default location of the library.
10406	  hardcode_minus_L=yes
10407	  ;;
10408	esac
10409      fi
10410      ;;
10411
10412    irix5* | irix6* | nonstopux*)
10413      if test yes = "$GCC"; then
10414	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'
10415	# Try to use the -exported_symbol ld option, if it does not
10416	# work, assume that -exports_file does not work either and
10417	# implicitly export all symbols.
10418	# This should be the same for all languages, so no per-tag cache variable.
10419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10420$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10421if ${lt_cv_irix_exported_symbol+:} false; then :
10422  $as_echo_n "(cached) " >&6
10423else
10424  save_LDFLAGS=$LDFLAGS
10425	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10426	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h.  */
10428int foo (void) { return 0; }
10429_ACEOF
10430if ac_fn_c_try_link "$LINENO"; then :
10431  lt_cv_irix_exported_symbol=yes
10432else
10433  lt_cv_irix_exported_symbol=no
10434fi
10435rm -f core conftest.err conftest.$ac_objext \
10436    conftest$ac_exeext conftest.$ac_ext
10437           LDFLAGS=$save_LDFLAGS
10438fi
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10440$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10441	if test yes = "$lt_cv_irix_exported_symbol"; then
10442          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'
10443	fi
10444	link_all_deplibs=no
10445      else
10446	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'
10447	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'
10448      fi
10449      archive_cmds_need_lc='no'
10450      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10451      hardcode_libdir_separator=:
10452      inherit_rpath=yes
10453      link_all_deplibs=yes
10454      ;;
10455
10456    linux*)
10457      case $cc_basename in
10458      tcc*)
10459	# Fabrice Bellard et al's Tiny C Compiler
10460	ld_shlibs=yes
10461	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10462	;;
10463      esac
10464      ;;
10465
10466    netbsd* | netbsdelf*-gnu)
10467      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10468	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10469      else
10470	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10471      fi
10472      hardcode_libdir_flag_spec='-R$libdir'
10473      hardcode_direct=yes
10474      hardcode_shlibpath_var=no
10475      ;;
10476
10477    newsos6)
10478      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10479      hardcode_direct=yes
10480      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10481      hardcode_libdir_separator=:
10482      hardcode_shlibpath_var=no
10483      ;;
10484
10485    *nto* | *qnx*)
10486      ;;
10487
10488    openbsd* | bitrig*)
10489      if test -f /usr/libexec/ld.so; then
10490	hardcode_direct=yes
10491	hardcode_shlibpath_var=no
10492	hardcode_direct_absolute=yes
10493	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10494	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10496	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10497	  export_dynamic_flag_spec='$wl-E'
10498	else
10499	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10500	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10501	fi
10502      else
10503	ld_shlibs=no
10504      fi
10505      ;;
10506
10507    os2*)
10508      hardcode_libdir_flag_spec='-L$libdir'
10509      hardcode_minus_L=yes
10510      allow_undefined_flag=unsupported
10511      shrext_cmds=.dll
10512      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10513	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10514	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10515	$ECHO EXPORTS >> $output_objdir/$libname.def~
10516	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10517	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10518	emximp -o $lib $output_objdir/$libname.def'
10519      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10520	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10521	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10522	$ECHO EXPORTS >> $output_objdir/$libname.def~
10523	prefix_cmds="$SED"~
10524	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10525	  prefix_cmds="$prefix_cmds -e 1d";
10526	fi~
10527	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10528	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10529	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10530	emximp -o $lib $output_objdir/$libname.def'
10531      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10532      enable_shared_with_static_runtimes=yes
10533      ;;
10534
10535    osf3*)
10536      if test yes = "$GCC"; then
10537	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10538	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'
10539      else
10540	allow_undefined_flag=' -expect_unresolved \*'
10541	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'
10542      fi
10543      archive_cmds_need_lc='no'
10544      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10545      hardcode_libdir_separator=:
10546      ;;
10547
10548    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10549      if test yes = "$GCC"; then
10550	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10551	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'
10552	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10553      else
10554	allow_undefined_flag=' -expect_unresolved \*'
10555	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'
10556	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~
10557          $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'
10558
10559	# Both c and cxx compiler support -rpath directly
10560	hardcode_libdir_flag_spec='-rpath $libdir'
10561      fi
10562      archive_cmds_need_lc='no'
10563      hardcode_libdir_separator=:
10564      ;;
10565
10566    solaris*)
10567      no_undefined_flag=' -z defs'
10568      if test yes = "$GCC"; then
10569	wlarc='$wl'
10570	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10571	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10572          $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'
10573      else
10574	case `$CC -V 2>&1` in
10575	*"Compilers 5.0"*)
10576	  wlarc=''
10577	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10579            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10580	  ;;
10581	*)
10582	  wlarc='$wl'
10583	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10584	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10585            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10586	  ;;
10587	esac
10588      fi
10589      hardcode_libdir_flag_spec='-R$libdir'
10590      hardcode_shlibpath_var=no
10591      case $host_os in
10592      solaris2.[0-5] | solaris2.[0-5].*) ;;
10593      *)
10594	# The compiler driver will combine and reorder linker options,
10595	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10596	# but is careful enough not to reorder.
10597	# Supported since Solaris 2.6 (maybe 2.5.1?)
10598	if test yes = "$GCC"; then
10599	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10600	else
10601	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10602	fi
10603	;;
10604      esac
10605      link_all_deplibs=yes
10606      ;;
10607
10608    sunos4*)
10609      if test sequent = "$host_vendor"; then
10610	# Use $CC to link under sequent, because it throws in some extra .o
10611	# files that make .init and .fini sections work.
10612	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10613      else
10614	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10615      fi
10616      hardcode_libdir_flag_spec='-L$libdir'
10617      hardcode_direct=yes
10618      hardcode_minus_L=yes
10619      hardcode_shlibpath_var=no
10620      ;;
10621
10622    sysv4)
10623      case $host_vendor in
10624	sni)
10625	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626	  hardcode_direct=yes # is this really true???
10627	;;
10628	siemens)
10629	  ## LD is ld it makes a PLAMLIB
10630	  ## CC just makes a GrossModule.
10631	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10632	  reload_cmds='$CC -r -o $output$reload_objs'
10633	  hardcode_direct=no
10634        ;;
10635	motorola)
10636	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10637	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10638	;;
10639      esac
10640      runpath_var='LD_RUN_PATH'
10641      hardcode_shlibpath_var=no
10642      ;;
10643
10644    sysv4.3*)
10645      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646      hardcode_shlibpath_var=no
10647      export_dynamic_flag_spec='-Bexport'
10648      ;;
10649
10650    sysv4*MP*)
10651      if test -d /usr/nec; then
10652	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10653	hardcode_shlibpath_var=no
10654	runpath_var=LD_RUN_PATH
10655	hardcode_runpath_var=yes
10656	ld_shlibs=yes
10657      fi
10658      ;;
10659
10660    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10661      no_undefined_flag='$wl-z,text'
10662      archive_cmds_need_lc=no
10663      hardcode_shlibpath_var=no
10664      runpath_var='LD_RUN_PATH'
10665
10666      if test yes = "$GCC"; then
10667	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669      else
10670	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672      fi
10673      ;;
10674
10675    sysv5* | sco3.2v5* | sco5v6*)
10676      # Note: We CANNOT use -z defs as we might desire, because we do not
10677      # link with -lc, and that would cause any symbols used from libc to
10678      # always be unresolved, which means just about no library would
10679      # ever link correctly.  If we're not using GNU ld we use -z text
10680      # though, which does catch some bad symbols but isn't as heavy-handed
10681      # as -z defs.
10682      no_undefined_flag='$wl-z,text'
10683      allow_undefined_flag='$wl-z,nodefs'
10684      archive_cmds_need_lc=no
10685      hardcode_shlibpath_var=no
10686      hardcode_libdir_flag_spec='$wl-R,$libdir'
10687      hardcode_libdir_separator=':'
10688      link_all_deplibs=yes
10689      export_dynamic_flag_spec='$wl-Bexport'
10690      runpath_var='LD_RUN_PATH'
10691
10692      if test yes = "$GCC"; then
10693	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695      else
10696	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698      fi
10699      ;;
10700
10701    uts4*)
10702      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10703      hardcode_libdir_flag_spec='-L$libdir'
10704      hardcode_shlibpath_var=no
10705      ;;
10706
10707    *)
10708      ld_shlibs=no
10709      ;;
10710    esac
10711
10712    if test sni = "$host_vendor"; then
10713      case $host in
10714      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10715	export_dynamic_flag_spec='$wl-Blargedynsym'
10716	;;
10717      esac
10718    fi
10719  fi
10720
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10722$as_echo "$ld_shlibs" >&6; }
10723test no = "$ld_shlibs" && can_build_shared=no
10724
10725with_gnu_ld=$with_gnu_ld
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741#
10742# Do we need to explicitly link libc?
10743#
10744case "x$archive_cmds_need_lc" in
10745x|xyes)
10746  # Assume -lc should be added
10747  archive_cmds_need_lc=yes
10748
10749  if test yes,yes = "$GCC,$enable_shared"; then
10750    case $archive_cmds in
10751    *'~'*)
10752      # FIXME: we may have to deal with multi-command sequences.
10753      ;;
10754    '$CC '*)
10755      # Test whether the compiler implicitly links with -lc since on some
10756      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10757      # to ld, don't add -lc before -lgcc.
10758      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10759$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10760if ${lt_cv_archive_cmds_need_lc+:} false; then :
10761  $as_echo_n "(cached) " >&6
10762else
10763  $RM conftest*
10764	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10765
10766	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10767  (eval $ac_compile) 2>&5
10768  ac_status=$?
10769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10770  test $ac_status = 0; } 2>conftest.err; then
10771	  soname=conftest
10772	  lib=conftest
10773	  libobjs=conftest.$ac_objext
10774	  deplibs=
10775	  wl=$lt_prog_compiler_wl
10776	  pic_flag=$lt_prog_compiler_pic
10777	  compiler_flags=-v
10778	  linker_flags=-v
10779	  verstring=
10780	  output_objdir=.
10781	  libname=conftest
10782	  lt_save_allow_undefined_flag=$allow_undefined_flag
10783	  allow_undefined_flag=
10784	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10785  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10786  ac_status=$?
10787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10788  test $ac_status = 0; }
10789	  then
10790	    lt_cv_archive_cmds_need_lc=no
10791	  else
10792	    lt_cv_archive_cmds_need_lc=yes
10793	  fi
10794	  allow_undefined_flag=$lt_save_allow_undefined_flag
10795	else
10796	  cat conftest.err 1>&5
10797	fi
10798	$RM conftest*
10799
10800fi
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10802$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10803      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10804      ;;
10805    esac
10806  fi
10807  ;;
10808esac
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10962$as_echo_n "checking dynamic linker characteristics... " >&6; }
10963
10964if test yes = "$GCC"; then
10965  case $host_os in
10966    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10967    *) lt_awk_arg='/^libraries:/' ;;
10968  esac
10969  case $host_os in
10970    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10971    *) lt_sed_strip_eq='s|=/|/|g' ;;
10972  esac
10973  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10974  case $lt_search_path_spec in
10975  *\;*)
10976    # if the path contains ";" then we assume it to be the separator
10977    # otherwise default to the standard path separator (i.e. ":") - it is
10978    # assumed that no part of a normal pathname contains ";" but that should
10979    # okay in the real world where ";" in dirpaths is itself problematic.
10980    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10981    ;;
10982  *)
10983    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10984    ;;
10985  esac
10986  # Ok, now we have the path, separated by spaces, we can step through it
10987  # and add multilib dir if necessary...
10988  lt_tmp_lt_search_path_spec=
10989  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10990  # ...but if some path component already ends with the multilib dir we assume
10991  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10992  case "$lt_multi_os_dir; $lt_search_path_spec " in
10993  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10994    lt_multi_os_dir=
10995    ;;
10996  esac
10997  for lt_sys_path in $lt_search_path_spec; do
10998    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10999      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11000    elif test -n "$lt_multi_os_dir"; then
11001      test -d "$lt_sys_path" && \
11002	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11003    fi
11004  done
11005  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11006BEGIN {RS = " "; FS = "/|\n";} {
11007  lt_foo = "";
11008  lt_count = 0;
11009  for (lt_i = NF; lt_i > 0; lt_i--) {
11010    if ($lt_i != "" && $lt_i != ".") {
11011      if ($lt_i == "..") {
11012        lt_count++;
11013      } else {
11014        if (lt_count == 0) {
11015          lt_foo = "/" $lt_i lt_foo;
11016        } else {
11017          lt_count--;
11018        }
11019      }
11020    }
11021  }
11022  if (lt_foo != "") { lt_freq[lt_foo]++; }
11023  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11024}'`
11025  # AWK program above erroneously prepends '/' to C:/dos/paths
11026  # for these hosts.
11027  case $host_os in
11028    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11029      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11030  esac
11031  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11032else
11033  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11034fi
11035library_names_spec=
11036libname_spec='lib$name'
11037soname_spec=
11038shrext_cmds=.so
11039postinstall_cmds=
11040postuninstall_cmds=
11041finish_cmds=
11042finish_eval=
11043shlibpath_var=
11044shlibpath_overrides_runpath=unknown
11045version_type=none
11046dynamic_linker="$host_os ld.so"
11047sys_lib_dlsearch_path_spec="/lib /usr/lib"
11048need_lib_prefix=unknown
11049hardcode_into_libs=no
11050
11051# when you set need_version to no, make sure it does not cause -set_version
11052# flags to be left without arguments
11053need_version=unknown
11054
11055
11056
11057case $host_os in
11058aix3*)
11059  version_type=linux # correct to gnu/linux during the next big refactor
11060  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11061  shlibpath_var=LIBPATH
11062
11063  # AIX 3 has no versioning support, so we append a major version to the name.
11064  soname_spec='$libname$release$shared_ext$major'
11065  ;;
11066
11067aix[4-9]*)
11068  version_type=linux # correct to gnu/linux during the next big refactor
11069  need_lib_prefix=no
11070  need_version=no
11071  hardcode_into_libs=yes
11072  if test ia64 = "$host_cpu"; then
11073    # AIX 5 supports IA64
11074    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11075    shlibpath_var=LD_LIBRARY_PATH
11076  else
11077    # With GCC up to 2.95.x, collect2 would create an import file
11078    # for dependence libraries.  The import file would start with
11079    # the line '#! .'.  This would cause the generated library to
11080    # depend on '.', always an invalid library.  This was fixed in
11081    # development snapshots of GCC prior to 3.0.
11082    case $host_os in
11083      aix4 | aix4.[01] | aix4.[01].*)
11084      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11085	   echo ' yes '
11086	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11087	:
11088      else
11089	can_build_shared=no
11090      fi
11091      ;;
11092    esac
11093    # Using Import Files as archive members, it is possible to support
11094    # filename-based versioning of shared library archives on AIX. While
11095    # this would work for both with and without runtime linking, it will
11096    # prevent static linking of such archives. So we do filename-based
11097    # shared library versioning with .so extension only, which is used
11098    # when both runtime linking and shared linking is enabled.
11099    # Unfortunately, runtime linking may impact performance, so we do
11100    # not want this to be the default eventually. Also, we use the
11101    # versioned .so libs for executables only if there is the -brtl
11102    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11103    # To allow for filename-based versioning support, we need to create
11104    # libNAME.so.V as an archive file, containing:
11105    # *) an Import File, referring to the versioned filename of the
11106    #    archive as well as the shared archive member, telling the
11107    #    bitwidth (32 or 64) of that shared object, and providing the
11108    #    list of exported symbols of that shared object, eventually
11109    #    decorated with the 'weak' keyword
11110    # *) the shared object with the F_LOADONLY flag set, to really avoid
11111    #    it being seen by the linker.
11112    # At run time we better use the real file rather than another symlink,
11113    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11114
11115    case $with_aix_soname,$aix_use_runtimelinking in
11116    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11117    # soname into executable. Probably we can add versioning support to
11118    # collect2, so additional links can be useful in future.
11119    aix,yes) # traditional libtool
11120      dynamic_linker='AIX unversionable lib.so'
11121      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11122      # instead of lib<name>.a to let people know that these are not
11123      # typical AIX shared libraries.
11124      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125      ;;
11126    aix,no) # traditional AIX only
11127      dynamic_linker='AIX lib.a(lib.so.V)'
11128      # We preserve .a as extension for shared libraries through AIX4.2
11129      # and later when we are not doing run time linking.
11130      library_names_spec='$libname$release.a $libname.a'
11131      soname_spec='$libname$release$shared_ext$major'
11132      ;;
11133    svr4,*) # full svr4 only
11134      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11135      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11136      # We do not specify a path in Import Files, so LIBPATH fires.
11137      shlibpath_overrides_runpath=yes
11138      ;;
11139    *,yes) # both, prefer svr4
11140      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11141      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11142      # unpreferred sharedlib libNAME.a needs extra handling
11143      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"'
11144      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"'
11145      # We do not specify a path in Import Files, so LIBPATH fires.
11146      shlibpath_overrides_runpath=yes
11147      ;;
11148    *,no) # both, prefer aix
11149      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11150      library_names_spec='$libname$release.a $libname.a'
11151      soname_spec='$libname$release$shared_ext$major'
11152      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11153      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)'
11154      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"'
11155      ;;
11156    esac
11157    shlibpath_var=LIBPATH
11158  fi
11159  ;;
11160
11161amigaos*)
11162  case $host_cpu in
11163  powerpc)
11164    # Since July 2007 AmigaOS4 officially supports .so libraries.
11165    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11166    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11167    ;;
11168  m68k)
11169    library_names_spec='$libname.ixlibrary $libname.a'
11170    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11171    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'
11172    ;;
11173  esac
11174  ;;
11175
11176beos*)
11177  library_names_spec='$libname$shared_ext'
11178  dynamic_linker="$host_os ld.so"
11179  shlibpath_var=LIBRARY_PATH
11180  ;;
11181
11182bsdi[45]*)
11183  version_type=linux # correct to gnu/linux during the next big refactor
11184  need_version=no
11185  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11186  soname_spec='$libname$release$shared_ext$major'
11187  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11188  shlibpath_var=LD_LIBRARY_PATH
11189  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11190  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11191  # the default ld.so.conf also contains /usr/contrib/lib and
11192  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11193  # libtool to hard-code these into programs
11194  ;;
11195
11196cygwin* | mingw* | pw32* | cegcc*)
11197  version_type=windows
11198  shrext_cmds=.dll
11199  need_version=no
11200  need_lib_prefix=no
11201
11202  case $GCC,$cc_basename in
11203  yes,*)
11204    # gcc
11205    library_names_spec='$libname.dll.a'
11206    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11207    postinstall_cmds='base_file=`basename \$file`~
11208      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11209      dldir=$destdir/`dirname \$dlpath`~
11210      test -d \$dldir || mkdir -p \$dldir~
11211      $install_prog $dir/$dlname \$dldir/$dlname~
11212      chmod a+x \$dldir/$dlname~
11213      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11214        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11215      fi'
11216    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11217      dlpath=$dir/\$dldll~
11218       $RM \$dlpath'
11219    shlibpath_overrides_runpath=yes
11220
11221    case $host_os in
11222    cygwin*)
11223      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11224      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11225
11226      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11227      ;;
11228    mingw* | cegcc*)
11229      # MinGW DLLs use traditional 'lib' prefix
11230      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11231      ;;
11232    pw32*)
11233      # pw32 DLLs use 'pw' prefix rather than 'lib'
11234      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11235      ;;
11236    esac
11237    dynamic_linker='Win32 ld.exe'
11238    ;;
11239
11240  *,cl*)
11241    # Native MSVC
11242    libname_spec='$name'
11243    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11244    library_names_spec='$libname.dll.lib'
11245
11246    case $build_os in
11247    mingw*)
11248      sys_lib_search_path_spec=
11249      lt_save_ifs=$IFS
11250      IFS=';'
11251      for lt_path in $LIB
11252      do
11253        IFS=$lt_save_ifs
11254        # Let DOS variable expansion print the short 8.3 style file name.
11255        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11256        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11257      done
11258      IFS=$lt_save_ifs
11259      # Convert to MSYS style.
11260      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11261      ;;
11262    cygwin*)
11263      # Convert to unix form, then to dos form, then back to unix form
11264      # but this time dos style (no spaces!) so that the unix form looks
11265      # like /cygdrive/c/PROGRA~1:/cygdr...
11266      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11267      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11268      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11269      ;;
11270    *)
11271      sys_lib_search_path_spec=$LIB
11272      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11273        # It is most probably a Windows format PATH.
11274        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11275      else
11276        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11277      fi
11278      # FIXME: find the short name or the path components, as spaces are
11279      # common. (e.g. "Program Files" -> "PROGRA~1")
11280      ;;
11281    esac
11282
11283    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11284    postinstall_cmds='base_file=`basename \$file`~
11285      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11286      dldir=$destdir/`dirname \$dlpath`~
11287      test -d \$dldir || mkdir -p \$dldir~
11288      $install_prog $dir/$dlname \$dldir/$dlname'
11289    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11290      dlpath=$dir/\$dldll~
11291       $RM \$dlpath'
11292    shlibpath_overrides_runpath=yes
11293    dynamic_linker='Win32 link.exe'
11294    ;;
11295
11296  *)
11297    # Assume MSVC wrapper
11298    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11299    dynamic_linker='Win32 ld.exe'
11300    ;;
11301  esac
11302  # FIXME: first we should search . and the directory the executable is in
11303  shlibpath_var=PATH
11304  ;;
11305
11306darwin* | rhapsody*)
11307  dynamic_linker="$host_os dyld"
11308  version_type=darwin
11309  need_lib_prefix=no
11310  need_version=no
11311  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11312  soname_spec='$libname$release$major$shared_ext'
11313  shlibpath_overrides_runpath=yes
11314  shlibpath_var=DYLD_LIBRARY_PATH
11315  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11316
11317  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11318  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11319  ;;
11320
11321dgux*)
11322  version_type=linux # correct to gnu/linux during the next big refactor
11323  need_lib_prefix=no
11324  need_version=no
11325  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11326  soname_spec='$libname$release$shared_ext$major'
11327  shlibpath_var=LD_LIBRARY_PATH
11328  ;;
11329
11330freebsd* | dragonfly*)
11331  # DragonFly does not have aout.  When/if they implement a new
11332  # versioning mechanism, adjust this.
11333  if test -x /usr/bin/objformat; then
11334    objformat=`/usr/bin/objformat`
11335  else
11336    case $host_os in
11337    freebsd[23].*) objformat=aout ;;
11338    *) objformat=elf ;;
11339    esac
11340  fi
11341  version_type=freebsd-$objformat
11342  case $version_type in
11343    freebsd-elf*)
11344      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11345      soname_spec='$libname$release$shared_ext$major'
11346      need_version=no
11347      need_lib_prefix=no
11348      ;;
11349    freebsd-*)
11350      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11351      need_version=yes
11352      ;;
11353  esac
11354  shlibpath_var=LD_LIBRARY_PATH
11355  case $host_os in
11356  freebsd2.*)
11357    shlibpath_overrides_runpath=yes
11358    ;;
11359  freebsd3.[01]* | freebsdelf3.[01]*)
11360    shlibpath_overrides_runpath=yes
11361    hardcode_into_libs=yes
11362    ;;
11363  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11364  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11365    shlibpath_overrides_runpath=no
11366    hardcode_into_libs=yes
11367    ;;
11368  *) # from 4.6 on, and DragonFly
11369    shlibpath_overrides_runpath=yes
11370    hardcode_into_libs=yes
11371    ;;
11372  esac
11373  ;;
11374
11375haiku*)
11376  version_type=linux # correct to gnu/linux during the next big refactor
11377  need_lib_prefix=no
11378  need_version=no
11379  dynamic_linker="$host_os runtime_loader"
11380  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381  soname_spec='$libname$release$shared_ext$major'
11382  shlibpath_var=LIBRARY_PATH
11383  shlibpath_overrides_runpath=no
11384  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11385  hardcode_into_libs=yes
11386  ;;
11387
11388hpux9* | hpux10* | hpux11*)
11389  # Give a soname corresponding to the major version so that dld.sl refuses to
11390  # link against other versions.
11391  version_type=sunos
11392  need_lib_prefix=no
11393  need_version=no
11394  case $host_cpu in
11395  ia64*)
11396    shrext_cmds='.so'
11397    hardcode_into_libs=yes
11398    dynamic_linker="$host_os dld.so"
11399    shlibpath_var=LD_LIBRARY_PATH
11400    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11401    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11402    soname_spec='$libname$release$shared_ext$major'
11403    if test 32 = "$HPUX_IA64_MODE"; then
11404      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11405      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11406    else
11407      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11408      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11409    fi
11410    ;;
11411  hppa*64*)
11412    shrext_cmds='.sl'
11413    hardcode_into_libs=yes
11414    dynamic_linker="$host_os dld.sl"
11415    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11416    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11417    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418    soname_spec='$libname$release$shared_ext$major'
11419    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11420    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11421    ;;
11422  *)
11423    shrext_cmds='.sl'
11424    dynamic_linker="$host_os dld.sl"
11425    shlibpath_var=SHLIB_PATH
11426    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11427    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11428    soname_spec='$libname$release$shared_ext$major'
11429    ;;
11430  esac
11431  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11432  postinstall_cmds='chmod 555 $lib'
11433  # or fails outright, so override atomically:
11434  install_override_mode=555
11435  ;;
11436
11437interix[3-9]*)
11438  version_type=linux # correct to gnu/linux during the next big refactor
11439  need_lib_prefix=no
11440  need_version=no
11441  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11442  soname_spec='$libname$release$shared_ext$major'
11443  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11444  shlibpath_var=LD_LIBRARY_PATH
11445  shlibpath_overrides_runpath=no
11446  hardcode_into_libs=yes
11447  ;;
11448
11449irix5* | irix6* | nonstopux*)
11450  case $host_os in
11451    nonstopux*) version_type=nonstopux ;;
11452    *)
11453	if test yes = "$lt_cv_prog_gnu_ld"; then
11454		version_type=linux # correct to gnu/linux during the next big refactor
11455	else
11456		version_type=irix
11457	fi ;;
11458  esac
11459  need_lib_prefix=no
11460  need_version=no
11461  soname_spec='$libname$release$shared_ext$major'
11462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11463  case $host_os in
11464  irix5* | nonstopux*)
11465    libsuff= shlibsuff=
11466    ;;
11467  *)
11468    case $LD in # libtool.m4 will add one of these switches to LD
11469    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11470      libsuff= shlibsuff= libmagic=32-bit;;
11471    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11472      libsuff=32 shlibsuff=N32 libmagic=N32;;
11473    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11474      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11475    *) libsuff= shlibsuff= libmagic=never-match;;
11476    esac
11477    ;;
11478  esac
11479  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11480  shlibpath_overrides_runpath=no
11481  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11482  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11483  hardcode_into_libs=yes
11484  ;;
11485
11486# No shared lib support for Linux oldld, aout, or coff.
11487linux*oldld* | linux*aout* | linux*coff*)
11488  dynamic_linker=no
11489  ;;
11490
11491linux*android*)
11492  version_type=none # Android doesn't support versioned libraries.
11493  need_lib_prefix=no
11494  need_version=no
11495  library_names_spec='$libname$release$shared_ext'
11496  soname_spec='$libname$release$shared_ext'
11497  finish_cmds=
11498  shlibpath_var=LD_LIBRARY_PATH
11499  shlibpath_overrides_runpath=yes
11500
11501  # This implies no fast_install, which is unacceptable.
11502  # Some rework will be needed to allow for fast_install
11503  # before this can be enabled.
11504  hardcode_into_libs=yes
11505
11506  dynamic_linker='Android linker'
11507  # Don't embed -rpath directories since the linker doesn't support them.
11508  hardcode_libdir_flag_spec='-L$libdir'
11509  ;;
11510
11511# This must be glibc/ELF.
11512linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11513  version_type=linux # correct to gnu/linux during the next big refactor
11514  need_lib_prefix=no
11515  need_version=no
11516  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11517  soname_spec='$libname$release$shared_ext$major'
11518  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11519  shlibpath_var=LD_LIBRARY_PATH
11520  shlibpath_overrides_runpath=no
11521
11522  # Some binutils ld are patched to set DT_RUNPATH
11523  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11524  $as_echo_n "(cached) " >&6
11525else
11526  lt_cv_shlibpath_overrides_runpath=no
11527    save_LDFLAGS=$LDFLAGS
11528    save_libdir=$libdir
11529    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11530	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11531    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532/* end confdefs.h.  */
11533
11534int
11535main ()
11536{
11537
11538  ;
11539  return 0;
11540}
11541_ACEOF
11542if ac_fn_c_try_link "$LINENO"; then :
11543  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11544  lt_cv_shlibpath_overrides_runpath=yes
11545fi
11546fi
11547rm -f core conftest.err conftest.$ac_objext \
11548    conftest$ac_exeext conftest.$ac_ext
11549    LDFLAGS=$save_LDFLAGS
11550    libdir=$save_libdir
11551
11552fi
11553
11554  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11555
11556  # This implies no fast_install, which is unacceptable.
11557  # Some rework will be needed to allow for fast_install
11558  # before this can be enabled.
11559  hardcode_into_libs=yes
11560
11561  # Ideally, we could use ldconfig to report *all* directores which are
11562  # searched for libraries, however this is still not possible.  Aside from not
11563  # being certain /sbin/ldconfig is available, command
11564  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11565  # even though it is searched at run-time.  Try to do the best guess by
11566  # appending ld.so.conf contents (and includes) to the search path.
11567  if test -f /etc/ld.so.conf; then
11568    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' ' '`
11569    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11570  fi
11571
11572  # We used to test for /lib/ld.so.1 and disable shared libraries on
11573  # powerpc, because MkLinux only supported shared libraries with the
11574  # GNU dynamic linker.  Since this was broken with cross compilers,
11575  # most powerpc-linux boxes support dynamic linking these days and
11576  # people can always --disable-shared, the test was removed, and we
11577  # assume the GNU/Linux dynamic linker is in use.
11578  dynamic_linker='GNU/Linux ld.so'
11579  ;;
11580
11581netbsdelf*-gnu)
11582  version_type=linux
11583  need_lib_prefix=no
11584  need_version=no
11585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11586  soname_spec='${libname}${release}${shared_ext}$major'
11587  shlibpath_var=LD_LIBRARY_PATH
11588  shlibpath_overrides_runpath=no
11589  hardcode_into_libs=yes
11590  dynamic_linker='NetBSD ld.elf_so'
11591  ;;
11592
11593netbsd*)
11594  version_type=sunos
11595  need_lib_prefix=no
11596  need_version=no
11597  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11598    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11599    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11600    dynamic_linker='NetBSD (a.out) ld.so'
11601  else
11602    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603    soname_spec='$libname$release$shared_ext$major'
11604    dynamic_linker='NetBSD ld.elf_so'
11605  fi
11606  shlibpath_var=LD_LIBRARY_PATH
11607  shlibpath_overrides_runpath=yes
11608  hardcode_into_libs=yes
11609  ;;
11610
11611newsos6)
11612  version_type=linux # correct to gnu/linux during the next big refactor
11613  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11614  shlibpath_var=LD_LIBRARY_PATH
11615  shlibpath_overrides_runpath=yes
11616  ;;
11617
11618*nto* | *qnx*)
11619  version_type=qnx
11620  need_lib_prefix=no
11621  need_version=no
11622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623  soname_spec='$libname$release$shared_ext$major'
11624  shlibpath_var=LD_LIBRARY_PATH
11625  shlibpath_overrides_runpath=no
11626  hardcode_into_libs=yes
11627  dynamic_linker='ldqnx.so'
11628  ;;
11629
11630openbsd* | bitrig*)
11631  version_type=sunos
11632  sys_lib_dlsearch_path_spec=/usr/lib
11633  need_lib_prefix=no
11634  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11635    need_version=no
11636  else
11637    need_version=yes
11638  fi
11639  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11640  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11641  shlibpath_var=LD_LIBRARY_PATH
11642  shlibpath_overrides_runpath=yes
11643  ;;
11644
11645os2*)
11646  libname_spec='$name'
11647  version_type=windows
11648  shrext_cmds=.dll
11649  need_version=no
11650  need_lib_prefix=no
11651  # OS/2 can only load a DLL with a base name of 8 characters or less.
11652  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11653    v=$($ECHO $release$versuffix | tr -d .-);
11654    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11655    $ECHO $n$v`$shared_ext'
11656  library_names_spec='${libname}_dll.$libext'
11657  dynamic_linker='OS/2 ld.exe'
11658  shlibpath_var=BEGINLIBPATH
11659  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11660  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11661  postinstall_cmds='base_file=`basename \$file`~
11662    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11663    dldir=$destdir/`dirname \$dlpath`~
11664    test -d \$dldir || mkdir -p \$dldir~
11665    $install_prog $dir/$dlname \$dldir/$dlname~
11666    chmod a+x \$dldir/$dlname~
11667    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11668      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11669    fi'
11670  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11671    dlpath=$dir/\$dldll~
11672    $RM \$dlpath'
11673  ;;
11674
11675osf3* | osf4* | osf5*)
11676  version_type=osf
11677  need_lib_prefix=no
11678  need_version=no
11679  soname_spec='$libname$release$shared_ext$major'
11680  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11681  shlibpath_var=LD_LIBRARY_PATH
11682  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11683  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11684  ;;
11685
11686rdos*)
11687  dynamic_linker=no
11688  ;;
11689
11690solaris*)
11691  version_type=linux # correct to gnu/linux during the next big refactor
11692  need_lib_prefix=no
11693  need_version=no
11694  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695  soname_spec='$libname$release$shared_ext$major'
11696  shlibpath_var=LD_LIBRARY_PATH
11697  shlibpath_overrides_runpath=yes
11698  hardcode_into_libs=yes
11699  # ldd complains unless libraries are executable
11700  postinstall_cmds='chmod +x $lib'
11701  ;;
11702
11703sunos4*)
11704  version_type=sunos
11705  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11706  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11707  shlibpath_var=LD_LIBRARY_PATH
11708  shlibpath_overrides_runpath=yes
11709  if test yes = "$with_gnu_ld"; then
11710    need_lib_prefix=no
11711  fi
11712  need_version=yes
11713  ;;
11714
11715sysv4 | sysv4.3*)
11716  version_type=linux # correct to gnu/linux during the next big refactor
11717  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11718  soname_spec='$libname$release$shared_ext$major'
11719  shlibpath_var=LD_LIBRARY_PATH
11720  case $host_vendor in
11721    sni)
11722      shlibpath_overrides_runpath=no
11723      need_lib_prefix=no
11724      runpath_var=LD_RUN_PATH
11725      ;;
11726    siemens)
11727      need_lib_prefix=no
11728      ;;
11729    motorola)
11730      need_lib_prefix=no
11731      need_version=no
11732      shlibpath_overrides_runpath=no
11733      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11734      ;;
11735  esac
11736  ;;
11737
11738sysv4*MP*)
11739  if test -d /usr/nec; then
11740    version_type=linux # correct to gnu/linux during the next big refactor
11741    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11742    soname_spec='$libname$shared_ext.$major'
11743    shlibpath_var=LD_LIBRARY_PATH
11744  fi
11745  ;;
11746
11747sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11748  version_type=sco
11749  need_lib_prefix=no
11750  need_version=no
11751  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11752  soname_spec='$libname$release$shared_ext$major'
11753  shlibpath_var=LD_LIBRARY_PATH
11754  shlibpath_overrides_runpath=yes
11755  hardcode_into_libs=yes
11756  if test yes = "$with_gnu_ld"; then
11757    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11758  else
11759    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11760    case $host_os in
11761      sco3.2v5*)
11762        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11763	;;
11764    esac
11765  fi
11766  sys_lib_dlsearch_path_spec='/usr/lib'
11767  ;;
11768
11769tpf*)
11770  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11771  version_type=linux # correct to gnu/linux during the next big refactor
11772  need_lib_prefix=no
11773  need_version=no
11774  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775  shlibpath_var=LD_LIBRARY_PATH
11776  shlibpath_overrides_runpath=no
11777  hardcode_into_libs=yes
11778  ;;
11779
11780uts4*)
11781  version_type=linux # correct to gnu/linux during the next big refactor
11782  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783  soname_spec='$libname$release$shared_ext$major'
11784  shlibpath_var=LD_LIBRARY_PATH
11785  ;;
11786
11787*)
11788  dynamic_linker=no
11789  ;;
11790esac
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11792$as_echo "$dynamic_linker" >&6; }
11793test no = "$dynamic_linker" && can_build_shared=no
11794
11795variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11796if test yes = "$GCC"; then
11797  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11798fi
11799
11800if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11801  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11802fi
11803
11804if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11805  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11806fi
11807
11808# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11809configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11810
11811# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11812func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11813
11814# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11815configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11914$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11915hardcode_action=
11916if test -n "$hardcode_libdir_flag_spec" ||
11917   test -n "$runpath_var" ||
11918   test yes = "$hardcode_automatic"; then
11919
11920  # We can hardcode non-existent directories.
11921  if test no != "$hardcode_direct" &&
11922     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11923     # have to relink, otherwise we might link with an installed library
11924     # when we should be linking with a yet-to-be-installed one
11925     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11926     test no != "$hardcode_minus_L"; then
11927    # Linking always hardcodes the temporary library directory.
11928    hardcode_action=relink
11929  else
11930    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11931    hardcode_action=immediate
11932  fi
11933else
11934  # We cannot hardcode anything, or else we can only hardcode existing
11935  # directories.
11936  hardcode_action=unsupported
11937fi
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11939$as_echo "$hardcode_action" >&6; }
11940
11941if test relink = "$hardcode_action" ||
11942   test yes = "$inherit_rpath"; then
11943  # Fast installation is not supported
11944  enable_fast_install=no
11945elif test yes = "$shlibpath_overrides_runpath" ||
11946     test no = "$enable_shared"; then
11947  # Fast installation is not necessary
11948  enable_fast_install=needless
11949fi
11950
11951
11952
11953
11954
11955
11956  if test yes != "$enable_dlopen"; then
11957  enable_dlopen=unknown
11958  enable_dlopen_self=unknown
11959  enable_dlopen_self_static=unknown
11960else
11961  lt_cv_dlopen=no
11962  lt_cv_dlopen_libs=
11963
11964  case $host_os in
11965  beos*)
11966    lt_cv_dlopen=load_add_on
11967    lt_cv_dlopen_libs=
11968    lt_cv_dlopen_self=yes
11969    ;;
11970
11971  mingw* | pw32* | cegcc*)
11972    lt_cv_dlopen=LoadLibrary
11973    lt_cv_dlopen_libs=
11974    ;;
11975
11976  cygwin*)
11977    lt_cv_dlopen=dlopen
11978    lt_cv_dlopen_libs=
11979    ;;
11980
11981  darwin*)
11982    # if libdl is installed we need to link against it
11983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11984$as_echo_n "checking for dlopen in -ldl... " >&6; }
11985if ${ac_cv_lib_dl_dlopen+:} false; then :
11986  $as_echo_n "(cached) " >&6
11987else
11988  ac_check_lib_save_LIBS=$LIBS
11989LIBS="-ldl  $LIBS"
11990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991/* end confdefs.h.  */
11992
11993/* Override any GCC internal prototype to avoid an error.
11994   Use char because int might match the return type of a GCC
11995   builtin and then its argument prototype would still apply.  */
11996#ifdef __cplusplus
11997extern "C"
11998#endif
11999char dlopen ();
12000int
12001main ()
12002{
12003return dlopen ();
12004  ;
12005  return 0;
12006}
12007_ACEOF
12008if ac_fn_c_try_link "$LINENO"; then :
12009  ac_cv_lib_dl_dlopen=yes
12010else
12011  ac_cv_lib_dl_dlopen=no
12012fi
12013rm -f core conftest.err conftest.$ac_objext \
12014    conftest$ac_exeext conftest.$ac_ext
12015LIBS=$ac_check_lib_save_LIBS
12016fi
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12018$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12019if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12020  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12021else
12022
12023    lt_cv_dlopen=dyld
12024    lt_cv_dlopen_libs=
12025    lt_cv_dlopen_self=yes
12026
12027fi
12028
12029    ;;
12030
12031  tpf*)
12032    # Don't try to run any link tests for TPF.  We know it's impossible
12033    # because TPF is a cross-compiler, and we know how we open DSOs.
12034    lt_cv_dlopen=dlopen
12035    lt_cv_dlopen_libs=
12036    lt_cv_dlopen_self=no
12037    ;;
12038
12039  *)
12040    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12041if test "x$ac_cv_func_shl_load" = xyes; then :
12042  lt_cv_dlopen=shl_load
12043else
12044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12045$as_echo_n "checking for shl_load in -ldld... " >&6; }
12046if ${ac_cv_lib_dld_shl_load+:} false; then :
12047  $as_echo_n "(cached) " >&6
12048else
12049  ac_check_lib_save_LIBS=$LIBS
12050LIBS="-ldld  $LIBS"
12051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h.  */
12053
12054/* Override any GCC internal prototype to avoid an error.
12055   Use char because int might match the return type of a GCC
12056   builtin and then its argument prototype would still apply.  */
12057#ifdef __cplusplus
12058extern "C"
12059#endif
12060char shl_load ();
12061int
12062main ()
12063{
12064return shl_load ();
12065  ;
12066  return 0;
12067}
12068_ACEOF
12069if ac_fn_c_try_link "$LINENO"; then :
12070  ac_cv_lib_dld_shl_load=yes
12071else
12072  ac_cv_lib_dld_shl_load=no
12073fi
12074rm -f core conftest.err conftest.$ac_objext \
12075    conftest$ac_exeext conftest.$ac_ext
12076LIBS=$ac_check_lib_save_LIBS
12077fi
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12079$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12080if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12081  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12082else
12083  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12084if test "x$ac_cv_func_dlopen" = xyes; then :
12085  lt_cv_dlopen=dlopen
12086else
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12088$as_echo_n "checking for dlopen in -ldl... " >&6; }
12089if ${ac_cv_lib_dl_dlopen+:} false; then :
12090  $as_echo_n "(cached) " >&6
12091else
12092  ac_check_lib_save_LIBS=$LIBS
12093LIBS="-ldl  $LIBS"
12094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095/* end confdefs.h.  */
12096
12097/* Override any GCC internal prototype to avoid an error.
12098   Use char because int might match the return type of a GCC
12099   builtin and then its argument prototype would still apply.  */
12100#ifdef __cplusplus
12101extern "C"
12102#endif
12103char dlopen ();
12104int
12105main ()
12106{
12107return dlopen ();
12108  ;
12109  return 0;
12110}
12111_ACEOF
12112if ac_fn_c_try_link "$LINENO"; then :
12113  ac_cv_lib_dl_dlopen=yes
12114else
12115  ac_cv_lib_dl_dlopen=no
12116fi
12117rm -f core conftest.err conftest.$ac_objext \
12118    conftest$ac_exeext conftest.$ac_ext
12119LIBS=$ac_check_lib_save_LIBS
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12122$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12123if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12124  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12125else
12126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12127$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12128if ${ac_cv_lib_svld_dlopen+:} false; then :
12129  $as_echo_n "(cached) " >&6
12130else
12131  ac_check_lib_save_LIBS=$LIBS
12132LIBS="-lsvld  $LIBS"
12133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134/* end confdefs.h.  */
12135
12136/* Override any GCC internal prototype to avoid an error.
12137   Use char because int might match the return type of a GCC
12138   builtin and then its argument prototype would still apply.  */
12139#ifdef __cplusplus
12140extern "C"
12141#endif
12142char dlopen ();
12143int
12144main ()
12145{
12146return dlopen ();
12147  ;
12148  return 0;
12149}
12150_ACEOF
12151if ac_fn_c_try_link "$LINENO"; then :
12152  ac_cv_lib_svld_dlopen=yes
12153else
12154  ac_cv_lib_svld_dlopen=no
12155fi
12156rm -f core conftest.err conftest.$ac_objext \
12157    conftest$ac_exeext conftest.$ac_ext
12158LIBS=$ac_check_lib_save_LIBS
12159fi
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12161$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12162if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12163  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12164else
12165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12166$as_echo_n "checking for dld_link in -ldld... " >&6; }
12167if ${ac_cv_lib_dld_dld_link+:} false; then :
12168  $as_echo_n "(cached) " >&6
12169else
12170  ac_check_lib_save_LIBS=$LIBS
12171LIBS="-ldld  $LIBS"
12172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173/* end confdefs.h.  */
12174
12175/* Override any GCC internal prototype to avoid an error.
12176   Use char because int might match the return type of a GCC
12177   builtin and then its argument prototype would still apply.  */
12178#ifdef __cplusplus
12179extern "C"
12180#endif
12181char dld_link ();
12182int
12183main ()
12184{
12185return dld_link ();
12186  ;
12187  return 0;
12188}
12189_ACEOF
12190if ac_fn_c_try_link "$LINENO"; then :
12191  ac_cv_lib_dld_dld_link=yes
12192else
12193  ac_cv_lib_dld_dld_link=no
12194fi
12195rm -f core conftest.err conftest.$ac_objext \
12196    conftest$ac_exeext conftest.$ac_ext
12197LIBS=$ac_check_lib_save_LIBS
12198fi
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12200$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12201if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12202  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12203fi
12204
12205
12206fi
12207
12208
12209fi
12210
12211
12212fi
12213
12214
12215fi
12216
12217
12218fi
12219
12220    ;;
12221  esac
12222
12223  if test no = "$lt_cv_dlopen"; then
12224    enable_dlopen=no
12225  else
12226    enable_dlopen=yes
12227  fi
12228
12229  case $lt_cv_dlopen in
12230  dlopen)
12231    save_CPPFLAGS=$CPPFLAGS
12232    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12233
12234    save_LDFLAGS=$LDFLAGS
12235    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12236
12237    save_LIBS=$LIBS
12238    LIBS="$lt_cv_dlopen_libs $LIBS"
12239
12240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12241$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12242if ${lt_cv_dlopen_self+:} false; then :
12243  $as_echo_n "(cached) " >&6
12244else
12245  	  if test yes = "$cross_compiling"; then :
12246  lt_cv_dlopen_self=cross
12247else
12248  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12249  lt_status=$lt_dlunknown
12250  cat > conftest.$ac_ext <<_LT_EOF
12251#line $LINENO "configure"
12252#include "confdefs.h"
12253
12254#if HAVE_DLFCN_H
12255#include <dlfcn.h>
12256#endif
12257
12258#include <stdio.h>
12259
12260#ifdef RTLD_GLOBAL
12261#  define LT_DLGLOBAL		RTLD_GLOBAL
12262#else
12263#  ifdef DL_GLOBAL
12264#    define LT_DLGLOBAL		DL_GLOBAL
12265#  else
12266#    define LT_DLGLOBAL		0
12267#  endif
12268#endif
12269
12270/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12271   find out it does not work in some platform. */
12272#ifndef LT_DLLAZY_OR_NOW
12273#  ifdef RTLD_LAZY
12274#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12275#  else
12276#    ifdef DL_LAZY
12277#      define LT_DLLAZY_OR_NOW		DL_LAZY
12278#    else
12279#      ifdef RTLD_NOW
12280#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12281#      else
12282#        ifdef DL_NOW
12283#          define LT_DLLAZY_OR_NOW	DL_NOW
12284#        else
12285#          define LT_DLLAZY_OR_NOW	0
12286#        endif
12287#      endif
12288#    endif
12289#  endif
12290#endif
12291
12292/* When -fvisibility=hidden is used, assume the code has been annotated
12293   correspondingly for the symbols needed.  */
12294#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12295int fnord () __attribute__((visibility("default")));
12296#endif
12297
12298int fnord () { return 42; }
12299int main ()
12300{
12301  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12302  int status = $lt_dlunknown;
12303
12304  if (self)
12305    {
12306      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12307      else
12308        {
12309	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12310          else puts (dlerror ());
12311	}
12312      /* dlclose (self); */
12313    }
12314  else
12315    puts (dlerror ());
12316
12317  return status;
12318}
12319_LT_EOF
12320  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12321  (eval $ac_link) 2>&5
12322  ac_status=$?
12323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12324  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12325    (./conftest; exit; ) >&5 2>/dev/null
12326    lt_status=$?
12327    case x$lt_status in
12328      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12329      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12330      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12331    esac
12332  else :
12333    # compilation failed
12334    lt_cv_dlopen_self=no
12335  fi
12336fi
12337rm -fr conftest*
12338
12339
12340fi
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12342$as_echo "$lt_cv_dlopen_self" >&6; }
12343
12344    if test yes = "$lt_cv_dlopen_self"; then
12345      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12346      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12347$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12348if ${lt_cv_dlopen_self_static+:} false; then :
12349  $as_echo_n "(cached) " >&6
12350else
12351  	  if test yes = "$cross_compiling"; then :
12352  lt_cv_dlopen_self_static=cross
12353else
12354  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12355  lt_status=$lt_dlunknown
12356  cat > conftest.$ac_ext <<_LT_EOF
12357#line $LINENO "configure"
12358#include "confdefs.h"
12359
12360#if HAVE_DLFCN_H
12361#include <dlfcn.h>
12362#endif
12363
12364#include <stdio.h>
12365
12366#ifdef RTLD_GLOBAL
12367#  define LT_DLGLOBAL		RTLD_GLOBAL
12368#else
12369#  ifdef DL_GLOBAL
12370#    define LT_DLGLOBAL		DL_GLOBAL
12371#  else
12372#    define LT_DLGLOBAL		0
12373#  endif
12374#endif
12375
12376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12377   find out it does not work in some platform. */
12378#ifndef LT_DLLAZY_OR_NOW
12379#  ifdef RTLD_LAZY
12380#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12381#  else
12382#    ifdef DL_LAZY
12383#      define LT_DLLAZY_OR_NOW		DL_LAZY
12384#    else
12385#      ifdef RTLD_NOW
12386#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12387#      else
12388#        ifdef DL_NOW
12389#          define LT_DLLAZY_OR_NOW	DL_NOW
12390#        else
12391#          define LT_DLLAZY_OR_NOW	0
12392#        endif
12393#      endif
12394#    endif
12395#  endif
12396#endif
12397
12398/* When -fvisibility=hidden is used, assume the code has been annotated
12399   correspondingly for the symbols needed.  */
12400#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12401int fnord () __attribute__((visibility("default")));
12402#endif
12403
12404int fnord () { return 42; }
12405int main ()
12406{
12407  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12408  int status = $lt_dlunknown;
12409
12410  if (self)
12411    {
12412      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12413      else
12414        {
12415	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12416          else puts (dlerror ());
12417	}
12418      /* dlclose (self); */
12419    }
12420  else
12421    puts (dlerror ());
12422
12423  return status;
12424}
12425_LT_EOF
12426  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12427  (eval $ac_link) 2>&5
12428  ac_status=$?
12429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12430  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12431    (./conftest; exit; ) >&5 2>/dev/null
12432    lt_status=$?
12433    case x$lt_status in
12434      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12435      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12436      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12437    esac
12438  else :
12439    # compilation failed
12440    lt_cv_dlopen_self_static=no
12441  fi
12442fi
12443rm -fr conftest*
12444
12445
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12448$as_echo "$lt_cv_dlopen_self_static" >&6; }
12449    fi
12450
12451    CPPFLAGS=$save_CPPFLAGS
12452    LDFLAGS=$save_LDFLAGS
12453    LIBS=$save_LIBS
12454    ;;
12455  esac
12456
12457  case $lt_cv_dlopen_self in
12458  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12459  *) enable_dlopen_self=unknown ;;
12460  esac
12461
12462  case $lt_cv_dlopen_self_static in
12463  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12464  *) enable_dlopen_self_static=unknown ;;
12465  esac
12466fi
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484striplib=
12485old_striplib=
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12487$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12488if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12489  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12490  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12492$as_echo "yes" >&6; }
12493else
12494# FIXME - insert some real tests, host_os isn't really good enough
12495  case $host_os in
12496  darwin*)
12497    if test -n "$STRIP"; then
12498      striplib="$STRIP -x"
12499      old_striplib="$STRIP -S"
12500      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12501$as_echo "yes" >&6; }
12502    else
12503      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504$as_echo "no" >&6; }
12505    fi
12506    ;;
12507  *)
12508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509$as_echo "no" >&6; }
12510    ;;
12511  esac
12512fi
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525  # Report what library types will actually be built
12526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12527$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12529$as_echo "$can_build_shared" >&6; }
12530
12531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12532$as_echo_n "checking whether to build shared libraries... " >&6; }
12533  test no = "$can_build_shared" && enable_shared=no
12534
12535  # On AIX, shared libraries and static libraries use the same namespace, and
12536  # are all built from PIC.
12537  case $host_os in
12538  aix3*)
12539    test yes = "$enable_shared" && enable_static=no
12540    if test -n "$RANLIB"; then
12541      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12542      postinstall_cmds='$RANLIB $lib'
12543    fi
12544    ;;
12545
12546  aix[4-9]*)
12547    if test ia64 != "$host_cpu"; then
12548      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12549      yes,aix,yes) ;;			# shared object as lib.so file only
12550      yes,svr4,*) ;;			# shared object as lib.so archive member only
12551      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12552      esac
12553    fi
12554    ;;
12555  esac
12556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12557$as_echo "$enable_shared" >&6; }
12558
12559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12560$as_echo_n "checking whether to build static libraries... " >&6; }
12561  # Make sure either enable_shared or enable_static is yes.
12562  test yes = "$enable_shared" || enable_static=yes
12563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12564$as_echo "$enable_static" >&6; }
12565
12566
12567
12568
12569fi
12570ac_ext=c
12571ac_cpp='$CPP $CPPFLAGS'
12572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576CC=$lt_save_CC
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592        ac_config_commands="$ac_config_commands libtool"
12593
12594
12595
12596
12597# Only expand once:
12598
12599
12600
12601WDNS_MAJOR_VERSION=0
12602WDNS_MINOR_VERSION=10
12603WDNS_PATCHLEVEL_VERSION=0
12604WDNS_VERSION=0.10.0
12605
12606
12607
12608
12609
12610
12611ac_config_headers="$ac_config_headers config.h"
12612
12613ac_config_files="$ac_config_files Makefile wdns/libwdns.pc wdns/wdns.h"
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12624	if test -n "$ac_tool_prefix"; then
12625  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12626set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628$as_echo_n "checking for $ac_word... " >&6; }
12629if ${ac_cv_path_PKG_CONFIG+:} false; then :
12630  $as_echo_n "(cached) " >&6
12631else
12632  case $PKG_CONFIG in
12633  [\\/]* | ?:[\\/]*)
12634  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12635  ;;
12636  *)
12637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638for as_dir in $PATH
12639do
12640  IFS=$as_save_IFS
12641  test -z "$as_dir" && as_dir=.
12642    for ac_exec_ext in '' $ac_executable_extensions; do
12643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12644    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646    break 2
12647  fi
12648done
12649  done
12650IFS=$as_save_IFS
12651
12652  ;;
12653esac
12654fi
12655PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12656if test -n "$PKG_CONFIG"; then
12657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12658$as_echo "$PKG_CONFIG" >&6; }
12659else
12660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661$as_echo "no" >&6; }
12662fi
12663
12664
12665fi
12666if test -z "$ac_cv_path_PKG_CONFIG"; then
12667  ac_pt_PKG_CONFIG=$PKG_CONFIG
12668  # Extract the first word of "pkg-config", so it can be a program name with args.
12669set dummy pkg-config; ac_word=$2
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671$as_echo_n "checking for $ac_word... " >&6; }
12672if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12673  $as_echo_n "(cached) " >&6
12674else
12675  case $ac_pt_PKG_CONFIG in
12676  [\\/]* | ?:[\\/]*)
12677  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12678  ;;
12679  *)
12680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681for as_dir in $PATH
12682do
12683  IFS=$as_save_IFS
12684  test -z "$as_dir" && as_dir=.
12685    for ac_exec_ext in '' $ac_executable_extensions; do
12686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12687    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689    break 2
12690  fi
12691done
12692  done
12693IFS=$as_save_IFS
12694
12695  ;;
12696esac
12697fi
12698ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12699if test -n "$ac_pt_PKG_CONFIG"; then
12700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12701$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12702else
12703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
12705fi
12706
12707  if test "x$ac_pt_PKG_CONFIG" = x; then
12708    PKG_CONFIG=""
12709  else
12710    case $cross_compiling:$ac_tool_warned in
12711yes:)
12712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12714ac_tool_warned=yes ;;
12715esac
12716    PKG_CONFIG=$ac_pt_PKG_CONFIG
12717  fi
12718else
12719  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12720fi
12721
12722fi
12723if test -n "$PKG_CONFIG"; then
12724	_pkg_min_version=0.9.0
12725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12726$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12727	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12728		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12729$as_echo "yes" >&6; }
12730	else
12731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732$as_echo "no" >&6; }
12733		PKG_CONFIG=""
12734	fi
12735fi
12736if test -n "$PKG_CONFIG"; then
12737    # Horrible hack for systems where the pkg-config install directory is simply wrong!
12738    if $PKG_CONFIG --variable=pc_path pkg-config 2>/dev/null | grep -q /libdata/; then
12739
12740
12741
12742# Check whether --with-pkgconfigdir was given.
12743if test "${with_pkgconfigdir+set}" = set; then :
12744  withval=$with_pkgconfigdir;
12745else
12746  with_pkgconfigdir='${prefix}/libdata/pkgconfig'
12747fi
12748
12749pkgconfigdir=$with_pkgconfigdir
12750
12751
12752
12753
12754    else
12755
12756
12757
12758# Check whether --with-pkgconfigdir was given.
12759if test "${with_pkgconfigdir+set}" = set; then :
12760  withval=$with_pkgconfigdir;
12761else
12762  with_pkgconfigdir='${libdir}/pkgconfig'
12763fi
12764
12765pkgconfigdir=$with_pkgconfigdir
12766
12767
12768
12769
12770    fi
12771else
12772    as_fn_error $? "pkg-config is required!" "$LINENO" 5
12773fi
12774
12775my_CFLAGS="-Wall \
12776-Wmissing-declarations -Wmissing-prototypes \
12777-Wnested-externs -Wpointer-arith \
12778-Wpointer-arith -Wsign-compare -Wchar-subscripts \
12779-Wstrict-prototypes -Wshadow \
12780-Wformat-security"
12781
12782
12783for ac_header in alloca.h
12784do :
12785  ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
12786if test "x$ac_cv_header_alloca_h" = xyes; then :
12787  cat >>confdefs.h <<_ACEOF
12788#define HAVE_ALLOCA_H 1
12789_ACEOF
12790
12791fi
12792
12793done
12794
12795
12796ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
12797if test "x$ac_cv_header_pcap_h" = xyes; then :
12798
12799fi
12800
12801
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_loop in -lpcap" >&5
12803$as_echo_n "checking for pcap_loop in -lpcap... " >&6; }
12804if ${ac_cv_lib_pcap_pcap_loop+:} false; then :
12805  $as_echo_n "(cached) " >&6
12806else
12807  ac_check_lib_save_LIBS=$LIBS
12808LIBS="-lpcap  $LIBS"
12809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810/* end confdefs.h.  */
12811
12812/* Override any GCC internal prototype to avoid an error.
12813   Use char because int might match the return type of a GCC
12814   builtin and then its argument prototype would still apply.  */
12815#ifdef __cplusplus
12816extern "C"
12817#endif
12818char pcap_loop ();
12819int
12820main ()
12821{
12822return pcap_loop ();
12823  ;
12824  return 0;
12825}
12826_ACEOF
12827if ac_fn_c_try_link "$LINENO"; then :
12828  ac_cv_lib_pcap_pcap_loop=yes
12829else
12830  ac_cv_lib_pcap_pcap_loop=no
12831fi
12832rm -f core conftest.err conftest.$ac_objext \
12833    conftest$ac_exeext conftest.$ac_ext
12834LIBS=$ac_check_lib_save_LIBS
12835fi
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_loop" >&5
12837$as_echo "$ac_cv_lib_pcap_pcap_loop" >&6; }
12838if test "x$ac_cv_lib_pcap_pcap_loop" = xyes; then :
12839
12840
12841$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
12842
12843        have_libpcap=true
12844
12845else
12846
12847        have_libpcap=false
12848
12849
12850fi
12851
12852 if test "$have_libpcap" = "true"; then
12853  LIBPCAP_TRUE=
12854  LIBPCAP_FALSE='#'
12855else
12856  LIBPCAP_TRUE='#'
12857  LIBPCAP_FALSE=
12858fi
12859
12860
12861
12862  # Check whether --enable-ld-version-script was given.
12863if test "${enable_ld_version_script+set}" = set; then :
12864  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
12865fi
12866
12867  if test -z "$have_ld_version_script"; then
12868    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
12869$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
12870    save_LDFLAGS="$LDFLAGS"
12871    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
12872    cat > conftest.map <<EOF
12873foo
12874EOF
12875    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876/* end confdefs.h.  */
12877
12878int
12879main ()
12880{
12881
12882  ;
12883  return 0;
12884}
12885_ACEOF
12886if ac_fn_c_try_link "$LINENO"; then :
12887  accepts_syntax_errors=yes
12888else
12889  accepts_syntax_errors=no
12890fi
12891rm -f core conftest.err conftest.$ac_objext \
12892    conftest$ac_exeext conftest.$ac_ext
12893    if test "$accepts_syntax_errors" = no; then
12894      cat > conftest.map <<EOF
12895VERS_1 {
12896        global: sym;
12897};
12898
12899VERS_2 {
12900        global: sym;
12901} VERS_1;
12902EOF
12903      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904/* end confdefs.h.  */
12905
12906int
12907main ()
12908{
12909
12910  ;
12911  return 0;
12912}
12913_ACEOF
12914if ac_fn_c_try_link "$LINENO"; then :
12915  have_ld_version_script=yes
12916else
12917  have_ld_version_script=no
12918fi
12919rm -f core conftest.err conftest.$ac_objext \
12920    conftest$ac_exeext conftest.$ac_ext
12921    else
12922      have_ld_version_script=no
12923    fi
12924    rm -f conftest.map
12925    LDFLAGS="$save_LDFLAGS"
12926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
12927$as_echo "$have_ld_version_script" >&6; }
12928  fi
12929   if test "$have_ld_version_script" = "yes"; then
12930  HAVE_LD_VERSION_SCRIPT_TRUE=
12931  HAVE_LD_VERSION_SCRIPT_FALSE='#'
12932else
12933  HAVE_LD_VERSION_SCRIPT_TRUE='#'
12934  HAVE_LD_VERSION_SCRIPT_FALSE=
12935fi
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945        # Find any Python interpreter.
12946    if test -z "$PYTHON"; then
12947      for ac_prog in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
12948do
12949  # Extract the first word of "$ac_prog", so it can be a program name with args.
12950set dummy $ac_prog; ac_word=$2
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
12953if ${ac_cv_path_PYTHON+:} false; then :
12954  $as_echo_n "(cached) " >&6
12955else
12956  case $PYTHON in
12957  [\\/]* | ?:[\\/]*)
12958  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12959  ;;
12960  *)
12961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962for as_dir in $PATH
12963do
12964  IFS=$as_save_IFS
12965  test -z "$as_dir" && as_dir=.
12966    for ac_exec_ext in '' $ac_executable_extensions; do
12967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12968    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970    break 2
12971  fi
12972done
12973  done
12974IFS=$as_save_IFS
12975
12976  ;;
12977esac
12978fi
12979PYTHON=$ac_cv_path_PYTHON
12980if test -n "$PYTHON"; then
12981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12982$as_echo "$PYTHON" >&6; }
12983else
12984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
12986fi
12987
12988
12989  test -n "$PYTHON" && break
12990done
12991test -n "$PYTHON" || PYTHON=":"
12992
12993    fi
12994    am_display_PYTHON=python
12995
12996
12997  if test "$PYTHON" = :; then
12998      :
12999  else
13000
13001
13002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13003$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13004if ${am_cv_python_version+:} false; then :
13005  $as_echo_n "(cached) " >&6
13006else
13007  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13008fi
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13010$as_echo "$am_cv_python_version" >&6; }
13011  PYTHON_VERSION=$am_cv_python_version
13012
13013
13014
13015  PYTHON_PREFIX='${prefix}'
13016
13017  PYTHON_EXEC_PREFIX='${exec_prefix}'
13018
13019
13020
13021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13022$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13023if ${am_cv_python_platform+:} false; then :
13024  $as_echo_n "(cached) " >&6
13025else
13026  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13027fi
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13029$as_echo "$am_cv_python_platform" >&6; }
13030  PYTHON_PLATFORM=$am_cv_python_platform
13031
13032
13033  # Just factor out some code duplication.
13034  am_python_setup_sysconfig="\
13035import sys
13036# Prefer sysconfig over distutils.sysconfig, for better compatibility
13037# with python 3.x.  See automake bug#10227.
13038try:
13039    import sysconfig
13040except ImportError:
13041    can_use_sysconfig = 0
13042else:
13043    can_use_sysconfig = 1
13044# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13045# <https://github.com/pypa/virtualenv/issues/118>
13046try:
13047    from platform import python_implementation
13048    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13049        can_use_sysconfig = 0
13050except ImportError:
13051    pass"
13052
13053
13054            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13055$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13056if ${am_cv_python_pythondir+:} false; then :
13057  $as_echo_n "(cached) " >&6
13058else
13059  if test "x$prefix" = xNONE
13060     then
13061       am_py_prefix=$ac_default_prefix
13062     else
13063       am_py_prefix=$prefix
13064     fi
13065     am_cv_python_pythondir=`$PYTHON -c "
13066$am_python_setup_sysconfig
13067if can_use_sysconfig:
13068    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13069else:
13070    from distutils import sysconfig
13071    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13072sys.stdout.write(sitedir)"`
13073     case $am_cv_python_pythondir in
13074     $am_py_prefix*)
13075       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13076       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13077       ;;
13078     *)
13079       case $am_py_prefix in
13080         /usr|/System*) ;;
13081         *)
13082	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13083	  ;;
13084       esac
13085       ;;
13086     esac
13087
13088fi
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13090$as_echo "$am_cv_python_pythondir" >&6; }
13091  pythondir=$am_cv_python_pythondir
13092
13093
13094
13095  pkgpythondir=\${pythondir}/$PACKAGE
13096
13097
13098        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13099$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13100if ${am_cv_python_pyexecdir+:} false; then :
13101  $as_echo_n "(cached) " >&6
13102else
13103  if test "x$exec_prefix" = xNONE
13104     then
13105       am_py_exec_prefix=$am_py_prefix
13106     else
13107       am_py_exec_prefix=$exec_prefix
13108     fi
13109     am_cv_python_pyexecdir=`$PYTHON -c "
13110$am_python_setup_sysconfig
13111if can_use_sysconfig:
13112    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13113else:
13114    from distutils import sysconfig
13115    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13116sys.stdout.write(sitedir)"`
13117     case $am_cv_python_pyexecdir in
13118     $am_py_exec_prefix*)
13119       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13120       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13121       ;;
13122     *)
13123       case $am_py_exec_prefix in
13124         /usr|/System*) ;;
13125         *)
13126	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13127	   ;;
13128       esac
13129       ;;
13130     esac
13131
13132fi
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13134$as_echo "$am_cv_python_pyexecdir" >&6; }
13135  pyexecdir=$am_cv_python_pyexecdir
13136
13137
13138
13139  pkgpyexecdir=\${pyexecdir}/$PACKAGE
13140
13141
13142
13143  fi
13144
13145
13146 if test "$PYTHON" != :; then
13147  HAVE_PYTHON_TRUE=
13148  HAVE_PYTHON_FALSE='#'
13149else
13150  HAVE_PYTHON_TRUE='#'
13151  HAVE_PYTHON_FALSE=
13152fi
13153
13154
13155
13156# Check whether --with-coverage was given.
13157if test "${with_coverage+set}" = set; then :
13158  withval=$with_coverage; lcov="$withval"
13159else
13160  lcov="no"
13161fi
13162
13163
13164
13165USE_LCOV="no"
13166if test "$lcov" != "no"; then
13167	if test "$lcov" != "yes"; then
13168		LCOV=$lcov
13169	else
13170		# Extract the first word of "lcov", so it can be a program name with args.
13171set dummy lcov; ac_word=$2
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173$as_echo_n "checking for $ac_word... " >&6; }
13174if ${ac_cv_path_LCOV+:} false; then :
13175  $as_echo_n "(cached) " >&6
13176else
13177  case $LCOV in
13178  [\\/]* | ?:[\\/]*)
13179  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
13180  ;;
13181  *)
13182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185  IFS=$as_save_IFS
13186  test -z "$as_dir" && as_dir=.
13187    for ac_exec_ext in '' $ac_executable_extensions; do
13188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13189    ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
13190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191    break 2
13192  fi
13193done
13194  done
13195IFS=$as_save_IFS
13196
13197  ;;
13198esac
13199fi
13200LCOV=$ac_cv_path_LCOV
13201if test -n "$LCOV"; then
13202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
13203$as_echo "$LCOV" >&6; }
13204else
13205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206$as_echo "no" >&6; }
13207fi
13208
13209
13210	fi
13211	if test -x "${LCOV}"; then
13212		USE_LCOV="yes"
13213	else
13214		as_fn_error $? "Cannot find lcov." "$LINENO" 5
13215	fi
13216	# is genhtml always in the same directory?
13217	GENHTML=`echo "$LCOV" | ${SED} s/lcov$/genhtml/`
13218	if test ! -x $GENHTML; then
13219		as_fn_error $? "genhtml not found, needed for lcov" "$LINENO" 5
13220	fi
13221	CFLAGS="$CFLAGS --coverage"
13222	LIBS=" $LIBS -lgcov"
13223
13224
13225
13226
13227fi
13228
13229
13230cat >confcache <<\_ACEOF
13231# This file is a shell script that caches the results of configure
13232# tests run on this system so they can be shared between configure
13233# scripts and configure runs, see configure's option --config-cache.
13234# It is not useful on other systems.  If it contains results you don't
13235# want to keep, you may remove or edit it.
13236#
13237# config.status only pays attention to the cache file if you give it
13238# the --recheck option to rerun configure.
13239#
13240# `ac_cv_env_foo' variables (set or unset) will be overridden when
13241# loading this file, other *unset* `ac_cv_foo' will be assigned the
13242# following values.
13243
13244_ACEOF
13245
13246# The following way of writing the cache mishandles newlines in values,
13247# but we know of no workaround that is simple, portable, and efficient.
13248# So, we kill variables containing newlines.
13249# Ultrix sh set writes to stderr and can't be redirected directly,
13250# and sets the high bit in the cache file unless we assign to the vars.
13251(
13252  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13253    eval ac_val=\$$ac_var
13254    case $ac_val in #(
13255    *${as_nl}*)
13256      case $ac_var in #(
13257      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13258$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13259      esac
13260      case $ac_var in #(
13261      _ | IFS | as_nl) ;; #(
13262      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13263      *) { eval $ac_var=; unset $ac_var;} ;;
13264      esac ;;
13265    esac
13266  done
13267
13268  (set) 2>&1 |
13269    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13270    *${as_nl}ac_space=\ *)
13271      # `set' does not quote correctly, so add quotes: double-quote
13272      # substitution turns \\\\ into \\, and sed turns \\ into \.
13273      sed -n \
13274	"s/'/'\\\\''/g;
13275	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13276      ;; #(
13277    *)
13278      # `set' quotes correctly as required by POSIX, so do not add quotes.
13279      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13280      ;;
13281    esac |
13282    sort
13283) |
13284  sed '
13285     /^ac_cv_env_/b end
13286     t clear
13287     :clear
13288     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13289     t end
13290     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13291     :end' >>confcache
13292if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13293  if test -w "$cache_file"; then
13294    if test "x$cache_file" != "x/dev/null"; then
13295      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13296$as_echo "$as_me: updating cache $cache_file" >&6;}
13297      if test ! -f "$cache_file" || test -h "$cache_file"; then
13298	cat confcache >"$cache_file"
13299      else
13300        case $cache_file in #(
13301        */* | ?:*)
13302	  mv -f confcache "$cache_file"$$ &&
13303	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13304        *)
13305	  mv -f confcache "$cache_file" ;;
13306	esac
13307      fi
13308    fi
13309  else
13310    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13311$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13312  fi
13313fi
13314rm -f confcache
13315
13316test "x$prefix" = xNONE && prefix=$ac_default_prefix
13317# Let make expand exec_prefix.
13318test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13319
13320DEFS=-DHAVE_CONFIG_H
13321
13322ac_libobjs=
13323ac_ltlibobjs=
13324U=
13325for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13326  # 1. Remove the extension, and $U if already installed.
13327  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13328  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13329  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13330  #    will be set to the directory where LIBOBJS objects are built.
13331  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13332  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13333done
13334LIBOBJS=$ac_libobjs
13335
13336LTLIBOBJS=$ac_ltlibobjs
13337
13338
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13340$as_echo_n "checking that generated files are newer than configure... " >&6; }
13341   if test -n "$am_sleep_pid"; then
13342     # Hide warnings about reused PIDs.
13343     wait $am_sleep_pid 2>/dev/null
13344   fi
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13346$as_echo "done" >&6; }
13347 if test -n "$EXEEXT"; then
13348  am__EXEEXT_TRUE=
13349  am__EXEEXT_FALSE='#'
13350else
13351  am__EXEEXT_TRUE='#'
13352  am__EXEEXT_FALSE=
13353fi
13354
13355if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13356  as_fn_error $? "conditional \"AMDEP\" was never defined.
13357Usually this means the macro was only invoked conditionally." "$LINENO" 5
13358fi
13359if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13360  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13361Usually this means the macro was only invoked conditionally." "$LINENO" 5
13362fi
13363if test -z "${LIBPCAP_TRUE}" && test -z "${LIBPCAP_FALSE}"; then
13364  as_fn_error $? "conditional \"LIBPCAP\" was never defined.
13365Usually this means the macro was only invoked conditionally." "$LINENO" 5
13366fi
13367if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13368  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13369Usually this means the macro was only invoked conditionally." "$LINENO" 5
13370fi
13371if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
13372  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
13373Usually this means the macro was only invoked conditionally." "$LINENO" 5
13374fi
13375
13376: "${CONFIG_STATUS=./config.status}"
13377ac_write_fail=0
13378ac_clean_files_save=$ac_clean_files
13379ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13381$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13382as_write_fail=0
13383cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13384#! $SHELL
13385# Generated by $as_me.
13386# Run this file to recreate the current configuration.
13387# Compiler output produced by configure, useful for debugging
13388# configure, is in config.log if it exists.
13389
13390debug=false
13391ac_cs_recheck=false
13392ac_cs_silent=false
13393
13394SHELL=\${CONFIG_SHELL-$SHELL}
13395export SHELL
13396_ASEOF
13397cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13398## -------------------- ##
13399## M4sh Initialization. ##
13400## -------------------- ##
13401
13402# Be more Bourne compatible
13403DUALCASE=1; export DUALCASE # for MKS sh
13404if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13405  emulate sh
13406  NULLCMD=:
13407  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13408  # is contrary to our usage.  Disable this feature.
13409  alias -g '${1+"$@"}'='"$@"'
13410  setopt NO_GLOB_SUBST
13411else
13412  case `(set -o) 2>/dev/null` in #(
13413  *posix*) :
13414    set -o posix ;; #(
13415  *) :
13416     ;;
13417esac
13418fi
13419
13420
13421as_nl='
13422'
13423export as_nl
13424# Printing a long string crashes Solaris 7 /usr/bin/printf.
13425as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13426as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13428# Prefer a ksh shell builtin over an external printf program on Solaris,
13429# but without wasting forks for bash or zsh.
13430if test -z "$BASH_VERSION$ZSH_VERSION" \
13431    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13432  as_echo='print -r --'
13433  as_echo_n='print -rn --'
13434elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13435  as_echo='printf %s\n'
13436  as_echo_n='printf %s'
13437else
13438  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13439    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13440    as_echo_n='/usr/ucb/echo -n'
13441  else
13442    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13443    as_echo_n_body='eval
13444      arg=$1;
13445      case $arg in #(
13446      *"$as_nl"*)
13447	expr "X$arg" : "X\\(.*\\)$as_nl";
13448	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13449      esac;
13450      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13451    '
13452    export as_echo_n_body
13453    as_echo_n='sh -c $as_echo_n_body as_echo'
13454  fi
13455  export as_echo_body
13456  as_echo='sh -c $as_echo_body as_echo'
13457fi
13458
13459# The user is always right.
13460if test "${PATH_SEPARATOR+set}" != set; then
13461  PATH_SEPARATOR=:
13462  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13463    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13464      PATH_SEPARATOR=';'
13465  }
13466fi
13467
13468
13469# IFS
13470# We need space, tab and new line, in precisely that order.  Quoting is
13471# there to prevent editors from complaining about space-tab.
13472# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13473# splitting by setting IFS to empty value.)
13474IFS=" ""	$as_nl"
13475
13476# Find who we are.  Look in the path if we contain no directory separator.
13477as_myself=
13478case $0 in #((
13479  *[\\/]* ) as_myself=$0 ;;
13480  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481for as_dir in $PATH
13482do
13483  IFS=$as_save_IFS
13484  test -z "$as_dir" && as_dir=.
13485    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13486  done
13487IFS=$as_save_IFS
13488
13489     ;;
13490esac
13491# We did not find ourselves, most probably we were run as `sh COMMAND'
13492# in which case we are not to be found in the path.
13493if test "x$as_myself" = x; then
13494  as_myself=$0
13495fi
13496if test ! -f "$as_myself"; then
13497  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13498  exit 1
13499fi
13500
13501# Unset variables that we do not need and which cause bugs (e.g. in
13502# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13503# suppresses any "Segmentation fault" message there.  '((' could
13504# trigger a bug in pdksh 5.2.14.
13505for as_var in BASH_ENV ENV MAIL MAILPATH
13506do eval test x\${$as_var+set} = xset \
13507  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13508done
13509PS1='$ '
13510PS2='> '
13511PS4='+ '
13512
13513# NLS nuisances.
13514LC_ALL=C
13515export LC_ALL
13516LANGUAGE=C
13517export LANGUAGE
13518
13519# CDPATH.
13520(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13521
13522
13523# as_fn_error STATUS ERROR [LINENO LOG_FD]
13524# ----------------------------------------
13525# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13526# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13527# script with STATUS, using 1 if that was 0.
13528as_fn_error ()
13529{
13530  as_status=$1; test $as_status -eq 0 && as_status=1
13531  if test "$4"; then
13532    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13533    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13534  fi
13535  $as_echo "$as_me: error: $2" >&2
13536  as_fn_exit $as_status
13537} # as_fn_error
13538
13539
13540# as_fn_set_status STATUS
13541# -----------------------
13542# Set $? to STATUS, without forking.
13543as_fn_set_status ()
13544{
13545  return $1
13546} # as_fn_set_status
13547
13548# as_fn_exit STATUS
13549# -----------------
13550# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13551as_fn_exit ()
13552{
13553  set +e
13554  as_fn_set_status $1
13555  exit $1
13556} # as_fn_exit
13557
13558# as_fn_unset VAR
13559# ---------------
13560# Portably unset VAR.
13561as_fn_unset ()
13562{
13563  { eval $1=; unset $1;}
13564}
13565as_unset=as_fn_unset
13566# as_fn_append VAR VALUE
13567# ----------------------
13568# Append the text in VALUE to the end of the definition contained in VAR. Take
13569# advantage of any shell optimizations that allow amortized linear growth over
13570# repeated appends, instead of the typical quadratic growth present in naive
13571# implementations.
13572if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13573  eval 'as_fn_append ()
13574  {
13575    eval $1+=\$2
13576  }'
13577else
13578  as_fn_append ()
13579  {
13580    eval $1=\$$1\$2
13581  }
13582fi # as_fn_append
13583
13584# as_fn_arith ARG...
13585# ------------------
13586# Perform arithmetic evaluation on the ARGs, and store the result in the
13587# global $as_val. Take advantage of shells that can avoid forks. The arguments
13588# must be portable across $(()) and expr.
13589if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13590  eval 'as_fn_arith ()
13591  {
13592    as_val=$(( $* ))
13593  }'
13594else
13595  as_fn_arith ()
13596  {
13597    as_val=`expr "$@" || test $? -eq 1`
13598  }
13599fi # as_fn_arith
13600
13601
13602if expr a : '\(a\)' >/dev/null 2>&1 &&
13603   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13604  as_expr=expr
13605else
13606  as_expr=false
13607fi
13608
13609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13610  as_basename=basename
13611else
13612  as_basename=false
13613fi
13614
13615if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13616  as_dirname=dirname
13617else
13618  as_dirname=false
13619fi
13620
13621as_me=`$as_basename -- "$0" ||
13622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13623	 X"$0" : 'X\(//\)$' \| \
13624	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13625$as_echo X/"$0" |
13626    sed '/^.*\/\([^/][^/]*\)\/*$/{
13627	    s//\1/
13628	    q
13629	  }
13630	  /^X\/\(\/\/\)$/{
13631	    s//\1/
13632	    q
13633	  }
13634	  /^X\/\(\/\).*/{
13635	    s//\1/
13636	    q
13637	  }
13638	  s/.*/./; q'`
13639
13640# Avoid depending upon Character Ranges.
13641as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13643as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13644as_cr_digits='0123456789'
13645as_cr_alnum=$as_cr_Letters$as_cr_digits
13646
13647ECHO_C= ECHO_N= ECHO_T=
13648case `echo -n x` in #(((((
13649-n*)
13650  case `echo 'xy\c'` in
13651  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13652  xy)  ECHO_C='\c';;
13653  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13654       ECHO_T='	';;
13655  esac;;
13656*)
13657  ECHO_N='-n';;
13658esac
13659
13660rm -f conf$$ conf$$.exe conf$$.file
13661if test -d conf$$.dir; then
13662  rm -f conf$$.dir/conf$$.file
13663else
13664  rm -f conf$$.dir
13665  mkdir conf$$.dir 2>/dev/null
13666fi
13667if (echo >conf$$.file) 2>/dev/null; then
13668  if ln -s conf$$.file conf$$ 2>/dev/null; then
13669    as_ln_s='ln -s'
13670    # ... but there are two gotchas:
13671    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13672    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13673    # In both cases, we have to default to `cp -pR'.
13674    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13675      as_ln_s='cp -pR'
13676  elif ln conf$$.file conf$$ 2>/dev/null; then
13677    as_ln_s=ln
13678  else
13679    as_ln_s='cp -pR'
13680  fi
13681else
13682  as_ln_s='cp -pR'
13683fi
13684rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13685rmdir conf$$.dir 2>/dev/null
13686
13687
13688# as_fn_mkdir_p
13689# -------------
13690# Create "$as_dir" as a directory, including parents if necessary.
13691as_fn_mkdir_p ()
13692{
13693
13694  case $as_dir in #(
13695  -*) as_dir=./$as_dir;;
13696  esac
13697  test -d "$as_dir" || eval $as_mkdir_p || {
13698    as_dirs=
13699    while :; do
13700      case $as_dir in #(
13701      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13702      *) as_qdir=$as_dir;;
13703      esac
13704      as_dirs="'$as_qdir' $as_dirs"
13705      as_dir=`$as_dirname -- "$as_dir" ||
13706$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13707	 X"$as_dir" : 'X\(//\)[^/]' \| \
13708	 X"$as_dir" : 'X\(//\)$' \| \
13709	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13710$as_echo X"$as_dir" |
13711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13712	    s//\1/
13713	    q
13714	  }
13715	  /^X\(\/\/\)[^/].*/{
13716	    s//\1/
13717	    q
13718	  }
13719	  /^X\(\/\/\)$/{
13720	    s//\1/
13721	    q
13722	  }
13723	  /^X\(\/\).*/{
13724	    s//\1/
13725	    q
13726	  }
13727	  s/.*/./; q'`
13728      test -d "$as_dir" && break
13729    done
13730    test -z "$as_dirs" || eval "mkdir $as_dirs"
13731  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13732
13733
13734} # as_fn_mkdir_p
13735if mkdir -p . 2>/dev/null; then
13736  as_mkdir_p='mkdir -p "$as_dir"'
13737else
13738  test -d ./-p && rmdir ./-p
13739  as_mkdir_p=false
13740fi
13741
13742
13743# as_fn_executable_p FILE
13744# -----------------------
13745# Test if FILE is an executable regular file.
13746as_fn_executable_p ()
13747{
13748  test -f "$1" && test -x "$1"
13749} # as_fn_executable_p
13750as_test_x='test -x'
13751as_executable_p=as_fn_executable_p
13752
13753# Sed expression to map a string onto a valid CPP name.
13754as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13755
13756# Sed expression to map a string onto a valid variable name.
13757as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13758
13759
13760exec 6>&1
13761## ----------------------------------- ##
13762## Main body of $CONFIG_STATUS script. ##
13763## ----------------------------------- ##
13764_ASEOF
13765test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13766
13767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13768# Save the log message, to keep $0 and so on meaningful, and to
13769# report actual input values of CONFIG_FILES etc. instead of their
13770# values after options handling.
13771ac_log="
13772This file was extended by wdns $as_me 0.10.0, which was
13773generated by GNU Autoconf 2.69.  Invocation command line was
13774
13775  CONFIG_FILES    = $CONFIG_FILES
13776  CONFIG_HEADERS  = $CONFIG_HEADERS
13777  CONFIG_LINKS    = $CONFIG_LINKS
13778  CONFIG_COMMANDS = $CONFIG_COMMANDS
13779  $ $0 $@
13780
13781on `(hostname || uname -n) 2>/dev/null | sed 1q`
13782"
13783
13784_ACEOF
13785
13786case $ac_config_files in *"
13787"*) set x $ac_config_files; shift; ac_config_files=$*;;
13788esac
13789
13790case $ac_config_headers in *"
13791"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13792esac
13793
13794
13795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13796# Files that config.status was made for.
13797config_files="$ac_config_files"
13798config_headers="$ac_config_headers"
13799config_commands="$ac_config_commands"
13800
13801_ACEOF
13802
13803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13804ac_cs_usage="\
13805\`$as_me' instantiates files and other configuration actions
13806from templates according to the current configuration.  Unless the files
13807and actions are specified as TAGs, all are instantiated by default.
13808
13809Usage: $0 [OPTION]... [TAG]...
13810
13811  -h, --help       print this help, then exit
13812  -V, --version    print version number and configuration settings, then exit
13813      --config     print configuration, then exit
13814  -q, --quiet, --silent
13815                   do not print progress messages
13816  -d, --debug      don't remove temporary files
13817      --recheck    update $as_me by reconfiguring in the same conditions
13818      --file=FILE[:TEMPLATE]
13819                   instantiate the configuration file FILE
13820      --header=FILE[:TEMPLATE]
13821                   instantiate the configuration header FILE
13822
13823Configuration files:
13824$config_files
13825
13826Configuration headers:
13827$config_headers
13828
13829Configuration commands:
13830$config_commands
13831
13832Report bugs to <https://github.com/farsightsec/wdns/issues>.
13833wdns home page: <https://github.com/farsightsec/wdns>."
13834
13835_ACEOF
13836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13837ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13838ac_cs_version="\\
13839wdns config.status 0.10.0
13840configured by $0, generated by GNU Autoconf 2.69,
13841  with options \\"\$ac_cs_config\\"
13842
13843Copyright (C) 2012 Free Software Foundation, Inc.
13844This config.status script is free software; the Free Software Foundation
13845gives unlimited permission to copy, distribute and modify it."
13846
13847ac_pwd='$ac_pwd'
13848srcdir='$srcdir'
13849INSTALL='$INSTALL'
13850MKDIR_P='$MKDIR_P'
13851AWK='$AWK'
13852test -n "\$AWK" || AWK=awk
13853_ACEOF
13854
13855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13856# The default lists apply if the user does not specify any file.
13857ac_need_defaults=:
13858while test $# != 0
13859do
13860  case $1 in
13861  --*=?*)
13862    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13863    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13864    ac_shift=:
13865    ;;
13866  --*=)
13867    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13868    ac_optarg=
13869    ac_shift=:
13870    ;;
13871  *)
13872    ac_option=$1
13873    ac_optarg=$2
13874    ac_shift=shift
13875    ;;
13876  esac
13877
13878  case $ac_option in
13879  # Handling of the options.
13880  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13881    ac_cs_recheck=: ;;
13882  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13883    $as_echo "$ac_cs_version"; exit ;;
13884  --config | --confi | --conf | --con | --co | --c )
13885    $as_echo "$ac_cs_config"; exit ;;
13886  --debug | --debu | --deb | --de | --d | -d )
13887    debug=: ;;
13888  --file | --fil | --fi | --f )
13889    $ac_shift
13890    case $ac_optarg in
13891    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13892    '') as_fn_error $? "missing file argument" ;;
13893    esac
13894    as_fn_append CONFIG_FILES " '$ac_optarg'"
13895    ac_need_defaults=false;;
13896  --header | --heade | --head | --hea )
13897    $ac_shift
13898    case $ac_optarg in
13899    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13900    esac
13901    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13902    ac_need_defaults=false;;
13903  --he | --h)
13904    # Conflict between --help and --header
13905    as_fn_error $? "ambiguous option: \`$1'
13906Try \`$0 --help' for more information.";;
13907  --help | --hel | -h )
13908    $as_echo "$ac_cs_usage"; exit ;;
13909  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13910  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13911    ac_cs_silent=: ;;
13912
13913  # This is an error.
13914  -*) as_fn_error $? "unrecognized option: \`$1'
13915Try \`$0 --help' for more information." ;;
13916
13917  *) as_fn_append ac_config_targets " $1"
13918     ac_need_defaults=false ;;
13919
13920  esac
13921  shift
13922done
13923
13924ac_configure_extra_args=
13925
13926if $ac_cs_silent; then
13927  exec 6>/dev/null
13928  ac_configure_extra_args="$ac_configure_extra_args --silent"
13929fi
13930
13931_ACEOF
13932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13933if \$ac_cs_recheck; then
13934  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13935  shift
13936  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13937  CONFIG_SHELL='$SHELL'
13938  export CONFIG_SHELL
13939  exec "\$@"
13940fi
13941
13942_ACEOF
13943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13944exec 5>>config.log
13945{
13946  echo
13947  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13948## Running $as_me. ##
13949_ASBOX
13950  $as_echo "$ac_log"
13951} >&5
13952
13953_ACEOF
13954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13955#
13956# INIT-COMMANDS
13957#
13958AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13959
13960
13961# The HP-UX ksh and POSIX shell print the target directory to stdout
13962# if CDPATH is set.
13963(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13964
13965sed_quote_subst='$sed_quote_subst'
13966double_quote_subst='$double_quote_subst'
13967delay_variable_subst='$delay_variable_subst'
13968macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13969macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13970enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13971enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13972pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13973enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13974shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13975SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13976ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13977PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13978host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13979host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13980host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13981build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13982build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13983build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13984SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13985Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13986GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13987EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13988FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13989LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13990NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13991LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13992max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13993ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13994exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13995lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13996lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13997lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13998lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13999lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14000reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14001reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14002OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14003deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14004file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14005file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14006want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14007DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14008sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14009AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14010AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14011archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14012STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14013RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14014old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14015old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14016old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14017lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14018CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14019CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14020compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14021GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14022lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14023lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14024lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14025lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14026lt_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"`'
14027lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14028nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14029lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14030lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14031objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14032MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14033lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14034lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14035lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14036lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14037lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14038need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14039MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14040DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14041NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14042LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14043OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14044OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14045libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14046shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14047extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14048archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14049enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14050export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14051whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14052compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14053old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14054old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14055archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14056archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14057module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14058module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14059with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14060allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14061no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14062hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14063hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14064hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14065hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14066hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14067hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14068hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14069inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14070link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14071always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14072export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14073exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14074include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14075prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14076postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14077file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14078variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14079need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14080need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14081version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14082runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14083shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14084shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14085libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14086library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14087soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14088install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14089postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14090postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14091finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14092finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14093hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14094sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14095configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14096configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14097hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14098enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14099enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14100enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14101old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14102striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14103
14104LTCC='$LTCC'
14105LTCFLAGS='$LTCFLAGS'
14106compiler='$compiler_DEFAULT'
14107
14108# A function that is used when there is no print builtin or printf.
14109func_fallback_echo ()
14110{
14111  eval 'cat <<_LTECHO_EOF
14112\$1
14113_LTECHO_EOF'
14114}
14115
14116# Quote evaled strings.
14117for var in SHELL \
14118ECHO \
14119PATH_SEPARATOR \
14120SED \
14121GREP \
14122EGREP \
14123FGREP \
14124LD \
14125NM \
14126LN_S \
14127lt_SP2NL \
14128lt_NL2SP \
14129reload_flag \
14130OBJDUMP \
14131deplibs_check_method \
14132file_magic_cmd \
14133file_magic_glob \
14134want_nocaseglob \
14135DLLTOOL \
14136sharedlib_from_linklib_cmd \
14137AR \
14138AR_FLAGS \
14139archiver_list_spec \
14140STRIP \
14141RANLIB \
14142CC \
14143CFLAGS \
14144compiler \
14145lt_cv_sys_global_symbol_pipe \
14146lt_cv_sys_global_symbol_to_cdecl \
14147lt_cv_sys_global_symbol_to_import \
14148lt_cv_sys_global_symbol_to_c_name_address \
14149lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14150lt_cv_nm_interface \
14151nm_file_list_spec \
14152lt_cv_truncate_bin \
14153lt_prog_compiler_no_builtin_flag \
14154lt_prog_compiler_pic \
14155lt_prog_compiler_wl \
14156lt_prog_compiler_static \
14157lt_cv_prog_compiler_c_o \
14158need_locks \
14159MANIFEST_TOOL \
14160DSYMUTIL \
14161NMEDIT \
14162LIPO \
14163OTOOL \
14164OTOOL64 \
14165shrext_cmds \
14166export_dynamic_flag_spec \
14167whole_archive_flag_spec \
14168compiler_needs_object \
14169with_gnu_ld \
14170allow_undefined_flag \
14171no_undefined_flag \
14172hardcode_libdir_flag_spec \
14173hardcode_libdir_separator \
14174exclude_expsyms \
14175include_expsyms \
14176file_list_spec \
14177variables_saved_for_relink \
14178libname_spec \
14179library_names_spec \
14180soname_spec \
14181install_override_mode \
14182finish_eval \
14183old_striplib \
14184striplib; do
14185    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14186    *[\\\\\\\`\\"\\\$]*)
14187      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14188      ;;
14189    *)
14190      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14191      ;;
14192    esac
14193done
14194
14195# Double-quote double-evaled strings.
14196for var in reload_cmds \
14197old_postinstall_cmds \
14198old_postuninstall_cmds \
14199old_archive_cmds \
14200extract_expsyms_cmds \
14201old_archive_from_new_cmds \
14202old_archive_from_expsyms_cmds \
14203archive_cmds \
14204archive_expsym_cmds \
14205module_cmds \
14206module_expsym_cmds \
14207export_symbols_cmds \
14208prelink_cmds \
14209postlink_cmds \
14210postinstall_cmds \
14211postuninstall_cmds \
14212finish_cmds \
14213sys_lib_search_path_spec \
14214configure_time_dlsearch_path \
14215configure_time_lt_sys_library_path; do
14216    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14217    *[\\\\\\\`\\"\\\$]*)
14218      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14219      ;;
14220    *)
14221      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14222      ;;
14223    esac
14224done
14225
14226ac_aux_dir='$ac_aux_dir'
14227
14228# See if we are running on zsh, and set the options that allow our
14229# commands through without removal of \ escapes INIT.
14230if test -n "\${ZSH_VERSION+set}"; then
14231   setopt NO_GLOB_SUBST
14232fi
14233
14234
14235    PACKAGE='$PACKAGE'
14236    VERSION='$VERSION'
14237    RM='$RM'
14238    ofile='$ofile'
14239
14240
14241
14242
14243_ACEOF
14244
14245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14246
14247# Handling of arguments.
14248for ac_config_target in $ac_config_targets
14249do
14250  case $ac_config_target in
14251    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14252    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14253    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14254    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14255    "wdns/libwdns.pc") CONFIG_FILES="$CONFIG_FILES wdns/libwdns.pc" ;;
14256    "wdns/wdns.h") CONFIG_FILES="$CONFIG_FILES wdns/wdns.h" ;;
14257
14258  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14259  esac
14260done
14261
14262
14263# If the user did not use the arguments to specify the items to instantiate,
14264# then the envvar interface is used.  Set only those that are not.
14265# We use the long form for the default assignment because of an extremely
14266# bizarre bug on SunOS 4.1.3.
14267if $ac_need_defaults; then
14268  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14269  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14270  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14271fi
14272
14273# Have a temporary directory for convenience.  Make it in the build tree
14274# simply because there is no reason against having it here, and in addition,
14275# creating and moving files from /tmp can sometimes cause problems.
14276# Hook for its removal unless debugging.
14277# Note that there is a small window in which the directory will not be cleaned:
14278# after its creation but before its name has been assigned to `$tmp'.
14279$debug ||
14280{
14281  tmp= ac_tmp=
14282  trap 'exit_status=$?
14283  : "${ac_tmp:=$tmp}"
14284  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14285' 0
14286  trap 'as_fn_exit 1' 1 2 13 15
14287}
14288# Create a (secure) tmp directory for tmp files.
14289
14290{
14291  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14292  test -d "$tmp"
14293}  ||
14294{
14295  tmp=./conf$$-$RANDOM
14296  (umask 077 && mkdir "$tmp")
14297} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14298ac_tmp=$tmp
14299
14300# Set up the scripts for CONFIG_FILES section.
14301# No need to generate them if there are no CONFIG_FILES.
14302# This happens for instance with `./config.status config.h'.
14303if test -n "$CONFIG_FILES"; then
14304
14305
14306ac_cr=`echo X | tr X '\015'`
14307# On cygwin, bash can eat \r inside `` if the user requested igncr.
14308# But we know of no other shell where ac_cr would be empty at this
14309# point, so we can use a bashism as a fallback.
14310if test "x$ac_cr" = x; then
14311  eval ac_cr=\$\'\\r\'
14312fi
14313ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14314if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14315  ac_cs_awk_cr='\\r'
14316else
14317  ac_cs_awk_cr=$ac_cr
14318fi
14319
14320echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14321_ACEOF
14322
14323
14324{
14325  echo "cat >conf$$subs.awk <<_ACEOF" &&
14326  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14327  echo "_ACEOF"
14328} >conf$$subs.sh ||
14329  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14330ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14331ac_delim='%!_!# '
14332for ac_last_try in false false false false false :; do
14333  . ./conf$$subs.sh ||
14334    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14335
14336  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14337  if test $ac_delim_n = $ac_delim_num; then
14338    break
14339  elif $ac_last_try; then
14340    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14341  else
14342    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14343  fi
14344done
14345rm -f conf$$subs.sh
14346
14347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14348cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14349_ACEOF
14350sed -n '
14351h
14352s/^/S["/; s/!.*/"]=/
14353p
14354g
14355s/^[^!]*!//
14356:repl
14357t repl
14358s/'"$ac_delim"'$//
14359t delim
14360:nl
14361h
14362s/\(.\{148\}\)..*/\1/
14363t more1
14364s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14365p
14366n
14367b repl
14368:more1
14369s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14370p
14371g
14372s/.\{148\}//
14373t nl
14374:delim
14375h
14376s/\(.\{148\}\)..*/\1/
14377t more2
14378s/["\\]/\\&/g; s/^/"/; s/$/"/
14379p
14380b
14381:more2
14382s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14383p
14384g
14385s/.\{148\}//
14386t delim
14387' <conf$$subs.awk | sed '
14388/^[^""]/{
14389  N
14390  s/\n//
14391}
14392' >>$CONFIG_STATUS || ac_write_fail=1
14393rm -f conf$$subs.awk
14394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14395_ACAWK
14396cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14397  for (key in S) S_is_set[key] = 1
14398  FS = ""
14399
14400}
14401{
14402  line = $ 0
14403  nfields = split(line, field, "@")
14404  substed = 0
14405  len = length(field[1])
14406  for (i = 2; i < nfields; i++) {
14407    key = field[i]
14408    keylen = length(key)
14409    if (S_is_set[key]) {
14410      value = S[key]
14411      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14412      len += length(value) + length(field[++i])
14413      substed = 1
14414    } else
14415      len += 1 + keylen
14416  }
14417
14418  print line
14419}
14420
14421_ACAWK
14422_ACEOF
14423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14424if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14425  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14426else
14427  cat
14428fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14429  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14430_ACEOF
14431
14432# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14433# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14434# trailing colons and then remove the whole line if VPATH becomes empty
14435# (actually we leave an empty line to preserve line numbers).
14436if test "x$srcdir" = x.; then
14437  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14438h
14439s///
14440s/^/:/
14441s/[	 ]*$/:/
14442s/:\$(srcdir):/:/g
14443s/:\${srcdir}:/:/g
14444s/:@srcdir@:/:/g
14445s/^:*//
14446s/:*$//
14447x
14448s/\(=[	 ]*\).*/\1/
14449G
14450s/\n//
14451s/^[^=]*=[	 ]*$//
14452}'
14453fi
14454
14455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14456fi # test -n "$CONFIG_FILES"
14457
14458# Set up the scripts for CONFIG_HEADERS section.
14459# No need to generate them if there are no CONFIG_HEADERS.
14460# This happens for instance with `./config.status Makefile'.
14461if test -n "$CONFIG_HEADERS"; then
14462cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14463BEGIN {
14464_ACEOF
14465
14466# Transform confdefs.h into an awk script `defines.awk', embedded as
14467# here-document in config.status, that substitutes the proper values into
14468# config.h.in to produce config.h.
14469
14470# Create a delimiter string that does not exist in confdefs.h, to ease
14471# handling of long lines.
14472ac_delim='%!_!# '
14473for ac_last_try in false false :; do
14474  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14475  if test -z "$ac_tt"; then
14476    break
14477  elif $ac_last_try; then
14478    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14479  else
14480    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14481  fi
14482done
14483
14484# For the awk script, D is an array of macro values keyed by name,
14485# likewise P contains macro parameters if any.  Preserve backslash
14486# newline sequences.
14487
14488ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14489sed -n '
14490s/.\{148\}/&'"$ac_delim"'/g
14491t rset
14492:rset
14493s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14494t def
14495d
14496:def
14497s/\\$//
14498t bsnl
14499s/["\\]/\\&/g
14500s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14501D["\1"]=" \3"/p
14502s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14503d
14504:bsnl
14505s/["\\]/\\&/g
14506s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14507D["\1"]=" \3\\\\\\n"\\/p
14508t cont
14509s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14510t cont
14511d
14512:cont
14513n
14514s/.\{148\}/&'"$ac_delim"'/g
14515t clear
14516:clear
14517s/\\$//
14518t bsnlc
14519s/["\\]/\\&/g; s/^/"/; s/$/"/p
14520d
14521:bsnlc
14522s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14523b cont
14524' <confdefs.h | sed '
14525s/'"$ac_delim"'/"\\\
14526"/g' >>$CONFIG_STATUS || ac_write_fail=1
14527
14528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14529  for (key in D) D_is_set[key] = 1
14530  FS = ""
14531}
14532/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14533  line = \$ 0
14534  split(line, arg, " ")
14535  if (arg[1] == "#") {
14536    defundef = arg[2]
14537    mac1 = arg[3]
14538  } else {
14539    defundef = substr(arg[1], 2)
14540    mac1 = arg[2]
14541  }
14542  split(mac1, mac2, "(") #)
14543  macro = mac2[1]
14544  prefix = substr(line, 1, index(line, defundef) - 1)
14545  if (D_is_set[macro]) {
14546    # Preserve the white space surrounding the "#".
14547    print prefix "define", macro P[macro] D[macro]
14548    next
14549  } else {
14550    # Replace #undef with comments.  This is necessary, for example,
14551    # in the case of _POSIX_SOURCE, which is predefined and required
14552    # on some systems where configure will not decide to define it.
14553    if (defundef == "undef") {
14554      print "/*", prefix defundef, macro, "*/"
14555      next
14556    }
14557  }
14558}
14559{ print }
14560_ACAWK
14561_ACEOF
14562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14563  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14564fi # test -n "$CONFIG_HEADERS"
14565
14566
14567eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14568shift
14569for ac_tag
14570do
14571  case $ac_tag in
14572  :[FHLC]) ac_mode=$ac_tag; continue;;
14573  esac
14574  case $ac_mode$ac_tag in
14575  :[FHL]*:*);;
14576  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14577  :[FH]-) ac_tag=-:-;;
14578  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14579  esac
14580  ac_save_IFS=$IFS
14581  IFS=:
14582  set x $ac_tag
14583  IFS=$ac_save_IFS
14584  shift
14585  ac_file=$1
14586  shift
14587
14588  case $ac_mode in
14589  :L) ac_source=$1;;
14590  :[FH])
14591    ac_file_inputs=
14592    for ac_f
14593    do
14594      case $ac_f in
14595      -) ac_f="$ac_tmp/stdin";;
14596      *) # Look for the file first in the build tree, then in the source tree
14597	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14598	 # because $ac_f cannot contain `:'.
14599	 test -f "$ac_f" ||
14600	   case $ac_f in
14601	   [\\/$]*) false;;
14602	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14603	   esac ||
14604	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14605      esac
14606      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14607      as_fn_append ac_file_inputs " '$ac_f'"
14608    done
14609
14610    # Let's still pretend it is `configure' which instantiates (i.e., don't
14611    # use $as_me), people would be surprised to read:
14612    #    /* config.h.  Generated by config.status.  */
14613    configure_input='Generated from '`
14614	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14615	`' by configure.'
14616    if test x"$ac_file" != x-; then
14617      configure_input="$ac_file.  $configure_input"
14618      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14619$as_echo "$as_me: creating $ac_file" >&6;}
14620    fi
14621    # Neutralize special characters interpreted by sed in replacement strings.
14622    case $configure_input in #(
14623    *\&* | *\|* | *\\* )
14624       ac_sed_conf_input=`$as_echo "$configure_input" |
14625       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14626    *) ac_sed_conf_input=$configure_input;;
14627    esac
14628
14629    case $ac_tag in
14630    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14631      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14632    esac
14633    ;;
14634  esac
14635
14636  ac_dir=`$as_dirname -- "$ac_file" ||
14637$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14638	 X"$ac_file" : 'X\(//\)[^/]' \| \
14639	 X"$ac_file" : 'X\(//\)$' \| \
14640	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14641$as_echo X"$ac_file" |
14642    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14643	    s//\1/
14644	    q
14645	  }
14646	  /^X\(\/\/\)[^/].*/{
14647	    s//\1/
14648	    q
14649	  }
14650	  /^X\(\/\/\)$/{
14651	    s//\1/
14652	    q
14653	  }
14654	  /^X\(\/\).*/{
14655	    s//\1/
14656	    q
14657	  }
14658	  s/.*/./; q'`
14659  as_dir="$ac_dir"; as_fn_mkdir_p
14660  ac_builddir=.
14661
14662case "$ac_dir" in
14663.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14664*)
14665  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14666  # A ".." for each directory in $ac_dir_suffix.
14667  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14668  case $ac_top_builddir_sub in
14669  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14670  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14671  esac ;;
14672esac
14673ac_abs_top_builddir=$ac_pwd
14674ac_abs_builddir=$ac_pwd$ac_dir_suffix
14675# for backward compatibility:
14676ac_top_builddir=$ac_top_build_prefix
14677
14678case $srcdir in
14679  .)  # We are building in place.
14680    ac_srcdir=.
14681    ac_top_srcdir=$ac_top_builddir_sub
14682    ac_abs_top_srcdir=$ac_pwd ;;
14683  [\\/]* | ?:[\\/]* )  # Absolute name.
14684    ac_srcdir=$srcdir$ac_dir_suffix;
14685    ac_top_srcdir=$srcdir
14686    ac_abs_top_srcdir=$srcdir ;;
14687  *) # Relative name.
14688    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14689    ac_top_srcdir=$ac_top_build_prefix$srcdir
14690    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14691esac
14692ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14693
14694
14695  case $ac_mode in
14696  :F)
14697  #
14698  # CONFIG_FILE
14699  #
14700
14701  case $INSTALL in
14702  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14703  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14704  esac
14705  ac_MKDIR_P=$MKDIR_P
14706  case $MKDIR_P in
14707  [\\/$]* | ?:[\\/]* ) ;;
14708  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14709  esac
14710_ACEOF
14711
14712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14713# If the template does not know about datarootdir, expand it.
14714# FIXME: This hack should be removed a few years after 2.60.
14715ac_datarootdir_hack=; ac_datarootdir_seen=
14716ac_sed_dataroot='
14717/datarootdir/ {
14718  p
14719  q
14720}
14721/@datadir@/p
14722/@docdir@/p
14723/@infodir@/p
14724/@localedir@/p
14725/@mandir@/p'
14726case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14727*datarootdir*) ac_datarootdir_seen=yes;;
14728*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14729  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14730$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14731_ACEOF
14732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14733  ac_datarootdir_hack='
14734  s&@datadir@&$datadir&g
14735  s&@docdir@&$docdir&g
14736  s&@infodir@&$infodir&g
14737  s&@localedir@&$localedir&g
14738  s&@mandir@&$mandir&g
14739  s&\\\${datarootdir}&$datarootdir&g' ;;
14740esac
14741_ACEOF
14742
14743# Neutralize VPATH when `$srcdir' = `.'.
14744# Shell code in configure.ac might set extrasub.
14745# FIXME: do we really want to maintain this feature?
14746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14747ac_sed_extra="$ac_vpsub
14748$extrasub
14749_ACEOF
14750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14751:t
14752/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14753s|@configure_input@|$ac_sed_conf_input|;t t
14754s&@top_builddir@&$ac_top_builddir_sub&;t t
14755s&@top_build_prefix@&$ac_top_build_prefix&;t t
14756s&@srcdir@&$ac_srcdir&;t t
14757s&@abs_srcdir@&$ac_abs_srcdir&;t t
14758s&@top_srcdir@&$ac_top_srcdir&;t t
14759s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14760s&@builddir@&$ac_builddir&;t t
14761s&@abs_builddir@&$ac_abs_builddir&;t t
14762s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14763s&@INSTALL@&$ac_INSTALL&;t t
14764s&@MKDIR_P@&$ac_MKDIR_P&;t t
14765$ac_datarootdir_hack
14766"
14767eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14768  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14769
14770test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14771  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14772  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14773      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14774  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14775which seems to be undefined.  Please make sure it is defined" >&5
14776$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14777which seems to be undefined.  Please make sure it is defined" >&2;}
14778
14779  rm -f "$ac_tmp/stdin"
14780  case $ac_file in
14781  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14782  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14783  esac \
14784  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14785 ;;
14786  :H)
14787  #
14788  # CONFIG_HEADER
14789  #
14790  if test x"$ac_file" != x-; then
14791    {
14792      $as_echo "/* $configure_input  */" \
14793      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14794    } >"$ac_tmp/config.h" \
14795      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14796    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14797      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14798$as_echo "$as_me: $ac_file is unchanged" >&6;}
14799    else
14800      rm -f "$ac_file"
14801      mv "$ac_tmp/config.h" "$ac_file" \
14802	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14803    fi
14804  else
14805    $as_echo "/* $configure_input  */" \
14806      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14807      || as_fn_error $? "could not create -" "$LINENO" 5
14808  fi
14809# Compute "$ac_file"'s index in $config_headers.
14810_am_arg="$ac_file"
14811_am_stamp_count=1
14812for _am_header in $config_headers :; do
14813  case $_am_header in
14814    $_am_arg | $_am_arg:* )
14815      break ;;
14816    * )
14817      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14818  esac
14819done
14820echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14821$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14822	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14823	 X"$_am_arg" : 'X\(//\)$' \| \
14824	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14825$as_echo X"$_am_arg" |
14826    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14827	    s//\1/
14828	    q
14829	  }
14830	  /^X\(\/\/\)[^/].*/{
14831	    s//\1/
14832	    q
14833	  }
14834	  /^X\(\/\/\)$/{
14835	    s//\1/
14836	    q
14837	  }
14838	  /^X\(\/\).*/{
14839	    s//\1/
14840	    q
14841	  }
14842	  s/.*/./; q'`/stamp-h$_am_stamp_count
14843 ;;
14844
14845  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14846$as_echo "$as_me: executing $ac_file commands" >&6;}
14847 ;;
14848  esac
14849
14850
14851  case $ac_file$ac_mode in
14852    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14853  # Older Autoconf quotes --file arguments for eval, but not when files
14854  # are listed without --file.  Let's play safe and only enable the eval
14855  # if we detect the quoting.
14856  case $CONFIG_FILES in
14857  *\'*) eval set x "$CONFIG_FILES" ;;
14858  *)   set x $CONFIG_FILES ;;
14859  esac
14860  shift
14861  for mf
14862  do
14863    # Strip MF so we end up with the name of the file.
14864    mf=`echo "$mf" | sed -e 's/:.*$//'`
14865    # Check whether this is an Automake generated Makefile or not.
14866    # We used to match only the files named 'Makefile.in', but
14867    # some people rename them; so instead we look at the file content.
14868    # Grep'ing the first line is not enough: some people post-process
14869    # each Makefile.in and add a new line on top of each file to say so.
14870    # Grep'ing the whole file is not good either: AIX grep has a line
14871    # limit of 2048, but all sed's we know have understand at least 4000.
14872    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14873      dirpart=`$as_dirname -- "$mf" ||
14874$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14875	 X"$mf" : 'X\(//\)[^/]' \| \
14876	 X"$mf" : 'X\(//\)$' \| \
14877	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14878$as_echo X"$mf" |
14879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14880	    s//\1/
14881	    q
14882	  }
14883	  /^X\(\/\/\)[^/].*/{
14884	    s//\1/
14885	    q
14886	  }
14887	  /^X\(\/\/\)$/{
14888	    s//\1/
14889	    q
14890	  }
14891	  /^X\(\/\).*/{
14892	    s//\1/
14893	    q
14894	  }
14895	  s/.*/./; q'`
14896    else
14897      continue
14898    fi
14899    # Extract the definition of DEPDIR, am__include, and am__quote
14900    # from the Makefile without running 'make'.
14901    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14902    test -z "$DEPDIR" && continue
14903    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14904    test -z "$am__include" && continue
14905    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14906    # Find all dependency output files, they are included files with
14907    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14908    # simplest approach to changing $(DEPDIR) to its actual value in the
14909    # expansion.
14910    for file in `sed -n "
14911      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14912	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14913      # Make sure the directory exists.
14914      test -f "$dirpart/$file" && continue
14915      fdir=`$as_dirname -- "$file" ||
14916$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14917	 X"$file" : 'X\(//\)[^/]' \| \
14918	 X"$file" : 'X\(//\)$' \| \
14919	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14920$as_echo X"$file" |
14921    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14922	    s//\1/
14923	    q
14924	  }
14925	  /^X\(\/\/\)[^/].*/{
14926	    s//\1/
14927	    q
14928	  }
14929	  /^X\(\/\/\)$/{
14930	    s//\1/
14931	    q
14932	  }
14933	  /^X\(\/\).*/{
14934	    s//\1/
14935	    q
14936	  }
14937	  s/.*/./; q'`
14938      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14939      # echo "creating $dirpart/$file"
14940      echo '# dummy' > "$dirpart/$file"
14941    done
14942  done
14943}
14944 ;;
14945    "libtool":C)
14946
14947    # See if we are running on zsh, and set the options that allow our
14948    # commands through without removal of \ escapes.
14949    if test -n "${ZSH_VERSION+set}"; then
14950      setopt NO_GLOB_SUBST
14951    fi
14952
14953    cfgfile=${ofile}T
14954    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14955    $RM "$cfgfile"
14956
14957    cat <<_LT_EOF >> "$cfgfile"
14958#! $SHELL
14959# Generated automatically by $as_me ($PACKAGE) $VERSION
14960# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14961
14962# Provide generalized library-building support services.
14963# Written by Gordon Matzigkeit, 1996
14964
14965# Copyright (C) 2014 Free Software Foundation, Inc.
14966# This is free software; see the source for copying conditions.  There is NO
14967# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14968
14969# GNU Libtool is free software; you can redistribute it and/or modify
14970# it under the terms of the GNU General Public License as published by
14971# the Free Software Foundation; either version 2 of of the License, or
14972# (at your option) any later version.
14973#
14974# As a special exception to the GNU General Public License, if you
14975# distribute this file as part of a program or library that is built
14976# using GNU Libtool, you may include this file under the  same
14977# distribution terms that you use for the rest of that program.
14978#
14979# GNU Libtool is distributed in the hope that it will be useful, but
14980# WITHOUT ANY WARRANTY; without even the implied warranty of
14981# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14982# GNU General Public License for more details.
14983#
14984# You should have received a copy of the GNU General Public License
14985# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14986
14987
14988# The names of the tagged configurations supported by this script.
14989available_tags=''
14990
14991# Configured defaults for sys_lib_dlsearch_path munging.
14992: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14993
14994# ### BEGIN LIBTOOL CONFIG
14995
14996# Which release of libtool.m4 was used?
14997macro_version=$macro_version
14998macro_revision=$macro_revision
14999
15000# Whether or not to build shared libraries.
15001build_libtool_libs=$enable_shared
15002
15003# Whether or not to build static libraries.
15004build_old_libs=$enable_static
15005
15006# What type of objects to build.
15007pic_mode=$pic_mode
15008
15009# Whether or not to optimize for fast installation.
15010fast_install=$enable_fast_install
15011
15012# Shared archive member basename,for filename based shared library versioning on AIX.
15013shared_archive_member_spec=$shared_archive_member_spec
15014
15015# Shell to use when invoking shell scripts.
15016SHELL=$lt_SHELL
15017
15018# An echo program that protects backslashes.
15019ECHO=$lt_ECHO
15020
15021# The PATH separator for the build system.
15022PATH_SEPARATOR=$lt_PATH_SEPARATOR
15023
15024# The host system.
15025host_alias=$host_alias
15026host=$host
15027host_os=$host_os
15028
15029# The build system.
15030build_alias=$build_alias
15031build=$build
15032build_os=$build_os
15033
15034# A sed program that does not truncate output.
15035SED=$lt_SED
15036
15037# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15038Xsed="\$SED -e 1s/^X//"
15039
15040# A grep program that handles long lines.
15041GREP=$lt_GREP
15042
15043# An ERE matcher.
15044EGREP=$lt_EGREP
15045
15046# A literal string matcher.
15047FGREP=$lt_FGREP
15048
15049# A BSD- or MS-compatible name lister.
15050NM=$lt_NM
15051
15052# Whether we need soft or hard links.
15053LN_S=$lt_LN_S
15054
15055# What is the maximum length of a command?
15056max_cmd_len=$max_cmd_len
15057
15058# Object file suffix (normally "o").
15059objext=$ac_objext
15060
15061# Executable file suffix (normally "").
15062exeext=$exeext
15063
15064# whether the shell understands "unset".
15065lt_unset=$lt_unset
15066
15067# turn spaces into newlines.
15068SP2NL=$lt_lt_SP2NL
15069
15070# turn newlines into spaces.
15071NL2SP=$lt_lt_NL2SP
15072
15073# convert \$build file names to \$host format.
15074to_host_file_cmd=$lt_cv_to_host_file_cmd
15075
15076# convert \$build files to toolchain format.
15077to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15078
15079# An object symbol dumper.
15080OBJDUMP=$lt_OBJDUMP
15081
15082# Method to check whether dependent libraries are shared objects.
15083deplibs_check_method=$lt_deplibs_check_method
15084
15085# Command to use when deplibs_check_method = "file_magic".
15086file_magic_cmd=$lt_file_magic_cmd
15087
15088# How to find potential files when deplibs_check_method = "file_magic".
15089file_magic_glob=$lt_file_magic_glob
15090
15091# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15092want_nocaseglob=$lt_want_nocaseglob
15093
15094# DLL creation program.
15095DLLTOOL=$lt_DLLTOOL
15096
15097# Command to associate shared and link libraries.
15098sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15099
15100# The archiver.
15101AR=$lt_AR
15102
15103# Flags to create an archive.
15104AR_FLAGS=$lt_AR_FLAGS
15105
15106# How to feed a file listing to the archiver.
15107archiver_list_spec=$lt_archiver_list_spec
15108
15109# A symbol stripping program.
15110STRIP=$lt_STRIP
15111
15112# Commands used to install an old-style archive.
15113RANLIB=$lt_RANLIB
15114old_postinstall_cmds=$lt_old_postinstall_cmds
15115old_postuninstall_cmds=$lt_old_postuninstall_cmds
15116
15117# Whether to use a lock for old archive extraction.
15118lock_old_archive_extraction=$lock_old_archive_extraction
15119
15120# A C compiler.
15121LTCC=$lt_CC
15122
15123# LTCC compiler flags.
15124LTCFLAGS=$lt_CFLAGS
15125
15126# Take the output of nm and produce a listing of raw symbols and C names.
15127global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15128
15129# Transform the output of nm in a proper C declaration.
15130global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15131
15132# Transform the output of nm into a list of symbols to manually relocate.
15133global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15134
15135# Transform the output of nm in a C name address pair.
15136global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15137
15138# Transform the output of nm in a C name address pair when lib prefix is needed.
15139global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15140
15141# The name lister interface.
15142nm_interface=$lt_lt_cv_nm_interface
15143
15144# Specify filename containing input files for \$NM.
15145nm_file_list_spec=$lt_nm_file_list_spec
15146
15147# The root where to search for dependent libraries,and where our libraries should be installed.
15148lt_sysroot=$lt_sysroot
15149
15150# Command to truncate a binary pipe.
15151lt_truncate_bin=$lt_lt_cv_truncate_bin
15152
15153# The name of the directory that contains temporary libtool files.
15154objdir=$objdir
15155
15156# Used to examine libraries when file_magic_cmd begins with "file".
15157MAGIC_CMD=$MAGIC_CMD
15158
15159# Must we lock files when doing compilation?
15160need_locks=$lt_need_locks
15161
15162# Manifest tool.
15163MANIFEST_TOOL=$lt_MANIFEST_TOOL
15164
15165# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15166DSYMUTIL=$lt_DSYMUTIL
15167
15168# Tool to change global to local symbols on Mac OS X.
15169NMEDIT=$lt_NMEDIT
15170
15171# Tool to manipulate fat objects and archives on Mac OS X.
15172LIPO=$lt_LIPO
15173
15174# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15175OTOOL=$lt_OTOOL
15176
15177# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15178OTOOL64=$lt_OTOOL64
15179
15180# Old archive suffix (normally "a").
15181libext=$libext
15182
15183# Shared library suffix (normally ".so").
15184shrext_cmds=$lt_shrext_cmds
15185
15186# The commands to extract the exported symbol list from a shared archive.
15187extract_expsyms_cmds=$lt_extract_expsyms_cmds
15188
15189# Variables whose values should be saved in libtool wrapper scripts and
15190# restored at link time.
15191variables_saved_for_relink=$lt_variables_saved_for_relink
15192
15193# Do we need the "lib" prefix for modules?
15194need_lib_prefix=$need_lib_prefix
15195
15196# Do we need a version for libraries?
15197need_version=$need_version
15198
15199# Library versioning type.
15200version_type=$version_type
15201
15202# Shared library runtime path variable.
15203runpath_var=$runpath_var
15204
15205# Shared library path variable.
15206shlibpath_var=$shlibpath_var
15207
15208# Is shlibpath searched before the hard-coded library search path?
15209shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15210
15211# Format of library name prefix.
15212libname_spec=$lt_libname_spec
15213
15214# List of archive names.  First name is the real one, the rest are links.
15215# The last name is the one that the linker finds with -lNAME
15216library_names_spec=$lt_library_names_spec
15217
15218# The coded name of the library, if different from the real name.
15219soname_spec=$lt_soname_spec
15220
15221# Permission mode override for installation of shared libraries.
15222install_override_mode=$lt_install_override_mode
15223
15224# Command to use after installation of a shared archive.
15225postinstall_cmds=$lt_postinstall_cmds
15226
15227# Command to use after uninstallation of a shared archive.
15228postuninstall_cmds=$lt_postuninstall_cmds
15229
15230# Commands used to finish a libtool library installation in a directory.
15231finish_cmds=$lt_finish_cmds
15232
15233# As "finish_cmds", except a single script fragment to be evaled but
15234# not shown.
15235finish_eval=$lt_finish_eval
15236
15237# Whether we should hardcode library paths into libraries.
15238hardcode_into_libs=$hardcode_into_libs
15239
15240# Compile-time system search path for libraries.
15241sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15242
15243# Detected run-time system search path for libraries.
15244sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15245
15246# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15247configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15248
15249# Whether dlopen is supported.
15250dlopen_support=$enable_dlopen
15251
15252# Whether dlopen of programs is supported.
15253dlopen_self=$enable_dlopen_self
15254
15255# Whether dlopen of statically linked programs is supported.
15256dlopen_self_static=$enable_dlopen_self_static
15257
15258# Commands to strip libraries.
15259old_striplib=$lt_old_striplib
15260striplib=$lt_striplib
15261
15262
15263# The linker used to build libraries.
15264LD=$lt_LD
15265
15266# How to create reloadable object files.
15267reload_flag=$lt_reload_flag
15268reload_cmds=$lt_reload_cmds
15269
15270# Commands used to build an old-style archive.
15271old_archive_cmds=$lt_old_archive_cmds
15272
15273# A language specific compiler.
15274CC=$lt_compiler
15275
15276# Is the compiler the GNU compiler?
15277with_gcc=$GCC
15278
15279# Compiler flag to turn off builtin functions.
15280no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15281
15282# Additional compiler flags for building library objects.
15283pic_flag=$lt_lt_prog_compiler_pic
15284
15285# How to pass a linker flag through the compiler.
15286wl=$lt_lt_prog_compiler_wl
15287
15288# Compiler flag to prevent dynamic linking.
15289link_static_flag=$lt_lt_prog_compiler_static
15290
15291# Does compiler simultaneously support -c and -o options?
15292compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15293
15294# Whether or not to add -lc for building shared libraries.
15295build_libtool_need_lc=$archive_cmds_need_lc
15296
15297# Whether or not to disallow shared libs when runtime libs are static.
15298allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15299
15300# Compiler flag to allow reflexive dlopens.
15301export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15302
15303# Compiler flag to generate shared objects directly from archives.
15304whole_archive_flag_spec=$lt_whole_archive_flag_spec
15305
15306# Whether the compiler copes with passing no objects directly.
15307compiler_needs_object=$lt_compiler_needs_object
15308
15309# Create an old-style archive from a shared archive.
15310old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15311
15312# Create a temporary old-style archive to link instead of a shared archive.
15313old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15314
15315# Commands used to build a shared archive.
15316archive_cmds=$lt_archive_cmds
15317archive_expsym_cmds=$lt_archive_expsym_cmds
15318
15319# Commands used to build a loadable module if different from building
15320# a shared archive.
15321module_cmds=$lt_module_cmds
15322module_expsym_cmds=$lt_module_expsym_cmds
15323
15324# Whether we are building with GNU ld or not.
15325with_gnu_ld=$lt_with_gnu_ld
15326
15327# Flag that allows shared libraries with undefined symbols to be built.
15328allow_undefined_flag=$lt_allow_undefined_flag
15329
15330# Flag that enforces no undefined symbols.
15331no_undefined_flag=$lt_no_undefined_flag
15332
15333# Flag to hardcode \$libdir into a binary during linking.
15334# This must work even if \$libdir does not exist
15335hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15336
15337# Whether we need a single "-rpath" flag with a separated argument.
15338hardcode_libdir_separator=$lt_hardcode_libdir_separator
15339
15340# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15341# DIR into the resulting binary.
15342hardcode_direct=$hardcode_direct
15343
15344# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15345# DIR into the resulting binary and the resulting library dependency is
15346# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15347# library is relocated.
15348hardcode_direct_absolute=$hardcode_direct_absolute
15349
15350# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15351# into the resulting binary.
15352hardcode_minus_L=$hardcode_minus_L
15353
15354# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15355# into the resulting binary.
15356hardcode_shlibpath_var=$hardcode_shlibpath_var
15357
15358# Set to "yes" if building a shared library automatically hardcodes DIR
15359# into the library and all subsequent libraries and executables linked
15360# against it.
15361hardcode_automatic=$hardcode_automatic
15362
15363# Set to yes if linker adds runtime paths of dependent libraries
15364# to runtime path list.
15365inherit_rpath=$inherit_rpath
15366
15367# Whether libtool must link a program against all its dependency libraries.
15368link_all_deplibs=$link_all_deplibs
15369
15370# Set to "yes" if exported symbols are required.
15371always_export_symbols=$always_export_symbols
15372
15373# The commands to list exported symbols.
15374export_symbols_cmds=$lt_export_symbols_cmds
15375
15376# Symbols that should not be listed in the preloaded symbols.
15377exclude_expsyms=$lt_exclude_expsyms
15378
15379# Symbols that must always be exported.
15380include_expsyms=$lt_include_expsyms
15381
15382# Commands necessary for linking programs (against libraries) with templates.
15383prelink_cmds=$lt_prelink_cmds
15384
15385# Commands necessary for finishing linking programs.
15386postlink_cmds=$lt_postlink_cmds
15387
15388# Specify filename containing input files.
15389file_list_spec=$lt_file_list_spec
15390
15391# How to hardcode a shared library path into an executable.
15392hardcode_action=$hardcode_action
15393
15394# ### END LIBTOOL CONFIG
15395
15396_LT_EOF
15397
15398    cat <<'_LT_EOF' >> "$cfgfile"
15399
15400# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15401
15402# func_munge_path_list VARIABLE PATH
15403# -----------------------------------
15404# VARIABLE is name of variable containing _space_ separated list of
15405# directories to be munged by the contents of PATH, which is string
15406# having a format:
15407# "DIR[:DIR]:"
15408#       string "DIR[ DIR]" will be prepended to VARIABLE
15409# ":DIR[:DIR]"
15410#       string "DIR[ DIR]" will be appended to VARIABLE
15411# "DIRP[:DIRP]::[DIRA:]DIRA"
15412#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15413#       "DIRA[ DIRA]" will be appended to VARIABLE
15414# "DIR[:DIR]"
15415#       VARIABLE will be replaced by "DIR[ DIR]"
15416func_munge_path_list ()
15417{
15418    case x$2 in
15419    x)
15420        ;;
15421    *:)
15422        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15423        ;;
15424    x:*)
15425        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15426        ;;
15427    *::*)
15428        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15429        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15430        ;;
15431    *)
15432        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15433        ;;
15434    esac
15435}
15436
15437
15438# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15439func_cc_basename ()
15440{
15441    for cc_temp in $*""; do
15442      case $cc_temp in
15443        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15444        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15445        \-*) ;;
15446        *) break;;
15447      esac
15448    done
15449    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15450}
15451
15452
15453# ### END FUNCTIONS SHARED WITH CONFIGURE
15454
15455_LT_EOF
15456
15457  case $host_os in
15458  aix3*)
15459    cat <<\_LT_EOF >> "$cfgfile"
15460# AIX sometimes has problems with the GCC collect2 program.  For some
15461# reason, if we set the COLLECT_NAMES environment variable, the problems
15462# vanish in a puff of smoke.
15463if test set != "${COLLECT_NAMES+set}"; then
15464  COLLECT_NAMES=
15465  export COLLECT_NAMES
15466fi
15467_LT_EOF
15468    ;;
15469  esac
15470
15471
15472ltmain=$ac_aux_dir/ltmain.sh
15473
15474
15475  # We use sed instead of cat because bash on DJGPP gets confused if
15476  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15477  # text mode, it properly converts lines to CR/LF.  This bash problem
15478  # is reportedly fixed, but why not run on old versions too?
15479  sed '$q' "$ltmain" >> "$cfgfile" \
15480     || (rm -f "$cfgfile"; exit 1)
15481
15482   mv -f "$cfgfile" "$ofile" ||
15483    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15484  chmod +x "$ofile"
15485
15486 ;;
15487
15488  esac
15489done # for ac_tag
15490
15491
15492as_fn_exit 0
15493_ACEOF
15494ac_clean_files=$ac_clean_files_save
15495
15496test $ac_write_fail = 0 ||
15497  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15498
15499
15500# configure is writing to config.log, and then calls config.status.
15501# config.status does its own redirection, appending to config.log.
15502# Unfortunately, on DOS this fails, as config.log is still kept open
15503# by configure, so config.status won't be able to write to it; its
15504# output is simply discarded.  So we exec the FD to /dev/null,
15505# effectively closing config.log, so it can be properly (re)opened and
15506# appended to by config.status.  When coming back to configure, we
15507# need to make the FD available again.
15508if test "$no_create" != yes; then
15509  ac_cs_success=:
15510  ac_config_status_args=
15511  test "$silent" = yes &&
15512    ac_config_status_args="$ac_config_status_args --quiet"
15513  exec 5>/dev/null
15514  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15515  exec 5>>config.log
15516  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15517  # would make configure fail if this is the last instruction.
15518  $ac_cs_success || as_fn_exit 1
15519fi
15520if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15521  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15522$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15523fi
15524
15525{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
15526    $PACKAGE $VERSION
15527
15528        CC:                     ${CC}
15529        CFLAGS:                 ${CFLAGS}
15530        LDFLAGS:                ${LDFLAGS}
15531        LIBS:                   ${LIBS}
15532
15533        prefix:                 ${prefix}
15534        sysconfdir:             ${sysconfdir}
15535        libdir:                 ${libdir}
15536        includedir:             ${includedir}
15537        pkgconfigdir:           ${pkgconfigdir}
15538
15539        code coverage enabled:  ${USE_LCOV}
15540" >&5
15541$as_echo "
15542    $PACKAGE $VERSION
15543
15544        CC:                     ${CC}
15545        CFLAGS:                 ${CFLAGS}
15546        LDFLAGS:                ${LDFLAGS}
15547        LIBS:                   ${LIBS}
15548
15549        prefix:                 ${prefix}
15550        sysconfdir:             ${sysconfdir}
15551        libdir:                 ${libdir}
15552        includedir:             ${includedir}
15553        pkgconfigdir:           ${pkgconfigdir}
15554
15555        code coverage enabled:  ${USE_LCOV}
15556" >&6; }
15557