1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for duo_unix 1.11.4.
4#
5# Report bugs to <support@duosecurity.com>.
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: support@duosecurity.com about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: 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='duo_unix'
592PACKAGE_TARNAME='duo_unix'
593PACKAGE_VERSION='1.11.4'
594PACKAGE_STRING='duo_unix 1.11.4'
595PACKAGE_BUGREPORT='support@duosecurity.com'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_config_libobj_dir=compat
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639libdirsuffix
640enable_lib64
641DUO_PRIVSEP_USER
642PAMDIR
643LIBPAM
644PAM_FALSE
645PAM_TRUE
646OPENSSL_LDFLAGS
647OPENSSL_LIBS
648OPENSSL_INCLUDES
649PKG_CONFIG
650IS_AIX
651UNITY_VERSION
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
657MANIFEST_TOOL
658RANLIB
659ac_ct_AR
660AR
661DLLTOOL
662OBJDUMP
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669SED
670LIBTOOL
671EGREP
672GREP
673CPP
674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
677am__nodep
678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__quote
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691DUO_CONF_DIR
692host_os
693host_vendor
694host_cpu
695host
696build_os
697build_vendor
698build_cpu
699build
700MAINT
701MAINTAINER_MODE_FALSE
702MAINTAINER_MODE_TRUE
703AM_BACKSLASH
704AM_DEFAULT_VERBOSITY
705AM_DEFAULT_V
706AM_V
707am__untar
708am__tar
709AMTAR
710am__leading_dot
711SET_MAKE
712AWK
713mkdir_p
714MKDIR_P
715INSTALL_STRIP_PROGRAM
716STRIP
717install_sh
718MAKEINFO
719AUTOHEADER
720AUTOMAKE
721AUTOCONF
722ACLOCAL
723VERSION
724PACKAGE
725CYGPATH_W
726am__isrc
727INSTALL_DATA
728INSTALL_SCRIPT
729INSTALL_PROGRAM
730target_alias
731host_alias
732build_alias
733LIBS
734ECHO_T
735ECHO_N
736ECHO_C
737DEFS
738mandir
739localedir
740libdir
741psdir
742pdfdir
743dvidir
744htmldir
745infodir
746docdir
747oldincludedir
748includedir
749localstatedir
750sharedstatedir
751sysconfdir
752datadir
753datarootdir
754libexecdir
755sbindir
756bindir
757program_transform_name
758prefix
759exec_prefix
760PACKAGE_URL
761PACKAGE_BUGREPORT
762PACKAGE_STRING
763PACKAGE_VERSION
764PACKAGE_TARNAME
765PACKAGE_NAME
766PATH_SEPARATOR
767SHELL'
768ac_subst_files=''
769ac_user_opts='
770enable_option_checking
771enable_silent_rules
772enable_maintainer_mode
773enable_dependency_tracking
774enable_shared
775enable_static
776with_pic
777enable_fast_install
778with_gnu_ld
779with_sysroot
780enable_libtool_lock
781with_openssl
782with_pam
783with_privsep_user
784enable_lib64
785'
786      ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CPP'
795
796
797# Initialize some variables set by options.
798ac_init_help=
799ac_init_version=false
800ac_unrecognized_opts=
801ac_unrecognized_sep=
802# The variables have the same names as the options, with
803# dashes changed to underlines.
804cache_file=/dev/null
805exec_prefix=NONE
806no_create=
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
815verbose=
816x_includes=NONE
817x_libraries=NONE
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
824# (The list follows the same order as the GNU Coding Standards.)
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
833includedir='${prefix}/include'
834oldincludedir='/usr/include'
835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836infodir='${datarootdir}/info'
837htmldir='${docdir}'
838dvidir='${docdir}'
839pdfdir='${docdir}'
840psdir='${docdir}'
841libdir='${exec_prefix}/lib'
842localedir='${datarootdir}/locale'
843mandir='${datarootdir}/man'
844
845ac_prev=
846ac_dashdash=
847for ac_option
848do
849  # If the previous option needs an argument, assign it.
850  if test -n "$ac_prev"; then
851    eval $ac_prev=\$ac_option
852    ac_prev=
853    continue
854  fi
855
856  case $ac_option in
857  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858  *=)   ac_optarg= ;;
859  *)    ac_optarg=yes ;;
860  esac
861
862  # Accept the important Cygnus configure options, so we can diagnose typos.
863
864  case $ac_dashdash$ac_option in
865  --)
866    ac_dashdash=yes ;;
867
868  -bindir | --bindir | --bindi | --bind | --bin | --bi)
869    ac_prev=bindir ;;
870  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871    bindir=$ac_optarg ;;
872
873  -build | --build | --buil | --bui | --bu)
874    ac_prev=build_alias ;;
875  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876    build_alias=$ac_optarg ;;
877
878  -cache-file | --cache-file | --cache-fil | --cache-fi \
879  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880    ac_prev=cache_file ;;
881  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883    cache_file=$ac_optarg ;;
884
885  --config-cache | -C)
886    cache_file=config.cache ;;
887
888  -datadir | --datadir | --datadi | --datad)
889    ac_prev=datadir ;;
890  -datadir=* | --datadir=* | --datadi=* | --datad=*)
891    datadir=$ac_optarg ;;
892
893  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894  | --dataroo | --dataro | --datar)
895    ac_prev=datarootdir ;;
896  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898    datarootdir=$ac_optarg ;;
899
900  -disable-* | --disable-*)
901    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902    # Reject names that are not valid shell variable names.
903    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904      as_fn_error $? "invalid feature name: $ac_useropt"
905    ac_useropt_orig=$ac_useropt
906    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907    case $ac_user_opts in
908      *"
909"enable_$ac_useropt"
910"*) ;;
911      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912	 ac_unrecognized_sep=', ';;
913    esac
914    eval enable_$ac_useropt=no ;;
915
916  -docdir | --docdir | --docdi | --doc | --do)
917    ac_prev=docdir ;;
918  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919    docdir=$ac_optarg ;;
920
921  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922    ac_prev=dvidir ;;
923  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924    dvidir=$ac_optarg ;;
925
926  -enable-* | --enable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=\$ac_optarg ;;
941
942  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944  | --exec | --exe | --ex)
945    ac_prev=exec_prefix ;;
946  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948  | --exec=* | --exe=* | --ex=*)
949    exec_prefix=$ac_optarg ;;
950
951  -gas | --gas | --ga | --g)
952    # Obsolete; use --with-gas.
953    with_gas=yes ;;
954
955  -help | --help | --hel | --he | -h)
956    ac_init_help=long ;;
957  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958    ac_init_help=recursive ;;
959  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960    ac_init_help=short ;;
961
962  -host | --host | --hos | --ho)
963    ac_prev=host_alias ;;
964  -host=* | --host=* | --hos=* | --ho=*)
965    host_alias=$ac_optarg ;;
966
967  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968    ac_prev=htmldir ;;
969  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970  | --ht=*)
971    htmldir=$ac_optarg ;;
972
973  -includedir | --includedir | --includedi | --included | --include \
974  | --includ | --inclu | --incl | --inc)
975    ac_prev=includedir ;;
976  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977  | --includ=* | --inclu=* | --incl=* | --inc=*)
978    includedir=$ac_optarg ;;
979
980  -infodir | --infodir | --infodi | --infod | --info | --inf)
981    ac_prev=infodir ;;
982  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983    infodir=$ac_optarg ;;
984
985  -libdir | --libdir | --libdi | --libd)
986    ac_prev=libdir ;;
987  -libdir=* | --libdir=* | --libdi=* | --libd=*)
988    libdir=$ac_optarg ;;
989
990  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991  | --libexe | --libex | --libe)
992    ac_prev=libexecdir ;;
993  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994  | --libexe=* | --libex=* | --libe=*)
995    libexecdir=$ac_optarg ;;
996
997  -localedir | --localedir | --localedi | --localed | --locale)
998    ac_prev=localedir ;;
999  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000    localedir=$ac_optarg ;;
1001
1002  -localstatedir | --localstatedir | --localstatedi | --localstated \
1003  | --localstate | --localstat | --localsta | --localst | --locals)
1004    ac_prev=localstatedir ;;
1005  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007    localstatedir=$ac_optarg ;;
1008
1009  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010    ac_prev=mandir ;;
1011  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012    mandir=$ac_optarg ;;
1013
1014  -nfp | --nfp | --nf)
1015    # Obsolete; use --without-fp.
1016    with_fp=no ;;
1017
1018  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019  | --no-cr | --no-c | -n)
1020    no_create=yes ;;
1021
1022  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024    no_recursion=yes ;;
1025
1026  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028  | --oldin | --oldi | --old | --ol | --o)
1029    ac_prev=oldincludedir ;;
1030  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033    oldincludedir=$ac_optarg ;;
1034
1035  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036    ac_prev=prefix ;;
1037  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038    prefix=$ac_optarg ;;
1039
1040  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041  | --program-pre | --program-pr | --program-p)
1042    ac_prev=program_prefix ;;
1043  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045    program_prefix=$ac_optarg ;;
1046
1047  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048  | --program-suf | --program-su | --program-s)
1049    ac_prev=program_suffix ;;
1050  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052    program_suffix=$ac_optarg ;;
1053
1054  -program-transform-name | --program-transform-name \
1055  | --program-transform-nam | --program-transform-na \
1056  | --program-transform-n | --program-transform- \
1057  | --program-transform | --program-transfor \
1058  | --program-transfo | --program-transf \
1059  | --program-trans | --program-tran \
1060  | --progr-tra | --program-tr | --program-t)
1061    ac_prev=program_transform_name ;;
1062  -program-transform-name=* | --program-transform-name=* \
1063  | --program-transform-nam=* | --program-transform-na=* \
1064  | --program-transform-n=* | --program-transform-=* \
1065  | --program-transform=* | --program-transfor=* \
1066  | --program-transfo=* | --program-transf=* \
1067  | --program-trans=* | --program-tran=* \
1068  | --progr-tra=* | --program-tr=* | --program-t=*)
1069    program_transform_name=$ac_optarg ;;
1070
1071  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072    ac_prev=pdfdir ;;
1073  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074    pdfdir=$ac_optarg ;;
1075
1076  -psdir | --psdir | --psdi | --psd | --ps)
1077    ac_prev=psdir ;;
1078  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079    psdir=$ac_optarg ;;
1080
1081  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082  | -silent | --silent | --silen | --sile | --sil)
1083    silent=yes ;;
1084
1085  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086    ac_prev=sbindir ;;
1087  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088  | --sbi=* | --sb=*)
1089    sbindir=$ac_optarg ;;
1090
1091  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093  | --sharedst | --shareds | --shared | --share | --shar \
1094  | --sha | --sh)
1095    ac_prev=sharedstatedir ;;
1096  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099  | --sha=* | --sh=*)
1100    sharedstatedir=$ac_optarg ;;
1101
1102  -site | --site | --sit)
1103    ac_prev=site ;;
1104  -site=* | --site=* | --sit=*)
1105    site=$ac_optarg ;;
1106
1107  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108    ac_prev=srcdir ;;
1109  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110    srcdir=$ac_optarg ;;
1111
1112  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113  | --syscon | --sysco | --sysc | --sys | --sy)
1114    ac_prev=sysconfdir ;;
1115  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117    sysconfdir=$ac_optarg ;;
1118
1119  -target | --target | --targe | --targ | --tar | --ta | --t)
1120    ac_prev=target_alias ;;
1121  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122    target_alias=$ac_optarg ;;
1123
1124  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125    verbose=yes ;;
1126
1127  -version | --version | --versio | --versi | --vers | -V)
1128    ac_init_version=: ;;
1129
1130  -with-* | --with-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=\$ac_optarg ;;
1145
1146  -without-* | --without-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: $ac_useropt"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=no ;;
1161
1162  --x)
1163    # Obsolete; use --with-x.
1164    with_x=yes ;;
1165
1166  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167  | --x-incl | --x-inc | --x-in | --x-i)
1168    ac_prev=x_includes ;;
1169  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171    x_includes=$ac_optarg ;;
1172
1173  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175    ac_prev=x_libraries ;;
1176  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178    x_libraries=$ac_optarg ;;
1179
1180  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information"
1182    ;;
1183
1184  *=*)
1185    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186    # Reject names that are not valid shell variable names.
1187    case $ac_envvar in #(
1188      '' | [0-9]* | *[!_$as_cr_alnum]* )
1189      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190    esac
1191    eval $ac_envvar=\$ac_optarg
1192    export $ac_envvar ;;
1193
1194  *)
1195    # FIXME: should be removed in autoconf 3.0.
1196    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200    ;;
1201
1202  esac
1203done
1204
1205if test -n "$ac_prev"; then
1206  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207  as_fn_error $? "missing argument to $ac_option"
1208fi
1209
1210if test -n "$ac_unrecognized_opts"; then
1211  case $enable_option_checking in
1212    no) ;;
1213    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215  esac
1216fi
1217
1218# Check all directory arguments for consistency.
1219for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220		datadir sysconfdir sharedstatedir localstatedir includedir \
1221		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222		libdir localedir mandir
1223do
1224  eval ac_val=\$$ac_var
1225  # Remove trailing slashes.
1226  case $ac_val in
1227    */ )
1228      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229      eval $ac_var=\$ac_val;;
1230  esac
1231  # Be sure to have absolute directory names.
1232  case $ac_val in
1233    [\\/$]* | ?:[\\/]* )  continue;;
1234    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235  esac
1236  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248  if test "x$build_alias" = x; then
1249    cross_compiling=maybe
1250  elif test "x$build_alias" != "x$host_alias"; then
1251    cross_compiling=yes
1252  fi
1253fi
1254
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
1259
1260
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264  as_fn_error $? "working directory cannot be determined"
1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266  as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269# Find the source files, if location was not specified.
1270if test -z "$srcdir"; then
1271  ac_srcdir_defaulted=yes
1272  # Try the directory containing this script, then the parent directory.
1273  ac_confdir=`$as_dirname -- "$as_myself" ||
1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275	 X"$as_myself" : 'X\(//\)[^/]' \| \
1276	 X"$as_myself" : 'X\(//\)$' \| \
1277	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278$as_echo X"$as_myself" |
1279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)[^/].*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\/\)$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\).*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  s/.*/./; q'`
1296  srcdir=$ac_confdir
1297  if test ! -r "$srcdir/$ac_unique_file"; then
1298    srcdir=..
1299  fi
1300else
1301  ac_srcdir_defaulted=no
1302fi
1303if test ! -r "$srcdir/$ac_unique_file"; then
1304  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
1309	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310	pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313  srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_env_${ac_var}_value=\$${ac_var}
1324  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
1327
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332  # Omit some internal or obsolete options to make the list less imposing.
1333  # This message is too long to be a string in the A/UX 3.1 sh.
1334  cat <<_ACEOF
1335\`configure' configures duo_unix 1.11.4 to adapt to many kinds of systems.
1336
1337Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342Defaults for the options are specified in brackets.
1343
1344Configuration:
1345  -h, --help              display this help and exit
1346      --help=short        display options specific to this package
1347      --help=recursive    display the short help of all the included packages
1348  -V, --version           display version information and exit
1349  -q, --quiet, --silent   do not print \`checking ...' messages
1350      --cache-file=FILE   cache test results in FILE [disabled]
1351  -C, --config-cache      alias for \`--cache-file=config.cache'
1352  -n, --no-create         do not create output files
1353      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355Installation directories:
1356  --prefix=PREFIX         install architecture-independent files in PREFIX
1357                          [$ac_default_prefix]
1358  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                          [PREFIX]
1360
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
1365
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
1369  --bindir=DIR            user executables [EPREFIX/bin]
1370  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371  --libexecdir=DIR        program executables [EPREFIX/libexec]
1372  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375  --libdir=DIR            object code libraries [EPREFIX/lib]
1376  --includedir=DIR        C header files [PREFIX/include]
1377  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1378  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1379  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1380  --infodir=DIR           info documentation [DATAROOTDIR/info]
1381  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1382  --mandir=DIR            man documentation [DATAROOTDIR/man]
1383  --docdir=DIR            documentation root [DATAROOTDIR/doc/duo_unix]
1384  --htmldir=DIR           html documentation [DOCDIR]
1385  --dvidir=DIR            dvi documentation [DOCDIR]
1386  --pdfdir=DIR            pdf documentation [DOCDIR]
1387  --psdir=DIR             ps documentation [DOCDIR]
1388_ACEOF
1389
1390  cat <<\_ACEOF
1391
1392Program names:
1393  --program-prefix=PREFIX            prepend PREFIX to installed program names
1394  --program-suffix=SUFFIX            append SUFFIX to installed program names
1395  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1396
1397System types:
1398  --build=BUILD     configure for building on BUILD [guessed]
1399  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1400_ACEOF
1401fi
1402
1403if test -n "$ac_init_help"; then
1404  case $ac_init_help in
1405     short | recursive ) echo "Configuration of duo_unix 1.11.4:";;
1406   esac
1407  cat <<\_ACEOF
1408
1409Optional Features:
1410  --disable-option-checking  ignore unrecognized --enable/--with options
1411  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1412  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1413  --enable-silent-rules   less verbose build output (undo: "make V=1")
1414  --disable-silent-rules  verbose build output (undo: "make V=0")
1415  --enable-maintainer-mode
1416                          enable make rules and dependencies not useful (and
1417                          sometimes confusing) to the casual installer
1418  --enable-dependency-tracking
1419                          do not reject slow dependency extractors
1420  --disable-dependency-tracking
1421                          speeds up one-time build
1422  --enable-shared[=PKGS]  build shared libraries [default=yes]
1423  --enable-static[=PKGS]  build static libraries [default=yes]
1424  --enable-fast-install[=PKGS]
1425                          optimize for fast installation [default=yes]
1426  --disable-libtool-lock  avoid locking (might break parallel builds)
1427 --enable-lib64=yes/no Enable lib64 support default=yes
1428
1429Optional Packages:
1430  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1433                          both]
1434  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1435  --with-sysroot=DIR Search for dependent libraries within DIR
1436                        (or the compiler's sysroot if not specified).
1437  --with-openssl=DIR      root of the OpenSSL directory
1438  --with-pam=DIR          build PAM module (and optionally override the
1439                          default install DIR)
1440  --with-privsep-user=USER
1441                          Specify user for privilege separation
1442
1443Some influential environment variables:
1444  CC          C compiler command
1445  CFLAGS      C compiler flags
1446  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447              nonstandard directory <lib dir>
1448  LIBS        libraries to pass to the linker, e.g. -l<library>
1449  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450              you have headers in a nonstandard directory <include dir>
1451  CPP         C preprocessor
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
1456Report bugs to <support@duosecurity.com>.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" ||
1465      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466      continue
1467    ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473  # A ".." for each directory in $ac_dir_suffix.
1474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475  case $ac_top_builddir_sub in
1476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478  esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486  .)  # We are building in place.
1487    ac_srcdir=.
1488    ac_top_srcdir=$ac_top_builddir_sub
1489    ac_abs_top_srcdir=$ac_pwd ;;
1490  [\\/]* | ?:[\\/]* )  # Absolute name.
1491    ac_srcdir=$srcdir$ac_dir_suffix;
1492    ac_top_srcdir=$srcdir
1493    ac_abs_top_srcdir=$srcdir ;;
1494  *) # Relative name.
1495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496    ac_top_srcdir=$ac_top_build_prefix$srcdir
1497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501    cd "$ac_dir" || { ac_status=$?; continue; }
1502    # Check for guested configure.
1503    if test -f "$ac_srcdir/configure.gnu"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506    elif test -f "$ac_srcdir/configure"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure" --help=recursive
1509    else
1510      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511    fi || ac_status=$?
1512    cd "$ac_pwd" || { ac_status=$?; break; }
1513  done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518  cat <<\_ACEOF
1519duo_unix configure 1.11.4
1520generated by GNU Autoconf 2.69
1521
1522Copyright (C) 2012 Free Software Foundation, Inc.
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526  exit
1527fi
1528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  rm -f conftest.$ac_objext
1540  if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543  *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547  (eval "$ac_compile") 2>conftest.err
1548  ac_status=$?
1549  if test -s conftest.err; then
1550    grep -v '^ *+' conftest.err >conftest.er1
1551    cat conftest.er1 >&5
1552    mv -f conftest.er1 conftest.err
1553  fi
1554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555  test $ac_status = 0; } && {
1556	 test -z "$ac_c_werror_flag" ||
1557	 test ! -s conftest.err
1558       } && test -s conftest.$ac_objext; then :
1559  ac_retval=0
1560else
1561  $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564	ac_retval=1
1565fi
1566  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567  as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_try_cpp LINENO
1572# ----------------------
1573# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_cpp ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  if { { ac_try="$ac_cpp conftest.$ac_ext"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } > conftest.i && {
1593	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       }; then :
1596  ac_retval=0
1597else
1598  $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601    ac_retval=1
1602fi
1603  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604  as_fn_set_status $ac_retval
1605
1606} # ac_fn_c_try_cpp
1607
1608# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1609# -------------------------------------------------------
1610# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1611# the include files in INCLUDES and setting the cache variable VAR
1612# accordingly.
1613ac_fn_c_check_header_mongrel ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  if eval \${$3+:} false; then :
1617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618$as_echo_n "checking for $2... " >&6; }
1619if eval \${$3+:} false; then :
1620  $as_echo_n "(cached) " >&6
1621fi
1622eval ac_res=\$$3
1623	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624$as_echo "$ac_res" >&6; }
1625else
1626  # Is the header compilable?
1627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1628$as_echo_n "checking $2 usability... " >&6; }
1629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h.  */
1631$4
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635  ac_header_compiler=yes
1636else
1637  ac_header_compiler=no
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1641$as_echo "$ac_header_compiler" >&6; }
1642
1643# Is the header present?
1644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1645$as_echo_n "checking $2 presence... " >&6; }
1646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h.  */
1648#include <$2>
1649_ACEOF
1650if ac_fn_c_try_cpp "$LINENO"; then :
1651  ac_header_preproc=yes
1652else
1653  ac_header_preproc=no
1654fi
1655rm -f conftest.err conftest.i conftest.$ac_ext
1656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1657$as_echo "$ac_header_preproc" >&6; }
1658
1659# So?  What about this header?
1660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1661  yes:no: )
1662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1663$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1664    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666    ;;
1667  no:yes:* )
1668    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1669$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1671$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1672    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1673$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1674    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1675$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1676    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678( $as_echo "## -------------------------------------- ##
1679## Report this to support@duosecurity.com ##
1680## -------------------------------------- ##"
1681     ) | sed "s/^/$as_me: WARNING:     /" >&2
1682    ;;
1683esac
1684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if eval \${$3+:} false; then :
1687  $as_echo_n "(cached) " >&6
1688else
1689  eval "$3=\$ac_header_compiler"
1690fi
1691eval ac_res=\$$3
1692	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693$as_echo "$ac_res" >&6; }
1694fi
1695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697} # ac_fn_c_check_header_mongrel
1698
1699# ac_fn_c_try_run LINENO
1700# ----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702# that executables *can* be run.
1703ac_fn_c_try_run ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_link") 2>&5
1714  ac_status=$?
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717  { { case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_try") 2>&5
1724  ac_status=$?
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; }; }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: program exited with status $ac_status" >&5
1730       $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733       ac_retval=$ac_status
1734fi
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_run
1740
1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742# -------------------------------------------------------
1743# Tests whether HEADER exists and can be compiled using the include files in
1744# INCLUDES, setting the cache variable VAR accordingly.
1745ac_fn_c_check_header_compile ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if eval \${$3+:} false; then :
1751  $as_echo_n "(cached) " >&6
1752else
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759  eval "$3=yes"
1760else
1761  eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765eval ac_res=\$$3
1766	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769
1770} # ac_fn_c_check_header_compile
1771
1772# ac_fn_c_try_link LINENO
1773# -----------------------
1774# Try to link conftest.$ac_ext, and return whether this succeeded.
1775ac_fn_c_try_link ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  rm -f conftest.$ac_objext conftest$ac_exeext
1779  if { { ac_try="$ac_link"
1780case "(($ac_try" in
1781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782  *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786  (eval "$ac_link") 2>conftest.err
1787  ac_status=$?
1788  if test -s conftest.err; then
1789    grep -v '^ *+' conftest.err >conftest.er1
1790    cat conftest.er1 >&5
1791    mv -f conftest.er1 conftest.err
1792  fi
1793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; } && {
1795	 test -z "$ac_c_werror_flag" ||
1796	 test ! -s conftest.err
1797       } && test -s conftest$ac_exeext && {
1798	 test "$cross_compiling" = yes ||
1799	 test -x conftest$ac_exeext
1800       }; then :
1801  ac_retval=0
1802else
1803  $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
1805
1806	ac_retval=1
1807fi
1808  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810  # interfere with the next link command; also delete a directory that is
1811  # left behind by Apple's compiler.  We do this before executing the actions.
1812  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814  as_fn_set_status $ac_retval
1815
1816} # ac_fn_c_try_link
1817
1818# ac_fn_c_check_func LINENO FUNC VAR
1819# ----------------------------------
1820# Tests whether FUNC exists, setting the cache variable VAR accordingly
1821ac_fn_c_check_func ()
1822{
1823  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval \${$3+:} false; then :
1827  $as_echo_n "(cached) " >&6
1828else
1829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1833#define $2 innocuous_$2
1834
1835/* System header to define __stub macros and hopefully few prototypes,
1836    which can conflict with char $2 (); below.
1837    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838    <limits.h> exists even on freestanding compilers.  */
1839
1840#ifdef __STDC__
1841# include <limits.h>
1842#else
1843# include <assert.h>
1844#endif
1845
1846#undef $2
1847
1848/* Override any GCC internal prototype to avoid an error.
1849   Use char because int might match the return type of a GCC
1850   builtin and then its argument prototype would still apply.  */
1851#ifdef __cplusplus
1852extern "C"
1853#endif
1854char $2 ();
1855/* The GNU C library defines this for functions which it implements
1856    to always fail with ENOSYS.  Some functions are actually named
1857    something starting with __ and the normal name is an alias.  */
1858#if defined __stub_$2 || defined __stub___$2
1859choke me
1860#endif
1861
1862int
1863main ()
1864{
1865return $2 ();
1866  ;
1867  return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_link "$LINENO"; then :
1871  eval "$3=yes"
1872else
1873  eval "$3=no"
1874fi
1875rm -f core conftest.err conftest.$ac_objext \
1876    conftest$ac_exeext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_func
1884
1885# ac_fn_c_find_intX_t LINENO BITS VAR
1886# -----------------------------------
1887# Finds a signed integer type with width BITS, setting cache variable VAR
1888# accordingly.
1889ac_fn_c_find_intX_t ()
1890{
1891  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1893$as_echo_n "checking for int$2_t... " >&6; }
1894if eval \${$3+:} false; then :
1895  $as_echo_n "(cached) " >&6
1896else
1897  eval "$3=no"
1898     # Order is important - never check a type that is potentially smaller
1899     # than half of the expected target width.
1900     for ac_type in int$2_t 'int' 'long int' \
1901	 'long long int' 'short int' 'signed char'; do
1902       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904$ac_includes_default
1905	     enum { N = $2 / 2 - 1 };
1906int
1907main ()
1908{
1909static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1910test_array [0] = 0;
1911return test_array [0];
1912
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$ac_includes_default
1921	        enum { N = $2 / 2 - 1 };
1922int
1923main ()
1924{
1925static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1926		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1927test_array [0] = 0;
1928return test_array [0];
1929
1930  ;
1931  return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935
1936else
1937  case $ac_type in #(
1938  int$2_t) :
1939    eval "$3=yes" ;; #(
1940  *) :
1941    eval "$3=\$ac_type" ;;
1942esac
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945fi
1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947       if eval test \"x\$"$3"\" = x"no"; then :
1948
1949else
1950  break
1951fi
1952     done
1953fi
1954eval ac_res=\$$3
1955	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959} # ac_fn_c_find_intX_t
1960cat >config.log <<_ACEOF
1961This file contains any messages produced by compilers while
1962running configure, to aid debugging if configure makes a mistake.
1963
1964It was created by duo_unix $as_me 1.11.4, which was
1965generated by GNU Autoconf 2.69.  Invocation command line was
1966
1967  $ $0 $@
1968
1969_ACEOF
1970exec 5>>config.log
1971{
1972cat <<_ASUNAME
1973## --------- ##
1974## Platform. ##
1975## --------- ##
1976
1977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1978uname -m = `(uname -m) 2>/dev/null || echo unknown`
1979uname -r = `(uname -r) 2>/dev/null || echo unknown`
1980uname -s = `(uname -s) 2>/dev/null || echo unknown`
1981uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982
1983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1984/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1985
1986/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1987/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1989/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1990/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1991/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1992/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1993
1994_ASUNAME
1995
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999  IFS=$as_save_IFS
2000  test -z "$as_dir" && as_dir=.
2001    $as_echo "PATH: $as_dir"
2002  done
2003IFS=$as_save_IFS
2004
2005} >&5
2006
2007cat >&5 <<_ACEOF
2008
2009
2010## ----------- ##
2011## Core tests. ##
2012## ----------- ##
2013
2014_ACEOF
2015
2016
2017# Keep a trace of the command line.
2018# Strip out --no-create and --no-recursion so they do not pile up.
2019# Strip out --silent because we don't want to record it for future runs.
2020# Also quote any args containing shell meta-characters.
2021# Make two passes to allow for proper duplicate-argument suppression.
2022ac_configure_args=
2023ac_configure_args0=
2024ac_configure_args1=
2025ac_must_keep_next=false
2026for ac_pass in 1 2
2027do
2028  for ac_arg
2029  do
2030    case $ac_arg in
2031    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2032    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2033    | -silent | --silent | --silen | --sile | --sil)
2034      continue ;;
2035    *\'*)
2036      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2037    esac
2038    case $ac_pass in
2039    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2040    2)
2041      as_fn_append ac_configure_args1 " '$ac_arg'"
2042      if test $ac_must_keep_next = true; then
2043	ac_must_keep_next=false # Got value, back to normal.
2044      else
2045	case $ac_arg in
2046	  *=* | --config-cache | -C | -disable-* | --disable-* \
2047	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2048	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2049	  | -with-* | --with-* | -without-* | --without-* | --x)
2050	    case "$ac_configure_args0 " in
2051	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2052	    esac
2053	    ;;
2054	  -* ) ac_must_keep_next=true ;;
2055	esac
2056      fi
2057      as_fn_append ac_configure_args " '$ac_arg'"
2058      ;;
2059    esac
2060  done
2061done
2062{ ac_configure_args0=; unset ac_configure_args0;}
2063{ ac_configure_args1=; unset ac_configure_args1;}
2064
2065# When interrupted or exit'd, cleanup temporary files, and complete
2066# config.log.  We remove comments because anyway the quotes in there
2067# would cause problems or look ugly.
2068# WARNING: Use '\'' to represent an apostrophe within the trap.
2069# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2070trap 'exit_status=$?
2071  # Save into config.log some information that might help in debugging.
2072  {
2073    echo
2074
2075    $as_echo "## ---------------- ##
2076## Cache variables. ##
2077## ---------------- ##"
2078    echo
2079    # The following way of writing the cache mishandles newlines in values,
2080(
2081  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2082    eval ac_val=\$$ac_var
2083    case $ac_val in #(
2084    *${as_nl}*)
2085      case $ac_var in #(
2086      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2087$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2088      esac
2089      case $ac_var in #(
2090      _ | IFS | as_nl) ;; #(
2091      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2092      *) { eval $ac_var=; unset $ac_var;} ;;
2093      esac ;;
2094    esac
2095  done
2096  (set) 2>&1 |
2097    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2098    *${as_nl}ac_space=\ *)
2099      sed -n \
2100	"s/'\''/'\''\\\\'\'''\''/g;
2101	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2102      ;; #(
2103    *)
2104      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2105      ;;
2106    esac |
2107    sort
2108)
2109    echo
2110
2111    $as_echo "## ----------------- ##
2112## Output variables. ##
2113## ----------------- ##"
2114    echo
2115    for ac_var in $ac_subst_vars
2116    do
2117      eval ac_val=\$$ac_var
2118      case $ac_val in
2119      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120      esac
2121      $as_echo "$ac_var='\''$ac_val'\''"
2122    done | sort
2123    echo
2124
2125    if test -n "$ac_subst_files"; then
2126      $as_echo "## ------------------- ##
2127## File substitutions. ##
2128## ------------------- ##"
2129      echo
2130      for ac_var in $ac_subst_files
2131      do
2132	eval ac_val=\$$ac_var
2133	case $ac_val in
2134	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135	esac
2136	$as_echo "$ac_var='\''$ac_val'\''"
2137      done | sort
2138      echo
2139    fi
2140
2141    if test -s confdefs.h; then
2142      $as_echo "## ----------- ##
2143## confdefs.h. ##
2144## ----------- ##"
2145      echo
2146      cat confdefs.h
2147      echo
2148    fi
2149    test "$ac_signal" != 0 &&
2150      $as_echo "$as_me: caught signal $ac_signal"
2151    $as_echo "$as_me: exit $exit_status"
2152  } >&5
2153  rm -f core *.core core.conftest.* &&
2154    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2155    exit $exit_status
2156' 0
2157for ac_signal in 1 2 13 15; do
2158  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2159done
2160ac_signal=0
2161
2162# confdefs.h avoids OS command line length limits that DEFS can exceed.
2163rm -f -r conftest* confdefs.h
2164
2165$as_echo "/* confdefs.h */" > confdefs.h
2166
2167# Predefined preprocessor variables.
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_NAME "$PACKAGE_NAME"
2171_ACEOF
2172
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175_ACEOF
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_VERSION "$PACKAGE_VERSION"
2179_ACEOF
2180
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_STRING "$PACKAGE_STRING"
2183_ACEOF
2184
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187_ACEOF
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_URL "$PACKAGE_URL"
2191_ACEOF
2192
2193
2194# Let the site file select an alternate cache file if it wants to.
2195# Prefer an explicitly selected file to automatically selected ones.
2196ac_site_file1=NONE
2197ac_site_file2=NONE
2198if test -n "$CONFIG_SITE"; then
2199  # We do not want a PATH search for config.site.
2200  case $CONFIG_SITE in #((
2201    -*)  ac_site_file1=./$CONFIG_SITE;;
2202    */*) ac_site_file1=$CONFIG_SITE;;
2203    *)   ac_site_file1=./$CONFIG_SITE;;
2204  esac
2205elif test "x$prefix" != xNONE; then
2206  ac_site_file1=$prefix/share/config.site
2207  ac_site_file2=$prefix/etc/config.site
2208else
2209  ac_site_file1=$ac_default_prefix/share/config.site
2210  ac_site_file2=$ac_default_prefix/etc/config.site
2211fi
2212for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2213do
2214  test "x$ac_site_file" = xNONE && continue
2215  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2216    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2218    sed 's/^/| /' "$ac_site_file" >&5
2219    . "$ac_site_file" \
2220      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222as_fn_error $? "failed to load site script $ac_site_file
2223See \`config.log' for more details" "$LINENO" 5; }
2224  fi
2225done
2226
2227if test -r "$cache_file"; then
2228  # Some versions of bash will fail to source /dev/null (special files
2229  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2230  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232$as_echo "$as_me: loading cache $cache_file" >&6;}
2233    case $cache_file in
2234      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235      *)                      . "./$cache_file";;
2236    esac
2237  fi
2238else
2239  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240$as_echo "$as_me: creating cache $cache_file" >&6;}
2241  >$cache_file
2242fi
2243
2244# Check that the precious variables saved in the cache have kept the same
2245# value.
2246ac_cache_corrupted=false
2247for ac_var in $ac_precious_vars; do
2248  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249  eval ac_new_set=\$ac_env_${ac_var}_set
2250  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251  eval ac_new_val=\$ac_env_${ac_var}_value
2252  case $ac_old_set,$ac_new_set in
2253    set,)
2254      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2255$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2256      ac_cache_corrupted=: ;;
2257    ,set)
2258      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2259$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2260      ac_cache_corrupted=: ;;
2261    ,);;
2262    *)
2263      if test "x$ac_old_val" != "x$ac_new_val"; then
2264	# differences in whitespace do not lead to failure.
2265	ac_old_val_w=`echo x $ac_old_val`
2266	ac_new_val_w=`echo x $ac_new_val`
2267	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2268	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2269$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2270	  ac_cache_corrupted=:
2271	else
2272	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2273$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2274	  eval $ac_var=\$ac_old_val
2275	fi
2276	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2277$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2278	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2279$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2280      fi;;
2281  esac
2282  # Pass precious variables to config.status.
2283  if test "$ac_new_set" = set; then
2284    case $ac_new_val in
2285    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2286    *) ac_arg=$ac_var=$ac_new_val ;;
2287    esac
2288    case " $ac_configure_args " in
2289      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2290      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2291    esac
2292  fi
2293done
2294if $ac_cache_corrupted; then
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2298$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2299  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2300fi
2301## -------------------- ##
2302## Main body of script. ##
2303## -------------------- ##
2304
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310
2311
2312
2313# Tells autoconf where to find necessary build scripts and macros.
2314ac_aux_dir=
2315for ac_dir in autotools "$srcdir"/autotools; do
2316  if test -f "$ac_dir/install-sh"; then
2317    ac_aux_dir=$ac_dir
2318    ac_install_sh="$ac_aux_dir/install-sh -c"
2319    break
2320  elif test -f "$ac_dir/install.sh"; then
2321    ac_aux_dir=$ac_dir
2322    ac_install_sh="$ac_aux_dir/install.sh -c"
2323    break
2324  elif test -f "$ac_dir/shtool"; then
2325    ac_aux_dir=$ac_dir
2326    ac_install_sh="$ac_aux_dir/shtool install -c"
2327    break
2328  fi
2329done
2330if test -z "$ac_aux_dir"; then
2331  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
2332fi
2333
2334# These three variables are undocumented and unsupported,
2335# and are intended to be withdrawn in a future Autoconf release.
2336# They can cause serious problems if a builder's source tree is in a directory
2337# whose full name contains unusual characters.
2338ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2339ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2340ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2341
2342
2343
2344
2345# Init automake
2346am__api_version='1.13'
2347
2348# Find a good install program.  We prefer a C program (faster),
2349# so one script is as good as another.  But avoid the broken or
2350# incompatible versions:
2351# SysV /etc/install, /usr/sbin/install
2352# SunOS /usr/etc/install
2353# IRIX /sbin/install
2354# AIX /bin/install
2355# AmigaOS /C/install, which installs bootblocks on floppy discs
2356# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2357# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2358# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2359# OS/2's system install, which has a completely different semantic
2360# ./install, which can be erroneously created by make from ./install.sh.
2361# Reject install programs that cannot install multiple files.
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2363$as_echo_n "checking for a BSD-compatible install... " >&6; }
2364if test -z "$INSTALL"; then
2365if ${ac_cv_path_install+:} false; then :
2366  $as_echo_n "(cached) " >&6
2367else
2368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371  IFS=$as_save_IFS
2372  test -z "$as_dir" && as_dir=.
2373    # Account for people who put trailing slashes in PATH elements.
2374case $as_dir/ in #((
2375  ./ | .// | /[cC]/* | \
2376  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2377  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2378  /usr/ucb/* ) ;;
2379  *)
2380    # OSF1 and SCO ODT 3.0 have their own names for install.
2381    # Don't use installbsd from OSF since it installs stuff as root
2382    # by default.
2383    for ac_prog in ginstall scoinst install; do
2384      for ac_exec_ext in '' $ac_executable_extensions; do
2385	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2386	  if test $ac_prog = install &&
2387	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2388	    # AIX install.  It has an incompatible calling convention.
2389	    :
2390	  elif test $ac_prog = install &&
2391	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2392	    # program-specific install script used by HP pwplus--don't use.
2393	    :
2394	  else
2395	    rm -rf conftest.one conftest.two conftest.dir
2396	    echo one > conftest.one
2397	    echo two > conftest.two
2398	    mkdir conftest.dir
2399	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2400	      test -s conftest.one && test -s conftest.two &&
2401	      test -s conftest.dir/conftest.one &&
2402	      test -s conftest.dir/conftest.two
2403	    then
2404	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2405	      break 3
2406	    fi
2407	  fi
2408	fi
2409      done
2410    done
2411    ;;
2412esac
2413
2414  done
2415IFS=$as_save_IFS
2416
2417rm -rf conftest.one conftest.two conftest.dir
2418
2419fi
2420  if test "${ac_cv_path_install+set}" = set; then
2421    INSTALL=$ac_cv_path_install
2422  else
2423    # As a last resort, use the slow shell script.  Don't cache a
2424    # value for INSTALL within a source directory, because that will
2425    # break other packages using the cache if that directory is
2426    # removed, or if the value is a relative name.
2427    INSTALL=$ac_install_sh
2428  fi
2429fi
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2431$as_echo "$INSTALL" >&6; }
2432
2433# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2434# It thinks the first close brace ends the variable substitution.
2435test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2436
2437test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2438
2439test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2440
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2442$as_echo_n "checking whether build environment is sane... " >&6; }
2443# Reject unsafe characters in $srcdir or the absolute working directory
2444# name.  Accept space and tab only in the latter.
2445am_lf='
2446'
2447case `pwd` in
2448  *[\\\"\#\$\&\'\`$am_lf]*)
2449    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2450esac
2451case $srcdir in
2452  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2453    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2454esac
2455
2456# Do 'set' in a subshell so we don't clobber the current shell's
2457# arguments.  Must try -L first in case configure is actually a
2458# symlink; some systems play weird games with the mod time of symlinks
2459# (eg FreeBSD returns the mod time of the symlink's containing
2460# directory).
2461if (
2462   am_has_slept=no
2463   for am_try in 1 2; do
2464     echo "timestamp, slept: $am_has_slept" > conftest.file
2465     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2466     if test "$*" = "X"; then
2467	# -L didn't work.
2468	set X `ls -t "$srcdir/configure" conftest.file`
2469     fi
2470     if test "$*" != "X $srcdir/configure conftest.file" \
2471	&& test "$*" != "X conftest.file $srcdir/configure"; then
2472
2473	# If neither matched, then we have a broken ls.  This can happen
2474	# if, for instance, CONFIG_SHELL is bash and it inherits a
2475	# broken ls alias from the environment.  This has actually
2476	# happened.  Such a system could not be considered "sane".
2477	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2478  alias in your environment" "$LINENO" 5
2479     fi
2480     if test "$2" = conftest.file || test $am_try -eq 2; then
2481       break
2482     fi
2483     # Just in case.
2484     sleep 1
2485     am_has_slept=yes
2486   done
2487   test "$2" = conftest.file
2488   )
2489then
2490   # Ok.
2491   :
2492else
2493   as_fn_error $? "newly created file is older than distributed files!
2494Check your system clock" "$LINENO" 5
2495fi
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2497$as_echo "yes" >&6; }
2498# If we didn't sleep, we still need to ensure time stamps of config.status and
2499# generated files are strictly newer.
2500am_sleep_pid=
2501if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2502  ( sleep 1 ) &
2503  am_sleep_pid=$!
2504fi
2505
2506rm -f conftest.file
2507
2508test "$program_prefix" != NONE &&
2509  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2510# Use a double $ so make ignores it.
2511test "$program_suffix" != NONE &&
2512  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2513# Double any \ or $.
2514# By default was `s,x,x', remove it if useless.
2515ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2516program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2517
2518# expand $ac_aux_dir to an absolute path
2519am_aux_dir=`cd $ac_aux_dir && pwd`
2520
2521if test x"${MISSING+set}" != xset; then
2522  case $am_aux_dir in
2523  *\ * | *\	*)
2524    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2525  *)
2526    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2527  esac
2528fi
2529# Use eval to expand $SHELL
2530if eval "$MISSING --is-lightweight"; then
2531  am_missing_run="$MISSING "
2532else
2533  am_missing_run=
2534  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2535$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2536fi
2537
2538if test x"${install_sh}" != xset; then
2539  case $am_aux_dir in
2540  *\ * | *\	*)
2541    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2542  *)
2543    install_sh="\${SHELL} $am_aux_dir/install-sh"
2544  esac
2545fi
2546
2547# Installed binaries are usually stripped using 'strip' when the user
2548# run "make install-strip".  However 'strip' might not be the right
2549# tool to use in cross-compilation environments, therefore Automake
2550# will honor the 'STRIP' environment variable to overrule this program.
2551if test "$cross_compiling" != no; then
2552  if test -n "$ac_tool_prefix"; then
2553  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2554set dummy ${ac_tool_prefix}strip; ac_word=$2
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if ${ac_cv_prog_STRIP+:} false; then :
2558  $as_echo_n "(cached) " >&6
2559else
2560  if test -n "$STRIP"; then
2561  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568    for ac_exec_ext in '' $ac_executable_extensions; do
2569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572    break 2
2573  fi
2574done
2575  done
2576IFS=$as_save_IFS
2577
2578fi
2579fi
2580STRIP=$ac_cv_prog_STRIP
2581if test -n "$STRIP"; then
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2583$as_echo "$STRIP" >&6; }
2584else
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586$as_echo "no" >&6; }
2587fi
2588
2589
2590fi
2591if test -z "$ac_cv_prog_STRIP"; then
2592  ac_ct_STRIP=$STRIP
2593  # Extract the first word of "strip", so it can be a program name with args.
2594set dummy strip; ac_word=$2
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596$as_echo_n "checking for $ac_word... " >&6; }
2597if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2598  $as_echo_n "(cached) " >&6
2599else
2600  if test -n "$ac_ct_STRIP"; then
2601  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606  IFS=$as_save_IFS
2607  test -z "$as_dir" && as_dir=.
2608    for ac_exec_ext in '' $ac_executable_extensions; do
2609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610    ac_cv_prog_ac_ct_STRIP="strip"
2611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2612    break 2
2613  fi
2614done
2615  done
2616IFS=$as_save_IFS
2617
2618fi
2619fi
2620ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2621if test -n "$ac_ct_STRIP"; then
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2623$as_echo "$ac_ct_STRIP" >&6; }
2624else
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626$as_echo "no" >&6; }
2627fi
2628
2629  if test "x$ac_ct_STRIP" = x; then
2630    STRIP=":"
2631  else
2632    case $cross_compiling:$ac_tool_warned in
2633yes:)
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2636ac_tool_warned=yes ;;
2637esac
2638    STRIP=$ac_ct_STRIP
2639  fi
2640else
2641  STRIP="$ac_cv_prog_STRIP"
2642fi
2643
2644fi
2645INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2646
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2648$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2649if test -z "$MKDIR_P"; then
2650  if ${ac_cv_path_mkdir+:} false; then :
2651  $as_echo_n "(cached) " >&6
2652else
2653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2655do
2656  IFS=$as_save_IFS
2657  test -z "$as_dir" && as_dir=.
2658    for ac_prog in mkdir gmkdir; do
2659	 for ac_exec_ext in '' $ac_executable_extensions; do
2660	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2661	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2662	     'mkdir (GNU coreutils) '* | \
2663	     'mkdir (coreutils) '* | \
2664	     'mkdir (fileutils) '4.1*)
2665	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2666	       break 3;;
2667	   esac
2668	 done
2669       done
2670  done
2671IFS=$as_save_IFS
2672
2673fi
2674
2675  test -d ./--version && rmdir ./--version
2676  if test "${ac_cv_path_mkdir+set}" = set; then
2677    MKDIR_P="$ac_cv_path_mkdir -p"
2678  else
2679    # As a last resort, use the slow shell script.  Don't cache a
2680    # value for MKDIR_P within a source directory, because that will
2681    # break other packages using the cache if that directory is
2682    # removed, or if the value is a relative name.
2683    MKDIR_P="$ac_install_sh -d"
2684  fi
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2687$as_echo "$MKDIR_P" >&6; }
2688
2689for ac_prog in gawk mawk nawk awk
2690do
2691  # Extract the first word of "$ac_prog", so it can be a program name with args.
2692set dummy $ac_prog; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if ${ac_cv_prog_AWK+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  if test -n "$AWK"; then
2699  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706    for ac_exec_ext in '' $ac_executable_extensions; do
2707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708    ac_cv_prog_AWK="$ac_prog"
2709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710    break 2
2711  fi
2712done
2713  done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718AWK=$ac_cv_prog_AWK
2719if test -n "$AWK"; then
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2721$as_echo "$AWK" >&6; }
2722else
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
2727
2728  test -n "$AWK" && break
2729done
2730
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2732$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2733set x ${MAKE-make}
2734ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2735if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2736  $as_echo_n "(cached) " >&6
2737else
2738  cat >conftest.make <<\_ACEOF
2739SHELL = /bin/sh
2740all:
2741	@echo '@@@%%%=$(MAKE)=@@@%%%'
2742_ACEOF
2743# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2744case `${MAKE-make} -f conftest.make 2>/dev/null` in
2745  *@@@%%%=?*=@@@%%%*)
2746    eval ac_cv_prog_make_${ac_make}_set=yes;;
2747  *)
2748    eval ac_cv_prog_make_${ac_make}_set=no;;
2749esac
2750rm -f conftest.make
2751fi
2752if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2754$as_echo "yes" >&6; }
2755  SET_MAKE=
2756else
2757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758$as_echo "no" >&6; }
2759  SET_MAKE="MAKE=${MAKE-make}"
2760fi
2761
2762rm -rf .tst 2>/dev/null
2763mkdir .tst 2>/dev/null
2764if test -d .tst; then
2765  am__leading_dot=.
2766else
2767  am__leading_dot=_
2768fi
2769rmdir .tst 2>/dev/null
2770
2771# Check whether --enable-silent-rules was given.
2772if test "${enable_silent_rules+set}" = set; then :
2773  enableval=$enable_silent_rules;
2774fi
2775
2776case $enable_silent_rules in # (((
2777  yes) AM_DEFAULT_VERBOSITY=0;;
2778   no) AM_DEFAULT_VERBOSITY=1;;
2779    *) AM_DEFAULT_VERBOSITY=1;;
2780esac
2781am_make=${MAKE-make}
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2783$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2784if ${am_cv_make_support_nested_variables+:} false; then :
2785  $as_echo_n "(cached) " >&6
2786else
2787  if $as_echo 'TRUE=$(BAR$(V))
2788BAR0=false
2789BAR1=true
2790V=1
2791am__doit:
2792	@$(TRUE)
2793.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2794  am_cv_make_support_nested_variables=yes
2795else
2796  am_cv_make_support_nested_variables=no
2797fi
2798fi
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2800$as_echo "$am_cv_make_support_nested_variables" >&6; }
2801if test $am_cv_make_support_nested_variables = yes; then
2802    AM_V='$(V)'
2803  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2804else
2805  AM_V=$AM_DEFAULT_VERBOSITY
2806  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2807fi
2808AM_BACKSLASH='\'
2809
2810if test "`cd $srcdir && pwd`" != "`pwd`"; then
2811  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2812  # is not polluted with repeated "-I."
2813  am__isrc=' -I$(srcdir)'
2814  # test to see if srcdir already configured
2815  if test -f $srcdir/config.status; then
2816    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2817  fi
2818fi
2819
2820# test whether we have cygpath
2821if test -z "$CYGPATH_W"; then
2822  if (cygpath --version) >/dev/null 2>/dev/null; then
2823    CYGPATH_W='cygpath -w'
2824  else
2825    CYGPATH_W=echo
2826  fi
2827fi
2828
2829
2830# Define the identity of the package.
2831 PACKAGE='duo_unix'
2832 VERSION='1.11.4'
2833
2834
2835cat >>confdefs.h <<_ACEOF
2836#define PACKAGE "$PACKAGE"
2837_ACEOF
2838
2839
2840cat >>confdefs.h <<_ACEOF
2841#define VERSION "$VERSION"
2842_ACEOF
2843
2844# Some tools Automake needs.
2845
2846ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2847
2848
2849AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2850
2851
2852AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2853
2854
2855AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2856
2857
2858MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2859
2860# For better backward compatibility.  To be removed once Automake 1.9.x
2861# dies out for good.  For more background, see:
2862# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2863# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2864mkdir_p='$(MKDIR_P)'
2865
2866# We need awk for the "check" target.  The system "awk" is bad on
2867# some platforms.
2868# Always define AMTAR for backward compatibility.  Yes, it's still used
2869# in the wild :-(  We should find a proper way to deprecate it ...
2870AMTAR='$${TAR-tar}'
2871
2872
2873# We'll loop over all known methods to create a tar archive until one works.
2874_am_tools='gnutar  pax cpio none'
2875
2876am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2877
2878
2879
2880
2881
2882
2883
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2885$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2886    # Check whether --enable-maintainer-mode was given.
2887if test "${enable_maintainer_mode+set}" = set; then :
2888  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2889else
2890  USE_MAINTAINER_MODE=no
2891fi
2892
2893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2894$as_echo "$USE_MAINTAINER_MODE" >&6; }
2895   if test $USE_MAINTAINER_MODE = yes; then
2896  MAINTAINER_MODE_TRUE=
2897  MAINTAINER_MODE_FALSE='#'
2898else
2899  MAINTAINER_MODE_TRUE='#'
2900  MAINTAINER_MODE_FALSE=
2901fi
2902
2903  MAINT=$MAINTAINER_MODE_TRUE
2904
2905
2906# Make sure we can run config.sub.
2907$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2908  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2909
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2911$as_echo_n "checking build system type... " >&6; }
2912if ${ac_cv_build+:} false; then :
2913  $as_echo_n "(cached) " >&6
2914else
2915  ac_build_alias=$build_alias
2916test "x$ac_build_alias" = x &&
2917  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2918test "x$ac_build_alias" = x &&
2919  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2920ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2921  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2922
2923fi
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2925$as_echo "$ac_cv_build" >&6; }
2926case $ac_cv_build in
2927*-*-*) ;;
2928*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2929esac
2930build=$ac_cv_build
2931ac_save_IFS=$IFS; IFS='-'
2932set x $ac_cv_build
2933shift
2934build_cpu=$1
2935build_vendor=$2
2936shift; shift
2937# Remember, the first character of IFS is used to create $*,
2938# except with old shells:
2939build_os=$*
2940IFS=$ac_save_IFS
2941case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2942
2943
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2945$as_echo_n "checking host system type... " >&6; }
2946if ${ac_cv_host+:} false; then :
2947  $as_echo_n "(cached) " >&6
2948else
2949  if test "x$host_alias" = x; then
2950  ac_cv_host=$ac_cv_build
2951else
2952  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2953    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2954fi
2955
2956fi
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2958$as_echo "$ac_cv_host" >&6; }
2959case $ac_cv_host in
2960*-*-*) ;;
2961*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2962esac
2963host=$ac_cv_host
2964ac_save_IFS=$IFS; IFS='-'
2965set x $ac_cv_host
2966shift
2967host_cpu=$1
2968host_vendor=$2
2969shift; shift
2970# Remember, the first character of IFS is used to create $*,
2971# except with old shells:
2972host_os=$*
2973IFS=$ac_save_IFS
2974case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2975
2976
2977
2978
2979
2980
2981  if test -z "$AB_PACKAGE"; then
2982    AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
2983  fi
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
2985$as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
2986
2987  if test -z "$AB_VERSION"; then
2988    AB_VERSION=${PACKAGE_VERSION:-$VERSION}
2989  fi
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
2991$as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
2992
2993  hostname=`hostname | cut -f1 -d.`
2994  if test "$hostname"; then
2995    { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
2996$as_echo "$as_me: autobuild hostname... $hostname" >&6;}
2997  fi
2998
2999
3000
3001  date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
3002  if test "$?" != 0; then
3003    date=`date`
3004  fi
3005  if test "$date"; then
3006    { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3007$as_echo "$as_me: autobuild timestamp... $date" >&6;}
3008  fi
3009
3010
3011# Init header
3012ac_config_headers="$ac_config_headers config.h"
3013
3014
3015# Default sysconfdir to /etc/duo
3016test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc/duo
3017
3018  prefix_NONE=
3019  exec_prefix_NONE=
3020  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
3021  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
3022  eval ac_define_dir="\"$sysconfdir\""
3023  eval ac_define_dir="\"$ac_define_dir\""
3024  DUO_CONF_DIR="$ac_define_dir"
3025
3026
3027cat >>confdefs.h <<_ACEOF
3028#define DUO_CONF_DIR "$ac_define_dir"
3029_ACEOF
3030
3031  test "$prefix_NONE" && prefix=NONE
3032  test "$exec_prefix_NONE" && exec_prefix=NONE
3033
3034
3035# Determine platform
3036
3037
3038cat >>confdefs.h <<_ACEOF
3039#define CANONICAL_HOST "${host}"
3040_ACEOF
3041
3042DEPDIR="${am__leading_dot}deps"
3043
3044ac_config_commands="$ac_config_commands depfiles"
3045
3046
3047am_make=${MAKE-make}
3048cat > confinc << 'END'
3049am__doit:
3050	@echo this is the am__doit target
3051.PHONY: am__doit
3052END
3053# If we don't find an include directive, just comment out the code.
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3055$as_echo_n "checking for style of include used by $am_make... " >&6; }
3056am__include="#"
3057am__quote=
3058_am_result=none
3059# First try GNU make style include.
3060echo "include confinc" > confmf
3061# Ignore all kinds of additional output from 'make'.
3062case `$am_make -s -f confmf 2> /dev/null` in #(
3063*the\ am__doit\ target*)
3064  am__include=include
3065  am__quote=
3066  _am_result=GNU
3067  ;;
3068esac
3069# Now try BSD make style include.
3070if test "$am__include" = "#"; then
3071   echo '.include "confinc"' > confmf
3072   case `$am_make -s -f confmf 2> /dev/null` in #(
3073   *the\ am__doit\ target*)
3074     am__include=.include
3075     am__quote="\""
3076     _am_result=BSD
3077     ;;
3078   esac
3079fi
3080
3081
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3083$as_echo "$_am_result" >&6; }
3084rm -f confinc confmf
3085
3086# Check whether --enable-dependency-tracking was given.
3087if test "${enable_dependency_tracking+set}" = set; then :
3088  enableval=$enable_dependency_tracking;
3089fi
3090
3091if test "x$enable_dependency_tracking" != xno; then
3092  am_depcomp="$ac_aux_dir/depcomp"
3093  AMDEPBACKSLASH='\'
3094  am__nodep='_no'
3095fi
3096 if test "x$enable_dependency_tracking" != xno; then
3097  AMDEP_TRUE=
3098  AMDEP_FALSE='#'
3099else
3100  AMDEP_TRUE='#'
3101  AMDEP_FALSE=
3102fi
3103
3104
3105ac_ext=c
3106ac_cpp='$CPP $CPPFLAGS'
3107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110if test -n "$ac_tool_prefix"; then
3111  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3112set dummy ${ac_tool_prefix}gcc; ac_word=$2
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114$as_echo_n "checking for $ac_word... " >&6; }
3115if ${ac_cv_prog_CC+:} false; then :
3116  $as_echo_n "(cached) " >&6
3117else
3118  if test -n "$CC"; then
3119  ac_cv_prog_CC="$CC" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126    for ac_exec_ext in '' $ac_executable_extensions; do
3127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130    break 2
3131  fi
3132done
3133  done
3134IFS=$as_save_IFS
3135
3136fi
3137fi
3138CC=$ac_cv_prog_CC
3139if test -n "$CC"; then
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141$as_echo "$CC" >&6; }
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145fi
3146
3147
3148fi
3149if test -z "$ac_cv_prog_CC"; then
3150  ac_ct_CC=$CC
3151  # Extract the first word of "gcc", so it can be a program name with args.
3152set dummy gcc; ac_word=$2
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154$as_echo_n "checking for $ac_word... " >&6; }
3155if ${ac_cv_prog_ac_ct_CC+:} false; then :
3156  $as_echo_n "(cached) " >&6
3157else
3158  if test -n "$ac_ct_CC"; then
3159  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164  IFS=$as_save_IFS
3165  test -z "$as_dir" && as_dir=.
3166    for ac_exec_ext in '' $ac_executable_extensions; do
3167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168    ac_cv_prog_ac_ct_CC="gcc"
3169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170    break 2
3171  fi
3172done
3173  done
3174IFS=$as_save_IFS
3175
3176fi
3177fi
3178ac_ct_CC=$ac_cv_prog_ac_ct_CC
3179if test -n "$ac_ct_CC"; then
3180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3181$as_echo "$ac_ct_CC" >&6; }
3182else
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184$as_echo "no" >&6; }
3185fi
3186
3187  if test "x$ac_ct_CC" = x; then
3188    CC=""
3189  else
3190    case $cross_compiling:$ac_tool_warned in
3191yes:)
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194ac_tool_warned=yes ;;
3195esac
3196    CC=$ac_ct_CC
3197  fi
3198else
3199  CC="$ac_cv_prog_CC"
3200fi
3201
3202if test -z "$CC"; then
3203          if test -n "$ac_tool_prefix"; then
3204    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3205set dummy ${ac_tool_prefix}cc; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if ${ac_cv_prog_CC+:} false; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test -n "$CC"; then
3212  ac_cv_prog_CC="$CC" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221    ac_cv_prog_CC="${ac_tool_prefix}cc"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225done
3226  done
3227IFS=$as_save_IFS
3228
3229fi
3230fi
3231CC=$ac_cv_prog_CC
3232if test -n "$CC"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234$as_echo "$CC" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241  fi
3242fi
3243if test -z "$CC"; then
3244  # Extract the first word of "cc", so it can be a program name with args.
3245set dummy cc; ac_word=$2
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247$as_echo_n "checking for $ac_word... " >&6; }
3248if ${ac_cv_prog_CC+:} false; then :
3249  $as_echo_n "(cached) " >&6
3250else
3251  if test -n "$CC"; then
3252  ac_cv_prog_CC="$CC" # Let the user override the test.
3253else
3254  ac_prog_rejected=no
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258  IFS=$as_save_IFS
3259  test -z "$as_dir" && as_dir=.
3260    for ac_exec_ext in '' $ac_executable_extensions; do
3261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3263       ac_prog_rejected=yes
3264       continue
3265     fi
3266    ac_cv_prog_CC="cc"
3267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270done
3271  done
3272IFS=$as_save_IFS
3273
3274if test $ac_prog_rejected = yes; then
3275  # We found a bogon in the path, so make sure we never use it.
3276  set dummy $ac_cv_prog_CC
3277  shift
3278  if test $# != 0; then
3279    # We chose a different compiler from the bogus one.
3280    # However, it has the same basename, so the bogon will be chosen
3281    # first if we set CC to just the basename; use the full file name.
3282    shift
3283    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3284  fi
3285fi
3286fi
3287fi
3288CC=$ac_cv_prog_CC
3289if test -n "$CC"; then
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291$as_echo "$CC" >&6; }
3292else
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
3296
3297
3298fi
3299if test -z "$CC"; then
3300  if test -n "$ac_tool_prefix"; then
3301  for ac_prog in cl.exe
3302  do
3303    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306$as_echo_n "checking for $ac_word... " >&6; }
3307if ${ac_cv_prog_CC+:} false; then :
3308  $as_echo_n "(cached) " >&6
3309else
3310  if test -n "$CC"; then
3311  ac_cv_prog_CC="$CC" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318    for ac_exec_ext in '' $ac_executable_extensions; do
3319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325  done
3326IFS=$as_save_IFS
3327
3328fi
3329fi
3330CC=$ac_cv_prog_CC
3331if test -n "$CC"; then
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333$as_echo "$CC" >&6; }
3334else
3335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336$as_echo "no" >&6; }
3337fi
3338
3339
3340    test -n "$CC" && break
3341  done
3342fi
3343if test -z "$CC"; then
3344  ac_ct_CC=$CC
3345  for ac_prog in cl.exe
3346do
3347  # Extract the first word of "$ac_prog", so it can be a program name with args.
3348set dummy $ac_prog; ac_word=$2
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350$as_echo_n "checking for $ac_word... " >&6; }
3351if ${ac_cv_prog_ac_ct_CC+:} false; then :
3352  $as_echo_n "(cached) " >&6
3353else
3354  if test -n "$ac_ct_CC"; then
3355  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3356else
3357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358for as_dir in $PATH
3359do
3360  IFS=$as_save_IFS
3361  test -z "$as_dir" && as_dir=.
3362    for ac_exec_ext in '' $ac_executable_extensions; do
3363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364    ac_cv_prog_ac_ct_CC="$ac_prog"
3365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366    break 2
3367  fi
3368done
3369  done
3370IFS=$as_save_IFS
3371
3372fi
3373fi
3374ac_ct_CC=$ac_cv_prog_ac_ct_CC
3375if test -n "$ac_ct_CC"; then
3376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3377$as_echo "$ac_ct_CC" >&6; }
3378else
3379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380$as_echo "no" >&6; }
3381fi
3382
3383
3384  test -n "$ac_ct_CC" && break
3385done
3386
3387  if test "x$ac_ct_CC" = x; then
3388    CC=""
3389  else
3390    case $cross_compiling:$ac_tool_warned in
3391yes:)
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394ac_tool_warned=yes ;;
3395esac
3396    CC=$ac_ct_CC
3397  fi
3398fi
3399
3400fi
3401
3402
3403test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405as_fn_error $? "no acceptable C compiler found in \$PATH
3406See \`config.log' for more details" "$LINENO" 5; }
3407
3408# Provide some information about the compiler.
3409$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3410set X $ac_compile
3411ac_compiler=$2
3412for ac_option in --version -v -V -qversion; do
3413  { { ac_try="$ac_compiler $ac_option >&5"
3414case "(($ac_try" in
3415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416  *) ac_try_echo=$ac_try;;
3417esac
3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419$as_echo "$ac_try_echo"; } >&5
3420  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3421  ac_status=$?
3422  if test -s conftest.err; then
3423    sed '10a\
3424... rest of stderr output deleted ...
3425         10q' conftest.err >conftest.er1
3426    cat conftest.er1 >&5
3427  fi
3428  rm -f conftest.er1 conftest.err
3429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430  test $ac_status = 0; }
3431done
3432
3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h.  */
3435
3436int
3437main ()
3438{
3439
3440  ;
3441  return 0;
3442}
3443_ACEOF
3444ac_clean_files_save=$ac_clean_files
3445ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3446# Try to create an executable without -o first, disregard a.out.
3447# It will help us diagnose broken compilers, and finding out an intuition
3448# of exeext.
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3450$as_echo_n "checking whether the C compiler works... " >&6; }
3451ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3452
3453# The possible output files:
3454ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3455
3456ac_rmfiles=
3457for ac_file in $ac_files
3458do
3459  case $ac_file in
3460    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3462  esac
3463done
3464rm -f $ac_rmfiles
3465
3466if { { ac_try="$ac_link_default"
3467case "(($ac_try" in
3468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469  *) ac_try_echo=$ac_try;;
3470esac
3471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472$as_echo "$ac_try_echo"; } >&5
3473  (eval "$ac_link_default") 2>&5
3474  ac_status=$?
3475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476  test $ac_status = 0; }; then :
3477  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3478# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3479# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3480# so that the user can short-circuit this test for compilers unknown to
3481# Autoconf.
3482for ac_file in $ac_files ''
3483do
3484  test -f "$ac_file" || continue
3485  case $ac_file in
3486    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3487	;;
3488    [ab].out )
3489	# We found the default executable, but exeext='' is most
3490	# certainly right.
3491	break;;
3492    *.* )
3493	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3494	then :; else
3495	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496	fi
3497	# We set ac_cv_exeext here because the later test for it is not
3498	# safe: cross compilers may not add the suffix if given an `-o'
3499	# argument, so we may need to know it at that point already.
3500	# Even if this section looks crufty: it has the advantage of
3501	# actually working.
3502	break;;
3503    * )
3504	break;;
3505  esac
3506done
3507test "$ac_cv_exeext" = no && ac_cv_exeext=
3508
3509else
3510  ac_file=''
3511fi
3512if test -z "$ac_file"; then :
3513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
3515$as_echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520as_fn_error 77 "C compiler cannot create executables
3521See \`config.log' for more details" "$LINENO" 5; }
3522else
3523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3524$as_echo "yes" >&6; }
3525fi
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3527$as_echo_n "checking for C compiler default output file name... " >&6; }
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3529$as_echo "$ac_file" >&6; }
3530ac_exeext=$ac_cv_exeext
3531
3532rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3533ac_clean_files=$ac_clean_files_save
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3535$as_echo_n "checking for suffix of executables... " >&6; }
3536if { { ac_try="$ac_link"
3537case "(($ac_try" in
3538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539  *) ac_try_echo=$ac_try;;
3540esac
3541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542$as_echo "$ac_try_echo"; } >&5
3543  (eval "$ac_link") 2>&5
3544  ac_status=$?
3545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546  test $ac_status = 0; }; then :
3547  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3548# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3549# work properly (i.e., refer to `conftest.exe'), while it won't with
3550# `rm'.
3551for ac_file in conftest.exe conftest conftest.*; do
3552  test -f "$ac_file" || continue
3553  case $ac_file in
3554    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3555    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556	  break;;
3557    * ) break;;
3558  esac
3559done
3560else
3561  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3564See \`config.log' for more details" "$LINENO" 5; }
3565fi
3566rm -f conftest conftest$ac_cv_exeext
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3568$as_echo "$ac_cv_exeext" >&6; }
3569
3570rm -f conftest.$ac_ext
3571EXEEXT=$ac_cv_exeext
3572ac_exeext=$EXEEXT
3573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575#include <stdio.h>
3576int
3577main ()
3578{
3579FILE *f = fopen ("conftest.out", "w");
3580 return ferror (f) || fclose (f) != 0;
3581
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586ac_clean_files="$ac_clean_files conftest.out"
3587# Check that the compiler produces executables we can run.  If not, either
3588# the compiler is broken, or we cross compile.
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3590$as_echo_n "checking whether we are cross compiling... " >&6; }
3591if test "$cross_compiling" != yes; then
3592  { { ac_try="$ac_link"
3593case "(($ac_try" in
3594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595  *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599  (eval "$ac_link") 2>&5
3600  ac_status=$?
3601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602  test $ac_status = 0; }
3603  if { ac_try='./conftest$ac_cv_exeext'
3604  { { case "(($ac_try" in
3605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606  *) ac_try_echo=$ac_try;;
3607esac
3608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609$as_echo "$ac_try_echo"; } >&5
3610  (eval "$ac_try") 2>&5
3611  ac_status=$?
3612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613  test $ac_status = 0; }; }; then
3614    cross_compiling=no
3615  else
3616    if test "$cross_compiling" = maybe; then
3617	cross_compiling=yes
3618    else
3619	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621as_fn_error $? "cannot run C compiled programs.
3622If you meant to cross compile, use \`--host'.
3623See \`config.log' for more details" "$LINENO" 5; }
3624    fi
3625  fi
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3628$as_echo "$cross_compiling" >&6; }
3629
3630rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3631ac_clean_files=$ac_clean_files_save
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3633$as_echo_n "checking for suffix of object files... " >&6; }
3634if ${ac_cv_objext+:} false; then :
3635  $as_echo_n "(cached) " >&6
3636else
3637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h.  */
3639
3640int
3641main ()
3642{
3643
3644  ;
3645  return 0;
3646}
3647_ACEOF
3648rm -f conftest.o conftest.obj
3649if { { ac_try="$ac_compile"
3650case "(($ac_try" in
3651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652  *) ac_try_echo=$ac_try;;
3653esac
3654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655$as_echo "$ac_try_echo"; } >&5
3656  (eval "$ac_compile") 2>&5
3657  ac_status=$?
3658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659  test $ac_status = 0; }; then :
3660  for ac_file in conftest.o conftest.obj conftest.*; do
3661  test -f "$ac_file" || continue;
3662  case $ac_file in
3663    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3664    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3665       break;;
3666  esac
3667done
3668else
3669  $as_echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
3672{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674as_fn_error $? "cannot compute suffix of object files: cannot compile
3675See \`config.log' for more details" "$LINENO" 5; }
3676fi
3677rm -f conftest.$ac_cv_objext conftest.$ac_ext
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3680$as_echo "$ac_cv_objext" >&6; }
3681OBJEXT=$ac_cv_objext
3682ac_objext=$OBJEXT
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3684$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3685if ${ac_cv_c_compiler_gnu+:} false; then :
3686  $as_echo_n "(cached) " >&6
3687else
3688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h.  */
3690
3691int
3692main ()
3693{
3694#ifndef __GNUC__
3695       choke me
3696#endif
3697
3698  ;
3699  return 0;
3700}
3701_ACEOF
3702if ac_fn_c_try_compile "$LINENO"; then :
3703  ac_compiler_gnu=yes
3704else
3705  ac_compiler_gnu=no
3706fi
3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708ac_cv_c_compiler_gnu=$ac_compiler_gnu
3709
3710fi
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3712$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3713if test $ac_compiler_gnu = yes; then
3714  GCC=yes
3715else
3716  GCC=
3717fi
3718ac_test_CFLAGS=${CFLAGS+set}
3719ac_save_CFLAGS=$CFLAGS
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3721$as_echo_n "checking whether $CC accepts -g... " >&6; }
3722if ${ac_cv_prog_cc_g+:} false; then :
3723  $as_echo_n "(cached) " >&6
3724else
3725  ac_save_c_werror_flag=$ac_c_werror_flag
3726   ac_c_werror_flag=yes
3727   ac_cv_prog_cc_g=no
3728   CFLAGS="-g"
3729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h.  */
3731
3732int
3733main ()
3734{
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740if ac_fn_c_try_compile "$LINENO"; then :
3741  ac_cv_prog_cc_g=yes
3742else
3743  CFLAGS=""
3744      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h.  */
3746
3747int
3748main ()
3749{
3750
3751  ;
3752  return 0;
3753}
3754_ACEOF
3755if ac_fn_c_try_compile "$LINENO"; then :
3756
3757else
3758  ac_c_werror_flag=$ac_save_c_werror_flag
3759	 CFLAGS="-g"
3760	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761/* end confdefs.h.  */
3762
3763int
3764main ()
3765{
3766
3767  ;
3768  return 0;
3769}
3770_ACEOF
3771if ac_fn_c_try_compile "$LINENO"; then :
3772  ac_cv_prog_cc_g=yes
3773fi
3774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775fi
3776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777fi
3778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779   ac_c_werror_flag=$ac_save_c_werror_flag
3780fi
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3782$as_echo "$ac_cv_prog_cc_g" >&6; }
3783if test "$ac_test_CFLAGS" = set; then
3784  CFLAGS=$ac_save_CFLAGS
3785elif test $ac_cv_prog_cc_g = yes; then
3786  if test "$GCC" = yes; then
3787    CFLAGS="-g -O2"
3788  else
3789    CFLAGS="-g"
3790  fi
3791else
3792  if test "$GCC" = yes; then
3793    CFLAGS="-O2"
3794  else
3795    CFLAGS=
3796  fi
3797fi
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3799$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3800if ${ac_cv_prog_cc_c89+:} false; then :
3801  $as_echo_n "(cached) " >&6
3802else
3803  ac_cv_prog_cc_c89=no
3804ac_save_CC=$CC
3805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h.  */
3807#include <stdarg.h>
3808#include <stdio.h>
3809struct stat;
3810/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3811struct buf { int x; };
3812FILE * (*rcsopen) (struct buf *, struct stat *, int);
3813static char *e (p, i)
3814     char **p;
3815     int i;
3816{
3817  return p[i];
3818}
3819static char *f (char * (*g) (char **, int), char **p, ...)
3820{
3821  char *s;
3822  va_list v;
3823  va_start (v,p);
3824  s = g (p, va_arg (v,int));
3825  va_end (v);
3826  return s;
3827}
3828
3829/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3830   function prototypes and stuff, but not '\xHH' hex character constants.
3831   These don't provoke an error unfortunately, instead are silently treated
3832   as 'x'.  The following induces an error, until -std is added to get
3833   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3834   array size at least.  It's necessary to write '\x00'==0 to get something
3835   that's true only with -std.  */
3836int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3837
3838/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3839   inside strings and character constants.  */
3840#define FOO(x) 'x'
3841int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3842
3843int test (int i, double x);
3844struct s1 {int (*f) (int a);};
3845struct s2 {int (*f) (double a);};
3846int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3847int argc;
3848char **argv;
3849int
3850main ()
3851{
3852return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3858	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3859do
3860  CC="$ac_save_CC $ac_arg"
3861  if ac_fn_c_try_compile "$LINENO"; then :
3862  ac_cv_prog_cc_c89=$ac_arg
3863fi
3864rm -f core conftest.err conftest.$ac_objext
3865  test "x$ac_cv_prog_cc_c89" != "xno" && break
3866done
3867rm -f conftest.$ac_ext
3868CC=$ac_save_CC
3869
3870fi
3871# AC_CACHE_VAL
3872case "x$ac_cv_prog_cc_c89" in
3873  x)
3874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3875$as_echo "none needed" >&6; } ;;
3876  xno)
3877    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3878$as_echo "unsupported" >&6; } ;;
3879  *)
3880    CC="$CC $ac_cv_prog_cc_c89"
3881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3882$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3883esac
3884if test "x$ac_cv_prog_cc_c89" != xno; then :
3885
3886fi
3887
3888ac_ext=c
3889ac_cpp='$CPP $CPPFLAGS'
3890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
3894depcc="$CC"   am_compiler_list=
3895
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3897$as_echo_n "checking dependency style of $depcc... " >&6; }
3898if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3899  $as_echo_n "(cached) " >&6
3900else
3901  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3902  # We make a subdir and do the tests there.  Otherwise we can end up
3903  # making bogus files that we don't know about and never remove.  For
3904  # instance it was reported that on HP-UX the gcc test will end up
3905  # making a dummy file named 'D' -- because '-MD' means "put the output
3906  # in D".
3907  rm -rf conftest.dir
3908  mkdir conftest.dir
3909  # Copy depcomp to subdir because otherwise we won't find it if we're
3910  # using a relative directory.
3911  cp "$am_depcomp" conftest.dir
3912  cd conftest.dir
3913  # We will build objects and dependencies in a subdirectory because
3914  # it helps to detect inapplicable dependency modes.  For instance
3915  # both Tru64's cc and ICC support -MD to output dependencies as a
3916  # side effect of compilation, but ICC will put the dependencies in
3917  # the current directory while Tru64 will put them in the object
3918  # directory.
3919  mkdir sub
3920
3921  am_cv_CC_dependencies_compiler_type=none
3922  if test "$am_compiler_list" = ""; then
3923     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3924  fi
3925  am__universal=false
3926  case " $depcc " in #(
3927     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3928     esac
3929
3930  for depmode in $am_compiler_list; do
3931    # Setup a source with many dependencies, because some compilers
3932    # like to wrap large dependency lists on column 80 (with \), and
3933    # we should not choose a depcomp mode which is confused by this.
3934    #
3935    # We need to recreate these files for each test, as the compiler may
3936    # overwrite some of them when testing with obscure command lines.
3937    # This happens at least with the AIX C compiler.
3938    : > sub/conftest.c
3939    for i in 1 2 3 4 5 6; do
3940      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3941      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3942      # Solaris 10 /bin/sh.
3943      echo '/* dummy */' > sub/conftst$i.h
3944    done
3945    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3946
3947    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3948    # mode.  It turns out that the SunPro C++ compiler does not properly
3949    # handle '-M -o', and we need to detect this.  Also, some Intel
3950    # versions had trouble with output in subdirs.
3951    am__obj=sub/conftest.${OBJEXT-o}
3952    am__minus_obj="-o $am__obj"
3953    case $depmode in
3954    gcc)
3955      # This depmode causes a compiler race in universal mode.
3956      test "$am__universal" = false || continue
3957      ;;
3958    nosideeffect)
3959      # After this tag, mechanisms are not by side-effect, so they'll
3960      # only be used when explicitly requested.
3961      if test "x$enable_dependency_tracking" = xyes; then
3962	continue
3963      else
3964	break
3965      fi
3966      ;;
3967    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3968      # This compiler won't grok '-c -o', but also, the minuso test has
3969      # not run yet.  These depmodes are late enough in the game, and
3970      # so weak that their functioning should not be impacted.
3971      am__obj=conftest.${OBJEXT-o}
3972      am__minus_obj=
3973      ;;
3974    none) break ;;
3975    esac
3976    if depmode=$depmode \
3977       source=sub/conftest.c object=$am__obj \
3978       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3979       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3980         >/dev/null 2>conftest.err &&
3981       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3982       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3983       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3984       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3985      # icc doesn't choke on unknown options, it will just issue warnings
3986      # or remarks (even with -Werror).  So we grep stderr for any message
3987      # that says an option was ignored or not supported.
3988      # When given -MP, icc 7.0 and 7.1 complain thusly:
3989      #   icc: Command line warning: ignoring option '-M'; no argument required
3990      # The diagnosis changed in icc 8.0:
3991      #   icc: Command line remark: option '-MP' not supported
3992      if (grep 'ignoring option' conftest.err ||
3993          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3994        am_cv_CC_dependencies_compiler_type=$depmode
3995        break
3996      fi
3997    fi
3998  done
3999
4000  cd ..
4001  rm -rf conftest.dir
4002else
4003  am_cv_CC_dependencies_compiler_type=none
4004fi
4005
4006fi
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4008$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4009CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4010
4011 if
4012  test "x$enable_dependency_tracking" != xno \
4013  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4014  am__fastdepCC_TRUE=
4015  am__fastdepCC_FALSE='#'
4016else
4017  am__fastdepCC_TRUE='#'
4018  am__fastdepCC_FALSE=
4019fi
4020
4021
4022
4023ac_ext=c
4024ac_cpp='$CPP $CPPFLAGS'
4025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4029$as_echo_n "checking how to run the C preprocessor... " >&6; }
4030# On Suns, sometimes $CPP names a directory.
4031if test -n "$CPP" && test -d "$CPP"; then
4032  CPP=
4033fi
4034if test -z "$CPP"; then
4035  if ${ac_cv_prog_CPP+:} false; then :
4036  $as_echo_n "(cached) " >&6
4037else
4038      # Double quotes because CPP needs to be expanded
4039    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4040    do
4041      ac_preproc_ok=false
4042for ac_c_preproc_warn_flag in '' yes
4043do
4044  # Use a header file that comes with gcc, so configuring glibc
4045  # with a fresh cross-compiler works.
4046  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4047  # <limits.h> exists even on freestanding compilers.
4048  # On the NeXT, cc -E runs the code through the compiler's parser,
4049  # not just through cpp. "Syntax error" is here to catch this case.
4050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052#ifdef __STDC__
4053# include <limits.h>
4054#else
4055# include <assert.h>
4056#endif
4057		     Syntax error
4058_ACEOF
4059if ac_fn_c_try_cpp "$LINENO"; then :
4060
4061else
4062  # Broken: fails on valid input.
4063continue
4064fi
4065rm -f conftest.err conftest.i conftest.$ac_ext
4066
4067  # OK, works on sane cases.  Now check whether nonexistent headers
4068  # can be detected and how.
4069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h.  */
4071#include <ac_nonexistent.h>
4072_ACEOF
4073if ac_fn_c_try_cpp "$LINENO"; then :
4074  # Broken: success on invalid input.
4075continue
4076else
4077  # Passes both tests.
4078ac_preproc_ok=:
4079break
4080fi
4081rm -f conftest.err conftest.i conftest.$ac_ext
4082
4083done
4084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085rm -f conftest.i conftest.err conftest.$ac_ext
4086if $ac_preproc_ok; then :
4087  break
4088fi
4089
4090    done
4091    ac_cv_prog_CPP=$CPP
4092
4093fi
4094  CPP=$ac_cv_prog_CPP
4095else
4096  ac_cv_prog_CPP=$CPP
4097fi
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4099$as_echo "$CPP" >&6; }
4100ac_preproc_ok=false
4101for ac_c_preproc_warn_flag in '' yes
4102do
4103  # Use a header file that comes with gcc, so configuring glibc
4104  # with a fresh cross-compiler works.
4105  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4106  # <limits.h> exists even on freestanding compilers.
4107  # On the NeXT, cc -E runs the code through the compiler's parser,
4108  # not just through cpp. "Syntax error" is here to catch this case.
4109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h.  */
4111#ifdef __STDC__
4112# include <limits.h>
4113#else
4114# include <assert.h>
4115#endif
4116		     Syntax error
4117_ACEOF
4118if ac_fn_c_try_cpp "$LINENO"; then :
4119
4120else
4121  # Broken: fails on valid input.
4122continue
4123fi
4124rm -f conftest.err conftest.i conftest.$ac_ext
4125
4126  # OK, works on sane cases.  Now check whether nonexistent headers
4127  # can be detected and how.
4128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#include <ac_nonexistent.h>
4131_ACEOF
4132if ac_fn_c_try_cpp "$LINENO"; then :
4133  # Broken: success on invalid input.
4134continue
4135else
4136  # Passes both tests.
4137ac_preproc_ok=:
4138break
4139fi
4140rm -f conftest.err conftest.i conftest.$ac_ext
4141
4142done
4143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4144rm -f conftest.i conftest.err conftest.$ac_ext
4145if $ac_preproc_ok; then :
4146
4147else
4148  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4150as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4151See \`config.log' for more details" "$LINENO" 5; }
4152fi
4153
4154ac_ext=c
4155ac_cpp='$CPP $CPPFLAGS'
4156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4162$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4163if ${ac_cv_path_GREP+:} false; then :
4164  $as_echo_n "(cached) " >&6
4165else
4166  if test -z "$GREP"; then
4167  ac_path_GREP_found=false
4168  # Loop through the user's path and test for each of PROGNAME-LIST
4169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4171do
4172  IFS=$as_save_IFS
4173  test -z "$as_dir" && as_dir=.
4174    for ac_prog in grep ggrep; do
4175    for ac_exec_ext in '' $ac_executable_extensions; do
4176      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4177      as_fn_executable_p "$ac_path_GREP" || continue
4178# Check for GNU ac_path_GREP and select it if it is found.
4179  # Check for GNU $ac_path_GREP
4180case `"$ac_path_GREP" --version 2>&1` in
4181*GNU*)
4182  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4183*)
4184  ac_count=0
4185  $as_echo_n 0123456789 >"conftest.in"
4186  while :
4187  do
4188    cat "conftest.in" "conftest.in" >"conftest.tmp"
4189    mv "conftest.tmp" "conftest.in"
4190    cp "conftest.in" "conftest.nl"
4191    $as_echo 'GREP' >> "conftest.nl"
4192    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194    as_fn_arith $ac_count + 1 && ac_count=$as_val
4195    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4196      # Best one so far, save it but keep looking for a better one
4197      ac_cv_path_GREP="$ac_path_GREP"
4198      ac_path_GREP_max=$ac_count
4199    fi
4200    # 10*(2^10) chars as input seems more than enough
4201    test $ac_count -gt 10 && break
4202  done
4203  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204esac
4205
4206      $ac_path_GREP_found && break 3
4207    done
4208  done
4209  done
4210IFS=$as_save_IFS
4211  if test -z "$ac_cv_path_GREP"; then
4212    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4213  fi
4214else
4215  ac_cv_path_GREP=$GREP
4216fi
4217
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4220$as_echo "$ac_cv_path_GREP" >&6; }
4221 GREP="$ac_cv_path_GREP"
4222
4223
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4225$as_echo_n "checking for egrep... " >&6; }
4226if ${ac_cv_path_EGREP+:} false; then :
4227  $as_echo_n "(cached) " >&6
4228else
4229  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4230   then ac_cv_path_EGREP="$GREP -E"
4231   else
4232     if test -z "$EGREP"; then
4233  ac_path_EGREP_found=false
4234  # Loop through the user's path and test for each of PROGNAME-LIST
4235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240    for ac_prog in egrep; do
4241    for ac_exec_ext in '' $ac_executable_extensions; do
4242      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4243      as_fn_executable_p "$ac_path_EGREP" || continue
4244# Check for GNU ac_path_EGREP and select it if it is found.
4245  # Check for GNU $ac_path_EGREP
4246case `"$ac_path_EGREP" --version 2>&1` in
4247*GNU*)
4248  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4249*)
4250  ac_count=0
4251  $as_echo_n 0123456789 >"conftest.in"
4252  while :
4253  do
4254    cat "conftest.in" "conftest.in" >"conftest.tmp"
4255    mv "conftest.tmp" "conftest.in"
4256    cp "conftest.in" "conftest.nl"
4257    $as_echo 'EGREP' >> "conftest.nl"
4258    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260    as_fn_arith $ac_count + 1 && ac_count=$as_val
4261    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4262      # Best one so far, save it but keep looking for a better one
4263      ac_cv_path_EGREP="$ac_path_EGREP"
4264      ac_path_EGREP_max=$ac_count
4265    fi
4266    # 10*(2^10) chars as input seems more than enough
4267    test $ac_count -gt 10 && break
4268  done
4269  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270esac
4271
4272      $ac_path_EGREP_found && break 3
4273    done
4274  done
4275  done
4276IFS=$as_save_IFS
4277  if test -z "$ac_cv_path_EGREP"; then
4278    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279  fi
4280else
4281  ac_cv_path_EGREP=$EGREP
4282fi
4283
4284   fi
4285fi
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4287$as_echo "$ac_cv_path_EGREP" >&6; }
4288 EGREP="$ac_cv_path_EGREP"
4289
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4292$as_echo_n "checking for ANSI C header files... " >&6; }
4293if ${ac_cv_header_stdc+:} false; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h.  */
4298#include <stdlib.h>
4299#include <stdarg.h>
4300#include <string.h>
4301#include <float.h>
4302
4303int
4304main ()
4305{
4306
4307  ;
4308  return 0;
4309}
4310_ACEOF
4311if ac_fn_c_try_compile "$LINENO"; then :
4312  ac_cv_header_stdc=yes
4313else
4314  ac_cv_header_stdc=no
4315fi
4316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317
4318if test $ac_cv_header_stdc = yes; then
4319  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h.  */
4322#include <string.h>
4323
4324_ACEOF
4325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326  $EGREP "memchr" >/dev/null 2>&1; then :
4327
4328else
4329  ac_cv_header_stdc=no
4330fi
4331rm -f conftest*
4332
4333fi
4334
4335if test $ac_cv_header_stdc = yes; then
4336  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338/* end confdefs.h.  */
4339#include <stdlib.h>
4340
4341_ACEOF
4342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343  $EGREP "free" >/dev/null 2>&1; then :
4344
4345else
4346  ac_cv_header_stdc=no
4347fi
4348rm -f conftest*
4349
4350fi
4351
4352if test $ac_cv_header_stdc = yes; then
4353  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354  if test "$cross_compiling" = yes; then :
4355  :
4356else
4357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h.  */
4359#include <ctype.h>
4360#include <stdlib.h>
4361#if ((' ' & 0x0FF) == 0x020)
4362# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4363# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4364#else
4365# define ISLOWER(c) \
4366		   (('a' <= (c) && (c) <= 'i') \
4367		     || ('j' <= (c) && (c) <= 'r') \
4368		     || ('s' <= (c) && (c) <= 'z'))
4369# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4370#endif
4371
4372#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4373int
4374main ()
4375{
4376  int i;
4377  for (i = 0; i < 256; i++)
4378    if (XOR (islower (i), ISLOWER (i))
4379	|| toupper (i) != TOUPPER (i))
4380      return 2;
4381  return 0;
4382}
4383_ACEOF
4384if ac_fn_c_try_run "$LINENO"; then :
4385
4386else
4387  ac_cv_header_stdc=no
4388fi
4389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4390  conftest.$ac_objext conftest.beam conftest.$ac_ext
4391fi
4392
4393fi
4394fi
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4396$as_echo "$ac_cv_header_stdc" >&6; }
4397if test $ac_cv_header_stdc = yes; then
4398
4399$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4400
4401fi
4402
4403# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4404for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4405		  inttypes.h stdint.h unistd.h
4406do :
4407  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4408ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4409"
4410if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4411  cat >>confdefs.h <<_ACEOF
4412#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413_ACEOF
4414
4415fi
4416
4417done
4418
4419
4420
4421  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4422if test "x$ac_cv_header_minix_config_h" = xyes; then :
4423  MINIX=yes
4424else
4425  MINIX=
4426fi
4427
4428
4429  if test "$MINIX" = yes; then
4430
4431$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4432
4433
4434$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4435
4436
4437$as_echo "#define _MINIX 1" >>confdefs.h
4438
4439  fi
4440
4441
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4443$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4444if ${ac_cv_safe_to_define___extensions__+:} false; then :
4445  $as_echo_n "(cached) " >&6
4446else
4447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h.  */
4449
4450#         define __EXTENSIONS__ 1
4451          $ac_includes_default
4452int
4453main ()
4454{
4455
4456  ;
4457  return 0;
4458}
4459_ACEOF
4460if ac_fn_c_try_compile "$LINENO"; then :
4461  ac_cv_safe_to_define___extensions__=yes
4462else
4463  ac_cv_safe_to_define___extensions__=no
4464fi
4465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466fi
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4468$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4469  test $ac_cv_safe_to_define___extensions__ = yes &&
4470    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4471
4472  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4473
4474  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4475
4476  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4477
4478  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4479
4480
4481
4482
4483# Check for programs
4484ac_ext=c
4485ac_cpp='$CPP $CPPFLAGS'
4486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489if test -n "$ac_tool_prefix"; then
4490  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4491set dummy ${ac_tool_prefix}gcc; ac_word=$2
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493$as_echo_n "checking for $ac_word... " >&6; }
4494if ${ac_cv_prog_CC+:} false; then :
4495  $as_echo_n "(cached) " >&6
4496else
4497  if test -n "$CC"; then
4498  ac_cv_prog_CC="$CC" # Let the user override the test.
4499else
4500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503  IFS=$as_save_IFS
4504  test -z "$as_dir" && as_dir=.
4505    for ac_exec_ext in '' $ac_executable_extensions; do
4506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509    break 2
4510  fi
4511done
4512  done
4513IFS=$as_save_IFS
4514
4515fi
4516fi
4517CC=$ac_cv_prog_CC
4518if test -n "$CC"; then
4519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4520$as_echo "$CC" >&6; }
4521else
4522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523$as_echo "no" >&6; }
4524fi
4525
4526
4527fi
4528if test -z "$ac_cv_prog_CC"; then
4529  ac_ct_CC=$CC
4530  # Extract the first word of "gcc", so it can be a program name with args.
4531set dummy gcc; ac_word=$2
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533$as_echo_n "checking for $ac_word... " >&6; }
4534if ${ac_cv_prog_ac_ct_CC+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  if test -n "$ac_ct_CC"; then
4538  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4539else
4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543  IFS=$as_save_IFS
4544  test -z "$as_dir" && as_dir=.
4545    for ac_exec_ext in '' $ac_executable_extensions; do
4546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547    ac_cv_prog_ac_ct_CC="gcc"
4548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549    break 2
4550  fi
4551done
4552  done
4553IFS=$as_save_IFS
4554
4555fi
4556fi
4557ac_ct_CC=$ac_cv_prog_ac_ct_CC
4558if test -n "$ac_ct_CC"; then
4559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4560$as_echo "$ac_ct_CC" >&6; }
4561else
4562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563$as_echo "no" >&6; }
4564fi
4565
4566  if test "x$ac_ct_CC" = x; then
4567    CC=""
4568  else
4569    case $cross_compiling:$ac_tool_warned in
4570yes:)
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4573ac_tool_warned=yes ;;
4574esac
4575    CC=$ac_ct_CC
4576  fi
4577else
4578  CC="$ac_cv_prog_CC"
4579fi
4580
4581if test -z "$CC"; then
4582          if test -n "$ac_tool_prefix"; then
4583    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4584set dummy ${ac_tool_prefix}cc; ac_word=$2
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586$as_echo_n "checking for $ac_word... " >&6; }
4587if ${ac_cv_prog_CC+:} false; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590  if test -n "$CC"; then
4591  ac_cv_prog_CC="$CC" # Let the user override the test.
4592else
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596  IFS=$as_save_IFS
4597  test -z "$as_dir" && as_dir=.
4598    for ac_exec_ext in '' $ac_executable_extensions; do
4599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600    ac_cv_prog_CC="${ac_tool_prefix}cc"
4601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602    break 2
4603  fi
4604done
4605  done
4606IFS=$as_save_IFS
4607
4608fi
4609fi
4610CC=$ac_cv_prog_CC
4611if test -n "$CC"; then
4612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4613$as_echo "$CC" >&6; }
4614else
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616$as_echo "no" >&6; }
4617fi
4618
4619
4620  fi
4621fi
4622if test -z "$CC"; then
4623  # Extract the first word of "cc", so it can be a program name with args.
4624set dummy cc; ac_word=$2
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626$as_echo_n "checking for $ac_word... " >&6; }
4627if ${ac_cv_prog_CC+:} false; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630  if test -n "$CC"; then
4631  ac_cv_prog_CC="$CC" # Let the user override the test.
4632else
4633  ac_prog_rejected=no
4634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635for as_dir in $PATH
4636do
4637  IFS=$as_save_IFS
4638  test -z "$as_dir" && as_dir=.
4639    for ac_exec_ext in '' $ac_executable_extensions; do
4640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4642       ac_prog_rejected=yes
4643       continue
4644     fi
4645    ac_cv_prog_CC="cc"
4646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647    break 2
4648  fi
4649done
4650  done
4651IFS=$as_save_IFS
4652
4653if test $ac_prog_rejected = yes; then
4654  # We found a bogon in the path, so make sure we never use it.
4655  set dummy $ac_cv_prog_CC
4656  shift
4657  if test $# != 0; then
4658    # We chose a different compiler from the bogus one.
4659    # However, it has the same basename, so the bogon will be chosen
4660    # first if we set CC to just the basename; use the full file name.
4661    shift
4662    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4663  fi
4664fi
4665fi
4666fi
4667CC=$ac_cv_prog_CC
4668if test -n "$CC"; then
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4670$as_echo "$CC" >&6; }
4671else
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673$as_echo "no" >&6; }
4674fi
4675
4676
4677fi
4678if test -z "$CC"; then
4679  if test -n "$ac_tool_prefix"; then
4680  for ac_prog in cl.exe
4681  do
4682    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685$as_echo_n "checking for $ac_word... " >&6; }
4686if ${ac_cv_prog_CC+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if test -n "$CC"; then
4690  ac_cv_prog_CC="$CC" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697    for ac_exec_ext in '' $ac_executable_extensions; do
4698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701    break 2
4702  fi
4703done
4704  done
4705IFS=$as_save_IFS
4706
4707fi
4708fi
4709CC=$ac_cv_prog_CC
4710if test -n "$CC"; then
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4712$as_echo "$CC" >&6; }
4713else
4714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715$as_echo "no" >&6; }
4716fi
4717
4718
4719    test -n "$CC" && break
4720  done
4721fi
4722if test -z "$CC"; then
4723  ac_ct_CC=$CC
4724  for ac_prog in cl.exe
4725do
4726  # Extract the first word of "$ac_prog", so it can be a program name with args.
4727set dummy $ac_prog; ac_word=$2
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729$as_echo_n "checking for $ac_word... " >&6; }
4730if ${ac_cv_prog_ac_ct_CC+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  if test -n "$ac_ct_CC"; then
4734  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  test -z "$as_dir" && as_dir=.
4741    for ac_exec_ext in '' $ac_executable_extensions; do
4742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743    ac_cv_prog_ac_ct_CC="$ac_prog"
4744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748  done
4749IFS=$as_save_IFS
4750
4751fi
4752fi
4753ac_ct_CC=$ac_cv_prog_ac_ct_CC
4754if test -n "$ac_ct_CC"; then
4755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4756$as_echo "$ac_ct_CC" >&6; }
4757else
4758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759$as_echo "no" >&6; }
4760fi
4761
4762
4763  test -n "$ac_ct_CC" && break
4764done
4765
4766  if test "x$ac_ct_CC" = x; then
4767    CC=""
4768  else
4769    case $cross_compiling:$ac_tool_warned in
4770yes:)
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773ac_tool_warned=yes ;;
4774esac
4775    CC=$ac_ct_CC
4776  fi
4777fi
4778
4779fi
4780
4781
4782test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4784as_fn_error $? "no acceptable C compiler found in \$PATH
4785See \`config.log' for more details" "$LINENO" 5; }
4786
4787# Provide some information about the compiler.
4788$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4789set X $ac_compile
4790ac_compiler=$2
4791for ac_option in --version -v -V -qversion; do
4792  { { ac_try="$ac_compiler $ac_option >&5"
4793case "(($ac_try" in
4794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795  *) ac_try_echo=$ac_try;;
4796esac
4797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4798$as_echo "$ac_try_echo"; } >&5
4799  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4800  ac_status=$?
4801  if test -s conftest.err; then
4802    sed '10a\
4803... rest of stderr output deleted ...
4804         10q' conftest.err >conftest.er1
4805    cat conftest.er1 >&5
4806  fi
4807  rm -f conftest.er1 conftest.err
4808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4809  test $ac_status = 0; }
4810done
4811
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4813$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4814if ${ac_cv_c_compiler_gnu+:} false; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819
4820int
4821main ()
4822{
4823#ifndef __GNUC__
4824       choke me
4825#endif
4826
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_compile "$LINENO"; then :
4832  ac_compiler_gnu=yes
4833else
4834  ac_compiler_gnu=no
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837ac_cv_c_compiler_gnu=$ac_compiler_gnu
4838
4839fi
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4841$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4842if test $ac_compiler_gnu = yes; then
4843  GCC=yes
4844else
4845  GCC=
4846fi
4847ac_test_CFLAGS=${CFLAGS+set}
4848ac_save_CFLAGS=$CFLAGS
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4850$as_echo_n "checking whether $CC accepts -g... " >&6; }
4851if ${ac_cv_prog_cc_g+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  ac_save_c_werror_flag=$ac_c_werror_flag
4855   ac_c_werror_flag=yes
4856   ac_cv_prog_cc_g=no
4857   CFLAGS="-g"
4858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859/* end confdefs.h.  */
4860
4861int
4862main ()
4863{
4864
4865  ;
4866  return 0;
4867}
4868_ACEOF
4869if ac_fn_c_try_compile "$LINENO"; then :
4870  ac_cv_prog_cc_g=yes
4871else
4872  CFLAGS=""
4873      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h.  */
4875
4876int
4877main ()
4878{
4879
4880  ;
4881  return 0;
4882}
4883_ACEOF
4884if ac_fn_c_try_compile "$LINENO"; then :
4885
4886else
4887  ac_c_werror_flag=$ac_save_c_werror_flag
4888	 CFLAGS="-g"
4889	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h.  */
4891
4892int
4893main ()
4894{
4895
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900if ac_fn_c_try_compile "$LINENO"; then :
4901  ac_cv_prog_cc_g=yes
4902fi
4903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904fi
4905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908   ac_c_werror_flag=$ac_save_c_werror_flag
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4911$as_echo "$ac_cv_prog_cc_g" >&6; }
4912if test "$ac_test_CFLAGS" = set; then
4913  CFLAGS=$ac_save_CFLAGS
4914elif test $ac_cv_prog_cc_g = yes; then
4915  if test "$GCC" = yes; then
4916    CFLAGS="-g -O2"
4917  else
4918    CFLAGS="-g"
4919  fi
4920else
4921  if test "$GCC" = yes; then
4922    CFLAGS="-O2"
4923  else
4924    CFLAGS=
4925  fi
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4928$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4929if ${ac_cv_prog_cc_c89+:} false; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  ac_cv_prog_cc_c89=no
4933ac_save_CC=$CC
4934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936#include <stdarg.h>
4937#include <stdio.h>
4938struct stat;
4939/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4940struct buf { int x; };
4941FILE * (*rcsopen) (struct buf *, struct stat *, int);
4942static char *e (p, i)
4943     char **p;
4944     int i;
4945{
4946  return p[i];
4947}
4948static char *f (char * (*g) (char **, int), char **p, ...)
4949{
4950  char *s;
4951  va_list v;
4952  va_start (v,p);
4953  s = g (p, va_arg (v,int));
4954  va_end (v);
4955  return s;
4956}
4957
4958/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4959   function prototypes and stuff, but not '\xHH' hex character constants.
4960   These don't provoke an error unfortunately, instead are silently treated
4961   as 'x'.  The following induces an error, until -std is added to get
4962   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4963   array size at least.  It's necessary to write '\x00'==0 to get something
4964   that's true only with -std.  */
4965int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4966
4967/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4968   inside strings and character constants.  */
4969#define FOO(x) 'x'
4970int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4971
4972int test (int i, double x);
4973struct s1 {int (*f) (int a);};
4974struct s2 {int (*f) (double a);};
4975int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4976int argc;
4977char **argv;
4978int
4979main ()
4980{
4981return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4982  ;
4983  return 0;
4984}
4985_ACEOF
4986for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4987	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4988do
4989  CC="$ac_save_CC $ac_arg"
4990  if ac_fn_c_try_compile "$LINENO"; then :
4991  ac_cv_prog_cc_c89=$ac_arg
4992fi
4993rm -f core conftest.err conftest.$ac_objext
4994  test "x$ac_cv_prog_cc_c89" != "xno" && break
4995done
4996rm -f conftest.$ac_ext
4997CC=$ac_save_CC
4998
4999fi
5000# AC_CACHE_VAL
5001case "x$ac_cv_prog_cc_c89" in
5002  x)
5003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5004$as_echo "none needed" >&6; } ;;
5005  xno)
5006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5007$as_echo "unsupported" >&6; } ;;
5008  *)
5009    CC="$CC $ac_cv_prog_cc_c89"
5010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5011$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5012esac
5013if test "x$ac_cv_prog_cc_c89" != xno; then :
5014
5015fi
5016
5017ac_ext=c
5018ac_cpp='$CPP $CPPFLAGS'
5019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022
5023depcc="$CC"   am_compiler_list=
5024
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5026$as_echo_n "checking dependency style of $depcc... " >&6; }
5027if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5031  # We make a subdir and do the tests there.  Otherwise we can end up
5032  # making bogus files that we don't know about and never remove.  For
5033  # instance it was reported that on HP-UX the gcc test will end up
5034  # making a dummy file named 'D' -- because '-MD' means "put the output
5035  # in D".
5036  rm -rf conftest.dir
5037  mkdir conftest.dir
5038  # Copy depcomp to subdir because otherwise we won't find it if we're
5039  # using a relative directory.
5040  cp "$am_depcomp" conftest.dir
5041  cd conftest.dir
5042  # We will build objects and dependencies in a subdirectory because
5043  # it helps to detect inapplicable dependency modes.  For instance
5044  # both Tru64's cc and ICC support -MD to output dependencies as a
5045  # side effect of compilation, but ICC will put the dependencies in
5046  # the current directory while Tru64 will put them in the object
5047  # directory.
5048  mkdir sub
5049
5050  am_cv_CC_dependencies_compiler_type=none
5051  if test "$am_compiler_list" = ""; then
5052     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5053  fi
5054  am__universal=false
5055  case " $depcc " in #(
5056     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5057     esac
5058
5059  for depmode in $am_compiler_list; do
5060    # Setup a source with many dependencies, because some compilers
5061    # like to wrap large dependency lists on column 80 (with \), and
5062    # we should not choose a depcomp mode which is confused by this.
5063    #
5064    # We need to recreate these files for each test, as the compiler may
5065    # overwrite some of them when testing with obscure command lines.
5066    # This happens at least with the AIX C compiler.
5067    : > sub/conftest.c
5068    for i in 1 2 3 4 5 6; do
5069      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5070      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5071      # Solaris 10 /bin/sh.
5072      echo '/* dummy */' > sub/conftst$i.h
5073    done
5074    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5075
5076    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5077    # mode.  It turns out that the SunPro C++ compiler does not properly
5078    # handle '-M -o', and we need to detect this.  Also, some Intel
5079    # versions had trouble with output in subdirs.
5080    am__obj=sub/conftest.${OBJEXT-o}
5081    am__minus_obj="-o $am__obj"
5082    case $depmode in
5083    gcc)
5084      # This depmode causes a compiler race in universal mode.
5085      test "$am__universal" = false || continue
5086      ;;
5087    nosideeffect)
5088      # After this tag, mechanisms are not by side-effect, so they'll
5089      # only be used when explicitly requested.
5090      if test "x$enable_dependency_tracking" = xyes; then
5091	continue
5092      else
5093	break
5094      fi
5095      ;;
5096    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5097      # This compiler won't grok '-c -o', but also, the minuso test has
5098      # not run yet.  These depmodes are late enough in the game, and
5099      # so weak that their functioning should not be impacted.
5100      am__obj=conftest.${OBJEXT-o}
5101      am__minus_obj=
5102      ;;
5103    none) break ;;
5104    esac
5105    if depmode=$depmode \
5106       source=sub/conftest.c object=$am__obj \
5107       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5108       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5109         >/dev/null 2>conftest.err &&
5110       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5111       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5112       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5113       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5114      # icc doesn't choke on unknown options, it will just issue warnings
5115      # or remarks (even with -Werror).  So we grep stderr for any message
5116      # that says an option was ignored or not supported.
5117      # When given -MP, icc 7.0 and 7.1 complain thusly:
5118      #   icc: Command line warning: ignoring option '-M'; no argument required
5119      # The diagnosis changed in icc 8.0:
5120      #   icc: Command line remark: option '-MP' not supported
5121      if (grep 'ignoring option' conftest.err ||
5122          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5123        am_cv_CC_dependencies_compiler_type=$depmode
5124        break
5125      fi
5126    fi
5127  done
5128
5129  cd ..
5130  rm -rf conftest.dir
5131else
5132  am_cv_CC_dependencies_compiler_type=none
5133fi
5134
5135fi
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5137$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5138CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5139
5140 if
5141  test "x$enable_dependency_tracking" != xno \
5142  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5143  am__fastdepCC_TRUE=
5144  am__fastdepCC_FALSE='#'
5145else
5146  am__fastdepCC_TRUE='#'
5147  am__fastdepCC_FALSE=
5148fi
5149
5150
5151if test "x$CC" != xcc; then
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5153$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5156$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5157fi
5158set dummy $CC; ac_cc=`$as_echo "$2" |
5159		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5160if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5161  $as_echo_n "(cached) " >&6
5162else
5163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h.  */
5165
5166int
5167main ()
5168{
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174# Make sure it works both with $CC and with simple cc.
5175# We do the test twice because some compilers refuse to overwrite an
5176# existing .o file with -o, though they will create one.
5177ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5178rm -f conftest2.*
5179if { { case "(($ac_try" in
5180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181  *) ac_try_echo=$ac_try;;
5182esac
5183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5184$as_echo "$ac_try_echo"; } >&5
5185  (eval "$ac_try") 2>&5
5186  ac_status=$?
5187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188  test $ac_status = 0; } &&
5189   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191  *) ac_try_echo=$ac_try;;
5192esac
5193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5194$as_echo "$ac_try_echo"; } >&5
5195  (eval "$ac_try") 2>&5
5196  ac_status=$?
5197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198  test $ac_status = 0; };
5199then
5200  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5201  if test "x$CC" != xcc; then
5202    # Test first that cc exists at all.
5203    if { ac_try='cc -c conftest.$ac_ext >&5'
5204  { { case "(($ac_try" in
5205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206  *) ac_try_echo=$ac_try;;
5207esac
5208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5209$as_echo "$ac_try_echo"; } >&5
5210  (eval "$ac_try") 2>&5
5211  ac_status=$?
5212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5213  test $ac_status = 0; }; }; then
5214      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5215      rm -f conftest2.*
5216      if { { case "(($ac_try" in
5217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218  *) ac_try_echo=$ac_try;;
5219esac
5220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5221$as_echo "$ac_try_echo"; } >&5
5222  (eval "$ac_try") 2>&5
5223  ac_status=$?
5224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225  test $ac_status = 0; } &&
5226	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228  *) ac_try_echo=$ac_try;;
5229esac
5230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5231$as_echo "$ac_try_echo"; } >&5
5232  (eval "$ac_try") 2>&5
5233  ac_status=$?
5234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5235  test $ac_status = 0; };
5236      then
5237	# cc works too.
5238	:
5239      else
5240	# cc exists but doesn't like -o.
5241	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5242      fi
5243    fi
5244  fi
5245else
5246  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5247fi
5248rm -f core conftest*
5249
5250fi
5251if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5253$as_echo "yes" >&6; }
5254else
5255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256$as_echo "no" >&6; }
5257
5258$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5259
5260fi
5261
5262# FIXME: we rely on the cache variable name because
5263# there is no other way.
5264set dummy $CC
5265am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5266eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5267if test "$am_t" != yes; then
5268   # Losing compiler, so override with the script.
5269   # FIXME: It is wrong to rewrite CC.
5270   # But if we don't then we get into trouble of one sort or another.
5271   # A longer-term fix would be to have automake use am__CC in this case,
5272   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5273   CC="$am_aux_dir/compile $CC"
5274fi
5275
5276
5277
5278
5279
5280case `pwd` in
5281  *\ * | *\	*)
5282    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5283$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5284esac
5285
5286
5287
5288macro_version='2.4.2'
5289macro_revision='1.3337'
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303ltmain="$ac_aux_dir/ltmain.sh"
5304
5305# Backslashify metacharacters that are still active within
5306# double-quoted strings.
5307sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5308
5309# Same as above, but do not quote variable references.
5310double_quote_subst='s/\(["`\\]\)/\\\1/g'
5311
5312# Sed substitution to delay expansion of an escaped shell variable in a
5313# double_quote_subst'ed string.
5314delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5315
5316# Sed substitution to delay expansion of an escaped single quote.
5317delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5318
5319# Sed substitution to avoid accidental globbing in evaled expressions
5320no_glob_subst='s/\*/\\\*/g'
5321
5322ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5323ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5324ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5325
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5327$as_echo_n "checking how to print strings... " >&6; }
5328# Test print first, because it will be a builtin if present.
5329if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5330   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5331  ECHO='print -r --'
5332elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5333  ECHO='printf %s\n'
5334else
5335  # Use this function as a fallback that always works.
5336  func_fallback_echo ()
5337  {
5338    eval 'cat <<_LTECHO_EOF
5339$1
5340_LTECHO_EOF'
5341  }
5342  ECHO='func_fallback_echo'
5343fi
5344
5345# func_echo_all arg...
5346# Invoke $ECHO with all args, space-separated.
5347func_echo_all ()
5348{
5349    $ECHO ""
5350}
5351
5352case "$ECHO" in
5353  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5354$as_echo "printf" >&6; } ;;
5355  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5356$as_echo "print -r" >&6; } ;;
5357  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5358$as_echo "cat" >&6; } ;;
5359esac
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5375$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5376if ${ac_cv_path_SED+:} false; then :
5377  $as_echo_n "(cached) " >&6
5378else
5379            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5380     for ac_i in 1 2 3 4 5 6 7; do
5381       ac_script="$ac_script$as_nl$ac_script"
5382     done
5383     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5384     { ac_script=; unset ac_script;}
5385     if test -z "$SED"; then
5386  ac_path_SED_found=false
5387  # Loop through the user's path and test for each of PROGNAME-LIST
5388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391  IFS=$as_save_IFS
5392  test -z "$as_dir" && as_dir=.
5393    for ac_prog in sed gsed; do
5394    for ac_exec_ext in '' $ac_executable_extensions; do
5395      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5396      as_fn_executable_p "$ac_path_SED" || continue
5397# Check for GNU ac_path_SED and select it if it is found.
5398  # Check for GNU $ac_path_SED
5399case `"$ac_path_SED" --version 2>&1` in
5400*GNU*)
5401  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5402*)
5403  ac_count=0
5404  $as_echo_n 0123456789 >"conftest.in"
5405  while :
5406  do
5407    cat "conftest.in" "conftest.in" >"conftest.tmp"
5408    mv "conftest.tmp" "conftest.in"
5409    cp "conftest.in" "conftest.nl"
5410    $as_echo '' >> "conftest.nl"
5411    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413    as_fn_arith $ac_count + 1 && ac_count=$as_val
5414    if test $ac_count -gt ${ac_path_SED_max-0}; then
5415      # Best one so far, save it but keep looking for a better one
5416      ac_cv_path_SED="$ac_path_SED"
5417      ac_path_SED_max=$ac_count
5418    fi
5419    # 10*(2^10) chars as input seems more than enough
5420    test $ac_count -gt 10 && break
5421  done
5422  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423esac
5424
5425      $ac_path_SED_found && break 3
5426    done
5427  done
5428  done
5429IFS=$as_save_IFS
5430  if test -z "$ac_cv_path_SED"; then
5431    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5432  fi
5433else
5434  ac_cv_path_SED=$SED
5435fi
5436
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5439$as_echo "$ac_cv_path_SED" >&6; }
5440 SED="$ac_cv_path_SED"
5441  rm -f conftest.sed
5442
5443test -z "$SED" && SED=sed
5444Xsed="$SED -e 1s/^X//"
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5457$as_echo_n "checking for fgrep... " >&6; }
5458if ${ac_cv_path_FGREP+:} false; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5462   then ac_cv_path_FGREP="$GREP -F"
5463   else
5464     if test -z "$FGREP"; then
5465  ac_path_FGREP_found=false
5466  # Loop through the user's path and test for each of PROGNAME-LIST
5467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472    for ac_prog in fgrep; do
5473    for ac_exec_ext in '' $ac_executable_extensions; do
5474      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5475      as_fn_executable_p "$ac_path_FGREP" || continue
5476# Check for GNU ac_path_FGREP and select it if it is found.
5477  # Check for GNU $ac_path_FGREP
5478case `"$ac_path_FGREP" --version 2>&1` in
5479*GNU*)
5480  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5481*)
5482  ac_count=0
5483  $as_echo_n 0123456789 >"conftest.in"
5484  while :
5485  do
5486    cat "conftest.in" "conftest.in" >"conftest.tmp"
5487    mv "conftest.tmp" "conftest.in"
5488    cp "conftest.in" "conftest.nl"
5489    $as_echo 'FGREP' >> "conftest.nl"
5490    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492    as_fn_arith $ac_count + 1 && ac_count=$as_val
5493    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5494      # Best one so far, save it but keep looking for a better one
5495      ac_cv_path_FGREP="$ac_path_FGREP"
5496      ac_path_FGREP_max=$ac_count
5497    fi
5498    # 10*(2^10) chars as input seems more than enough
5499    test $ac_count -gt 10 && break
5500  done
5501  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502esac
5503
5504      $ac_path_FGREP_found && break 3
5505    done
5506  done
5507  done
5508IFS=$as_save_IFS
5509  if test -z "$ac_cv_path_FGREP"; then
5510    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5511  fi
5512else
5513  ac_cv_path_FGREP=$FGREP
5514fi
5515
5516   fi
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5519$as_echo "$ac_cv_path_FGREP" >&6; }
5520 FGREP="$ac_cv_path_FGREP"
5521
5522
5523test -z "$GREP" && GREP=grep
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543# Check whether --with-gnu-ld was given.
5544if test "${with_gnu_ld+set}" = set; then :
5545  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5546else
5547  with_gnu_ld=no
5548fi
5549
5550ac_prog=ld
5551if test "$GCC" = yes; then
5552  # Check if gcc -print-prog-name=ld gives a path.
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5554$as_echo_n "checking for ld used by $CC... " >&6; }
5555  case $host in
5556  *-*-mingw*)
5557    # gcc leaves a trailing carriage return which upsets mingw
5558    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5559  *)
5560    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5561  esac
5562  case $ac_prog in
5563    # Accept absolute paths.
5564    [\\/]* | ?:[\\/]*)
5565      re_direlt='/[^/][^/]*/\.\./'
5566      # Canonicalize the pathname of ld
5567      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5568      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5569	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5570      done
5571      test -z "$LD" && LD="$ac_prog"
5572      ;;
5573  "")
5574    # If it fails, then pretend we aren't using GCC.
5575    ac_prog=ld
5576    ;;
5577  *)
5578    # If it is relative, then search for the first ld in PATH.
5579    with_gnu_ld=unknown
5580    ;;
5581  esac
5582elif test "$with_gnu_ld" = yes; then
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5584$as_echo_n "checking for GNU ld... " >&6; }
5585else
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5587$as_echo_n "checking for non-GNU ld... " >&6; }
5588fi
5589if ${lt_cv_path_LD+:} false; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  if test -z "$LD"; then
5593  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5594  for ac_dir in $PATH; do
5595    IFS="$lt_save_ifs"
5596    test -z "$ac_dir" && ac_dir=.
5597    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5598      lt_cv_path_LD="$ac_dir/$ac_prog"
5599      # Check to see if the program is GNU ld.  I'd rather use --version,
5600      # but apparently some variants of GNU ld only accept -v.
5601      # Break only if it was the GNU/non-GNU ld that we prefer.
5602      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5603      *GNU* | *'with BFD'*)
5604	test "$with_gnu_ld" != no && break
5605	;;
5606      *)
5607	test "$with_gnu_ld" != yes && break
5608	;;
5609      esac
5610    fi
5611  done
5612  IFS="$lt_save_ifs"
5613else
5614  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5615fi
5616fi
5617
5618LD="$lt_cv_path_LD"
5619if test -n "$LD"; then
5620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5621$as_echo "$LD" >&6; }
5622else
5623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624$as_echo "no" >&6; }
5625fi
5626test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5628$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5629if ${lt_cv_prog_gnu_ld+:} false; then :
5630  $as_echo_n "(cached) " >&6
5631else
5632  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5633case `$LD -v 2>&1 </dev/null` in
5634*GNU* | *'with BFD'*)
5635  lt_cv_prog_gnu_ld=yes
5636  ;;
5637*)
5638  lt_cv_prog_gnu_ld=no
5639  ;;
5640esac
5641fi
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5643$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5644with_gnu_ld=$lt_cv_prog_gnu_ld
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5655$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5656if ${lt_cv_path_NM+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659  if test -n "$NM"; then
5660  # Let the user override the test.
5661  lt_cv_path_NM="$NM"
5662else
5663  lt_nm_to_check="${ac_tool_prefix}nm"
5664  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5665    lt_nm_to_check="$lt_nm_to_check nm"
5666  fi
5667  for lt_tmp_nm in $lt_nm_to_check; do
5668    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5669    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5670      IFS="$lt_save_ifs"
5671      test -z "$ac_dir" && ac_dir=.
5672      tmp_nm="$ac_dir/$lt_tmp_nm"
5673      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5674	# Check to see if the nm accepts a BSD-compat flag.
5675	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5676	#   nm: unknown option "B" ignored
5677	# Tru64's nm complains that /dev/null is an invalid object file
5678	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5679	*/dev/null* | *'Invalid file or object type'*)
5680	  lt_cv_path_NM="$tmp_nm -B"
5681	  break
5682	  ;;
5683	*)
5684	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5685	  */dev/null*)
5686	    lt_cv_path_NM="$tmp_nm -p"
5687	    break
5688	    ;;
5689	  *)
5690	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5691	    continue # so that we can try to find one that supports BSD flags
5692	    ;;
5693	  esac
5694	  ;;
5695	esac
5696      fi
5697    done
5698    IFS="$lt_save_ifs"
5699  done
5700  : ${lt_cv_path_NM=no}
5701fi
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5704$as_echo "$lt_cv_path_NM" >&6; }
5705if test "$lt_cv_path_NM" != "no"; then
5706  NM="$lt_cv_path_NM"
5707else
5708  # Didn't find any BSD compatible name lister, look for dumpbin.
5709  if test -n "$DUMPBIN"; then :
5710    # Let the user override the test.
5711  else
5712    if test -n "$ac_tool_prefix"; then
5713  for ac_prog in dumpbin "link -dump"
5714  do
5715    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718$as_echo_n "checking for $ac_word... " >&6; }
5719if ${ac_cv_prog_DUMPBIN+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$DUMPBIN"; then
5723  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730    for ac_exec_ext in '' $ac_executable_extensions; do
5731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737  done
5738IFS=$as_save_IFS
5739
5740fi
5741fi
5742DUMPBIN=$ac_cv_prog_DUMPBIN
5743if test -n "$DUMPBIN"; then
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5745$as_echo "$DUMPBIN" >&6; }
5746else
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749fi
5750
5751
5752    test -n "$DUMPBIN" && break
5753  done
5754fi
5755if test -z "$DUMPBIN"; then
5756  ac_ct_DUMPBIN=$DUMPBIN
5757  for ac_prog in dumpbin "link -dump"
5758do
5759  # Extract the first word of "$ac_prog", so it can be a program name with args.
5760set dummy $ac_prog; ac_word=$2
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
5763if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  if test -n "$ac_ct_DUMPBIN"; then
5767  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772  IFS=$as_save_IFS
5773  test -z "$as_dir" && as_dir=.
5774    for ac_exec_ext in '' $ac_executable_extensions; do
5775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778    break 2
5779  fi
5780done
5781  done
5782IFS=$as_save_IFS
5783
5784fi
5785fi
5786ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5787if test -n "$ac_ct_DUMPBIN"; then
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5789$as_echo "$ac_ct_DUMPBIN" >&6; }
5790else
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792$as_echo "no" >&6; }
5793fi
5794
5795
5796  test -n "$ac_ct_DUMPBIN" && break
5797done
5798
5799  if test "x$ac_ct_DUMPBIN" = x; then
5800    DUMPBIN=":"
5801  else
5802    case $cross_compiling:$ac_tool_warned in
5803yes:)
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806ac_tool_warned=yes ;;
5807esac
5808    DUMPBIN=$ac_ct_DUMPBIN
5809  fi
5810fi
5811
5812    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5813    *COFF*)
5814      DUMPBIN="$DUMPBIN -symbols"
5815      ;;
5816    *)
5817      DUMPBIN=:
5818      ;;
5819    esac
5820  fi
5821
5822  if test "$DUMPBIN" != ":"; then
5823    NM="$DUMPBIN"
5824  fi
5825fi
5826test -z "$NM" && NM=nm
5827
5828
5829
5830
5831
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5834$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5835if ${lt_cv_nm_interface+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  lt_cv_nm_interface="BSD nm"
5839  echo "int some_variable = 0;" > conftest.$ac_ext
5840  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5841  (eval "$ac_compile" 2>conftest.err)
5842  cat conftest.err >&5
5843  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5844  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5845  cat conftest.err >&5
5846  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5847  cat conftest.out >&5
5848  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5849    lt_cv_nm_interface="MS dumpbin"
5850  fi
5851  rm -f conftest*
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5854$as_echo "$lt_cv_nm_interface" >&6; }
5855
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5857$as_echo_n "checking whether ln -s works... " >&6; }
5858LN_S=$as_ln_s
5859if test "$LN_S" = "ln -s"; then
5860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5861$as_echo "yes" >&6; }
5862else
5863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5864$as_echo "no, using $LN_S" >&6; }
5865fi
5866
5867# find the maximum length of command line arguments
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5869$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5870if ${lt_cv_sys_max_cmd_len+:} false; then :
5871  $as_echo_n "(cached) " >&6
5872else
5873    i=0
5874  teststring="ABCD"
5875
5876  case $build_os in
5877  msdosdjgpp*)
5878    # On DJGPP, this test can blow up pretty badly due to problems in libc
5879    # (any single argument exceeding 2000 bytes causes a buffer overrun
5880    # during glob expansion).  Even if it were fixed, the result of this
5881    # check would be larger than it should be.
5882    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5883    ;;
5884
5885  gnu*)
5886    # Under GNU Hurd, this test is not required because there is
5887    # no limit to the length of command line arguments.
5888    # Libtool will interpret -1 as no limit whatsoever
5889    lt_cv_sys_max_cmd_len=-1;
5890    ;;
5891
5892  cygwin* | mingw* | cegcc*)
5893    # On Win9x/ME, this test blows up -- it succeeds, but takes
5894    # about 5 minutes as the teststring grows exponentially.
5895    # Worse, since 9x/ME are not pre-emptively multitasking,
5896    # you end up with a "frozen" computer, even though with patience
5897    # the test eventually succeeds (with a max line length of 256k).
5898    # Instead, let's just punt: use the minimum linelength reported by
5899    # all of the supported platforms: 8192 (on NT/2K/XP).
5900    lt_cv_sys_max_cmd_len=8192;
5901    ;;
5902
5903  mint*)
5904    # On MiNT this can take a long time and run out of memory.
5905    lt_cv_sys_max_cmd_len=8192;
5906    ;;
5907
5908  amigaos*)
5909    # On AmigaOS with pdksh, this test takes hours, literally.
5910    # So we just punt and use a minimum line length of 8192.
5911    lt_cv_sys_max_cmd_len=8192;
5912    ;;
5913
5914  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5915    # This has been around since 386BSD, at least.  Likely further.
5916    if test -x /sbin/sysctl; then
5917      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5918    elif test -x /usr/sbin/sysctl; then
5919      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5920    else
5921      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5922    fi
5923    # And add a safety zone
5924    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5925    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5926    ;;
5927
5928  interix*)
5929    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5930    lt_cv_sys_max_cmd_len=196608
5931    ;;
5932
5933  os2*)
5934    # The test takes a long time on OS/2.
5935    lt_cv_sys_max_cmd_len=8192
5936    ;;
5937
5938  osf*)
5939    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5940    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5941    # nice to cause kernel panics so lets avoid the loop below.
5942    # First set a reasonable default.
5943    lt_cv_sys_max_cmd_len=16384
5944    #
5945    if test -x /sbin/sysconfig; then
5946      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5947        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5948      esac
5949    fi
5950    ;;
5951  sco3.2v5*)
5952    lt_cv_sys_max_cmd_len=102400
5953    ;;
5954  sysv5* | sco5v6* | sysv4.2uw2*)
5955    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5956    if test -n "$kargmax"; then
5957      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5958    else
5959      lt_cv_sys_max_cmd_len=32768
5960    fi
5961    ;;
5962  *)
5963    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5964    if test -n "$lt_cv_sys_max_cmd_len"; then
5965      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5966      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5967    else
5968      # Make teststring a little bigger before we do anything with it.
5969      # a 1K string should be a reasonable start.
5970      for i in 1 2 3 4 5 6 7 8 ; do
5971        teststring=$teststring$teststring
5972      done
5973      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5974      # If test is not a shell built-in, we'll probably end up computing a
5975      # maximum length that is only half of the actual maximum length, but
5976      # we can't tell.
5977      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5978	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5979	      test $i != 17 # 1/2 MB should be enough
5980      do
5981        i=`expr $i + 1`
5982        teststring=$teststring$teststring
5983      done
5984      # Only check the string length outside the loop.
5985      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5986      teststring=
5987      # Add a significant safety factor because C++ compilers can tack on
5988      # massive amounts of additional arguments before passing them to the
5989      # linker.  It appears as though 1/2 is a usable value.
5990      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5991    fi
5992    ;;
5993  esac
5994
5995fi
5996
5997if test -n $lt_cv_sys_max_cmd_len ; then
5998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5999$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6000else
6001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6002$as_echo "none" >&6; }
6003fi
6004max_cmd_len=$lt_cv_sys_max_cmd_len
6005
6006
6007
6008
6009
6010
6011: ${CP="cp -f"}
6012: ${MV="mv -f"}
6013: ${RM="rm -f"}
6014
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6016$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6017# Try some XSI features
6018xsi_shell=no
6019( _lt_dummy="a/b/c"
6020  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6021      = c,a/b,b/c, \
6022    && eval 'test $(( 1 + 1 )) -eq 2 \
6023    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6024  && xsi_shell=yes
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6026$as_echo "$xsi_shell" >&6; }
6027
6028
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6030$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6031lt_shell_append=no
6032( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6033    >/dev/null 2>&1 \
6034  && lt_shell_append=yes
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6036$as_echo "$lt_shell_append" >&6; }
6037
6038
6039if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6040  lt_unset=unset
6041else
6042  lt_unset=false
6043fi
6044
6045
6046
6047
6048
6049# test EBCDIC or ASCII
6050case `echo X|tr X '\101'` in
6051 A) # ASCII based system
6052    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6053  lt_SP2NL='tr \040 \012'
6054  lt_NL2SP='tr \015\012 \040\040'
6055  ;;
6056 *) # EBCDIC based system
6057  lt_SP2NL='tr \100 \n'
6058  lt_NL2SP='tr \r\n \100\100'
6059  ;;
6060esac
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6071$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6072if ${lt_cv_to_host_file_cmd+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075  case $host in
6076  *-*-mingw* )
6077    case $build in
6078      *-*-mingw* ) # actually msys
6079        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6080        ;;
6081      *-*-cygwin* )
6082        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6083        ;;
6084      * ) # otherwise, assume *nix
6085        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6086        ;;
6087    esac
6088    ;;
6089  *-*-cygwin* )
6090    case $build in
6091      *-*-mingw* ) # actually msys
6092        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6093        ;;
6094      *-*-cygwin* )
6095        lt_cv_to_host_file_cmd=func_convert_file_noop
6096        ;;
6097      * ) # otherwise, assume *nix
6098        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6099        ;;
6100    esac
6101    ;;
6102  * ) # unhandled hosts (and "normal" native builds)
6103    lt_cv_to_host_file_cmd=func_convert_file_noop
6104    ;;
6105esac
6106
6107fi
6108
6109to_host_file_cmd=$lt_cv_to_host_file_cmd
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6111$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6112
6113
6114
6115
6116
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6118$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6119if ${lt_cv_to_tool_file_cmd+:} false; then :
6120  $as_echo_n "(cached) " >&6
6121else
6122  #assume ordinary cross tools, or native build.
6123lt_cv_to_tool_file_cmd=func_convert_file_noop
6124case $host in
6125  *-*-mingw* )
6126    case $build in
6127      *-*-mingw* ) # actually msys
6128        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6129        ;;
6130    esac
6131    ;;
6132esac
6133
6134fi
6135
6136to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6138$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6139
6140
6141
6142
6143
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6145$as_echo_n "checking for $LD option to reload object files... " >&6; }
6146if ${lt_cv_ld_reload_flag+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  lt_cv_ld_reload_flag='-r'
6150fi
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6152$as_echo "$lt_cv_ld_reload_flag" >&6; }
6153reload_flag=$lt_cv_ld_reload_flag
6154case $reload_flag in
6155"" | " "*) ;;
6156*) reload_flag=" $reload_flag" ;;
6157esac
6158reload_cmds='$LD$reload_flag -o $output$reload_objs'
6159case $host_os in
6160  cygwin* | mingw* | pw32* | cegcc*)
6161    if test "$GCC" != yes; then
6162      reload_cmds=false
6163    fi
6164    ;;
6165  darwin*)
6166    if test "$GCC" = yes; then
6167      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6168    else
6169      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6170    fi
6171    ;;
6172esac
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182if test -n "$ac_tool_prefix"; then
6183  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6184set dummy ${ac_tool_prefix}objdump; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
6187if ${ac_cv_prog_OBJDUMP+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  if test -n "$OBJDUMP"; then
6191  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196  IFS=$as_save_IFS
6197  test -z "$as_dir" && as_dir=.
6198    for ac_exec_ext in '' $ac_executable_extensions; do
6199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202    break 2
6203  fi
6204done
6205  done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210OBJDUMP=$ac_cv_prog_OBJDUMP
6211if test -n "$OBJDUMP"; then
6212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6213$as_echo "$OBJDUMP" >&6; }
6214else
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219
6220fi
6221if test -z "$ac_cv_prog_OBJDUMP"; then
6222  ac_ct_OBJDUMP=$OBJDUMP
6223  # Extract the first word of "objdump", so it can be a program name with args.
6224set dummy objdump; ac_word=$2
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226$as_echo_n "checking for $ac_word... " >&6; }
6227if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  if test -n "$ac_ct_OBJDUMP"; then
6231  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236  IFS=$as_save_IFS
6237  test -z "$as_dir" && as_dir=.
6238    for ac_exec_ext in '' $ac_executable_extensions; do
6239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242    break 2
6243  fi
6244done
6245  done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6251if test -n "$ac_ct_OBJDUMP"; then
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6253$as_echo "$ac_ct_OBJDUMP" >&6; }
6254else
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
6257fi
6258
6259  if test "x$ac_ct_OBJDUMP" = x; then
6260    OBJDUMP="false"
6261  else
6262    case $cross_compiling:$ac_tool_warned in
6263yes:)
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266ac_tool_warned=yes ;;
6267esac
6268    OBJDUMP=$ac_ct_OBJDUMP
6269  fi
6270else
6271  OBJDUMP="$ac_cv_prog_OBJDUMP"
6272fi
6273
6274test -z "$OBJDUMP" && OBJDUMP=objdump
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6285$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6286if ${lt_cv_deplibs_check_method+:} false; then :
6287  $as_echo_n "(cached) " >&6
6288else
6289  lt_cv_file_magic_cmd='$MAGIC_CMD'
6290lt_cv_file_magic_test_file=
6291lt_cv_deplibs_check_method='unknown'
6292# Need to set the preceding variable on all platforms that support
6293# interlibrary dependencies.
6294# 'none' -- dependencies not supported.
6295# `unknown' -- same as none, but documents that we really don't know.
6296# 'pass_all' -- all dependencies passed with no checks.
6297# 'test_compile' -- check by making test program.
6298# 'file_magic [[regex]]' -- check by looking for files in library path
6299# which responds to the $file_magic_cmd with a given extended regex.
6300# If you have `file' or equivalent on your system and you're not sure
6301# whether `pass_all' will *always* work, you probably want this one.
6302
6303case $host_os in
6304aix[4-9]*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308beos*)
6309  lt_cv_deplibs_check_method=pass_all
6310  ;;
6311
6312bsdi[45]*)
6313  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6314  lt_cv_file_magic_cmd='/usr/bin/file -L'
6315  lt_cv_file_magic_test_file=/shlib/libc.so
6316  ;;
6317
6318cygwin*)
6319  # func_win32_libid is a shell function defined in ltmain.sh
6320  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6321  lt_cv_file_magic_cmd='func_win32_libid'
6322  ;;
6323
6324mingw* | pw32*)
6325  # Base MSYS/MinGW do not provide the 'file' command needed by
6326  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6327  # unless we find 'file', for example because we are cross-compiling.
6328  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6329  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6330    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6331    lt_cv_file_magic_cmd='func_win32_libid'
6332  else
6333    # Keep this pattern in sync with the one in func_win32_libid.
6334    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6335    lt_cv_file_magic_cmd='$OBJDUMP -f'
6336  fi
6337  ;;
6338
6339cegcc*)
6340  # use the weaker test based on 'objdump'. See mingw*.
6341  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6342  lt_cv_file_magic_cmd='$OBJDUMP -f'
6343  ;;
6344
6345darwin* | rhapsody*)
6346  lt_cv_deplibs_check_method=pass_all
6347  ;;
6348
6349freebsd* | dragonfly*)
6350  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6351    case $host_cpu in
6352    i*86 )
6353      # Not sure whether the presence of OpenBSD here was a mistake.
6354      # Let's accept both of them until this is cleared up.
6355      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6356      lt_cv_file_magic_cmd=/usr/bin/file
6357      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6358      ;;
6359    esac
6360  else
6361    lt_cv_deplibs_check_method=pass_all
6362  fi
6363  ;;
6364
6365gnu*)
6366  lt_cv_deplibs_check_method=pass_all
6367  ;;
6368
6369haiku*)
6370  lt_cv_deplibs_check_method=pass_all
6371  ;;
6372
6373hpux10.20* | hpux11*)
6374  lt_cv_file_magic_cmd=/usr/bin/file
6375  case $host_cpu in
6376  ia64*)
6377    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6378    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6379    ;;
6380  hppa*64*)
6381    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]'
6382    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6383    ;;
6384  *)
6385    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6386    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6387    ;;
6388  esac
6389  ;;
6390
6391interix[3-9]*)
6392  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6393  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6394  ;;
6395
6396irix5* | irix6* | nonstopux*)
6397  case $LD in
6398  *-32|*"-32 ") libmagic=32-bit;;
6399  *-n32|*"-n32 ") libmagic=N32;;
6400  *-64|*"-64 ") libmagic=64-bit;;
6401  *) libmagic=never-match;;
6402  esac
6403  lt_cv_deplibs_check_method=pass_all
6404  ;;
6405
6406# This must be glibc/ELF.
6407linux* | k*bsd*-gnu | kopensolaris*-gnu)
6408  lt_cv_deplibs_check_method=pass_all
6409  ;;
6410
6411netbsd*)
6412  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6413    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6414  else
6415    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6416  fi
6417  ;;
6418
6419newos6*)
6420  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6421  lt_cv_file_magic_cmd=/usr/bin/file
6422  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6423  ;;
6424
6425*nto* | *qnx*)
6426  lt_cv_deplibs_check_method=pass_all
6427  ;;
6428
6429openbsd*)
6430  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6431    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6432  else
6433    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6434  fi
6435  ;;
6436
6437osf3* | osf4* | osf5*)
6438  lt_cv_deplibs_check_method=pass_all
6439  ;;
6440
6441rdos*)
6442  lt_cv_deplibs_check_method=pass_all
6443  ;;
6444
6445solaris*)
6446  lt_cv_deplibs_check_method=pass_all
6447  ;;
6448
6449sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6450  lt_cv_deplibs_check_method=pass_all
6451  ;;
6452
6453sysv4 | sysv4.3*)
6454  case $host_vendor in
6455  motorola)
6456    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]'
6457    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6458    ;;
6459  ncr)
6460    lt_cv_deplibs_check_method=pass_all
6461    ;;
6462  sequent)
6463    lt_cv_file_magic_cmd='/bin/file'
6464    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6465    ;;
6466  sni)
6467    lt_cv_file_magic_cmd='/bin/file'
6468    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6469    lt_cv_file_magic_test_file=/lib/libc.so
6470    ;;
6471  siemens)
6472    lt_cv_deplibs_check_method=pass_all
6473    ;;
6474  pc)
6475    lt_cv_deplibs_check_method=pass_all
6476    ;;
6477  esac
6478  ;;
6479
6480tpf*)
6481  lt_cv_deplibs_check_method=pass_all
6482  ;;
6483esac
6484
6485fi
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6487$as_echo "$lt_cv_deplibs_check_method" >&6; }
6488
6489file_magic_glob=
6490want_nocaseglob=no
6491if test "$build" = "$host"; then
6492  case $host_os in
6493  mingw* | pw32*)
6494    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6495      want_nocaseglob=yes
6496    else
6497      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6498    fi
6499    ;;
6500  esac
6501fi
6502
6503file_magic_cmd=$lt_cv_file_magic_cmd
6504deplibs_check_method=$lt_cv_deplibs_check_method
6505test -z "$deplibs_check_method" && deplibs_check_method=unknown
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528if test -n "$ac_tool_prefix"; then
6529  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6530set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
6533if ${ac_cv_prog_DLLTOOL+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  if test -n "$DLLTOOL"; then
6537  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542  IFS=$as_save_IFS
6543  test -z "$as_dir" && as_dir=.
6544    for ac_exec_ext in '' $ac_executable_extensions; do
6545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548    break 2
6549  fi
6550done
6551  done
6552IFS=$as_save_IFS
6553
6554fi
6555fi
6556DLLTOOL=$ac_cv_prog_DLLTOOL
6557if test -n "$DLLTOOL"; then
6558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6559$as_echo "$DLLTOOL" >&6; }
6560else
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563fi
6564
6565
6566fi
6567if test -z "$ac_cv_prog_DLLTOOL"; then
6568  ac_ct_DLLTOOL=$DLLTOOL
6569  # Extract the first word of "dlltool", so it can be a program name with args.
6570set dummy dlltool; ac_word=$2
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572$as_echo_n "checking for $ac_word... " >&6; }
6573if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6574  $as_echo_n "(cached) " >&6
6575else
6576  if test -n "$ac_ct_DLLTOOL"; then
6577  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582  IFS=$as_save_IFS
6583  test -z "$as_dir" && as_dir=.
6584    for ac_exec_ext in '' $ac_executable_extensions; do
6585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588    break 2
6589  fi
6590done
6591  done
6592IFS=$as_save_IFS
6593
6594fi
6595fi
6596ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6597if test -n "$ac_ct_DLLTOOL"; then
6598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6599$as_echo "$ac_ct_DLLTOOL" >&6; }
6600else
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602$as_echo "no" >&6; }
6603fi
6604
6605  if test "x$ac_ct_DLLTOOL" = x; then
6606    DLLTOOL="false"
6607  else
6608    case $cross_compiling:$ac_tool_warned in
6609yes:)
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612ac_tool_warned=yes ;;
6613esac
6614    DLLTOOL=$ac_ct_DLLTOOL
6615  fi
6616else
6617  DLLTOOL="$ac_cv_prog_DLLTOOL"
6618fi
6619
6620test -z "$DLLTOOL" && DLLTOOL=dlltool
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6632$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6633if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6634  $as_echo_n "(cached) " >&6
6635else
6636  lt_cv_sharedlib_from_linklib_cmd='unknown'
6637
6638case $host_os in
6639cygwin* | mingw* | pw32* | cegcc*)
6640  # two different shell functions defined in ltmain.sh
6641  # decide which to use based on capabilities of $DLLTOOL
6642  case `$DLLTOOL --help 2>&1` in
6643  *--identify-strict*)
6644    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6645    ;;
6646  *)
6647    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6648    ;;
6649  esac
6650  ;;
6651*)
6652  # fallback: assume linklib IS sharedlib
6653  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6654  ;;
6655esac
6656
6657fi
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6659$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6660sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6661test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6662
6663
6664
6665
6666
6667
6668
6669if test -n "$ac_tool_prefix"; then
6670  for ac_prog in ar
6671  do
6672    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675$as_echo_n "checking for $ac_word... " >&6; }
6676if ${ac_cv_prog_AR+:} false; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  if test -n "$AR"; then
6680  ac_cv_prog_AR="$AR" # Let the user override the test.
6681else
6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in $PATH
6684do
6685  IFS=$as_save_IFS
6686  test -z "$as_dir" && as_dir=.
6687    for ac_exec_ext in '' $ac_executable_extensions; do
6688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691    break 2
6692  fi
6693done
6694  done
6695IFS=$as_save_IFS
6696
6697fi
6698fi
6699AR=$ac_cv_prog_AR
6700if test -n "$AR"; then
6701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6702$as_echo "$AR" >&6; }
6703else
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705$as_echo "no" >&6; }
6706fi
6707
6708
6709    test -n "$AR" && break
6710  done
6711fi
6712if test -z "$AR"; then
6713  ac_ct_AR=$AR
6714  for ac_prog in ar
6715do
6716  # Extract the first word of "$ac_prog", so it can be a program name with args.
6717set dummy $ac_prog; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_prog_ac_ct_AR+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  if test -n "$ac_ct_AR"; then
6724  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731    for ac_exec_ext in '' $ac_executable_extensions; do
6732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733    ac_cv_prog_ac_ct_AR="$ac_prog"
6734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738  done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743ac_ct_AR=$ac_cv_prog_ac_ct_AR
6744if test -n "$ac_ct_AR"; then
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6746$as_echo "$ac_ct_AR" >&6; }
6747else
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752
6753  test -n "$ac_ct_AR" && break
6754done
6755
6756  if test "x$ac_ct_AR" = x; then
6757    AR="false"
6758  else
6759    case $cross_compiling:$ac_tool_warned in
6760yes:)
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763ac_tool_warned=yes ;;
6764esac
6765    AR=$ac_ct_AR
6766  fi
6767fi
6768
6769: ${AR=ar}
6770: ${AR_FLAGS=cru}
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6783$as_echo_n "checking for archiver @FILE support... " >&6; }
6784if ${lt_cv_ar_at_file+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  lt_cv_ar_at_file=no
6788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789/* end confdefs.h.  */
6790
6791int
6792main ()
6793{
6794
6795  ;
6796  return 0;
6797}
6798_ACEOF
6799if ac_fn_c_try_compile "$LINENO"; then :
6800  echo conftest.$ac_objext > conftest.lst
6801      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6802      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6803  (eval $lt_ar_try) 2>&5
6804  ac_status=$?
6805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806  test $ac_status = 0; }
6807      if test "$ac_status" -eq 0; then
6808	# Ensure the archiver fails upon bogus file names.
6809	rm -f conftest.$ac_objext libconftest.a
6810	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6811  (eval $lt_ar_try) 2>&5
6812  ac_status=$?
6813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814  test $ac_status = 0; }
6815	if test "$ac_status" -ne 0; then
6816          lt_cv_ar_at_file=@
6817        fi
6818      fi
6819      rm -f conftest.* libconftest.a
6820
6821fi
6822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823
6824fi
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6826$as_echo "$lt_cv_ar_at_file" >&6; }
6827
6828if test "x$lt_cv_ar_at_file" = xno; then
6829  archiver_list_spec=
6830else
6831  archiver_list_spec=$lt_cv_ar_at_file
6832fi
6833
6834
6835
6836
6837
6838
6839
6840if test -n "$ac_tool_prefix"; then
6841  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6842set dummy ${ac_tool_prefix}strip; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if ${ac_cv_prog_STRIP+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  if test -n "$STRIP"; then
6849  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856    for ac_exec_ext in '' $ac_executable_extensions; do
6857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863  done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868STRIP=$ac_cv_prog_STRIP
6869if test -n "$STRIP"; then
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6871$as_echo "$STRIP" >&6; }
6872else
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877
6878fi
6879if test -z "$ac_cv_prog_STRIP"; then
6880  ac_ct_STRIP=$STRIP
6881  # Extract the first word of "strip", so it can be a program name with args.
6882set dummy strip; ac_word=$2
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884$as_echo_n "checking for $ac_word... " >&6; }
6885if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6886  $as_echo_n "(cached) " >&6
6887else
6888  if test -n "$ac_ct_STRIP"; then
6889  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894  IFS=$as_save_IFS
6895  test -z "$as_dir" && as_dir=.
6896    for ac_exec_ext in '' $ac_executable_extensions; do
6897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898    ac_cv_prog_ac_ct_STRIP="strip"
6899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900    break 2
6901  fi
6902done
6903  done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6909if test -n "$ac_ct_STRIP"; then
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6911$as_echo "$ac_ct_STRIP" >&6; }
6912else
6913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914$as_echo "no" >&6; }
6915fi
6916
6917  if test "x$ac_ct_STRIP" = x; then
6918    STRIP=":"
6919  else
6920    case $cross_compiling:$ac_tool_warned in
6921yes:)
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924ac_tool_warned=yes ;;
6925esac
6926    STRIP=$ac_ct_STRIP
6927  fi
6928else
6929  STRIP="$ac_cv_prog_STRIP"
6930fi
6931
6932test -z "$STRIP" && STRIP=:
6933
6934
6935
6936
6937
6938
6939if test -n "$ac_tool_prefix"; then
6940  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6941set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if ${ac_cv_prog_RANLIB+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test -n "$RANLIB"; then
6948  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955    for ac_exec_ext in '' $ac_executable_extensions; do
6956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962  done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967RANLIB=$ac_cv_prog_RANLIB
6968if test -n "$RANLIB"; then
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6970$as_echo "$RANLIB" >&6; }
6971else
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976
6977fi
6978if test -z "$ac_cv_prog_RANLIB"; then
6979  ac_ct_RANLIB=$RANLIB
6980  # Extract the first word of "ranlib", so it can be a program name with args.
6981set dummy ranlib; ac_word=$2
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  if test -n "$ac_ct_RANLIB"; then
6988  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993  IFS=$as_save_IFS
6994  test -z "$as_dir" && as_dir=.
6995    for ac_exec_ext in '' $ac_executable_extensions; do
6996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997    ac_cv_prog_ac_ct_RANLIB="ranlib"
6998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002  done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7008if test -n "$ac_ct_RANLIB"; then
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7010$as_echo "$ac_ct_RANLIB" >&6; }
7011else
7012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
7014fi
7015
7016  if test "x$ac_ct_RANLIB" = x; then
7017    RANLIB=":"
7018  else
7019    case $cross_compiling:$ac_tool_warned in
7020yes:)
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7023ac_tool_warned=yes ;;
7024esac
7025    RANLIB=$ac_ct_RANLIB
7026  fi
7027else
7028  RANLIB="$ac_cv_prog_RANLIB"
7029fi
7030
7031test -z "$RANLIB" && RANLIB=:
7032
7033
7034
7035
7036
7037
7038# Determine commands to create old-style static archives.
7039old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7040old_postinstall_cmds='chmod 644 $oldlib'
7041old_postuninstall_cmds=
7042
7043if test -n "$RANLIB"; then
7044  case $host_os in
7045  openbsd*)
7046    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7047    ;;
7048  *)
7049    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7050    ;;
7051  esac
7052  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7053fi
7054
7055case $host_os in
7056  darwin*)
7057    lock_old_archive_extraction=yes ;;
7058  *)
7059    lock_old_archive_extraction=no ;;
7060esac
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100# If no C compiler was specified, use CC.
7101LTCC=${LTCC-"$CC"}
7102
7103# If no C compiler flags were specified, use CFLAGS.
7104LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7105
7106# Allow CC to be a program name with arguments.
7107compiler=$CC
7108
7109
7110# Check for command to grab the raw symbol name followed by C symbol from nm.
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7112$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7113if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116
7117# These are sane defaults that work on at least a few old systems.
7118# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7119
7120# Character class describing NM global symbol codes.
7121symcode='[BCDEGRST]'
7122
7123# Regexp to match symbols that can be accessed directly from C.
7124sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7125
7126# Define system-specific variables.
7127case $host_os in
7128aix*)
7129  symcode='[BCDT]'
7130  ;;
7131cygwin* | mingw* | pw32* | cegcc*)
7132  symcode='[ABCDGISTW]'
7133  ;;
7134hpux*)
7135  if test "$host_cpu" = ia64; then
7136    symcode='[ABCDEGRST]'
7137  fi
7138  ;;
7139irix* | nonstopux*)
7140  symcode='[BCDEGRST]'
7141  ;;
7142osf*)
7143  symcode='[BCDEGQRST]'
7144  ;;
7145solaris*)
7146  symcode='[BDRT]'
7147  ;;
7148sco3.2v5*)
7149  symcode='[DT]'
7150  ;;
7151sysv4.2uw2*)
7152  symcode='[DT]'
7153  ;;
7154sysv5* | sco5v6* | unixware* | OpenUNIX*)
7155  symcode='[ABDT]'
7156  ;;
7157sysv4)
7158  symcode='[DFNSTU]'
7159  ;;
7160esac
7161
7162# If we're using GNU nm, then use its standard symbol codes.
7163case `$NM -V 2>&1` in
7164*GNU* | *'with BFD'*)
7165  symcode='[ABCDGIRSTW]' ;;
7166esac
7167
7168# Transform an extracted symbol line into a proper C declaration.
7169# Some systems (esp. on ia64) link data and code symbols differently,
7170# so use this general approach.
7171lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7172
7173# Transform an extracted symbol line into symbol name and symbol address
7174lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7175lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7176
7177# Handle CRLF in mingw tool chain
7178opt_cr=
7179case $build_os in
7180mingw*)
7181  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7182  ;;
7183esac
7184
7185# Try without a prefix underscore, then with it.
7186for ac_symprfx in "" "_"; do
7187
7188  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7189  symxfrm="\\1 $ac_symprfx\\2 \\2"
7190
7191  # Write the raw and C identifiers.
7192  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7193    # Fake it for dumpbin and say T for any non-static function
7194    # and D for any global variable.
7195    # Also find C++ and __fastcall symbols from MSVC++,
7196    # which start with @ or ?.
7197    lt_cv_sys_global_symbol_pipe="$AWK '"\
7198"     {last_section=section; section=\$ 3};"\
7199"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7200"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7201"     \$ 0!~/External *\|/{next};"\
7202"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7203"     {if(hide[section]) next};"\
7204"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7205"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7206"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7207"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7208"     ' prfx=^$ac_symprfx"
7209  else
7210    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7211  fi
7212  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7213
7214  # Check to see that the pipe works correctly.
7215  pipe_works=no
7216
7217  rm -f conftest*
7218  cat > conftest.$ac_ext <<_LT_EOF
7219#ifdef __cplusplus
7220extern "C" {
7221#endif
7222char nm_test_var;
7223void nm_test_func(void);
7224void nm_test_func(void){}
7225#ifdef __cplusplus
7226}
7227#endif
7228int main(){nm_test_var='a';nm_test_func();return(0);}
7229_LT_EOF
7230
7231  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7232  (eval $ac_compile) 2>&5
7233  ac_status=$?
7234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235  test $ac_status = 0; }; then
7236    # Now try to grab the symbols.
7237    nlist=conftest.nm
7238    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7239  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7240  ac_status=$?
7241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242  test $ac_status = 0; } && test -s "$nlist"; then
7243      # Try sorting and uniquifying the output.
7244      if sort "$nlist" | uniq > "$nlist"T; then
7245	mv -f "$nlist"T "$nlist"
7246      else
7247	rm -f "$nlist"T
7248      fi
7249
7250      # Make sure that we snagged all the symbols we need.
7251      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7252	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7253	  cat <<_LT_EOF > conftest.$ac_ext
7254/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7255#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7256/* DATA imports from DLLs on WIN32 con't be const, because runtime
7257   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7258# define LT_DLSYM_CONST
7259#elif defined(__osf__)
7260/* This system does not cope well with relocations in const data.  */
7261# define LT_DLSYM_CONST
7262#else
7263# define LT_DLSYM_CONST const
7264#endif
7265
7266#ifdef __cplusplus
7267extern "C" {
7268#endif
7269
7270_LT_EOF
7271	  # Now generate the symbol file.
7272	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7273
7274	  cat <<_LT_EOF >> conftest.$ac_ext
7275
7276/* The mapping between symbol names and symbols.  */
7277LT_DLSYM_CONST struct {
7278  const char *name;
7279  void       *address;
7280}
7281lt__PROGRAM__LTX_preloaded_symbols[] =
7282{
7283  { "@PROGRAM@", (void *) 0 },
7284_LT_EOF
7285	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7286	  cat <<\_LT_EOF >> conftest.$ac_ext
7287  {0, (void *) 0}
7288};
7289
7290/* This works around a problem in FreeBSD linker */
7291#ifdef FREEBSD_WORKAROUND
7292static const void *lt_preloaded_setup() {
7293  return lt__PROGRAM__LTX_preloaded_symbols;
7294}
7295#endif
7296
7297#ifdef __cplusplus
7298}
7299#endif
7300_LT_EOF
7301	  # Now try linking the two files.
7302	  mv conftest.$ac_objext conftstm.$ac_objext
7303	  lt_globsym_save_LIBS=$LIBS
7304	  lt_globsym_save_CFLAGS=$CFLAGS
7305	  LIBS="conftstm.$ac_objext"
7306	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7307	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7308  (eval $ac_link) 2>&5
7309  ac_status=$?
7310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7312	    pipe_works=yes
7313	  fi
7314	  LIBS=$lt_globsym_save_LIBS
7315	  CFLAGS=$lt_globsym_save_CFLAGS
7316	else
7317	  echo "cannot find nm_test_func in $nlist" >&5
7318	fi
7319      else
7320	echo "cannot find nm_test_var in $nlist" >&5
7321      fi
7322    else
7323      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7324    fi
7325  else
7326    echo "$progname: failed program was:" >&5
7327    cat conftest.$ac_ext >&5
7328  fi
7329  rm -rf conftest* conftst*
7330
7331  # Do not use the global_symbol_pipe unless it works.
7332  if test "$pipe_works" = yes; then
7333    break
7334  else
7335    lt_cv_sys_global_symbol_pipe=
7336  fi
7337done
7338
7339fi
7340
7341if test -z "$lt_cv_sys_global_symbol_pipe"; then
7342  lt_cv_sys_global_symbol_to_cdecl=
7343fi
7344if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7346$as_echo "failed" >&6; }
7347else
7348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7349$as_echo "ok" >&6; }
7350fi
7351
7352# Response file support.
7353if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7354  nm_file_list_spec='@'
7355elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7356  nm_file_list_spec='@'
7357fi
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7386$as_echo_n "checking for sysroot... " >&6; }
7387
7388# Check whether --with-sysroot was given.
7389if test "${with_sysroot+set}" = set; then :
7390  withval=$with_sysroot;
7391else
7392  with_sysroot=no
7393fi
7394
7395
7396lt_sysroot=
7397case ${with_sysroot} in #(
7398 yes)
7399   if test "$GCC" = yes; then
7400     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7401   fi
7402   ;; #(
7403 /*)
7404   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7405   ;; #(
7406 no|'')
7407   ;; #(
7408 *)
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7410$as_echo "${with_sysroot}" >&6; }
7411   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7412   ;;
7413esac
7414
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7416$as_echo "${lt_sysroot:-no}" >&6; }
7417
7418
7419
7420
7421
7422# Check whether --enable-libtool-lock was given.
7423if test "${enable_libtool_lock+set}" = set; then :
7424  enableval=$enable_libtool_lock;
7425fi
7426
7427test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7428
7429# Some flags need to be propagated to the compiler or linker for good
7430# libtool support.
7431case $host in
7432ia64-*-hpux*)
7433  # Find out which ABI we are using.
7434  echo 'int i;' > conftest.$ac_ext
7435  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436  (eval $ac_compile) 2>&5
7437  ac_status=$?
7438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439  test $ac_status = 0; }; then
7440    case `/usr/bin/file conftest.$ac_objext` in
7441      *ELF-32*)
7442	HPUX_IA64_MODE="32"
7443	;;
7444      *ELF-64*)
7445	HPUX_IA64_MODE="64"
7446	;;
7447    esac
7448  fi
7449  rm -rf conftest*
7450  ;;
7451*-*-irix6*)
7452  # Find out which ABI we are using.
7453  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7454  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7455  (eval $ac_compile) 2>&5
7456  ac_status=$?
7457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458  test $ac_status = 0; }; then
7459    if test "$lt_cv_prog_gnu_ld" = yes; then
7460      case `/usr/bin/file conftest.$ac_objext` in
7461	*32-bit*)
7462	  LD="${LD-ld} -melf32bsmip"
7463	  ;;
7464	*N32*)
7465	  LD="${LD-ld} -melf32bmipn32"
7466	  ;;
7467	*64-bit*)
7468	  LD="${LD-ld} -melf64bmip"
7469	;;
7470      esac
7471    else
7472      case `/usr/bin/file conftest.$ac_objext` in
7473	*32-bit*)
7474	  LD="${LD-ld} -32"
7475	  ;;
7476	*N32*)
7477	  LD="${LD-ld} -n32"
7478	  ;;
7479	*64-bit*)
7480	  LD="${LD-ld} -64"
7481	  ;;
7482      esac
7483    fi
7484  fi
7485  rm -rf conftest*
7486  ;;
7487
7488x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7489s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7490  # Find out which ABI we are using.
7491  echo 'int i;' > conftest.$ac_ext
7492  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7493  (eval $ac_compile) 2>&5
7494  ac_status=$?
7495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496  test $ac_status = 0; }; then
7497    case `/usr/bin/file conftest.o` in
7498      *32-bit*)
7499	case $host in
7500	  x86_64-*kfreebsd*-gnu)
7501	    LD="${LD-ld} -m elf_i386_fbsd"
7502	    ;;
7503	  x86_64-*linux*)
7504	    LD="${LD-ld} -m elf_i386"
7505	    ;;
7506	  ppc64-*linux*|powerpc64-*linux*)
7507	    LD="${LD-ld} -m elf32ppclinux"
7508	    ;;
7509	  s390x-*linux*)
7510	    LD="${LD-ld} -m elf_s390"
7511	    ;;
7512	  sparc64-*linux*)
7513	    LD="${LD-ld} -m elf32_sparc"
7514	    ;;
7515	esac
7516	;;
7517      *64-bit*)
7518	case $host in
7519	  x86_64-*kfreebsd*-gnu)
7520	    LD="${LD-ld} -m elf_x86_64_fbsd"
7521	    ;;
7522	  x86_64-*linux*)
7523	    LD="${LD-ld} -m elf_x86_64"
7524	    ;;
7525	  ppc*-*linux*|powerpc*-*linux*)
7526	    LD="${LD-ld} -m elf64ppc"
7527	    ;;
7528	  s390*-*linux*|s390*-*tpf*)
7529	    LD="${LD-ld} -m elf64_s390"
7530	    ;;
7531	  sparc*-*linux*)
7532	    LD="${LD-ld} -m elf64_sparc"
7533	    ;;
7534	esac
7535	;;
7536    esac
7537  fi
7538  rm -rf conftest*
7539  ;;
7540
7541*-*-sco3.2v5*)
7542  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7543  SAVE_CFLAGS="$CFLAGS"
7544  CFLAGS="$CFLAGS -belf"
7545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7546$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7547if ${lt_cv_cc_needs_belf+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  ac_ext=c
7551ac_cpp='$CPP $CPPFLAGS'
7552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7554ac_compiler_gnu=$ac_cv_c_compiler_gnu
7555
7556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h.  */
7558
7559int
7560main ()
7561{
7562
7563  ;
7564  return 0;
7565}
7566_ACEOF
7567if ac_fn_c_try_link "$LINENO"; then :
7568  lt_cv_cc_needs_belf=yes
7569else
7570  lt_cv_cc_needs_belf=no
7571fi
7572rm -f core conftest.err conftest.$ac_objext \
7573    conftest$ac_exeext conftest.$ac_ext
7574     ac_ext=c
7575ac_cpp='$CPP $CPPFLAGS'
7576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578ac_compiler_gnu=$ac_cv_c_compiler_gnu
7579
7580fi
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7582$as_echo "$lt_cv_cc_needs_belf" >&6; }
7583  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7584    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7585    CFLAGS="$SAVE_CFLAGS"
7586  fi
7587  ;;
7588*-*solaris*)
7589  # Find out which ABI we are using.
7590  echo 'int i;' > conftest.$ac_ext
7591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7592  (eval $ac_compile) 2>&5
7593  ac_status=$?
7594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595  test $ac_status = 0; }; then
7596    case `/usr/bin/file conftest.o` in
7597    *64-bit*)
7598      case $lt_cv_prog_gnu_ld in
7599      yes*)
7600        case $host in
7601        i?86-*-solaris*)
7602          LD="${LD-ld} -m elf_x86_64"
7603          ;;
7604        sparc*-*-solaris*)
7605          LD="${LD-ld} -m elf64_sparc"
7606          ;;
7607        esac
7608        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7609        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7610          LD="${LD-ld}_sol2"
7611        fi
7612        ;;
7613      *)
7614	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7615	  LD="${LD-ld} -64"
7616	fi
7617	;;
7618      esac
7619      ;;
7620    esac
7621  fi
7622  rm -rf conftest*
7623  ;;
7624esac
7625
7626need_locks="$enable_libtool_lock"
7627
7628if test -n "$ac_tool_prefix"; then
7629  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7630set dummy ${ac_tool_prefix}mt; ac_word=$2
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
7633if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  if test -n "$MANIFEST_TOOL"; then
7637  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7638else
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642  IFS=$as_save_IFS
7643  test -z "$as_dir" && as_dir=.
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648    break 2
7649  fi
7650done
7651  done
7652IFS=$as_save_IFS
7653
7654fi
7655fi
7656MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7657if test -n "$MANIFEST_TOOL"; then
7658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7659$as_echo "$MANIFEST_TOOL" >&6; }
7660else
7661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
7663fi
7664
7665
7666fi
7667if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7668  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7669  # Extract the first word of "mt", so it can be a program name with args.
7670set dummy mt; ac_word=$2
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672$as_echo_n "checking for $ac_word... " >&6; }
7673if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7674  $as_echo_n "(cached) " >&6
7675else
7676  if test -n "$ac_ct_MANIFEST_TOOL"; then
7677  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7678else
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682  IFS=$as_save_IFS
7683  test -z "$as_dir" && as_dir=.
7684    for ac_exec_ext in '' $ac_executable_extensions; do
7685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688    break 2
7689  fi
7690done
7691  done
7692IFS=$as_save_IFS
7693
7694fi
7695fi
7696ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7697if test -n "$ac_ct_MANIFEST_TOOL"; then
7698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7699$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7700else
7701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702$as_echo "no" >&6; }
7703fi
7704
7705  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7706    MANIFEST_TOOL=":"
7707  else
7708    case $cross_compiling:$ac_tool_warned in
7709yes:)
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712ac_tool_warned=yes ;;
7713esac
7714    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7715  fi
7716else
7717  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7718fi
7719
7720test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7722$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7723if ${lt_cv_path_mainfest_tool+:} false; then :
7724  $as_echo_n "(cached) " >&6
7725else
7726  lt_cv_path_mainfest_tool=no
7727  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7728  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7729  cat conftest.err >&5
7730  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7731    lt_cv_path_mainfest_tool=yes
7732  fi
7733  rm -f conftest*
7734fi
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7736$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7737if test "x$lt_cv_path_mainfest_tool" != xyes; then
7738  MANIFEST_TOOL=:
7739fi
7740
7741
7742
7743
7744
7745
7746  case $host_os in
7747    rhapsody* | darwin*)
7748    if test -n "$ac_tool_prefix"; then
7749  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7750set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752$as_echo_n "checking for $ac_word... " >&6; }
7753if ${ac_cv_prog_DSYMUTIL+:} false; then :
7754  $as_echo_n "(cached) " >&6
7755else
7756  if test -n "$DSYMUTIL"; then
7757  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762  IFS=$as_save_IFS
7763  test -z "$as_dir" && as_dir=.
7764    for ac_exec_ext in '' $ac_executable_extensions; do
7765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768    break 2
7769  fi
7770done
7771  done
7772IFS=$as_save_IFS
7773
7774fi
7775fi
7776DSYMUTIL=$ac_cv_prog_DSYMUTIL
7777if test -n "$DSYMUTIL"; then
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7779$as_echo "$DSYMUTIL" >&6; }
7780else
7781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
7783fi
7784
7785
7786fi
7787if test -z "$ac_cv_prog_DSYMUTIL"; then
7788  ac_ct_DSYMUTIL=$DSYMUTIL
7789  # Extract the first word of "dsymutil", so it can be a program name with args.
7790set dummy dsymutil; ac_word=$2
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
7793if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7794  $as_echo_n "(cached) " >&6
7795else
7796  if test -n "$ac_ct_DSYMUTIL"; then
7797  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802  IFS=$as_save_IFS
7803  test -z "$as_dir" && as_dir=.
7804    for ac_exec_ext in '' $ac_executable_extensions; do
7805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808    break 2
7809  fi
7810done
7811  done
7812IFS=$as_save_IFS
7813
7814fi
7815fi
7816ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7817if test -n "$ac_ct_DSYMUTIL"; then
7818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7819$as_echo "$ac_ct_DSYMUTIL" >&6; }
7820else
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824
7825  if test "x$ac_ct_DSYMUTIL" = x; then
7826    DSYMUTIL=":"
7827  else
7828    case $cross_compiling:$ac_tool_warned in
7829yes:)
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832ac_tool_warned=yes ;;
7833esac
7834    DSYMUTIL=$ac_ct_DSYMUTIL
7835  fi
7836else
7837  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7838fi
7839
7840    if test -n "$ac_tool_prefix"; then
7841  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7842set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if ${ac_cv_prog_NMEDIT+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  if test -n "$NMEDIT"; then
7849  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854  IFS=$as_save_IFS
7855  test -z "$as_dir" && as_dir=.
7856    for ac_exec_ext in '' $ac_executable_extensions; do
7857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860    break 2
7861  fi
7862done
7863  done
7864IFS=$as_save_IFS
7865
7866fi
7867fi
7868NMEDIT=$ac_cv_prog_NMEDIT
7869if test -n "$NMEDIT"; then
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7871$as_echo "$NMEDIT" >&6; }
7872else
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877
7878fi
7879if test -z "$ac_cv_prog_NMEDIT"; then
7880  ac_ct_NMEDIT=$NMEDIT
7881  # Extract the first word of "nmedit", so it can be a program name with args.
7882set dummy nmedit; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  if test -n "$ac_ct_NMEDIT"; then
7889  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  test -z "$as_dir" && as_dir=.
7896    for ac_exec_ext in '' $ac_executable_extensions; do
7897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900    break 2
7901  fi
7902done
7903  done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7909if test -n "$ac_ct_NMEDIT"; then
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7911$as_echo "$ac_ct_NMEDIT" >&6; }
7912else
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917  if test "x$ac_ct_NMEDIT" = x; then
7918    NMEDIT=":"
7919  else
7920    case $cross_compiling:$ac_tool_warned in
7921yes:)
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924ac_tool_warned=yes ;;
7925esac
7926    NMEDIT=$ac_ct_NMEDIT
7927  fi
7928else
7929  NMEDIT="$ac_cv_prog_NMEDIT"
7930fi
7931
7932    if test -n "$ac_tool_prefix"; then
7933  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7934set dummy ${ac_tool_prefix}lipo; ac_word=$2
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936$as_echo_n "checking for $ac_word... " >&6; }
7937if ${ac_cv_prog_LIPO+:} false; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  if test -n "$LIPO"; then
7941  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946  IFS=$as_save_IFS
7947  test -z "$as_dir" && as_dir=.
7948    for ac_exec_ext in '' $ac_executable_extensions; do
7949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952    break 2
7953  fi
7954done
7955  done
7956IFS=$as_save_IFS
7957
7958fi
7959fi
7960LIPO=$ac_cv_prog_LIPO
7961if test -n "$LIPO"; then
7962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7963$as_echo "$LIPO" >&6; }
7964else
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
7967fi
7968
7969
7970fi
7971if test -z "$ac_cv_prog_LIPO"; then
7972  ac_ct_LIPO=$LIPO
7973  # Extract the first word of "lipo", so it can be a program name with args.
7974set dummy lipo; ac_word=$2
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  if test -n "$ac_ct_LIPO"; then
7981  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986  IFS=$as_save_IFS
7987  test -z "$as_dir" && as_dir=.
7988    for ac_exec_ext in '' $ac_executable_extensions; do
7989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990    ac_cv_prog_ac_ct_LIPO="lipo"
7991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992    break 2
7993  fi
7994done
7995  done
7996IFS=$as_save_IFS
7997
7998fi
7999fi
8000ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8001if test -n "$ac_ct_LIPO"; then
8002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8003$as_echo "$ac_ct_LIPO" >&6; }
8004else
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009  if test "x$ac_ct_LIPO" = x; then
8010    LIPO=":"
8011  else
8012    case $cross_compiling:$ac_tool_warned in
8013yes:)
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8016ac_tool_warned=yes ;;
8017esac
8018    LIPO=$ac_ct_LIPO
8019  fi
8020else
8021  LIPO="$ac_cv_prog_LIPO"
8022fi
8023
8024    if test -n "$ac_tool_prefix"; then
8025  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8026set dummy ${ac_tool_prefix}otool; ac_word=$2
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028$as_echo_n "checking for $ac_word... " >&6; }
8029if ${ac_cv_prog_OTOOL+:} false; then :
8030  $as_echo_n "(cached) " >&6
8031else
8032  if test -n "$OTOOL"; then
8033  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8034else
8035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036for as_dir in $PATH
8037do
8038  IFS=$as_save_IFS
8039  test -z "$as_dir" && as_dir=.
8040    for ac_exec_ext in '' $ac_executable_extensions; do
8041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044    break 2
8045  fi
8046done
8047  done
8048IFS=$as_save_IFS
8049
8050fi
8051fi
8052OTOOL=$ac_cv_prog_OTOOL
8053if test -n "$OTOOL"; then
8054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8055$as_echo "$OTOOL" >&6; }
8056else
8057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058$as_echo "no" >&6; }
8059fi
8060
8061
8062fi
8063if test -z "$ac_cv_prog_OTOOL"; then
8064  ac_ct_OTOOL=$OTOOL
8065  # Extract the first word of "otool", so it can be a program name with args.
8066set dummy otool; ac_word=$2
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068$as_echo_n "checking for $ac_word... " >&6; }
8069if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  if test -n "$ac_ct_OTOOL"; then
8073  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8074else
8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078  IFS=$as_save_IFS
8079  test -z "$as_dir" && as_dir=.
8080    for ac_exec_ext in '' $ac_executable_extensions; do
8081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082    ac_cv_prog_ac_ct_OTOOL="otool"
8083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084    break 2
8085  fi
8086done
8087  done
8088IFS=$as_save_IFS
8089
8090fi
8091fi
8092ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8093if test -n "$ac_ct_OTOOL"; then
8094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8095$as_echo "$ac_ct_OTOOL" >&6; }
8096else
8097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098$as_echo "no" >&6; }
8099fi
8100
8101  if test "x$ac_ct_OTOOL" = x; then
8102    OTOOL=":"
8103  else
8104    case $cross_compiling:$ac_tool_warned in
8105yes:)
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108ac_tool_warned=yes ;;
8109esac
8110    OTOOL=$ac_ct_OTOOL
8111  fi
8112else
8113  OTOOL="$ac_cv_prog_OTOOL"
8114fi
8115
8116    if test -n "$ac_tool_prefix"; then
8117  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8118set dummy ${ac_tool_prefix}otool64; ac_word=$2
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120$as_echo_n "checking for $ac_word... " >&6; }
8121if ${ac_cv_prog_OTOOL64+:} false; then :
8122  $as_echo_n "(cached) " >&6
8123else
8124  if test -n "$OTOOL64"; then
8125  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8126else
8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128for as_dir in $PATH
8129do
8130  IFS=$as_save_IFS
8131  test -z "$as_dir" && as_dir=.
8132    for ac_exec_ext in '' $ac_executable_extensions; do
8133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136    break 2
8137  fi
8138done
8139  done
8140IFS=$as_save_IFS
8141
8142fi
8143fi
8144OTOOL64=$ac_cv_prog_OTOOL64
8145if test -n "$OTOOL64"; then
8146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8147$as_echo "$OTOOL64" >&6; }
8148else
8149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150$as_echo "no" >&6; }
8151fi
8152
8153
8154fi
8155if test -z "$ac_cv_prog_OTOOL64"; then
8156  ac_ct_OTOOL64=$OTOOL64
8157  # Extract the first word of "otool64", so it can be a program name with args.
8158set dummy otool64; ac_word=$2
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160$as_echo_n "checking for $ac_word... " >&6; }
8161if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8162  $as_echo_n "(cached) " >&6
8163else
8164  if test -n "$ac_ct_OTOOL64"; then
8165  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8166else
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170  IFS=$as_save_IFS
8171  test -z "$as_dir" && as_dir=.
8172    for ac_exec_ext in '' $ac_executable_extensions; do
8173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174    ac_cv_prog_ac_ct_OTOOL64="otool64"
8175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176    break 2
8177  fi
8178done
8179  done
8180IFS=$as_save_IFS
8181
8182fi
8183fi
8184ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8185if test -n "$ac_ct_OTOOL64"; then
8186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8187$as_echo "$ac_ct_OTOOL64" >&6; }
8188else
8189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190$as_echo "no" >&6; }
8191fi
8192
8193  if test "x$ac_ct_OTOOL64" = x; then
8194    OTOOL64=":"
8195  else
8196    case $cross_compiling:$ac_tool_warned in
8197yes:)
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8200ac_tool_warned=yes ;;
8201esac
8202    OTOOL64=$ac_ct_OTOOL64
8203  fi
8204else
8205  OTOOL64="$ac_cv_prog_OTOOL64"
8206fi
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8235$as_echo_n "checking for -single_module linker flag... " >&6; }
8236if ${lt_cv_apple_cc_single_mod+:} false; then :
8237  $as_echo_n "(cached) " >&6
8238else
8239  lt_cv_apple_cc_single_mod=no
8240      if test -z "${LT_MULTI_MODULE}"; then
8241	# By default we will add the -single_module flag. You can override
8242	# by either setting the environment variable LT_MULTI_MODULE
8243	# non-empty at configure time, or by adding -multi_module to the
8244	# link flags.
8245	rm -rf libconftest.dylib*
8246	echo "int foo(void){return 1;}" > conftest.c
8247	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8248-dynamiclib -Wl,-single_module conftest.c" >&5
8249	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8250	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8251        _lt_result=$?
8252	# If there is a non-empty error log, and "single_module"
8253	# appears in it, assume the flag caused a linker warning
8254        if test -s conftest.err && $GREP single_module conftest.err; then
8255	  cat conftest.err >&5
8256	# Otherwise, if the output was created with a 0 exit code from
8257	# the compiler, it worked.
8258	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8259	  lt_cv_apple_cc_single_mod=yes
8260	else
8261	  cat conftest.err >&5
8262	fi
8263	rm -rf libconftest.dylib*
8264	rm -f conftest.*
8265      fi
8266fi
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8268$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8269
8270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8271$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8272if ${lt_cv_ld_exported_symbols_list+:} false; then :
8273  $as_echo_n "(cached) " >&6
8274else
8275  lt_cv_ld_exported_symbols_list=no
8276      save_LDFLAGS=$LDFLAGS
8277      echo "_main" > conftest.sym
8278      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8279      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281
8282int
8283main ()
8284{
8285
8286  ;
8287  return 0;
8288}
8289_ACEOF
8290if ac_fn_c_try_link "$LINENO"; then :
8291  lt_cv_ld_exported_symbols_list=yes
8292else
8293  lt_cv_ld_exported_symbols_list=no
8294fi
8295rm -f core conftest.err conftest.$ac_objext \
8296    conftest$ac_exeext conftest.$ac_ext
8297	LDFLAGS="$save_LDFLAGS"
8298
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8301$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8302
8303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8304$as_echo_n "checking for -force_load linker flag... " >&6; }
8305if ${lt_cv_ld_force_load+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  lt_cv_ld_force_load=no
8309      cat > conftest.c << _LT_EOF
8310int forced_loaded() { return 2;}
8311_LT_EOF
8312      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8313      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8314      echo "$AR cru libconftest.a conftest.o" >&5
8315      $AR cru libconftest.a conftest.o 2>&5
8316      echo "$RANLIB libconftest.a" >&5
8317      $RANLIB libconftest.a 2>&5
8318      cat > conftest.c << _LT_EOF
8319int main() { return 0;}
8320_LT_EOF
8321      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8322      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8323      _lt_result=$?
8324      if test -s conftest.err && $GREP force_load conftest.err; then
8325	cat conftest.err >&5
8326      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8327	lt_cv_ld_force_load=yes
8328      else
8329	cat conftest.err >&5
8330      fi
8331        rm -f conftest.err libconftest.a conftest conftest.c
8332        rm -rf conftest.dSYM
8333
8334fi
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8336$as_echo "$lt_cv_ld_force_load" >&6; }
8337    case $host_os in
8338    rhapsody* | darwin1.[012])
8339      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8340    darwin1.*)
8341      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8342    darwin*) # darwin 5.x on
8343      # if running on 10.5 or later, the deployment target defaults
8344      # to the OS version, if on x86, and 10.4, the deployment
8345      # target defaults to 10.4. Don't you love it?
8346      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8347	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8348	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8349	10.[012]*)
8350	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8351	10.*)
8352	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8353      esac
8354    ;;
8355  esac
8356    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8357      _lt_dar_single_mod='$single_module'
8358    fi
8359    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8360      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8361    else
8362      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8363    fi
8364    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8365      _lt_dsymutil='~$DSYMUTIL $lib || :'
8366    else
8367      _lt_dsymutil=
8368    fi
8369    ;;
8370  esac
8371
8372for ac_header in dlfcn.h
8373do :
8374  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8375"
8376if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8377  cat >>confdefs.h <<_ACEOF
8378#define HAVE_DLFCN_H 1
8379_ACEOF
8380
8381fi
8382
8383done
8384
8385
8386
8387
8388
8389# Set options
8390
8391
8392
8393        enable_dlopen=no
8394
8395
8396  enable_win32_dll=no
8397
8398
8399            # Check whether --enable-shared was given.
8400if test "${enable_shared+set}" = set; then :
8401  enableval=$enable_shared; p=${PACKAGE-default}
8402    case $enableval in
8403    yes) enable_shared=yes ;;
8404    no) enable_shared=no ;;
8405    *)
8406      enable_shared=no
8407      # Look at the argument we got.  We use all the common list separators.
8408      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8409      for pkg in $enableval; do
8410	IFS="$lt_save_ifs"
8411	if test "X$pkg" = "X$p"; then
8412	  enable_shared=yes
8413	fi
8414      done
8415      IFS="$lt_save_ifs"
8416      ;;
8417    esac
8418else
8419  enable_shared=yes
8420fi
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430  # Check whether --enable-static was given.
8431if test "${enable_static+set}" = set; then :
8432  enableval=$enable_static; p=${PACKAGE-default}
8433    case $enableval in
8434    yes) enable_static=yes ;;
8435    no) enable_static=no ;;
8436    *)
8437     enable_static=no
8438      # Look at the argument we got.  We use all the common list separators.
8439      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8440      for pkg in $enableval; do
8441	IFS="$lt_save_ifs"
8442	if test "X$pkg" = "X$p"; then
8443	  enable_static=yes
8444	fi
8445      done
8446      IFS="$lt_save_ifs"
8447      ;;
8448    esac
8449else
8450  enable_static=yes
8451fi
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462# Check whether --with-pic was given.
8463if test "${with_pic+set}" = set; then :
8464  withval=$with_pic; lt_p=${PACKAGE-default}
8465    case $withval in
8466    yes|no) pic_mode=$withval ;;
8467    *)
8468      pic_mode=default
8469      # Look at the argument we got.  We use all the common list separators.
8470      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8471      for lt_pkg in $withval; do
8472	IFS="$lt_save_ifs"
8473	if test "X$lt_pkg" = "X$lt_p"; then
8474	  pic_mode=yes
8475	fi
8476      done
8477      IFS="$lt_save_ifs"
8478      ;;
8479    esac
8480else
8481  pic_mode=default
8482fi
8483
8484
8485test -z "$pic_mode" && pic_mode=default
8486
8487
8488
8489
8490
8491
8492
8493  # Check whether --enable-fast-install was given.
8494if test "${enable_fast_install+set}" = set; then :
8495  enableval=$enable_fast_install; p=${PACKAGE-default}
8496    case $enableval in
8497    yes) enable_fast_install=yes ;;
8498    no) enable_fast_install=no ;;
8499    *)
8500      enable_fast_install=no
8501      # Look at the argument we got.  We use all the common list separators.
8502      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8503      for pkg in $enableval; do
8504	IFS="$lt_save_ifs"
8505	if test "X$pkg" = "X$p"; then
8506	  enable_fast_install=yes
8507	fi
8508      done
8509      IFS="$lt_save_ifs"
8510      ;;
8511    esac
8512else
8513  enable_fast_install=yes
8514fi
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526# This can be used to rebuild libtool when needed
8527LIBTOOL_DEPS="$ltmain"
8528
8529# Always use our own libtool.
8530LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561test -z "$LN_S" && LN_S="ln -s"
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576if test -n "${ZSH_VERSION+set}" ; then
8577   setopt NO_GLOB_SUBST
8578fi
8579
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8581$as_echo_n "checking for objdir... " >&6; }
8582if ${lt_cv_objdir+:} false; then :
8583  $as_echo_n "(cached) " >&6
8584else
8585  rm -f .libs 2>/dev/null
8586mkdir .libs 2>/dev/null
8587if test -d .libs; then
8588  lt_cv_objdir=.libs
8589else
8590  # MS-DOS does not allow filenames that begin with a dot.
8591  lt_cv_objdir=_libs
8592fi
8593rmdir .libs 2>/dev/null
8594fi
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8596$as_echo "$lt_cv_objdir" >&6; }
8597objdir=$lt_cv_objdir
8598
8599
8600
8601
8602
8603cat >>confdefs.h <<_ACEOF
8604#define LT_OBJDIR "$lt_cv_objdir/"
8605_ACEOF
8606
8607
8608
8609
8610case $host_os in
8611aix3*)
8612  # AIX sometimes has problems with the GCC collect2 program.  For some
8613  # reason, if we set the COLLECT_NAMES environment variable, the problems
8614  # vanish in a puff of smoke.
8615  if test "X${COLLECT_NAMES+set}" != Xset; then
8616    COLLECT_NAMES=
8617    export COLLECT_NAMES
8618  fi
8619  ;;
8620esac
8621
8622# Global variables:
8623ofile=libtool
8624can_build_shared=yes
8625
8626# All known linkers require a `.a' archive for static linking (except MSVC,
8627# which needs '.lib').
8628libext=a
8629
8630with_gnu_ld="$lt_cv_prog_gnu_ld"
8631
8632old_CC="$CC"
8633old_CFLAGS="$CFLAGS"
8634
8635# Set sane defaults for various variables
8636test -z "$CC" && CC=cc
8637test -z "$LTCC" && LTCC=$CC
8638test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8639test -z "$LD" && LD=ld
8640test -z "$ac_objext" && ac_objext=o
8641
8642for cc_temp in $compiler""; do
8643  case $cc_temp in
8644    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8645    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8646    \-*) ;;
8647    *) break;;
8648  esac
8649done
8650cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8651
8652
8653# Only perform the check for file, if the check method requires it
8654test -z "$MAGIC_CMD" && MAGIC_CMD=file
8655case $deplibs_check_method in
8656file_magic*)
8657  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8659$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8660if ${lt_cv_path_MAGIC_CMD+:} false; then :
8661  $as_echo_n "(cached) " >&6
8662else
8663  case $MAGIC_CMD in
8664[\\/*] |  ?:[\\/]*)
8665  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8666  ;;
8667*)
8668  lt_save_MAGIC_CMD="$MAGIC_CMD"
8669  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8670  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8671  for ac_dir in $ac_dummy; do
8672    IFS="$lt_save_ifs"
8673    test -z "$ac_dir" && ac_dir=.
8674    if test -f $ac_dir/${ac_tool_prefix}file; then
8675      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8676      if test -n "$file_magic_test_file"; then
8677	case $deplibs_check_method in
8678	"file_magic "*)
8679	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8680	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8681	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8682	    $EGREP "$file_magic_regex" > /dev/null; then
8683	    :
8684	  else
8685	    cat <<_LT_EOF 1>&2
8686
8687*** Warning: the command libtool uses to detect shared libraries,
8688*** $file_magic_cmd, produces output that libtool cannot recognize.
8689*** The result is that libtool may fail to recognize shared libraries
8690*** as such.  This will affect the creation of libtool libraries that
8691*** depend on shared libraries, but programs linked with such libtool
8692*** libraries will work regardless of this problem.  Nevertheless, you
8693*** may want to report the problem to your system manager and/or to
8694*** bug-libtool@gnu.org
8695
8696_LT_EOF
8697	  fi ;;
8698	esac
8699      fi
8700      break
8701    fi
8702  done
8703  IFS="$lt_save_ifs"
8704  MAGIC_CMD="$lt_save_MAGIC_CMD"
8705  ;;
8706esac
8707fi
8708
8709MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8710if test -n "$MAGIC_CMD"; then
8711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8712$as_echo "$MAGIC_CMD" >&6; }
8713else
8714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715$as_echo "no" >&6; }
8716fi
8717
8718
8719
8720
8721
8722if test -z "$lt_cv_path_MAGIC_CMD"; then
8723  if test -n "$ac_tool_prefix"; then
8724    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8725$as_echo_n "checking for file... " >&6; }
8726if ${lt_cv_path_MAGIC_CMD+:} false; then :
8727  $as_echo_n "(cached) " >&6
8728else
8729  case $MAGIC_CMD in
8730[\\/*] |  ?:[\\/]*)
8731  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8732  ;;
8733*)
8734  lt_save_MAGIC_CMD="$MAGIC_CMD"
8735  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8736  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8737  for ac_dir in $ac_dummy; do
8738    IFS="$lt_save_ifs"
8739    test -z "$ac_dir" && ac_dir=.
8740    if test -f $ac_dir/file; then
8741      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8742      if test -n "$file_magic_test_file"; then
8743	case $deplibs_check_method in
8744	"file_magic "*)
8745	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8746	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8747	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8748	    $EGREP "$file_magic_regex" > /dev/null; then
8749	    :
8750	  else
8751	    cat <<_LT_EOF 1>&2
8752
8753*** Warning: the command libtool uses to detect shared libraries,
8754*** $file_magic_cmd, produces output that libtool cannot recognize.
8755*** The result is that libtool may fail to recognize shared libraries
8756*** as such.  This will affect the creation of libtool libraries that
8757*** depend on shared libraries, but programs linked with such libtool
8758*** libraries will work regardless of this problem.  Nevertheless, you
8759*** may want to report the problem to your system manager and/or to
8760*** bug-libtool@gnu.org
8761
8762_LT_EOF
8763	  fi ;;
8764	esac
8765      fi
8766      break
8767    fi
8768  done
8769  IFS="$lt_save_ifs"
8770  MAGIC_CMD="$lt_save_MAGIC_CMD"
8771  ;;
8772esac
8773fi
8774
8775MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8776if test -n "$MAGIC_CMD"; then
8777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8778$as_echo "$MAGIC_CMD" >&6; }
8779else
8780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781$as_echo "no" >&6; }
8782fi
8783
8784
8785  else
8786    MAGIC_CMD=:
8787  fi
8788fi
8789
8790  fi
8791  ;;
8792esac
8793
8794# Use C for the default configuration in the libtool script
8795
8796lt_save_CC="$CC"
8797ac_ext=c
8798ac_cpp='$CPP $CPPFLAGS'
8799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8801ac_compiler_gnu=$ac_cv_c_compiler_gnu
8802
8803
8804# Source file extension for C test sources.
8805ac_ext=c
8806
8807# Object file extension for compiled C test sources.
8808objext=o
8809objext=$objext
8810
8811# Code to be used in simple compile tests
8812lt_simple_compile_test_code="int some_variable = 0;"
8813
8814# Code to be used in simple link tests
8815lt_simple_link_test_code='int main(){return(0);}'
8816
8817
8818
8819
8820
8821
8822
8823# If no C compiler was specified, use CC.
8824LTCC=${LTCC-"$CC"}
8825
8826# If no C compiler flags were specified, use CFLAGS.
8827LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8828
8829# Allow CC to be a program name with arguments.
8830compiler=$CC
8831
8832# Save the default compiler, since it gets overwritten when the other
8833# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8834compiler_DEFAULT=$CC
8835
8836# save warnings/boilerplate of simple test code
8837ac_outfile=conftest.$ac_objext
8838echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8839eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8840_lt_compiler_boilerplate=`cat conftest.err`
8841$RM conftest*
8842
8843ac_outfile=conftest.$ac_objext
8844echo "$lt_simple_link_test_code" >conftest.$ac_ext
8845eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8846_lt_linker_boilerplate=`cat conftest.err`
8847$RM -r conftest*
8848
8849
8850## CAVEAT EMPTOR:
8851## There is no encapsulation within the following macros, do not change
8852## the running order or otherwise move them around unless you know exactly
8853## what you are doing...
8854if test -n "$compiler"; then
8855
8856lt_prog_compiler_no_builtin_flag=
8857
8858if test "$GCC" = yes; then
8859  case $cc_basename in
8860  nvcc*)
8861    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8862  *)
8863    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8864  esac
8865
8866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8867$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8868if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  lt_cv_prog_compiler_rtti_exceptions=no
8872   ac_outfile=conftest.$ac_objext
8873   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8874   lt_compiler_flag="-fno-rtti -fno-exceptions"
8875   # Insert the option either (1) after the last *FLAGS variable, or
8876   # (2) before a word containing "conftest.", or (3) at the end.
8877   # Note that $ac_compile itself does not contain backslashes and begins
8878   # with a dollar sign (not a hyphen), so the echo should work correctly.
8879   # The option is referenced via a variable to avoid confusing sed.
8880   lt_compile=`echo "$ac_compile" | $SED \
8881   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8882   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8883   -e 's:$: $lt_compiler_flag:'`
8884   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8885   (eval "$lt_compile" 2>conftest.err)
8886   ac_status=$?
8887   cat conftest.err >&5
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   if (exit $ac_status) && test -s "$ac_outfile"; then
8890     # The compiler can only warn and ignore the option if not recognized
8891     # So say no if there are warnings other than the usual output.
8892     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8893     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8894     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8895       lt_cv_prog_compiler_rtti_exceptions=yes
8896     fi
8897   fi
8898   $RM conftest*
8899
8900fi
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8902$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8903
8904if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8905    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8906else
8907    :
8908fi
8909
8910fi
8911
8912
8913
8914
8915
8916
8917  lt_prog_compiler_wl=
8918lt_prog_compiler_pic=
8919lt_prog_compiler_static=
8920
8921
8922  if test "$GCC" = yes; then
8923    lt_prog_compiler_wl='-Wl,'
8924    lt_prog_compiler_static='-static'
8925
8926    case $host_os in
8927      aix*)
8928      # All AIX code is PIC.
8929      if test "$host_cpu" = ia64; then
8930	# AIX 5 now supports IA64 processor
8931	lt_prog_compiler_static='-Bstatic'
8932      fi
8933      ;;
8934
8935    amigaos*)
8936      case $host_cpu in
8937      powerpc)
8938            # see comment about AmigaOS4 .so support
8939            lt_prog_compiler_pic='-fPIC'
8940        ;;
8941      m68k)
8942            # FIXME: we need at least 68020 code to build shared libraries, but
8943            # adding the `-m68020' flag to GCC prevents building anything better,
8944            # like `-m68040'.
8945            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8946        ;;
8947      esac
8948      ;;
8949
8950    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8951      # PIC is the default for these OSes.
8952      ;;
8953
8954    mingw* | cygwin* | pw32* | os2* | cegcc*)
8955      # This hack is so that the source file can tell whether it is being
8956      # built for inclusion in a dll (and should export symbols for example).
8957      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8958      # (--disable-auto-import) libraries
8959      lt_prog_compiler_pic='-DDLL_EXPORT'
8960      ;;
8961
8962    darwin* | rhapsody*)
8963      # PIC is the default on this platform
8964      # Common symbols not allowed in MH_DYLIB files
8965      lt_prog_compiler_pic='-fno-common'
8966      ;;
8967
8968    haiku*)
8969      # PIC is the default for Haiku.
8970      # The "-static" flag exists, but is broken.
8971      lt_prog_compiler_static=
8972      ;;
8973
8974    hpux*)
8975      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8976      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8977      # sets the default TLS model and affects inlining.
8978      case $host_cpu in
8979      hppa*64*)
8980	# +Z the default
8981	;;
8982      *)
8983	lt_prog_compiler_pic='-fPIC'
8984	;;
8985      esac
8986      ;;
8987
8988    interix[3-9]*)
8989      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8990      # Instead, we relocate shared libraries at runtime.
8991      ;;
8992
8993    msdosdjgpp*)
8994      # Just because we use GCC doesn't mean we suddenly get shared libraries
8995      # on systems that don't support them.
8996      lt_prog_compiler_can_build_shared=no
8997      enable_shared=no
8998      ;;
8999
9000    *nto* | *qnx*)
9001      # QNX uses GNU C++, but need to define -shared option too, otherwise
9002      # it will coredump.
9003      lt_prog_compiler_pic='-fPIC -shared'
9004      ;;
9005
9006    sysv4*MP*)
9007      if test -d /usr/nec; then
9008	lt_prog_compiler_pic=-Kconform_pic
9009      fi
9010      ;;
9011
9012    *)
9013      lt_prog_compiler_pic='-fPIC'
9014      ;;
9015    esac
9016
9017    case $cc_basename in
9018    nvcc*) # Cuda Compiler Driver 2.2
9019      lt_prog_compiler_wl='-Xlinker '
9020      if test -n "$lt_prog_compiler_pic"; then
9021        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9022      fi
9023      ;;
9024    esac
9025  else
9026    # PORTME Check for flag to pass linker flags through the system compiler.
9027    case $host_os in
9028    aix*)
9029      lt_prog_compiler_wl='-Wl,'
9030      if test "$host_cpu" = ia64; then
9031	# AIX 5 now supports IA64 processor
9032	lt_prog_compiler_static='-Bstatic'
9033      else
9034	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9035      fi
9036      ;;
9037
9038    mingw* | cygwin* | pw32* | os2* | cegcc*)
9039      # This hack is so that the source file can tell whether it is being
9040      # built for inclusion in a dll (and should export symbols for example).
9041      lt_prog_compiler_pic='-DDLL_EXPORT'
9042      ;;
9043
9044    hpux9* | hpux10* | hpux11*)
9045      lt_prog_compiler_wl='-Wl,'
9046      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9047      # not for PA HP-UX.
9048      case $host_cpu in
9049      hppa*64*|ia64*)
9050	# +Z the default
9051	;;
9052      *)
9053	lt_prog_compiler_pic='+Z'
9054	;;
9055      esac
9056      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9057      lt_prog_compiler_static='${wl}-a ${wl}archive'
9058      ;;
9059
9060    irix5* | irix6* | nonstopux*)
9061      lt_prog_compiler_wl='-Wl,'
9062      # PIC (with -KPIC) is the default.
9063      lt_prog_compiler_static='-non_shared'
9064      ;;
9065
9066    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9067      case $cc_basename in
9068      # old Intel for x86_64 which still supported -KPIC.
9069      ecc*)
9070	lt_prog_compiler_wl='-Wl,'
9071	lt_prog_compiler_pic='-KPIC'
9072	lt_prog_compiler_static='-static'
9073        ;;
9074      # icc used to be incompatible with GCC.
9075      # ICC 10 doesn't accept -KPIC any more.
9076      icc* | ifort*)
9077	lt_prog_compiler_wl='-Wl,'
9078	lt_prog_compiler_pic='-fPIC'
9079	lt_prog_compiler_static='-static'
9080        ;;
9081      # Lahey Fortran 8.1.
9082      lf95*)
9083	lt_prog_compiler_wl='-Wl,'
9084	lt_prog_compiler_pic='--shared'
9085	lt_prog_compiler_static='--static'
9086	;;
9087      nagfor*)
9088	# NAG Fortran compiler
9089	lt_prog_compiler_wl='-Wl,-Wl,,'
9090	lt_prog_compiler_pic='-PIC'
9091	lt_prog_compiler_static='-Bstatic'
9092	;;
9093      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9094        # Portland Group compilers (*not* the Pentium gcc compiler,
9095	# which looks to be a dead project)
9096	lt_prog_compiler_wl='-Wl,'
9097	lt_prog_compiler_pic='-fpic'
9098	lt_prog_compiler_static='-Bstatic'
9099        ;;
9100      ccc*)
9101        lt_prog_compiler_wl='-Wl,'
9102        # All Alpha code is PIC.
9103        lt_prog_compiler_static='-non_shared'
9104        ;;
9105      xl* | bgxl* | bgf* | mpixl*)
9106	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9107	lt_prog_compiler_wl='-Wl,'
9108	lt_prog_compiler_pic='-qpic'
9109	lt_prog_compiler_static='-qstaticlink'
9110	;;
9111      *)
9112	case `$CC -V 2>&1 | sed 5q` in
9113	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9114	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9115	  lt_prog_compiler_pic='-KPIC'
9116	  lt_prog_compiler_static='-Bstatic'
9117	  lt_prog_compiler_wl=''
9118	  ;;
9119	*Sun\ F* | *Sun*Fortran*)
9120	  lt_prog_compiler_pic='-KPIC'
9121	  lt_prog_compiler_static='-Bstatic'
9122	  lt_prog_compiler_wl='-Qoption ld '
9123	  ;;
9124	*Sun\ C*)
9125	  # Sun C 5.9
9126	  lt_prog_compiler_pic='-KPIC'
9127	  lt_prog_compiler_static='-Bstatic'
9128	  lt_prog_compiler_wl='-Wl,'
9129	  ;;
9130        *Intel*\ [CF]*Compiler*)
9131	  lt_prog_compiler_wl='-Wl,'
9132	  lt_prog_compiler_pic='-fPIC'
9133	  lt_prog_compiler_static='-static'
9134	  ;;
9135	*Portland\ Group*)
9136	  lt_prog_compiler_wl='-Wl,'
9137	  lt_prog_compiler_pic='-fpic'
9138	  lt_prog_compiler_static='-Bstatic'
9139	  ;;
9140	esac
9141	;;
9142      esac
9143      ;;
9144
9145    newsos6)
9146      lt_prog_compiler_pic='-KPIC'
9147      lt_prog_compiler_static='-Bstatic'
9148      ;;
9149
9150    *nto* | *qnx*)
9151      # QNX uses GNU C++, but need to define -shared option too, otherwise
9152      # it will coredump.
9153      lt_prog_compiler_pic='-fPIC -shared'
9154      ;;
9155
9156    osf3* | osf4* | osf5*)
9157      lt_prog_compiler_wl='-Wl,'
9158      # All OSF/1 code is PIC.
9159      lt_prog_compiler_static='-non_shared'
9160      ;;
9161
9162    rdos*)
9163      lt_prog_compiler_static='-non_shared'
9164      ;;
9165
9166    solaris*)
9167      lt_prog_compiler_pic='-KPIC'
9168      lt_prog_compiler_static='-Bstatic'
9169      case $cc_basename in
9170      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9171	lt_prog_compiler_wl='-Qoption ld ';;
9172      *)
9173	lt_prog_compiler_wl='-Wl,';;
9174      esac
9175      ;;
9176
9177    sunos4*)
9178      lt_prog_compiler_wl='-Qoption ld '
9179      lt_prog_compiler_pic='-PIC'
9180      lt_prog_compiler_static='-Bstatic'
9181      ;;
9182
9183    sysv4 | sysv4.2uw2* | sysv4.3*)
9184      lt_prog_compiler_wl='-Wl,'
9185      lt_prog_compiler_pic='-KPIC'
9186      lt_prog_compiler_static='-Bstatic'
9187      ;;
9188
9189    sysv4*MP*)
9190      if test -d /usr/nec ;then
9191	lt_prog_compiler_pic='-Kconform_pic'
9192	lt_prog_compiler_static='-Bstatic'
9193      fi
9194      ;;
9195
9196    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9197      lt_prog_compiler_wl='-Wl,'
9198      lt_prog_compiler_pic='-KPIC'
9199      lt_prog_compiler_static='-Bstatic'
9200      ;;
9201
9202    unicos*)
9203      lt_prog_compiler_wl='-Wl,'
9204      lt_prog_compiler_can_build_shared=no
9205      ;;
9206
9207    uts4*)
9208      lt_prog_compiler_pic='-pic'
9209      lt_prog_compiler_static='-Bstatic'
9210      ;;
9211
9212    *)
9213      lt_prog_compiler_can_build_shared=no
9214      ;;
9215    esac
9216  fi
9217
9218case $host_os in
9219  # For platforms which do not support PIC, -DPIC is meaningless:
9220  *djgpp*)
9221    lt_prog_compiler_pic=
9222    ;;
9223  *)
9224    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9225    ;;
9226esac
9227
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9229$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9230if ${lt_cv_prog_compiler_pic+:} false; then :
9231  $as_echo_n "(cached) " >&6
9232else
9233  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9234fi
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9236$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9237lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9238
9239#
9240# Check to make sure the PIC flag actually works.
9241#
9242if test -n "$lt_prog_compiler_pic"; then
9243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9244$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9245if ${lt_cv_prog_compiler_pic_works+:} false; then :
9246  $as_echo_n "(cached) " >&6
9247else
9248  lt_cv_prog_compiler_pic_works=no
9249   ac_outfile=conftest.$ac_objext
9250   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9251   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9252   # Insert the option either (1) after the last *FLAGS variable, or
9253   # (2) before a word containing "conftest.", or (3) at the end.
9254   # Note that $ac_compile itself does not contain backslashes and begins
9255   # with a dollar sign (not a hyphen), so the echo should work correctly.
9256   # The option is referenced via a variable to avoid confusing sed.
9257   lt_compile=`echo "$ac_compile" | $SED \
9258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9260   -e 's:$: $lt_compiler_flag:'`
9261   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9262   (eval "$lt_compile" 2>conftest.err)
9263   ac_status=$?
9264   cat conftest.err >&5
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   if (exit $ac_status) && test -s "$ac_outfile"; then
9267     # The compiler can only warn and ignore the option if not recognized
9268     # So say no if there are warnings other than the usual output.
9269     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9270     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9271     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9272       lt_cv_prog_compiler_pic_works=yes
9273     fi
9274   fi
9275   $RM conftest*
9276
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9279$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9280
9281if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9282    case $lt_prog_compiler_pic in
9283     "" | " "*) ;;
9284     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9285     esac
9286else
9287    lt_prog_compiler_pic=
9288     lt_prog_compiler_can_build_shared=no
9289fi
9290
9291fi
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303#
9304# Check to make sure the static flag actually works.
9305#
9306wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9308$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9309if ${lt_cv_prog_compiler_static_works+:} false; then :
9310  $as_echo_n "(cached) " >&6
9311else
9312  lt_cv_prog_compiler_static_works=no
9313   save_LDFLAGS="$LDFLAGS"
9314   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9315   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9316   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9317     # The linker can only warn and ignore the option if not recognized
9318     # So say no if there are warnings
9319     if test -s conftest.err; then
9320       # Append any errors to the config.log.
9321       cat conftest.err 1>&5
9322       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9323       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9324       if diff conftest.exp conftest.er2 >/dev/null; then
9325         lt_cv_prog_compiler_static_works=yes
9326       fi
9327     else
9328       lt_cv_prog_compiler_static_works=yes
9329     fi
9330   fi
9331   $RM -r conftest*
9332   LDFLAGS="$save_LDFLAGS"
9333
9334fi
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9336$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9337
9338if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9339    :
9340else
9341    lt_prog_compiler_static=
9342fi
9343
9344
9345
9346
9347
9348
9349
9350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9351$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9352if ${lt_cv_prog_compiler_c_o+:} false; then :
9353  $as_echo_n "(cached) " >&6
9354else
9355  lt_cv_prog_compiler_c_o=no
9356   $RM -r conftest 2>/dev/null
9357   mkdir conftest
9358   cd conftest
9359   mkdir out
9360   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9361
9362   lt_compiler_flag="-o out/conftest2.$ac_objext"
9363   # Insert the option either (1) after the last *FLAGS variable, or
9364   # (2) before a word containing "conftest.", or (3) at the end.
9365   # Note that $ac_compile itself does not contain backslashes and begins
9366   # with a dollar sign (not a hyphen), so the echo should work correctly.
9367   lt_compile=`echo "$ac_compile" | $SED \
9368   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9369   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9370   -e 's:$: $lt_compiler_flag:'`
9371   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9372   (eval "$lt_compile" 2>out/conftest.err)
9373   ac_status=$?
9374   cat out/conftest.err >&5
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9377   then
9378     # The compiler can only warn and ignore the option if not recognized
9379     # So say no if there are warnings
9380     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9381     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9382     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9383       lt_cv_prog_compiler_c_o=yes
9384     fi
9385   fi
9386   chmod u+w . 2>&5
9387   $RM conftest*
9388   # SGI C++ compiler will create directory out/ii_files/ for
9389   # template instantiation
9390   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9391   $RM out/* && rmdir out
9392   cd ..
9393   $RM -r conftest
9394   $RM conftest*
9395
9396fi
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9398$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9399
9400
9401
9402
9403
9404
9405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9406$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9407if ${lt_cv_prog_compiler_c_o+:} false; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410  lt_cv_prog_compiler_c_o=no
9411   $RM -r conftest 2>/dev/null
9412   mkdir conftest
9413   cd conftest
9414   mkdir out
9415   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9416
9417   lt_compiler_flag="-o out/conftest2.$ac_objext"
9418   # Insert the option either (1) after the last *FLAGS variable, or
9419   # (2) before a word containing "conftest.", or (3) at the end.
9420   # Note that $ac_compile itself does not contain backslashes and begins
9421   # with a dollar sign (not a hyphen), so the echo should work correctly.
9422   lt_compile=`echo "$ac_compile" | $SED \
9423   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9424   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9425   -e 's:$: $lt_compiler_flag:'`
9426   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9427   (eval "$lt_compile" 2>out/conftest.err)
9428   ac_status=$?
9429   cat out/conftest.err >&5
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9432   then
9433     # The compiler can only warn and ignore the option if not recognized
9434     # So say no if there are warnings
9435     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9436     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9437     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9438       lt_cv_prog_compiler_c_o=yes
9439     fi
9440   fi
9441   chmod u+w . 2>&5
9442   $RM conftest*
9443   # SGI C++ compiler will create directory out/ii_files/ for
9444   # template instantiation
9445   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9446   $RM out/* && rmdir out
9447   cd ..
9448   $RM -r conftest
9449   $RM conftest*
9450
9451fi
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9453$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9454
9455
9456
9457
9458hard_links="nottested"
9459if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9460  # do not overwrite the value of need_locks provided by the user
9461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9462$as_echo_n "checking if we can lock with hard links... " >&6; }
9463  hard_links=yes
9464  $RM conftest*
9465  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9466  touch conftest.a
9467  ln conftest.a conftest.b 2>&5 || hard_links=no
9468  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9470$as_echo "$hard_links" >&6; }
9471  if test "$hard_links" = no; then
9472    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9473$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9474    need_locks=warn
9475  fi
9476else
9477  need_locks=no
9478fi
9479
9480
9481
9482
9483
9484
9485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9486$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9487
9488  runpath_var=
9489  allow_undefined_flag=
9490  always_export_symbols=no
9491  archive_cmds=
9492  archive_expsym_cmds=
9493  compiler_needs_object=no
9494  enable_shared_with_static_runtimes=no
9495  export_dynamic_flag_spec=
9496  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9497  hardcode_automatic=no
9498  hardcode_direct=no
9499  hardcode_direct_absolute=no
9500  hardcode_libdir_flag_spec=
9501  hardcode_libdir_separator=
9502  hardcode_minus_L=no
9503  hardcode_shlibpath_var=unsupported
9504  inherit_rpath=no
9505  link_all_deplibs=unknown
9506  module_cmds=
9507  module_expsym_cmds=
9508  old_archive_from_new_cmds=
9509  old_archive_from_expsyms_cmds=
9510  thread_safe_flag_spec=
9511  whole_archive_flag_spec=
9512  # include_expsyms should be a list of space-separated symbols to be *always*
9513  # included in the symbol list
9514  include_expsyms=
9515  # exclude_expsyms can be an extended regexp of symbols to exclude
9516  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9517  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9518  # as well as any symbol that contains `d'.
9519  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9520  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9521  # platforms (ab)use it in PIC code, but their linkers get confused if
9522  # the symbol is explicitly referenced.  Since portable code cannot
9523  # rely on this symbol name, it's probably fine to never include it in
9524  # preloaded symbol tables.
9525  # Exclude shared library initialization/finalization symbols.
9526  extract_expsyms_cmds=
9527
9528  case $host_os in
9529  cygwin* | mingw* | pw32* | cegcc*)
9530    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9531    # When not using gcc, we currently assume that we are using
9532    # Microsoft Visual C++.
9533    if test "$GCC" != yes; then
9534      with_gnu_ld=no
9535    fi
9536    ;;
9537  interix*)
9538    # we just hope/assume this is gcc and not c89 (= MSVC++)
9539    with_gnu_ld=yes
9540    ;;
9541  openbsd*)
9542    with_gnu_ld=no
9543    ;;
9544  esac
9545
9546  ld_shlibs=yes
9547
9548  # On some targets, GNU ld is compatible enough with the native linker
9549  # that we're better off using the native interface for both.
9550  lt_use_gnu_ld_interface=no
9551  if test "$with_gnu_ld" = yes; then
9552    case $host_os in
9553      aix*)
9554	# The AIX port of GNU ld has always aspired to compatibility
9555	# with the native linker.  However, as the warning in the GNU ld
9556	# block says, versions before 2.19.5* couldn't really create working
9557	# shared libraries, regardless of the interface used.
9558	case `$LD -v 2>&1` in
9559	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9560	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9561	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9562	  *)
9563	    lt_use_gnu_ld_interface=yes
9564	    ;;
9565	esac
9566	;;
9567      *)
9568	lt_use_gnu_ld_interface=yes
9569	;;
9570    esac
9571  fi
9572
9573  if test "$lt_use_gnu_ld_interface" = yes; then
9574    # If archive_cmds runs LD, not CC, wlarc should be empty
9575    wlarc='${wl}'
9576
9577    # Set some defaults for GNU ld with shared library support. These
9578    # are reset later if shared libraries are not supported. Putting them
9579    # here allows them to be overridden if necessary.
9580    runpath_var=LD_RUN_PATH
9581    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9582    export_dynamic_flag_spec='${wl}--export-dynamic'
9583    # ancient GNU ld didn't support --whole-archive et. al.
9584    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9585      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9586    else
9587      whole_archive_flag_spec=
9588    fi
9589    supports_anon_versioning=no
9590    case `$LD -v 2>&1` in
9591      *GNU\ gold*) supports_anon_versioning=yes ;;
9592      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9593      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9594      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9595      *\ 2.11.*) ;; # other 2.11 versions
9596      *) supports_anon_versioning=yes ;;
9597    esac
9598
9599    # See if GNU ld supports shared libraries.
9600    case $host_os in
9601    aix[3-9]*)
9602      # On AIX/PPC, the GNU linker is very broken
9603      if test "$host_cpu" != ia64; then
9604	ld_shlibs=no
9605	cat <<_LT_EOF 1>&2
9606
9607*** Warning: the GNU linker, at least up to release 2.19, is reported
9608*** to be unable to reliably create shared libraries on AIX.
9609*** Therefore, libtool is disabling shared libraries support.  If you
9610*** really care for shared libraries, you may want to install binutils
9611*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9612*** You will then need to restart the configuration process.
9613
9614_LT_EOF
9615      fi
9616      ;;
9617
9618    amigaos*)
9619      case $host_cpu in
9620      powerpc)
9621            # see comment about AmigaOS4 .so support
9622            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623            archive_expsym_cmds=''
9624        ;;
9625      m68k)
9626            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)'
9627            hardcode_libdir_flag_spec='-L$libdir'
9628            hardcode_minus_L=yes
9629        ;;
9630      esac
9631      ;;
9632
9633    beos*)
9634      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9635	allow_undefined_flag=unsupported
9636	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9637	# support --undefined.  This deserves some investigation.  FIXME
9638	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9639      else
9640	ld_shlibs=no
9641      fi
9642      ;;
9643
9644    cygwin* | mingw* | pw32* | cegcc*)
9645      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9646      # as there is no search path for DLLs.
9647      hardcode_libdir_flag_spec='-L$libdir'
9648      export_dynamic_flag_spec='${wl}--export-all-symbols'
9649      allow_undefined_flag=unsupported
9650      always_export_symbols=no
9651      enable_shared_with_static_runtimes=yes
9652      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'
9653      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9654
9655      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9656        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9657	# If the export-symbols file already is a .def file (1st line
9658	# is EXPORTS), use it as is; otherwise, prepend...
9659	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9660	  cp $export_symbols $output_objdir/$soname.def;
9661	else
9662	  echo EXPORTS > $output_objdir/$soname.def;
9663	  cat $export_symbols >> $output_objdir/$soname.def;
9664	fi~
9665	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9666      else
9667	ld_shlibs=no
9668      fi
9669      ;;
9670
9671    haiku*)
9672      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673      link_all_deplibs=yes
9674      ;;
9675
9676    interix[3-9]*)
9677      hardcode_direct=no
9678      hardcode_shlibpath_var=no
9679      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9680      export_dynamic_flag_spec='${wl}-E'
9681      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9682      # Instead, shared libraries are loaded at an image base (0x10000000 by
9683      # default) and relocated if they conflict, which is a slow very memory
9684      # consuming and fragmenting process.  To avoid this, we pick a random,
9685      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9686      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9687      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9688      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'
9689      ;;
9690
9691    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9692      tmp_diet=no
9693      if test "$host_os" = linux-dietlibc; then
9694	case $cc_basename in
9695	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9696	esac
9697      fi
9698      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9699	 && test "$tmp_diet" = no
9700      then
9701	tmp_addflag=' $pic_flag'
9702	tmp_sharedflag='-shared'
9703	case $cc_basename,$host_cpu in
9704        pgcc*)				# Portland Group C compiler
9705	  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'
9706	  tmp_addflag=' $pic_flag'
9707	  ;;
9708	pgf77* | pgf90* | pgf95* | pgfortran*)
9709					# Portland Group f77 and f90 compilers
9710	  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'
9711	  tmp_addflag=' $pic_flag -Mnomain' ;;
9712	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9713	  tmp_addflag=' -i_dynamic' ;;
9714	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9715	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9716	ifc* | ifort*)			# Intel Fortran compiler
9717	  tmp_addflag=' -nofor_main' ;;
9718	lf95*)				# Lahey Fortran 8.1
9719	  whole_archive_flag_spec=
9720	  tmp_sharedflag='--shared' ;;
9721	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9722	  tmp_sharedflag='-qmkshrobj'
9723	  tmp_addflag= ;;
9724	nvcc*)	# Cuda Compiler Driver 2.2
9725	  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'
9726	  compiler_needs_object=yes
9727	  ;;
9728	esac
9729	case `$CC -V 2>&1 | sed 5q` in
9730	*Sun\ C*)			# Sun C 5.9
9731	  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'
9732	  compiler_needs_object=yes
9733	  tmp_sharedflag='-G' ;;
9734	*Sun\ F*)			# Sun Fortran 8.3
9735	  tmp_sharedflag='-G' ;;
9736	esac
9737	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9738
9739        if test "x$supports_anon_versioning" = xyes; then
9740          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9741	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9742	    echo "local: *; };" >> $output_objdir/$libname.ver~
9743	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9744        fi
9745
9746	case $cc_basename in
9747	xlf* | bgf* | bgxlf* | mpixlf*)
9748	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9749	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9750	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9751	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9752	  if test "x$supports_anon_versioning" = xyes; then
9753	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9754	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9755	      echo "local: *; };" >> $output_objdir/$libname.ver~
9756	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9757	  fi
9758	  ;;
9759	esac
9760      else
9761        ld_shlibs=no
9762      fi
9763      ;;
9764
9765    netbsd*)
9766      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9767	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9768	wlarc=
9769      else
9770	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9772      fi
9773      ;;
9774
9775    solaris*)
9776      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9777	ld_shlibs=no
9778	cat <<_LT_EOF 1>&2
9779
9780*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9781*** create shared libraries on Solaris systems.  Therefore, libtool
9782*** is disabling shared libraries support.  We urge you to upgrade GNU
9783*** binutils to release 2.9.1 or newer.  Another option is to modify
9784*** your PATH or compiler configuration so that the native linker is
9785*** used, and then restart.
9786
9787_LT_EOF
9788      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9789	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9791      else
9792	ld_shlibs=no
9793      fi
9794      ;;
9795
9796    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9797      case `$LD -v 2>&1` in
9798        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9799	ld_shlibs=no
9800	cat <<_LT_EOF 1>&2
9801
9802*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9803*** reliably create shared libraries on SCO systems.  Therefore, libtool
9804*** is disabling shared libraries support.  We urge you to upgrade GNU
9805*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9806*** your PATH or compiler configuration so that the native linker is
9807*** used, and then restart.
9808
9809_LT_EOF
9810	;;
9811	*)
9812	  # For security reasons, it is highly recommended that you always
9813	  # use absolute paths for naming shared libraries, and exclude the
9814	  # DT_RUNPATH tag from executables and libraries.  But doing so
9815	  # requires that you compile everything twice, which is a pain.
9816	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9817	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9819	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9820	  else
9821	    ld_shlibs=no
9822	  fi
9823	;;
9824      esac
9825      ;;
9826
9827    sunos4*)
9828      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9829      wlarc=
9830      hardcode_direct=yes
9831      hardcode_shlibpath_var=no
9832      ;;
9833
9834    *)
9835      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9836	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9838      else
9839	ld_shlibs=no
9840      fi
9841      ;;
9842    esac
9843
9844    if test "$ld_shlibs" = no; then
9845      runpath_var=
9846      hardcode_libdir_flag_spec=
9847      export_dynamic_flag_spec=
9848      whole_archive_flag_spec=
9849    fi
9850  else
9851    # PORTME fill in a description of your system's linker (not GNU ld)
9852    case $host_os in
9853    aix3*)
9854      allow_undefined_flag=unsupported
9855      always_export_symbols=yes
9856      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'
9857      # Note: this linker hardcodes the directories in LIBPATH if there
9858      # are no directories specified by -L.
9859      hardcode_minus_L=yes
9860      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9861	# Neither direct hardcoding nor static linking is supported with a
9862	# broken collect2.
9863	hardcode_direct=unsupported
9864      fi
9865      ;;
9866
9867    aix[4-9]*)
9868      if test "$host_cpu" = ia64; then
9869	# On IA64, the linker does run time linking by default, so we don't
9870	# have to do anything special.
9871	aix_use_runtimelinking=no
9872	exp_sym_flag='-Bexport'
9873	no_entry_flag=""
9874      else
9875	# If we're using GNU nm, then we don't want the "-C" option.
9876	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9877	# Also, AIX nm treats weak defined symbols like other global
9878	# defined symbols, whereas GNU nm marks them as "W".
9879	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9880	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9881	else
9882	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9883	fi
9884	aix_use_runtimelinking=no
9885
9886	# Test if we are trying to use run time linking or normal
9887	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9888	# need to do runtime linking.
9889	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9890	  for ld_flag in $LDFLAGS; do
9891	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9892	    aix_use_runtimelinking=yes
9893	    break
9894	  fi
9895	  done
9896	  ;;
9897	esac
9898
9899	exp_sym_flag='-bexport'
9900	no_entry_flag='-bnoentry'
9901      fi
9902
9903      # When large executables or shared objects are built, AIX ld can
9904      # have problems creating the table of contents.  If linking a library
9905      # or program results in "error TOC overflow" add -mminimal-toc to
9906      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9907      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9908
9909      archive_cmds=''
9910      hardcode_direct=yes
9911      hardcode_direct_absolute=yes
9912      hardcode_libdir_separator=':'
9913      link_all_deplibs=yes
9914      file_list_spec='${wl}-f,'
9915
9916      if test "$GCC" = yes; then
9917	case $host_os in aix4.[012]|aix4.[012].*)
9918	# We only want to do this on AIX 4.2 and lower, the check
9919	# below for broken collect2 doesn't work under 4.3+
9920	  collect2name=`${CC} -print-prog-name=collect2`
9921	  if test -f "$collect2name" &&
9922	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9923	  then
9924	  # We have reworked collect2
9925	  :
9926	  else
9927	  # We have old collect2
9928	  hardcode_direct=unsupported
9929	  # It fails to find uninstalled libraries when the uninstalled
9930	  # path is not listed in the libpath.  Setting hardcode_minus_L
9931	  # to unsupported forces relinking
9932	  hardcode_minus_L=yes
9933	  hardcode_libdir_flag_spec='-L$libdir'
9934	  hardcode_libdir_separator=
9935	  fi
9936	  ;;
9937	esac
9938	shared_flag='-shared'
9939	if test "$aix_use_runtimelinking" = yes; then
9940	  shared_flag="$shared_flag "'${wl}-G'
9941	fi
9942      else
9943	# not using gcc
9944	if test "$host_cpu" = ia64; then
9945	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9946	# chokes on -Wl,-G. The following line is correct:
9947	  shared_flag='-G'
9948	else
9949	  if test "$aix_use_runtimelinking" = yes; then
9950	    shared_flag='${wl}-G'
9951	  else
9952	    shared_flag='${wl}-bM:SRE'
9953	  fi
9954	fi
9955      fi
9956
9957      export_dynamic_flag_spec='${wl}-bexpall'
9958      # It seems that -bexpall does not export symbols beginning with
9959      # underscore (_), so it is better to generate a list of symbols to export.
9960      always_export_symbols=yes
9961      if test "$aix_use_runtimelinking" = yes; then
9962	# Warning - without using the other runtime loading flags (-brtl),
9963	# -berok will link without error, but may produce a broken library.
9964	allow_undefined_flag='-berok'
9965        # Determine the default libpath from the value encoded in an
9966        # empty executable.
9967        if test "${lt_cv_aix_libpath+set}" = set; then
9968  aix_libpath=$lt_cv_aix_libpath
9969else
9970  if ${lt_cv_aix_libpath_+:} false; then :
9971  $as_echo_n "(cached) " >&6
9972else
9973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h.  */
9975
9976int
9977main ()
9978{
9979
9980  ;
9981  return 0;
9982}
9983_ACEOF
9984if ac_fn_c_try_link "$LINENO"; then :
9985
9986  lt_aix_libpath_sed='
9987      /Import File Strings/,/^$/ {
9988	  /^0/ {
9989	      s/^0  *\([^ ]*\) *$/\1/
9990	      p
9991	  }
9992      }'
9993  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9994  # Check for a 64-bit object if we didn't find anything.
9995  if test -z "$lt_cv_aix_libpath_"; then
9996    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9997  fi
9998fi
9999rm -f core conftest.err conftest.$ac_objext \
10000    conftest$ac_exeext conftest.$ac_ext
10001  if test -z "$lt_cv_aix_libpath_"; then
10002    lt_cv_aix_libpath_="/usr/lib:/lib"
10003  fi
10004
10005fi
10006
10007  aix_libpath=$lt_cv_aix_libpath_
10008fi
10009
10010        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10011        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10012      else
10013	if test "$host_cpu" = ia64; then
10014	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10015	  allow_undefined_flag="-z nodefs"
10016	  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"
10017	else
10018	 # Determine the default libpath from the value encoded in an
10019	 # empty executable.
10020	 if test "${lt_cv_aix_libpath+set}" = set; then
10021  aix_libpath=$lt_cv_aix_libpath
10022else
10023  if ${lt_cv_aix_libpath_+:} false; then :
10024  $as_echo_n "(cached) " >&6
10025else
10026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027/* end confdefs.h.  */
10028
10029int
10030main ()
10031{
10032
10033  ;
10034  return 0;
10035}
10036_ACEOF
10037if ac_fn_c_try_link "$LINENO"; then :
10038
10039  lt_aix_libpath_sed='
10040      /Import File Strings/,/^$/ {
10041	  /^0/ {
10042	      s/^0  *\([^ ]*\) *$/\1/
10043	      p
10044	  }
10045      }'
10046  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10047  # Check for a 64-bit object if we didn't find anything.
10048  if test -z "$lt_cv_aix_libpath_"; then
10049    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10050  fi
10051fi
10052rm -f core conftest.err conftest.$ac_objext \
10053    conftest$ac_exeext conftest.$ac_ext
10054  if test -z "$lt_cv_aix_libpath_"; then
10055    lt_cv_aix_libpath_="/usr/lib:/lib"
10056  fi
10057
10058fi
10059
10060  aix_libpath=$lt_cv_aix_libpath_
10061fi
10062
10063	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10064	  # Warning - without using the other run time loading flags,
10065	  # -berok will link without error, but may produce a broken library.
10066	  no_undefined_flag=' ${wl}-bernotok'
10067	  allow_undefined_flag=' ${wl}-berok'
10068	  if test "$with_gnu_ld" = yes; then
10069	    # We only use this code for GNU lds that support --whole-archive.
10070	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10071	  else
10072	    # Exported symbols can be pulled into shared objects from archives
10073	    whole_archive_flag_spec='$convenience'
10074	  fi
10075	  archive_cmds_need_lc=yes
10076	  # This is similar to how AIX traditionally builds its shared libraries.
10077	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10078	fi
10079      fi
10080      ;;
10081
10082    amigaos*)
10083      case $host_cpu in
10084      powerpc)
10085            # see comment about AmigaOS4 .so support
10086            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087            archive_expsym_cmds=''
10088        ;;
10089      m68k)
10090            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)'
10091            hardcode_libdir_flag_spec='-L$libdir'
10092            hardcode_minus_L=yes
10093        ;;
10094      esac
10095      ;;
10096
10097    bsdi[45]*)
10098      export_dynamic_flag_spec=-rdynamic
10099      ;;
10100
10101    cygwin* | mingw* | pw32* | cegcc*)
10102      # When not using gcc, we currently assume that we are using
10103      # Microsoft Visual C++.
10104      # hardcode_libdir_flag_spec is actually meaningless, as there is
10105      # no search path for DLLs.
10106      case $cc_basename in
10107      cl*)
10108	# Native MSVC
10109	hardcode_libdir_flag_spec=' '
10110	allow_undefined_flag=unsupported
10111	always_export_symbols=yes
10112	file_list_spec='@'
10113	# Tell ltmain to make .lib files, not .a files.
10114	libext=lib
10115	# Tell ltmain to make .dll files, not .so files.
10116	shrext_cmds=".dll"
10117	# FIXME: Setting linknames here is a bad hack.
10118	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10119	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10120	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10121	  else
10122	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10123	  fi~
10124	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10125	  linknames='
10126	# The linker will not automatically build a static lib if we build a DLL.
10127	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10128	enable_shared_with_static_runtimes=yes
10129	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10130	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10131	# Don't use ranlib
10132	old_postinstall_cmds='chmod 644 $oldlib'
10133	postlink_cmds='lt_outputfile="@OUTPUT@"~
10134	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10135	  case $lt_outputfile in
10136	    *.exe|*.EXE) ;;
10137	    *)
10138	      lt_outputfile="$lt_outputfile.exe"
10139	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10140	      ;;
10141	  esac~
10142	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10143	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10144	    $RM "$lt_outputfile.manifest";
10145	  fi'
10146	;;
10147      *)
10148	# Assume MSVC wrapper
10149	hardcode_libdir_flag_spec=' '
10150	allow_undefined_flag=unsupported
10151	# Tell ltmain to make .lib files, not .a files.
10152	libext=lib
10153	# Tell ltmain to make .dll files, not .so files.
10154	shrext_cmds=".dll"
10155	# FIXME: Setting linknames here is a bad hack.
10156	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10157	# The linker will automatically build a .lib file if we build a DLL.
10158	old_archive_from_new_cmds='true'
10159	# FIXME: Should let the user specify the lib program.
10160	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10161	enable_shared_with_static_runtimes=yes
10162	;;
10163      esac
10164      ;;
10165
10166    darwin* | rhapsody*)
10167
10168
10169  archive_cmds_need_lc=no
10170  hardcode_direct=no
10171  hardcode_automatic=yes
10172  hardcode_shlibpath_var=unsupported
10173  if test "$lt_cv_ld_force_load" = "yes"; then
10174    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\"`'
10175
10176  else
10177    whole_archive_flag_spec=''
10178  fi
10179  link_all_deplibs=yes
10180  allow_undefined_flag="$_lt_dar_allow_undefined"
10181  case $cc_basename in
10182     ifort*) _lt_dar_can_shared=yes ;;
10183     *) _lt_dar_can_shared=$GCC ;;
10184  esac
10185  if test "$_lt_dar_can_shared" = "yes"; then
10186    output_verbose_link_cmd=func_echo_all
10187    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10188    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10189    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}"
10190    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}"
10191
10192  else
10193  ld_shlibs=no
10194  fi
10195
10196      ;;
10197
10198    dgux*)
10199      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200      hardcode_libdir_flag_spec='-L$libdir'
10201      hardcode_shlibpath_var=no
10202      ;;
10203
10204    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10205    # support.  Future versions do this automatically, but an explicit c++rt0.o
10206    # does not break anything, and helps significantly (at the cost of a little
10207    # extra space).
10208    freebsd2.2*)
10209      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10210      hardcode_libdir_flag_spec='-R$libdir'
10211      hardcode_direct=yes
10212      hardcode_shlibpath_var=no
10213      ;;
10214
10215    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10216    freebsd2.*)
10217      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10218      hardcode_direct=yes
10219      hardcode_minus_L=yes
10220      hardcode_shlibpath_var=no
10221      ;;
10222
10223    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10224    freebsd* | dragonfly*)
10225      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10226      hardcode_libdir_flag_spec='-R$libdir'
10227      hardcode_direct=yes
10228      hardcode_shlibpath_var=no
10229      ;;
10230
10231    hpux9*)
10232      if test "$GCC" = yes; then
10233	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10234      else
10235	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10236      fi
10237      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10238      hardcode_libdir_separator=:
10239      hardcode_direct=yes
10240
10241      # hardcode_minus_L: Not really in the search PATH,
10242      # but as the default location of the library.
10243      hardcode_minus_L=yes
10244      export_dynamic_flag_spec='${wl}-E'
10245      ;;
10246
10247    hpux10*)
10248      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10249	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10250      else
10251	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10252      fi
10253      if test "$with_gnu_ld" = no; then
10254	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10255	hardcode_libdir_separator=:
10256	hardcode_direct=yes
10257	hardcode_direct_absolute=yes
10258	export_dynamic_flag_spec='${wl}-E'
10259	# hardcode_minus_L: Not really in the search PATH,
10260	# but as the default location of the library.
10261	hardcode_minus_L=yes
10262      fi
10263      ;;
10264
10265    hpux11*)
10266      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10267	case $host_cpu in
10268	hppa*64*)
10269	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10270	  ;;
10271	ia64*)
10272	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10273	  ;;
10274	*)
10275	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10276	  ;;
10277	esac
10278      else
10279	case $host_cpu in
10280	hppa*64*)
10281	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10282	  ;;
10283	ia64*)
10284	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10285	  ;;
10286	*)
10287
10288	  # Older versions of the 11.00 compiler do not understand -b yet
10289	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10290	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10291$as_echo_n "checking if $CC understands -b... " >&6; }
10292if ${lt_cv_prog_compiler__b+:} false; then :
10293  $as_echo_n "(cached) " >&6
10294else
10295  lt_cv_prog_compiler__b=no
10296   save_LDFLAGS="$LDFLAGS"
10297   LDFLAGS="$LDFLAGS -b"
10298   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10299   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10300     # The linker can only warn and ignore the option if not recognized
10301     # So say no if there are warnings
10302     if test -s conftest.err; then
10303       # Append any errors to the config.log.
10304       cat conftest.err 1>&5
10305       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10306       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10307       if diff conftest.exp conftest.er2 >/dev/null; then
10308         lt_cv_prog_compiler__b=yes
10309       fi
10310     else
10311       lt_cv_prog_compiler__b=yes
10312     fi
10313   fi
10314   $RM -r conftest*
10315   LDFLAGS="$save_LDFLAGS"
10316
10317fi
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10319$as_echo "$lt_cv_prog_compiler__b" >&6; }
10320
10321if test x"$lt_cv_prog_compiler__b" = xyes; then
10322    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10323else
10324    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10325fi
10326
10327	  ;;
10328	esac
10329      fi
10330      if test "$with_gnu_ld" = no; then
10331	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10332	hardcode_libdir_separator=:
10333
10334	case $host_cpu in
10335	hppa*64*|ia64*)
10336	  hardcode_direct=no
10337	  hardcode_shlibpath_var=no
10338	  ;;
10339	*)
10340	  hardcode_direct=yes
10341	  hardcode_direct_absolute=yes
10342	  export_dynamic_flag_spec='${wl}-E'
10343
10344	  # hardcode_minus_L: Not really in the search PATH,
10345	  # but as the default location of the library.
10346	  hardcode_minus_L=yes
10347	  ;;
10348	esac
10349      fi
10350      ;;
10351
10352    irix5* | irix6* | nonstopux*)
10353      if test "$GCC" = yes; then
10354	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'
10355	# Try to use the -exported_symbol ld option, if it does not
10356	# work, assume that -exports_file does not work either and
10357	# implicitly export all symbols.
10358	# This should be the same for all languages, so no per-tag cache variable.
10359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10360$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10361if ${lt_cv_irix_exported_symbol+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  save_LDFLAGS="$LDFLAGS"
10365	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10366	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h.  */
10368int foo (void) { return 0; }
10369_ACEOF
10370if ac_fn_c_try_link "$LINENO"; then :
10371  lt_cv_irix_exported_symbol=yes
10372else
10373  lt_cv_irix_exported_symbol=no
10374fi
10375rm -f core conftest.err conftest.$ac_objext \
10376    conftest$ac_exeext conftest.$ac_ext
10377           LDFLAGS="$save_LDFLAGS"
10378fi
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10380$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10381	if test "$lt_cv_irix_exported_symbol" = yes; then
10382          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'
10383	fi
10384      else
10385	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'
10386	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'
10387      fi
10388      archive_cmds_need_lc='no'
10389      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10390      hardcode_libdir_separator=:
10391      inherit_rpath=yes
10392      link_all_deplibs=yes
10393      ;;
10394
10395    netbsd*)
10396      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10397	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10398      else
10399	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10400      fi
10401      hardcode_libdir_flag_spec='-R$libdir'
10402      hardcode_direct=yes
10403      hardcode_shlibpath_var=no
10404      ;;
10405
10406    newsos6)
10407      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10408      hardcode_direct=yes
10409      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10410      hardcode_libdir_separator=:
10411      hardcode_shlibpath_var=no
10412      ;;
10413
10414    *nto* | *qnx*)
10415      ;;
10416
10417    openbsd*)
10418      if test -f /usr/libexec/ld.so; then
10419	hardcode_direct=yes
10420	hardcode_shlibpath_var=no
10421	hardcode_direct_absolute=yes
10422	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10423	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10424	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10425	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10426	  export_dynamic_flag_spec='${wl}-E'
10427	else
10428	  case $host_os in
10429	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10430	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10431	     hardcode_libdir_flag_spec='-R$libdir'
10432	     ;;
10433	   *)
10434	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10435	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10436	     ;;
10437	  esac
10438	fi
10439      else
10440	ld_shlibs=no
10441      fi
10442      ;;
10443
10444    os2*)
10445      hardcode_libdir_flag_spec='-L$libdir'
10446      hardcode_minus_L=yes
10447      allow_undefined_flag=unsupported
10448      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10449      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10450      ;;
10451
10452    osf3*)
10453      if test "$GCC" = yes; then
10454	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10455	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'
10456      else
10457	allow_undefined_flag=' -expect_unresolved \*'
10458	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'
10459      fi
10460      archive_cmds_need_lc='no'
10461      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10462      hardcode_libdir_separator=:
10463      ;;
10464
10465    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10466      if test "$GCC" = yes; then
10467	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10468	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'
10469	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10470      else
10471	allow_undefined_flag=' -expect_unresolved \*'
10472	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'
10473	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~
10474	$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'
10475
10476	# Both c and cxx compiler support -rpath directly
10477	hardcode_libdir_flag_spec='-rpath $libdir'
10478      fi
10479      archive_cmds_need_lc='no'
10480      hardcode_libdir_separator=:
10481      ;;
10482
10483    solaris*)
10484      no_undefined_flag=' -z defs'
10485      if test "$GCC" = yes; then
10486	wlarc='${wl}'
10487	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10488	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10489	  $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'
10490      else
10491	case `$CC -V 2>&1` in
10492	*"Compilers 5.0"*)
10493	  wlarc=''
10494	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10495	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10496	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10497	  ;;
10498	*)
10499	  wlarc='${wl}'
10500	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10501	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10502	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10503	  ;;
10504	esac
10505      fi
10506      hardcode_libdir_flag_spec='-R$libdir'
10507      hardcode_shlibpath_var=no
10508      case $host_os in
10509      solaris2.[0-5] | solaris2.[0-5].*) ;;
10510      *)
10511	# The compiler driver will combine and reorder linker options,
10512	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10513	# but is careful enough not to reorder.
10514	# Supported since Solaris 2.6 (maybe 2.5.1?)
10515	if test "$GCC" = yes; then
10516	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10517	else
10518	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10519	fi
10520	;;
10521      esac
10522      link_all_deplibs=yes
10523      ;;
10524
10525    sunos4*)
10526      if test "x$host_vendor" = xsequent; then
10527	# Use $CC to link under sequent, because it throws in some extra .o
10528	# files that make .init and .fini sections work.
10529	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10530      else
10531	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10532      fi
10533      hardcode_libdir_flag_spec='-L$libdir'
10534      hardcode_direct=yes
10535      hardcode_minus_L=yes
10536      hardcode_shlibpath_var=no
10537      ;;
10538
10539    sysv4)
10540      case $host_vendor in
10541	sni)
10542	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10543	  hardcode_direct=yes # is this really true???
10544	;;
10545	siemens)
10546	  ## LD is ld it makes a PLAMLIB
10547	  ## CC just makes a GrossModule.
10548	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10549	  reload_cmds='$CC -r -o $output$reload_objs'
10550	  hardcode_direct=no
10551        ;;
10552	motorola)
10553	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10554	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10555	;;
10556      esac
10557      runpath_var='LD_RUN_PATH'
10558      hardcode_shlibpath_var=no
10559      ;;
10560
10561    sysv4.3*)
10562      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563      hardcode_shlibpath_var=no
10564      export_dynamic_flag_spec='-Bexport'
10565      ;;
10566
10567    sysv4*MP*)
10568      if test -d /usr/nec; then
10569	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10570	hardcode_shlibpath_var=no
10571	runpath_var=LD_RUN_PATH
10572	hardcode_runpath_var=yes
10573	ld_shlibs=yes
10574      fi
10575      ;;
10576
10577    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10578      no_undefined_flag='${wl}-z,text'
10579      archive_cmds_need_lc=no
10580      hardcode_shlibpath_var=no
10581      runpath_var='LD_RUN_PATH'
10582
10583      if test "$GCC" = yes; then
10584	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586      else
10587	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589      fi
10590      ;;
10591
10592    sysv5* | sco3.2v5* | sco5v6*)
10593      # Note: We can NOT use -z defs as we might desire, because we do not
10594      # link with -lc, and that would cause any symbols used from libc to
10595      # always be unresolved, which means just about no library would
10596      # ever link correctly.  If we're not using GNU ld we use -z text
10597      # though, which does catch some bad symbols but isn't as heavy-handed
10598      # as -z defs.
10599      no_undefined_flag='${wl}-z,text'
10600      allow_undefined_flag='${wl}-z,nodefs'
10601      archive_cmds_need_lc=no
10602      hardcode_shlibpath_var=no
10603      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10604      hardcode_libdir_separator=':'
10605      link_all_deplibs=yes
10606      export_dynamic_flag_spec='${wl}-Bexport'
10607      runpath_var='LD_RUN_PATH'
10608
10609      if test "$GCC" = yes; then
10610	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612      else
10613	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615      fi
10616      ;;
10617
10618    uts4*)
10619      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10620      hardcode_libdir_flag_spec='-L$libdir'
10621      hardcode_shlibpath_var=no
10622      ;;
10623
10624    *)
10625      ld_shlibs=no
10626      ;;
10627    esac
10628
10629    if test x$host_vendor = xsni; then
10630      case $host in
10631      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10632	export_dynamic_flag_spec='${wl}-Blargedynsym'
10633	;;
10634      esac
10635    fi
10636  fi
10637
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10639$as_echo "$ld_shlibs" >&6; }
10640test "$ld_shlibs" = no && can_build_shared=no
10641
10642with_gnu_ld=$with_gnu_ld
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658#
10659# Do we need to explicitly link libc?
10660#
10661case "x$archive_cmds_need_lc" in
10662x|xyes)
10663  # Assume -lc should be added
10664  archive_cmds_need_lc=yes
10665
10666  if test "$enable_shared" = yes && test "$GCC" = yes; then
10667    case $archive_cmds in
10668    *'~'*)
10669      # FIXME: we may have to deal with multi-command sequences.
10670      ;;
10671    '$CC '*)
10672      # Test whether the compiler implicitly links with -lc since on some
10673      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10674      # to ld, don't add -lc before -lgcc.
10675      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10676$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10677if ${lt_cv_archive_cmds_need_lc+:} false; then :
10678  $as_echo_n "(cached) " >&6
10679else
10680  $RM conftest*
10681	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10682
10683	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10684  (eval $ac_compile) 2>&5
10685  ac_status=$?
10686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10687  test $ac_status = 0; } 2>conftest.err; then
10688	  soname=conftest
10689	  lib=conftest
10690	  libobjs=conftest.$ac_objext
10691	  deplibs=
10692	  wl=$lt_prog_compiler_wl
10693	  pic_flag=$lt_prog_compiler_pic
10694	  compiler_flags=-v
10695	  linker_flags=-v
10696	  verstring=
10697	  output_objdir=.
10698	  libname=conftest
10699	  lt_save_allow_undefined_flag=$allow_undefined_flag
10700	  allow_undefined_flag=
10701	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10702  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10703  ac_status=$?
10704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10705  test $ac_status = 0; }
10706	  then
10707	    lt_cv_archive_cmds_need_lc=no
10708	  else
10709	    lt_cv_archive_cmds_need_lc=yes
10710	  fi
10711	  allow_undefined_flag=$lt_save_allow_undefined_flag
10712	else
10713	  cat conftest.err 1>&5
10714	fi
10715	$RM conftest*
10716
10717fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10719$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10720      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10721      ;;
10722    esac
10723  fi
10724  ;;
10725esac
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10879$as_echo_n "checking dynamic linker characteristics... " >&6; }
10880
10881if test "$GCC" = yes; then
10882  case $host_os in
10883    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10884    *) lt_awk_arg="/^libraries:/" ;;
10885  esac
10886  case $host_os in
10887    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10888    *) lt_sed_strip_eq="s,=/,/,g" ;;
10889  esac
10890  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10891  case $lt_search_path_spec in
10892  *\;*)
10893    # if the path contains ";" then we assume it to be the separator
10894    # otherwise default to the standard path separator (i.e. ":") - it is
10895    # assumed that no part of a normal pathname contains ";" but that should
10896    # okay in the real world where ";" in dirpaths is itself problematic.
10897    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10898    ;;
10899  *)
10900    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10901    ;;
10902  esac
10903  # Ok, now we have the path, separated by spaces, we can step through it
10904  # and add multilib dir if necessary.
10905  lt_tmp_lt_search_path_spec=
10906  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10907  for lt_sys_path in $lt_search_path_spec; do
10908    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10909      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10910    else
10911      test -d "$lt_sys_path" && \
10912	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10913    fi
10914  done
10915  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10916BEGIN {RS=" "; FS="/|\n";} {
10917  lt_foo="";
10918  lt_count=0;
10919  for (lt_i = NF; lt_i > 0; lt_i--) {
10920    if ($lt_i != "" && $lt_i != ".") {
10921      if ($lt_i == "..") {
10922        lt_count++;
10923      } else {
10924        if (lt_count == 0) {
10925          lt_foo="/" $lt_i lt_foo;
10926        } else {
10927          lt_count--;
10928        }
10929      }
10930    }
10931  }
10932  if (lt_foo != "") { lt_freq[lt_foo]++; }
10933  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10934}'`
10935  # AWK program above erroneously prepends '/' to C:/dos/paths
10936  # for these hosts.
10937  case $host_os in
10938    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10939      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10940  esac
10941  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10942else
10943  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10944fi
10945library_names_spec=
10946libname_spec='lib$name'
10947soname_spec=
10948shrext_cmds=".so"
10949postinstall_cmds=
10950postuninstall_cmds=
10951finish_cmds=
10952finish_eval=
10953shlibpath_var=
10954shlibpath_overrides_runpath=unknown
10955version_type=none
10956dynamic_linker="$host_os ld.so"
10957sys_lib_dlsearch_path_spec="/lib /usr/lib"
10958need_lib_prefix=unknown
10959hardcode_into_libs=no
10960
10961# when you set need_version to no, make sure it does not cause -set_version
10962# flags to be left without arguments
10963need_version=unknown
10964
10965case $host_os in
10966aix3*)
10967  version_type=linux # correct to gnu/linux during the next big refactor
10968  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10969  shlibpath_var=LIBPATH
10970
10971  # AIX 3 has no versioning support, so we append a major version to the name.
10972  soname_spec='${libname}${release}${shared_ext}$major'
10973  ;;
10974
10975aix[4-9]*)
10976  version_type=linux # correct to gnu/linux during the next big refactor
10977  need_lib_prefix=no
10978  need_version=no
10979  hardcode_into_libs=yes
10980  if test "$host_cpu" = ia64; then
10981    # AIX 5 supports IA64
10982    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10983    shlibpath_var=LD_LIBRARY_PATH
10984  else
10985    # With GCC up to 2.95.x, collect2 would create an import file
10986    # for dependence libraries.  The import file would start with
10987    # the line `#! .'.  This would cause the generated library to
10988    # depend on `.', always an invalid library.  This was fixed in
10989    # development snapshots of GCC prior to 3.0.
10990    case $host_os in
10991      aix4 | aix4.[01] | aix4.[01].*)
10992      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10993	   echo ' yes '
10994	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10995	:
10996      else
10997	can_build_shared=no
10998      fi
10999      ;;
11000    esac
11001    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11002    # soname into executable. Probably we can add versioning support to
11003    # collect2, so additional links can be useful in future.
11004    if test "$aix_use_runtimelinking" = yes; then
11005      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11006      # instead of lib<name>.a to let people know that these are not
11007      # typical AIX shared libraries.
11008      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009    else
11010      # We preserve .a as extension for shared libraries through AIX4.2
11011      # and later when we are not doing run time linking.
11012      library_names_spec='${libname}${release}.a $libname.a'
11013      soname_spec='${libname}${release}${shared_ext}$major'
11014    fi
11015    shlibpath_var=LIBPATH
11016  fi
11017  ;;
11018
11019amigaos*)
11020  case $host_cpu in
11021  powerpc)
11022    # Since July 2007 AmigaOS4 officially supports .so libraries.
11023    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025    ;;
11026  m68k)
11027    library_names_spec='$libname.ixlibrary $libname.a'
11028    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11029    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11030    ;;
11031  esac
11032  ;;
11033
11034beos*)
11035  library_names_spec='${libname}${shared_ext}'
11036  dynamic_linker="$host_os ld.so"
11037  shlibpath_var=LIBRARY_PATH
11038  ;;
11039
11040bsdi[45]*)
11041  version_type=linux # correct to gnu/linux during the next big refactor
11042  need_version=no
11043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044  soname_spec='${libname}${release}${shared_ext}$major'
11045  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11046  shlibpath_var=LD_LIBRARY_PATH
11047  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11048  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11049  # the default ld.so.conf also contains /usr/contrib/lib and
11050  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11051  # libtool to hard-code these into programs
11052  ;;
11053
11054cygwin* | mingw* | pw32* | cegcc*)
11055  version_type=windows
11056  shrext_cmds=".dll"
11057  need_version=no
11058  need_lib_prefix=no
11059
11060  case $GCC,$cc_basename in
11061  yes,*)
11062    # gcc
11063    library_names_spec='$libname.dll.a'
11064    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11065    postinstall_cmds='base_file=`basename \${file}`~
11066      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11067      dldir=$destdir/`dirname \$dlpath`~
11068      test -d \$dldir || mkdir -p \$dldir~
11069      $install_prog $dir/$dlname \$dldir/$dlname~
11070      chmod a+x \$dldir/$dlname~
11071      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11072        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11073      fi'
11074    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11075      dlpath=$dir/\$dldll~
11076       $RM \$dlpath'
11077    shlibpath_overrides_runpath=yes
11078
11079    case $host_os in
11080    cygwin*)
11081      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11082      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11083
11084      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11085      ;;
11086    mingw* | cegcc*)
11087      # MinGW DLLs use traditional 'lib' prefix
11088      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11089      ;;
11090    pw32*)
11091      # pw32 DLLs use 'pw' prefix rather than 'lib'
11092      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11093      ;;
11094    esac
11095    dynamic_linker='Win32 ld.exe'
11096    ;;
11097
11098  *,cl*)
11099    # Native MSVC
11100    libname_spec='$name'
11101    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11102    library_names_spec='${libname}.dll.lib'
11103
11104    case $build_os in
11105    mingw*)
11106      sys_lib_search_path_spec=
11107      lt_save_ifs=$IFS
11108      IFS=';'
11109      for lt_path in $LIB
11110      do
11111        IFS=$lt_save_ifs
11112        # Let DOS variable expansion print the short 8.3 style file name.
11113        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11114        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11115      done
11116      IFS=$lt_save_ifs
11117      # Convert to MSYS style.
11118      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11119      ;;
11120    cygwin*)
11121      # Convert to unix form, then to dos form, then back to unix form
11122      # but this time dos style (no spaces!) so that the unix form looks
11123      # like /cygdrive/c/PROGRA~1:/cygdr...
11124      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11125      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11126      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11127      ;;
11128    *)
11129      sys_lib_search_path_spec="$LIB"
11130      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11131        # It is most probably a Windows format PATH.
11132        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11133      else
11134        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11135      fi
11136      # FIXME: find the short name or the path components, as spaces are
11137      # common. (e.g. "Program Files" -> "PROGRA~1")
11138      ;;
11139    esac
11140
11141    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11142    postinstall_cmds='base_file=`basename \${file}`~
11143      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11144      dldir=$destdir/`dirname \$dlpath`~
11145      test -d \$dldir || mkdir -p \$dldir~
11146      $install_prog $dir/$dlname \$dldir/$dlname'
11147    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11148      dlpath=$dir/\$dldll~
11149       $RM \$dlpath'
11150    shlibpath_overrides_runpath=yes
11151    dynamic_linker='Win32 link.exe'
11152    ;;
11153
11154  *)
11155    # Assume MSVC wrapper
11156    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11157    dynamic_linker='Win32 ld.exe'
11158    ;;
11159  esac
11160  # FIXME: first we should search . and the directory the executable is in
11161  shlibpath_var=PATH
11162  ;;
11163
11164darwin* | rhapsody*)
11165  dynamic_linker="$host_os dyld"
11166  version_type=darwin
11167  need_lib_prefix=no
11168  need_version=no
11169  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11170  soname_spec='${libname}${release}${major}$shared_ext'
11171  shlibpath_overrides_runpath=yes
11172  shlibpath_var=DYLD_LIBRARY_PATH
11173  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11174
11175  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11176  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11177  ;;
11178
11179dgux*)
11180  version_type=linux # correct to gnu/linux during the next big refactor
11181  need_lib_prefix=no
11182  need_version=no
11183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11184  soname_spec='${libname}${release}${shared_ext}$major'
11185  shlibpath_var=LD_LIBRARY_PATH
11186  ;;
11187
11188freebsd* | dragonfly*)
11189  # DragonFly does not have aout.  When/if they implement a new
11190  # versioning mechanism, adjust this.
11191  if test -x /usr/bin/objformat; then
11192    objformat=`/usr/bin/objformat`
11193  else
11194    case $host_os in
11195    freebsd[23].*) objformat=aout ;;
11196    *) objformat=elf ;;
11197    esac
11198  fi
11199  version_type=freebsd-$objformat
11200  case $version_type in
11201    freebsd-elf*)
11202      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11203      need_version=no
11204      need_lib_prefix=no
11205      ;;
11206    freebsd-*)
11207      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11208      need_version=yes
11209      ;;
11210  esac
11211  shlibpath_var=LD_LIBRARY_PATH
11212  case $host_os in
11213  freebsd2.*)
11214    shlibpath_overrides_runpath=yes
11215    ;;
11216  freebsd3.[01]* | freebsdelf3.[01]*)
11217    shlibpath_overrides_runpath=yes
11218    hardcode_into_libs=yes
11219    ;;
11220  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11221  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11222    shlibpath_overrides_runpath=no
11223    hardcode_into_libs=yes
11224    ;;
11225  *) # from 4.6 on, and DragonFly
11226    shlibpath_overrides_runpath=yes
11227    hardcode_into_libs=yes
11228    ;;
11229  esac
11230  ;;
11231
11232gnu*)
11233  version_type=linux # correct to gnu/linux during the next big refactor
11234  need_lib_prefix=no
11235  need_version=no
11236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11237  soname_spec='${libname}${release}${shared_ext}$major'
11238  shlibpath_var=LD_LIBRARY_PATH
11239  shlibpath_overrides_runpath=no
11240  hardcode_into_libs=yes
11241  ;;
11242
11243haiku*)
11244  version_type=linux # correct to gnu/linux during the next big refactor
11245  need_lib_prefix=no
11246  need_version=no
11247  dynamic_linker="$host_os runtime_loader"
11248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11249  soname_spec='${libname}${release}${shared_ext}$major'
11250  shlibpath_var=LIBRARY_PATH
11251  shlibpath_overrides_runpath=yes
11252  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11253  hardcode_into_libs=yes
11254  ;;
11255
11256hpux9* | hpux10* | hpux11*)
11257  # Give a soname corresponding to the major version so that dld.sl refuses to
11258  # link against other versions.
11259  version_type=sunos
11260  need_lib_prefix=no
11261  need_version=no
11262  case $host_cpu in
11263  ia64*)
11264    shrext_cmds='.so'
11265    hardcode_into_libs=yes
11266    dynamic_linker="$host_os dld.so"
11267    shlibpath_var=LD_LIBRARY_PATH
11268    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11269    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270    soname_spec='${libname}${release}${shared_ext}$major'
11271    if test "X$HPUX_IA64_MODE" = X32; then
11272      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11273    else
11274      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11275    fi
11276    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11277    ;;
11278  hppa*64*)
11279    shrext_cmds='.sl'
11280    hardcode_into_libs=yes
11281    dynamic_linker="$host_os dld.sl"
11282    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11283    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11284    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285    soname_spec='${libname}${release}${shared_ext}$major'
11286    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11287    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11288    ;;
11289  *)
11290    shrext_cmds='.sl'
11291    dynamic_linker="$host_os dld.sl"
11292    shlibpath_var=SHLIB_PATH
11293    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295    soname_spec='${libname}${release}${shared_ext}$major'
11296    ;;
11297  esac
11298  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11299  postinstall_cmds='chmod 555 $lib'
11300  # or fails outright, so override atomically:
11301  install_override_mode=555
11302  ;;
11303
11304interix[3-9]*)
11305  version_type=linux # correct to gnu/linux during the next big refactor
11306  need_lib_prefix=no
11307  need_version=no
11308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11309  soname_spec='${libname}${release}${shared_ext}$major'
11310  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11311  shlibpath_var=LD_LIBRARY_PATH
11312  shlibpath_overrides_runpath=no
11313  hardcode_into_libs=yes
11314  ;;
11315
11316irix5* | irix6* | nonstopux*)
11317  case $host_os in
11318    nonstopux*) version_type=nonstopux ;;
11319    *)
11320	if test "$lt_cv_prog_gnu_ld" = yes; then
11321		version_type=linux # correct to gnu/linux during the next big refactor
11322	else
11323		version_type=irix
11324	fi ;;
11325  esac
11326  need_lib_prefix=no
11327  need_version=no
11328  soname_spec='${libname}${release}${shared_ext}$major'
11329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11330  case $host_os in
11331  irix5* | nonstopux*)
11332    libsuff= shlibsuff=
11333    ;;
11334  *)
11335    case $LD in # libtool.m4 will add one of these switches to LD
11336    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11337      libsuff= shlibsuff= libmagic=32-bit;;
11338    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11339      libsuff=32 shlibsuff=N32 libmagic=N32;;
11340    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11341      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11342    *) libsuff= shlibsuff= libmagic=never-match;;
11343    esac
11344    ;;
11345  esac
11346  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11347  shlibpath_overrides_runpath=no
11348  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11349  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11350  hardcode_into_libs=yes
11351  ;;
11352
11353# No shared lib support for Linux oldld, aout, or coff.
11354linux*oldld* | linux*aout* | linux*coff*)
11355  dynamic_linker=no
11356  ;;
11357
11358# This must be glibc/ELF.
11359linux* | k*bsd*-gnu | kopensolaris*-gnu)
11360  version_type=linux # correct to gnu/linux during the next big refactor
11361  need_lib_prefix=no
11362  need_version=no
11363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364  soname_spec='${libname}${release}${shared_ext}$major'
11365  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11366  shlibpath_var=LD_LIBRARY_PATH
11367  shlibpath_overrides_runpath=no
11368
11369  # Some binutils ld are patched to set DT_RUNPATH
11370  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11371  $as_echo_n "(cached) " >&6
11372else
11373  lt_cv_shlibpath_overrides_runpath=no
11374    save_LDFLAGS=$LDFLAGS
11375    save_libdir=$libdir
11376    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11377	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11378    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h.  */
11380
11381int
11382main ()
11383{
11384
11385  ;
11386  return 0;
11387}
11388_ACEOF
11389if ac_fn_c_try_link "$LINENO"; then :
11390  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11391  lt_cv_shlibpath_overrides_runpath=yes
11392fi
11393fi
11394rm -f core conftest.err conftest.$ac_objext \
11395    conftest$ac_exeext conftest.$ac_ext
11396    LDFLAGS=$save_LDFLAGS
11397    libdir=$save_libdir
11398
11399fi
11400
11401  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11402
11403  # This implies no fast_install, which is unacceptable.
11404  # Some rework will be needed to allow for fast_install
11405  # before this can be enabled.
11406  hardcode_into_libs=yes
11407
11408  # Add ABI-specific directories to the system library path.
11409  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11410
11411  # Append ld.so.conf contents to the search path
11412  if test -f /etc/ld.so.conf; then
11413    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' ' '`
11414    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11415
11416  fi
11417
11418  # We used to test for /lib/ld.so.1 and disable shared libraries on
11419  # powerpc, because MkLinux only supported shared libraries with the
11420  # GNU dynamic linker.  Since this was broken with cross compilers,
11421  # most powerpc-linux boxes support dynamic linking these days and
11422  # people can always --disable-shared, the test was removed, and we
11423  # assume the GNU/Linux dynamic linker is in use.
11424  dynamic_linker='GNU/Linux ld.so'
11425  ;;
11426
11427netbsd*)
11428  version_type=sunos
11429  need_lib_prefix=no
11430  need_version=no
11431  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11432    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11433    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11434    dynamic_linker='NetBSD (a.out) ld.so'
11435  else
11436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11437    soname_spec='${libname}${release}${shared_ext}$major'
11438    dynamic_linker='NetBSD ld.elf_so'
11439  fi
11440  shlibpath_var=LD_LIBRARY_PATH
11441  shlibpath_overrides_runpath=yes
11442  hardcode_into_libs=yes
11443  ;;
11444
11445newsos6)
11446  version_type=linux # correct to gnu/linux during the next big refactor
11447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448  shlibpath_var=LD_LIBRARY_PATH
11449  shlibpath_overrides_runpath=yes
11450  ;;
11451
11452*nto* | *qnx*)
11453  version_type=qnx
11454  need_lib_prefix=no
11455  need_version=no
11456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457  soname_spec='${libname}${release}${shared_ext}$major'
11458  shlibpath_var=LD_LIBRARY_PATH
11459  shlibpath_overrides_runpath=no
11460  hardcode_into_libs=yes
11461  dynamic_linker='ldqnx.so'
11462  ;;
11463
11464openbsd*)
11465  version_type=sunos
11466  sys_lib_dlsearch_path_spec="/usr/lib"
11467  need_lib_prefix=no
11468  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11469  case $host_os in
11470    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11471    *)				need_version=no  ;;
11472  esac
11473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11474  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11475  shlibpath_var=LD_LIBRARY_PATH
11476  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11477    case $host_os in
11478      openbsd2.[89] | openbsd2.[89].*)
11479	shlibpath_overrides_runpath=no
11480	;;
11481      *)
11482	shlibpath_overrides_runpath=yes
11483	;;
11484      esac
11485  else
11486    shlibpath_overrides_runpath=yes
11487  fi
11488  ;;
11489
11490os2*)
11491  libname_spec='$name'
11492  shrext_cmds=".dll"
11493  need_lib_prefix=no
11494  library_names_spec='$libname${shared_ext} $libname.a'
11495  dynamic_linker='OS/2 ld.exe'
11496  shlibpath_var=LIBPATH
11497  ;;
11498
11499osf3* | osf4* | osf5*)
11500  version_type=osf
11501  need_lib_prefix=no
11502  need_version=no
11503  soname_spec='${libname}${release}${shared_ext}$major'
11504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505  shlibpath_var=LD_LIBRARY_PATH
11506  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11507  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11508  ;;
11509
11510rdos*)
11511  dynamic_linker=no
11512  ;;
11513
11514solaris*)
11515  version_type=linux # correct to gnu/linux during the next big refactor
11516  need_lib_prefix=no
11517  need_version=no
11518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519  soname_spec='${libname}${release}${shared_ext}$major'
11520  shlibpath_var=LD_LIBRARY_PATH
11521  shlibpath_overrides_runpath=yes
11522  hardcode_into_libs=yes
11523  # ldd complains unless libraries are executable
11524  postinstall_cmds='chmod +x $lib'
11525  ;;
11526
11527sunos4*)
11528  version_type=sunos
11529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11530  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11531  shlibpath_var=LD_LIBRARY_PATH
11532  shlibpath_overrides_runpath=yes
11533  if test "$with_gnu_ld" = yes; then
11534    need_lib_prefix=no
11535  fi
11536  need_version=yes
11537  ;;
11538
11539sysv4 | sysv4.3*)
11540  version_type=linux # correct to gnu/linux during the next big refactor
11541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542  soname_spec='${libname}${release}${shared_ext}$major'
11543  shlibpath_var=LD_LIBRARY_PATH
11544  case $host_vendor in
11545    sni)
11546      shlibpath_overrides_runpath=no
11547      need_lib_prefix=no
11548      runpath_var=LD_RUN_PATH
11549      ;;
11550    siemens)
11551      need_lib_prefix=no
11552      ;;
11553    motorola)
11554      need_lib_prefix=no
11555      need_version=no
11556      shlibpath_overrides_runpath=no
11557      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11558      ;;
11559  esac
11560  ;;
11561
11562sysv4*MP*)
11563  if test -d /usr/nec ;then
11564    version_type=linux # correct to gnu/linux during the next big refactor
11565    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11566    soname_spec='$libname${shared_ext}.$major'
11567    shlibpath_var=LD_LIBRARY_PATH
11568  fi
11569  ;;
11570
11571sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11572  version_type=freebsd-elf
11573  need_lib_prefix=no
11574  need_version=no
11575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11576  soname_spec='${libname}${release}${shared_ext}$major'
11577  shlibpath_var=LD_LIBRARY_PATH
11578  shlibpath_overrides_runpath=yes
11579  hardcode_into_libs=yes
11580  if test "$with_gnu_ld" = yes; then
11581    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11582  else
11583    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11584    case $host_os in
11585      sco3.2v5*)
11586        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11587	;;
11588    esac
11589  fi
11590  sys_lib_dlsearch_path_spec='/usr/lib'
11591  ;;
11592
11593tpf*)
11594  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11595  version_type=linux # correct to gnu/linux during the next big refactor
11596  need_lib_prefix=no
11597  need_version=no
11598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599  shlibpath_var=LD_LIBRARY_PATH
11600  shlibpath_overrides_runpath=no
11601  hardcode_into_libs=yes
11602  ;;
11603
11604uts4*)
11605  version_type=linux # correct to gnu/linux during the next big refactor
11606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607  soname_spec='${libname}${release}${shared_ext}$major'
11608  shlibpath_var=LD_LIBRARY_PATH
11609  ;;
11610
11611*)
11612  dynamic_linker=no
11613  ;;
11614esac
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11616$as_echo "$dynamic_linker" >&6; }
11617test "$dynamic_linker" = no && can_build_shared=no
11618
11619variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11620if test "$GCC" = yes; then
11621  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11622fi
11623
11624if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11625  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11626fi
11627if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11628  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11629fi
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11723$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11724hardcode_action=
11725if test -n "$hardcode_libdir_flag_spec" ||
11726   test -n "$runpath_var" ||
11727   test "X$hardcode_automatic" = "Xyes" ; then
11728
11729  # We can hardcode non-existent directories.
11730  if test "$hardcode_direct" != no &&
11731     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11732     # have to relink, otherwise we might link with an installed library
11733     # when we should be linking with a yet-to-be-installed one
11734     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11735     test "$hardcode_minus_L" != no; then
11736    # Linking always hardcodes the temporary library directory.
11737    hardcode_action=relink
11738  else
11739    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11740    hardcode_action=immediate
11741  fi
11742else
11743  # We cannot hardcode anything, or else we can only hardcode existing
11744  # directories.
11745  hardcode_action=unsupported
11746fi
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11748$as_echo "$hardcode_action" >&6; }
11749
11750if test "$hardcode_action" = relink ||
11751   test "$inherit_rpath" = yes; then
11752  # Fast installation is not supported
11753  enable_fast_install=no
11754elif test "$shlibpath_overrides_runpath" = yes ||
11755     test "$enable_shared" = no; then
11756  # Fast installation is not necessary
11757  enable_fast_install=needless
11758fi
11759
11760
11761
11762
11763
11764
11765  if test "x$enable_dlopen" != xyes; then
11766  enable_dlopen=unknown
11767  enable_dlopen_self=unknown
11768  enable_dlopen_self_static=unknown
11769else
11770  lt_cv_dlopen=no
11771  lt_cv_dlopen_libs=
11772
11773  case $host_os in
11774  beos*)
11775    lt_cv_dlopen="load_add_on"
11776    lt_cv_dlopen_libs=
11777    lt_cv_dlopen_self=yes
11778    ;;
11779
11780  mingw* | pw32* | cegcc*)
11781    lt_cv_dlopen="LoadLibrary"
11782    lt_cv_dlopen_libs=
11783    ;;
11784
11785  cygwin*)
11786    lt_cv_dlopen="dlopen"
11787    lt_cv_dlopen_libs=
11788    ;;
11789
11790  darwin*)
11791  # if libdl is installed we need to link against it
11792    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11793$as_echo_n "checking for dlopen in -ldl... " >&6; }
11794if ${ac_cv_lib_dl_dlopen+:} false; then :
11795  $as_echo_n "(cached) " >&6
11796else
11797  ac_check_lib_save_LIBS=$LIBS
11798LIBS="-ldl  $LIBS"
11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801
11802/* Override any GCC internal prototype to avoid an error.
11803   Use char because int might match the return type of a GCC
11804   builtin and then its argument prototype would still apply.  */
11805#ifdef __cplusplus
11806extern "C"
11807#endif
11808char dlopen ();
11809int
11810main ()
11811{
11812return dlopen ();
11813  ;
11814  return 0;
11815}
11816_ACEOF
11817if ac_fn_c_try_link "$LINENO"; then :
11818  ac_cv_lib_dl_dlopen=yes
11819else
11820  ac_cv_lib_dl_dlopen=no
11821fi
11822rm -f core conftest.err conftest.$ac_objext \
11823    conftest$ac_exeext conftest.$ac_ext
11824LIBS=$ac_check_lib_save_LIBS
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11827$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11828if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11829  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11830else
11831
11832    lt_cv_dlopen="dyld"
11833    lt_cv_dlopen_libs=
11834    lt_cv_dlopen_self=yes
11835
11836fi
11837
11838    ;;
11839
11840  *)
11841    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11842if test "x$ac_cv_func_shl_load" = xyes; then :
11843  lt_cv_dlopen="shl_load"
11844else
11845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11846$as_echo_n "checking for shl_load in -ldld... " >&6; }
11847if ${ac_cv_lib_dld_shl_load+:} false; then :
11848  $as_echo_n "(cached) " >&6
11849else
11850  ac_check_lib_save_LIBS=$LIBS
11851LIBS="-ldld  $LIBS"
11852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853/* end confdefs.h.  */
11854
11855/* Override any GCC internal prototype to avoid an error.
11856   Use char because int might match the return type of a GCC
11857   builtin and then its argument prototype would still apply.  */
11858#ifdef __cplusplus
11859extern "C"
11860#endif
11861char shl_load ();
11862int
11863main ()
11864{
11865return shl_load ();
11866  ;
11867  return 0;
11868}
11869_ACEOF
11870if ac_fn_c_try_link "$LINENO"; then :
11871  ac_cv_lib_dld_shl_load=yes
11872else
11873  ac_cv_lib_dld_shl_load=no
11874fi
11875rm -f core conftest.err conftest.$ac_objext \
11876    conftest$ac_exeext conftest.$ac_ext
11877LIBS=$ac_check_lib_save_LIBS
11878fi
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11880$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11881if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11882  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11883else
11884  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11885if test "x$ac_cv_func_dlopen" = xyes; then :
11886  lt_cv_dlopen="dlopen"
11887else
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11889$as_echo_n "checking for dlopen in -ldl... " >&6; }
11890if ${ac_cv_lib_dl_dlopen+:} false; then :
11891  $as_echo_n "(cached) " >&6
11892else
11893  ac_check_lib_save_LIBS=$LIBS
11894LIBS="-ldl  $LIBS"
11895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896/* end confdefs.h.  */
11897
11898/* Override any GCC internal prototype to avoid an error.
11899   Use char because int might match the return type of a GCC
11900   builtin and then its argument prototype would still apply.  */
11901#ifdef __cplusplus
11902extern "C"
11903#endif
11904char dlopen ();
11905int
11906main ()
11907{
11908return dlopen ();
11909  ;
11910  return 0;
11911}
11912_ACEOF
11913if ac_fn_c_try_link "$LINENO"; then :
11914  ac_cv_lib_dl_dlopen=yes
11915else
11916  ac_cv_lib_dl_dlopen=no
11917fi
11918rm -f core conftest.err conftest.$ac_objext \
11919    conftest$ac_exeext conftest.$ac_ext
11920LIBS=$ac_check_lib_save_LIBS
11921fi
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11923$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11924if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11925  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11926else
11927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11928$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11929if ${ac_cv_lib_svld_dlopen+:} false; then :
11930  $as_echo_n "(cached) " >&6
11931else
11932  ac_check_lib_save_LIBS=$LIBS
11933LIBS="-lsvld  $LIBS"
11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h.  */
11936
11937/* Override any GCC internal prototype to avoid an error.
11938   Use char because int might match the return type of a GCC
11939   builtin and then its argument prototype would still apply.  */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943char dlopen ();
11944int
11945main ()
11946{
11947return dlopen ();
11948  ;
11949  return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_link "$LINENO"; then :
11953  ac_cv_lib_svld_dlopen=yes
11954else
11955  ac_cv_lib_svld_dlopen=no
11956fi
11957rm -f core conftest.err conftest.$ac_objext \
11958    conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11962$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11963if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11964  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11965else
11966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11967$as_echo_n "checking for dld_link in -ldld... " >&6; }
11968if ${ac_cv_lib_dld_dld_link+:} false; then :
11969  $as_echo_n "(cached) " >&6
11970else
11971  ac_check_lib_save_LIBS=$LIBS
11972LIBS="-ldld  $LIBS"
11973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974/* end confdefs.h.  */
11975
11976/* Override any GCC internal prototype to avoid an error.
11977   Use char because int might match the return type of a GCC
11978   builtin and then its argument prototype would still apply.  */
11979#ifdef __cplusplus
11980extern "C"
11981#endif
11982char dld_link ();
11983int
11984main ()
11985{
11986return dld_link ();
11987  ;
11988  return 0;
11989}
11990_ACEOF
11991if ac_fn_c_try_link "$LINENO"; then :
11992  ac_cv_lib_dld_dld_link=yes
11993else
11994  ac_cv_lib_dld_dld_link=no
11995fi
11996rm -f core conftest.err conftest.$ac_objext \
11997    conftest$ac_exeext conftest.$ac_ext
11998LIBS=$ac_check_lib_save_LIBS
11999fi
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12001$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12002if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12003  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12004fi
12005
12006
12007fi
12008
12009
12010fi
12011
12012
12013fi
12014
12015
12016fi
12017
12018
12019fi
12020
12021    ;;
12022  esac
12023
12024  if test "x$lt_cv_dlopen" != xno; then
12025    enable_dlopen=yes
12026  else
12027    enable_dlopen=no
12028  fi
12029
12030  case $lt_cv_dlopen in
12031  dlopen)
12032    save_CPPFLAGS="$CPPFLAGS"
12033    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12034
12035    save_LDFLAGS="$LDFLAGS"
12036    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12037
12038    save_LIBS="$LIBS"
12039    LIBS="$lt_cv_dlopen_libs $LIBS"
12040
12041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12042$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12043if ${lt_cv_dlopen_self+:} false; then :
12044  $as_echo_n "(cached) " >&6
12045else
12046  	  if test "$cross_compiling" = yes; then :
12047  lt_cv_dlopen_self=cross
12048else
12049  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12050  lt_status=$lt_dlunknown
12051  cat > conftest.$ac_ext <<_LT_EOF
12052#line $LINENO "configure"
12053#include "confdefs.h"
12054
12055#if HAVE_DLFCN_H
12056#include <dlfcn.h>
12057#endif
12058
12059#include <stdio.h>
12060
12061#ifdef RTLD_GLOBAL
12062#  define LT_DLGLOBAL		RTLD_GLOBAL
12063#else
12064#  ifdef DL_GLOBAL
12065#    define LT_DLGLOBAL		DL_GLOBAL
12066#  else
12067#    define LT_DLGLOBAL		0
12068#  endif
12069#endif
12070
12071/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12072   find out it does not work in some platform. */
12073#ifndef LT_DLLAZY_OR_NOW
12074#  ifdef RTLD_LAZY
12075#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12076#  else
12077#    ifdef DL_LAZY
12078#      define LT_DLLAZY_OR_NOW		DL_LAZY
12079#    else
12080#      ifdef RTLD_NOW
12081#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12082#      else
12083#        ifdef DL_NOW
12084#          define LT_DLLAZY_OR_NOW	DL_NOW
12085#        else
12086#          define LT_DLLAZY_OR_NOW	0
12087#        endif
12088#      endif
12089#    endif
12090#  endif
12091#endif
12092
12093/* When -fvisbility=hidden is used, assume the code has been annotated
12094   correspondingly for the symbols needed.  */
12095#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12096int fnord () __attribute__((visibility("default")));
12097#endif
12098
12099int fnord () { return 42; }
12100int main ()
12101{
12102  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12103  int status = $lt_dlunknown;
12104
12105  if (self)
12106    {
12107      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12108      else
12109        {
12110	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12111          else puts (dlerror ());
12112	}
12113      /* dlclose (self); */
12114    }
12115  else
12116    puts (dlerror ());
12117
12118  return status;
12119}
12120_LT_EOF
12121  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12122  (eval $ac_link) 2>&5
12123  ac_status=$?
12124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12125  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12126    (./conftest; exit; ) >&5 2>/dev/null
12127    lt_status=$?
12128    case x$lt_status in
12129      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12130      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12131      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12132    esac
12133  else :
12134    # compilation failed
12135    lt_cv_dlopen_self=no
12136  fi
12137fi
12138rm -fr conftest*
12139
12140
12141fi
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12143$as_echo "$lt_cv_dlopen_self" >&6; }
12144
12145    if test "x$lt_cv_dlopen_self" = xyes; then
12146      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12147      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12148$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12149if ${lt_cv_dlopen_self_static+:} false; then :
12150  $as_echo_n "(cached) " >&6
12151else
12152  	  if test "$cross_compiling" = yes; then :
12153  lt_cv_dlopen_self_static=cross
12154else
12155  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12156  lt_status=$lt_dlunknown
12157  cat > conftest.$ac_ext <<_LT_EOF
12158#line $LINENO "configure"
12159#include "confdefs.h"
12160
12161#if HAVE_DLFCN_H
12162#include <dlfcn.h>
12163#endif
12164
12165#include <stdio.h>
12166
12167#ifdef RTLD_GLOBAL
12168#  define LT_DLGLOBAL		RTLD_GLOBAL
12169#else
12170#  ifdef DL_GLOBAL
12171#    define LT_DLGLOBAL		DL_GLOBAL
12172#  else
12173#    define LT_DLGLOBAL		0
12174#  endif
12175#endif
12176
12177/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12178   find out it does not work in some platform. */
12179#ifndef LT_DLLAZY_OR_NOW
12180#  ifdef RTLD_LAZY
12181#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12182#  else
12183#    ifdef DL_LAZY
12184#      define LT_DLLAZY_OR_NOW		DL_LAZY
12185#    else
12186#      ifdef RTLD_NOW
12187#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12188#      else
12189#        ifdef DL_NOW
12190#          define LT_DLLAZY_OR_NOW	DL_NOW
12191#        else
12192#          define LT_DLLAZY_OR_NOW	0
12193#        endif
12194#      endif
12195#    endif
12196#  endif
12197#endif
12198
12199/* When -fvisbility=hidden is used, assume the code has been annotated
12200   correspondingly for the symbols needed.  */
12201#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12202int fnord () __attribute__((visibility("default")));
12203#endif
12204
12205int fnord () { return 42; }
12206int main ()
12207{
12208  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12209  int status = $lt_dlunknown;
12210
12211  if (self)
12212    {
12213      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12214      else
12215        {
12216	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12217          else puts (dlerror ());
12218	}
12219      /* dlclose (self); */
12220    }
12221  else
12222    puts (dlerror ());
12223
12224  return status;
12225}
12226_LT_EOF
12227  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12228  (eval $ac_link) 2>&5
12229  ac_status=$?
12230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12231  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12232    (./conftest; exit; ) >&5 2>/dev/null
12233    lt_status=$?
12234    case x$lt_status in
12235      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12236      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12237      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12238    esac
12239  else :
12240    # compilation failed
12241    lt_cv_dlopen_self_static=no
12242  fi
12243fi
12244rm -fr conftest*
12245
12246
12247fi
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12249$as_echo "$lt_cv_dlopen_self_static" >&6; }
12250    fi
12251
12252    CPPFLAGS="$save_CPPFLAGS"
12253    LDFLAGS="$save_LDFLAGS"
12254    LIBS="$save_LIBS"
12255    ;;
12256  esac
12257
12258  case $lt_cv_dlopen_self in
12259  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12260  *) enable_dlopen_self=unknown ;;
12261  esac
12262
12263  case $lt_cv_dlopen_self_static in
12264  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12265  *) enable_dlopen_self_static=unknown ;;
12266  esac
12267fi
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285striplib=
12286old_striplib=
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12288$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12289if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12290  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12291  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293$as_echo "yes" >&6; }
12294else
12295# FIXME - insert some real tests, host_os isn't really good enough
12296  case $host_os in
12297  darwin*)
12298    if test -n "$STRIP" ; then
12299      striplib="$STRIP -x"
12300      old_striplib="$STRIP -S"
12301      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302$as_echo "yes" >&6; }
12303    else
12304      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305$as_echo "no" >&6; }
12306    fi
12307    ;;
12308  *)
12309    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310$as_echo "no" >&6; }
12311    ;;
12312  esac
12313fi
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326  # Report which library types will actually be built
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12328$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12330$as_echo "$can_build_shared" >&6; }
12331
12332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12333$as_echo_n "checking whether to build shared libraries... " >&6; }
12334  test "$can_build_shared" = "no" && enable_shared=no
12335
12336  # On AIX, shared libraries and static libraries use the same namespace, and
12337  # are all built from PIC.
12338  case $host_os in
12339  aix3*)
12340    test "$enable_shared" = yes && enable_static=no
12341    if test -n "$RANLIB"; then
12342      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12343      postinstall_cmds='$RANLIB $lib'
12344    fi
12345    ;;
12346
12347  aix[4-9]*)
12348    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12349      test "$enable_shared" = yes && enable_static=no
12350    fi
12351    ;;
12352  esac
12353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12354$as_echo "$enable_shared" >&6; }
12355
12356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12357$as_echo_n "checking whether to build static libraries... " >&6; }
12358  # Make sure either enable_shared or enable_static is yes.
12359  test "$enable_shared" = yes || enable_static=yes
12360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12361$as_echo "$enable_static" >&6; }
12362
12363
12364
12365
12366fi
12367ac_ext=c
12368ac_cpp='$CPP $CPPFLAGS'
12369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12371ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372
12373CC="$lt_save_CC"
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389        ac_config_commands="$ac_config_commands libtool"
12390
12391
12392
12393
12394# Only expand once:
12395
12396
12397
12398# Set third party library versions
12399unity_version=Unity-2.4.3
12400
12401  prefix_NONE=
12402  exec_prefix_NONE=
12403  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
12404  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
12405  eval ac_define_dir="\"$unity_version\""
12406  eval ac_define_dir="\"$ac_define_dir\""
12407  UNITY_VERSION="$ac_define_dir"
12408
12409
12410cat >>confdefs.h <<_ACEOF
12411#define UNITY_VERSION "$ac_define_dir"
12412_ACEOF
12413
12414  test "$prefix_NONE" && prefix=NONE
12415  test "$exec_prefix_NONE" && exec_prefix=NONE
12416
12417
12418
12419# Compiler options
12420if test "x$GCC" = "xyes"; then
12421   CFLAGS="$CFLAGS -Wall -D_FORTIFY_SOURCE=2"
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: Adding gcc options: $CFLAGS" >&5
12423$as_echo "$as_me: Adding gcc options: $CFLAGS" >&6;}
12424fi
12425
12426ggl_check_stack_protector_save_CXXFLAGS="$CXXFLAGS"
12427ggl_check_stack_protector_save_CFLAGS="$CFLAGS"
12428
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fstack-protector and -fstack-protector-all are supported." >&5
12430$as_echo_n "checking if -fstack-protector and -fstack-protector-all are supported.... " >&6; }
12431
12432CXXFLAGS="$CXXFLAGS -fstack-protector"
12433CFLAGS="$CFLAGS -fstack-protector"
12434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435/* end confdefs.h.  */
12436
12437int main() {
12438  return 0;
12439}
12440
12441_ACEOF
12442if ac_fn_c_try_compile "$LINENO"; then :
12443  ggl_check_stack_protector_ok=yes
12444else
12445  ggl_check_stack_protector_ok=no
12446fi
12447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448
12449CXXFLAGS="$ggl_check_stack_protector_save_CXXFLAGS -fstack-protector-all"
12450CFLAGS="$ggl_check_stack_protector_save_CFLAGS -fstack-protector-all"
12451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452/* end confdefs.h.  */
12453
12454int main() {
12455  return 0;
12456}
12457
12458_ACEOF
12459if ac_fn_c_try_compile "$LINENO"; then :
12460  ggl_check_stack_protector_all_ok=yes
12461else
12462  ggl_check_stack_protector_all_ok=no
12463fi
12464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12465
12466if test "x$ggl_check_stack_protector_ok" = "xyes" -a \
12467        "x$ggl_check_stack_protector_all_ok" = "xyes"; then
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12469$as_echo "yes" >&6; }
12470  has_stack_protector=yes
12471else
12472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473$as_echo "no" >&6; }
12474  has_stack_protector=no
12475fi
12476
12477CXXFLAGS="$ggl_check_stack_protector_save_CXXFLAGS"
12478CFLAGS="$ggl_check_stack_protector_save_CFLAGS"
12479
12480
12481IS_AIX=no
12482# XXX - disable -fstack-protector due to missing libssp_nonshared
12483case "$host_os" in
12484    *aix*)
12485        { $as_echo "$as_me:${as_lineno-$LINENO}: -fstack-protector disabled on AIX" >&5
12486$as_echo "$as_me: -fstack-protector disabled on AIX" >&6;}
12487        has_stack_protector=no
12488        IS_AIX=yes
12489        ;;
12490    *sunos*)
12491        { $as_echo "$as_me:${as_lineno-$LINENO}: -fstack-protector disabled on SunOS" >&5
12492$as_echo "$as_me: -fstack-protector disabled on SunOS" >&6;}
12493        has_stack_protector=no
12494        ;;
12495    *solaris*)
12496        { $as_echo "$as_me:${as_lineno-$LINENO}: -fstack-protector disabled on Solaris" >&5
12497$as_echo "$as_me: -fstack-protector disabled on Solaris" >&6;}
12498        has_stack_protector=no
12499        ;;
12500esac
12501if test x$has_stack_protector = xyes; then
12502   CFLAGS="$CFLAGS -fstack-protector"
12503   { $as_echo "$as_me:${as_lineno-$LINENO}: -fstack-protector enabled in CFLAGS" >&5
12504$as_echo "$as_me: -fstack-protector enabled in CFLAGS" >&6;}
12505fi
12506
12507IS_AIX="$IS_AIX"
12508
12509
12510# Check for platform features
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12512$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12513if ${ac_cv_c_bigendian+:} false; then :
12514  $as_echo_n "(cached) " >&6
12515else
12516  ac_cv_c_bigendian=unknown
12517    # See if we're dealing with a universal compiler.
12518    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519/* end confdefs.h.  */
12520#ifndef __APPLE_CC__
12521	       not a universal capable compiler
12522	     #endif
12523	     typedef int dummy;
12524
12525_ACEOF
12526if ac_fn_c_try_compile "$LINENO"; then :
12527
12528	# Check for potential -arch flags.  It is not universal unless
12529	# there are at least two -arch flags with different values.
12530	ac_arch=
12531	ac_prev=
12532	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12533	 if test -n "$ac_prev"; then
12534	   case $ac_word in
12535	     i?86 | x86_64 | ppc | ppc64)
12536	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12537		 ac_arch=$ac_word
12538	       else
12539		 ac_cv_c_bigendian=universal
12540		 break
12541	       fi
12542	       ;;
12543	   esac
12544	   ac_prev=
12545	 elif test "x$ac_word" = "x-arch"; then
12546	   ac_prev=arch
12547	 fi
12548       done
12549fi
12550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551    if test $ac_cv_c_bigendian = unknown; then
12552      # See if sys/param.h defines the BYTE_ORDER macro.
12553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554/* end confdefs.h.  */
12555#include <sys/types.h>
12556	     #include <sys/param.h>
12557
12558int
12559main ()
12560{
12561#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12562		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12563		     && LITTLE_ENDIAN)
12564	      bogus endian macros
12565	     #endif
12566
12567  ;
12568  return 0;
12569}
12570_ACEOF
12571if ac_fn_c_try_compile "$LINENO"; then :
12572  # It does; now see whether it defined to BIG_ENDIAN or not.
12573	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574/* end confdefs.h.  */
12575#include <sys/types.h>
12576		#include <sys/param.h>
12577
12578int
12579main ()
12580{
12581#if BYTE_ORDER != BIG_ENDIAN
12582		 not big endian
12583		#endif
12584
12585  ;
12586  return 0;
12587}
12588_ACEOF
12589if ac_fn_c_try_compile "$LINENO"; then :
12590  ac_cv_c_bigendian=yes
12591else
12592  ac_cv_c_bigendian=no
12593fi
12594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595fi
12596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12597    fi
12598    if test $ac_cv_c_bigendian = unknown; then
12599      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12600      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601/* end confdefs.h.  */
12602#include <limits.h>
12603
12604int
12605main ()
12606{
12607#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12608	      bogus endian macros
12609	     #endif
12610
12611  ;
12612  return 0;
12613}
12614_ACEOF
12615if ac_fn_c_try_compile "$LINENO"; then :
12616  # It does; now see whether it defined to _BIG_ENDIAN or not.
12617	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618/* end confdefs.h.  */
12619#include <limits.h>
12620
12621int
12622main ()
12623{
12624#ifndef _BIG_ENDIAN
12625		 not big endian
12626		#endif
12627
12628  ;
12629  return 0;
12630}
12631_ACEOF
12632if ac_fn_c_try_compile "$LINENO"; then :
12633  ac_cv_c_bigendian=yes
12634else
12635  ac_cv_c_bigendian=no
12636fi
12637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638fi
12639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640    fi
12641    if test $ac_cv_c_bigendian = unknown; then
12642      # Compile a test program.
12643      if test "$cross_compiling" = yes; then :
12644  # Try to guess by grepping values from an object file.
12645	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646/* end confdefs.h.  */
12647short int ascii_mm[] =
12648		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12649		short int ascii_ii[] =
12650		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12651		int use_ascii (int i) {
12652		  return ascii_mm[i] + ascii_ii[i];
12653		}
12654		short int ebcdic_ii[] =
12655		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12656		short int ebcdic_mm[] =
12657		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12658		int use_ebcdic (int i) {
12659		  return ebcdic_mm[i] + ebcdic_ii[i];
12660		}
12661		extern int foo;
12662
12663int
12664main ()
12665{
12666return use_ascii (foo) == use_ebcdic (foo);
12667  ;
12668  return 0;
12669}
12670_ACEOF
12671if ac_fn_c_try_compile "$LINENO"; then :
12672  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12673	      ac_cv_c_bigendian=yes
12674	    fi
12675	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12676	      if test "$ac_cv_c_bigendian" = unknown; then
12677		ac_cv_c_bigendian=no
12678	      else
12679		# finding both strings is unlikely to happen, but who knows?
12680		ac_cv_c_bigendian=unknown
12681	      fi
12682	    fi
12683fi
12684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12685else
12686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687/* end confdefs.h.  */
12688$ac_includes_default
12689int
12690main ()
12691{
12692
12693	     /* Are we little or big endian?  From Harbison&Steele.  */
12694	     union
12695	     {
12696	       long int l;
12697	       char c[sizeof (long int)];
12698	     } u;
12699	     u.l = 1;
12700	     return u.c[sizeof (long int) - 1] == 1;
12701
12702  ;
12703  return 0;
12704}
12705_ACEOF
12706if ac_fn_c_try_run "$LINENO"; then :
12707  ac_cv_c_bigendian=no
12708else
12709  ac_cv_c_bigendian=yes
12710fi
12711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12712  conftest.$ac_objext conftest.beam conftest.$ac_ext
12713fi
12714
12715    fi
12716fi
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12718$as_echo "$ac_cv_c_bigendian" >&6; }
12719 case $ac_cv_c_bigendian in #(
12720   yes)
12721     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12722;; #(
12723   no)
12724      ;; #(
12725   universal)
12726
12727$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12728
12729     ;; #(
12730   *)
12731     as_fn_error $? "unknown endianness
12732 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12733 esac
12734
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12736$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12737if ${ac_cv_c_const+:} false; then :
12738  $as_echo_n "(cached) " >&6
12739else
12740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741/* end confdefs.h.  */
12742
12743int
12744main ()
12745{
12746
12747#ifndef __cplusplus
12748  /* Ultrix mips cc rejects this sort of thing.  */
12749  typedef int charset[2];
12750  const charset cs = { 0, 0 };
12751  /* SunOS 4.1.1 cc rejects this.  */
12752  char const *const *pcpcc;
12753  char **ppc;
12754  /* NEC SVR4.0.2 mips cc rejects this.  */
12755  struct point {int x, y;};
12756  static struct point const zero = {0,0};
12757  /* AIX XL C 1.02.0.0 rejects this.
12758     It does not let you subtract one const X* pointer from another in
12759     an arm of an if-expression whose if-part is not a constant
12760     expression */
12761  const char *g = "string";
12762  pcpcc = &g + (g ? g-g : 0);
12763  /* HPUX 7.0 cc rejects these. */
12764  ++pcpcc;
12765  ppc = (char**) pcpcc;
12766  pcpcc = (char const *const *) ppc;
12767  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12768    char tx;
12769    char *t = &tx;
12770    char const *s = 0 ? (char *) 0 : (char const *) 0;
12771
12772    *t++ = 0;
12773    if (s) return 0;
12774  }
12775  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12776    int x[] = {25, 17};
12777    const int *foo = &x[0];
12778    ++foo;
12779  }
12780  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12781    typedef const int *iptr;
12782    iptr p = 0;
12783    ++p;
12784  }
12785  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12786       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12787    struct s { int j; const int *ap[3]; } bx;
12788    struct s *b = &bx; b->j = 5;
12789  }
12790  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12791    const int foo = 10;
12792    if (!foo) return 0;
12793  }
12794  return !cs[0] && !zero.x;
12795#endif
12796
12797  ;
12798  return 0;
12799}
12800_ACEOF
12801if ac_fn_c_try_compile "$LINENO"; then :
12802  ac_cv_c_const=yes
12803else
12804  ac_cv_c_const=no
12805fi
12806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807fi
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12809$as_echo "$ac_cv_c_const" >&6; }
12810if test $ac_cv_c_const = no; then
12811
12812$as_echo "#define const /**/" >>confdefs.h
12813
12814fi
12815
12816ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12817case $ac_cv_c_int64_t in #(
12818  no|yes) ;; #(
12819  *)
12820
12821cat >>confdefs.h <<_ACEOF
12822#define int64_t $ac_cv_c_int64_t
12823_ACEOF
12824;;
12825esac
12826
12827
12828
12829# Check headers
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12831$as_echo_n "checking for ANSI C header files... " >&6; }
12832if ${ac_cv_header_stdc+:} false; then :
12833  $as_echo_n "(cached) " >&6
12834else
12835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836/* end confdefs.h.  */
12837#include <stdlib.h>
12838#include <stdarg.h>
12839#include <string.h>
12840#include <float.h>
12841
12842int
12843main ()
12844{
12845
12846  ;
12847  return 0;
12848}
12849_ACEOF
12850if ac_fn_c_try_compile "$LINENO"; then :
12851  ac_cv_header_stdc=yes
12852else
12853  ac_cv_header_stdc=no
12854fi
12855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856
12857if test $ac_cv_header_stdc = yes; then
12858  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860/* end confdefs.h.  */
12861#include <string.h>
12862
12863_ACEOF
12864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12865  $EGREP "memchr" >/dev/null 2>&1; then :
12866
12867else
12868  ac_cv_header_stdc=no
12869fi
12870rm -f conftest*
12871
12872fi
12873
12874if test $ac_cv_header_stdc = yes; then
12875  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h.  */
12878#include <stdlib.h>
12879
12880_ACEOF
12881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12882  $EGREP "free" >/dev/null 2>&1; then :
12883
12884else
12885  ac_cv_header_stdc=no
12886fi
12887rm -f conftest*
12888
12889fi
12890
12891if test $ac_cv_header_stdc = yes; then
12892  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12893  if test "$cross_compiling" = yes; then :
12894  :
12895else
12896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897/* end confdefs.h.  */
12898#include <ctype.h>
12899#include <stdlib.h>
12900#if ((' ' & 0x0FF) == 0x020)
12901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12903#else
12904# define ISLOWER(c) \
12905		   (('a' <= (c) && (c) <= 'i') \
12906		     || ('j' <= (c) && (c) <= 'r') \
12907		     || ('s' <= (c) && (c) <= 'z'))
12908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12909#endif
12910
12911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12912int
12913main ()
12914{
12915  int i;
12916  for (i = 0; i < 256; i++)
12917    if (XOR (islower (i), ISLOWER (i))
12918	|| toupper (i) != TOUPPER (i))
12919      return 2;
12920  return 0;
12921}
12922_ACEOF
12923if ac_fn_c_try_run "$LINENO"; then :
12924
12925else
12926  ac_cv_header_stdc=no
12927fi
12928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12929  conftest.$ac_objext conftest.beam conftest.$ac_ext
12930fi
12931
12932fi
12933fi
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12935$as_echo "$ac_cv_header_stdc" >&6; }
12936if test $ac_cv_header_stdc = yes; then
12937
12938$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12939
12940fi
12941
12942for ac_header in inttypes.h limits.h memory.h stdint.h stdlib.h string.h unistd.h
12943do :
12944  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12945ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12946if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12947  cat >>confdefs.h <<_ACEOF
12948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12949_ACEOF
12950
12951fi
12952
12953done
12954
12955
12956# Check OpenSSL
12957
12958    found=false
12959
12960# Check whether --with-openssl was given.
12961if test "${with_openssl+set}" = set; then :
12962  withval=$with_openssl;
12963            case "$withval" in
12964            "" | y | ye | yes | n | no)
12965            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
12966              ;;
12967            *) ssldirs="$withval"
12968              ;;
12969            esac
12970
12971else
12972
12973            # if pkg-config is installed and openssl has installed a .pc file,
12974            # then use that information and don't search ssldirs
12975            # Extract the first word of "pkg-config", so it can be a program name with args.
12976set dummy pkg-config; ac_word=$2
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978$as_echo_n "checking for $ac_word... " >&6; }
12979if ${ac_cv_path_PKG_CONFIG+:} false; then :
12980  $as_echo_n "(cached) " >&6
12981else
12982  case $PKG_CONFIG in
12983  [\\/]* | ?:[\\/]*)
12984  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12985  ;;
12986  *)
12987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988for as_dir in $PATH
12989do
12990  IFS=$as_save_IFS
12991  test -z "$as_dir" && as_dir=.
12992    for ac_exec_ext in '' $ac_executable_extensions; do
12993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12994    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996    break 2
12997  fi
12998done
12999  done
13000IFS=$as_save_IFS
13001
13002  ;;
13003esac
13004fi
13005PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13006if test -n "$PKG_CONFIG"; then
13007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13008$as_echo "$PKG_CONFIG" >&6; }
13009else
13010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011$as_echo "no" >&6; }
13012fi
13013
13014
13015            if test x"$PKG_CONFIG" != x""; then
13016                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
13017                if test $? = 0; then
13018                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
13019                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
13020                    found=true
13021                fi
13022            fi
13023
13024            # no such luck; use some default ssldirs
13025            if ! $found; then
13026                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
13027            fi
13028
13029
13030fi
13031
13032
13033
13034    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
13035    # an 'openssl' subdirectory
13036
13037    if ! $found; then
13038        OPENSSL_INCLUDES=
13039        for ssldir in $ssldirs; do
13040            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
13041$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
13042            if test -f "$ssldir/include/openssl/ssl.h"; then
13043                OPENSSL_INCLUDES="-I$ssldir/include"
13044                OPENSSL_LDFLAGS="-L$ssldir/lib"
13045                OPENSSL_LIBS="-lssl -lcrypto"
13046                found=true
13047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13048$as_echo "yes" >&6; }
13049                break
13050            else
13051                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053            fi
13054        done
13055
13056        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
13057        # it will just work!
13058    fi
13059
13060    # try the preprocessor and linker with our new flags,
13061    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
13062
13063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
13064$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
13065    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
13066        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
13067
13068    save_LIBS="$LIBS"
13069    save_LDFLAGS="$LDFLAGS"
13070    save_CPPFLAGS="$CPPFLAGS"
13071    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13072    LIBS="$OPENSSL_LIBS $LIBS"
13073    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075/* end confdefs.h.  */
13076#include <openssl/ssl.h>
13077int
13078main ()
13079{
13080SSL_new(NULL)
13081  ;
13082  return 0;
13083}
13084_ACEOF
13085if ac_fn_c_try_link "$LINENO"; then :
13086
13087            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13088$as_echo "yes" >&6; }
13089
13090
13091else
13092
13093            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094$as_echo "no" >&6; }
13095            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13097as_fn_error $? "OpenSSL not found
13098See \`config.log' for more details" "$LINENO" 5; }
13099
13100fi
13101rm -f core conftest.err conftest.$ac_objext \
13102    conftest$ac_exeext conftest.$ac_ext
13103    CPPFLAGS="$save_CPPFLAGS"
13104    LDFLAGS="$save_LDFLAGS"
13105    LIBS="$save_LIBS"
13106
13107
13108
13109
13110
13111# Define if X509_TEA_set_state exists
13112
13113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X509_TEA_set_state runs" >&5
13114$as_echo_n "checking whether X509_TEA_set_state runs... " >&6; }
13115    save_LIBS="$LIBS"
13116    save_LDFLAGS="$LDFLAGS"
13117    save_CPPFLAGS="$CPPFLAGS"
13118    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13119    LIBS="$OPENSSL_LIBS $LIBS"
13120    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13121    if test "$cross_compiling" = yes; then :
13122  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13124as_fn_error $? "cannot run test program while cross compiling
13125See \`config.log' for more details" "$LINENO" 5; }
13126else
13127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128/* end confdefs.h.  */
13129void X509_TEA_set_state(int change);
13130int
13131main ()
13132{
13133X509_TEA_set_state(0);
13134  ;
13135  return 0;
13136}
13137_ACEOF
13138if ac_fn_c_try_run "$LINENO"; then :
13139
13140            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13141$as_echo "yes" >&6; }
13142
13143$as_echo "#define HAVE_X509_TEA_SET_STATE 1" >>confdefs.h
13144
13145
13146else
13147
13148            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
13150
13151
13152fi
13153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13154  conftest.$ac_objext conftest.beam conftest.$ac_ext
13155fi
13156
13157    CPPFLAGS="$save_CPPFLAGS"
13158    LDFLAGS="$save_LDFLAGS"
13159    LIBS="$save_LIBS"
13160
13161# Default PAM install dir
13162case "$host" in
13163     *darwin*)         PAM_DIR="/usr/lib/pam" ;;
13164     *freebsd*)        PAM_DIR="/usr/lib" ;;
13165     *x86_64-*-linux*) PAM_DIR="/lib64/security" ;;
13166     *linux*)          PAM_DIR="/lib/security" ;;
13167     *)                PAM_DIR="/usr/lib/security" ;; # NetBSD, Solaris, AIX, HP-UX
13168esac
13169
13170# Check PAM
13171
13172# Check whether --with-pam was given.
13173if test "${with_pam+set}" = set; then :
13174  withval=$with_pam;
13175else
13176   with_pam=no
13177
13178fi
13179
13180 if  test "x$with_pam" != "xno" ; then
13181  PAM_TRUE=
13182  PAM_FALSE='#'
13183else
13184  PAM_TRUE='#'
13185  PAM_FALSE=
13186fi
13187
13188
13189if test "x$with_pam" != "xno"; then :
13190
13191  save_LIBS=$LIBS
13192  for ac_header in security/pam_appl.h
13193do :
13194  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13195if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
13196  cat >>confdefs.h <<_ACEOF
13197#define HAVE_SECURITY_PAM_APPL_H 1
13198_ACEOF
13199
13200else
13201  as_fn_error $? "PAM header files not found. Install libpam-dev/pam-devel/etc." "$LINENO" 5
13202fi
13203
13204done
13205
13206  for ac_header in security/pam_modules.h security/pam_ext.h
13207do :
13208  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13209ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <security/pam_appl.h>
13210"
13211if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13212  cat >>confdefs.h <<_ACEOF
13213#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13214_ACEOF
13215
13216fi
13217
13218done
13219
13220
13221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpam" >&5
13222$as_echo_n "checking for main in -lpam... " >&6; }
13223if ${ac_cv_lib_pam_main+:} false; then :
13224  $as_echo_n "(cached) " >&6
13225else
13226  ac_check_lib_save_LIBS=$LIBS
13227LIBS="-lpam  $LIBS"
13228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229/* end confdefs.h.  */
13230
13231
13232int
13233main ()
13234{
13235return main ();
13236  ;
13237  return 0;
13238}
13239_ACEOF
13240if ac_fn_c_try_link "$LINENO"; then :
13241  ac_cv_lib_pam_main=yes
13242else
13243  ac_cv_lib_pam_main=no
13244fi
13245rm -f core conftest.err conftest.$ac_objext \
13246    conftest$ac_exeext conftest.$ac_ext
13247LIBS=$ac_check_lib_save_LIBS
13248fi
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_main" >&5
13250$as_echo "$ac_cv_lib_pam_main" >&6; }
13251if test "x$ac_cv_lib_pam_main" = xyes; then :
13252  cat >>confdefs.h <<_ACEOF
13253#define HAVE_LIBPAM 1
13254_ACEOF
13255
13256  LIBS="-lpam $LIBS"
13257
13258else
13259  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13261as_fn_error $? "libpam not found
13262See \`config.log' for more details" "$LINENO" 5; }
13263fi
13264
13265  LIBPAM="-lpam"
13266
13267
13268  if  test "x$with_pam" != "xno" ; then :
13269
13270    case "${withval}" in
13271    /*|\$*) PAMDIR="${withval}";;
13272    ./*|../*) as_fn_error $? "Bad value for --with-pam" "$LINENO" 5;;
13273    *)  PAMDIR="${PAM_DIR}";;
13274    esac
13275    { $as_echo "$as_me:${as_lineno-$LINENO}: PAM installation path $PAMDIR" >&5
13276$as_echo "$as_me: PAM installation path $PAMDIR" >&6;}
13277
13278fi
13279  for ac_func in pam_vprompt
13280do :
13281  ac_fn_c_check_func "$LINENO" "pam_vprompt" "ac_cv_func_pam_vprompt"
13282if test "x$ac_cv_func_pam_vprompt" = xyes; then :
13283  cat >>confdefs.h <<_ACEOF
13284#define HAVE_PAM_VPROMPT 1
13285_ACEOF
13286
13287fi
13288done
13289
13290  LIBS=$save_LIBS
13291
13292fi
13293PAMDIR="$PAMDIR"
13294
13295
13296# Check for Duo privsep user
13297case "$host" in
13298     *darwin*)		DUO_PRIVSEP_USER="_sshd" ;;
13299     *)			DUO_PRIVSEP_USER="sshd" ;;
13300esac
13301
13302# Check whether --with-privsep-user was given.
13303if test "${with_privsep_user+set}" = set; then :
13304  withval=$with_privsep_user;
13305	if test -n "$withval" && test "x$withval" != "xno" && \
13306	    test "x${withval}" != "xyes" && test "x${withval}" != "xroot" ; then
13307	    	DUO_PRIVSEP_USER=$withval
13308	else
13309		as_fn_error $? "\"Invalid privsep user specified\"" "$LINENO" 5
13310	fi
13311
13312
13313fi
13314
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: Using privilege separation user \"$DUO_PRIVSEP_USER\"" >&5
13316$as_echo "$as_me: Using privilege separation user \"$DUO_PRIVSEP_USER\"" >&6;}
13317
13318cat >>confdefs.h <<_ACEOF
13319#define DUO_PRIVSEP_USER "$DUO_PRIVSEP_USER"
13320_ACEOF
13321
13322
13323
13324# Multilib foo
13325# Check whether --enable-lib64 was given.
13326if test "${enable_lib64+set}" = set; then :
13327  enableval=$enable_lib64;
13328else
13329  enable_lib64=yes
13330fi
13331
13332
13333
13334# If the user specified a libdir ending in lib64 do not append another
13335# 64 to the library names.
13336base_libdir=`basename "$libdir"`
13337case $base_libdir in
13338lib64)
13339  enable_lib64=no
13340esac
13341
13342
13343                  enable_lib64="$enable_lib64"
13344  libdirsuffix=""
13345  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13346  if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
13347    save_IFS="${IFS=    }"; IFS=":"
13348    for searchdir in $searchpath; do
13349      if test -d "$searchdir"; then
13350        case "$searchdir" in
13351          */lib64/ | */lib64 ) libdirsuffix=64 ;;
13352          *) searchdir=`cd "$searchdir" && pwd`
13353             case "$searchdir" in
13354               */lib64 ) libdirsuffix=64 ;;
13355             esac ;;
13356        esac
13357      fi
13358    done
13359    IFS="$save_IFS"
13360  fi
13361
13362
13363libdir="$libdir$libdirsuffix"
13364{ $as_echo "$as_me:${as_lineno-$LINENO}: Using libdir \"$libdir\"" >&5
13365$as_echo "$as_me: Using libdir \"$libdir\"" >&6;}
13366
13367# Check for functions
13368
13369for ac_func in memcpy memset sysconf getaddrinfo open64 fopen64 explicit_bzero memset_s
13370do :
13371  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13372ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13373if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13374  cat >>confdefs.h <<_ACEOF
13375#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13376_ACEOF
13377
13378fi
13379done
13380
13381ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
13382if test "x$ac_cv_func_asprintf" = xyes; then :
13383  $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
13384
13385else
13386  case " $LIBOBJS " in
13387  *" asprintf.$ac_objext "* ) ;;
13388  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
13389 ;;
13390esac
13391
13392fi
13393
13394ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
13395if test "x$ac_cv_func_getgrouplist" = xyes; then :
13396  $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
13397
13398else
13399  case " $LIBOBJS " in
13400  *" getgrouplist.$ac_objext "* ) ;;
13401  *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
13402 ;;
13403esac
13404
13405fi
13406
13407ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13408if test "x$ac_cv_func_strlcpy" = xyes; then :
13409  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
13410
13411else
13412  case " $LIBOBJS " in
13413  *" strlcpy.$ac_objext "* ) ;;
13414  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
13415 ;;
13416esac
13417
13418fi
13419
13420ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
13421if test "x$ac_cv_func_vsyslog" = xyes; then :
13422  $as_echo "#define HAVE_VSYSLOG 1" >>confdefs.h
13423
13424else
13425  case " $LIBOBJS " in
13426  *" vsyslog.$ac_objext "* ) ;;
13427  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
13428 ;;
13429esac
13430
13431fi
13432
13433
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13435$as_echo_n "checking for library containing inet_ntoa... " >&6; }
13436if ${ac_cv_search_inet_ntoa+:} false; then :
13437  $as_echo_n "(cached) " >&6
13438else
13439  ac_func_search_save_LIBS=$LIBS
13440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441/* end confdefs.h.  */
13442
13443/* Override any GCC internal prototype to avoid an error.
13444   Use char because int might match the return type of a GCC
13445   builtin and then its argument prototype would still apply.  */
13446#ifdef __cplusplus
13447extern "C"
13448#endif
13449char inet_ntoa ();
13450int
13451main ()
13452{
13453return inet_ntoa ();
13454  ;
13455  return 0;
13456}
13457_ACEOF
13458for ac_lib in '' nsl; do
13459  if test -z "$ac_lib"; then
13460    ac_res="none required"
13461  else
13462    ac_res=-l$ac_lib
13463    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13464  fi
13465  if ac_fn_c_try_link "$LINENO"; then :
13466  ac_cv_search_inet_ntoa=$ac_res
13467fi
13468rm -f core conftest.err conftest.$ac_objext \
13469    conftest$ac_exeext
13470  if ${ac_cv_search_inet_ntoa+:} false; then :
13471  break
13472fi
13473done
13474if ${ac_cv_search_inet_ntoa+:} false; then :
13475
13476else
13477  ac_cv_search_inet_ntoa=no
13478fi
13479rm conftest.$ac_ext
13480LIBS=$ac_func_search_save_LIBS
13481fi
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13483$as_echo "$ac_cv_search_inet_ntoa" >&6; }
13484ac_res=$ac_cv_search_inet_ntoa
13485if test "$ac_res" != no; then :
13486  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13487
13488fi
13489
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13491$as_echo_n "checking for library containing socket... " >&6; }
13492if ${ac_cv_search_socket+:} false; then :
13493  $as_echo_n "(cached) " >&6
13494else
13495  ac_func_search_save_LIBS=$LIBS
13496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497/* end confdefs.h.  */
13498
13499/* Override any GCC internal prototype to avoid an error.
13500   Use char because int might match the return type of a GCC
13501   builtin and then its argument prototype would still apply.  */
13502#ifdef __cplusplus
13503extern "C"
13504#endif
13505char socket ();
13506int
13507main ()
13508{
13509return socket ();
13510  ;
13511  return 0;
13512}
13513_ACEOF
13514for ac_lib in '' socket; do
13515  if test -z "$ac_lib"; then
13516    ac_res="none required"
13517  else
13518    ac_res=-l$ac_lib
13519    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13520  fi
13521  if ac_fn_c_try_link "$LINENO"; then :
13522  ac_cv_search_socket=$ac_res
13523fi
13524rm -f core conftest.err conftest.$ac_objext \
13525    conftest$ac_exeext
13526  if ${ac_cv_search_socket+:} false; then :
13527  break
13528fi
13529done
13530if ${ac_cv_search_socket+:} false; then :
13531
13532else
13533  ac_cv_search_socket=no
13534fi
13535rm conftest.$ac_ext
13536LIBS=$ac_func_search_save_LIBS
13537fi
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13539$as_echo "$ac_cv_search_socket" >&6; }
13540ac_res=$ac_cv_search_socket
13541if test "$ac_res" != no; then :
13542  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13543
13544fi
13545
13546
13547ac_config_files="$ac_config_files Makefile compat/Makefile duo_unix_support/Makefile lib/Makefile lib/libduo.pc login_duo/Makefile pam_duo/Makefile tests/Makefile tests/unity_tests/Makefile tests/unity_tests/Unity-2.4.3/Makefile"
13548
13549
13550cat >confcache <<\_ACEOF
13551# This file is a shell script that caches the results of configure
13552# tests run on this system so they can be shared between configure
13553# scripts and configure runs, see configure's option --config-cache.
13554# It is not useful on other systems.  If it contains results you don't
13555# want to keep, you may remove or edit it.
13556#
13557# config.status only pays attention to the cache file if you give it
13558# the --recheck option to rerun configure.
13559#
13560# `ac_cv_env_foo' variables (set or unset) will be overridden when
13561# loading this file, other *unset* `ac_cv_foo' will be assigned the
13562# following values.
13563
13564_ACEOF
13565
13566# The following way of writing the cache mishandles newlines in values,
13567# but we know of no workaround that is simple, portable, and efficient.
13568# So, we kill variables containing newlines.
13569# Ultrix sh set writes to stderr and can't be redirected directly,
13570# and sets the high bit in the cache file unless we assign to the vars.
13571(
13572  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13573    eval ac_val=\$$ac_var
13574    case $ac_val in #(
13575    *${as_nl}*)
13576      case $ac_var in #(
13577      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13578$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13579      esac
13580      case $ac_var in #(
13581      _ | IFS | as_nl) ;; #(
13582      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13583      *) { eval $ac_var=; unset $ac_var;} ;;
13584      esac ;;
13585    esac
13586  done
13587
13588  (set) 2>&1 |
13589    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13590    *${as_nl}ac_space=\ *)
13591      # `set' does not quote correctly, so add quotes: double-quote
13592      # substitution turns \\\\ into \\, and sed turns \\ into \.
13593      sed -n \
13594	"s/'/'\\\\''/g;
13595	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13596      ;; #(
13597    *)
13598      # `set' quotes correctly as required by POSIX, so do not add quotes.
13599      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13600      ;;
13601    esac |
13602    sort
13603) |
13604  sed '
13605     /^ac_cv_env_/b end
13606     t clear
13607     :clear
13608     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13609     t end
13610     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13611     :end' >>confcache
13612if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13613  if test -w "$cache_file"; then
13614    if test "x$cache_file" != "x/dev/null"; then
13615      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13616$as_echo "$as_me: updating cache $cache_file" >&6;}
13617      if test ! -f "$cache_file" || test -h "$cache_file"; then
13618	cat confcache >"$cache_file"
13619      else
13620        case $cache_file in #(
13621        */* | ?:*)
13622	  mv -f confcache "$cache_file"$$ &&
13623	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13624        *)
13625	  mv -f confcache "$cache_file" ;;
13626	esac
13627      fi
13628    fi
13629  else
13630    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13631$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13632  fi
13633fi
13634rm -f confcache
13635
13636test "x$prefix" = xNONE && prefix=$ac_default_prefix
13637# Let make expand exec_prefix.
13638test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13639
13640DEFS=-DHAVE_CONFIG_H
13641
13642ac_libobjs=
13643ac_ltlibobjs=
13644U=
13645for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13646  # 1. Remove the extension, and $U if already installed.
13647  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13648  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13649  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13650  #    will be set to the directory where LIBOBJS objects are built.
13651  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13652  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13653done
13654LIBOBJS=$ac_libobjs
13655
13656LTLIBOBJS=$ac_ltlibobjs
13657
13658
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13660$as_echo_n "checking that generated files are newer than configure... " >&6; }
13661   if test -n "$am_sleep_pid"; then
13662     # Hide warnings about reused PIDs.
13663     wait $am_sleep_pid 2>/dev/null
13664   fi
13665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13666$as_echo "done" >&6; }
13667 if test -n "$EXEEXT"; then
13668  am__EXEEXT_TRUE=
13669  am__EXEEXT_FALSE='#'
13670else
13671  am__EXEEXT_TRUE='#'
13672  am__EXEEXT_FALSE=
13673fi
13674
13675if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13676  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13677Usually this means the macro was only invoked conditionally." "$LINENO" 5
13678fi
13679if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13680  as_fn_error $? "conditional \"AMDEP\" was never defined.
13681Usually this means the macro was only invoked conditionally." "$LINENO" 5
13682fi
13683if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13684  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13685Usually this means the macro was only invoked conditionally." "$LINENO" 5
13686fi
13687if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13688  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13689Usually this means the macro was only invoked conditionally." "$LINENO" 5
13690fi
13691
13692if test -z "${PAM_TRUE}" && test -z "${PAM_FALSE}"; then
13693  as_fn_error $? "conditional \"PAM\" was never defined.
13694Usually this means the macro was only invoked conditionally." "$LINENO" 5
13695fi
13696
13697: "${CONFIG_STATUS=./config.status}"
13698ac_write_fail=0
13699ac_clean_files_save=$ac_clean_files
13700ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13702$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13703as_write_fail=0
13704cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13705#! $SHELL
13706# Generated by $as_me.
13707# Run this file to recreate the current configuration.
13708# Compiler output produced by configure, useful for debugging
13709# configure, is in config.log if it exists.
13710
13711debug=false
13712ac_cs_recheck=false
13713ac_cs_silent=false
13714
13715SHELL=\${CONFIG_SHELL-$SHELL}
13716export SHELL
13717_ASEOF
13718cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13719## -------------------- ##
13720## M4sh Initialization. ##
13721## -------------------- ##
13722
13723# Be more Bourne compatible
13724DUALCASE=1; export DUALCASE # for MKS sh
13725if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13726  emulate sh
13727  NULLCMD=:
13728  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13729  # is contrary to our usage.  Disable this feature.
13730  alias -g '${1+"$@"}'='"$@"'
13731  setopt NO_GLOB_SUBST
13732else
13733  case `(set -o) 2>/dev/null` in #(
13734  *posix*) :
13735    set -o posix ;; #(
13736  *) :
13737     ;;
13738esac
13739fi
13740
13741
13742as_nl='
13743'
13744export as_nl
13745# Printing a long string crashes Solaris 7 /usr/bin/printf.
13746as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13747as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13748as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13749# Prefer a ksh shell builtin over an external printf program on Solaris,
13750# but without wasting forks for bash or zsh.
13751if test -z "$BASH_VERSION$ZSH_VERSION" \
13752    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13753  as_echo='print -r --'
13754  as_echo_n='print -rn --'
13755elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13756  as_echo='printf %s\n'
13757  as_echo_n='printf %s'
13758else
13759  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13760    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13761    as_echo_n='/usr/ucb/echo -n'
13762  else
13763    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13764    as_echo_n_body='eval
13765      arg=$1;
13766      case $arg in #(
13767      *"$as_nl"*)
13768	expr "X$arg" : "X\\(.*\\)$as_nl";
13769	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13770      esac;
13771      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13772    '
13773    export as_echo_n_body
13774    as_echo_n='sh -c $as_echo_n_body as_echo'
13775  fi
13776  export as_echo_body
13777  as_echo='sh -c $as_echo_body as_echo'
13778fi
13779
13780# The user is always right.
13781if test "${PATH_SEPARATOR+set}" != set; then
13782  PATH_SEPARATOR=:
13783  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13784    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13785      PATH_SEPARATOR=';'
13786  }
13787fi
13788
13789
13790# IFS
13791# We need space, tab and new line, in precisely that order.  Quoting is
13792# there to prevent editors from complaining about space-tab.
13793# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13794# splitting by setting IFS to empty value.)
13795IFS=" ""	$as_nl"
13796
13797# Find who we are.  Look in the path if we contain no directory separator.
13798as_myself=
13799case $0 in #((
13800  *[\\/]* ) as_myself=$0 ;;
13801  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802for as_dir in $PATH
13803do
13804  IFS=$as_save_IFS
13805  test -z "$as_dir" && as_dir=.
13806    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13807  done
13808IFS=$as_save_IFS
13809
13810     ;;
13811esac
13812# We did not find ourselves, most probably we were run as `sh COMMAND'
13813# in which case we are not to be found in the path.
13814if test "x$as_myself" = x; then
13815  as_myself=$0
13816fi
13817if test ! -f "$as_myself"; then
13818  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13819  exit 1
13820fi
13821
13822# Unset variables that we do not need and which cause bugs (e.g. in
13823# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13824# suppresses any "Segmentation fault" message there.  '((' could
13825# trigger a bug in pdksh 5.2.14.
13826for as_var in BASH_ENV ENV MAIL MAILPATH
13827do eval test x\${$as_var+set} = xset \
13828  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13829done
13830PS1='$ '
13831PS2='> '
13832PS4='+ '
13833
13834# NLS nuisances.
13835LC_ALL=C
13836export LC_ALL
13837LANGUAGE=C
13838export LANGUAGE
13839
13840# CDPATH.
13841(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13842
13843
13844# as_fn_error STATUS ERROR [LINENO LOG_FD]
13845# ----------------------------------------
13846# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13847# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13848# script with STATUS, using 1 if that was 0.
13849as_fn_error ()
13850{
13851  as_status=$1; test $as_status -eq 0 && as_status=1
13852  if test "$4"; then
13853    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13854    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13855  fi
13856  $as_echo "$as_me: error: $2" >&2
13857  as_fn_exit $as_status
13858} # as_fn_error
13859
13860
13861# as_fn_set_status STATUS
13862# -----------------------
13863# Set $? to STATUS, without forking.
13864as_fn_set_status ()
13865{
13866  return $1
13867} # as_fn_set_status
13868
13869# as_fn_exit STATUS
13870# -----------------
13871# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13872as_fn_exit ()
13873{
13874  set +e
13875  as_fn_set_status $1
13876  exit $1
13877} # as_fn_exit
13878
13879# as_fn_unset VAR
13880# ---------------
13881# Portably unset VAR.
13882as_fn_unset ()
13883{
13884  { eval $1=; unset $1;}
13885}
13886as_unset=as_fn_unset
13887# as_fn_append VAR VALUE
13888# ----------------------
13889# Append the text in VALUE to the end of the definition contained in VAR. Take
13890# advantage of any shell optimizations that allow amortized linear growth over
13891# repeated appends, instead of the typical quadratic growth present in naive
13892# implementations.
13893if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13894  eval 'as_fn_append ()
13895  {
13896    eval $1+=\$2
13897  }'
13898else
13899  as_fn_append ()
13900  {
13901    eval $1=\$$1\$2
13902  }
13903fi # as_fn_append
13904
13905# as_fn_arith ARG...
13906# ------------------
13907# Perform arithmetic evaluation on the ARGs, and store the result in the
13908# global $as_val. Take advantage of shells that can avoid forks. The arguments
13909# must be portable across $(()) and expr.
13910if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13911  eval 'as_fn_arith ()
13912  {
13913    as_val=$(( $* ))
13914  }'
13915else
13916  as_fn_arith ()
13917  {
13918    as_val=`expr "$@" || test $? -eq 1`
13919  }
13920fi # as_fn_arith
13921
13922
13923if expr a : '\(a\)' >/dev/null 2>&1 &&
13924   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13925  as_expr=expr
13926else
13927  as_expr=false
13928fi
13929
13930if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13931  as_basename=basename
13932else
13933  as_basename=false
13934fi
13935
13936if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13937  as_dirname=dirname
13938else
13939  as_dirname=false
13940fi
13941
13942as_me=`$as_basename -- "$0" ||
13943$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13944	 X"$0" : 'X\(//\)$' \| \
13945	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13946$as_echo X/"$0" |
13947    sed '/^.*\/\([^/][^/]*\)\/*$/{
13948	    s//\1/
13949	    q
13950	  }
13951	  /^X\/\(\/\/\)$/{
13952	    s//\1/
13953	    q
13954	  }
13955	  /^X\/\(\/\).*/{
13956	    s//\1/
13957	    q
13958	  }
13959	  s/.*/./; q'`
13960
13961# Avoid depending upon Character Ranges.
13962as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13963as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13964as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13965as_cr_digits='0123456789'
13966as_cr_alnum=$as_cr_Letters$as_cr_digits
13967
13968ECHO_C= ECHO_N= ECHO_T=
13969case `echo -n x` in #(((((
13970-n*)
13971  case `echo 'xy\c'` in
13972  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13973  xy)  ECHO_C='\c';;
13974  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13975       ECHO_T='	';;
13976  esac;;
13977*)
13978  ECHO_N='-n';;
13979esac
13980
13981rm -f conf$$ conf$$.exe conf$$.file
13982if test -d conf$$.dir; then
13983  rm -f conf$$.dir/conf$$.file
13984else
13985  rm -f conf$$.dir
13986  mkdir conf$$.dir 2>/dev/null
13987fi
13988if (echo >conf$$.file) 2>/dev/null; then
13989  if ln -s conf$$.file conf$$ 2>/dev/null; then
13990    as_ln_s='ln -s'
13991    # ... but there are two gotchas:
13992    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13993    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13994    # In both cases, we have to default to `cp -pR'.
13995    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13996      as_ln_s='cp -pR'
13997  elif ln conf$$.file conf$$ 2>/dev/null; then
13998    as_ln_s=ln
13999  else
14000    as_ln_s='cp -pR'
14001  fi
14002else
14003  as_ln_s='cp -pR'
14004fi
14005rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14006rmdir conf$$.dir 2>/dev/null
14007
14008
14009# as_fn_mkdir_p
14010# -------------
14011# Create "$as_dir" as a directory, including parents if necessary.
14012as_fn_mkdir_p ()
14013{
14014
14015  case $as_dir in #(
14016  -*) as_dir=./$as_dir;;
14017  esac
14018  test -d "$as_dir" || eval $as_mkdir_p || {
14019    as_dirs=
14020    while :; do
14021      case $as_dir in #(
14022      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14023      *) as_qdir=$as_dir;;
14024      esac
14025      as_dirs="'$as_qdir' $as_dirs"
14026      as_dir=`$as_dirname -- "$as_dir" ||
14027$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14028	 X"$as_dir" : 'X\(//\)[^/]' \| \
14029	 X"$as_dir" : 'X\(//\)$' \| \
14030	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14031$as_echo X"$as_dir" |
14032    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14033	    s//\1/
14034	    q
14035	  }
14036	  /^X\(\/\/\)[^/].*/{
14037	    s//\1/
14038	    q
14039	  }
14040	  /^X\(\/\/\)$/{
14041	    s//\1/
14042	    q
14043	  }
14044	  /^X\(\/\).*/{
14045	    s//\1/
14046	    q
14047	  }
14048	  s/.*/./; q'`
14049      test -d "$as_dir" && break
14050    done
14051    test -z "$as_dirs" || eval "mkdir $as_dirs"
14052  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14053
14054
14055} # as_fn_mkdir_p
14056if mkdir -p . 2>/dev/null; then
14057  as_mkdir_p='mkdir -p "$as_dir"'
14058else
14059  test -d ./-p && rmdir ./-p
14060  as_mkdir_p=false
14061fi
14062
14063
14064# as_fn_executable_p FILE
14065# -----------------------
14066# Test if FILE is an executable regular file.
14067as_fn_executable_p ()
14068{
14069  test -f "$1" && test -x "$1"
14070} # as_fn_executable_p
14071as_test_x='test -x'
14072as_executable_p=as_fn_executable_p
14073
14074# Sed expression to map a string onto a valid CPP name.
14075as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14076
14077# Sed expression to map a string onto a valid variable name.
14078as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14079
14080
14081exec 6>&1
14082## ----------------------------------- ##
14083## Main body of $CONFIG_STATUS script. ##
14084## ----------------------------------- ##
14085_ASEOF
14086test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14087
14088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14089# Save the log message, to keep $0 and so on meaningful, and to
14090# report actual input values of CONFIG_FILES etc. instead of their
14091# values after options handling.
14092ac_log="
14093This file was extended by duo_unix $as_me 1.11.4, which was
14094generated by GNU Autoconf 2.69.  Invocation command line was
14095
14096  CONFIG_FILES    = $CONFIG_FILES
14097  CONFIG_HEADERS  = $CONFIG_HEADERS
14098  CONFIG_LINKS    = $CONFIG_LINKS
14099  CONFIG_COMMANDS = $CONFIG_COMMANDS
14100  $ $0 $@
14101
14102on `(hostname || uname -n) 2>/dev/null | sed 1q`
14103"
14104
14105_ACEOF
14106
14107case $ac_config_files in *"
14108"*) set x $ac_config_files; shift; ac_config_files=$*;;
14109esac
14110
14111case $ac_config_headers in *"
14112"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14113esac
14114
14115
14116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14117# Files that config.status was made for.
14118config_files="$ac_config_files"
14119config_headers="$ac_config_headers"
14120config_commands="$ac_config_commands"
14121
14122_ACEOF
14123
14124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14125ac_cs_usage="\
14126\`$as_me' instantiates files and other configuration actions
14127from templates according to the current configuration.  Unless the files
14128and actions are specified as TAGs, all are instantiated by default.
14129
14130Usage: $0 [OPTION]... [TAG]...
14131
14132  -h, --help       print this help, then exit
14133  -V, --version    print version number and configuration settings, then exit
14134      --config     print configuration, then exit
14135  -q, --quiet, --silent
14136                   do not print progress messages
14137  -d, --debug      don't remove temporary files
14138      --recheck    update $as_me by reconfiguring in the same conditions
14139      --file=FILE[:TEMPLATE]
14140                   instantiate the configuration file FILE
14141      --header=FILE[:TEMPLATE]
14142                   instantiate the configuration header FILE
14143
14144Configuration files:
14145$config_files
14146
14147Configuration headers:
14148$config_headers
14149
14150Configuration commands:
14151$config_commands
14152
14153Report bugs to <support@duosecurity.com>."
14154
14155_ACEOF
14156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14157ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14158ac_cs_version="\\
14159duo_unix config.status 1.11.4
14160configured by $0, generated by GNU Autoconf 2.69,
14161  with options \\"\$ac_cs_config\\"
14162
14163Copyright (C) 2012 Free Software Foundation, Inc.
14164This config.status script is free software; the Free Software Foundation
14165gives unlimited permission to copy, distribute and modify it."
14166
14167ac_pwd='$ac_pwd'
14168srcdir='$srcdir'
14169INSTALL='$INSTALL'
14170MKDIR_P='$MKDIR_P'
14171AWK='$AWK'
14172test -n "\$AWK" || AWK=awk
14173_ACEOF
14174
14175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14176# The default lists apply if the user does not specify any file.
14177ac_need_defaults=:
14178while test $# != 0
14179do
14180  case $1 in
14181  --*=?*)
14182    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14183    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14184    ac_shift=:
14185    ;;
14186  --*=)
14187    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14188    ac_optarg=
14189    ac_shift=:
14190    ;;
14191  *)
14192    ac_option=$1
14193    ac_optarg=$2
14194    ac_shift=shift
14195    ;;
14196  esac
14197
14198  case $ac_option in
14199  # Handling of the options.
14200  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14201    ac_cs_recheck=: ;;
14202  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14203    $as_echo "$ac_cs_version"; exit ;;
14204  --config | --confi | --conf | --con | --co | --c )
14205    $as_echo "$ac_cs_config"; exit ;;
14206  --debug | --debu | --deb | --de | --d | -d )
14207    debug=: ;;
14208  --file | --fil | --fi | --f )
14209    $ac_shift
14210    case $ac_optarg in
14211    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14212    '') as_fn_error $? "missing file argument" ;;
14213    esac
14214    as_fn_append CONFIG_FILES " '$ac_optarg'"
14215    ac_need_defaults=false;;
14216  --header | --heade | --head | --hea )
14217    $ac_shift
14218    case $ac_optarg in
14219    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14220    esac
14221    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14222    ac_need_defaults=false;;
14223  --he | --h)
14224    # Conflict between --help and --header
14225    as_fn_error $? "ambiguous option: \`$1'
14226Try \`$0 --help' for more information.";;
14227  --help | --hel | -h )
14228    $as_echo "$ac_cs_usage"; exit ;;
14229  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14230  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14231    ac_cs_silent=: ;;
14232
14233  # This is an error.
14234  -*) as_fn_error $? "unrecognized option: \`$1'
14235Try \`$0 --help' for more information." ;;
14236
14237  *) as_fn_append ac_config_targets " $1"
14238     ac_need_defaults=false ;;
14239
14240  esac
14241  shift
14242done
14243
14244ac_configure_extra_args=
14245
14246if $ac_cs_silent; then
14247  exec 6>/dev/null
14248  ac_configure_extra_args="$ac_configure_extra_args --silent"
14249fi
14250
14251_ACEOF
14252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14253if \$ac_cs_recheck; then
14254  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14255  shift
14256  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14257  CONFIG_SHELL='$SHELL'
14258  export CONFIG_SHELL
14259  exec "\$@"
14260fi
14261
14262_ACEOF
14263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14264exec 5>>config.log
14265{
14266  echo
14267  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14268## Running $as_me. ##
14269_ASBOX
14270  $as_echo "$ac_log"
14271} >&5
14272
14273_ACEOF
14274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14275#
14276# INIT-COMMANDS
14277#
14278AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14279
14280
14281# The HP-UX ksh and POSIX shell print the target directory to stdout
14282# if CDPATH is set.
14283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14284
14285sed_quote_subst='$sed_quote_subst'
14286double_quote_subst='$double_quote_subst'
14287delay_variable_subst='$delay_variable_subst'
14288macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14289macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14290enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14291enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14292pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14293enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14294SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14295ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14296PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14297host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14298host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14299host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14300build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14301build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14302build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14303SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14304Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14305GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14306EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14307FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14308LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14309NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14310LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14311max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14312ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14313exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14314lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14315lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14316lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14317lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14318lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14319reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14320reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14321OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14322deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14323file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14324file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14325want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14326DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14327sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14328AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14329AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14330archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14331STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14332RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14333old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14334old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14335old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14336lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14337CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14338CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14339compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14340GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14341lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14342lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14343lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14344lt_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"`'
14345nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14346lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14347objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14348MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14349lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14350lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14351lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14352lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14353lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14354need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14355MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14356DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14357NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14358LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14359OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14360OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14361libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14362shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14363extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14364archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14365enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14366export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14367whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14368compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14369old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14370old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14371archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14372archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14373module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14374module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14375with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14376allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14377no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14378hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14379hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14380hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14381hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14382hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14383hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14384hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14385inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14386link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14387always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14388export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14389exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14390include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14391prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14392postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14393file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14394variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14395need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14396need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14397version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14398runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14399shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14400shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14401libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14402library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14403soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14404install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14405postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14406postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14407finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14408finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14409hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14410sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14411sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14412hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14413enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14414enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14415enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14416old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14417striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14418
14419LTCC='$LTCC'
14420LTCFLAGS='$LTCFLAGS'
14421compiler='$compiler_DEFAULT'
14422
14423# A function that is used when there is no print builtin or printf.
14424func_fallback_echo ()
14425{
14426  eval 'cat <<_LTECHO_EOF
14427\$1
14428_LTECHO_EOF'
14429}
14430
14431# Quote evaled strings.
14432for var in SHELL \
14433ECHO \
14434PATH_SEPARATOR \
14435SED \
14436GREP \
14437EGREP \
14438FGREP \
14439LD \
14440NM \
14441LN_S \
14442lt_SP2NL \
14443lt_NL2SP \
14444reload_flag \
14445OBJDUMP \
14446deplibs_check_method \
14447file_magic_cmd \
14448file_magic_glob \
14449want_nocaseglob \
14450DLLTOOL \
14451sharedlib_from_linklib_cmd \
14452AR \
14453AR_FLAGS \
14454archiver_list_spec \
14455STRIP \
14456RANLIB \
14457CC \
14458CFLAGS \
14459compiler \
14460lt_cv_sys_global_symbol_pipe \
14461lt_cv_sys_global_symbol_to_cdecl \
14462lt_cv_sys_global_symbol_to_c_name_address \
14463lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14464nm_file_list_spec \
14465lt_prog_compiler_no_builtin_flag \
14466lt_prog_compiler_pic \
14467lt_prog_compiler_wl \
14468lt_prog_compiler_static \
14469lt_cv_prog_compiler_c_o \
14470need_locks \
14471MANIFEST_TOOL \
14472DSYMUTIL \
14473NMEDIT \
14474LIPO \
14475OTOOL \
14476OTOOL64 \
14477shrext_cmds \
14478export_dynamic_flag_spec \
14479whole_archive_flag_spec \
14480compiler_needs_object \
14481with_gnu_ld \
14482allow_undefined_flag \
14483no_undefined_flag \
14484hardcode_libdir_flag_spec \
14485hardcode_libdir_separator \
14486exclude_expsyms \
14487include_expsyms \
14488file_list_spec \
14489variables_saved_for_relink \
14490libname_spec \
14491library_names_spec \
14492soname_spec \
14493install_override_mode \
14494finish_eval \
14495old_striplib \
14496striplib; do
14497    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14498    *[\\\\\\\`\\"\\\$]*)
14499      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14500      ;;
14501    *)
14502      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14503      ;;
14504    esac
14505done
14506
14507# Double-quote double-evaled strings.
14508for var in reload_cmds \
14509old_postinstall_cmds \
14510old_postuninstall_cmds \
14511old_archive_cmds \
14512extract_expsyms_cmds \
14513old_archive_from_new_cmds \
14514old_archive_from_expsyms_cmds \
14515archive_cmds \
14516archive_expsym_cmds \
14517module_cmds \
14518module_expsym_cmds \
14519export_symbols_cmds \
14520prelink_cmds \
14521postlink_cmds \
14522postinstall_cmds \
14523postuninstall_cmds \
14524finish_cmds \
14525sys_lib_search_path_spec \
14526sys_lib_dlsearch_path_spec; do
14527    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14528    *[\\\\\\\`\\"\\\$]*)
14529      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14530      ;;
14531    *)
14532      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14533      ;;
14534    esac
14535done
14536
14537ac_aux_dir='$ac_aux_dir'
14538xsi_shell='$xsi_shell'
14539lt_shell_append='$lt_shell_append'
14540
14541# See if we are running on zsh, and set the options which allow our
14542# commands through without removal of \ escapes INIT.
14543if test -n "\${ZSH_VERSION+set}" ; then
14544   setopt NO_GLOB_SUBST
14545fi
14546
14547
14548    PACKAGE='$PACKAGE'
14549    VERSION='$VERSION'
14550    TIMESTAMP='$TIMESTAMP'
14551    RM='$RM'
14552    ofile='$ofile'
14553
14554
14555
14556
14557_ACEOF
14558
14559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14560
14561# Handling of arguments.
14562for ac_config_target in $ac_config_targets
14563do
14564  case $ac_config_target in
14565    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14566    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14567    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14568    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14569    "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
14570    "duo_unix_support/Makefile") CONFIG_FILES="$CONFIG_FILES duo_unix_support/Makefile" ;;
14571    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14572    "lib/libduo.pc") CONFIG_FILES="$CONFIG_FILES lib/libduo.pc" ;;
14573    "login_duo/Makefile") CONFIG_FILES="$CONFIG_FILES login_duo/Makefile" ;;
14574    "pam_duo/Makefile") CONFIG_FILES="$CONFIG_FILES pam_duo/Makefile" ;;
14575    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14576    "tests/unity_tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unity_tests/Makefile" ;;
14577    "tests/unity_tests/Unity-2.4.3/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unity_tests/Unity-2.4.3/Makefile" ;;
14578
14579  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14580  esac
14581done
14582
14583
14584# If the user did not use the arguments to specify the items to instantiate,
14585# then the envvar interface is used.  Set only those that are not.
14586# We use the long form for the default assignment because of an extremely
14587# bizarre bug on SunOS 4.1.3.
14588if $ac_need_defaults; then
14589  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14590  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14591  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14592fi
14593
14594# Have a temporary directory for convenience.  Make it in the build tree
14595# simply because there is no reason against having it here, and in addition,
14596# creating and moving files from /tmp can sometimes cause problems.
14597# Hook for its removal unless debugging.
14598# Note that there is a small window in which the directory will not be cleaned:
14599# after its creation but before its name has been assigned to `$tmp'.
14600$debug ||
14601{
14602  tmp= ac_tmp=
14603  trap 'exit_status=$?
14604  : "${ac_tmp:=$tmp}"
14605  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14606' 0
14607  trap 'as_fn_exit 1' 1 2 13 15
14608}
14609# Create a (secure) tmp directory for tmp files.
14610
14611{
14612  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14613  test -d "$tmp"
14614}  ||
14615{
14616  tmp=./conf$$-$RANDOM
14617  (umask 077 && mkdir "$tmp")
14618} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14619ac_tmp=$tmp
14620
14621# Set up the scripts for CONFIG_FILES section.
14622# No need to generate them if there are no CONFIG_FILES.
14623# This happens for instance with `./config.status config.h'.
14624if test -n "$CONFIG_FILES"; then
14625
14626
14627ac_cr=`echo X | tr X '\015'`
14628# On cygwin, bash can eat \r inside `` if the user requested igncr.
14629# But we know of no other shell where ac_cr would be empty at this
14630# point, so we can use a bashism as a fallback.
14631if test "x$ac_cr" = x; then
14632  eval ac_cr=\$\'\\r\'
14633fi
14634ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14635if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14636  ac_cs_awk_cr='\\r'
14637else
14638  ac_cs_awk_cr=$ac_cr
14639fi
14640
14641echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14642_ACEOF
14643
14644
14645{
14646  echo "cat >conf$$subs.awk <<_ACEOF" &&
14647  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14648  echo "_ACEOF"
14649} >conf$$subs.sh ||
14650  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14651ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14652ac_delim='%!_!# '
14653for ac_last_try in false false false false false :; do
14654  . ./conf$$subs.sh ||
14655    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14656
14657  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14658  if test $ac_delim_n = $ac_delim_num; then
14659    break
14660  elif $ac_last_try; then
14661    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14662  else
14663    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14664  fi
14665done
14666rm -f conf$$subs.sh
14667
14668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14669cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14670_ACEOF
14671sed -n '
14672h
14673s/^/S["/; s/!.*/"]=/
14674p
14675g
14676s/^[^!]*!//
14677:repl
14678t repl
14679s/'"$ac_delim"'$//
14680t delim
14681:nl
14682h
14683s/\(.\{148\}\)..*/\1/
14684t more1
14685s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14686p
14687n
14688b repl
14689:more1
14690s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14691p
14692g
14693s/.\{148\}//
14694t nl
14695:delim
14696h
14697s/\(.\{148\}\)..*/\1/
14698t more2
14699s/["\\]/\\&/g; s/^/"/; s/$/"/
14700p
14701b
14702:more2
14703s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14704p
14705g
14706s/.\{148\}//
14707t delim
14708' <conf$$subs.awk | sed '
14709/^[^""]/{
14710  N
14711  s/\n//
14712}
14713' >>$CONFIG_STATUS || ac_write_fail=1
14714rm -f conf$$subs.awk
14715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14716_ACAWK
14717cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14718  for (key in S) S_is_set[key] = 1
14719  FS = ""
14720
14721}
14722{
14723  line = $ 0
14724  nfields = split(line, field, "@")
14725  substed = 0
14726  len = length(field[1])
14727  for (i = 2; i < nfields; i++) {
14728    key = field[i]
14729    keylen = length(key)
14730    if (S_is_set[key]) {
14731      value = S[key]
14732      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14733      len += length(value) + length(field[++i])
14734      substed = 1
14735    } else
14736      len += 1 + keylen
14737  }
14738
14739  print line
14740}
14741
14742_ACAWK
14743_ACEOF
14744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14745if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14746  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14747else
14748  cat
14749fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14750  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14751_ACEOF
14752
14753# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14754# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14755# trailing colons and then remove the whole line if VPATH becomes empty
14756# (actually we leave an empty line to preserve line numbers).
14757if test "x$srcdir" = x.; then
14758  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14759h
14760s///
14761s/^/:/
14762s/[	 ]*$/:/
14763s/:\$(srcdir):/:/g
14764s/:\${srcdir}:/:/g
14765s/:@srcdir@:/:/g
14766s/^:*//
14767s/:*$//
14768x
14769s/\(=[	 ]*\).*/\1/
14770G
14771s/\n//
14772s/^[^=]*=[	 ]*$//
14773}'
14774fi
14775
14776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14777fi # test -n "$CONFIG_FILES"
14778
14779# Set up the scripts for CONFIG_HEADERS section.
14780# No need to generate them if there are no CONFIG_HEADERS.
14781# This happens for instance with `./config.status Makefile'.
14782if test -n "$CONFIG_HEADERS"; then
14783cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14784BEGIN {
14785_ACEOF
14786
14787# Transform confdefs.h into an awk script `defines.awk', embedded as
14788# here-document in config.status, that substitutes the proper values into
14789# config.h.in to produce config.h.
14790
14791# Create a delimiter string that does not exist in confdefs.h, to ease
14792# handling of long lines.
14793ac_delim='%!_!# '
14794for ac_last_try in false false :; do
14795  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14796  if test -z "$ac_tt"; then
14797    break
14798  elif $ac_last_try; then
14799    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14800  else
14801    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14802  fi
14803done
14804
14805# For the awk script, D is an array of macro values keyed by name,
14806# likewise P contains macro parameters if any.  Preserve backslash
14807# newline sequences.
14808
14809ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14810sed -n '
14811s/.\{148\}/&'"$ac_delim"'/g
14812t rset
14813:rset
14814s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14815t def
14816d
14817:def
14818s/\\$//
14819t bsnl
14820s/["\\]/\\&/g
14821s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14822D["\1"]=" \3"/p
14823s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14824d
14825:bsnl
14826s/["\\]/\\&/g
14827s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14828D["\1"]=" \3\\\\\\n"\\/p
14829t cont
14830s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14831t cont
14832d
14833:cont
14834n
14835s/.\{148\}/&'"$ac_delim"'/g
14836t clear
14837:clear
14838s/\\$//
14839t bsnlc
14840s/["\\]/\\&/g; s/^/"/; s/$/"/p
14841d
14842:bsnlc
14843s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14844b cont
14845' <confdefs.h | sed '
14846s/'"$ac_delim"'/"\\\
14847"/g' >>$CONFIG_STATUS || ac_write_fail=1
14848
14849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14850  for (key in D) D_is_set[key] = 1
14851  FS = ""
14852}
14853/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14854  line = \$ 0
14855  split(line, arg, " ")
14856  if (arg[1] == "#") {
14857    defundef = arg[2]
14858    mac1 = arg[3]
14859  } else {
14860    defundef = substr(arg[1], 2)
14861    mac1 = arg[2]
14862  }
14863  split(mac1, mac2, "(") #)
14864  macro = mac2[1]
14865  prefix = substr(line, 1, index(line, defundef) - 1)
14866  if (D_is_set[macro]) {
14867    # Preserve the white space surrounding the "#".
14868    print prefix "define", macro P[macro] D[macro]
14869    next
14870  } else {
14871    # Replace #undef with comments.  This is necessary, for example,
14872    # in the case of _POSIX_SOURCE, which is predefined and required
14873    # on some systems where configure will not decide to define it.
14874    if (defundef == "undef") {
14875      print "/*", prefix defundef, macro, "*/"
14876      next
14877    }
14878  }
14879}
14880{ print }
14881_ACAWK
14882_ACEOF
14883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14884  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14885fi # test -n "$CONFIG_HEADERS"
14886
14887
14888eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14889shift
14890for ac_tag
14891do
14892  case $ac_tag in
14893  :[FHLC]) ac_mode=$ac_tag; continue;;
14894  esac
14895  case $ac_mode$ac_tag in
14896  :[FHL]*:*);;
14897  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14898  :[FH]-) ac_tag=-:-;;
14899  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14900  esac
14901  ac_save_IFS=$IFS
14902  IFS=:
14903  set x $ac_tag
14904  IFS=$ac_save_IFS
14905  shift
14906  ac_file=$1
14907  shift
14908
14909  case $ac_mode in
14910  :L) ac_source=$1;;
14911  :[FH])
14912    ac_file_inputs=
14913    for ac_f
14914    do
14915      case $ac_f in
14916      -) ac_f="$ac_tmp/stdin";;
14917      *) # Look for the file first in the build tree, then in the source tree
14918	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14919	 # because $ac_f cannot contain `:'.
14920	 test -f "$ac_f" ||
14921	   case $ac_f in
14922	   [\\/$]*) false;;
14923	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14924	   esac ||
14925	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14926      esac
14927      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14928      as_fn_append ac_file_inputs " '$ac_f'"
14929    done
14930
14931    # Let's still pretend it is `configure' which instantiates (i.e., don't
14932    # use $as_me), people would be surprised to read:
14933    #    /* config.h.  Generated by config.status.  */
14934    configure_input='Generated from '`
14935	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14936	`' by configure.'
14937    if test x"$ac_file" != x-; then
14938      configure_input="$ac_file.  $configure_input"
14939      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14940$as_echo "$as_me: creating $ac_file" >&6;}
14941    fi
14942    # Neutralize special characters interpreted by sed in replacement strings.
14943    case $configure_input in #(
14944    *\&* | *\|* | *\\* )
14945       ac_sed_conf_input=`$as_echo "$configure_input" |
14946       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14947    *) ac_sed_conf_input=$configure_input;;
14948    esac
14949
14950    case $ac_tag in
14951    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14952      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14953    esac
14954    ;;
14955  esac
14956
14957  ac_dir=`$as_dirname -- "$ac_file" ||
14958$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14959	 X"$ac_file" : 'X\(//\)[^/]' \| \
14960	 X"$ac_file" : 'X\(//\)$' \| \
14961	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14962$as_echo X"$ac_file" |
14963    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14964	    s//\1/
14965	    q
14966	  }
14967	  /^X\(\/\/\)[^/].*/{
14968	    s//\1/
14969	    q
14970	  }
14971	  /^X\(\/\/\)$/{
14972	    s//\1/
14973	    q
14974	  }
14975	  /^X\(\/\).*/{
14976	    s//\1/
14977	    q
14978	  }
14979	  s/.*/./; q'`
14980  as_dir="$ac_dir"; as_fn_mkdir_p
14981  ac_builddir=.
14982
14983case "$ac_dir" in
14984.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14985*)
14986  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14987  # A ".." for each directory in $ac_dir_suffix.
14988  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14989  case $ac_top_builddir_sub in
14990  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14991  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14992  esac ;;
14993esac
14994ac_abs_top_builddir=$ac_pwd
14995ac_abs_builddir=$ac_pwd$ac_dir_suffix
14996# for backward compatibility:
14997ac_top_builddir=$ac_top_build_prefix
14998
14999case $srcdir in
15000  .)  # We are building in place.
15001    ac_srcdir=.
15002    ac_top_srcdir=$ac_top_builddir_sub
15003    ac_abs_top_srcdir=$ac_pwd ;;
15004  [\\/]* | ?:[\\/]* )  # Absolute name.
15005    ac_srcdir=$srcdir$ac_dir_suffix;
15006    ac_top_srcdir=$srcdir
15007    ac_abs_top_srcdir=$srcdir ;;
15008  *) # Relative name.
15009    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15010    ac_top_srcdir=$ac_top_build_prefix$srcdir
15011    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15012esac
15013ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15014
15015
15016  case $ac_mode in
15017  :F)
15018  #
15019  # CONFIG_FILE
15020  #
15021
15022  case $INSTALL in
15023  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15024  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15025  esac
15026  ac_MKDIR_P=$MKDIR_P
15027  case $MKDIR_P in
15028  [\\/$]* | ?:[\\/]* ) ;;
15029  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15030  esac
15031_ACEOF
15032
15033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15034# If the template does not know about datarootdir, expand it.
15035# FIXME: This hack should be removed a few years after 2.60.
15036ac_datarootdir_hack=; ac_datarootdir_seen=
15037ac_sed_dataroot='
15038/datarootdir/ {
15039  p
15040  q
15041}
15042/@datadir@/p
15043/@docdir@/p
15044/@infodir@/p
15045/@localedir@/p
15046/@mandir@/p'
15047case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15048*datarootdir*) ac_datarootdir_seen=yes;;
15049*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15050  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15051$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15052_ACEOF
15053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15054  ac_datarootdir_hack='
15055  s&@datadir@&$datadir&g
15056  s&@docdir@&$docdir&g
15057  s&@infodir@&$infodir&g
15058  s&@localedir@&$localedir&g
15059  s&@mandir@&$mandir&g
15060  s&\\\${datarootdir}&$datarootdir&g' ;;
15061esac
15062_ACEOF
15063
15064# Neutralize VPATH when `$srcdir' = `.'.
15065# Shell code in configure.ac might set extrasub.
15066# FIXME: do we really want to maintain this feature?
15067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15068ac_sed_extra="$ac_vpsub
15069$extrasub
15070_ACEOF
15071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15072:t
15073/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15074s|@configure_input@|$ac_sed_conf_input|;t t
15075s&@top_builddir@&$ac_top_builddir_sub&;t t
15076s&@top_build_prefix@&$ac_top_build_prefix&;t t
15077s&@srcdir@&$ac_srcdir&;t t
15078s&@abs_srcdir@&$ac_abs_srcdir&;t t
15079s&@top_srcdir@&$ac_top_srcdir&;t t
15080s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15081s&@builddir@&$ac_builddir&;t t
15082s&@abs_builddir@&$ac_abs_builddir&;t t
15083s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15084s&@INSTALL@&$ac_INSTALL&;t t
15085s&@MKDIR_P@&$ac_MKDIR_P&;t t
15086$ac_datarootdir_hack
15087"
15088eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15089  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15090
15091test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15092  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15093  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15094      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15095  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15096which seems to be undefined.  Please make sure it is defined" >&5
15097$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15098which seems to be undefined.  Please make sure it is defined" >&2;}
15099
15100  rm -f "$ac_tmp/stdin"
15101  case $ac_file in
15102  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15103  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15104  esac \
15105  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15106 ;;
15107  :H)
15108  #
15109  # CONFIG_HEADER
15110  #
15111  if test x"$ac_file" != x-; then
15112    {
15113      $as_echo "/* $configure_input  */" \
15114      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15115    } >"$ac_tmp/config.h" \
15116      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15117    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15118      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15119$as_echo "$as_me: $ac_file is unchanged" >&6;}
15120    else
15121      rm -f "$ac_file"
15122      mv "$ac_tmp/config.h" "$ac_file" \
15123	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15124    fi
15125  else
15126    $as_echo "/* $configure_input  */" \
15127      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15128      || as_fn_error $? "could not create -" "$LINENO" 5
15129  fi
15130# Compute "$ac_file"'s index in $config_headers.
15131_am_arg="$ac_file"
15132_am_stamp_count=1
15133for _am_header in $config_headers :; do
15134  case $_am_header in
15135    $_am_arg | $_am_arg:* )
15136      break ;;
15137    * )
15138      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15139  esac
15140done
15141echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15142$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15143	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15144	 X"$_am_arg" : 'X\(//\)$' \| \
15145	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15146$as_echo X"$_am_arg" |
15147    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15148	    s//\1/
15149	    q
15150	  }
15151	  /^X\(\/\/\)[^/].*/{
15152	    s//\1/
15153	    q
15154	  }
15155	  /^X\(\/\/\)$/{
15156	    s//\1/
15157	    q
15158	  }
15159	  /^X\(\/\).*/{
15160	    s//\1/
15161	    q
15162	  }
15163	  s/.*/./; q'`/stamp-h$_am_stamp_count
15164 ;;
15165
15166  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15167$as_echo "$as_me: executing $ac_file commands" >&6;}
15168 ;;
15169  esac
15170
15171
15172  case $ac_file$ac_mode in
15173    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15174  # Older Autoconf quotes --file arguments for eval, but not when files
15175  # are listed without --file.  Let's play safe and only enable the eval
15176  # if we detect the quoting.
15177  case $CONFIG_FILES in
15178  *\'*) eval set x "$CONFIG_FILES" ;;
15179  *)   set x $CONFIG_FILES ;;
15180  esac
15181  shift
15182  for mf
15183  do
15184    # Strip MF so we end up with the name of the file.
15185    mf=`echo "$mf" | sed -e 's/:.*$//'`
15186    # Check whether this is an Automake generated Makefile or not.
15187    # We used to match only the files named 'Makefile.in', but
15188    # some people rename them; so instead we look at the file content.
15189    # Grep'ing the first line is not enough: some people post-process
15190    # each Makefile.in and add a new line on top of each file to say so.
15191    # Grep'ing the whole file is not good either: AIX grep has a line
15192    # limit of 2048, but all sed's we know have understand at least 4000.
15193    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15194      dirpart=`$as_dirname -- "$mf" ||
15195$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15196	 X"$mf" : 'X\(//\)[^/]' \| \
15197	 X"$mf" : 'X\(//\)$' \| \
15198	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15199$as_echo X"$mf" |
15200    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15201	    s//\1/
15202	    q
15203	  }
15204	  /^X\(\/\/\)[^/].*/{
15205	    s//\1/
15206	    q
15207	  }
15208	  /^X\(\/\/\)$/{
15209	    s//\1/
15210	    q
15211	  }
15212	  /^X\(\/\).*/{
15213	    s//\1/
15214	    q
15215	  }
15216	  s/.*/./; q'`
15217    else
15218      continue
15219    fi
15220    # Extract the definition of DEPDIR, am__include, and am__quote
15221    # from the Makefile without running 'make'.
15222    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15223    test -z "$DEPDIR" && continue
15224    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15225    test -z "$am__include" && continue
15226    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15227    # Find all dependency output files, they are included files with
15228    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15229    # simplest approach to changing $(DEPDIR) to its actual value in the
15230    # expansion.
15231    for file in `sed -n "
15232      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15233	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15234      # Make sure the directory exists.
15235      test -f "$dirpart/$file" && continue
15236      fdir=`$as_dirname -- "$file" ||
15237$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15238	 X"$file" : 'X\(//\)[^/]' \| \
15239	 X"$file" : 'X\(//\)$' \| \
15240	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15241$as_echo X"$file" |
15242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15243	    s//\1/
15244	    q
15245	  }
15246	  /^X\(\/\/\)[^/].*/{
15247	    s//\1/
15248	    q
15249	  }
15250	  /^X\(\/\/\)$/{
15251	    s//\1/
15252	    q
15253	  }
15254	  /^X\(\/\).*/{
15255	    s//\1/
15256	    q
15257	  }
15258	  s/.*/./; q'`
15259      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15260      # echo "creating $dirpart/$file"
15261      echo '# dummy' > "$dirpart/$file"
15262    done
15263  done
15264}
15265 ;;
15266    "libtool":C)
15267
15268    # See if we are running on zsh, and set the options which allow our
15269    # commands through without removal of \ escapes.
15270    if test -n "${ZSH_VERSION+set}" ; then
15271      setopt NO_GLOB_SUBST
15272    fi
15273
15274    cfgfile="${ofile}T"
15275    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15276    $RM "$cfgfile"
15277
15278    cat <<_LT_EOF >> "$cfgfile"
15279#! $SHELL
15280
15281# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15282# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15283# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15284# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15285#
15286#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15287#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15288#                 Foundation, Inc.
15289#   Written by Gordon Matzigkeit, 1996
15290#
15291#   This file is part of GNU Libtool.
15292#
15293# GNU Libtool is free software; you can redistribute it and/or
15294# modify it under the terms of the GNU General Public License as
15295# published by the Free Software Foundation; either version 2 of
15296# the License, or (at your option) any later version.
15297#
15298# As a special exception to the GNU General Public License,
15299# if you distribute this file as part of a program or library that
15300# is built using GNU Libtool, you may include this file under the
15301# same distribution terms that you use for the rest of that program.
15302#
15303# GNU Libtool is distributed in the hope that it will be useful,
15304# but WITHOUT ANY WARRANTY; without even the implied warranty of
15305# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15306# GNU General Public License for more details.
15307#
15308# You should have received a copy of the GNU General Public License
15309# along with GNU Libtool; see the file COPYING.  If not, a copy
15310# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15311# obtained by writing to the Free Software Foundation, Inc.,
15312# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15313
15314
15315# The names of the tagged configurations supported by this script.
15316available_tags=""
15317
15318# ### BEGIN LIBTOOL CONFIG
15319
15320# Which release of libtool.m4 was used?
15321macro_version=$macro_version
15322macro_revision=$macro_revision
15323
15324# Whether or not to build shared libraries.
15325build_libtool_libs=$enable_shared
15326
15327# Whether or not to build static libraries.
15328build_old_libs=$enable_static
15329
15330# What type of objects to build.
15331pic_mode=$pic_mode
15332
15333# Whether or not to optimize for fast installation.
15334fast_install=$enable_fast_install
15335
15336# Shell to use when invoking shell scripts.
15337SHELL=$lt_SHELL
15338
15339# An echo program that protects backslashes.
15340ECHO=$lt_ECHO
15341
15342# The PATH separator for the build system.
15343PATH_SEPARATOR=$lt_PATH_SEPARATOR
15344
15345# The host system.
15346host_alias=$host_alias
15347host=$host
15348host_os=$host_os
15349
15350# The build system.
15351build_alias=$build_alias
15352build=$build
15353build_os=$build_os
15354
15355# A sed program that does not truncate output.
15356SED=$lt_SED
15357
15358# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15359Xsed="\$SED -e 1s/^X//"
15360
15361# A grep program that handles long lines.
15362GREP=$lt_GREP
15363
15364# An ERE matcher.
15365EGREP=$lt_EGREP
15366
15367# A literal string matcher.
15368FGREP=$lt_FGREP
15369
15370# A BSD- or MS-compatible name lister.
15371NM=$lt_NM
15372
15373# Whether we need soft or hard links.
15374LN_S=$lt_LN_S
15375
15376# What is the maximum length of a command?
15377max_cmd_len=$max_cmd_len
15378
15379# Object file suffix (normally "o").
15380objext=$ac_objext
15381
15382# Executable file suffix (normally "").
15383exeext=$exeext
15384
15385# whether the shell understands "unset".
15386lt_unset=$lt_unset
15387
15388# turn spaces into newlines.
15389SP2NL=$lt_lt_SP2NL
15390
15391# turn newlines into spaces.
15392NL2SP=$lt_lt_NL2SP
15393
15394# convert \$build file names to \$host format.
15395to_host_file_cmd=$lt_cv_to_host_file_cmd
15396
15397# convert \$build files to toolchain format.
15398to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15399
15400# An object symbol dumper.
15401OBJDUMP=$lt_OBJDUMP
15402
15403# Method to check whether dependent libraries are shared objects.
15404deplibs_check_method=$lt_deplibs_check_method
15405
15406# Command to use when deplibs_check_method = "file_magic".
15407file_magic_cmd=$lt_file_magic_cmd
15408
15409# How to find potential files when deplibs_check_method = "file_magic".
15410file_magic_glob=$lt_file_magic_glob
15411
15412# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15413want_nocaseglob=$lt_want_nocaseglob
15414
15415# DLL creation program.
15416DLLTOOL=$lt_DLLTOOL
15417
15418# Command to associate shared and link libraries.
15419sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15420
15421# The archiver.
15422AR=$lt_AR
15423
15424# Flags to create an archive.
15425AR_FLAGS=$lt_AR_FLAGS
15426
15427# How to feed a file listing to the archiver.
15428archiver_list_spec=$lt_archiver_list_spec
15429
15430# A symbol stripping program.
15431STRIP=$lt_STRIP
15432
15433# Commands used to install an old-style archive.
15434RANLIB=$lt_RANLIB
15435old_postinstall_cmds=$lt_old_postinstall_cmds
15436old_postuninstall_cmds=$lt_old_postuninstall_cmds
15437
15438# Whether to use a lock for old archive extraction.
15439lock_old_archive_extraction=$lock_old_archive_extraction
15440
15441# A C compiler.
15442LTCC=$lt_CC
15443
15444# LTCC compiler flags.
15445LTCFLAGS=$lt_CFLAGS
15446
15447# Take the output of nm and produce a listing of raw symbols and C names.
15448global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15449
15450# Transform the output of nm in a proper C declaration.
15451global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15452
15453# Transform the output of nm in a C name address pair.
15454global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15455
15456# Transform the output of nm in a C name address pair when lib prefix is needed.
15457global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15458
15459# Specify filename containing input files for \$NM.
15460nm_file_list_spec=$lt_nm_file_list_spec
15461
15462# The root where to search for dependent libraries,and in which our libraries should be installed.
15463lt_sysroot=$lt_sysroot
15464
15465# The name of the directory that contains temporary libtool files.
15466objdir=$objdir
15467
15468# Used to examine libraries when file_magic_cmd begins with "file".
15469MAGIC_CMD=$MAGIC_CMD
15470
15471# Must we lock files when doing compilation?
15472need_locks=$lt_need_locks
15473
15474# Manifest tool.
15475MANIFEST_TOOL=$lt_MANIFEST_TOOL
15476
15477# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15478DSYMUTIL=$lt_DSYMUTIL
15479
15480# Tool to change global to local symbols on Mac OS X.
15481NMEDIT=$lt_NMEDIT
15482
15483# Tool to manipulate fat objects and archives on Mac OS X.
15484LIPO=$lt_LIPO
15485
15486# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15487OTOOL=$lt_OTOOL
15488
15489# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15490OTOOL64=$lt_OTOOL64
15491
15492# Old archive suffix (normally "a").
15493libext=$libext
15494
15495# Shared library suffix (normally ".so").
15496shrext_cmds=$lt_shrext_cmds
15497
15498# The commands to extract the exported symbol list from a shared archive.
15499extract_expsyms_cmds=$lt_extract_expsyms_cmds
15500
15501# Variables whose values should be saved in libtool wrapper scripts and
15502# restored at link time.
15503variables_saved_for_relink=$lt_variables_saved_for_relink
15504
15505# Do we need the "lib" prefix for modules?
15506need_lib_prefix=$need_lib_prefix
15507
15508# Do we need a version for libraries?
15509need_version=$need_version
15510
15511# Library versioning type.
15512version_type=$version_type
15513
15514# Shared library runtime path variable.
15515runpath_var=$runpath_var
15516
15517# Shared library path variable.
15518shlibpath_var=$shlibpath_var
15519
15520# Is shlibpath searched before the hard-coded library search path?
15521shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15522
15523# Format of library name prefix.
15524libname_spec=$lt_libname_spec
15525
15526# List of archive names.  First name is the real one, the rest are links.
15527# The last name is the one that the linker finds with -lNAME
15528library_names_spec=$lt_library_names_spec
15529
15530# The coded name of the library, if different from the real name.
15531soname_spec=$lt_soname_spec
15532
15533# Permission mode override for installation of shared libraries.
15534install_override_mode=$lt_install_override_mode
15535
15536# Command to use after installation of a shared archive.
15537postinstall_cmds=$lt_postinstall_cmds
15538
15539# Command to use after uninstallation of a shared archive.
15540postuninstall_cmds=$lt_postuninstall_cmds
15541
15542# Commands used to finish a libtool library installation in a directory.
15543finish_cmds=$lt_finish_cmds
15544
15545# As "finish_cmds", except a single script fragment to be evaled but
15546# not shown.
15547finish_eval=$lt_finish_eval
15548
15549# Whether we should hardcode library paths into libraries.
15550hardcode_into_libs=$hardcode_into_libs
15551
15552# Compile-time system search path for libraries.
15553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15554
15555# Run-time system search path for libraries.
15556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15557
15558# Whether dlopen is supported.
15559dlopen_support=$enable_dlopen
15560
15561# Whether dlopen of programs is supported.
15562dlopen_self=$enable_dlopen_self
15563
15564# Whether dlopen of statically linked programs is supported.
15565dlopen_self_static=$enable_dlopen_self_static
15566
15567# Commands to strip libraries.
15568old_striplib=$lt_old_striplib
15569striplib=$lt_striplib
15570
15571
15572# The linker used to build libraries.
15573LD=$lt_LD
15574
15575# How to create reloadable object files.
15576reload_flag=$lt_reload_flag
15577reload_cmds=$lt_reload_cmds
15578
15579# Commands used to build an old-style archive.
15580old_archive_cmds=$lt_old_archive_cmds
15581
15582# A language specific compiler.
15583CC=$lt_compiler
15584
15585# Is the compiler the GNU compiler?
15586with_gcc=$GCC
15587
15588# Compiler flag to turn off builtin functions.
15589no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15590
15591# Additional compiler flags for building library objects.
15592pic_flag=$lt_lt_prog_compiler_pic
15593
15594# How to pass a linker flag through the compiler.
15595wl=$lt_lt_prog_compiler_wl
15596
15597# Compiler flag to prevent dynamic linking.
15598link_static_flag=$lt_lt_prog_compiler_static
15599
15600# Does compiler simultaneously support -c and -o options?
15601compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15602
15603# Whether or not to add -lc for building shared libraries.
15604build_libtool_need_lc=$archive_cmds_need_lc
15605
15606# Whether or not to disallow shared libs when runtime libs are static.
15607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15608
15609# Compiler flag to allow reflexive dlopens.
15610export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15611
15612# Compiler flag to generate shared objects directly from archives.
15613whole_archive_flag_spec=$lt_whole_archive_flag_spec
15614
15615# Whether the compiler copes with passing no objects directly.
15616compiler_needs_object=$lt_compiler_needs_object
15617
15618# Create an old-style archive from a shared archive.
15619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15620
15621# Create a temporary old-style archive to link instead of a shared archive.
15622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15623
15624# Commands used to build a shared archive.
15625archive_cmds=$lt_archive_cmds
15626archive_expsym_cmds=$lt_archive_expsym_cmds
15627
15628# Commands used to build a loadable module if different from building
15629# a shared archive.
15630module_cmds=$lt_module_cmds
15631module_expsym_cmds=$lt_module_expsym_cmds
15632
15633# Whether we are building with GNU ld or not.
15634with_gnu_ld=$lt_with_gnu_ld
15635
15636# Flag that allows shared libraries with undefined symbols to be built.
15637allow_undefined_flag=$lt_allow_undefined_flag
15638
15639# Flag that enforces no undefined symbols.
15640no_undefined_flag=$lt_no_undefined_flag
15641
15642# Flag to hardcode \$libdir into a binary during linking.
15643# This must work even if \$libdir does not exist
15644hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15645
15646# Whether we need a single "-rpath" flag with a separated argument.
15647hardcode_libdir_separator=$lt_hardcode_libdir_separator
15648
15649# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15650# DIR into the resulting binary.
15651hardcode_direct=$hardcode_direct
15652
15653# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15654# DIR into the resulting binary and the resulting library dependency is
15655# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15656# library is relocated.
15657hardcode_direct_absolute=$hardcode_direct_absolute
15658
15659# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15660# into the resulting binary.
15661hardcode_minus_L=$hardcode_minus_L
15662
15663# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15664# into the resulting binary.
15665hardcode_shlibpath_var=$hardcode_shlibpath_var
15666
15667# Set to "yes" if building a shared library automatically hardcodes DIR
15668# into the library and all subsequent libraries and executables linked
15669# against it.
15670hardcode_automatic=$hardcode_automatic
15671
15672# Set to yes if linker adds runtime paths of dependent libraries
15673# to runtime path list.
15674inherit_rpath=$inherit_rpath
15675
15676# Whether libtool must link a program against all its dependency libraries.
15677link_all_deplibs=$link_all_deplibs
15678
15679# Set to "yes" if exported symbols are required.
15680always_export_symbols=$always_export_symbols
15681
15682# The commands to list exported symbols.
15683export_symbols_cmds=$lt_export_symbols_cmds
15684
15685# Symbols that should not be listed in the preloaded symbols.
15686exclude_expsyms=$lt_exclude_expsyms
15687
15688# Symbols that must always be exported.
15689include_expsyms=$lt_include_expsyms
15690
15691# Commands necessary for linking programs (against libraries) with templates.
15692prelink_cmds=$lt_prelink_cmds
15693
15694# Commands necessary for finishing linking programs.
15695postlink_cmds=$lt_postlink_cmds
15696
15697# Specify filename containing input files.
15698file_list_spec=$lt_file_list_spec
15699
15700# How to hardcode a shared library path into an executable.
15701hardcode_action=$hardcode_action
15702
15703# ### END LIBTOOL CONFIG
15704
15705_LT_EOF
15706
15707  case $host_os in
15708  aix3*)
15709    cat <<\_LT_EOF >> "$cfgfile"
15710# AIX sometimes has problems with the GCC collect2 program.  For some
15711# reason, if we set the COLLECT_NAMES environment variable, the problems
15712# vanish in a puff of smoke.
15713if test "X${COLLECT_NAMES+set}" != Xset; then
15714  COLLECT_NAMES=
15715  export COLLECT_NAMES
15716fi
15717_LT_EOF
15718    ;;
15719  esac
15720
15721
15722ltmain="$ac_aux_dir/ltmain.sh"
15723
15724
15725  # We use sed instead of cat because bash on DJGPP gets confused if
15726  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15727  # text mode, it properly converts lines to CR/LF.  This bash problem
15728  # is reportedly fixed, but why not run on old versions too?
15729  sed '$q' "$ltmain" >> "$cfgfile" \
15730     || (rm -f "$cfgfile"; exit 1)
15731
15732  if test x"$xsi_shell" = xyes; then
15733  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15734func_dirname ()\
15735{\
15736\    case ${1} in\
15737\      */*) func_dirname_result="${1%/*}${2}" ;;\
15738\      *  ) func_dirname_result="${3}" ;;\
15739\    esac\
15740} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15741  && mv -f "$cfgfile.tmp" "$cfgfile" \
15742    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15743test 0 -eq $? || _lt_function_replace_fail=:
15744
15745
15746  sed -e '/^func_basename ()$/,/^} # func_basename /c\
15747func_basename ()\
15748{\
15749\    func_basename_result="${1##*/}"\
15750} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15751  && mv -f "$cfgfile.tmp" "$cfgfile" \
15752    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15753test 0 -eq $? || _lt_function_replace_fail=:
15754
15755
15756  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15757func_dirname_and_basename ()\
15758{\
15759\    case ${1} in\
15760\      */*) func_dirname_result="${1%/*}${2}" ;;\
15761\      *  ) func_dirname_result="${3}" ;;\
15762\    esac\
15763\    func_basename_result="${1##*/}"\
15764} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15765  && mv -f "$cfgfile.tmp" "$cfgfile" \
15766    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15767test 0 -eq $? || _lt_function_replace_fail=:
15768
15769
15770  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15771func_stripname ()\
15772{\
15773\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15774\    # positional parameters, so assign one to ordinary parameter first.\
15775\    func_stripname_result=${3}\
15776\    func_stripname_result=${func_stripname_result#"${1}"}\
15777\    func_stripname_result=${func_stripname_result%"${2}"}\
15778} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15779  && mv -f "$cfgfile.tmp" "$cfgfile" \
15780    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15781test 0 -eq $? || _lt_function_replace_fail=:
15782
15783
15784  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15785func_split_long_opt ()\
15786{\
15787\    func_split_long_opt_name=${1%%=*}\
15788\    func_split_long_opt_arg=${1#*=}\
15789} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15790  && mv -f "$cfgfile.tmp" "$cfgfile" \
15791    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15792test 0 -eq $? || _lt_function_replace_fail=:
15793
15794
15795  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15796func_split_short_opt ()\
15797{\
15798\    func_split_short_opt_arg=${1#??}\
15799\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15800} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15801  && mv -f "$cfgfile.tmp" "$cfgfile" \
15802    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15803test 0 -eq $? || _lt_function_replace_fail=:
15804
15805
15806  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15807func_lo2o ()\
15808{\
15809\    case ${1} in\
15810\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15811\      *)    func_lo2o_result=${1} ;;\
15812\    esac\
15813} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15814  && mv -f "$cfgfile.tmp" "$cfgfile" \
15815    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15816test 0 -eq $? || _lt_function_replace_fail=:
15817
15818
15819  sed -e '/^func_xform ()$/,/^} # func_xform /c\
15820func_xform ()\
15821{\
15822    func_xform_result=${1%.*}.lo\
15823} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15824  && mv -f "$cfgfile.tmp" "$cfgfile" \
15825    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15826test 0 -eq $? || _lt_function_replace_fail=:
15827
15828
15829  sed -e '/^func_arith ()$/,/^} # func_arith /c\
15830func_arith ()\
15831{\
15832    func_arith_result=$(( $* ))\
15833} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15834  && mv -f "$cfgfile.tmp" "$cfgfile" \
15835    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15836test 0 -eq $? || _lt_function_replace_fail=:
15837
15838
15839  sed -e '/^func_len ()$/,/^} # func_len /c\
15840func_len ()\
15841{\
15842    func_len_result=${#1}\
15843} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15844  && mv -f "$cfgfile.tmp" "$cfgfile" \
15845    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15846test 0 -eq $? || _lt_function_replace_fail=:
15847
15848fi
15849
15850if test x"$lt_shell_append" = xyes; then
15851  sed -e '/^func_append ()$/,/^} # func_append /c\
15852func_append ()\
15853{\
15854    eval "${1}+=\\${2}"\
15855} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15856  && mv -f "$cfgfile.tmp" "$cfgfile" \
15857    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15858test 0 -eq $? || _lt_function_replace_fail=:
15859
15860
15861  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15862func_append_quoted ()\
15863{\
15864\    func_quote_for_eval "${2}"\
15865\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15866} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15867  && mv -f "$cfgfile.tmp" "$cfgfile" \
15868    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15869test 0 -eq $? || _lt_function_replace_fail=:
15870
15871
15872  # Save a `func_append' function call where possible by direct use of '+='
15873  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15874    && mv -f "$cfgfile.tmp" "$cfgfile" \
15875      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15876  test 0 -eq $? || _lt_function_replace_fail=:
15877else
15878  # Save a `func_append' function call even when '+=' is not available
15879  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15880    && mv -f "$cfgfile.tmp" "$cfgfile" \
15881      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15882  test 0 -eq $? || _lt_function_replace_fail=:
15883fi
15884
15885if test x"$_lt_function_replace_fail" = x":"; then
15886  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15887$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15888fi
15889
15890
15891   mv -f "$cfgfile" "$ofile" ||
15892    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15893  chmod +x "$ofile"
15894
15895 ;;
15896
15897  esac
15898done # for ac_tag
15899
15900
15901as_fn_exit 0
15902_ACEOF
15903ac_clean_files=$ac_clean_files_save
15904
15905test $ac_write_fail = 0 ||
15906  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15907
15908
15909# configure is writing to config.log, and then calls config.status.
15910# config.status does its own redirection, appending to config.log.
15911# Unfortunately, on DOS this fails, as config.log is still kept open
15912# by configure, so config.status won't be able to write to it; its
15913# output is simply discarded.  So we exec the FD to /dev/null,
15914# effectively closing config.log, so it can be properly (re)opened and
15915# appended to by config.status.  When coming back to configure, we
15916# need to make the FD available again.
15917if test "$no_create" != yes; then
15918  ac_cs_success=:
15919  ac_config_status_args=
15920  test "$silent" = yes &&
15921    ac_config_status_args="$ac_config_status_args --quiet"
15922  exec 5>/dev/null
15923  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15924  exec 5>>config.log
15925  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15926  # would make configure fail if this is the last instruction.
15927  $ac_cs_success || as_fn_exit 1
15928fi
15929if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15930  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15931$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15932fi
15933
15934