xref: /netbsd-src/sys/external/isc/libsodium/dist/configure (revision f447f37a0a0b7f2a0e879f17bef92d4992e27500)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libsodium 1.0.16.
4#
5# Report bugs to <https://github.com/jedisct1/libsodium/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/jedisct1/libsodium/issues about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libsodium'
592PACKAGE_TARNAME='libsodium'
593PACKAGE_VERSION='1.0.16'
594PACKAGE_STRING='libsodium 1.0.16'
595PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596PACKAGE_URL='https://github.com/jedisct1/libsodium'
597
598ac_unique_file="src/libsodium/sodium/version.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_LD_OUTPUT_DEF_FALSE
640HAVE_LD_OUTPUT_DEF_TRUE
641AS
642NATIVECLIENT_FALSE
643NATIVECLIENT_TRUE
644EMSCRIPTEN_FALSE
645EMSCRIPTEN_TRUE
646TEST_LDFLAGS
647LIBTOOL_EXTRA_FLAGS
648ALLOCA
649HAVE_CPUID_V
650HAVE_TI_MODE_V
651HAVE_TI_MODE_FALSE
652HAVE_TI_MODE_TRUE
653HAVE_AVX_ASM_V
654HAVE_AVX_ASM_FALSE
655HAVE_AVX_ASM_TRUE
656HAVE_AMD64_ASM_V
657HAVE_AMD64_ASM_FALSE
658HAVE_AMD64_ASM_TRUE
659CFLAGS_RDRAND
660CFLAGS_PCLMUL
661CFLAGS_AESNI
662CFLAGS_AVX512F
663CFLAGS_AVX2
664CFLAGS_AVX
665CFLAGS_SSE41
666CFLAGS_SSSE3
667CFLAGS_SSE3
668CFLAGS_SSE2
669CFLAGS_MMX
670LIBTOOL_DEPS
671LT_SYS_LIBRARY_PATH
672OTOOL64
673OTOOL
674LIPO
675NMEDIT
676DSYMUTIL
677MANIFEST_TOOL
678RANLIB
679ac_ct_AR
680AR
681DLLTOOL
682OBJDUMP
683LN_S
684NM
685ac_ct_DUMPBIN
686DUMPBIN
687LD
688FGREP
689LIBTOOL
690CWFLAGS
691am__fastdepCCAS_FALSE
692am__fastdepCCAS_TRUE
693CCASDEPMODE
694CCASFLAGS
695CCAS
696VALGRIND_CHECK_RULES
697valgrind_enabled_tools
698valgrind_tools
699ENABLE_VALGRIND_sgcheck
700ENABLE_VALGRIND_drd
701ENABLE_VALGRIND_helgrind
702ENABLE_VALGRIND_memcheck
703VALGRIND_ENABLED
704VALGRIND_ENABLED_FALSE
705VALGRIND_ENABLED_TRUE
706VALGRIND
707SAFECODE_HOME
708PTHREAD_CFLAGS
709PTHREAD_LIBS
710PTHREAD_CC
711ax_pthread_config
712EGREP
713GREP
714CPP
715SED
716SODIUM_LIBRARY_MINIMAL_DEF
717MINIMAL_FALSE
718MINIMAL_TRUE
719am__fastdepCC_FALSE
720am__fastdepCC_TRUE
721CCDEPMODE
722am__quote
723am__include
724DEPDIR
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732DLL_VERSION
733SODIUM_LIBRARY_VERSION
734SODIUM_LIBRARY_VERSION_MINOR
735SODIUM_LIBRARY_VERSION_MAJOR
736ISODATE
737am__nodep
738AMDEPBACKSLASH
739AMDEP_FALSE
740AMDEP_TRUE
741MAINT
742MAINTAINER_MODE_FALSE
743MAINTAINER_MODE_TRUE
744AM_BACKSLASH
745AM_DEFAULT_VERBOSITY
746AM_DEFAULT_V
747AM_V
748am__untar
749am__tar
750AMTAR
751am__leading_dot
752SET_MAKE
753AWK
754mkdir_p
755MKDIR_P
756INSTALL_STRIP_PROGRAM
757STRIP
758install_sh
759MAKEINFO
760AUTOHEADER
761AUTOMAKE
762AUTOCONF
763ACLOCAL
764VERSION
765PACKAGE
766CYGPATH_W
767am__isrc
768INSTALL_DATA
769INSTALL_SCRIPT
770INSTALL_PROGRAM
771host_os
772host_vendor
773host_cpu
774host
775build_os
776build_vendor
777build_cpu
778build
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_silent_rules
821enable_maintainer_mode
822enable_dependency_tracking
823enable_ssp
824enable_asm
825enable_pie
826enable_blocking_random
827enable_minimal
828with_pthreads
829with_safecode
830with_ctgrind
831enable_debug
832enable_opt
833enable_valgrind
834enable_valgrind_memcheck
835enable_valgrind_helgrind
836enable_valgrind_drd
837enable_valgrind_sgcheck
838enable_soname_versions
839enable_shared
840enable_static
841with_pic
842enable_fast_install
843with_aix_soname
844with_gnu_ld
845with_sysroot
846enable_libtool_lock
847'
848      ac_precious_vars='build_alias
849host_alias
850target_alias
851CC
852CFLAGS
853LDFLAGS
854LIBS
855CPPFLAGS
856CPP
857SAFECODE_HOME
858CCAS
859CCASFLAGS
860CWFLAGS
861LT_SYS_LIBRARY_PATH
862AR'
863
864
865# Initialize some variables set by options.
866ac_init_help=
867ac_init_version=false
868ac_unrecognized_opts=
869ac_unrecognized_sep=
870# The variables have the same names as the options, with
871# dashes changed to underlines.
872cache_file=/dev/null
873exec_prefix=NONE
874no_create=
875no_recursion=
876prefix=NONE
877program_prefix=NONE
878program_suffix=NONE
879program_transform_name=s,x,x,
880silent=
881site=
882srcdir=
883verbose=
884x_includes=NONE
885x_libraries=NONE
886
887# Installation directory options.
888# These are left unexpanded so users can "make install exec_prefix=/foo"
889# and all the variables that are supposed to be based on exec_prefix
890# by default will actually change.
891# Use braces instead of parens because sh, perl, etc. also accept them.
892# (The list follows the same order as the GNU Coding Standards.)
893bindir='${exec_prefix}/bin'
894sbindir='${exec_prefix}/sbin'
895libexecdir='${exec_prefix}/libexec'
896datarootdir='${prefix}/share'
897datadir='${datarootdir}'
898sysconfdir='${prefix}/etc'
899sharedstatedir='${prefix}/com'
900localstatedir='${prefix}/var'
901includedir='${prefix}/include'
902oldincludedir='/usr/include'
903docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904infodir='${datarootdir}/info'
905htmldir='${docdir}'
906dvidir='${docdir}'
907pdfdir='${docdir}'
908psdir='${docdir}'
909libdir='${exec_prefix}/lib'
910localedir='${datarootdir}/locale'
911mandir='${datarootdir}/man'
912
913ac_prev=
914ac_dashdash=
915for ac_option
916do
917  # If the previous option needs an argument, assign it.
918  if test -n "$ac_prev"; then
919    eval $ac_prev=\$ac_option
920    ac_prev=
921    continue
922  fi
923
924  case $ac_option in
925  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926  *=)   ac_optarg= ;;
927  *)    ac_optarg=yes ;;
928  esac
929
930  # Accept the important Cygnus configure options, so we can diagnose typos.
931
932  case $ac_dashdash$ac_option in
933  --)
934    ac_dashdash=yes ;;
935
936  -bindir | --bindir | --bindi | --bind | --bin | --bi)
937    ac_prev=bindir ;;
938  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939    bindir=$ac_optarg ;;
940
941  -build | --build | --buil | --bui | --bu)
942    ac_prev=build_alias ;;
943  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944    build_alias=$ac_optarg ;;
945
946  -cache-file | --cache-file | --cache-fil | --cache-fi \
947  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948    ac_prev=cache_file ;;
949  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951    cache_file=$ac_optarg ;;
952
953  --config-cache | -C)
954    cache_file=config.cache ;;
955
956  -datadir | --datadir | --datadi | --datad)
957    ac_prev=datadir ;;
958  -datadir=* | --datadir=* | --datadi=* | --datad=*)
959    datadir=$ac_optarg ;;
960
961  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962  | --dataroo | --dataro | --datar)
963    ac_prev=datarootdir ;;
964  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966    datarootdir=$ac_optarg ;;
967
968  -disable-* | --disable-*)
969    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970    # Reject names that are not valid shell variable names.
971    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972      as_fn_error $? "invalid feature name: $ac_useropt"
973    ac_useropt_orig=$ac_useropt
974    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975    case $ac_user_opts in
976      *"
977"enable_$ac_useropt"
978"*) ;;
979      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980	 ac_unrecognized_sep=', ';;
981    esac
982    eval enable_$ac_useropt=no ;;
983
984  -docdir | --docdir | --docdi | --doc | --do)
985    ac_prev=docdir ;;
986  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987    docdir=$ac_optarg ;;
988
989  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990    ac_prev=dvidir ;;
991  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992    dvidir=$ac_optarg ;;
993
994  -enable-* | --enable-*)
995    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996    # Reject names that are not valid shell variable names.
997    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998      as_fn_error $? "invalid feature name: $ac_useropt"
999    ac_useropt_orig=$ac_useropt
1000    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001    case $ac_user_opts in
1002      *"
1003"enable_$ac_useropt"
1004"*) ;;
1005      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006	 ac_unrecognized_sep=', ';;
1007    esac
1008    eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012  | --exec | --exe | --ex)
1013    ac_prev=exec_prefix ;;
1014  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016  | --exec=* | --exe=* | --ex=*)
1017    exec_prefix=$ac_optarg ;;
1018
1019  -gas | --gas | --ga | --g)
1020    # Obsolete; use --with-gas.
1021    with_gas=yes ;;
1022
1023  -help | --help | --hel | --he | -h)
1024    ac_init_help=long ;;
1025  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026    ac_init_help=recursive ;;
1027  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028    ac_init_help=short ;;
1029
1030  -host | --host | --hos | --ho)
1031    ac_prev=host_alias ;;
1032  -host=* | --host=* | --hos=* | --ho=*)
1033    host_alias=$ac_optarg ;;
1034
1035  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036    ac_prev=htmldir ;;
1037  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038  | --ht=*)
1039    htmldir=$ac_optarg ;;
1040
1041  -includedir | --includedir | --includedi | --included | --include \
1042  | --includ | --inclu | --incl | --inc)
1043    ac_prev=includedir ;;
1044  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045  | --includ=* | --inclu=* | --incl=* | --inc=*)
1046    includedir=$ac_optarg ;;
1047
1048  -infodir | --infodir | --infodi | --infod | --info | --inf)
1049    ac_prev=infodir ;;
1050  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051    infodir=$ac_optarg ;;
1052
1053  -libdir | --libdir | --libdi | --libd)
1054    ac_prev=libdir ;;
1055  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056    libdir=$ac_optarg ;;
1057
1058  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059  | --libexe | --libex | --libe)
1060    ac_prev=libexecdir ;;
1061  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062  | --libexe=* | --libex=* | --libe=*)
1063    libexecdir=$ac_optarg ;;
1064
1065  -localedir | --localedir | --localedi | --localed | --locale)
1066    ac_prev=localedir ;;
1067  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068    localedir=$ac_optarg ;;
1069
1070  -localstatedir | --localstatedir | --localstatedi | --localstated \
1071  | --localstate | --localstat | --localsta | --localst | --locals)
1072    ac_prev=localstatedir ;;
1073  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075    localstatedir=$ac_optarg ;;
1076
1077  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078    ac_prev=mandir ;;
1079  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080    mandir=$ac_optarg ;;
1081
1082  -nfp | --nfp | --nf)
1083    # Obsolete; use --without-fp.
1084    with_fp=no ;;
1085
1086  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087  | --no-cr | --no-c | -n)
1088    no_create=yes ;;
1089
1090  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092    no_recursion=yes ;;
1093
1094  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096  | --oldin | --oldi | --old | --ol | --o)
1097    ac_prev=oldincludedir ;;
1098  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101    oldincludedir=$ac_optarg ;;
1102
1103  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104    ac_prev=prefix ;;
1105  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106    prefix=$ac_optarg ;;
1107
1108  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109  | --program-pre | --program-pr | --program-p)
1110    ac_prev=program_prefix ;;
1111  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113    program_prefix=$ac_optarg ;;
1114
1115  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116  | --program-suf | --program-su | --program-s)
1117    ac_prev=program_suffix ;;
1118  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120    program_suffix=$ac_optarg ;;
1121
1122  -program-transform-name | --program-transform-name \
1123  | --program-transform-nam | --program-transform-na \
1124  | --program-transform-n | --program-transform- \
1125  | --program-transform | --program-transfor \
1126  | --program-transfo | --program-transf \
1127  | --program-trans | --program-tran \
1128  | --progr-tra | --program-tr | --program-t)
1129    ac_prev=program_transform_name ;;
1130  -program-transform-name=* | --program-transform-name=* \
1131  | --program-transform-nam=* | --program-transform-na=* \
1132  | --program-transform-n=* | --program-transform-=* \
1133  | --program-transform=* | --program-transfor=* \
1134  | --program-transfo=* | --program-transf=* \
1135  | --program-trans=* | --program-tran=* \
1136  | --progr-tra=* | --program-tr=* | --program-t=*)
1137    program_transform_name=$ac_optarg ;;
1138
1139  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140    ac_prev=pdfdir ;;
1141  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142    pdfdir=$ac_optarg ;;
1143
1144  -psdir | --psdir | --psdi | --psd | --ps)
1145    ac_prev=psdir ;;
1146  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147    psdir=$ac_optarg ;;
1148
1149  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150  | -silent | --silent | --silen | --sile | --sil)
1151    silent=yes ;;
1152
1153  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154    ac_prev=sbindir ;;
1155  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156  | --sbi=* | --sb=*)
1157    sbindir=$ac_optarg ;;
1158
1159  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161  | --sharedst | --shareds | --shared | --share | --shar \
1162  | --sha | --sh)
1163    ac_prev=sharedstatedir ;;
1164  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167  | --sha=* | --sh=*)
1168    sharedstatedir=$ac_optarg ;;
1169
1170  -site | --site | --sit)
1171    ac_prev=site ;;
1172  -site=* | --site=* | --sit=*)
1173    site=$ac_optarg ;;
1174
1175  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176    ac_prev=srcdir ;;
1177  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178    srcdir=$ac_optarg ;;
1179
1180  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181  | --syscon | --sysco | --sysc | --sys | --sy)
1182    ac_prev=sysconfdir ;;
1183  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185    sysconfdir=$ac_optarg ;;
1186
1187  -target | --target | --targe | --targ | --tar | --ta | --t)
1188    ac_prev=target_alias ;;
1189  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190    target_alias=$ac_optarg ;;
1191
1192  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193    verbose=yes ;;
1194
1195  -version | --version | --versio | --versi | --vers | -V)
1196    ac_init_version=: ;;
1197
1198  -with-* | --with-*)
1199    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200    # Reject names that are not valid shell variable names.
1201    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202      as_fn_error $? "invalid package name: $ac_useropt"
1203    ac_useropt_orig=$ac_useropt
1204    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205    case $ac_user_opts in
1206      *"
1207"with_$ac_useropt"
1208"*) ;;
1209      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210	 ac_unrecognized_sep=', ';;
1211    esac
1212    eval with_$ac_useropt=\$ac_optarg ;;
1213
1214  -without-* | --without-*)
1215    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216    # Reject names that are not valid shell variable names.
1217    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218      as_fn_error $? "invalid package name: $ac_useropt"
1219    ac_useropt_orig=$ac_useropt
1220    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221    case $ac_user_opts in
1222      *"
1223"with_$ac_useropt"
1224"*) ;;
1225      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226	 ac_unrecognized_sep=', ';;
1227    esac
1228    eval with_$ac_useropt=no ;;
1229
1230  --x)
1231    # Obsolete; use --with-x.
1232    with_x=yes ;;
1233
1234  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235  | --x-incl | --x-inc | --x-in | --x-i)
1236    ac_prev=x_includes ;;
1237  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239    x_includes=$ac_optarg ;;
1240
1241  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243    ac_prev=x_libraries ;;
1244  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246    x_libraries=$ac_optarg ;;
1247
1248  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249Try \`$0 --help' for more information"
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    case $ac_envvar in #(
1256      '' | [0-9]* | *[!_$as_cr_alnum]* )
1257      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258    esac
1259    eval $ac_envvar=\$ac_optarg
1260    export $ac_envvar ;;
1261
1262  *)
1263    # FIXME: should be removed in autoconf 3.0.
1264    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268    ;;
1269
1270  esac
1271done
1272
1273if test -n "$ac_prev"; then
1274  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275  as_fn_error $? "missing argument to $ac_option"
1276fi
1277
1278if test -n "$ac_unrecognized_opts"; then
1279  case $enable_option_checking in
1280    no) ;;
1281    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283  esac
1284fi
1285
1286# Check all directory arguments for consistency.
1287for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288		datadir sysconfdir sharedstatedir localstatedir includedir \
1289		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290		libdir localedir mandir
1291do
1292  eval ac_val=\$$ac_var
1293  # Remove trailing slashes.
1294  case $ac_val in
1295    */ )
1296      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297      eval $ac_var=\$ac_val;;
1298  esac
1299  # Be sure to have absolute directory names.
1300  case $ac_val in
1301    [\\/$]* | ?:[\\/]* )  continue;;
1302    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303  esac
1304  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305done
1306
1307# There might be people who depend on the old broken behavior: `$host'
1308# used to hold the argument of --host etc.
1309# FIXME: To remove some day.
1310build=$build_alias
1311host=$host_alias
1312target=$target_alias
1313
1314# FIXME: To remove some day.
1315if test "x$host_alias" != x; then
1316  if test "x$build_alias" = x; then
1317    cross_compiling=maybe
1318  elif test "x$build_alias" != "x$host_alias"; then
1319    cross_compiling=yes
1320  fi
1321fi
1322
1323ac_tool_prefix=
1324test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326test "$silent" = yes && exec 6>/dev/null
1327
1328
1329ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330ac_ls_di=`ls -di .` &&
1331ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332  as_fn_error $? "working directory cannot be determined"
1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334  as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337# Find the source files, if location was not specified.
1338if test -z "$srcdir"; then
1339  ac_srcdir_defaulted=yes
1340  # Try the directory containing this script, then the parent directory.
1341  ac_confdir=`$as_dirname -- "$as_myself" ||
1342$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343	 X"$as_myself" : 'X\(//\)[^/]' \| \
1344	 X"$as_myself" : 'X\(//\)$' \| \
1345	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346$as_echo X"$as_myself" |
1347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\/\)[^/].*/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\/\)$/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\).*/{
1360	    s//\1/
1361	    q
1362	  }
1363	  s/.*/./; q'`
1364  srcdir=$ac_confdir
1365  if test ! -r "$srcdir/$ac_unique_file"; then
1366    srcdir=..
1367  fi
1368else
1369  ac_srcdir_defaulted=no
1370fi
1371if test ! -r "$srcdir/$ac_unique_file"; then
1372  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374fi
1375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376ac_abs_confdir=`(
1377	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378	pwd)`
1379# When building in place, set srcdir=.
1380if test "$ac_abs_confdir" = "$ac_pwd"; then
1381  srcdir=.
1382fi
1383# Remove unnecessary trailing slashes from srcdir.
1384# Double slashes in file names in object file debugging info
1385# mess up M-x gdb in Emacs.
1386case $srcdir in
1387*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388esac
1389for ac_var in $ac_precious_vars; do
1390  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391  eval ac_env_${ac_var}_value=\$${ac_var}
1392  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394done
1395
1396#
1397# Report the --help message.
1398#
1399if test "$ac_init_help" = "long"; then
1400  # Omit some internal or obsolete options to make the list less imposing.
1401  # This message is too long to be a string in the A/UX 3.1 sh.
1402  cat <<_ACEOF
1403\`configure' configures libsodium 1.0.16 to adapt to many kinds of systems.
1404
1405Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410Defaults for the options are specified in brackets.
1411
1412Configuration:
1413  -h, --help              display this help and exit
1414      --help=short        display options specific to this package
1415      --help=recursive    display the short help of all the included packages
1416  -V, --version           display version information and exit
1417  -q, --quiet, --silent   do not print \`checking ...' messages
1418      --cache-file=FILE   cache test results in FILE [disabled]
1419  -C, --config-cache      alias for \`--cache-file=config.cache'
1420  -n, --no-create         do not create output files
1421      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423Installation directories:
1424  --prefix=PREFIX         install architecture-independent files in PREFIX
1425                          [$ac_default_prefix]
1426  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                          [PREFIX]
1428
1429By default, \`make install' will install all the files in
1430\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432for instance \`--prefix=\$HOME'.
1433
1434For better control, use the options below.
1435
1436Fine tuning of the installation directories:
1437  --bindir=DIR            user executables [EPREFIX/bin]
1438  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1439  --libexecdir=DIR        program executables [EPREFIX/libexec]
1440  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1441  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1442  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1443  --libdir=DIR            object code libraries [EPREFIX/lib]
1444  --includedir=DIR        C header files [PREFIX/include]
1445  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1446  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1447  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1448  --infodir=DIR           info documentation [DATAROOTDIR/info]
1449  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1450  --mandir=DIR            man documentation [DATAROOTDIR/man]
1451  --docdir=DIR            documentation root [DATAROOTDIR/doc/libsodium]
1452  --htmldir=DIR           html documentation [DOCDIR]
1453  --dvidir=DIR            dvi documentation [DOCDIR]
1454  --pdfdir=DIR            pdf documentation [DOCDIR]
1455  --psdir=DIR             ps documentation [DOCDIR]
1456_ACEOF
1457
1458  cat <<\_ACEOF
1459
1460Program names:
1461  --program-prefix=PREFIX            prepend PREFIX to installed program names
1462  --program-suffix=SUFFIX            append SUFFIX to installed program names
1463  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1464
1465System types:
1466  --build=BUILD     configure for building on BUILD [guessed]
1467  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
1472  case $ac_init_help in
1473     short | recursive ) echo "Configuration of libsodium 1.0.16:";;
1474   esac
1475  cat <<\_ACEOF
1476
1477Optional Features:
1478  --disable-option-checking  ignore unrecognized --enable/--with options
1479  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1480  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1481  --enable-silent-rules   less verbose build output (undo: "make V=1")
1482  --disable-silent-rules  verbose build output (undo: "make V=0")
1483  --enable-maintainer-mode
1484                          enable make rules and dependencies not useful (and
1485                          sometimes confusing) to the casual installer
1486  --enable-dependency-tracking
1487                          do not reject slow dependency extractors
1488  --disable-dependency-tracking
1489                          speeds up one-time build
1490  --disable-ssp           Do not compile with -fstack-protector
1491  --disable-asm           Do not compile assembly code -- This disables all
1492                          (including non-assembly) platform-specific
1493                          optimizations on Unix systems
1494  --disable-pie           Do not produce position independent executables
1495  --enable-blocking-random
1496                          Enable this switch only if /dev/urandom is totally
1497                          broken on the target platform
1498  --enable-minimal        Only compile the minimum set of functions required
1499                          for the high-level API
1500  --enable-debug          For maintainers only - please do not use
1501  --enable-opt            Optimize for the native CPU - The resulting library
1502                          will be faster but not portable
1503  --enable-valgrind       Whether to enable Valgrind on the unit tests
1504                          (requires GNU make)
1505  --disable-valgrind-memcheck
1506                          Whether to skip memcheck during the Valgrind tests
1507  --disable-valgrind-helgrind
1508                          Whether to skip helgrind during the Valgrind tests
1509  --disable-valgrind-drd  Whether to skip drd during the Valgrind tests
1510  --disable-valgrind-sgcheck
1511                          Whether to skip sgcheck during the Valgrind tests
1512  --enable-soname-versions
1513                          enable soname versions (must be disabled for
1514                          Android) (default: enabled)
1515  --enable-shared[=PKGS]  build shared libraries [default=yes]
1516  --enable-static[=PKGS]  build static libraries [default=yes]
1517  --enable-fast-install[=PKGS]
1518                          optimize for fast installation [default=yes]
1519  --disable-libtool-lock  avoid locking (might break parallel builds)
1520
1521Optional Packages:
1522  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1523  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1524  --with-pthreads         use pthreads library, or --without-pthreads to
1525                          disable threading support.
1526  --with-safecode         For maintainers only - please do not use
1527  --with-ctgrind          For maintainers only - please do not use
1528  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1529                          both]
1530  --with-aix-soname=aix|svr4|both
1531                          shared library versioning (aka "SONAME") variant to
1532                          provide on AIX, [default=aix].
1533  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1534  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1535                          compiler's sysroot if not specified).
1536
1537Some influential environment variables:
1538  CC          C compiler command
1539  CFLAGS      C compiler flags
1540  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541              nonstandard directory <lib dir>
1542  LIBS        libraries to pass to the linker, e.g. -l<library>
1543  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544              you have headers in a nonstandard directory <include dir>
1545  CPP         C preprocessor
1546  SAFECODE_HOME
1547              set to the safecode base directory
1548  CCAS        assembler compiler command (defaults to CC)
1549  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1550  CWFLAGS     define to compilation flags for generating extra warnings
1551  LT_SYS_LIBRARY_PATH
1552              User-defined run-time library search path.
1553  AR          path to the ar utility
1554
1555Use these variables to override the choices made by `configure' or to help
1556it to find libraries and programs with nonstandard names/locations.
1557
1558Report bugs to <https://github.com/jedisct1/libsodium/issues>.
1559libsodium home page: <https://github.com/jedisct1/libsodium>.
1560_ACEOF
1561ac_status=$?
1562fi
1563
1564if test "$ac_init_help" = "recursive"; then
1565  # If there are subdirs, report their specific --help.
1566  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567    test -d "$ac_dir" ||
1568      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569      continue
1570    ac_builddir=.
1571
1572case "$ac_dir" in
1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574*)
1575  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576  # A ".." for each directory in $ac_dir_suffix.
1577  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578  case $ac_top_builddir_sub in
1579  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581  esac ;;
1582esac
1583ac_abs_top_builddir=$ac_pwd
1584ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585# for backward compatibility:
1586ac_top_builddir=$ac_top_build_prefix
1587
1588case $srcdir in
1589  .)  # We are building in place.
1590    ac_srcdir=.
1591    ac_top_srcdir=$ac_top_builddir_sub
1592    ac_abs_top_srcdir=$ac_pwd ;;
1593  [\\/]* | ?:[\\/]* )  # Absolute name.
1594    ac_srcdir=$srcdir$ac_dir_suffix;
1595    ac_top_srcdir=$srcdir
1596    ac_abs_top_srcdir=$srcdir ;;
1597  *) # Relative name.
1598    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599    ac_top_srcdir=$ac_top_build_prefix$srcdir
1600    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601esac
1602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604    cd "$ac_dir" || { ac_status=$?; continue; }
1605    # Check for guested configure.
1606    if test -f "$ac_srcdir/configure.gnu"; then
1607      echo &&
1608      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609    elif test -f "$ac_srcdir/configure"; then
1610      echo &&
1611      $SHELL "$ac_srcdir/configure" --help=recursive
1612    else
1613      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614    fi || ac_status=$?
1615    cd "$ac_pwd" || { ac_status=$?; break; }
1616  done
1617fi
1618
1619test -n "$ac_init_help" && exit $ac_status
1620if $ac_init_version; then
1621  cat <<\_ACEOF
1622libsodium configure 1.0.16
1623generated by GNU Autoconf 2.69
1624
1625Copyright (C) 2012 Free Software Foundation, Inc.
1626This configure script is free software; the Free Software Foundation
1627gives unlimited permission to copy, distribute and modify it.
1628_ACEOF
1629  exit
1630fi
1631
1632## ------------------------ ##
1633## Autoconf initialization. ##
1634## ------------------------ ##
1635
1636# ac_fn_c_try_compile LINENO
1637# --------------------------
1638# Try to compile conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_compile ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  rm -f conftest.$ac_objext
1643  if { { ac_try="$ac_compile"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650  (eval "$ac_compile") 2>conftest.err
1651  ac_status=$?
1652  if test -s conftest.err; then
1653    grep -v '^ *+' conftest.err >conftest.er1
1654    cat conftest.er1 >&5
1655    mv -f conftest.er1 conftest.err
1656  fi
1657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; } && {
1659	 test -z "$ac_c_werror_flag" ||
1660	 test ! -s conftest.err
1661       } && test -s conftest.$ac_objext; then :
1662  ac_retval=0
1663else
1664  $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667	ac_retval=1
1668fi
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670  as_fn_set_status $ac_retval
1671
1672} # ac_fn_c_try_compile
1673
1674# ac_fn_c_try_link LINENO
1675# -----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_link ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  rm -f conftest.$ac_objext conftest$ac_exeext
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>conftest.err
1689  ac_status=$?
1690  if test -s conftest.err; then
1691    grep -v '^ *+' conftest.err >conftest.er1
1692    cat conftest.er1 >&5
1693    mv -f conftest.er1 conftest.err
1694  fi
1695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; } && {
1697	 test -z "$ac_c_werror_flag" ||
1698	 test ! -s conftest.err
1699       } && test -s conftest$ac_exeext && {
1700	 test "$cross_compiling" = yes ||
1701	 test -x conftest$ac_exeext
1702       }; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708	ac_retval=1
1709fi
1710  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712  # interfere with the next link command; also delete a directory that is
1713  # left behind by Apple's compiler.  We do this before executing the actions.
1714  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_link
1719
1720# ac_fn_c_try_cpp LINENO
1721# ----------------------
1722# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_cpp ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  if { { ac_try="$ac_cpp conftest.$ac_ext"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1734  ac_status=$?
1735  if test -s conftest.err; then
1736    grep -v '^ *+' conftest.err >conftest.er1
1737    cat conftest.er1 >&5
1738    mv -f conftest.er1 conftest.err
1739  fi
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; } > conftest.i && {
1742	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1743	 test ! -s conftest.err
1744       }; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750    ac_retval=1
1751fi
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753  as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_cpp
1756
1757# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1760# the include files in INCLUDES and setting the cache variable VAR
1761# accordingly.
1762ac_fn_c_check_header_mongrel ()
1763{
1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765  if eval \${$3+:} false; then :
1766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; }
1768if eval \${$3+:} false; then :
1769  $as_echo_n "(cached) " >&6
1770fi
1771eval ac_res=\$$3
1772	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774else
1775  # Is the header compilable?
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1777$as_echo_n "checking $2 usability... " >&6; }
1778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h.  */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784  ac_header_compiler=yes
1785else
1786  ac_header_compiler=no
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1790$as_echo "$ac_header_compiler" >&6; }
1791
1792# Is the header present?
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1794$as_echo_n "checking $2 presence... " >&6; }
1795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_cpp "$LINENO"; then :
1800  ac_header_preproc=yes
1801else
1802  ac_header_preproc=no
1803fi
1804rm -f conftest.err conftest.i conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1806$as_echo "$ac_header_preproc" >&6; }
1807
1808# So?  What about this header?
1809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1810  yes:no: )
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1812$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1813    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815    ;;
1816  no:yes:* )
1817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1818$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1819    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1820$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1821    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1822$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1823    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1824$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1825    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827( $as_echo "## ----------------------------------------------------------- ##
1828## Report this to https://github.com/jedisct1/libsodium/issues ##
1829## ----------------------------------------------------------- ##"
1830     ) | sed "s/^/$as_me: WARNING:     /" >&2
1831    ;;
1832esac
1833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
1835if eval \${$3+:} false; then :
1836  $as_echo_n "(cached) " >&6
1837else
1838  eval "$3=\$ac_header_compiler"
1839fi
1840eval ac_res=\$$3
1841	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843fi
1844  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846} # ac_fn_c_check_header_mongrel
1847
1848# ac_fn_c_try_run LINENO
1849# ----------------------
1850# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1851# that executables *can* be run.
1852ac_fn_c_try_run ()
1853{
1854  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855  if { { ac_try="$ac_link"
1856case "(($ac_try" in
1857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858  *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862  (eval "$ac_link") 2>&5
1863  ac_status=$?
1864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1866  { { case "(($ac_try" in
1867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868  *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872  (eval "$ac_try") 2>&5
1873  ac_status=$?
1874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875  test $ac_status = 0; }; }; then :
1876  ac_retval=0
1877else
1878  $as_echo "$as_me: program exited with status $ac_status" >&5
1879       $as_echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882       ac_retval=$ac_status
1883fi
1884  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886  as_fn_set_status $ac_retval
1887
1888} # ac_fn_c_try_run
1889
1890# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1891# -------------------------------------------------------
1892# Tests whether HEADER exists and can be compiled using the include files in
1893# INCLUDES, setting the cache variable VAR accordingly.
1894ac_fn_c_check_header_compile ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898$as_echo_n "checking for $2... " >&6; }
1899if eval \${$3+:} false; then :
1900  $as_echo_n "(cached) " >&6
1901else
1902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904$4
1905#include <$2>
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908  eval "$3=yes"
1909else
1910  eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
1917  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919} # ac_fn_c_check_header_compile
1920
1921# ac_fn_c_check_func LINENO FUNC VAR
1922# ----------------------------------
1923# Tests whether FUNC exists, setting the cache variable VAR accordingly
1924ac_fn_c_check_func ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if eval \${$3+:} false; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1936#define $2 innocuous_$2
1937
1938/* System header to define __stub macros and hopefully few prototypes,
1939    which can conflict with char $2 (); below.
1940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941    <limits.h> exists even on freestanding compilers.  */
1942
1943#ifdef __STDC__
1944# include <limits.h>
1945#else
1946# include <assert.h>
1947#endif
1948
1949#undef $2
1950
1951/* Override any GCC internal prototype to avoid an error.
1952   Use char because int might match the return type of a GCC
1953   builtin and then its argument prototype would still apply.  */
1954#ifdef __cplusplus
1955extern "C"
1956#endif
1957char $2 ();
1958/* The GNU C library defines this for functions which it implements
1959    to always fail with ENOSYS.  Some functions are actually named
1960    something starting with __ and the normal name is an alias.  */
1961#if defined __stub_$2 || defined __stub___$2
1962choke me
1963#endif
1964
1965int
1966main ()
1967{
1968return $2 ();
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_link "$LINENO"; then :
1974  eval "$3=yes"
1975else
1976  eval "$3=no"
1977fi
1978rm -f core conftest.err conftest.$ac_objext \
1979    conftest$ac_exeext conftest.$ac_ext
1980fi
1981eval ac_res=\$$3
1982	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986} # ac_fn_c_check_func
1987
1988# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1989# -------------------------------------------
1990# Tests whether TYPE exists after having included INCLUDES, setting cache
1991# variable VAR accordingly.
1992ac_fn_c_check_type ()
1993{
1994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996$as_echo_n "checking for $2... " >&6; }
1997if eval \${$3+:} false; then :
1998  $as_echo_n "(cached) " >&6
1999else
2000  eval "$3=no"
2001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h.  */
2003$4
2004int
2005main ()
2006{
2007if (sizeof ($2))
2008	 return 0;
2009  ;
2010  return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h.  */
2016$4
2017int
2018main ()
2019{
2020if (sizeof (($2)))
2021	    return 0;
2022  ;
2023  return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027
2028else
2029  eval "$3=yes"
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035eval ac_res=\$$3
2036	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037$as_echo "$ac_res" >&6; }
2038  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040} # ac_fn_c_check_type
2041cat >config.log <<_ACEOF
2042This file contains any messages produced by compilers while
2043running configure, to aid debugging if configure makes a mistake.
2044
2045It was created by libsodium $as_me 1.0.16, which was
2046generated by GNU Autoconf 2.69.  Invocation command line was
2047
2048  $ $0 $@
2049
2050_ACEOF
2051exec 5>>config.log
2052{
2053cat <<_ASUNAME
2054## --------- ##
2055## Platform. ##
2056## --------- ##
2057
2058hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062uname -v = `(uname -v) 2>/dev/null || echo unknown`
2063
2064/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2066
2067/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2068/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2069/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2070/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2071/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2072/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2073/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2074
2075_ASUNAME
2076
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080  IFS=$as_save_IFS
2081  test -z "$as_dir" && as_dir=.
2082    $as_echo "PATH: $as_dir"
2083  done
2084IFS=$as_save_IFS
2085
2086} >&5
2087
2088cat >&5 <<_ACEOF
2089
2090
2091## ----------- ##
2092## Core tests. ##
2093## ----------- ##
2094
2095_ACEOF
2096
2097
2098# Keep a trace of the command line.
2099# Strip out --no-create and --no-recursion so they do not pile up.
2100# Strip out --silent because we don't want to record it for future runs.
2101# Also quote any args containing shell meta-characters.
2102# Make two passes to allow for proper duplicate-argument suppression.
2103ac_configure_args=
2104ac_configure_args0=
2105ac_configure_args1=
2106ac_must_keep_next=false
2107for ac_pass in 1 2
2108do
2109  for ac_arg
2110  do
2111    case $ac_arg in
2112    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114    | -silent | --silent | --silen | --sile | --sil)
2115      continue ;;
2116    *\'*)
2117      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118    esac
2119    case $ac_pass in
2120    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2121    2)
2122      as_fn_append ac_configure_args1 " '$ac_arg'"
2123      if test $ac_must_keep_next = true; then
2124	ac_must_keep_next=false # Got value, back to normal.
2125      else
2126	case $ac_arg in
2127	  *=* | --config-cache | -C | -disable-* | --disable-* \
2128	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130	  | -with-* | --with-* | -without-* | --without-* | --x)
2131	    case "$ac_configure_args0 " in
2132	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133	    esac
2134	    ;;
2135	  -* ) ac_must_keep_next=true ;;
2136	esac
2137      fi
2138      as_fn_append ac_configure_args " '$ac_arg'"
2139      ;;
2140    esac
2141  done
2142done
2143{ ac_configure_args0=; unset ac_configure_args0;}
2144{ ac_configure_args1=; unset ac_configure_args1;}
2145
2146# When interrupted or exit'd, cleanup temporary files, and complete
2147# config.log.  We remove comments because anyway the quotes in there
2148# would cause problems or look ugly.
2149# WARNING: Use '\'' to represent an apostrophe within the trap.
2150# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151trap 'exit_status=$?
2152  # Save into config.log some information that might help in debugging.
2153  {
2154    echo
2155
2156    $as_echo "## ---------------- ##
2157## Cache variables. ##
2158## ---------------- ##"
2159    echo
2160    # The following way of writing the cache mishandles newlines in values,
2161(
2162  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163    eval ac_val=\$$ac_var
2164    case $ac_val in #(
2165    *${as_nl}*)
2166      case $ac_var in #(
2167      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169      esac
2170      case $ac_var in #(
2171      _ | IFS | as_nl) ;; #(
2172      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173      *) { eval $ac_var=; unset $ac_var;} ;;
2174      esac ;;
2175    esac
2176  done
2177  (set) 2>&1 |
2178    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179    *${as_nl}ac_space=\ *)
2180      sed -n \
2181	"s/'\''/'\''\\\\'\'''\''/g;
2182	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183      ;; #(
2184    *)
2185      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186      ;;
2187    esac |
2188    sort
2189)
2190    echo
2191
2192    $as_echo "## ----------------- ##
2193## Output variables. ##
2194## ----------------- ##"
2195    echo
2196    for ac_var in $ac_subst_vars
2197    do
2198      eval ac_val=\$$ac_var
2199      case $ac_val in
2200      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201      esac
2202      $as_echo "$ac_var='\''$ac_val'\''"
2203    done | sort
2204    echo
2205
2206    if test -n "$ac_subst_files"; then
2207      $as_echo "## ------------------- ##
2208## File substitutions. ##
2209## ------------------- ##"
2210      echo
2211      for ac_var in $ac_subst_files
2212      do
2213	eval ac_val=\$$ac_var
2214	case $ac_val in
2215	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216	esac
2217	$as_echo "$ac_var='\''$ac_val'\''"
2218      done | sort
2219      echo
2220    fi
2221
2222    if test -s confdefs.h; then
2223      $as_echo "## ----------- ##
2224## confdefs.h. ##
2225## ----------- ##"
2226      echo
2227      cat confdefs.h
2228      echo
2229    fi
2230    test "$ac_signal" != 0 &&
2231      $as_echo "$as_me: caught signal $ac_signal"
2232    $as_echo "$as_me: exit $exit_status"
2233  } >&5
2234  rm -f core *.core core.conftest.* &&
2235    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236    exit $exit_status
2237' 0
2238for ac_signal in 1 2 13 15; do
2239  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240done
2241ac_signal=0
2242
2243# confdefs.h avoids OS command line length limits that DEFS can exceed.
2244rm -f -r conftest* confdefs.h
2245
2246$as_echo "/* confdefs.h */" > confdefs.h
2247
2248# Predefined preprocessor variables.
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_NAME "$PACKAGE_NAME"
2252_ACEOF
2253
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256_ACEOF
2257
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_VERSION "$PACKAGE_VERSION"
2260_ACEOF
2261
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_STRING "$PACKAGE_STRING"
2264_ACEOF
2265
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268_ACEOF
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_URL "$PACKAGE_URL"
2272_ACEOF
2273
2274
2275# Let the site file select an alternate cache file if it wants to.
2276# Prefer an explicitly selected file to automatically selected ones.
2277ac_site_file1=NONE
2278ac_site_file2=NONE
2279if test -n "$CONFIG_SITE"; then
2280  # We do not want a PATH search for config.site.
2281  case $CONFIG_SITE in #((
2282    -*)  ac_site_file1=./$CONFIG_SITE;;
2283    */*) ac_site_file1=$CONFIG_SITE;;
2284    *)   ac_site_file1=./$CONFIG_SITE;;
2285  esac
2286elif test "x$prefix" != xNONE; then
2287  ac_site_file1=$prefix/share/config.site
2288  ac_site_file2=$prefix/etc/config.site
2289else
2290  ac_site_file1=$ac_default_prefix/share/config.site
2291  ac_site_file2=$ac_default_prefix/etc/config.site
2292fi
2293for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2294do
2295  test "x$ac_site_file" = xNONE && continue
2296  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2297    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2298$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2299    sed 's/^/| /' "$ac_site_file" >&5
2300    . "$ac_site_file" \
2301      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303as_fn_error $? "failed to load site script $ac_site_file
2304See \`config.log' for more details" "$LINENO" 5; }
2305  fi
2306done
2307
2308if test -r "$cache_file"; then
2309  # Some versions of bash will fail to source /dev/null (special files
2310  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2311  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2312    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313$as_echo "$as_me: loading cache $cache_file" >&6;}
2314    case $cache_file in
2315      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316      *)                      . "./$cache_file";;
2317    esac
2318  fi
2319else
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321$as_echo "$as_me: creating cache $cache_file" >&6;}
2322  >$cache_file
2323fi
2324
2325# Check that the precious variables saved in the cache have kept the same
2326# value.
2327ac_cache_corrupted=false
2328for ac_var in $ac_precious_vars; do
2329  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330  eval ac_new_set=\$ac_env_${ac_var}_set
2331  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332  eval ac_new_val=\$ac_env_${ac_var}_value
2333  case $ac_old_set,$ac_new_set in
2334    set,)
2335      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337      ac_cache_corrupted=: ;;
2338    ,set)
2339      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341      ac_cache_corrupted=: ;;
2342    ,);;
2343    *)
2344      if test "x$ac_old_val" != "x$ac_new_val"; then
2345	# differences in whitespace do not lead to failure.
2346	ac_old_val_w=`echo x $ac_old_val`
2347	ac_new_val_w=`echo x $ac_new_val`
2348	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351	  ac_cache_corrupted=:
2352	else
2353	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355	  eval $ac_var=\$ac_old_val
2356	fi
2357	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2358$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2359	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2360$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2361      fi;;
2362  esac
2363  # Pass precious variables to config.status.
2364  if test "$ac_new_set" = set; then
2365    case $ac_new_val in
2366    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367    *) ac_arg=$ac_var=$ac_new_val ;;
2368    esac
2369    case " $ac_configure_args " in
2370      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2371      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2372    esac
2373  fi
2374done
2375if $ac_cache_corrupted; then
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2381fi
2382## -------------------- ##
2383## Main body of script. ##
2384## -------------------- ##
2385
2386ac_ext=c
2387ac_cpp='$CPP $CPPFLAGS'
2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391
2392
2393ac_aux_dir=
2394for ac_dir in build-aux "$srcdir"/build-aux; do
2395  if test -f "$ac_dir/install-sh"; then
2396    ac_aux_dir=$ac_dir
2397    ac_install_sh="$ac_aux_dir/install-sh -c"
2398    break
2399  elif test -f "$ac_dir/install.sh"; then
2400    ac_aux_dir=$ac_dir
2401    ac_install_sh="$ac_aux_dir/install.sh -c"
2402    break
2403  elif test -f "$ac_dir/shtool"; then
2404    ac_aux_dir=$ac_dir
2405    ac_install_sh="$ac_aux_dir/shtool install -c"
2406    break
2407  fi
2408done
2409if test -z "$ac_aux_dir"; then
2410  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2411fi
2412
2413# These three variables are undocumented and unsupported,
2414# and are intended to be withdrawn in a future Autoconf release.
2415# They can cause serious problems if a builder's source tree is in a directory
2416# whose full name contains unusual characters.
2417ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2418ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2419ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2420
2421
2422
2423
2424# Make sure we can run config.sub.
2425$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2426  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2427
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2429$as_echo_n "checking build system type... " >&6; }
2430if ${ac_cv_build+:} false; then :
2431  $as_echo_n "(cached) " >&6
2432else
2433  ac_build_alias=$build_alias
2434test "x$ac_build_alias" = x &&
2435  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2436test "x$ac_build_alias" = x &&
2437  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2438ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2440
2441fi
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2443$as_echo "$ac_cv_build" >&6; }
2444case $ac_cv_build in
2445*-*-*) ;;
2446*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2447esac
2448build=$ac_cv_build
2449ac_save_IFS=$IFS; IFS='-'
2450set x $ac_cv_build
2451shift
2452build_cpu=$1
2453build_vendor=$2
2454shift; shift
2455# Remember, the first character of IFS is used to create $*,
2456# except with old shells:
2457build_os=$*
2458IFS=$ac_save_IFS
2459case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2460
2461
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2463$as_echo_n "checking host system type... " >&6; }
2464if ${ac_cv_host+:} false; then :
2465  $as_echo_n "(cached) " >&6
2466else
2467  if test "x$host_alias" = x; then
2468  ac_cv_host=$ac_cv_build
2469else
2470  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2471    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2472fi
2473
2474fi
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2476$as_echo "$ac_cv_host" >&6; }
2477case $ac_cv_host in
2478*-*-*) ;;
2479*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2480esac
2481host=$ac_cv_host
2482ac_save_IFS=$IFS; IFS='-'
2483set x $ac_cv_host
2484shift
2485host_cpu=$1
2486host_vendor=$2
2487shift; shift
2488# Remember, the first character of IFS is used to create $*,
2489# except with old shells:
2490host_os=$*
2491IFS=$ac_save_IFS
2492case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2493
2494
2495am__api_version='1.15'
2496
2497# Find a good install program.  We prefer a C program (faster),
2498# so one script is as good as another.  But avoid the broken or
2499# incompatible versions:
2500# SysV /etc/install, /usr/sbin/install
2501# SunOS /usr/etc/install
2502# IRIX /sbin/install
2503# AIX /bin/install
2504# AmigaOS /C/install, which installs bootblocks on floppy discs
2505# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2506# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2507# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2508# OS/2's system install, which has a completely different semantic
2509# ./install, which can be erroneously created by make from ./install.sh.
2510# Reject install programs that cannot install multiple files.
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2512$as_echo_n "checking for a BSD-compatible install... " >&6; }
2513if test -z "$INSTALL"; then
2514if ${ac_cv_path_install+:} false; then :
2515  $as_echo_n "(cached) " >&6
2516else
2517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520  IFS=$as_save_IFS
2521  test -z "$as_dir" && as_dir=.
2522    # Account for people who put trailing slashes in PATH elements.
2523case $as_dir/ in #((
2524  ./ | .// | /[cC]/* | \
2525  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2526  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2527  /usr/ucb/* ) ;;
2528  *)
2529    # OSF1 and SCO ODT 3.0 have their own names for install.
2530    # Don't use installbsd from OSF since it installs stuff as root
2531    # by default.
2532    for ac_prog in ginstall scoinst install; do
2533      for ac_exec_ext in '' $ac_executable_extensions; do
2534	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2535	  if test $ac_prog = install &&
2536	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537	    # AIX install.  It has an incompatible calling convention.
2538	    :
2539	  elif test $ac_prog = install &&
2540	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541	    # program-specific install script used by HP pwplus--don't use.
2542	    :
2543	  else
2544	    rm -rf conftest.one conftest.two conftest.dir
2545	    echo one > conftest.one
2546	    echo two > conftest.two
2547	    mkdir conftest.dir
2548	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2549	      test -s conftest.one && test -s conftest.two &&
2550	      test -s conftest.dir/conftest.one &&
2551	      test -s conftest.dir/conftest.two
2552	    then
2553	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2554	      break 3
2555	    fi
2556	  fi
2557	fi
2558      done
2559    done
2560    ;;
2561esac
2562
2563  done
2564IFS=$as_save_IFS
2565
2566rm -rf conftest.one conftest.two conftest.dir
2567
2568fi
2569  if test "${ac_cv_path_install+set}" = set; then
2570    INSTALL=$ac_cv_path_install
2571  else
2572    # As a last resort, use the slow shell script.  Don't cache a
2573    # value for INSTALL within a source directory, because that will
2574    # break other packages using the cache if that directory is
2575    # removed, or if the value is a relative name.
2576    INSTALL=$ac_install_sh
2577  fi
2578fi
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2580$as_echo "$INSTALL" >&6; }
2581
2582# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2583# It thinks the first close brace ends the variable substitution.
2584test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2585
2586test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2587
2588test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2589
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2591$as_echo_n "checking whether build environment is sane... " >&6; }
2592# Reject unsafe characters in $srcdir or the absolute working directory
2593# name.  Accept space and tab only in the latter.
2594am_lf='
2595'
2596case `pwd` in
2597  *[\\\"\#\$\&\'\`$am_lf]*)
2598    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2599esac
2600case $srcdir in
2601  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2602    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2603esac
2604
2605# Do 'set' in a subshell so we don't clobber the current shell's
2606# arguments.  Must try -L first in case configure is actually a
2607# symlink; some systems play weird games with the mod time of symlinks
2608# (eg FreeBSD returns the mod time of the symlink's containing
2609# directory).
2610if (
2611   am_has_slept=no
2612   for am_try in 1 2; do
2613     echo "timestamp, slept: $am_has_slept" > conftest.file
2614     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2615     if test "$*" = "X"; then
2616	# -L didn't work.
2617	set X `ls -t "$srcdir/configure" conftest.file`
2618     fi
2619     if test "$*" != "X $srcdir/configure conftest.file" \
2620	&& test "$*" != "X conftest.file $srcdir/configure"; then
2621
2622	# If neither matched, then we have a broken ls.  This can happen
2623	# if, for instance, CONFIG_SHELL is bash and it inherits a
2624	# broken ls alias from the environment.  This has actually
2625	# happened.  Such a system could not be considered "sane".
2626	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2627  alias in your environment" "$LINENO" 5
2628     fi
2629     if test "$2" = conftest.file || test $am_try -eq 2; then
2630       break
2631     fi
2632     # Just in case.
2633     sleep 1
2634     am_has_slept=yes
2635   done
2636   test "$2" = conftest.file
2637   )
2638then
2639   # Ok.
2640   :
2641else
2642   as_fn_error $? "newly created file is older than distributed files!
2643Check your system clock" "$LINENO" 5
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646$as_echo "yes" >&6; }
2647# If we didn't sleep, we still need to ensure time stamps of config.status and
2648# generated files are strictly newer.
2649am_sleep_pid=
2650if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2651  ( sleep 1 ) &
2652  am_sleep_pid=$!
2653fi
2654
2655rm -f conftest.file
2656
2657test "$program_prefix" != NONE &&
2658  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2659# Use a double $ so make ignores it.
2660test "$program_suffix" != NONE &&
2661  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2662# Double any \ or $.
2663# By default was `s,x,x', remove it if useless.
2664ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2665program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2666
2667# Expand $ac_aux_dir to an absolute path.
2668am_aux_dir=`cd "$ac_aux_dir" && pwd`
2669
2670if test x"${MISSING+set}" != xset; then
2671  case $am_aux_dir in
2672  *\ * | *\	*)
2673    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2674  *)
2675    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2676  esac
2677fi
2678# Use eval to expand $SHELL
2679if eval "$MISSING --is-lightweight"; then
2680  am_missing_run="$MISSING "
2681else
2682  am_missing_run=
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2684$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2685fi
2686
2687if test x"${install_sh+set}" != xset; then
2688  case $am_aux_dir in
2689  *\ * | *\	*)
2690    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2691  *)
2692    install_sh="\${SHELL} $am_aux_dir/install-sh"
2693  esac
2694fi
2695
2696# Installed binaries are usually stripped using 'strip' when the user
2697# run "make install-strip".  However 'strip' might not be the right
2698# tool to use in cross-compilation environments, therefore Automake
2699# will honor the 'STRIP' environment variable to overrule this program.
2700if test "$cross_compiling" != no; then
2701  if test -n "$ac_tool_prefix"; then
2702  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2703set dummy ${ac_tool_prefix}strip; ac_word=$2
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705$as_echo_n "checking for $ac_word... " >&6; }
2706if ${ac_cv_prog_STRIP+:} false; then :
2707  $as_echo_n "(cached) " >&6
2708else
2709  if test -n "$STRIP"; then
2710  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717    for ac_exec_ext in '' $ac_executable_extensions; do
2718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721    break 2
2722  fi
2723done
2724  done
2725IFS=$as_save_IFS
2726
2727fi
2728fi
2729STRIP=$ac_cv_prog_STRIP
2730if test -n "$STRIP"; then
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2732$as_echo "$STRIP" >&6; }
2733else
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735$as_echo "no" >&6; }
2736fi
2737
2738
2739fi
2740if test -z "$ac_cv_prog_STRIP"; then
2741  ac_ct_STRIP=$STRIP
2742  # Extract the first word of "strip", so it can be a program name with args.
2743set dummy strip; ac_word=$2
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745$as_echo_n "checking for $ac_word... " >&6; }
2746if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2747  $as_echo_n "(cached) " >&6
2748else
2749  if test -n "$ac_ct_STRIP"; then
2750  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755  IFS=$as_save_IFS
2756  test -z "$as_dir" && as_dir=.
2757    for ac_exec_ext in '' $ac_executable_extensions; do
2758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759    ac_cv_prog_ac_ct_STRIP="strip"
2760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761    break 2
2762  fi
2763done
2764  done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2770if test -n "$ac_ct_STRIP"; then
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2772$as_echo "$ac_ct_STRIP" >&6; }
2773else
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778  if test "x$ac_ct_STRIP" = x; then
2779    STRIP=":"
2780  else
2781    case $cross_compiling:$ac_tool_warned in
2782yes:)
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2785ac_tool_warned=yes ;;
2786esac
2787    STRIP=$ac_ct_STRIP
2788  fi
2789else
2790  STRIP="$ac_cv_prog_STRIP"
2791fi
2792
2793fi
2794INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2795
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2797$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2798if test -z "$MKDIR_P"; then
2799  if ${ac_cv_path_mkdir+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2804do
2805  IFS=$as_save_IFS
2806  test -z "$as_dir" && as_dir=.
2807    for ac_prog in mkdir gmkdir; do
2808	 for ac_exec_ext in '' $ac_executable_extensions; do
2809	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2810	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2811	     'mkdir (GNU coreutils) '* | \
2812	     'mkdir (coreutils) '* | \
2813	     'mkdir (fileutils) '4.1*)
2814	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2815	       break 3;;
2816	   esac
2817	 done
2818       done
2819  done
2820IFS=$as_save_IFS
2821
2822fi
2823
2824  test -d ./--version && rmdir ./--version
2825  if test "${ac_cv_path_mkdir+set}" = set; then
2826    MKDIR_P="$ac_cv_path_mkdir -p"
2827  else
2828    # As a last resort, use the slow shell script.  Don't cache a
2829    # value for MKDIR_P within a source directory, because that will
2830    # break other packages using the cache if that directory is
2831    # removed, or if the value is a relative name.
2832    MKDIR_P="$ac_install_sh -d"
2833  fi
2834fi
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2836$as_echo "$MKDIR_P" >&6; }
2837
2838for ac_prog in gawk mawk nawk awk
2839do
2840  # Extract the first word of "$ac_prog", so it can be a program name with args.
2841set dummy $ac_prog; ac_word=$2
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843$as_echo_n "checking for $ac_word... " >&6; }
2844if ${ac_cv_prog_AWK+:} false; then :
2845  $as_echo_n "(cached) " >&6
2846else
2847  if test -n "$AWK"; then
2848  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855    for ac_exec_ext in '' $ac_executable_extensions; do
2856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    ac_cv_prog_AWK="$ac_prog"
2858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859    break 2
2860  fi
2861done
2862  done
2863IFS=$as_save_IFS
2864
2865fi
2866fi
2867AWK=$ac_cv_prog_AWK
2868if test -n "$AWK"; then
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2870$as_echo "$AWK" >&6; }
2871else
2872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873$as_echo "no" >&6; }
2874fi
2875
2876
2877  test -n "$AWK" && break
2878done
2879
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2881$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2882set x ${MAKE-make}
2883ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2884if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2885  $as_echo_n "(cached) " >&6
2886else
2887  cat >conftest.make <<\_ACEOF
2888SHELL = /bin/sh
2889all:
2890	@echo '@@@%%%=$(MAKE)=@@@%%%'
2891_ACEOF
2892# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2893case `${MAKE-make} -f conftest.make 2>/dev/null` in
2894  *@@@%%%=?*=@@@%%%*)
2895    eval ac_cv_prog_make_${ac_make}_set=yes;;
2896  *)
2897    eval ac_cv_prog_make_${ac_make}_set=no;;
2898esac
2899rm -f conftest.make
2900fi
2901if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2903$as_echo "yes" >&6; }
2904  SET_MAKE=
2905else
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908  SET_MAKE="MAKE=${MAKE-make}"
2909fi
2910
2911rm -rf .tst 2>/dev/null
2912mkdir .tst 2>/dev/null
2913if test -d .tst; then
2914  am__leading_dot=.
2915else
2916  am__leading_dot=_
2917fi
2918rmdir .tst 2>/dev/null
2919
2920# Check whether --enable-silent-rules was given.
2921if test "${enable_silent_rules+set}" = set; then :
2922  enableval=$enable_silent_rules;
2923fi
2924
2925case $enable_silent_rules in # (((
2926  yes) AM_DEFAULT_VERBOSITY=0;;
2927   no) AM_DEFAULT_VERBOSITY=1;;
2928    *) AM_DEFAULT_VERBOSITY=1;;
2929esac
2930am_make=${MAKE-make}
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2932$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2933if ${am_cv_make_support_nested_variables+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if $as_echo 'TRUE=$(BAR$(V))
2937BAR0=false
2938BAR1=true
2939V=1
2940am__doit:
2941	@$(TRUE)
2942.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2943  am_cv_make_support_nested_variables=yes
2944else
2945  am_cv_make_support_nested_variables=no
2946fi
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2949$as_echo "$am_cv_make_support_nested_variables" >&6; }
2950if test $am_cv_make_support_nested_variables = yes; then
2951    AM_V='$(V)'
2952  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2953else
2954  AM_V=$AM_DEFAULT_VERBOSITY
2955  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2956fi
2957AM_BACKSLASH='\'
2958
2959if test "`cd $srcdir && pwd`" != "`pwd`"; then
2960  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2961  # is not polluted with repeated "-I."
2962  am__isrc=' -I$(srcdir)'
2963  # test to see if srcdir already configured
2964  if test -f $srcdir/config.status; then
2965    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2966  fi
2967fi
2968
2969# test whether we have cygpath
2970if test -z "$CYGPATH_W"; then
2971  if (cygpath --version) >/dev/null 2>/dev/null; then
2972    CYGPATH_W='cygpath -w'
2973  else
2974    CYGPATH_W=echo
2975  fi
2976fi
2977
2978
2979# Define the identity of the package.
2980 PACKAGE='libsodium'
2981 VERSION='1.0.16'
2982
2983
2984cat >>confdefs.h <<_ACEOF
2985#define PACKAGE "$PACKAGE"
2986_ACEOF
2987
2988
2989cat >>confdefs.h <<_ACEOF
2990#define VERSION "$VERSION"
2991_ACEOF
2992
2993# Some tools Automake needs.
2994
2995ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2996
2997
2998AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2999
3000
3001AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3002
3003
3004AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3005
3006
3007MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3008
3009# For better backward compatibility.  To be removed once Automake 1.9.x
3010# dies out for good.  For more background, see:
3011# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3012# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3013mkdir_p='$(MKDIR_P)'
3014
3015# We need awk for the "check" target (and possibly the TAP driver).  The
3016# system "awk" is bad on some platforms.
3017# Always define AMTAR for backward compatibility.  Yes, it's still used
3018# in the wild :-(  We should find a proper way to deprecate it ...
3019AMTAR='$${TAR-tar}'
3020
3021
3022# We'll loop over all known methods to create a tar archive until one works.
3023_am_tools='gnutar plaintar pax cpio none'
3024
3025# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3026      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3027      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3028      # and bug#13588).
3029      am_max_uid=2097151 # 2^21 - 1
3030      am_max_gid=$am_max_uid
3031      # The $UID and $GID variables are not portable, so we need to resort
3032      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3033      # below are definitely unexpected, so allow the users to see them
3034      # (that is, avoid stderr redirection).
3035      am_uid=`id -u || echo unknown`
3036      am_gid=`id -g || echo unknown`
3037      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3038$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3039      if test $am_uid -le $am_max_uid; then
3040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3041$as_echo "yes" >&6; }
3042      else
3043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044$as_echo "no" >&6; }
3045         _am_tools=none
3046      fi
3047      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3048$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3049      if test $am_gid -le $am_max_gid; then
3050         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3051$as_echo "yes" >&6; }
3052      else
3053        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055        _am_tools=none
3056      fi
3057
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3059$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3060
3061  # Go ahead even if we have the value already cached.  We do so because we
3062  # need to set the values for the 'am__tar' and 'am__untar' variables.
3063  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3064
3065  for _am_tool in $_am_tools; do
3066    case $_am_tool in
3067    gnutar)
3068      for _am_tar in tar gnutar gtar; do
3069        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3070   ($_am_tar --version) >&5 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } && break
3074      done
3075      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3076      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3077      am__untar="$_am_tar -xf -"
3078      ;;
3079    plaintar)
3080      # Must skip GNU tar: if it does not support --format= it doesn't create
3081      # ustar tarball either.
3082      (tar --version) >/dev/null 2>&1 && continue
3083      am__tar='tar chf - "$$tardir"'
3084      am__tar_='tar chf - "$tardir"'
3085      am__untar='tar xf -'
3086      ;;
3087    pax)
3088      am__tar='pax -L -x ustar -w "$$tardir"'
3089      am__tar_='pax -L -x ustar -w "$tardir"'
3090      am__untar='pax -r'
3091      ;;
3092    cpio)
3093      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3094      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3095      am__untar='cpio -i -H ustar -d'
3096      ;;
3097    none)
3098      am__tar=false
3099      am__tar_=false
3100      am__untar=false
3101      ;;
3102    esac
3103
3104    # If the value was cached, stop now.  We just wanted to have am__tar
3105    # and am__untar set.
3106    test -n "${am_cv_prog_tar_ustar}" && break
3107
3108    # tar/untar a dummy directory, and stop if the command works.
3109    rm -rf conftest.dir
3110    mkdir conftest.dir
3111    echo GrepMe > conftest.dir/file
3112    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3113   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }
3117    rm -rf conftest.dir
3118    if test -s conftest.tar; then
3119      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3120   ($am__untar <conftest.tar) >&5 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }
3124      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3125   (cat conftest.dir/file) >&5 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }
3129      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3130    fi
3131  done
3132  rm -rf conftest.dir
3133
3134  if ${am_cv_prog_tar_ustar+:} false; then :
3135  $as_echo_n "(cached) " >&6
3136else
3137  am_cv_prog_tar_ustar=$_am_tool
3138fi
3139
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3141$as_echo "$am_cv_prog_tar_ustar" >&6; }
3142
3143
3144
3145
3146
3147
3148# POSIX will say in a future version that running "rm -f" with no argument
3149# is OK; and we want to be able to make that assumption in our Makefile
3150# recipes.  So use an aggressive probe to check that the usage we want is
3151# actually supported "in the wild" to an acceptable degree.
3152# See automake bug#10828.
3153# To make any issue more visible, cause the running configure to be aborted
3154# by default if the 'rm' program in use doesn't match our expectations; the
3155# user can still override this though.
3156if rm -f && rm -fr && rm -rf; then : OK; else
3157  cat >&2 <<'END'
3158Oops!
3159
3160Your 'rm' program seems unable to run without file operands specified
3161on the command line, even when the '-f' option is present.  This is contrary
3162to the behaviour of most rm programs out there, and not conforming with
3163the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3164
3165Please tell bug-automake@gnu.org about your system, including the value
3166of your $PATH and any error possibly output before this message.  This
3167can help us improve future automake versions.
3168
3169END
3170  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3171    echo 'Configuration will proceed anyway, since you have set the' >&2
3172    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3173    echo >&2
3174  else
3175    cat >&2 <<'END'
3176Aborting the configuration process, to ensure you take notice of the issue.
3177
3178You can download and install GNU coreutils to get an 'rm' implementation
3179that behaves properly: <http://www.gnu.org/software/coreutils/>.
3180
3181If you want to complete the configuration process using your problematic
3182'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3183to "yes", and re-run configure.
3184
3185END
3186    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3187  fi
3188fi
3189
3190# Check whether --enable-silent-rules was given.
3191if test "${enable_silent_rules+set}" = set; then :
3192  enableval=$enable_silent_rules;
3193fi
3194
3195case $enable_silent_rules in # (((
3196  yes) AM_DEFAULT_VERBOSITY=0;;
3197   no) AM_DEFAULT_VERBOSITY=1;;
3198    *) AM_DEFAULT_VERBOSITY=0;;
3199esac
3200am_make=${MAKE-make}
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3202$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3203if ${am_cv_make_support_nested_variables+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  if $as_echo 'TRUE=$(BAR$(V))
3207BAR0=false
3208BAR1=true
3209V=1
3210am__doit:
3211	@$(TRUE)
3212.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3213  am_cv_make_support_nested_variables=yes
3214else
3215  am_cv_make_support_nested_variables=no
3216fi
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3219$as_echo "$am_cv_make_support_nested_variables" >&6; }
3220if test $am_cv_make_support_nested_variables = yes; then
3221    AM_V='$(V)'
3222  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3223else
3224  AM_V=$AM_DEFAULT_VERBOSITY
3225  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3226fi
3227AM_BACKSLASH='\'
3228
3229
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3231$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3232    # Check whether --enable-maintainer-mode was given.
3233if test "${enable_maintainer_mode+set}" = set; then :
3234  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3235else
3236  USE_MAINTAINER_MODE=no
3237fi
3238
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3240$as_echo "$USE_MAINTAINER_MODE" >&6; }
3241   if test $USE_MAINTAINER_MODE = yes; then
3242  MAINTAINER_MODE_TRUE=
3243  MAINTAINER_MODE_FALSE='#'
3244else
3245  MAINTAINER_MODE_TRUE='#'
3246  MAINTAINER_MODE_FALSE=
3247fi
3248
3249  MAINT=$MAINTAINER_MODE_TRUE
3250
3251
3252# Check whether --enable-dependency-tracking was given.
3253if test "${enable_dependency_tracking+set}" = set; then :
3254  enableval=$enable_dependency_tracking;
3255fi
3256
3257if test "x$enable_dependency_tracking" != xno; then
3258  am_depcomp="$ac_aux_dir/depcomp"
3259  AMDEPBACKSLASH='\'
3260  am__nodep='_no'
3261fi
3262 if test "x$enable_dependency_tracking" != xno; then
3263  AMDEP_TRUE=
3264  AMDEP_FALSE='#'
3265else
3266  AMDEP_TRUE='#'
3267  AMDEP_FALSE=
3268fi
3269
3270
3271
3272
3273ISODATE=`date +%Y-%m-%d`
3274
3275
3276SODIUM_LIBRARY_VERSION_MAJOR=10
3277SODIUM_LIBRARY_VERSION_MINOR=1
3278DLL_VERSION=8
3279SODIUM_LIBRARY_VERSION=24:0:1
3280#                       | | |
3281#                +------+ | +---+
3282#                |        |     |
3283#             current:revision:age
3284#                |        |     |
3285#                |        |     +- increment if interfaces have been added
3286#                |        |        set to zero if interfaces have been removed
3287#                |        |        or changed
3288#                |        +- increment if source code has changed
3289#                |           set to zero if current is incremented
3290#                +- increment if interfaces have been added, removed or changed
3291
3292
3293
3294
3295
3296
3297LX_CFLAGS=${CFLAGS-NONE}
3298
3299
3300if pwd | fgrep ' ' > /dev/null 2>&1; then :
3301  as_fn_error $? "The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" "$LINENO" 5
3302
3303fi
3304
3305
3306# Check whether --enable-ssp was given.
3307if test "${enable_ssp+set}" = set; then :
3308  enableval=$enable_ssp;
3309  if test "x$enableval" = "xno"; then :
3310
3311    enable_ssp="no"
3312
3313else
3314
3315    enable_ssp="yes"
3316
3317fi
3318
3319else
3320
3321  enable_ssp="yes"
3322
3323fi
3324
3325
3326# Check whether --enable-asm was given.
3327if test "${enable_asm+set}" = set; then :
3328  enableval=$enable_asm;
3329  if test "x$enableval" = "xno"; then :
3330
3331    enable_asm="no"
3332
3333else
3334
3335    enable_asm="yes"
3336
3337fi
3338
3339else
3340
3341  enable_asm="yes"
3342
3343fi
3344
3345
3346DEPDIR="${am__leading_dot}deps"
3347
3348ac_config_commands="$ac_config_commands depfiles"
3349
3350
3351am_make=${MAKE-make}
3352cat > confinc << 'END'
3353am__doit:
3354	@echo this is the am__doit target
3355.PHONY: am__doit
3356END
3357# If we don't find an include directive, just comment out the code.
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3359$as_echo_n "checking for style of include used by $am_make... " >&6; }
3360am__include="#"
3361am__quote=
3362_am_result=none
3363# First try GNU make style include.
3364echo "include confinc" > confmf
3365# Ignore all kinds of additional output from 'make'.
3366case `$am_make -s -f confmf 2> /dev/null` in #(
3367*the\ am__doit\ target*)
3368  am__include=include
3369  am__quote=
3370  _am_result=GNU
3371  ;;
3372esac
3373# Now try BSD make style include.
3374if test "$am__include" = "#"; then
3375   echo '.include "confinc"' > confmf
3376   case `$am_make -s -f confmf 2> /dev/null` in #(
3377   *the\ am__doit\ target*)
3378     am__include=.include
3379     am__quote="\""
3380     _am_result=BSD
3381     ;;
3382   esac
3383fi
3384
3385
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3387$as_echo "$_am_result" >&6; }
3388rm -f confinc confmf
3389
3390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395if test -n "$ac_tool_prefix"; then
3396  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3397set dummy ${ac_tool_prefix}gcc; ac_word=$2
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399$as_echo_n "checking for $ac_word... " >&6; }
3400if ${ac_cv_prog_CC+:} false; then :
3401  $as_echo_n "(cached) " >&6
3402else
3403  if test -n "$CC"; then
3404  ac_cv_prog_CC="$CC" # Let the user override the test.
3405else
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409  IFS=$as_save_IFS
3410  test -z "$as_dir" && as_dir=.
3411    for ac_exec_ext in '' $ac_executable_extensions; do
3412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415    break 2
3416  fi
3417done
3418  done
3419IFS=$as_save_IFS
3420
3421fi
3422fi
3423CC=$ac_cv_prog_CC
3424if test -n "$CC"; then
3425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426$as_echo "$CC" >&6; }
3427else
3428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429$as_echo "no" >&6; }
3430fi
3431
3432
3433fi
3434if test -z "$ac_cv_prog_CC"; then
3435  ac_ct_CC=$CC
3436  # Extract the first word of "gcc", so it can be a program name with args.
3437set dummy gcc; ac_word=$2
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439$as_echo_n "checking for $ac_word... " >&6; }
3440if ${ac_cv_prog_ac_ct_CC+:} false; then :
3441  $as_echo_n "(cached) " >&6
3442else
3443  if test -n "$ac_ct_CC"; then
3444  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445else
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449  IFS=$as_save_IFS
3450  test -z "$as_dir" && as_dir=.
3451    for ac_exec_ext in '' $ac_executable_extensions; do
3452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453    ac_cv_prog_ac_ct_CC="gcc"
3454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455    break 2
3456  fi
3457done
3458  done
3459IFS=$as_save_IFS
3460
3461fi
3462fi
3463ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464if test -n "$ac_ct_CC"; then
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466$as_echo "$ac_ct_CC" >&6; }
3467else
3468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469$as_echo "no" >&6; }
3470fi
3471
3472  if test "x$ac_ct_CC" = x; then
3473    CC=""
3474  else
3475    case $cross_compiling:$ac_tool_warned in
3476yes:)
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479ac_tool_warned=yes ;;
3480esac
3481    CC=$ac_ct_CC
3482  fi
3483else
3484  CC="$ac_cv_prog_CC"
3485fi
3486
3487if test -z "$CC"; then
3488          if test -n "$ac_tool_prefix"; then
3489    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3490set dummy ${ac_tool_prefix}cc; ac_word=$2
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492$as_echo_n "checking for $ac_word... " >&6; }
3493if ${ac_cv_prog_CC+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  if test -n "$CC"; then
3497  ac_cv_prog_CC="$CC" # Let the user override the test.
3498else
3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500for as_dir in $PATH
3501do
3502  IFS=$as_save_IFS
3503  test -z "$as_dir" && as_dir=.
3504    for ac_exec_ext in '' $ac_executable_extensions; do
3505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506    ac_cv_prog_CC="${ac_tool_prefix}cc"
3507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508    break 2
3509  fi
3510done
3511  done
3512IFS=$as_save_IFS
3513
3514fi
3515fi
3516CC=$ac_cv_prog_CC
3517if test -n "$CC"; then
3518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519$as_echo "$CC" >&6; }
3520else
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
3523fi
3524
3525
3526  fi
3527fi
3528if test -z "$CC"; then
3529  # Extract the first word of "cc", so it can be a program name with args.
3530set dummy cc; ac_word=$2
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532$as_echo_n "checking for $ac_word... " >&6; }
3533if ${ac_cv_prog_CC+:} false; then :
3534  $as_echo_n "(cached) " >&6
3535else
3536  if test -n "$CC"; then
3537  ac_cv_prog_CC="$CC" # Let the user override the test.
3538else
3539  ac_prog_rejected=no
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543  IFS=$as_save_IFS
3544  test -z "$as_dir" && as_dir=.
3545    for ac_exec_ext in '' $ac_executable_extensions; do
3546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3548       ac_prog_rejected=yes
3549       continue
3550     fi
3551    ac_cv_prog_CC="cc"
3552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553    break 2
3554  fi
3555done
3556  done
3557IFS=$as_save_IFS
3558
3559if test $ac_prog_rejected = yes; then
3560  # We found a bogon in the path, so make sure we never use it.
3561  set dummy $ac_cv_prog_CC
3562  shift
3563  if test $# != 0; then
3564    # We chose a different compiler from the bogus one.
3565    # However, it has the same basename, so the bogon will be chosen
3566    # first if we set CC to just the basename; use the full file name.
3567    shift
3568    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3569  fi
3570fi
3571fi
3572fi
3573CC=$ac_cv_prog_CC
3574if test -n "$CC"; then
3575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576$as_echo "$CC" >&6; }
3577else
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580fi
3581
3582
3583fi
3584if test -z "$CC"; then
3585  if test -n "$ac_tool_prefix"; then
3586  for ac_prog in cl.exe
3587  do
3588    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591$as_echo_n "checking for $ac_word... " >&6; }
3592if ${ac_cv_prog_CC+:} false; then :
3593  $as_echo_n "(cached) " >&6
3594else
3595  if test -n "$CC"; then
3596  ac_cv_prog_CC="$CC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601  IFS=$as_save_IFS
3602  test -z "$as_dir" && as_dir=.
3603    for ac_exec_ext in '' $ac_executable_extensions; do
3604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607    break 2
3608  fi
3609done
3610  done
3611IFS=$as_save_IFS
3612
3613fi
3614fi
3615CC=$ac_cv_prog_CC
3616if test -n "$CC"; then
3617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618$as_echo "$CC" >&6; }
3619else
3620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621$as_echo "no" >&6; }
3622fi
3623
3624
3625    test -n "$CC" && break
3626  done
3627fi
3628if test -z "$CC"; then
3629  ac_ct_CC=$CC
3630  for ac_prog in cl.exe
3631do
3632  # Extract the first word of "$ac_prog", so it can be a program name with args.
3633set dummy $ac_prog; ac_word=$2
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635$as_echo_n "checking for $ac_word... " >&6; }
3636if ${ac_cv_prog_ac_ct_CC+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  if test -n "$ac_ct_CC"; then
3640  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641else
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645  IFS=$as_save_IFS
3646  test -z "$as_dir" && as_dir=.
3647    for ac_exec_ext in '' $ac_executable_extensions; do
3648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649    ac_cv_prog_ac_ct_CC="$ac_prog"
3650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651    break 2
3652  fi
3653done
3654  done
3655IFS=$as_save_IFS
3656
3657fi
3658fi
3659ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660if test -n "$ac_ct_CC"; then
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662$as_echo "$ac_ct_CC" >&6; }
3663else
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
3666fi
3667
3668
3669  test -n "$ac_ct_CC" && break
3670done
3671
3672  if test "x$ac_ct_CC" = x; then
3673    CC=""
3674  else
3675    case $cross_compiling:$ac_tool_warned in
3676yes:)
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3679ac_tool_warned=yes ;;
3680esac
3681    CC=$ac_ct_CC
3682  fi
3683fi
3684
3685fi
3686
3687
3688test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690as_fn_error $? "no acceptable C compiler found in \$PATH
3691See \`config.log' for more details" "$LINENO" 5; }
3692
3693# Provide some information about the compiler.
3694$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3695set X $ac_compile
3696ac_compiler=$2
3697for ac_option in --version -v -V -qversion; do
3698  { { ac_try="$ac_compiler $ac_option >&5"
3699case "(($ac_try" in
3700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701  *) ac_try_echo=$ac_try;;
3702esac
3703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704$as_echo "$ac_try_echo"; } >&5
3705  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3706  ac_status=$?
3707  if test -s conftest.err; then
3708    sed '10a\
3709... rest of stderr output deleted ...
3710         10q' conftest.err >conftest.er1
3711    cat conftest.er1 >&5
3712  fi
3713  rm -f conftest.er1 conftest.err
3714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715  test $ac_status = 0; }
3716done
3717
3718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719/* end confdefs.h.  */
3720
3721int
3722main ()
3723{
3724
3725  ;
3726  return 0;
3727}
3728_ACEOF
3729ac_clean_files_save=$ac_clean_files
3730ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3731# Try to create an executable without -o first, disregard a.out.
3732# It will help us diagnose broken compilers, and finding out an intuition
3733# of exeext.
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3735$as_echo_n "checking whether the C compiler works... " >&6; }
3736ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3737
3738# The possible output files:
3739ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3740
3741ac_rmfiles=
3742for ac_file in $ac_files
3743do
3744  case $ac_file in
3745    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3746    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3747  esac
3748done
3749rm -f $ac_rmfiles
3750
3751if { { ac_try="$ac_link_default"
3752case "(($ac_try" in
3753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754  *) ac_try_echo=$ac_try;;
3755esac
3756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757$as_echo "$ac_try_echo"; } >&5
3758  (eval "$ac_link_default") 2>&5
3759  ac_status=$?
3760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761  test $ac_status = 0; }; then :
3762  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3763# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3764# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3765# so that the user can short-circuit this test for compilers unknown to
3766# Autoconf.
3767for ac_file in $ac_files ''
3768do
3769  test -f "$ac_file" || continue
3770  case $ac_file in
3771    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3772	;;
3773    [ab].out )
3774	# We found the default executable, but exeext='' is most
3775	# certainly right.
3776	break;;
3777    *.* )
3778	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3779	then :; else
3780	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781	fi
3782	# We set ac_cv_exeext here because the later test for it is not
3783	# safe: cross compilers may not add the suffix if given an `-o'
3784	# argument, so we may need to know it at that point already.
3785	# Even if this section looks crufty: it has the advantage of
3786	# actually working.
3787	break;;
3788    * )
3789	break;;
3790  esac
3791done
3792test "$ac_cv_exeext" = no && ac_cv_exeext=
3793
3794else
3795  ac_file=''
3796fi
3797if test -z "$ac_file"; then :
3798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
3800$as_echo "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
3803{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805as_fn_error 77 "C compiler cannot create executables
3806See \`config.log' for more details" "$LINENO" 5; }
3807else
3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809$as_echo "yes" >&6; }
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3812$as_echo_n "checking for C compiler default output file name... " >&6; }
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814$as_echo "$ac_file" >&6; }
3815ac_exeext=$ac_cv_exeext
3816
3817rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3818ac_clean_files=$ac_clean_files_save
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820$as_echo_n "checking for suffix of executables... " >&6; }
3821if { { ac_try="$ac_link"
3822case "(($ac_try" in
3823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824  *) ac_try_echo=$ac_try;;
3825esac
3826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827$as_echo "$ac_try_echo"; } >&5
3828  (eval "$ac_link") 2>&5
3829  ac_status=$?
3830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831  test $ac_status = 0; }; then :
3832  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3833# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3834# work properly (i.e., refer to `conftest.exe'), while it won't with
3835# `rm'.
3836for ac_file in conftest.exe conftest conftest.*; do
3837  test -f "$ac_file" || continue
3838  case $ac_file in
3839    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841	  break;;
3842    * ) break;;
3843  esac
3844done
3845else
3846  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3849See \`config.log' for more details" "$LINENO" 5; }
3850fi
3851rm -f conftest conftest$ac_cv_exeext
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3853$as_echo "$ac_cv_exeext" >&6; }
3854
3855rm -f conftest.$ac_ext
3856EXEEXT=$ac_cv_exeext
3857ac_exeext=$EXEEXT
3858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h.  */
3860#include <stdio.h>
3861int
3862main ()
3863{
3864FILE *f = fopen ("conftest.out", "w");
3865 return ferror (f) || fclose (f) != 0;
3866
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871ac_clean_files="$ac_clean_files conftest.out"
3872# Check that the compiler produces executables we can run.  If not, either
3873# the compiler is broken, or we cross compile.
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3875$as_echo_n "checking whether we are cross compiling... " >&6; }
3876if test "$cross_compiling" != yes; then
3877  { { ac_try="$ac_link"
3878case "(($ac_try" in
3879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880  *) ac_try_echo=$ac_try;;
3881esac
3882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883$as_echo "$ac_try_echo"; } >&5
3884  (eval "$ac_link") 2>&5
3885  ac_status=$?
3886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887  test $ac_status = 0; }
3888  if { ac_try='./conftest$ac_cv_exeext'
3889  { { case "(($ac_try" in
3890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891  *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894$as_echo "$ac_try_echo"; } >&5
3895  (eval "$ac_try") 2>&5
3896  ac_status=$?
3897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898  test $ac_status = 0; }; }; then
3899    cross_compiling=no
3900  else
3901    if test "$cross_compiling" = maybe; then
3902	cross_compiling=yes
3903    else
3904	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906as_fn_error $? "cannot run C compiled programs.
3907If you meant to cross compile, use \`--host'.
3908See \`config.log' for more details" "$LINENO" 5; }
3909    fi
3910  fi
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913$as_echo "$cross_compiling" >&6; }
3914
3915rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3916ac_clean_files=$ac_clean_files_save
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3918$as_echo_n "checking for suffix of object files... " >&6; }
3919if ${ac_cv_objext+:} false; then :
3920  $as_echo_n "(cached) " >&6
3921else
3922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h.  */
3924
3925int
3926main ()
3927{
3928
3929  ;
3930  return 0;
3931}
3932_ACEOF
3933rm -f conftest.o conftest.obj
3934if { { ac_try="$ac_compile"
3935case "(($ac_try" in
3936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937  *) ac_try_echo=$ac_try;;
3938esac
3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940$as_echo "$ac_try_echo"; } >&5
3941  (eval "$ac_compile") 2>&5
3942  ac_status=$?
3943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944  test $ac_status = 0; }; then :
3945  for ac_file in conftest.o conftest.obj conftest.*; do
3946  test -f "$ac_file" || continue;
3947  case $ac_file in
3948    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3949    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950       break;;
3951  esac
3952done
3953else
3954  $as_echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959as_fn_error $? "cannot compute suffix of object files: cannot compile
3960See \`config.log' for more details" "$LINENO" 5; }
3961fi
3962rm -f conftest.$ac_cv_objext conftest.$ac_ext
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965$as_echo "$ac_cv_objext" >&6; }
3966OBJEXT=$ac_cv_objext
3967ac_objext=$OBJEXT
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3969$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970if ${ac_cv_c_compiler_gnu+:} false; then :
3971  $as_echo_n "(cached) " >&6
3972else
3973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h.  */
3975
3976int
3977main ()
3978{
3979#ifndef __GNUC__
3980       choke me
3981#endif
3982
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987if ac_fn_c_try_compile "$LINENO"; then :
3988  ac_compiler_gnu=yes
3989else
3990  ac_compiler_gnu=no
3991fi
3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993ac_cv_c_compiler_gnu=$ac_compiler_gnu
3994
3995fi
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3997$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3998if test $ac_compiler_gnu = yes; then
3999  GCC=yes
4000else
4001  GCC=
4002fi
4003ac_test_CFLAGS=${CFLAGS+set}
4004ac_save_CFLAGS=$CFLAGS
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4006$as_echo_n "checking whether $CC accepts -g... " >&6; }
4007if ${ac_cv_prog_cc_g+:} false; then :
4008  $as_echo_n "(cached) " >&6
4009else
4010  ac_save_c_werror_flag=$ac_c_werror_flag
4011   ac_c_werror_flag=yes
4012   ac_cv_prog_cc_g=no
4013   CFLAGS="-g"
4014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h.  */
4016
4017int
4018main ()
4019{
4020
4021  ;
4022  return 0;
4023}
4024_ACEOF
4025if ac_fn_c_try_compile "$LINENO"; then :
4026  ac_cv_prog_cc_g=yes
4027else
4028  CFLAGS=""
4029      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h.  */
4031
4032int
4033main ()
4034{
4035
4036  ;
4037  return 0;
4038}
4039_ACEOF
4040if ac_fn_c_try_compile "$LINENO"; then :
4041
4042else
4043  ac_c_werror_flag=$ac_save_c_werror_flag
4044	 CFLAGS="-g"
4045	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047
4048int
4049main ()
4050{
4051
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056if ac_fn_c_try_compile "$LINENO"; then :
4057  ac_cv_prog_cc_g=yes
4058fi
4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060fi
4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064   ac_c_werror_flag=$ac_save_c_werror_flag
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4067$as_echo "$ac_cv_prog_cc_g" >&6; }
4068if test "$ac_test_CFLAGS" = set; then
4069  CFLAGS=$ac_save_CFLAGS
4070elif test $ac_cv_prog_cc_g = yes; then
4071  if test "$GCC" = yes; then
4072    CFLAGS="-g -O2"
4073  else
4074    CFLAGS="-g"
4075  fi
4076else
4077  if test "$GCC" = yes; then
4078    CFLAGS="-O2"
4079  else
4080    CFLAGS=
4081  fi
4082fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4084$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4085if ${ac_cv_prog_cc_c89+:} false; then :
4086  $as_echo_n "(cached) " >&6
4087else
4088  ac_cv_prog_cc_c89=no
4089ac_save_CC=$CC
4090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h.  */
4092#include <stdarg.h>
4093#include <stdio.h>
4094struct stat;
4095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4096struct buf { int x; };
4097FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098static char *e (p, i)
4099     char **p;
4100     int i;
4101{
4102  return p[i];
4103}
4104static char *f (char * (*g) (char **, int), char **p, ...)
4105{
4106  char *s;
4107  va_list v;
4108  va_start (v,p);
4109  s = g (p, va_arg (v,int));
4110  va_end (v);
4111  return s;
4112}
4113
4114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4115   function prototypes and stuff, but not '\xHH' hex character constants.
4116   These don't provoke an error unfortunately, instead are silently treated
4117   as 'x'.  The following induces an error, until -std is added to get
4118   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4119   array size at least.  It's necessary to write '\x00'==0 to get something
4120   that's true only with -std.  */
4121int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
4123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124   inside strings and character constants.  */
4125#define FOO(x) 'x'
4126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127
4128int test (int i, double x);
4129struct s1 {int (*f) (int a);};
4130struct s2 {int (*f) (double a);};
4131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132int argc;
4133char **argv;
4134int
4135main ()
4136{
4137return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4138  ;
4139  return 0;
4140}
4141_ACEOF
4142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144do
4145  CC="$ac_save_CC $ac_arg"
4146  if ac_fn_c_try_compile "$LINENO"; then :
4147  ac_cv_prog_cc_c89=$ac_arg
4148fi
4149rm -f core conftest.err conftest.$ac_objext
4150  test "x$ac_cv_prog_cc_c89" != "xno" && break
4151done
4152rm -f conftest.$ac_ext
4153CC=$ac_save_CC
4154
4155fi
4156# AC_CACHE_VAL
4157case "x$ac_cv_prog_cc_c89" in
4158  x)
4159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160$as_echo "none needed" >&6; } ;;
4161  xno)
4162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163$as_echo "unsupported" >&6; } ;;
4164  *)
4165    CC="$CC $ac_cv_prog_cc_c89"
4166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168esac
4169if test "x$ac_cv_prog_cc_c89" != xno; then :
4170
4171fi
4172
4173ac_ext=c
4174ac_cpp='$CPP $CPPFLAGS'
4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179ac_ext=c
4180ac_cpp='$CPP $CPPFLAGS'
4181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4185$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4186if ${am_cv_prog_cc_c_o+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h.  */
4191
4192int
4193main ()
4194{
4195
4196  ;
4197  return 0;
4198}
4199_ACEOF
4200  # Make sure it works both with $CC and with simple cc.
4201  # Following AC_PROG_CC_C_O, we do the test twice because some
4202  # compilers refuse to overwrite an existing .o file with -o,
4203  # though they will create one.
4204  am_cv_prog_cc_c_o=yes
4205  for am_i in 1 2; do
4206    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4207   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } \
4211         && test -f conftest2.$ac_objext; then
4212      : OK
4213    else
4214      am_cv_prog_cc_c_o=no
4215      break
4216    fi
4217  done
4218  rm -f core conftest*
4219  unset am_i
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4222$as_echo "$am_cv_prog_cc_c_o" >&6; }
4223if test "$am_cv_prog_cc_c_o" != yes; then
4224   # Losing compiler, so override with the script.
4225   # FIXME: It is wrong to rewrite CC.
4226   # But if we don't then we get into trouble of one sort or another.
4227   # A longer-term fix would be to have automake use am__CC in this case,
4228   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4229   CC="$am_aux_dir/compile $CC"
4230fi
4231ac_ext=c
4232ac_cpp='$CPP $CPPFLAGS'
4233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236
4237
4238depcc="$CC"   am_compiler_list=
4239
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4241$as_echo_n "checking dependency style of $depcc... " >&6; }
4242if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4246  # We make a subdir and do the tests there.  Otherwise we can end up
4247  # making bogus files that we don't know about and never remove.  For
4248  # instance it was reported that on HP-UX the gcc test will end up
4249  # making a dummy file named 'D' -- because '-MD' means "put the output
4250  # in D".
4251  rm -rf conftest.dir
4252  mkdir conftest.dir
4253  # Copy depcomp to subdir because otherwise we won't find it if we're
4254  # using a relative directory.
4255  cp "$am_depcomp" conftest.dir
4256  cd conftest.dir
4257  # We will build objects and dependencies in a subdirectory because
4258  # it helps to detect inapplicable dependency modes.  For instance
4259  # both Tru64's cc and ICC support -MD to output dependencies as a
4260  # side effect of compilation, but ICC will put the dependencies in
4261  # the current directory while Tru64 will put them in the object
4262  # directory.
4263  mkdir sub
4264
4265  am_cv_CC_dependencies_compiler_type=none
4266  if test "$am_compiler_list" = ""; then
4267     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4268  fi
4269  am__universal=false
4270  case " $depcc " in #(
4271     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4272     esac
4273
4274  for depmode in $am_compiler_list; do
4275    # Setup a source with many dependencies, because some compilers
4276    # like to wrap large dependency lists on column 80 (with \), and
4277    # we should not choose a depcomp mode which is confused by this.
4278    #
4279    # We need to recreate these files for each test, as the compiler may
4280    # overwrite some of them when testing with obscure command lines.
4281    # This happens at least with the AIX C compiler.
4282    : > sub/conftest.c
4283    for i in 1 2 3 4 5 6; do
4284      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4285      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4286      # Solaris 10 /bin/sh.
4287      echo '/* dummy */' > sub/conftst$i.h
4288    done
4289    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4290
4291    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4292    # mode.  It turns out that the SunPro C++ compiler does not properly
4293    # handle '-M -o', and we need to detect this.  Also, some Intel
4294    # versions had trouble with output in subdirs.
4295    am__obj=sub/conftest.${OBJEXT-o}
4296    am__minus_obj="-o $am__obj"
4297    case $depmode in
4298    gcc)
4299      # This depmode causes a compiler race in universal mode.
4300      test "$am__universal" = false || continue
4301      ;;
4302    nosideeffect)
4303      # After this tag, mechanisms are not by side-effect, so they'll
4304      # only be used when explicitly requested.
4305      if test "x$enable_dependency_tracking" = xyes; then
4306	continue
4307      else
4308	break
4309      fi
4310      ;;
4311    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4312      # This compiler won't grok '-c -o', but also, the minuso test has
4313      # not run yet.  These depmodes are late enough in the game, and
4314      # so weak that their functioning should not be impacted.
4315      am__obj=conftest.${OBJEXT-o}
4316      am__minus_obj=
4317      ;;
4318    none) break ;;
4319    esac
4320    if depmode=$depmode \
4321       source=sub/conftest.c object=$am__obj \
4322       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4323       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4324         >/dev/null 2>conftest.err &&
4325       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4326       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4327       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4328       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4329      # icc doesn't choke on unknown options, it will just issue warnings
4330      # or remarks (even with -Werror).  So we grep stderr for any message
4331      # that says an option was ignored or not supported.
4332      # When given -MP, icc 7.0 and 7.1 complain thusly:
4333      #   icc: Command line warning: ignoring option '-M'; no argument required
4334      # The diagnosis changed in icc 8.0:
4335      #   icc: Command line remark: option '-MP' not supported
4336      if (grep 'ignoring option' conftest.err ||
4337          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4338        am_cv_CC_dependencies_compiler_type=$depmode
4339        break
4340      fi
4341    fi
4342  done
4343
4344  cd ..
4345  rm -rf conftest.dir
4346else
4347  am_cv_CC_dependencies_compiler_type=none
4348fi
4349
4350fi
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4352$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4353CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4354
4355 if
4356  test "x$enable_dependency_tracking" != xno \
4357  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4358  am__fastdepCC_TRUE=
4359  am__fastdepCC_FALSE='#'
4360else
4361  am__fastdepCC_TRUE='#'
4362  am__fastdepCC_FALSE=
4363fi
4364
4365
4366
4367if test "x$EMSCRIPTEN" != "x"; then :
4368
4369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -s ASSERTIONS=0" >&5
4370$as_echo_n "checking whether C compiler accepts -s ASSERTIONS=0... " >&6; }
4371if ${ax_cv_check_cflags___s_ASSERTIONS_0+:} false; then :
4372  $as_echo_n "(cached) " >&6
4373else
4374
4375  ax_check_save_flags=$CFLAGS
4376  CFLAGS="$CFLAGS  -s ASSERTIONS=0"
4377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378/* end confdefs.h.  */
4379#include <time.h>
4380int
4381main ()
4382{
4383time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
4384  ;
4385  return 0;
4386}
4387_ACEOF
4388if ac_fn_c_try_link "$LINENO"; then :
4389  ax_cv_check_cflags___s_ASSERTIONS_0=yes
4390else
4391  ax_cv_check_cflags___s_ASSERTIONS_0=no
4392fi
4393rm -f core conftest.err conftest.$ac_objext \
4394    conftest$ac_exeext conftest.$ac_ext
4395  CFLAGS=$ax_check_save_flags
4396fi
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___s_ASSERTIONS_0" >&5
4398$as_echo "$ax_cv_check_cflags___s_ASSERTIONS_0" >&6; }
4399if test "x$ax_cv_check_cflags___s_ASSERTIONS_0" = xyes; then :
4400
4401    enable_asm="no"
4402    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to JavaScript - asm implementations disabled" >&5
4403$as_echo "$as_me: WARNING: compiling to JavaScript - asm implementations disabled" >&2;}
4404
4405else
4406
4407    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn't appear to be used - Assuming compilation to native code" >&5
4408$as_echo "$as_me: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn't appear to be used - Assuming compilation to native code" >&2;}
4409    CFLAGS="$CFLAGS -U__EMSCRIPTEN__"
4410    unset EMSCRIPTEN
4411
4412fi
4413
4414
4415fi
4416if test "$host_os" = "nacl" -o "$host_os" = "pnacl"; then :
4417
4418  enable_asm="no"
4419  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to Native Client - asm implementations disabled" >&5
4420$as_echo "$as_me: WARNING: compiling to Native Client - asm implementations disabled" >&2;}
4421
4422fi
4423
4424# Check whether --enable-pie was given.
4425if test "${enable_pie+set}" = set; then :
4426  enableval=$enable_pie; enable_pie=$enableval
4427else
4428  enable_pie="maybe"
4429fi
4430
4431
4432case $host_os in #(
4433  mingw*|cygwin*|msys) :
4434    enable_pie="no" ;; #(
4435  *) :
4436     ;;
4437esac
4438
4439# Check whether --enable-blocking-random was given.
4440if test "${enable_blocking_random+set}" = set; then :
4441  enableval=$enable_blocking_random;
4442  if test "x$enableval" = "xyes"; then :
4443
4444
4445$as_echo "#define USE_BLOCKING_RANDOM 1" >>confdefs.h
4446
4447
4448fi
4449
4450fi
4451
4452
4453# Check whether --enable-minimal was given.
4454if test "${enable_minimal+set}" = set; then :
4455  enableval=$enable_minimal;
4456  if test "x$enableval" = "xyes"; then :
4457
4458    enable_minimal="yes"
4459    SODIUM_LIBRARY_MINIMAL_DEF="#define SODIUM_LIBRARY_MINIMAL 1"
4460
4461$as_echo "#define MINIMAL 1" >>confdefs.h
4462
4463
4464else
4465
4466    enable_minimal="no"
4467
4468fi
4469
4470else
4471
4472  enable_minimal="no"
4473
4474fi
4475
4476 if test x$enable_minimal = xyes; then
4477  MINIMAL_TRUE=
4478  MINIMAL_FALSE='#'
4479else
4480  MINIMAL_TRUE='#'
4481  MINIMAL_FALSE=
4482fi
4483
4484
4485
4486
4487# Check whether --with-pthreads was given.
4488if test "${with_pthreads+set}" = set; then :
4489  withval=$with_pthreads;
4490else
4491  withval="yes"
4492fi
4493
4494
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4496$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4497if ${ac_cv_path_SED+:} false; then :
4498  $as_echo_n "(cached) " >&6
4499else
4500            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4501     for ac_i in 1 2 3 4 5 6 7; do
4502       ac_script="$ac_script$as_nl$ac_script"
4503     done
4504     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4505     { ac_script=; unset ac_script;}
4506     if test -z "$SED"; then
4507  ac_path_SED_found=false
4508  # Loop through the user's path and test for each of PROGNAME-LIST
4509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512  IFS=$as_save_IFS
4513  test -z "$as_dir" && as_dir=.
4514    for ac_prog in sed gsed; do
4515    for ac_exec_ext in '' $ac_executable_extensions; do
4516      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4517      as_fn_executable_p "$ac_path_SED" || continue
4518# Check for GNU ac_path_SED and select it if it is found.
4519  # Check for GNU $ac_path_SED
4520case `"$ac_path_SED" --version 2>&1` in
4521*GNU*)
4522  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4523*)
4524  ac_count=0
4525  $as_echo_n 0123456789 >"conftest.in"
4526  while :
4527  do
4528    cat "conftest.in" "conftest.in" >"conftest.tmp"
4529    mv "conftest.tmp" "conftest.in"
4530    cp "conftest.in" "conftest.nl"
4531    $as_echo '' >> "conftest.nl"
4532    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534    as_fn_arith $ac_count + 1 && ac_count=$as_val
4535    if test $ac_count -gt ${ac_path_SED_max-0}; then
4536      # Best one so far, save it but keep looking for a better one
4537      ac_cv_path_SED="$ac_path_SED"
4538      ac_path_SED_max=$ac_count
4539    fi
4540    # 10*(2^10) chars as input seems more than enough
4541    test $ac_count -gt 10 && break
4542  done
4543  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544esac
4545
4546      $ac_path_SED_found && break 3
4547    done
4548  done
4549  done
4550IFS=$as_save_IFS
4551  if test -z "$ac_cv_path_SED"; then
4552    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4553  fi
4554else
4555  ac_cv_path_SED=$SED
4556fi
4557
4558fi
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4560$as_echo "$ac_cv_path_SED" >&6; }
4561 SED="$ac_cv_path_SED"
4562  rm -f conftest.sed
4563
4564ac_ext=c
4565ac_cpp='$CPP $CPPFLAGS'
4566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4570$as_echo_n "checking how to run the C preprocessor... " >&6; }
4571# On Suns, sometimes $CPP names a directory.
4572if test -n "$CPP" && test -d "$CPP"; then
4573  CPP=
4574fi
4575if test -z "$CPP"; then
4576  if ${ac_cv_prog_CPP+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579      # Double quotes because CPP needs to be expanded
4580    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4581    do
4582      ac_preproc_ok=false
4583for ac_c_preproc_warn_flag in '' yes
4584do
4585  # Use a header file that comes with gcc, so configuring glibc
4586  # with a fresh cross-compiler works.
4587  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4588  # <limits.h> exists even on freestanding compilers.
4589  # On the NeXT, cc -E runs the code through the compiler's parser,
4590  # not just through cpp. "Syntax error" is here to catch this case.
4591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593#ifdef __STDC__
4594# include <limits.h>
4595#else
4596# include <assert.h>
4597#endif
4598		     Syntax error
4599_ACEOF
4600if ac_fn_c_try_cpp "$LINENO"; then :
4601
4602else
4603  # Broken: fails on valid input.
4604continue
4605fi
4606rm -f conftest.err conftest.i conftest.$ac_ext
4607
4608  # OK, works on sane cases.  Now check whether nonexistent headers
4609  # can be detected and how.
4610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611/* end confdefs.h.  */
4612#include <ac_nonexistent.h>
4613_ACEOF
4614if ac_fn_c_try_cpp "$LINENO"; then :
4615  # Broken: success on invalid input.
4616continue
4617else
4618  # Passes both tests.
4619ac_preproc_ok=:
4620break
4621fi
4622rm -f conftest.err conftest.i conftest.$ac_ext
4623
4624done
4625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4626rm -f conftest.i conftest.err conftest.$ac_ext
4627if $ac_preproc_ok; then :
4628  break
4629fi
4630
4631    done
4632    ac_cv_prog_CPP=$CPP
4633
4634fi
4635  CPP=$ac_cv_prog_CPP
4636else
4637  ac_cv_prog_CPP=$CPP
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4640$as_echo "$CPP" >&6; }
4641ac_preproc_ok=false
4642for ac_c_preproc_warn_flag in '' yes
4643do
4644  # Use a header file that comes with gcc, so configuring glibc
4645  # with a fresh cross-compiler works.
4646  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4647  # <limits.h> exists even on freestanding compilers.
4648  # On the NeXT, cc -E runs the code through the compiler's parser,
4649  # not just through cpp. "Syntax error" is here to catch this case.
4650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h.  */
4652#ifdef __STDC__
4653# include <limits.h>
4654#else
4655# include <assert.h>
4656#endif
4657		     Syntax error
4658_ACEOF
4659if ac_fn_c_try_cpp "$LINENO"; then :
4660
4661else
4662  # Broken: fails on valid input.
4663continue
4664fi
4665rm -f conftest.err conftest.i conftest.$ac_ext
4666
4667  # OK, works on sane cases.  Now check whether nonexistent headers
4668  # can be detected and how.
4669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670/* end confdefs.h.  */
4671#include <ac_nonexistent.h>
4672_ACEOF
4673if ac_fn_c_try_cpp "$LINENO"; then :
4674  # Broken: success on invalid input.
4675continue
4676else
4677  # Passes both tests.
4678ac_preproc_ok=:
4679break
4680fi
4681rm -f conftest.err conftest.i conftest.$ac_ext
4682
4683done
4684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4685rm -f conftest.i conftest.err conftest.$ac_ext
4686if $ac_preproc_ok; then :
4687
4688else
4689  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4691as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4692See \`config.log' for more details" "$LINENO" 5; }
4693fi
4694
4695ac_ext=c
4696ac_cpp='$CPP $CPPFLAGS'
4697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700
4701
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4703$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4704if ${ac_cv_path_GREP+:} false; then :
4705  $as_echo_n "(cached) " >&6
4706else
4707  if test -z "$GREP"; then
4708  ac_path_GREP_found=false
4709  # Loop through the user's path and test for each of PROGNAME-LIST
4710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4712do
4713  IFS=$as_save_IFS
4714  test -z "$as_dir" && as_dir=.
4715    for ac_prog in grep ggrep; do
4716    for ac_exec_ext in '' $ac_executable_extensions; do
4717      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4718      as_fn_executable_p "$ac_path_GREP" || continue
4719# Check for GNU ac_path_GREP and select it if it is found.
4720  # Check for GNU $ac_path_GREP
4721case `"$ac_path_GREP" --version 2>&1` in
4722*GNU*)
4723  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4724*)
4725  ac_count=0
4726  $as_echo_n 0123456789 >"conftest.in"
4727  while :
4728  do
4729    cat "conftest.in" "conftest.in" >"conftest.tmp"
4730    mv "conftest.tmp" "conftest.in"
4731    cp "conftest.in" "conftest.nl"
4732    $as_echo 'GREP' >> "conftest.nl"
4733    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4734    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4735    as_fn_arith $ac_count + 1 && ac_count=$as_val
4736    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4737      # Best one so far, save it but keep looking for a better one
4738      ac_cv_path_GREP="$ac_path_GREP"
4739      ac_path_GREP_max=$ac_count
4740    fi
4741    # 10*(2^10) chars as input seems more than enough
4742    test $ac_count -gt 10 && break
4743  done
4744  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4745esac
4746
4747      $ac_path_GREP_found && break 3
4748    done
4749  done
4750  done
4751IFS=$as_save_IFS
4752  if test -z "$ac_cv_path_GREP"; then
4753    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4754  fi
4755else
4756  ac_cv_path_GREP=$GREP
4757fi
4758
4759fi
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4761$as_echo "$ac_cv_path_GREP" >&6; }
4762 GREP="$ac_cv_path_GREP"
4763
4764
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4766$as_echo_n "checking for egrep... " >&6; }
4767if ${ac_cv_path_EGREP+:} false; then :
4768  $as_echo_n "(cached) " >&6
4769else
4770  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4771   then ac_cv_path_EGREP="$GREP -E"
4772   else
4773     if test -z "$EGREP"; then
4774  ac_path_EGREP_found=false
4775  # Loop through the user's path and test for each of PROGNAME-LIST
4776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4778do
4779  IFS=$as_save_IFS
4780  test -z "$as_dir" && as_dir=.
4781    for ac_prog in egrep; do
4782    for ac_exec_ext in '' $ac_executable_extensions; do
4783      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4784      as_fn_executable_p "$ac_path_EGREP" || continue
4785# Check for GNU ac_path_EGREP and select it if it is found.
4786  # Check for GNU $ac_path_EGREP
4787case `"$ac_path_EGREP" --version 2>&1` in
4788*GNU*)
4789  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4790*)
4791  ac_count=0
4792  $as_echo_n 0123456789 >"conftest.in"
4793  while :
4794  do
4795    cat "conftest.in" "conftest.in" >"conftest.tmp"
4796    mv "conftest.tmp" "conftest.in"
4797    cp "conftest.in" "conftest.nl"
4798    $as_echo 'EGREP' >> "conftest.nl"
4799    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4801    as_fn_arith $ac_count + 1 && ac_count=$as_val
4802    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4803      # Best one so far, save it but keep looking for a better one
4804      ac_cv_path_EGREP="$ac_path_EGREP"
4805      ac_path_EGREP_max=$ac_count
4806    fi
4807    # 10*(2^10) chars as input seems more than enough
4808    test $ac_count -gt 10 && break
4809  done
4810  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4811esac
4812
4813      $ac_path_EGREP_found && break 3
4814    done
4815  done
4816  done
4817IFS=$as_save_IFS
4818  if test -z "$ac_cv_path_EGREP"; then
4819    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4820  fi
4821else
4822  ac_cv_path_EGREP=$EGREP
4823fi
4824
4825   fi
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4828$as_echo "$ac_cv_path_EGREP" >&6; }
4829 EGREP="$ac_cv_path_EGREP"
4830
4831
4832if test "x$withval" = "xyes"; then :
4833
4834
4835
4836
4837
4838ac_ext=c
4839ac_cpp='$CPP $CPPFLAGS'
4840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843
4844ax_pthread_ok=no
4845
4846# We used to check for pthread.h first, but this fails if pthread.h
4847# requires special compiler flags (e.g. on Tru64 or Sequent).
4848# It gets checked for in the link test anyway.
4849
4850# First of all, check if the user has set any of the PTHREAD_LIBS,
4851# etcetera environment variables, and if threads linking works using
4852# them:
4853if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
4854        ax_pthread_save_CC="$CC"
4855        ax_pthread_save_CFLAGS="$CFLAGS"
4856        ax_pthread_save_LIBS="$LIBS"
4857        if test "x$PTHREAD_CC" != "x"; then :
4858  CC="$PTHREAD_CC"
4859fi
4860        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4861        LIBS="$PTHREAD_LIBS $LIBS"
4862        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
4863$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
4864        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865/* end confdefs.h.  */
4866
4867/* Override any GCC internal prototype to avoid an error.
4868   Use char because int might match the return type of a GCC
4869   builtin and then its argument prototype would still apply.  */
4870#ifdef __cplusplus
4871extern "C"
4872#endif
4873char pthread_join ();
4874int
4875main ()
4876{
4877return pthread_join ();
4878  ;
4879  return 0;
4880}
4881_ACEOF
4882if ac_fn_c_try_link "$LINENO"; then :
4883  ax_pthread_ok=yes
4884fi
4885rm -f core conftest.err conftest.$ac_objext \
4886    conftest$ac_exeext conftest.$ac_ext
4887        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4888$as_echo "$ax_pthread_ok" >&6; }
4889        if test "x$ax_pthread_ok" = "xno"; then
4890                PTHREAD_LIBS=""
4891                PTHREAD_CFLAGS=""
4892        fi
4893        CC="$ax_pthread_save_CC"
4894        CFLAGS="$ax_pthread_save_CFLAGS"
4895        LIBS="$ax_pthread_save_LIBS"
4896fi
4897
4898# We must check for the threads library under a number of different
4899# names; the ordering is very important because some systems
4900# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4901# libraries is broken (non-POSIX).
4902
4903# Create a list of thread flags to try.  Items starting with a "-" are
4904# C compiler flags, and other items are library names, except for "none"
4905# which indicates that we try without any flags at all, and "pthread-config"
4906# which is a program returning the flags for the Pth emulation library.
4907
4908ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4909
4910# The ordering *is* (sometimes) important.  Some notes on the
4911# individual items follow:
4912
4913# pthreads: AIX (must check this before -lpthread)
4914# none: in case threads are in libc; should be tried before -Kthread and
4915#       other compiler flags to prevent continual compiler warnings
4916# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4917# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
4918#           (Note: HP C rejects this with "bad form for `-t' option")
4919# -pthreads: Solaris/gcc (Note: HP C also rejects)
4920# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4921#      doesn't hurt to check since this sometimes defines pthreads and
4922#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
4923#      is present but should not be used directly; and before -mthreads,
4924#      because the compiler interprets this as "-mt" + "-hreads")
4925# -mthreads: Mingw32/gcc, Lynx/gcc
4926# pthread: Linux, etcetera
4927# --thread-safe: KAI C++
4928# pthread-config: use pthread-config program (for GNU Pth library)
4929
4930case $host_os in
4931
4932        freebsd*)
4933
4934        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4935        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4936
4937        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
4938        ;;
4939
4940        hpux*)
4941
4942        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
4943        # multi-threading and also sets -lpthread."
4944
4945        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
4946        ;;
4947
4948        openedition*)
4949
4950        # IBM z/OS requires a feature-test macro to be defined in order to
4951        # enable POSIX threads at all, so give the user a hint if this is
4952        # not set. (We don't define these ourselves, as they can affect
4953        # other portions of the system API in unpredictable ways.)
4954
4955        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956/* end confdefs.h.  */
4957
4958#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
4959             AX_PTHREAD_ZOS_MISSING
4960#            endif
4961
4962_ACEOF
4963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
4965  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
4966$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
4967fi
4968rm -f conftest*
4969
4970        ;;
4971
4972        solaris*)
4973
4974        # On Solaris (at least, for some versions), libc contains stubbed
4975        # (non-functional) versions of the pthreads routines, so link-based
4976        # tests will erroneously succeed. (N.B.: The stubs are missing
4977        # pthread_cleanup_push, or rather a function called by this macro,
4978        # so we could check for that, but who knows whether they'll stub
4979        # that too in a future libc.)  So we'll check first for the
4980        # standard Solaris way of linking pthreads (-mt -lpthread).
4981
4982        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
4983        ;;
4984esac
4985
4986# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
4987
4988if test "x$GCC" = "xyes"; then :
4989  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
4990fi
4991
4992# The presence of a feature test macro requesting re-entrant function
4993# definitions is, on some systems, a strong hint that pthreads support is
4994# correctly enabled
4995
4996case $host_os in
4997        darwin* | hpux* | linux* | osf* | solaris*)
4998        ax_pthread_check_macro="_REENTRANT"
4999        ;;
5000
5001        aix*)
5002        ax_pthread_check_macro="_THREAD_SAFE"
5003        ;;
5004
5005        *)
5006        ax_pthread_check_macro="--"
5007        ;;
5008esac
5009if test "x$ax_pthread_check_macro" = "x--"; then :
5010  ax_pthread_check_cond=0
5011else
5012  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
5013fi
5014
5015# Are we compiling with Clang?
5016
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
5018$as_echo_n "checking whether $CC is Clang... " >&6; }
5019if ${ax_cv_PTHREAD_CLANG+:} false; then :
5020  $as_echo_n "(cached) " >&6
5021else
5022  ax_cv_PTHREAD_CLANG=no
5023     # Note that Autoconf sets GCC=yes for Clang as well as GCC
5024     if test "x$GCC" = "xyes"; then
5025        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h.  */
5027/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
5028#            if defined(__clang__) && defined(__llvm__)
5029             AX_PTHREAD_CC_IS_CLANG
5030#            endif
5031
5032_ACEOF
5033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
5035  ax_cv_PTHREAD_CLANG=yes
5036fi
5037rm -f conftest*
5038
5039     fi
5040
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
5043$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
5044ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
5045
5046ax_pthread_clang_warning=no
5047
5048# Clang needs special handling, because older versions handle the -pthread
5049# option in a rather... idiosyncratic way
5050
5051if test "x$ax_pthread_clang" = "xyes"; then
5052
5053        # Clang takes -pthread; it has never supported any other flag
5054
5055        # (Note 1: This will need to be revisited if a system that Clang
5056        # supports has POSIX threads in a separate library.  This tends not
5057        # to be the way of modern systems, but it's conceivable.)
5058
5059        # (Note 2: On some systems, notably Darwin, -pthread is not needed
5060        # to get POSIX threads support; the API is always present and
5061        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
5062        # -pthread does define _REENTRANT, and while the Darwin headers
5063        # ignore this macro, third-party headers might not.)
5064
5065        PTHREAD_CFLAGS="-pthread"
5066        PTHREAD_LIBS=
5067
5068        ax_pthread_ok=yes
5069
5070        # However, older versions of Clang make a point of warning the user
5071        # that, in an invocation where only linking and no compilation is
5072        # taking place, the -pthread option has no effect ("argument unused
5073        # during compilation").  They expect -pthread to be passed in only
5074        # when source code is being compiled.
5075        #
5076        # Problem is, this is at odds with the way Automake and most other
5077        # C build frameworks function, which is that the same flags used in
5078        # compilation (CFLAGS) are also used in linking.  Many systems
5079        # supported by AX_PTHREAD require exactly this for POSIX threads
5080        # support, and in fact it is often not straightforward to specify a
5081        # flag that is used only in the compilation phase and not in
5082        # linking.  Such a scenario is extremely rare in practice.
5083        #
5084        # Even though use of the -pthread flag in linking would only print
5085        # a warning, this can be a nuisance for well-run software projects
5086        # that build with -Werror.  So if the active version of Clang has
5087        # this misfeature, we search for an option to squash it.
5088
5089        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
5090$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
5091if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
5092  $as_echo_n "(cached) " >&6
5093else
5094  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
5095             # Create an alternate version of $ac_link that compiles and
5096             # links in two steps (.c -> .o, .o -> exe) instead of one
5097             # (.c -> exe), because the warning occurs only in the second
5098             # step
5099             ax_pthread_save_ac_link="$ac_link"
5100             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
5101             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
5102             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
5103             ax_pthread_save_CFLAGS="$CFLAGS"
5104             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
5105                if test "x$ax_pthread_try" = "xunknown"; then :
5106  break
5107fi
5108                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
5109                ac_link="$ax_pthread_save_ac_link"
5110                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h.  */
5112int main(void){return 0;}
5113_ACEOF
5114if ac_fn_c_try_link "$LINENO"; then :
5115  ac_link="$ax_pthread_2step_ac_link"
5116                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h.  */
5118int main(void){return 0;}
5119_ACEOF
5120if ac_fn_c_try_link "$LINENO"; then :
5121  break
5122fi
5123rm -f core conftest.err conftest.$ac_objext \
5124    conftest$ac_exeext conftest.$ac_ext
5125
5126fi
5127rm -f core conftest.err conftest.$ac_objext \
5128    conftest$ac_exeext conftest.$ac_ext
5129             done
5130             ac_link="$ax_pthread_save_ac_link"
5131             CFLAGS="$ax_pthread_save_CFLAGS"
5132             if test "x$ax_pthread_try" = "x"; then :
5133  ax_pthread_try=no
5134fi
5135             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
5136
5137fi
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
5139$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
5140
5141        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
5142                no | unknown) ;;
5143                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
5144        esac
5145
5146fi # $ax_pthread_clang = yes
5147
5148if test "x$ax_pthread_ok" = "xno"; then
5149for ax_pthread_try_flag in $ax_pthread_flags; do
5150
5151        case $ax_pthread_try_flag in
5152                none)
5153                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5154$as_echo_n "checking whether pthreads work without any flags... " >&6; }
5155                ;;
5156
5157                -mt,pthread)
5158                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
5159$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
5160                PTHREAD_CFLAGS="-mt"
5161                PTHREAD_LIBS="-lpthread"
5162                ;;
5163
5164                -*)
5165                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
5166$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
5167                PTHREAD_CFLAGS="$ax_pthread_try_flag"
5168                ;;
5169
5170                pthread-config)
5171                # Extract the first word of "pthread-config", so it can be a program name with args.
5172set dummy pthread-config; ac_word=$2
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174$as_echo_n "checking for $ac_word... " >&6; }
5175if ${ac_cv_prog_ax_pthread_config+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  if test -n "$ax_pthread_config"; then
5179  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186    for ac_exec_ext in '' $ac_executable_extensions; do
5187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188    ac_cv_prog_ax_pthread_config="yes"
5189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190    break 2
5191  fi
5192done
5193  done
5194IFS=$as_save_IFS
5195
5196  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5197fi
5198fi
5199ax_pthread_config=$ac_cv_prog_ax_pthread_config
5200if test -n "$ax_pthread_config"; then
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5202$as_echo "$ax_pthread_config" >&6; }
5203else
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
5206fi
5207
5208
5209                if test "x$ax_pthread_config" = "xno"; then :
5210  continue
5211fi
5212                PTHREAD_CFLAGS="`pthread-config --cflags`"
5213                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5214                ;;
5215
5216                *)
5217                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
5218$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
5219                PTHREAD_LIBS="-l$ax_pthread_try_flag"
5220                ;;
5221        esac
5222
5223        ax_pthread_save_CFLAGS="$CFLAGS"
5224        ax_pthread_save_LIBS="$LIBS"
5225        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5226        LIBS="$PTHREAD_LIBS $LIBS"
5227
5228        # Check for various functions.  We must include pthread.h,
5229        # since some functions may be macros.  (On the Sequent, we
5230        # need a special flag -Kthread to make this header compile.)
5231        # We check for pthread_join because it is in -lpthread on IRIX
5232        # while pthread_create is in libc.  We check for pthread_attr_init
5233        # due to DEC craziness with -lpthreads.  We check for
5234        # pthread_cleanup_push because it is one of the few pthread
5235        # functions on Solaris that doesn't have a non-functional libc stub.
5236        # We try pthread_create on general principles.
5237
5238        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h.  */
5240#include <pthread.h>
5241#                       if $ax_pthread_check_cond
5242#                        error "$ax_pthread_check_macro must be defined"
5243#                       endif
5244                        static void routine(void *a) { a = 0; }
5245                        static void *start_routine(void *a) { return a; }
5246int
5247main ()
5248{
5249pthread_t th; pthread_attr_t attr;
5250                        pthread_create(&th, 0, start_routine, 0);
5251                        pthread_join(th, 0);
5252                        pthread_attr_init(&attr);
5253                        pthread_cleanup_push(routine, 0);
5254                        pthread_cleanup_pop(0) /* ; */
5255  ;
5256  return 0;
5257}
5258_ACEOF
5259if ac_fn_c_try_link "$LINENO"; then :
5260  ax_pthread_ok=yes
5261fi
5262rm -f core conftest.err conftest.$ac_objext \
5263    conftest$ac_exeext conftest.$ac_ext
5264
5265        CFLAGS="$ax_pthread_save_CFLAGS"
5266        LIBS="$ax_pthread_save_LIBS"
5267
5268        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5269$as_echo "$ax_pthread_ok" >&6; }
5270        if test "x$ax_pthread_ok" = "xyes"; then :
5271  break
5272fi
5273
5274        PTHREAD_LIBS=""
5275        PTHREAD_CFLAGS=""
5276done
5277fi
5278
5279# Various other checks:
5280if test "x$ax_pthread_ok" = "xyes"; then
5281        ax_pthread_save_CFLAGS="$CFLAGS"
5282        ax_pthread_save_LIBS="$LIBS"
5283        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5284        LIBS="$PTHREAD_LIBS $LIBS"
5285
5286        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
5287        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5288$as_echo_n "checking for joinable pthread attribute... " >&6; }
5289if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
5290  $as_echo_n "(cached) " >&6
5291else
5292  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
5293             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
5294                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296#include <pthread.h>
5297int
5298main ()
5299{
5300int attr = $ax_pthread_attr; return attr /* ; */
5301  ;
5302  return 0;
5303}
5304_ACEOF
5305if ac_fn_c_try_link "$LINENO"; then :
5306  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
5307fi
5308rm -f core conftest.err conftest.$ac_objext \
5309    conftest$ac_exeext conftest.$ac_ext
5310             done
5311
5312fi
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
5314$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
5315        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
5316               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
5317               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
5318
5319cat >>confdefs.h <<_ACEOF
5320#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
5321_ACEOF
5322
5323               ax_pthread_joinable_attr_defined=yes
5324
5325fi
5326
5327        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
5328$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
5329if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  ax_cv_PTHREAD_SPECIAL_FLAGS=no
5333             case $host_os in
5334             solaris*)
5335             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
5336             ;;
5337             esac
5338
5339fi
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
5341$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
5342        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
5343               test "x$ax_pthread_special_flags_added" != "xyes"; then :
5344  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
5345               ax_pthread_special_flags_added=yes
5346fi
5347
5348        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
5349$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
5350if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
5351  $as_echo_n "(cached) " >&6
5352else
5353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354/* end confdefs.h.  */
5355#include <pthread.h>
5356int
5357main ()
5358{
5359int i = PTHREAD_PRIO_INHERIT;
5360  ;
5361  return 0;
5362}
5363_ACEOF
5364if ac_fn_c_try_link "$LINENO"; then :
5365  ax_cv_PTHREAD_PRIO_INHERIT=yes
5366else
5367  ax_cv_PTHREAD_PRIO_INHERIT=no
5368fi
5369rm -f core conftest.err conftest.$ac_objext \
5370    conftest$ac_exeext conftest.$ac_ext
5371
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
5374$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
5375        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
5376               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
5377
5378$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
5379
5380               ax_pthread_prio_inherit_defined=yes
5381
5382fi
5383
5384        CFLAGS="$ax_pthread_save_CFLAGS"
5385        LIBS="$ax_pthread_save_LIBS"
5386
5387        # More AIX lossage: compile with *_r variant
5388        if test "x$GCC" != "xyes"; then
5389            case $host_os in
5390                aix*)
5391                case "x/$CC" in #(
5392  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
5393    #handle absolute path differently from PATH based program lookup
5394                     case "x$CC" in #(
5395  x/*) :
5396    if as_fn_executable_p ${CC}_r; then :
5397  PTHREAD_CC="${CC}_r"
5398fi ;; #(
5399  *) :
5400    for ac_prog in ${CC}_r
5401do
5402  # Extract the first word of "$ac_prog", so it can be a program name with args.
5403set dummy $ac_prog; ac_word=$2
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405$as_echo_n "checking for $ac_word... " >&6; }
5406if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  if test -n "$PTHREAD_CC"; then
5410  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5411else
5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415  IFS=$as_save_IFS
5416  test -z "$as_dir" && as_dir=.
5417    for ac_exec_ext in '' $ac_executable_extensions; do
5418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419    ac_cv_prog_PTHREAD_CC="$ac_prog"
5420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421    break 2
5422  fi
5423done
5424  done
5425IFS=$as_save_IFS
5426
5427fi
5428fi
5429PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5430if test -n "$PTHREAD_CC"; then
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5432$as_echo "$PTHREAD_CC" >&6; }
5433else
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435$as_echo "no" >&6; }
5436fi
5437
5438
5439  test -n "$PTHREAD_CC" && break
5440done
5441test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5442 ;;
5443esac ;; #(
5444  *) :
5445     ;;
5446esac
5447                ;;
5448            esac
5449        fi
5450fi
5451
5452test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5453
5454
5455
5456
5457
5458# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5459if test "x$ax_pthread_ok" = "xyes"; then
5460
5461
5462$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5463
5464    with_threads="yes"
5465    LIBS="$PTHREAD_LIBS $LIBS"
5466    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5467    CC="$PTHREAD_CC"
5468        :
5469else
5470        ax_pthread_ok=no
5471
5472fi
5473ac_ext=c
5474ac_cpp='$CPP $CPPFLAGS'
5475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478
5479
5480
5481else
5482  with_threads="no"
5483fi
5484
5485
5486# Check whether --with-safecode was given.
5487if test "${with_safecode+set}" = set; then :
5488  withval=$with_safecode; if test "x$withval" = "xyes"; then :
5489
5490
5491    : ${SAFECODE_HOME:=/opt/safecode}
5492    LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
5493    LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
5494    CFLAGS="$CFLAGS -fmemsafety"
5495
5496fi
5497
5498fi
5499
5500
5501
5502# Check whether --with-ctgrind was given.
5503if test "${with_ctgrind+set}" = set; then :
5504  withval=$with_ctgrind; if test "x$withval" = "xyes"; then :
5505
5506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_poison in -lctgrind" >&5
5507$as_echo_n "checking for ct_poison in -lctgrind... " >&6; }
5508if ${ac_cv_lib_ctgrind_ct_poison+:} false; then :
5509  $as_echo_n "(cached) " >&6
5510else
5511  ac_check_lib_save_LIBS=$LIBS
5512LIBS="-lctgrind  $LIBS"
5513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515
5516/* Override any GCC internal prototype to avoid an error.
5517   Use char because int might match the return type of a GCC
5518   builtin and then its argument prototype would still apply.  */
5519#ifdef __cplusplus
5520extern "C"
5521#endif
5522char ct_poison ();
5523int
5524main ()
5525{
5526return ct_poison ();
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531if ac_fn_c_try_link "$LINENO"; then :
5532  ac_cv_lib_ctgrind_ct_poison=yes
5533else
5534  ac_cv_lib_ctgrind_ct_poison=no
5535fi
5536rm -f core conftest.err conftest.$ac_objext \
5537    conftest$ac_exeext conftest.$ac_ext
5538LIBS=$ac_check_lib_save_LIBS
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ctgrind_ct_poison" >&5
5541$as_echo "$ac_cv_lib_ctgrind_ct_poison" >&6; }
5542if test "x$ac_cv_lib_ctgrind_ct_poison" = xyes; then :
5543  cat >>confdefs.h <<_ACEOF
5544#define HAVE_LIBCTGRIND 1
5545_ACEOF
5546
5547  LIBS="-lctgrind $LIBS"
5548
5549fi
5550
5551
5552fi
5553
5554fi
5555
5556
5557ENABLE_CWFLAGS=no
5558# Check whether --enable-debug was given.
5559if test "${enable_debug+set}" = set; then :
5560  enableval=$enable_debug;
5561  if test "x$enableval" = "xyes"; then :
5562
5563    if test "x$LX_CFLAGS" = "xNONE"; then :
5564
5565      nxflags=""
5566      for flag in `echo $CFLAGS`; do
5567        case $flag in #(
5568  -O*) :
5569      ;; #(
5570  -g*) :
5571      ;; #(
5572  *) :
5573    as_fn_append nxflags " $flag" ;; #(
5574  *) :
5575     ;;
5576esac
5577      done
5578      CFLAGS="$nxflags -O -g3"
5579
5580fi
5581    ENABLE_CWFLAGS=yes
5582    CPPFLAGS="$CPPFLAGS -DDEBUG=1 -U_FORTIFY_SOURCE"
5583
5584fi
5585
5586fi
5587
5588
5589# Check whether --enable-opt was given.
5590if test "${enable_opt+set}" = set; then :
5591  enableval=$enable_opt;
5592  if test "x$enableval" = "xyes"; then :
5593
5594    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Ofast" >&5
5595$as_echo_n "checking whether C compiler accepts -Ofast... " >&6; }
5596if ${ax_cv_check_cflags___Ofast+:} false; then :
5597  $as_echo_n "(cached) " >&6
5598else
5599
5600  ax_check_save_flags=$CFLAGS
5601  CFLAGS="$CFLAGS  -Ofast"
5602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h.  */
5604#include <time.h>
5605int
5606main ()
5607{
5608time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5609  ;
5610  return 0;
5611}
5612_ACEOF
5613if ac_fn_c_try_link "$LINENO"; then :
5614  ax_cv_check_cflags___Ofast=yes
5615else
5616  ax_cv_check_cflags___Ofast=no
5617fi
5618rm -f core conftest.err conftest.$ac_objext \
5619    conftest$ac_exeext conftest.$ac_ext
5620  CFLAGS=$ax_check_save_flags
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Ofast" >&5
5623$as_echo "$ax_cv_check_cflags___Ofast" >&6; }
5624if test "x$ax_cv_check_cflags___Ofast" = xyes; then :
5625  CFLAGS="$CFLAGS -Ofast"
5626else
5627  :
5628fi
5629
5630    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fomit-frame-pointer" >&5
5631$as_echo_n "checking whether C compiler accepts -fomit-frame-pointer... " >&6; }
5632if ${ax_cv_check_cflags___fomit_frame_pointer+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635
5636  ax_check_save_flags=$CFLAGS
5637  CFLAGS="$CFLAGS  -fomit-frame-pointer"
5638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h.  */
5640#include <time.h>
5641int
5642main ()
5643{
5644time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5645  ;
5646  return 0;
5647}
5648_ACEOF
5649if ac_fn_c_try_link "$LINENO"; then :
5650  ax_cv_check_cflags___fomit_frame_pointer=yes
5651else
5652  ax_cv_check_cflags___fomit_frame_pointer=no
5653fi
5654rm -f core conftest.err conftest.$ac_objext \
5655    conftest$ac_exeext conftest.$ac_ext
5656  CFLAGS=$ax_check_save_flags
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fomit_frame_pointer" >&5
5659$as_echo "$ax_cv_check_cflags___fomit_frame_pointer" >&6; }
5660if test "x$ax_cv_check_cflags___fomit_frame_pointer" = xyes; then :
5661  CFLAGS="$CFLAGS -fomit-frame-pointer"
5662else
5663  :
5664fi
5665
5666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=native" >&5
5667$as_echo_n "checking whether C compiler accepts -march=native... " >&6; }
5668if ${ax_cv_check_cflags___march_native+:} false; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671
5672  ax_check_save_flags=$CFLAGS
5673  CFLAGS="$CFLAGS  -march=native"
5674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676#include <time.h>
5677int
5678main ()
5679{
5680time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5681  ;
5682  return 0;
5683}
5684_ACEOF
5685if ac_fn_c_try_link "$LINENO"; then :
5686  ax_cv_check_cflags___march_native=yes
5687else
5688  ax_cv_check_cflags___march_native=no
5689fi
5690rm -f core conftest.err conftest.$ac_objext \
5691    conftest$ac_exeext conftest.$ac_ext
5692  CFLAGS=$ax_check_save_flags
5693fi
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___march_native" >&5
5695$as_echo "$ax_cv_check_cflags___march_native" >&6; }
5696if test "x$ax_cv_check_cflags___march_native" = xyes; then :
5697  CFLAGS="$CFLAGS -march=native"
5698else
5699  :
5700fi
5701
5702
5703fi
5704
5705fi
5706
5707
5708
5709
5710
5711		# Check whether --enable-valgrind was given.
5712if test "${enable_valgrind+set}" = set; then :
5713  enableval=$enable_valgrind; enable_valgrind=$enableval
5714else
5715  enable_valgrind=no
5716fi
5717
5718
5719	if test "$enable_valgrind" != "no"; then :
5720
5721		# Check for Valgrind.
5722		# Extract the first word of "valgrind", so it can be a program name with args.
5723set dummy valgrind; ac_word=$2
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725$as_echo_n "checking for $ac_word... " >&6; }
5726if ${ac_cv_prog_VALGRIND+:} false; then :
5727  $as_echo_n "(cached) " >&6
5728else
5729  if test -n "$VALGRIND"; then
5730  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
5731else
5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735  IFS=$as_save_IFS
5736  test -z "$as_dir" && as_dir=.
5737    for ac_exec_ext in '' $ac_executable_extensions; do
5738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739    ac_cv_prog_VALGRIND="valgrind"
5740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741    break 2
5742  fi
5743done
5744  done
5745IFS=$as_save_IFS
5746
5747fi
5748fi
5749VALGRIND=$ac_cv_prog_VALGRIND
5750if test -n "$VALGRIND"; then
5751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
5752$as_echo "$VALGRIND" >&6; }
5753else
5754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755$as_echo "no" >&6; }
5756fi
5757
5758
5759		if test "$VALGRIND" = ""; then :
5760
5761			if test "$enable_valgrind" = "yes"; then :
5762
5763				as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
5764
5765else
5766
5767				enable_valgrind=no
5768
5769fi
5770
5771else
5772
5773			enable_valgrind=yes
5774
5775fi
5776
5777fi
5778
5779	 if test "$enable_valgrind" = "yes"; then
5780  VALGRIND_ENABLED_TRUE=
5781  VALGRIND_ENABLED_FALSE='#'
5782else
5783  VALGRIND_ENABLED_TRUE='#'
5784  VALGRIND_ENABLED_FALSE=
5785fi
5786
5787	VALGRIND_ENABLED=$enable_valgrind
5788
5789
5790	# Check for Valgrind tools we care about.
5791	valgrind_enabled_tools=
5792
5793		# Check whether --enable-valgrind-memcheck was given.
5794if test "${enable_valgrind_memcheck+set}" = set; then :
5795  enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval
5796else
5797  enable_valgrind_memcheck=
5798fi
5799
5800		if test "$enable_valgrind" = "no"; then :
5801
5802			enable_valgrind_memcheck=no
5803elif test "$enable_valgrind_memcheck" != "no"; then :
5804
5805			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
5806$as_echo_n "checking for Valgrind tool memcheck... " >&6; }
5807if ${ax_cv_valgrind_tool_memcheck+:} false; then :
5808  $as_echo_n "(cached) " >&6
5809else
5810
5811				ax_cv_valgrind_tool_memcheck=no
5812
5813				if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then :
5814
5815					ax_cv_valgrind_tool_memcheck=yes
5816
5817fi
5818
5819fi
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
5821$as_echo "$ax_cv_valgrind_tool_memcheck" >&6; }
5822			if test "$ax_cv_valgrind_tool_memcheck" = "no"; then :
5823
5824				if test "$enable_valgrind_memcheck" = "yes"; then :
5825
5826					as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5
5827
5828else
5829
5830					enable_valgrind_memcheck=no
5831
5832fi
5833
5834else
5835
5836				enable_valgrind_memcheck=yes
5837
5838fi
5839
5840fi
5841		if test "$enable_valgrind_memcheck" = "yes"; then :
5842
5843			valgrind_enabled_tools="$valgrind_enabled_tools memcheck"
5844
5845fi
5846		ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck
5847
5848
5849		# Check whether --enable-valgrind-helgrind was given.
5850if test "${enable_valgrind_helgrind+set}" = set; then :
5851  enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval
5852else
5853  enable_valgrind_helgrind=
5854fi
5855
5856		if test "$enable_valgrind" = "no"; then :
5857
5858			enable_valgrind_helgrind=no
5859elif test "$enable_valgrind_helgrind" != "no"; then :
5860
5861			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
5862$as_echo_n "checking for Valgrind tool helgrind... " >&6; }
5863if ${ax_cv_valgrind_tool_helgrind+:} false; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866
5867				ax_cv_valgrind_tool_helgrind=no
5868
5869				if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then :
5870
5871					ax_cv_valgrind_tool_helgrind=yes
5872
5873fi
5874
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
5877$as_echo "$ax_cv_valgrind_tool_helgrind" >&6; }
5878			if test "$ax_cv_valgrind_tool_helgrind" = "no"; then :
5879
5880				if test "$enable_valgrind_helgrind" = "yes"; then :
5881
5882					as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5
5883
5884else
5885
5886					enable_valgrind_helgrind=no
5887
5888fi
5889
5890else
5891
5892				enable_valgrind_helgrind=yes
5893
5894fi
5895
5896fi
5897		if test "$enable_valgrind_helgrind" = "yes"; then :
5898
5899			valgrind_enabled_tools="$valgrind_enabled_tools helgrind"
5900
5901fi
5902		ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind
5903
5904
5905		# Check whether --enable-valgrind-drd was given.
5906if test "${enable_valgrind_drd+set}" = set; then :
5907  enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval
5908else
5909  enable_valgrind_drd=
5910fi
5911
5912		if test "$enable_valgrind" = "no"; then :
5913
5914			enable_valgrind_drd=no
5915elif test "$enable_valgrind_drd" != "no"; then :
5916
5917			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
5918$as_echo_n "checking for Valgrind tool drd... " >&6; }
5919if ${ax_cv_valgrind_tool_drd+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922
5923				ax_cv_valgrind_tool_drd=no
5924
5925				if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then :
5926
5927					ax_cv_valgrind_tool_drd=yes
5928
5929fi
5930
5931fi
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
5933$as_echo "$ax_cv_valgrind_tool_drd" >&6; }
5934			if test "$ax_cv_valgrind_tool_drd" = "no"; then :
5935
5936				if test "$enable_valgrind_drd" = "yes"; then :
5937
5938					as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5
5939
5940else
5941
5942					enable_valgrind_drd=no
5943
5944fi
5945
5946else
5947
5948				enable_valgrind_drd=yes
5949
5950fi
5951
5952fi
5953		if test "$enable_valgrind_drd" = "yes"; then :
5954
5955			valgrind_enabled_tools="$valgrind_enabled_tools drd"
5956
5957fi
5958		ENABLE_VALGRIND_drd=$enable_valgrind_drd
5959
5960
5961		# Check whether --enable-valgrind-sgcheck was given.
5962if test "${enable_valgrind_sgcheck+set}" = set; then :
5963  enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval
5964else
5965  enable_valgrind_sgcheck=
5966fi
5967
5968		if test "$enable_valgrind" = "no"; then :
5969
5970			enable_valgrind_sgcheck=no
5971elif test "$enable_valgrind_sgcheck" != "no"; then :
5972
5973			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5
5974$as_echo_n "checking for Valgrind tool sgcheck... " >&6; }
5975if ${ax_cv_valgrind_tool_sgcheck+:} false; then :
5976  $as_echo_n "(cached) " >&6
5977else
5978
5979				ax_cv_valgrind_tool_sgcheck=no
5980
5981				if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then :
5982
5983					ax_cv_valgrind_tool_sgcheck=yes
5984
5985fi
5986
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5
5989$as_echo "$ax_cv_valgrind_tool_sgcheck" >&6; }
5990			if test "$ax_cv_valgrind_tool_sgcheck" = "no"; then :
5991
5992				if test "$enable_valgrind_sgcheck" = "yes"; then :
5993
5994					as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5
5995
5996else
5997
5998					enable_valgrind_sgcheck=no
5999
6000fi
6001
6002else
6003
6004				enable_valgrind_sgcheck=yes
6005
6006fi
6007
6008fi
6009		if test "$enable_valgrind_sgcheck" = "yes"; then :
6010
6011			valgrind_enabled_tools="$valgrind_enabled_tools sgcheck"
6012
6013fi
6014		ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck
6015
6016
6017	valgrind_tools="memcheck helgrind drd sgcheck"
6018
6019	valgrind_enabled_tools=$valgrind_enabled_tools
6020
6021
6022VALGRIND_CHECK_RULES='
6023# Valgrind check
6024#
6025# Optional:
6026#  - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
6027#    files to load. (Default: empty)
6028#  - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
6029#    (Default: --num-callers=30)
6030#  - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
6031#    memcheck, helgrind, drd, sgcheck). (Default: various)
6032
6033# Optional variables
6034VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
6035VALGRIND_FLAGS ?= --num-callers=30
6036VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
6037VALGRIND_helgrind_FLAGS ?= --history-level=approx
6038VALGRIND_drd_FLAGS ?=
6039VALGRIND_sgcheck_FLAGS ?=
6040
6041# Internal use
6042valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
6043
6044valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
6045valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
6046valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
6047valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
6048
6049valgrind_quiet = $(valgrind_quiet_$(V))
6050valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
6051valgrind_quiet_0 = --quiet
6052valgrind_v_use   = $(valgrind_v_use_$(V))
6053valgrind_v_use_  = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY))
6054valgrind_v_use_0 = @echo "  USE   " $(patsubst check-valgrind-%,%,$''@):;
6055
6056# Support running with and without libtool.
6057ifneq ($(LIBTOOL),)
6058valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
6059else
6060valgrind_lt =
6061endif
6062
6063# Use recursive makes in order to ignore errors during check
6064check-valgrind:
6065ifeq ($(VALGRIND_ENABLED),yes)
6066	$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \
6067		$(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool))
6068else
6069	@echo "Need to use GNU make and reconfigure with --enable-valgrind"
6070endif
6071
6072# Valgrind running
6073VALGRIND_TESTS_ENVIRONMENT = \
6074	$(TESTS_ENVIRONMENT) \
6075	env VALGRIND=$(VALGRIND) \
6076	G_SLICE=always-malloc,debug-blocks \
6077	G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
6078
6079VALGRIND_LOG_COMPILER = \
6080	$(valgrind_lt) \
6081	$(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
6082
6083define valgrind_tool_rule =
6084check-valgrind-$(1):
6085ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes)
6086	$$(valgrind_v_use)$$(MAKE) check-TESTS \
6087		TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \
6088		LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \
6089		LOG_FLAGS="$$(valgrind_$(1)_flags)" \
6090		TEST_SUITE_LOG=test-suite-$(1).log
6091else ifeq ($$(VALGRIND_ENABLED),yes)
6092	@echo "Need to reconfigure with --enable-valgrind-$(1)"
6093else
6094	@echo "Need to reconfigure with --enable-valgrind"
6095endif
6096endef
6097
6098$(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool))))
6099
6100A''M_DISTCHECK_CONFIGURE_FLAGS ?=
6101A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
6102
6103MOSTLYCLEANFILES ?=
6104MOSTLYCLEANFILES += $(valgrind_log_files)
6105
6106.PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools))
6107'
6108
6109	if test "$enable_valgrind" != "yes"; then :
6110
6111		VALGRIND_CHECK_RULES='
6112check-valgrind:
6113	@echo "Need to use GNU make and reconfigure with --enable-valgrind"'
6114
6115fi
6116
6117
6118
6119
6120
6121
6122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6123$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6124if ${ac_cv_prog_cc_c99+:} false; then :
6125  $as_echo_n "(cached) " >&6
6126else
6127  ac_cv_prog_cc_c99=no
6128ac_save_CC=$CC
6129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131#include <stdarg.h>
6132#include <stdbool.h>
6133#include <stdlib.h>
6134#include <wchar.h>
6135#include <stdio.h>
6136
6137// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6138#define debug(...) fprintf (stderr, __VA_ARGS__)
6139#define showlist(...) puts (#__VA_ARGS__)
6140#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6141static void
6142test_varargs_macros (void)
6143{
6144  int x = 1234;
6145  int y = 5678;
6146  debug ("Flag");
6147  debug ("X = %d\n", x);
6148  showlist (The first, second, and third items.);
6149  report (x>y, "x is %d but y is %d", x, y);
6150}
6151
6152// Check long long types.
6153#define BIG64 18446744073709551615ull
6154#define BIG32 4294967295ul
6155#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6156#if !BIG_OK
6157  your preprocessor is broken;
6158#endif
6159#if BIG_OK
6160#else
6161  your preprocessor is broken;
6162#endif
6163static long long int bignum = -9223372036854775807LL;
6164static unsigned long long int ubignum = BIG64;
6165
6166struct incomplete_array
6167{
6168  int datasize;
6169  double data[];
6170};
6171
6172struct named_init {
6173  int number;
6174  const wchar_t *name;
6175  double average;
6176};
6177
6178typedef const char *ccp;
6179
6180static inline int
6181test_restrict (ccp restrict text)
6182{
6183  // See if C++-style comments work.
6184  // Iterate through items via the restricted pointer.
6185  // Also check for declarations in for loops.
6186  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6187    continue;
6188  return 0;
6189}
6190
6191// Check varargs and va_copy.
6192static void
6193test_varargs (const char *format, ...)
6194{
6195  va_list args;
6196  va_start (args, format);
6197  va_list args_copy;
6198  va_copy (args_copy, args);
6199
6200  const char *str;
6201  int number;
6202  float fnumber;
6203
6204  while (*format)
6205    {
6206      switch (*format++)
6207	{
6208	case 's': // string
6209	  str = va_arg (args_copy, const char *);
6210	  break;
6211	case 'd': // int
6212	  number = va_arg (args_copy, int);
6213	  break;
6214	case 'f': // float
6215	  fnumber = va_arg (args_copy, double);
6216	  break;
6217	default:
6218	  break;
6219	}
6220    }
6221  va_end (args_copy);
6222  va_end (args);
6223}
6224
6225int
6226main ()
6227{
6228
6229  // Check bool.
6230  _Bool success = false;
6231
6232  // Check restrict.
6233  if (test_restrict ("String literal") == 0)
6234    success = true;
6235  char *restrict newvar = "Another string";
6236
6237  // Check varargs.
6238  test_varargs ("s, d' f .", "string", 65, 34.234);
6239  test_varargs_macros ();
6240
6241  // Check flexible array members.
6242  struct incomplete_array *ia =
6243    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6244  ia->datasize = 10;
6245  for (int i = 0; i < ia->datasize; ++i)
6246    ia->data[i] = i * 1.234;
6247
6248  // Check named initializers.
6249  struct named_init ni = {
6250    .number = 34,
6251    .name = L"Test wide string",
6252    .average = 543.34343,
6253  };
6254
6255  ni.number = 58;
6256
6257  int dynamic_array[ni.number];
6258  dynamic_array[ni.number - 1] = 543;
6259
6260  // work around unused variable warnings
6261  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6262	  || dynamic_array[ni.number - 1] != 543);
6263
6264  ;
6265  return 0;
6266}
6267_ACEOF
6268for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6269do
6270  CC="$ac_save_CC $ac_arg"
6271  if ac_fn_c_try_compile "$LINENO"; then :
6272  ac_cv_prog_cc_c99=$ac_arg
6273fi
6274rm -f core conftest.err conftest.$ac_objext
6275  test "x$ac_cv_prog_cc_c99" != "xno" && break
6276done
6277rm -f conftest.$ac_ext
6278CC=$ac_save_CC
6279
6280fi
6281# AC_CACHE_VAL
6282case "x$ac_cv_prog_cc_c99" in
6283  x)
6284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6285$as_echo "none needed" >&6; } ;;
6286  xno)
6287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6288$as_echo "unsupported" >&6; } ;;
6289  *)
6290    CC="$CC $ac_cv_prog_cc_c99"
6291    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6292$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6293esac
6294if test "x$ac_cv_prog_cc_c99" != xno; then :
6295
6296fi
6297
6298
6299# By default we simply use the C compiler to build assembly code.
6300
6301test "${CCAS+set}" = set || CCAS=$CC
6302test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6303
6304
6305
6306depcc="$CCAS"   am_compiler_list=
6307
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6309$as_echo_n "checking dependency style of $depcc... " >&6; }
6310if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6314  # We make a subdir and do the tests there.  Otherwise we can end up
6315  # making bogus files that we don't know about and never remove.  For
6316  # instance it was reported that on HP-UX the gcc test will end up
6317  # making a dummy file named 'D' -- because '-MD' means "put the output
6318  # in D".
6319  rm -rf conftest.dir
6320  mkdir conftest.dir
6321  # Copy depcomp to subdir because otherwise we won't find it if we're
6322  # using a relative directory.
6323  cp "$am_depcomp" conftest.dir
6324  cd conftest.dir
6325  # We will build objects and dependencies in a subdirectory because
6326  # it helps to detect inapplicable dependency modes.  For instance
6327  # both Tru64's cc and ICC support -MD to output dependencies as a
6328  # side effect of compilation, but ICC will put the dependencies in
6329  # the current directory while Tru64 will put them in the object
6330  # directory.
6331  mkdir sub
6332
6333  am_cv_CCAS_dependencies_compiler_type=none
6334  if test "$am_compiler_list" = ""; then
6335     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6336  fi
6337  am__universal=false
6338
6339
6340  for depmode in $am_compiler_list; do
6341    # Setup a source with many dependencies, because some compilers
6342    # like to wrap large dependency lists on column 80 (with \), and
6343    # we should not choose a depcomp mode which is confused by this.
6344    #
6345    # We need to recreate these files for each test, as the compiler may
6346    # overwrite some of them when testing with obscure command lines.
6347    # This happens at least with the AIX C compiler.
6348    : > sub/conftest.c
6349    for i in 1 2 3 4 5 6; do
6350      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6351      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6352      # Solaris 10 /bin/sh.
6353      echo '/* dummy */' > sub/conftst$i.h
6354    done
6355    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6356
6357    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6358    # mode.  It turns out that the SunPro C++ compiler does not properly
6359    # handle '-M -o', and we need to detect this.  Also, some Intel
6360    # versions had trouble with output in subdirs.
6361    am__obj=sub/conftest.${OBJEXT-o}
6362    am__minus_obj="-o $am__obj"
6363    case $depmode in
6364    gcc)
6365      # This depmode causes a compiler race in universal mode.
6366      test "$am__universal" = false || continue
6367      ;;
6368    nosideeffect)
6369      # After this tag, mechanisms are not by side-effect, so they'll
6370      # only be used when explicitly requested.
6371      if test "x$enable_dependency_tracking" = xyes; then
6372	continue
6373      else
6374	break
6375      fi
6376      ;;
6377    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6378      # This compiler won't grok '-c -o', but also, the minuso test has
6379      # not run yet.  These depmodes are late enough in the game, and
6380      # so weak that their functioning should not be impacted.
6381      am__obj=conftest.${OBJEXT-o}
6382      am__minus_obj=
6383      ;;
6384    none) break ;;
6385    esac
6386    if depmode=$depmode \
6387       source=sub/conftest.c object=$am__obj \
6388       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6389       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6390         >/dev/null 2>conftest.err &&
6391       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6392       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6393       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6394       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6395      # icc doesn't choke on unknown options, it will just issue warnings
6396      # or remarks (even with -Werror).  So we grep stderr for any message
6397      # that says an option was ignored or not supported.
6398      # When given -MP, icc 7.0 and 7.1 complain thusly:
6399      #   icc: Command line warning: ignoring option '-M'; no argument required
6400      # The diagnosis changed in icc 8.0:
6401      #   icc: Command line remark: option '-MP' not supported
6402      if (grep 'ignoring option' conftest.err ||
6403          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6404        am_cv_CCAS_dependencies_compiler_type=$depmode
6405        break
6406      fi
6407    fi
6408  done
6409
6410  cd ..
6411  rm -rf conftest.dir
6412else
6413  am_cv_CCAS_dependencies_compiler_type=none
6414fi
6415
6416fi
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6418$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6419CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6420
6421 if
6422  test "x$enable_dependency_tracking" != xno \
6423  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6424  am__fastdepCCAS_TRUE=
6425  am__fastdepCCAS_FALSE='#'
6426else
6427  am__fastdepCCAS_TRUE='#'
6428  am__fastdepCCAS_FALSE=
6429fi
6430
6431
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6433$as_echo_n "checking for ANSI C header files... " >&6; }
6434if ${ac_cv_header_stdc+:} false; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438/* end confdefs.h.  */
6439#include <stdlib.h>
6440#include <stdarg.h>
6441#include <string.h>
6442#include <float.h>
6443
6444int
6445main ()
6446{
6447
6448  ;
6449  return 0;
6450}
6451_ACEOF
6452if ac_fn_c_try_compile "$LINENO"; then :
6453  ac_cv_header_stdc=yes
6454else
6455  ac_cv_header_stdc=no
6456fi
6457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458
6459if test $ac_cv_header_stdc = yes; then
6460  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h.  */
6463#include <string.h>
6464
6465_ACEOF
6466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467  $EGREP "memchr" >/dev/null 2>&1; then :
6468
6469else
6470  ac_cv_header_stdc=no
6471fi
6472rm -f conftest*
6473
6474fi
6475
6476if test $ac_cv_header_stdc = yes; then
6477  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480#include <stdlib.h>
6481
6482_ACEOF
6483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484  $EGREP "free" >/dev/null 2>&1; then :
6485
6486else
6487  ac_cv_header_stdc=no
6488fi
6489rm -f conftest*
6490
6491fi
6492
6493if test $ac_cv_header_stdc = yes; then
6494  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6495  if test "$cross_compiling" = yes; then :
6496  :
6497else
6498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499/* end confdefs.h.  */
6500#include <ctype.h>
6501#include <stdlib.h>
6502#if ((' ' & 0x0FF) == 0x020)
6503# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6504# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6505#else
6506# define ISLOWER(c) \
6507		   (('a' <= (c) && (c) <= 'i') \
6508		     || ('j' <= (c) && (c) <= 'r') \
6509		     || ('s' <= (c) && (c) <= 'z'))
6510# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6511#endif
6512
6513#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6514int
6515main ()
6516{
6517  int i;
6518  for (i = 0; i < 256; i++)
6519    if (XOR (islower (i), ISLOWER (i))
6520	|| toupper (i) != TOUPPER (i))
6521      return 2;
6522  return 0;
6523}
6524_ACEOF
6525if ac_fn_c_try_run "$LINENO"; then :
6526
6527else
6528  ac_cv_header_stdc=no
6529fi
6530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6531  conftest.$ac_objext conftest.beam conftest.$ac_ext
6532fi
6533
6534fi
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6537$as_echo "$ac_cv_header_stdc" >&6; }
6538if test $ac_cv_header_stdc = yes; then
6539
6540$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6541
6542fi
6543
6544# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6545for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6546		  inttypes.h stdint.h unistd.h
6547do :
6548  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6549ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6550"
6551if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6552  cat >>confdefs.h <<_ACEOF
6553#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6554_ACEOF
6555
6556fi
6557
6558done
6559
6560
6561
6562  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6563if test "x$ac_cv_header_minix_config_h" = xyes; then :
6564  MINIX=yes
6565else
6566  MINIX=
6567fi
6568
6569
6570  if test "$MINIX" = yes; then
6571
6572$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6573
6574
6575$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6576
6577
6578$as_echo "#define _MINIX 1" >>confdefs.h
6579
6580  fi
6581
6582
6583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6584$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6585if ${ac_cv_safe_to_define___extensions__+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590
6591#         define __EXTENSIONS__ 1
6592          $ac_includes_default
6593int
6594main ()
6595{
6596
6597  ;
6598  return 0;
6599}
6600_ACEOF
6601if ac_fn_c_try_compile "$LINENO"; then :
6602  ac_cv_safe_to_define___extensions__=yes
6603else
6604  ac_cv_safe_to_define___extensions__=no
6605fi
6606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607fi
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6609$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6610  test $ac_cv_safe_to_define___extensions__ = yes &&
6611    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6612
6613  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6614
6615  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6616
6617  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6618
6619  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6620
6621
6622
6623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
6624$as_echo_n "checking for variable-length arrays... " >&6; }
6625if ${ac_cv_c_vararrays+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h.  */
6630
6631int
6632main ()
6633{
6634static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
6635  ;
6636  return 0;
6637}
6638_ACEOF
6639if ac_fn_c_try_compile "$LINENO"; then :
6640  ac_cv_c_vararrays=yes
6641else
6642  ac_cv_c_vararrays=no
6643fi
6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
6647$as_echo "$ac_cv_c_vararrays" >&6; }
6648  if test $ac_cv_c_vararrays = yes; then
6649
6650$as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h
6651
6652  fi
6653
6654
6655
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __native_client__ defined" >&5
6657$as_echo_n "checking for __native_client__ defined... " >&6; }
6658if ${ac_cv_defined___native_client__+:} false; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662/* end confdefs.h.  */
6663
6664int
6665main ()
6666{
6667
6668  #ifdef __native_client__
6669  int ok;
6670  #else
6671  choke me
6672  #endif
6673
6674  ;
6675  return 0;
6676}
6677_ACEOF
6678if ac_fn_c_try_compile "$LINENO"; then :
6679  ac_cv_defined___native_client__=yes
6680else
6681  ac_cv_defined___native_client__=no
6682fi
6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684fi
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___native_client__" >&5
6686$as_echo "$ac_cv_defined___native_client__" >&6; }
6687if test $ac_cv_defined___native_client__ != "no"; then :
6688  NATIVECLIENT="yes"
6689fi
6690
6691
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE defined" >&5
6693$as_echo_n "checking for _FORTIFY_SOURCE defined... " >&6; }
6694if ${ac_cv_defined__FORTIFY_SOURCE+:} false; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698/* end confdefs.h.  */
6699
6700int
6701main ()
6702{
6703
6704  #ifdef _FORTIFY_SOURCE
6705  int ok;
6706  #else
6707  choke me
6708  #endif
6709
6710  ;
6711  return 0;
6712}
6713_ACEOF
6714if ac_fn_c_try_compile "$LINENO"; then :
6715  ac_cv_defined__FORTIFY_SOURCE=yes
6716else
6717  ac_cv_defined__FORTIFY_SOURCE=no
6718fi
6719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720fi
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__FORTIFY_SOURCE" >&5
6722$as_echo "$ac_cv_defined__FORTIFY_SOURCE" >&6; }
6723if test $ac_cv_defined__FORTIFY_SOURCE != "no"; then :
6724
6725else
6726
6727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
6728$as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
6729if ${ax_cv_check_cflags___D_FORTIFY_SOURCE_2+:} false; then :
6730  $as_echo_n "(cached) " >&6
6731else
6732
6733  ax_check_save_flags=$CFLAGS
6734  CFLAGS="$CFLAGS  -D_FORTIFY_SOURCE=2"
6735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736/* end confdefs.h.  */
6737#include <time.h>
6738int
6739main ()
6740{
6741time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6742  ;
6743  return 0;
6744}
6745_ACEOF
6746if ac_fn_c_try_link "$LINENO"; then :
6747  ax_cv_check_cflags___D_FORTIFY_SOURCE_2=yes
6748else
6749  ax_cv_check_cflags___D_FORTIFY_SOURCE_2=no
6750fi
6751rm -f core conftest.err conftest.$ac_objext \
6752    conftest$ac_exeext conftest.$ac_ext
6753  CFLAGS=$ax_check_save_flags
6754fi
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&5
6756$as_echo "$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&6; }
6757if test "x$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" = xyes; then :
6758  CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
6759else
6760  :
6761fi
6762
6763
6764fi
6765
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
6767$as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
6768if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771
6772  ax_check_save_flags=$CFLAGS
6773  CFLAGS="$CFLAGS  -fvisibility=hidden"
6774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775/* end confdefs.h.  */
6776#include <time.h>
6777int
6778main ()
6779{
6780time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6781  ;
6782  return 0;
6783}
6784_ACEOF
6785if ac_fn_c_try_link "$LINENO"; then :
6786  ax_cv_check_cflags___fvisibility_hidden=yes
6787else
6788  ax_cv_check_cflags___fvisibility_hidden=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext \
6791    conftest$ac_exeext conftest.$ac_ext
6792  CFLAGS=$ax_check_save_flags
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
6795$as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
6796if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
6797  CFLAGS="$CFLAGS -fvisibility=hidden"
6798else
6799  :
6800fi
6801
6802
6803case $host_os in #(
6804  cygwin*|mingw*|msys|pw32*|cegcc*) :
6805      ;; #(
6806  *) :
6807
6808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
6809$as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
6810if ${ax_cv_check_cflags___fPIC+:} false; then :
6811  $as_echo_n "(cached) " >&6
6812else
6813
6814  ax_check_save_flags=$CFLAGS
6815  CFLAGS="$CFLAGS  -fPIC"
6816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h.  */
6818#include <time.h>
6819int
6820main ()
6821{
6822time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6823  ;
6824  return 0;
6825}
6826_ACEOF
6827if ac_fn_c_try_link "$LINENO"; then :
6828  ax_cv_check_cflags___fPIC=yes
6829else
6830  ax_cv_check_cflags___fPIC=no
6831fi
6832rm -f core conftest.err conftest.$ac_objext \
6833    conftest$ac_exeext conftest.$ac_ext
6834  CFLAGS=$ax_check_save_flags
6835fi
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
6837$as_echo "$ax_cv_check_cflags___fPIC" >&6; }
6838if test "x$ax_cv_check_cflags___fPIC" = xyes; then :
6839  CFLAGS="$CFLAGS -fPIC"
6840else
6841  :
6842fi
6843
6844 ;;
6845esac
6846
6847if test "$enable_pie" != "no"; then :
6848
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
6850$as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
6851if ${ax_cv_check_cflags___fPIE+:} false; then :
6852  $as_echo_n "(cached) " >&6
6853else
6854
6855  ax_check_save_flags=$CFLAGS
6856  CFLAGS="$CFLAGS  -fPIE"
6857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h.  */
6859#include <time.h>
6860int
6861main ()
6862{
6863time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6864  ;
6865  return 0;
6866}
6867_ACEOF
6868if ac_fn_c_try_link "$LINENO"; then :
6869  ax_cv_check_cflags___fPIE=yes
6870else
6871  ax_cv_check_cflags___fPIE=no
6872fi
6873rm -f core conftest.err conftest.$ac_objext \
6874    conftest$ac_exeext conftest.$ac_ext
6875  CFLAGS=$ax_check_save_flags
6876fi
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
6878$as_echo "$ax_cv_check_cflags___fPIE" >&6; }
6879if test "x$ax_cv_check_cflags___fPIE" = xyes; then :
6880
6881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
6882$as_echo_n "checking whether the linker accepts -pie... " >&6; }
6883if ${ax_cv_check_ldflags___pie+:} false; then :
6884  $as_echo_n "(cached) " >&6
6885else
6886
6887  ax_check_save_flags=$LDFLAGS
6888  LDFLAGS="$LDFLAGS  -pie"
6889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890/* end confdefs.h.  */
6891#include <time.h>
6892int
6893main ()
6894{
6895time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6896  ;
6897  return 0;
6898}
6899_ACEOF
6900if ac_fn_c_try_link "$LINENO"; then :
6901  ax_cv_check_ldflags___pie=yes
6902else
6903  ax_cv_check_ldflags___pie=no
6904fi
6905rm -f core conftest.err conftest.$ac_objext \
6906    conftest$ac_exeext conftest.$ac_ext
6907  LDFLAGS=$ax_check_save_flags
6908fi
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
6910$as_echo "$ax_cv_check_ldflags___pie" >&6; }
6911if test "x$ax_cv_check_ldflags___pie" = xyes; then :
6912
6913      CFLAGS="$CFLAGS -fPIE"
6914       LDFLAGS="$LDFLAGS -pie"
6915
6916else
6917  :
6918fi
6919
6920
6921else
6922  :
6923fi
6924
6925
6926fi
6927
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
6929$as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
6930if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
6931  $as_echo_n "(cached) " >&6
6932else
6933
6934  ax_check_save_flags=$CFLAGS
6935  CFLAGS="$CFLAGS  -fno-strict-aliasing"
6936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938#include <time.h>
6939int
6940main ()
6941{
6942time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947if ac_fn_c_try_link "$LINENO"; then :
6948  ax_cv_check_cflags___fno_strict_aliasing=yes
6949else
6950  ax_cv_check_cflags___fno_strict_aliasing=no
6951fi
6952rm -f core conftest.err conftest.$ac_objext \
6953    conftest$ac_exeext conftest.$ac_ext
6954  CFLAGS=$ax_check_save_flags
6955fi
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
6957$as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
6958if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
6959  CFLAGS="$CFLAGS -fno-strict-aliasing"
6960else
6961  :
6962fi
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
6965$as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
6966if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969
6970  ax_check_save_flags=$CFLAGS
6971  CFLAGS="$CFLAGS  -fno-strict-overflow"
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974#include <time.h>
6975int
6976main ()
6977{
6978time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6979  ;
6980  return 0;
6981}
6982_ACEOF
6983if ac_fn_c_try_link "$LINENO"; then :
6984  ax_cv_check_cflags___fno_strict_overflow=yes
6985else
6986  ax_cv_check_cflags___fno_strict_overflow=no
6987fi
6988rm -f core conftest.err conftest.$ac_objext \
6989    conftest$ac_exeext conftest.$ac_ext
6990  CFLAGS=$ax_check_save_flags
6991fi
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
6993$as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
6994if test "x$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
6995  CFLAGS="$CFLAGS -fno-strict-overflow"
6996else
6997
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
6999$as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
7000if ${ax_cv_check_cflags___fwrapv+:} false; then :
7001  $as_echo_n "(cached) " >&6
7002else
7003
7004  ax_check_save_flags=$CFLAGS
7005  CFLAGS="$CFLAGS  -fwrapv"
7006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008#include <time.h>
7009int
7010main ()
7011{
7012time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7013  ;
7014  return 0;
7015}
7016_ACEOF
7017if ac_fn_c_try_link "$LINENO"; then :
7018  ax_cv_check_cflags___fwrapv=yes
7019else
7020  ax_cv_check_cflags___fwrapv=no
7021fi
7022rm -f core conftest.err conftest.$ac_objext \
7023    conftest$ac_exeext conftest.$ac_ext
7024  CFLAGS=$ax_check_save_flags
7025fi
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
7027$as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
7028if test "x$ax_cv_check_cflags___fwrapv" = xyes; then :
7029  CFLAGS="$CFLAGS -fwrapv"
7030else
7031  :
7032fi
7033
7034
7035fi
7036
7037
7038if test "$GCC" = "yes" ; then :
7039
7040  case $host_cpu in #(
7041  i?86|amd64|x86_64) :
7042
7043      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044/* end confdefs.h.  */
7045
7046#if !defined(__clang__) && defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) < 0x403
7047# error old gcc
7048#endif
7049int main(void) { return 0; }
7050
7051_ACEOF
7052if ac_fn_c_try_compile "$LINENO"; then :
7053
7054else
7055
7056          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flax-vector-conversions" >&5
7057$as_echo_n "checking whether C compiler accepts -flax-vector-conversions... " >&6; }
7058if ${ax_cv_check_cflags___flax_vector_conversions+:} false; then :
7059  $as_echo_n "(cached) " >&6
7060else
7061
7062  ax_check_save_flags=$CFLAGS
7063  CFLAGS="$CFLAGS  -flax-vector-conversions"
7064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065/* end confdefs.h.  */
7066#include <time.h>
7067int
7068main ()
7069{
7070time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7071  ;
7072  return 0;
7073}
7074_ACEOF
7075if ac_fn_c_try_link "$LINENO"; then :
7076  ax_cv_check_cflags___flax_vector_conversions=yes
7077else
7078  ax_cv_check_cflags___flax_vector_conversions=no
7079fi
7080rm -f core conftest.err conftest.$ac_objext \
7081    conftest$ac_exeext conftest.$ac_ext
7082  CFLAGS=$ax_check_save_flags
7083fi
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flax_vector_conversions" >&5
7085$as_echo "$ax_cv_check_cflags___flax_vector_conversions" >&6; }
7086if test "x$ax_cv_check_cflags___flax_vector_conversions" = xyes; then :
7087  CFLAGS="$CFLAGS -flax-vector-conversions"
7088else
7089  :
7090fi
7091
7092
7093fi
7094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095
7096     ;; #(
7097  *) :
7098     ;;
7099esac
7100
7101fi
7102
7103LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
7104LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
7105# Check whether --enable-soname-versions was given.
7106if test "${enable_soname_versions+set}" = set; then :
7107  enableval=$enable_soname_versions;
7108        if test "x$enableval" = "xno"; then :
7109
7110          LIBTOOL_EXTRA_FLAGS="$LIBTOOL_OLD_FLAGS -avoid-version"
7111
7112fi
7113
7114
7115fi
7116
7117
7118case $host_os in #(
7119  cygwin*|mingw*|msys|pw32*|cegcc*) :
7120
7121    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
7122$as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
7123if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
7124  $as_echo_n "(cached) " >&6
7125else
7126
7127  ax_check_save_flags=$LDFLAGS
7128  LDFLAGS="$LDFLAGS  -Wl,--dynamicbase"
7129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h.  */
7131#include <time.h>
7132int
7133main ()
7134{
7135time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7136  ;
7137  return 0;
7138}
7139_ACEOF
7140if ac_fn_c_try_link "$LINENO"; then :
7141  ax_cv_check_ldflags___Wl___dynamicbase=yes
7142else
7143  ax_cv_check_ldflags___Wl___dynamicbase=no
7144fi
7145rm -f core conftest.err conftest.$ac_objext \
7146    conftest$ac_exeext conftest.$ac_ext
7147  LDFLAGS=$ax_check_save_flags
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
7150$as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
7151if test "x$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
7152  LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
7153else
7154  :
7155fi
7156
7157    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--high-entropy-va" >&5
7158$as_echo_n "checking whether the linker accepts -Wl,--high-entropy-va... " >&6; }
7159if ${ax_cv_check_ldflags___Wl___high_entropy_va+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162
7163  ax_check_save_flags=$LDFLAGS
7164  LDFLAGS="$LDFLAGS  -Wl,--high-entropy-va"
7165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h.  */
7167#include <time.h>
7168int
7169main ()
7170{
7171time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7172  ;
7173  return 0;
7174}
7175_ACEOF
7176if ac_fn_c_try_link "$LINENO"; then :
7177  ax_cv_check_ldflags___Wl___high_entropy_va=yes
7178else
7179  ax_cv_check_ldflags___Wl___high_entropy_va=no
7180fi
7181rm -f core conftest.err conftest.$ac_objext \
7182    conftest$ac_exeext conftest.$ac_ext
7183  LDFLAGS=$ax_check_save_flags
7184fi
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___high_entropy_va" >&5
7186$as_echo "$ax_cv_check_ldflags___Wl___high_entropy_va" >&6; }
7187if test "x$ax_cv_check_ldflags___Wl___high_entropy_va" = xyes; then :
7188  LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
7189else
7190  :
7191fi
7192
7193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
7194$as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
7195if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198
7199  ax_check_save_flags=$LDFLAGS
7200  LDFLAGS="$LDFLAGS  -Wl,--nxcompat"
7201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h.  */
7203#include <time.h>
7204int
7205main ()
7206{
7207time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7208  ;
7209  return 0;
7210}
7211_ACEOF
7212if ac_fn_c_try_link "$LINENO"; then :
7213  ax_cv_check_ldflags___Wl___nxcompat=yes
7214else
7215  ax_cv_check_ldflags___Wl___nxcompat=no
7216fi
7217rm -f core conftest.err conftest.$ac_objext \
7218    conftest$ac_exeext conftest.$ac_ext
7219  LDFLAGS=$ax_check_save_flags
7220fi
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
7222$as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
7223if test "x$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
7224  LDFLAGS="$LDFLAGS -Wl,--nxcompat"
7225else
7226  :
7227fi
7228
7229   ;; #(
7230  *) :
7231     ;;
7232esac
7233
7234case $host_os in #(
7235  cygwin*|mingw*|msys|pw32*|cegcc*) :
7236
7237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-asynchronous-unwind-tables" >&5
7238$as_echo_n "checking whether C compiler accepts -fno-asynchronous-unwind-tables... " >&6; }
7239if ${ax_cv_check_cflags___fno_asynchronous_unwind_tables+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242
7243  ax_check_save_flags=$CFLAGS
7244  CFLAGS="$CFLAGS  -fno-asynchronous-unwind-tables"
7245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247#include <time.h>
7248int
7249main ()
7250{
7251time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7252  ;
7253  return 0;
7254}
7255_ACEOF
7256if ac_fn_c_try_link "$LINENO"; then :
7257  ax_cv_check_cflags___fno_asynchronous_unwind_tables=yes
7258else
7259  ax_cv_check_cflags___fno_asynchronous_unwind_tables=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext \
7262    conftest$ac_exeext conftest.$ac_ext
7263  CFLAGS=$ax_check_save_flags
7264fi
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&5
7266$as_echo "$ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&6; }
7267if test "x$ax_cv_check_cflags___fno_asynchronous_unwind_tables" = xyes; then :
7268
7269      CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"
7270
7271else
7272  :
7273fi
7274
7275 ;; #(
7276  *) :
7277     ;;
7278esac
7279
7280if test "x$enable_ssp" != "xno"; then :
7281
7282
7283case $host_os in #(
7284  cygwin*|mingw*|msys|pw32*|cegcc*) :
7285      ;; #(
7286  *) :
7287
7288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
7289$as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
7290if ${ax_cv_check_cflags___fstack_protector+:} false; then :
7291  $as_echo_n "(cached) " >&6
7292else
7293
7294  ax_check_save_flags=$CFLAGS
7295  CFLAGS="$CFLAGS  -fstack-protector"
7296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h.  */
7298#include <time.h>
7299int
7300main ()
7301{
7302time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7303  ;
7304  return 0;
7305}
7306_ACEOF
7307if ac_fn_c_try_link "$LINENO"; then :
7308  ax_cv_check_cflags___fstack_protector=yes
7309else
7310  ax_cv_check_cflags___fstack_protector=no
7311fi
7312rm -f core conftest.err conftest.$ac_objext \
7313    conftest$ac_exeext conftest.$ac_ext
7314  CFLAGS=$ax_check_save_flags
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
7317$as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
7318if test "x$ax_cv_check_cflags___fstack_protector" = xyes; then :
7319
7320      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
7321$as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
7322if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
7323  $as_echo_n "(cached) " >&6
7324else
7325
7326  ax_check_save_flags=$LDFLAGS
7327  LDFLAGS="$LDFLAGS  -fstack-protector"
7328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h.  */
7330#include <time.h>
7331int
7332main ()
7333{
7334time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7335  ;
7336  return 0;
7337}
7338_ACEOF
7339if ac_fn_c_try_link "$LINENO"; then :
7340  ax_cv_check_ldflags___fstack_protector=yes
7341else
7342  ax_cv_check_ldflags___fstack_protector=no
7343fi
7344rm -f core conftest.err conftest.$ac_objext \
7345    conftest$ac_exeext conftest.$ac_ext
7346  LDFLAGS=$ax_check_save_flags
7347fi
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
7349$as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
7350if test "x$ax_cv_check_ldflags___fstack_protector" = xyes; then :
7351  CFLAGS="$CFLAGS -fstack-protector"
7352
7353else
7354  :
7355fi
7356
7357
7358else
7359  :
7360fi
7361
7362   ;; #(
7363  *) :
7364     ;;
7365esac
7366
7367fi
7368
7369
7370
7371as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -Wall" | $as_tr_sh`
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wall" >&5
7373$as_echo_n "checking whether C compiler accepts $CFLAGS -Wall... " >&6; }
7374if eval \${$as_CACHEVAR+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377
7378  ax_check_save_flags=$CFLAGS
7379  CFLAGS="$CFLAGS  $CFLAGS -Wall"
7380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381/* end confdefs.h.  */
7382#include <time.h>
7383int
7384main ()
7385{
7386time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7387  ;
7388  return 0;
7389}
7390_ACEOF
7391if ac_fn_c_try_link "$LINENO"; then :
7392  eval "$as_CACHEVAR=yes"
7393else
7394  eval "$as_CACHEVAR=no"
7395fi
7396rm -f core conftest.err conftest.$ac_objext \
7397    conftest$ac_exeext conftest.$ac_ext
7398  CFLAGS=$ax_check_save_flags
7399fi
7400eval ac_res=\$$as_CACHEVAR
7401	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7402$as_echo "$ac_res" >&6; }
7403if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7404  CWFLAGS="$CFLAGS -Wall"
7405else
7406  :
7407fi
7408
7409as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -Wextra" | $as_tr_sh`
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wextra" >&5
7411$as_echo_n "checking whether C compiler accepts $CFLAGS -Wextra... " >&6; }
7412if eval \${$as_CACHEVAR+:} false; then :
7413  $as_echo_n "(cached) " >&6
7414else
7415
7416  ax_check_save_flags=$CFLAGS
7417  CFLAGS="$CFLAGS  $CFLAGS -Wextra"
7418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419/* end confdefs.h.  */
7420#include <time.h>
7421int
7422main ()
7423{
7424time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7425  ;
7426  return 0;
7427}
7428_ACEOF
7429if ac_fn_c_try_link "$LINENO"; then :
7430  eval "$as_CACHEVAR=yes"
7431else
7432  eval "$as_CACHEVAR=no"
7433fi
7434rm -f core conftest.err conftest.$ac_objext \
7435    conftest$ac_exeext conftest.$ac_ext
7436  CFLAGS=$ax_check_save_flags
7437fi
7438eval ac_res=\$$as_CACHEVAR
7439	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7440$as_echo "$ac_res" >&6; }
7441if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7442  CWFLAGS="$CFLAGS -Wextra"
7443else
7444  :
7445fi
7446
7447
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
7449$as_echo_n "checking for clang... " >&6; }
7450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h.  */
7452
7453int
7454main ()
7455{
7456
7457#ifndef __clang__
7458#error Not clang
7459#endif
7460
7461  ;
7462  return 0;
7463}
7464_ACEOF
7465if ac_fn_c_try_compile "$LINENO"; then :
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7467$as_echo "yes" >&6; }
7468   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
7470$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
7471if eval \${$as_CACHEVAR+:} false; then :
7472  $as_echo_n "(cached) " >&6
7473else
7474
7475  ax_check_save_flags=$CFLAGS
7476  CFLAGS="$CFLAGS  $CWFLAGS -Wno-unknown-warning-option"
7477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478/* end confdefs.h.  */
7479#include <time.h>
7480int
7481main ()
7482{
7483time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7484  ;
7485  return 0;
7486}
7487_ACEOF
7488if ac_fn_c_try_link "$LINENO"; then :
7489  eval "$as_CACHEVAR=yes"
7490else
7491  eval "$as_CACHEVAR=no"
7492fi
7493rm -f core conftest.err conftest.$ac_objext \
7494    conftest$ac_exeext conftest.$ac_ext
7495  CFLAGS=$ax_check_save_flags
7496fi
7497eval ac_res=\$$as_CACHEVAR
7498	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7499$as_echo "$ac_res" >&6; }
7500if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7501  CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
7502else
7503  :
7504fi
7505
7506
7507else
7508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509$as_echo "no" >&6; }
7510
7511fi
7512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513
7514as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
7516$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
7517if eval \${$as_CACHEVAR+:} false; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520
7521  ax_check_save_flags=$CFLAGS
7522  CFLAGS="$CFLAGS  $CWFLAGS -Wbad-function-cast"
7523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524/* end confdefs.h.  */
7525#include <time.h>
7526int
7527main ()
7528{
7529time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7530  ;
7531  return 0;
7532}
7533_ACEOF
7534if ac_fn_c_try_link "$LINENO"; then :
7535  eval "$as_CACHEVAR=yes"
7536else
7537  eval "$as_CACHEVAR=no"
7538fi
7539rm -f core conftest.err conftest.$ac_objext \
7540    conftest$ac_exeext conftest.$ac_ext
7541  CFLAGS=$ax_check_save_flags
7542fi
7543eval ac_res=\$$as_CACHEVAR
7544	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7545$as_echo "$ac_res" >&6; }
7546if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7547  CWFLAGS="$CWFLAGS -Wbad-function-cast"
7548else
7549  :
7550fi
7551
7552as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
7554$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
7555if eval \${$as_CACHEVAR+:} false; then :
7556  $as_echo_n "(cached) " >&6
7557else
7558
7559  ax_check_save_flags=$CFLAGS
7560  CFLAGS="$CFLAGS  $CWFLAGS -Wcast-qual"
7561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562/* end confdefs.h.  */
7563#include <time.h>
7564int
7565main ()
7566{
7567time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7568  ;
7569  return 0;
7570}
7571_ACEOF
7572if ac_fn_c_try_link "$LINENO"; then :
7573  eval "$as_CACHEVAR=yes"
7574else
7575  eval "$as_CACHEVAR=no"
7576fi
7577rm -f core conftest.err conftest.$ac_objext \
7578    conftest$ac_exeext conftest.$ac_ext
7579  CFLAGS=$ax_check_save_flags
7580fi
7581eval ac_res=\$$as_CACHEVAR
7582	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7583$as_echo "$ac_res" >&6; }
7584if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7585  CWFLAGS="$CWFLAGS -Wcast-qual"
7586else
7587  :
7588fi
7589
7590as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wdiv-by-zero" | $as_tr_sh`
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero" >&5
7592$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero... " >&6; }
7593if eval \${$as_CACHEVAR+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596
7597  ax_check_save_flags=$CFLAGS
7598  CFLAGS="$CFLAGS  $CWFLAGS -Wdiv-by-zero"
7599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h.  */
7601#include <time.h>
7602int
7603main ()
7604{
7605time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7606  ;
7607  return 0;
7608}
7609_ACEOF
7610if ac_fn_c_try_link "$LINENO"; then :
7611  eval "$as_CACHEVAR=yes"
7612else
7613  eval "$as_CACHEVAR=no"
7614fi
7615rm -f core conftest.err conftest.$ac_objext \
7616    conftest$ac_exeext conftest.$ac_ext
7617  CFLAGS=$ax_check_save_flags
7618fi
7619eval ac_res=\$$as_CACHEVAR
7620	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7621$as_echo "$ac_res" >&6; }
7622if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7623  CWFLAGS="$CWFLAGS -Wdiv-by-zero"
7624else
7625  :
7626fi
7627
7628as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-branches" | $as_tr_sh`
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-branches" >&5
7630$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-branches... " >&6; }
7631if eval \${$as_CACHEVAR+:} false; then :
7632  $as_echo_n "(cached) " >&6
7633else
7634
7635  ax_check_save_flags=$CFLAGS
7636  CFLAGS="$CFLAGS  $CWFLAGS -Wduplicated-branches"
7637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h.  */
7639#include <time.h>
7640int
7641main ()
7642{
7643time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648if ac_fn_c_try_link "$LINENO"; then :
7649  eval "$as_CACHEVAR=yes"
7650else
7651  eval "$as_CACHEVAR=no"
7652fi
7653rm -f core conftest.err conftest.$ac_objext \
7654    conftest$ac_exeext conftest.$ac_ext
7655  CFLAGS=$ax_check_save_flags
7656fi
7657eval ac_res=\$$as_CACHEVAR
7658	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7659$as_echo "$ac_res" >&6; }
7660if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7661  CWFLAGS="$CWFLAGS -Wduplicated-branches"
7662else
7663  :
7664fi
7665
7666as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-cond" | $as_tr_sh`
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-cond" >&5
7668$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-cond... " >&6; }
7669if eval \${$as_CACHEVAR+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672
7673  ax_check_save_flags=$CFLAGS
7674  CFLAGS="$CFLAGS  $CWFLAGS -Wduplicated-cond"
7675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h.  */
7677#include <time.h>
7678int
7679main ()
7680{
7681time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7682  ;
7683  return 0;
7684}
7685_ACEOF
7686if ac_fn_c_try_link "$LINENO"; then :
7687  eval "$as_CACHEVAR=yes"
7688else
7689  eval "$as_CACHEVAR=no"
7690fi
7691rm -f core conftest.err conftest.$ac_objext \
7692    conftest$ac_exeext conftest.$ac_ext
7693  CFLAGS=$ax_check_save_flags
7694fi
7695eval ac_res=\$$as_CACHEVAR
7696	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7697$as_echo "$ac_res" >&6; }
7698if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7699  CWFLAGS="$CWFLAGS -Wduplicated-cond"
7700else
7701  :
7702fi
7703
7704as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
7706$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
7707if eval \${$as_CACHEVAR+:} false; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710
7711  ax_check_save_flags=$CFLAGS
7712  CFLAGS="$CFLAGS  $CWFLAGS -Wfloat-equal"
7713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715#include <time.h>
7716int
7717main ()
7718{
7719time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7720  ;
7721  return 0;
7722}
7723_ACEOF
7724if ac_fn_c_try_link "$LINENO"; then :
7725  eval "$as_CACHEVAR=yes"
7726else
7727  eval "$as_CACHEVAR=no"
7728fi
7729rm -f core conftest.err conftest.$ac_objext \
7730    conftest$ac_exeext conftest.$ac_ext
7731  CFLAGS=$ax_check_save_flags
7732fi
7733eval ac_res=\$$as_CACHEVAR
7734	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7735$as_echo "$ac_res" >&6; }
7736if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7737  CWFLAGS="$CWFLAGS -Wfloat-equal"
7738else
7739  :
7740fi
7741
7742as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
7744$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
7745if eval \${$as_CACHEVAR+:} false; then :
7746  $as_echo_n "(cached) " >&6
7747else
7748
7749  ax_check_save_flags=$CFLAGS
7750  CFLAGS="$CFLAGS  $CWFLAGS -Wformat=2"
7751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h.  */
7753#include <time.h>
7754int
7755main ()
7756{
7757time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7758  ;
7759  return 0;
7760}
7761_ACEOF
7762if ac_fn_c_try_link "$LINENO"; then :
7763  eval "$as_CACHEVAR=yes"
7764else
7765  eval "$as_CACHEVAR=no"
7766fi
7767rm -f core conftest.err conftest.$ac_objext \
7768    conftest$ac_exeext conftest.$ac_ext
7769  CFLAGS=$ax_check_save_flags
7770fi
7771eval ac_res=\$$as_CACHEVAR
7772	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7773$as_echo "$ac_res" >&6; }
7774if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7775  CWFLAGS="$CWFLAGS -Wformat=2"
7776else
7777  :
7778fi
7779
7780as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wlogical-op" | $as_tr_sh`
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wlogical-op" >&5
7782$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wlogical-op... " >&6; }
7783if eval \${$as_CACHEVAR+:} false; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786
7787  ax_check_save_flags=$CFLAGS
7788  CFLAGS="$CFLAGS  $CWFLAGS -Wlogical-op"
7789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h.  */
7791#include <time.h>
7792int
7793main ()
7794{
7795time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7796  ;
7797  return 0;
7798}
7799_ACEOF
7800if ac_fn_c_try_link "$LINENO"; then :
7801  eval "$as_CACHEVAR=yes"
7802else
7803  eval "$as_CACHEVAR=no"
7804fi
7805rm -f core conftest.err conftest.$ac_objext \
7806    conftest$ac_exeext conftest.$ac_ext
7807  CFLAGS=$ax_check_save_flags
7808fi
7809eval ac_res=\$$as_CACHEVAR
7810	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7811$as_echo "$ac_res" >&6; }
7812if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7813  CWFLAGS="$CWFLAGS -Wlogical-op"
7814else
7815  :
7816fi
7817
7818as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmaybe-uninitialized" | $as_tr_sh`
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized" >&5
7820$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized... " >&6; }
7821if eval \${$as_CACHEVAR+:} false; then :
7822  $as_echo_n "(cached) " >&6
7823else
7824
7825  ax_check_save_flags=$CFLAGS
7826  CFLAGS="$CFLAGS  $CWFLAGS -Wmaybe-uninitialized"
7827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829#include <time.h>
7830int
7831main ()
7832{
7833time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7834  ;
7835  return 0;
7836}
7837_ACEOF
7838if ac_fn_c_try_link "$LINENO"; then :
7839  eval "$as_CACHEVAR=yes"
7840else
7841  eval "$as_CACHEVAR=no"
7842fi
7843rm -f core conftest.err conftest.$ac_objext \
7844    conftest$ac_exeext conftest.$ac_ext
7845  CFLAGS=$ax_check_save_flags
7846fi
7847eval ac_res=\$$as_CACHEVAR
7848	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7849$as_echo "$ac_res" >&6; }
7850if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7851  CWFLAGS="$CWFLAGS -Wmaybe-uninitialized"
7852else
7853  :
7854fi
7855
7856as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmisleading-indentation" | $as_tr_sh`
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation" >&5
7858$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation... " >&6; }
7859if eval \${$as_CACHEVAR+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862
7863  ax_check_save_flags=$CFLAGS
7864  CFLAGS="$CFLAGS  $CWFLAGS -Wmisleading-indentation"
7865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866/* end confdefs.h.  */
7867#include <time.h>
7868int
7869main ()
7870{
7871time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7872  ;
7873  return 0;
7874}
7875_ACEOF
7876if ac_fn_c_try_link "$LINENO"; then :
7877  eval "$as_CACHEVAR=yes"
7878else
7879  eval "$as_CACHEVAR=no"
7880fi
7881rm -f core conftest.err conftest.$ac_objext \
7882    conftest$ac_exeext conftest.$ac_ext
7883  CFLAGS=$ax_check_save_flags
7884fi
7885eval ac_res=\$$as_CACHEVAR
7886	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7887$as_echo "$ac_res" >&6; }
7888if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7889  CWFLAGS="$CWFLAGS -Wmisleading-indentation"
7890else
7891  :
7892fi
7893
7894as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
7896$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
7897if eval \${$as_CACHEVAR+:} false; then :
7898  $as_echo_n "(cached) " >&6
7899else
7900
7901  ax_check_save_flags=$CFLAGS
7902  CFLAGS="$CFLAGS  $CWFLAGS -Wmissing-declarations"
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905#include <time.h>
7906int
7907main ()
7908{
7909time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7910  ;
7911  return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_link "$LINENO"; then :
7915  eval "$as_CACHEVAR=yes"
7916else
7917  eval "$as_CACHEVAR=no"
7918fi
7919rm -f core conftest.err conftest.$ac_objext \
7920    conftest$ac_exeext conftest.$ac_ext
7921  CFLAGS=$ax_check_save_flags
7922fi
7923eval ac_res=\$$as_CACHEVAR
7924	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7925$as_echo "$ac_res" >&6; }
7926if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7927  CWFLAGS="$CWFLAGS -Wmissing-declarations"
7928else
7929  :
7930fi
7931
7932as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
7934$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
7935if eval \${$as_CACHEVAR+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938
7939  ax_check_save_flags=$CFLAGS
7940  CFLAGS="$CFLAGS  $CWFLAGS -Wmissing-prototypes"
7941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943#include <time.h>
7944int
7945main ()
7946{
7947time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7948  ;
7949  return 0;
7950}
7951_ACEOF
7952if ac_fn_c_try_link "$LINENO"; then :
7953  eval "$as_CACHEVAR=yes"
7954else
7955  eval "$as_CACHEVAR=no"
7956fi
7957rm -f core conftest.err conftest.$ac_objext \
7958    conftest$ac_exeext conftest.$ac_ext
7959  CFLAGS=$ax_check_save_flags
7960fi
7961eval ac_res=\$$as_CACHEVAR
7962	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7963$as_echo "$ac_res" >&6; }
7964if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7965  CWFLAGS="$CWFLAGS -Wmissing-prototypes"
7966else
7967  :
7968fi
7969
7970as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnested-externs" | $as_tr_sh`
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnested-externs" >&5
7972$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnested-externs... " >&6; }
7973if eval \${$as_CACHEVAR+:} false; then :
7974  $as_echo_n "(cached) " >&6
7975else
7976
7977  ax_check_save_flags=$CFLAGS
7978  CFLAGS="$CFLAGS  $CWFLAGS -Wnested-externs"
7979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h.  */
7981#include <time.h>
7982int
7983main ()
7984{
7985time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7986  ;
7987  return 0;
7988}
7989_ACEOF
7990if ac_fn_c_try_link "$LINENO"; then :
7991  eval "$as_CACHEVAR=yes"
7992else
7993  eval "$as_CACHEVAR=no"
7994fi
7995rm -f core conftest.err conftest.$ac_objext \
7996    conftest$ac_exeext conftest.$ac_ext
7997  CFLAGS=$ax_check_save_flags
7998fi
7999eval ac_res=\$$as_CACHEVAR
8000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8001$as_echo "$ac_res" >&6; }
8002if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8003  CWFLAGS="$CWFLAGS -Wnested-externs"
8004else
8005  :
8006fi
8007
8008as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-type-limits" | $as_tr_sh`
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-type-limits" >&5
8010$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-type-limits... " >&6; }
8011if eval \${$as_CACHEVAR+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014
8015  ax_check_save_flags=$CFLAGS
8016  CFLAGS="$CFLAGS  $CWFLAGS -Wno-type-limits"
8017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019#include <time.h>
8020int
8021main ()
8022{
8023time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8024  ;
8025  return 0;
8026}
8027_ACEOF
8028if ac_fn_c_try_link "$LINENO"; then :
8029  eval "$as_CACHEVAR=yes"
8030else
8031  eval "$as_CACHEVAR=no"
8032fi
8033rm -f core conftest.err conftest.$ac_objext \
8034    conftest$ac_exeext conftest.$ac_ext
8035  CFLAGS=$ax_check_save_flags
8036fi
8037eval ac_res=\$$as_CACHEVAR
8038	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8039$as_echo "$ac_res" >&6; }
8040if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8041  CWFLAGS="$CWFLAGS -Wno-type-limits"
8042else
8043  :
8044fi
8045
8046as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-pragmas" | $as_tr_sh`
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas" >&5
8048$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas... " >&6; }
8049if eval \${$as_CACHEVAR+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052
8053  ax_check_save_flags=$CFLAGS
8054  CFLAGS="$CFLAGS  $CWFLAGS -Wno-unknown-pragmas"
8055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057#include <time.h>
8058int
8059main ()
8060{
8061time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8062  ;
8063  return 0;
8064}
8065_ACEOF
8066if ac_fn_c_try_link "$LINENO"; then :
8067  eval "$as_CACHEVAR=yes"
8068else
8069  eval "$as_CACHEVAR=no"
8070fi
8071rm -f core conftest.err conftest.$ac_objext \
8072    conftest$ac_exeext conftest.$ac_ext
8073  CFLAGS=$ax_check_save_flags
8074fi
8075eval ac_res=\$$as_CACHEVAR
8076	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8077$as_echo "$ac_res" >&6; }
8078if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8079  CWFLAGS="$CWFLAGS -Wno-unknown-pragmas"
8080else
8081  :
8082fi
8083
8084as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
8086$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
8087if eval \${$as_CACHEVAR+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090
8091  ax_check_save_flags=$CFLAGS
8092  CFLAGS="$CFLAGS  $CWFLAGS -Wnormalized=id"
8093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h.  */
8095#include <time.h>
8096int
8097main ()
8098{
8099time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8100  ;
8101  return 0;
8102}
8103_ACEOF
8104if ac_fn_c_try_link "$LINENO"; then :
8105  eval "$as_CACHEVAR=yes"
8106else
8107  eval "$as_CACHEVAR=no"
8108fi
8109rm -f core conftest.err conftest.$ac_objext \
8110    conftest$ac_exeext conftest.$ac_ext
8111  CFLAGS=$ax_check_save_flags
8112fi
8113eval ac_res=\$$as_CACHEVAR
8114	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8115$as_echo "$ac_res" >&6; }
8116if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8117  CWFLAGS="$CWFLAGS -Wnormalized=id"
8118else
8119  :
8120fi
8121
8122as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnull-dereference" | $as_tr_sh`
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnull-dereference" >&5
8124$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnull-dereference... " >&6; }
8125if eval \${$as_CACHEVAR+:} false; then :
8126  $as_echo_n "(cached) " >&6
8127else
8128
8129  ax_check_save_flags=$CFLAGS
8130  CFLAGS="$CFLAGS  $CWFLAGS -Wnull-dereference"
8131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132/* end confdefs.h.  */
8133#include <time.h>
8134int
8135main ()
8136{
8137time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8138  ;
8139  return 0;
8140}
8141_ACEOF
8142if ac_fn_c_try_link "$LINENO"; then :
8143  eval "$as_CACHEVAR=yes"
8144else
8145  eval "$as_CACHEVAR=no"
8146fi
8147rm -f core conftest.err conftest.$ac_objext \
8148    conftest$ac_exeext conftest.$ac_ext
8149  CFLAGS=$ax_check_save_flags
8150fi
8151eval ac_res=\$$as_CACHEVAR
8152	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8153$as_echo "$ac_res" >&6; }
8154if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8155  CWFLAGS="$CWFLAGS -Wnull-dereference"
8156else
8157  :
8158fi
8159
8160as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wold-style-declaration" | $as_tr_sh`
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wold-style-declaration" >&5
8162$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wold-style-declaration... " >&6; }
8163if eval \${$as_CACHEVAR+:} false; then :
8164  $as_echo_n "(cached) " >&6
8165else
8166
8167  ax_check_save_flags=$CFLAGS
8168  CFLAGS="$CFLAGS  $CWFLAGS -Wold-style-declaration"
8169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170/* end confdefs.h.  */
8171#include <time.h>
8172int
8173main ()
8174{
8175time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8176  ;
8177  return 0;
8178}
8179_ACEOF
8180if ac_fn_c_try_link "$LINENO"; then :
8181  eval "$as_CACHEVAR=yes"
8182else
8183  eval "$as_CACHEVAR=no"
8184fi
8185rm -f core conftest.err conftest.$ac_objext \
8186    conftest$ac_exeext conftest.$ac_ext
8187  CFLAGS=$ax_check_save_flags
8188fi
8189eval ac_res=\$$as_CACHEVAR
8190	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8191$as_echo "$ac_res" >&6; }
8192if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8193  CWFLAGS="$CWFLAGS -Wold-style-declaration"
8194else
8195  :
8196fi
8197
8198as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
8200$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
8201if eval \${$as_CACHEVAR+:} false; then :
8202  $as_echo_n "(cached) " >&6
8203else
8204
8205  ax_check_save_flags=$CFLAGS
8206  CFLAGS="$CFLAGS  $CWFLAGS -Wpointer-arith"
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209#include <time.h>
8210int
8211main ()
8212{
8213time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8214  ;
8215  return 0;
8216}
8217_ACEOF
8218if ac_fn_c_try_link "$LINENO"; then :
8219  eval "$as_CACHEVAR=yes"
8220else
8221  eval "$as_CACHEVAR=no"
8222fi
8223rm -f core conftest.err conftest.$ac_objext \
8224    conftest$ac_exeext conftest.$ac_ext
8225  CFLAGS=$ax_check_save_flags
8226fi
8227eval ac_res=\$$as_CACHEVAR
8228	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8229$as_echo "$ac_res" >&6; }
8230if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8231  CWFLAGS="$CWFLAGS -Wpointer-arith"
8232else
8233  :
8234fi
8235
8236as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
8238$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
8239if eval \${$as_CACHEVAR+:} false; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242
8243  ax_check_save_flags=$CFLAGS
8244  CFLAGS="$CFLAGS  $CWFLAGS -Wredundant-decls"
8245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247#include <time.h>
8248int
8249main ()
8250{
8251time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8252  ;
8253  return 0;
8254}
8255_ACEOF
8256if ac_fn_c_try_link "$LINENO"; then :
8257  eval "$as_CACHEVAR=yes"
8258else
8259  eval "$as_CACHEVAR=no"
8260fi
8261rm -f core conftest.err conftest.$ac_objext \
8262    conftest$ac_exeext conftest.$ac_ext
8263  CFLAGS=$ax_check_save_flags
8264fi
8265eval ac_res=\$$as_CACHEVAR
8266	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8267$as_echo "$ac_res" >&6; }
8268if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8269  CWFLAGS="$CWFLAGS -Wredundant-decls"
8270else
8271  :
8272fi
8273
8274as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wrestrict" | $as_tr_sh`
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wrestrict" >&5
8276$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wrestrict... " >&6; }
8277if eval \${$as_CACHEVAR+:} false; then :
8278  $as_echo_n "(cached) " >&6
8279else
8280
8281  ax_check_save_flags=$CFLAGS
8282  CFLAGS="$CFLAGS  $CWFLAGS -Wrestrict"
8283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284/* end confdefs.h.  */
8285#include <time.h>
8286int
8287main ()
8288{
8289time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8290  ;
8291  return 0;
8292}
8293_ACEOF
8294if ac_fn_c_try_link "$LINENO"; then :
8295  eval "$as_CACHEVAR=yes"
8296else
8297  eval "$as_CACHEVAR=no"
8298fi
8299rm -f core conftest.err conftest.$ac_objext \
8300    conftest$ac_exeext conftest.$ac_ext
8301  CFLAGS=$ax_check_save_flags
8302fi
8303eval ac_res=\$$as_CACHEVAR
8304	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8305$as_echo "$ac_res" >&6; }
8306if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8307  CWFLAGS="$CWFLAGS -Wrestrict"
8308else
8309  :
8310fi
8311
8312as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wshorten-64-to-32" | $as_tr_sh`
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32" >&5
8314$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32... " >&6; }
8315if eval \${$as_CACHEVAR+:} false; then :
8316  $as_echo_n "(cached) " >&6
8317else
8318
8319  ax_check_save_flags=$CFLAGS
8320  CFLAGS="$CFLAGS  $CWFLAGS -Wshorten-64-to-32"
8321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h.  */
8323#include <time.h>
8324int
8325main ()
8326{
8327time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8328  ;
8329  return 0;
8330}
8331_ACEOF
8332if ac_fn_c_try_link "$LINENO"; then :
8333  eval "$as_CACHEVAR=yes"
8334else
8335  eval "$as_CACHEVAR=no"
8336fi
8337rm -f core conftest.err conftest.$ac_objext \
8338    conftest$ac_exeext conftest.$ac_ext
8339  CFLAGS=$ax_check_save_flags
8340fi
8341eval ac_res=\$$as_CACHEVAR
8342	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8343$as_echo "$ac_res" >&6; }
8344if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8345  CWFLAGS="$CWFLAGS -Wshorten-64-to-32"
8346else
8347  :
8348fi
8349
8350as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wsometimes-uninitialized" | $as_tr_sh`
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized" >&5
8352$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized... " >&6; }
8353if eval \${$as_CACHEVAR+:} false; then :
8354  $as_echo_n "(cached) " >&6
8355else
8356
8357  ax_check_save_flags=$CFLAGS
8358  CFLAGS="$CFLAGS  $CWFLAGS -Wsometimes-uninitialized"
8359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360/* end confdefs.h.  */
8361#include <time.h>
8362int
8363main ()
8364{
8365time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8366  ;
8367  return 0;
8368}
8369_ACEOF
8370if ac_fn_c_try_link "$LINENO"; then :
8371  eval "$as_CACHEVAR=yes"
8372else
8373  eval "$as_CACHEVAR=no"
8374fi
8375rm -f core conftest.err conftest.$ac_objext \
8376    conftest$ac_exeext conftest.$ac_ext
8377  CFLAGS=$ax_check_save_flags
8378fi
8379eval ac_res=\$$as_CACHEVAR
8380	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8381$as_echo "$ac_res" >&6; }
8382if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8383  CWFLAGS="$CWFLAGS -Wsometimes-uninitialized"
8384else
8385  :
8386fi
8387
8388as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
8390$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
8391if eval \${$as_CACHEVAR+:} false; then :
8392  $as_echo_n "(cached) " >&6
8393else
8394
8395  ax_check_save_flags=$CFLAGS
8396  CFLAGS="$CFLAGS  $CWFLAGS -Wstrict-prototypes"
8397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h.  */
8399#include <time.h>
8400int
8401main ()
8402{
8403time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8404  ;
8405  return 0;
8406}
8407_ACEOF
8408if ac_fn_c_try_link "$LINENO"; then :
8409  eval "$as_CACHEVAR=yes"
8410else
8411  eval "$as_CACHEVAR=no"
8412fi
8413rm -f core conftest.err conftest.$ac_objext \
8414    conftest$ac_exeext conftest.$ac_ext
8415  CFLAGS=$ax_check_save_flags
8416fi
8417eval ac_res=\$$as_CACHEVAR
8418	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8419$as_echo "$ac_res" >&6; }
8420if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8421  CWFLAGS="$CWFLAGS -Wstrict-prototypes"
8422else
8423  :
8424fi
8425
8426as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
8428$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
8429if eval \${$as_CACHEVAR+:} false; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432
8433  ax_check_save_flags=$CFLAGS
8434  CFLAGS="$CFLAGS  $CWFLAGS -Wswitch-enum"
8435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437#include <time.h>
8438int
8439main ()
8440{
8441time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8442  ;
8443  return 0;
8444}
8445_ACEOF
8446if ac_fn_c_try_link "$LINENO"; then :
8447  eval "$as_CACHEVAR=yes"
8448else
8449  eval "$as_CACHEVAR=no"
8450fi
8451rm -f core conftest.err conftest.$ac_objext \
8452    conftest$ac_exeext conftest.$ac_ext
8453  CFLAGS=$ax_check_save_flags
8454fi
8455eval ac_res=\$$as_CACHEVAR
8456	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8457$as_echo "$ac_res" >&6; }
8458if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8459  CWFLAGS="$CWFLAGS -Wswitch-enum"
8460else
8461  :
8462fi
8463
8464as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
8466$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
8467if eval \${$as_CACHEVAR+:} false; then :
8468  $as_echo_n "(cached) " >&6
8469else
8470
8471  ax_check_save_flags=$CFLAGS
8472  CFLAGS="$CFLAGS  $CWFLAGS -Wvariable-decl"
8473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474/* end confdefs.h.  */
8475#include <time.h>
8476int
8477main ()
8478{
8479time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8480  ;
8481  return 0;
8482}
8483_ACEOF
8484if ac_fn_c_try_link "$LINENO"; then :
8485  eval "$as_CACHEVAR=yes"
8486else
8487  eval "$as_CACHEVAR=no"
8488fi
8489rm -f core conftest.err conftest.$ac_objext \
8490    conftest$ac_exeext conftest.$ac_ext
8491  CFLAGS=$ax_check_save_flags
8492fi
8493eval ac_res=\$$as_CACHEVAR
8494	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8495$as_echo "$ac_res" >&6; }
8496if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8497  CWFLAGS="$CWFLAGS -Wvariable-decl"
8498else
8499  :
8500fi
8501
8502as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wwrite-strings" | $as_tr_sh`
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wwrite-strings" >&5
8504$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wwrite-strings... " >&6; }
8505if eval \${$as_CACHEVAR+:} false; then :
8506  $as_echo_n "(cached) " >&6
8507else
8508
8509  ax_check_save_flags=$CFLAGS
8510  CFLAGS="$CFLAGS  $CWFLAGS -Wwrite-strings"
8511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512/* end confdefs.h.  */
8513#include <time.h>
8514int
8515main ()
8516{
8517time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8518  ;
8519  return 0;
8520}
8521_ACEOF
8522if ac_fn_c_try_link "$LINENO"; then :
8523  eval "$as_CACHEVAR=yes"
8524else
8525  eval "$as_CACHEVAR=no"
8526fi
8527rm -f core conftest.err conftest.$ac_objext \
8528    conftest$ac_exeext conftest.$ac_ext
8529  CFLAGS=$ax_check_save_flags
8530fi
8531eval ac_res=\$$as_CACHEVAR
8532	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8533$as_echo "$ac_res" >&6; }
8534if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8535  CWFLAGS="$CWFLAGS -Wwrite-strings"
8536else
8537  :
8538fi
8539
8540
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
8542$as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
8543if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546
8547  ax_check_save_flags=$LDFLAGS
8548  LDFLAGS="$LDFLAGS  -Wl,-z,relro"
8549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h.  */
8551#include <time.h>
8552int
8553main ()
8554{
8555time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8556  ;
8557  return 0;
8558}
8559_ACEOF
8560if ac_fn_c_try_link "$LINENO"; then :
8561  ax_cv_check_ldflags___Wl__z_relro=yes
8562else
8563  ax_cv_check_ldflags___Wl__z_relro=no
8564fi
8565rm -f core conftest.err conftest.$ac_objext \
8566    conftest$ac_exeext conftest.$ac_ext
8567  LDFLAGS=$ax_check_save_flags
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
8570$as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
8571if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
8572  LDFLAGS="$LDFLAGS -Wl,-z,relro"
8573else
8574  :
8575fi
8576
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
8578$as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
8579if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
8580  $as_echo_n "(cached) " >&6
8581else
8582
8583  ax_check_save_flags=$LDFLAGS
8584  LDFLAGS="$LDFLAGS  -Wl,-z,now"
8585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586/* end confdefs.h.  */
8587#include <time.h>
8588int
8589main ()
8590{
8591time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8592  ;
8593  return 0;
8594}
8595_ACEOF
8596if ac_fn_c_try_link "$LINENO"; then :
8597  ax_cv_check_ldflags___Wl__z_now=yes
8598else
8599  ax_cv_check_ldflags___Wl__z_now=no
8600fi
8601rm -f core conftest.err conftest.$ac_objext \
8602    conftest$ac_exeext conftest.$ac_ext
8603  LDFLAGS=$ax_check_save_flags
8604fi
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
8606$as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
8607if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
8608  LDFLAGS="$LDFLAGS -Wl,-z,now"
8609else
8610  :
8611fi
8612
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
8614$as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
8615if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
8616  $as_echo_n "(cached) " >&6
8617else
8618
8619  ax_check_save_flags=$LDFLAGS
8620  LDFLAGS="$LDFLAGS  -Wl,-z,noexecstack"
8621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622/* end confdefs.h.  */
8623#include <time.h>
8624int
8625main ()
8626{
8627time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8628  ;
8629  return 0;
8630}
8631_ACEOF
8632if ac_fn_c_try_link "$LINENO"; then :
8633  ax_cv_check_ldflags___Wl__z_noexecstack=yes
8634else
8635  ax_cv_check_ldflags___Wl__z_noexecstack=no
8636fi
8637rm -f core conftest.err conftest.$ac_objext \
8638    conftest$ac_exeext conftest.$ac_ext
8639  LDFLAGS=$ax_check_save_flags
8640fi
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
8642$as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
8643if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
8644  LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
8645else
8646  :
8647fi
8648
8649
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a broken clang + AVX512 combination" >&5
8651$as_echo_n "checking for a broken clang + AVX512 combination... " >&6; }
8652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653/* end confdefs.h.  */
8654
8655int
8656main ()
8657{
8658
8659#if !(defined(__AVX512F__) && defined(__clang__) && __clang_major__ < 4)
8660#error Not a broken clang + AVX512 combination
8661#endif
8662
8663  ;
8664  return 0;
8665}
8666_ACEOF
8667if ac_fn_c_try_compile "$LINENO"; then :
8668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabling AVX512 optimizations" >&5
8669$as_echo "yes - disabling AVX512 optimizations" >&6; }
8670   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -mno-avx512f" | $as_tr_sh`
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -mno-avx512f" >&5
8672$as_echo_n "checking whether C compiler accepts $CFLAGS -mno-avx512f... " >&6; }
8673if eval \${$as_CACHEVAR+:} false; then :
8674  $as_echo_n "(cached) " >&6
8675else
8676
8677  ax_check_save_flags=$CFLAGS
8678  CFLAGS="$CFLAGS  $CFLAGS -mno-avx512f"
8679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681#include <time.h>
8682int
8683main ()
8684{
8685time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690if ac_fn_c_try_link "$LINENO"; then :
8691  eval "$as_CACHEVAR=yes"
8692else
8693  eval "$as_CACHEVAR=no"
8694fi
8695rm -f core conftest.err conftest.$ac_objext \
8696    conftest$ac_exeext conftest.$ac_ext
8697  CFLAGS=$ax_check_save_flags
8698fi
8699eval ac_res=\$$as_CACHEVAR
8700	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8701$as_echo "$ac_res" >&6; }
8702if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8703  CFLAGS="$CFLAGS -mno-avx512f"
8704else
8705  :
8706fi
8707
8708
8709else
8710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711$as_echo "no" >&6; }
8712
8713fi
8714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715
8716
8717        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether segmentation violations can be caught when using the C compiler" >&5
8718$as_echo_n "checking whether segmentation violations can be caught when using the C compiler... " >&6; }
8719if ${ax_cv_check_cCATCHABLE_SEGV+:} false; then :
8720  $as_echo_n "(cached) " >&6
8721else
8722
8723        if test "$cross_compiling" = yes; then :
8724  ax_cv_check_cCATCHABLE_SEGV=unknown
8725
8726else
8727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h.  */
8729
8730
8731#include <signal.h>
8732#include <stdlib.h>
8733static void sig(int _) { exit(0); }
8734
8735int
8736main ()
8737{
8738
8739volatile unsigned char * volatile x = (volatile unsigned char *) malloc(8);
8740size_t i;
8741
8742signal(SIGSEGV, sig);
8743signal(SIGBUS, sig);
8744#if !defined(__SANITIZE_ADDRESS__) && !defined(__EMSCRIPTEN__)
8745for (i = 0; i < 10000000; i += 1024) { x[-i] = x[i] = (unsigned char) i; }
8746#endif
8747free((void *) x);
8748exit(1)
8749
8750  ;
8751  return 0;
8752}
8753_ACEOF
8754if ac_fn_c_try_run "$LINENO"; then :
8755  ax_cv_check_cCATCHABLE_SEGV=yes
8756else
8757  ax_cv_check_cCATCHABLE_SEGV=no
8758fi
8759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8760  conftest.$ac_objext conftest.beam conftest.$ac_ext
8761fi
8762
8763
8764fi
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_SEGV" >&5
8766$as_echo "$ax_cv_check_cCATCHABLE_SEGV" >&6; }
8767    if test "x$ax_cv_check_cCATCHABLE_SEGV" = xyes; then :
8768
8769$as_echo "#define HAVE_CATCHABLE_SEGV 1" >>confdefs.h
8770
8771else
8772  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&5
8773$as_echo "$as_me: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&2;}
8774
8775fi
8776
8777
8778        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SIGABRT can be caught when using the C compiler" >&5
8779$as_echo_n "checking whether SIGABRT can be caught when using the C compiler... " >&6; }
8780if ${ax_cv_check_cCATCHABLE_ABRT+:} false; then :
8781  $as_echo_n "(cached) " >&6
8782else
8783
8784        if test "$cross_compiling" = yes; then :
8785  ax_cv_check_cCATCHABLE_ABRT=unknown
8786
8787else
8788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789/* end confdefs.h.  */
8790
8791
8792#include <signal.h>
8793#include <stdlib.h>
8794
8795#ifndef SIGABRT
8796# error SIGABRT is not defined
8797#endif
8798
8799static void sigabrt_handler_3(int _)
8800{
8801    exit(0);
8802}
8803
8804static void sigabrt_handler_2(int _)
8805{
8806    signal(SIGABRT, sigabrt_handler_3);
8807    abort();
8808    exit(1);
8809}
8810
8811static void sigabrt_handler_1(int _)
8812{
8813    signal(SIGABRT, sigabrt_handler_2);
8814    abort();
8815    exit(1);
8816}
8817
8818int
8819main ()
8820{
8821
8822signal(SIGABRT, sigabrt_handler_1);
8823abort();
8824exit(1);
8825
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_run "$LINENO"; then :
8831  ax_cv_check_cCATCHABLE_ABRT=yes
8832else
8833  ax_cv_check_cCATCHABLE_ABRT=no
8834fi
8835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8836  conftest.$ac_objext conftest.beam conftest.$ac_ext
8837fi
8838
8839
8840fi
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_ABRT" >&5
8842$as_echo "$ax_cv_check_cCATCHABLE_ABRT" >&6; }
8843    if test "x$ax_cv_check_cCATCHABLE_ABRT" = xyes; then :
8844
8845$as_echo "#define HAVE_CATCHABLE_ABRT 1" >>confdefs.h
8846
8847else
8848  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&5
8849$as_echo "$as_me: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&2;}
8850
8851fi
8852
8853
8854if test "x$with_threads" = "xyes"; then :
8855
8856
8857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
8858$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
8859  if ${ac_cv_tls+:} false; then :
8860  $as_echo_n "(cached) " >&6
8861else
8862  for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
8863       case $ax_tls_keyword in #(
8864  none) :
8865    ac_cv_tls=none ; break ;; #(
8866  *) :
8867    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h.  */
8869#include <stdlib.h>
8870               static void
8871               foo(void) {
8872               static  $ax_tls_keyword  int bar;
8873               exit(1);
8874               }
8875int
8876main ()
8877{
8878
8879  ;
8880  return 0;
8881}
8882_ACEOF
8883if ac_fn_c_try_compile "$LINENO"; then :
8884  ac_cv_tls=$ax_tls_keyword ; break
8885else
8886  ac_cv_tls=none
8887
8888fi
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
8890esac
8891    done
8892
8893fi
8894
8895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
8896$as_echo "$ac_cv_tls" >&6; }
8897
8898  if test "$ac_cv_tls" != "none"; then :
8899
8900cat >>confdefs.h <<_ACEOF
8901#define TLS $ac_cv_tls
8902_ACEOF
8903
8904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: thread local storage is supported" >&5
8905$as_echo "thread local storage is supported" >&6; }
8906else
8907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: thread local storage is not supported" >&5
8908$as_echo "thread local storage is not supported" >&6; }
8909fi
8910
8911fi
8912
8913case `pwd` in
8914  *\ * | *\	*)
8915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8916$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8917esac
8918
8919
8920
8921macro_version='2.4.6'
8922macro_revision='2.4.6'
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936ltmain=$ac_aux_dir/ltmain.sh
8937
8938# Backslashify metacharacters that are still active within
8939# double-quoted strings.
8940sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8941
8942# Same as above, but do not quote variable references.
8943double_quote_subst='s/\(["`\\]\)/\\\1/g'
8944
8945# Sed substitution to delay expansion of an escaped shell variable in a
8946# double_quote_subst'ed string.
8947delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8948
8949# Sed substitution to delay expansion of an escaped single quote.
8950delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8951
8952# Sed substitution to avoid accidental globbing in evaled expressions
8953no_glob_subst='s/\*/\\\*/g'
8954
8955ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8956ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8957ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8958
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8960$as_echo_n "checking how to print strings... " >&6; }
8961# Test print first, because it will be a builtin if present.
8962if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8963   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8964  ECHO='print -r --'
8965elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8966  ECHO='printf %s\n'
8967else
8968  # Use this function as a fallback that always works.
8969  func_fallback_echo ()
8970  {
8971    eval 'cat <<_LTECHO_EOF
8972$1
8973_LTECHO_EOF'
8974  }
8975  ECHO='func_fallback_echo'
8976fi
8977
8978# func_echo_all arg...
8979# Invoke $ECHO with all args, space-separated.
8980func_echo_all ()
8981{
8982    $ECHO ""
8983}
8984
8985case $ECHO in
8986  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8987$as_echo "printf" >&6; } ;;
8988  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8989$as_echo "print -r" >&6; } ;;
8990  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8991$as_echo "cat" >&6; } ;;
8992esac
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9008$as_echo_n "checking for a sed that does not truncate output... " >&6; }
9009if ${ac_cv_path_SED+:} false; then :
9010  $as_echo_n "(cached) " >&6
9011else
9012            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9013     for ac_i in 1 2 3 4 5 6 7; do
9014       ac_script="$ac_script$as_nl$ac_script"
9015     done
9016     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9017     { ac_script=; unset ac_script;}
9018     if test -z "$SED"; then
9019  ac_path_SED_found=false
9020  # Loop through the user's path and test for each of PROGNAME-LIST
9021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022for as_dir in $PATH
9023do
9024  IFS=$as_save_IFS
9025  test -z "$as_dir" && as_dir=.
9026    for ac_prog in sed gsed; do
9027    for ac_exec_ext in '' $ac_executable_extensions; do
9028      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9029      as_fn_executable_p "$ac_path_SED" || continue
9030# Check for GNU ac_path_SED and select it if it is found.
9031  # Check for GNU $ac_path_SED
9032case `"$ac_path_SED" --version 2>&1` in
9033*GNU*)
9034  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9035*)
9036  ac_count=0
9037  $as_echo_n 0123456789 >"conftest.in"
9038  while :
9039  do
9040    cat "conftest.in" "conftest.in" >"conftest.tmp"
9041    mv "conftest.tmp" "conftest.in"
9042    cp "conftest.in" "conftest.nl"
9043    $as_echo '' >> "conftest.nl"
9044    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9045    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9046    as_fn_arith $ac_count + 1 && ac_count=$as_val
9047    if test $ac_count -gt ${ac_path_SED_max-0}; then
9048      # Best one so far, save it but keep looking for a better one
9049      ac_cv_path_SED="$ac_path_SED"
9050      ac_path_SED_max=$ac_count
9051    fi
9052    # 10*(2^10) chars as input seems more than enough
9053    test $ac_count -gt 10 && break
9054  done
9055  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9056esac
9057
9058      $ac_path_SED_found && break 3
9059    done
9060  done
9061  done
9062IFS=$as_save_IFS
9063  if test -z "$ac_cv_path_SED"; then
9064    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9065  fi
9066else
9067  ac_cv_path_SED=$SED
9068fi
9069
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9072$as_echo "$ac_cv_path_SED" >&6; }
9073 SED="$ac_cv_path_SED"
9074  rm -f conftest.sed
9075
9076test -z "$SED" && SED=sed
9077Xsed="$SED -e 1s/^X//"
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9090$as_echo_n "checking for fgrep... " >&6; }
9091if ${ac_cv_path_FGREP+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9095   then ac_cv_path_FGREP="$GREP -F"
9096   else
9097     if test -z "$FGREP"; then
9098  ac_path_FGREP_found=false
9099  # Loop through the user's path and test for each of PROGNAME-LIST
9100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9102do
9103  IFS=$as_save_IFS
9104  test -z "$as_dir" && as_dir=.
9105    for ac_prog in fgrep; do
9106    for ac_exec_ext in '' $ac_executable_extensions; do
9107      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9108      as_fn_executable_p "$ac_path_FGREP" || continue
9109# Check for GNU ac_path_FGREP and select it if it is found.
9110  # Check for GNU $ac_path_FGREP
9111case `"$ac_path_FGREP" --version 2>&1` in
9112*GNU*)
9113  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9114*)
9115  ac_count=0
9116  $as_echo_n 0123456789 >"conftest.in"
9117  while :
9118  do
9119    cat "conftest.in" "conftest.in" >"conftest.tmp"
9120    mv "conftest.tmp" "conftest.in"
9121    cp "conftest.in" "conftest.nl"
9122    $as_echo 'FGREP' >> "conftest.nl"
9123    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9124    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9125    as_fn_arith $ac_count + 1 && ac_count=$as_val
9126    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9127      # Best one so far, save it but keep looking for a better one
9128      ac_cv_path_FGREP="$ac_path_FGREP"
9129      ac_path_FGREP_max=$ac_count
9130    fi
9131    # 10*(2^10) chars as input seems more than enough
9132    test $ac_count -gt 10 && break
9133  done
9134  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9135esac
9136
9137      $ac_path_FGREP_found && break 3
9138    done
9139  done
9140  done
9141IFS=$as_save_IFS
9142  if test -z "$ac_cv_path_FGREP"; then
9143    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9144  fi
9145else
9146  ac_cv_path_FGREP=$FGREP
9147fi
9148
9149   fi
9150fi
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9152$as_echo "$ac_cv_path_FGREP" >&6; }
9153 FGREP="$ac_cv_path_FGREP"
9154
9155
9156test -z "$GREP" && GREP=grep
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176# Check whether --with-gnu-ld was given.
9177if test "${with_gnu_ld+set}" = set; then :
9178  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9179else
9180  with_gnu_ld=no
9181fi
9182
9183ac_prog=ld
9184if test yes = "$GCC"; then
9185  # Check if gcc -print-prog-name=ld gives a path.
9186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9187$as_echo_n "checking for ld used by $CC... " >&6; }
9188  case $host in
9189  *-*-mingw*)
9190    # gcc leaves a trailing carriage return, which upsets mingw
9191    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9192  *)
9193    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9194  esac
9195  case $ac_prog in
9196    # Accept absolute paths.
9197    [\\/]* | ?:[\\/]*)
9198      re_direlt='/[^/][^/]*/\.\./'
9199      # Canonicalize the pathname of ld
9200      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9201      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9202	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9203      done
9204      test -z "$LD" && LD=$ac_prog
9205      ;;
9206  "")
9207    # If it fails, then pretend we aren't using GCC.
9208    ac_prog=ld
9209    ;;
9210  *)
9211    # If it is relative, then search for the first ld in PATH.
9212    with_gnu_ld=unknown
9213    ;;
9214  esac
9215elif test yes = "$with_gnu_ld"; then
9216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9217$as_echo_n "checking for GNU ld... " >&6; }
9218else
9219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9220$as_echo_n "checking for non-GNU ld... " >&6; }
9221fi
9222if ${lt_cv_path_LD+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  if test -z "$LD"; then
9226  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9227  for ac_dir in $PATH; do
9228    IFS=$lt_save_ifs
9229    test -z "$ac_dir" && ac_dir=.
9230    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9231      lt_cv_path_LD=$ac_dir/$ac_prog
9232      # Check to see if the program is GNU ld.  I'd rather use --version,
9233      # but apparently some variants of GNU ld only accept -v.
9234      # Break only if it was the GNU/non-GNU ld that we prefer.
9235      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9236      *GNU* | *'with BFD'*)
9237	test no != "$with_gnu_ld" && break
9238	;;
9239      *)
9240	test yes != "$with_gnu_ld" && break
9241	;;
9242      esac
9243    fi
9244  done
9245  IFS=$lt_save_ifs
9246else
9247  lt_cv_path_LD=$LD # Let the user override the test with a path.
9248fi
9249fi
9250
9251LD=$lt_cv_path_LD
9252if test -n "$LD"; then
9253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9254$as_echo "$LD" >&6; }
9255else
9256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257$as_echo "no" >&6; }
9258fi
9259test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9261$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9262if ${lt_cv_prog_gnu_ld+:} false; then :
9263  $as_echo_n "(cached) " >&6
9264else
9265  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9266case `$LD -v 2>&1 </dev/null` in
9267*GNU* | *'with BFD'*)
9268  lt_cv_prog_gnu_ld=yes
9269  ;;
9270*)
9271  lt_cv_prog_gnu_ld=no
9272  ;;
9273esac
9274fi
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9276$as_echo "$lt_cv_prog_gnu_ld" >&6; }
9277with_gnu_ld=$lt_cv_prog_gnu_ld
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9288$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9289if ${lt_cv_path_NM+:} false; then :
9290  $as_echo_n "(cached) " >&6
9291else
9292  if test -n "$NM"; then
9293  # Let the user override the test.
9294  lt_cv_path_NM=$NM
9295else
9296  lt_nm_to_check=${ac_tool_prefix}nm
9297  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9298    lt_nm_to_check="$lt_nm_to_check nm"
9299  fi
9300  for lt_tmp_nm in $lt_nm_to_check; do
9301    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9302    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9303      IFS=$lt_save_ifs
9304      test -z "$ac_dir" && ac_dir=.
9305      tmp_nm=$ac_dir/$lt_tmp_nm
9306      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9307	# Check to see if the nm accepts a BSD-compat flag.
9308	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9309	#   nm: unknown option "B" ignored
9310	# Tru64's nm complains that /dev/null is an invalid object file
9311	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9312	case $build_os in
9313	mingw*) lt_bad_file=conftest.nm/nofile ;;
9314	*) lt_bad_file=/dev/null ;;
9315	esac
9316	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
9317	*$lt_bad_file* | *'Invalid file or object type'*)
9318	  lt_cv_path_NM="$tmp_nm -B"
9319	  break 2
9320	  ;;
9321	*)
9322	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9323	  */dev/null*)
9324	    lt_cv_path_NM="$tmp_nm -p"
9325	    break 2
9326	    ;;
9327	  *)
9328	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9329	    continue # so that we can try to find one that supports BSD flags
9330	    ;;
9331	  esac
9332	  ;;
9333	esac
9334      fi
9335    done
9336    IFS=$lt_save_ifs
9337  done
9338  : ${lt_cv_path_NM=no}
9339fi
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9342$as_echo "$lt_cv_path_NM" >&6; }
9343if test no != "$lt_cv_path_NM"; then
9344  NM=$lt_cv_path_NM
9345else
9346  # Didn't find any BSD compatible name lister, look for dumpbin.
9347  if test -n "$DUMPBIN"; then :
9348    # Let the user override the test.
9349  else
9350    if test -n "$ac_tool_prefix"; then
9351  for ac_prog in dumpbin "link -dump"
9352  do
9353    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9354set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9356$as_echo_n "checking for $ac_word... " >&6; }
9357if ${ac_cv_prog_DUMPBIN+:} false; then :
9358  $as_echo_n "(cached) " >&6
9359else
9360  if test -n "$DUMPBIN"; then
9361  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9362else
9363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364for as_dir in $PATH
9365do
9366  IFS=$as_save_IFS
9367  test -z "$as_dir" && as_dir=.
9368    for ac_exec_ext in '' $ac_executable_extensions; do
9369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9370    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9372    break 2
9373  fi
9374done
9375  done
9376IFS=$as_save_IFS
9377
9378fi
9379fi
9380DUMPBIN=$ac_cv_prog_DUMPBIN
9381if test -n "$DUMPBIN"; then
9382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9383$as_echo "$DUMPBIN" >&6; }
9384else
9385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386$as_echo "no" >&6; }
9387fi
9388
9389
9390    test -n "$DUMPBIN" && break
9391  done
9392fi
9393if test -z "$DUMPBIN"; then
9394  ac_ct_DUMPBIN=$DUMPBIN
9395  for ac_prog in dumpbin "link -dump"
9396do
9397  # Extract the first word of "$ac_prog", so it can be a program name with args.
9398set dummy $ac_prog; ac_word=$2
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9400$as_echo_n "checking for $ac_word... " >&6; }
9401if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9402  $as_echo_n "(cached) " >&6
9403else
9404  if test -n "$ac_ct_DUMPBIN"; then
9405  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9406else
9407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408for as_dir in $PATH
9409do
9410  IFS=$as_save_IFS
9411  test -z "$as_dir" && as_dir=.
9412    for ac_exec_ext in '' $ac_executable_extensions; do
9413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9414    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9416    break 2
9417  fi
9418done
9419  done
9420IFS=$as_save_IFS
9421
9422fi
9423fi
9424ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9425if test -n "$ac_ct_DUMPBIN"; then
9426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9427$as_echo "$ac_ct_DUMPBIN" >&6; }
9428else
9429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9430$as_echo "no" >&6; }
9431fi
9432
9433
9434  test -n "$ac_ct_DUMPBIN" && break
9435done
9436
9437  if test "x$ac_ct_DUMPBIN" = x; then
9438    DUMPBIN=":"
9439  else
9440    case $cross_compiling:$ac_tool_warned in
9441yes:)
9442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9444ac_tool_warned=yes ;;
9445esac
9446    DUMPBIN=$ac_ct_DUMPBIN
9447  fi
9448fi
9449
9450    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
9451    *COFF*)
9452      DUMPBIN="$DUMPBIN -symbols -headers"
9453      ;;
9454    *)
9455      DUMPBIN=:
9456      ;;
9457    esac
9458  fi
9459
9460  if test : != "$DUMPBIN"; then
9461    NM=$DUMPBIN
9462  fi
9463fi
9464test -z "$NM" && NM=nm
9465
9466
9467
9468
9469
9470
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9472$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9473if ${lt_cv_nm_interface+:} false; then :
9474  $as_echo_n "(cached) " >&6
9475else
9476  lt_cv_nm_interface="BSD nm"
9477  echo "int some_variable = 0;" > conftest.$ac_ext
9478  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9479  (eval "$ac_compile" 2>conftest.err)
9480  cat conftest.err >&5
9481  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9482  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9483  cat conftest.err >&5
9484  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9485  cat conftest.out >&5
9486  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9487    lt_cv_nm_interface="MS dumpbin"
9488  fi
9489  rm -f conftest*
9490fi
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9492$as_echo "$lt_cv_nm_interface" >&6; }
9493
9494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9495$as_echo_n "checking whether ln -s works... " >&6; }
9496LN_S=$as_ln_s
9497if test "$LN_S" = "ln -s"; then
9498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9499$as_echo "yes" >&6; }
9500else
9501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9502$as_echo "no, using $LN_S" >&6; }
9503fi
9504
9505# find the maximum length of command line arguments
9506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9507$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9508if ${lt_cv_sys_max_cmd_len+:} false; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511    i=0
9512  teststring=ABCD
9513
9514  case $build_os in
9515  msdosdjgpp*)
9516    # On DJGPP, this test can blow up pretty badly due to problems in libc
9517    # (any single argument exceeding 2000 bytes causes a buffer overrun
9518    # during glob expansion).  Even if it were fixed, the result of this
9519    # check would be larger than it should be.
9520    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9521    ;;
9522
9523  gnu*)
9524    # Under GNU Hurd, this test is not required because there is
9525    # no limit to the length of command line arguments.
9526    # Libtool will interpret -1 as no limit whatsoever
9527    lt_cv_sys_max_cmd_len=-1;
9528    ;;
9529
9530  cygwin* | mingw* | cegcc*)
9531    # On Win9x/ME, this test blows up -- it succeeds, but takes
9532    # about 5 minutes as the teststring grows exponentially.
9533    # Worse, since 9x/ME are not pre-emptively multitasking,
9534    # you end up with a "frozen" computer, even though with patience
9535    # the test eventually succeeds (with a max line length of 256k).
9536    # Instead, let's just punt: use the minimum linelength reported by
9537    # all of the supported platforms: 8192 (on NT/2K/XP).
9538    lt_cv_sys_max_cmd_len=8192;
9539    ;;
9540
9541  mint*)
9542    # On MiNT this can take a long time and run out of memory.
9543    lt_cv_sys_max_cmd_len=8192;
9544    ;;
9545
9546  amigaos*)
9547    # On AmigaOS with pdksh, this test takes hours, literally.
9548    # So we just punt and use a minimum line length of 8192.
9549    lt_cv_sys_max_cmd_len=8192;
9550    ;;
9551
9552  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
9553    # This has been around since 386BSD, at least.  Likely further.
9554    if test -x /sbin/sysctl; then
9555      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9556    elif test -x /usr/sbin/sysctl; then
9557      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9558    else
9559      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9560    fi
9561    # And add a safety zone
9562    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9563    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9564    ;;
9565
9566  interix*)
9567    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9568    lt_cv_sys_max_cmd_len=196608
9569    ;;
9570
9571  os2*)
9572    # The test takes a long time on OS/2.
9573    lt_cv_sys_max_cmd_len=8192
9574    ;;
9575
9576  osf*)
9577    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9578    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9579    # nice to cause kernel panics so lets avoid the loop below.
9580    # First set a reasonable default.
9581    lt_cv_sys_max_cmd_len=16384
9582    #
9583    if test -x /sbin/sysconfig; then
9584      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9585        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9586      esac
9587    fi
9588    ;;
9589  sco3.2v5*)
9590    lt_cv_sys_max_cmd_len=102400
9591    ;;
9592  sysv5* | sco5v6* | sysv4.2uw2*)
9593    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9594    if test -n "$kargmax"; then
9595      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
9596    else
9597      lt_cv_sys_max_cmd_len=32768
9598    fi
9599    ;;
9600  *)
9601    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9602    if test -n "$lt_cv_sys_max_cmd_len" && \
9603       test undefined != "$lt_cv_sys_max_cmd_len"; then
9604      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9605      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9606    else
9607      # Make teststring a little bigger before we do anything with it.
9608      # a 1K string should be a reasonable start.
9609      for i in 1 2 3 4 5 6 7 8; do
9610        teststring=$teststring$teststring
9611      done
9612      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9613      # If test is not a shell built-in, we'll probably end up computing a
9614      # maximum length that is only half of the actual maximum length, but
9615      # we can't tell.
9616      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9617	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9618	      test 17 != "$i" # 1/2 MB should be enough
9619      do
9620        i=`expr $i + 1`
9621        teststring=$teststring$teststring
9622      done
9623      # Only check the string length outside the loop.
9624      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9625      teststring=
9626      # Add a significant safety factor because C++ compilers can tack on
9627      # massive amounts of additional arguments before passing them to the
9628      # linker.  It appears as though 1/2 is a usable value.
9629      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9630    fi
9631    ;;
9632  esac
9633
9634fi
9635
9636if test -n "$lt_cv_sys_max_cmd_len"; then
9637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9638$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9639else
9640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9641$as_echo "none" >&6; }
9642fi
9643max_cmd_len=$lt_cv_sys_max_cmd_len
9644
9645
9646
9647
9648
9649
9650: ${CP="cp -f"}
9651: ${MV="mv -f"}
9652: ${RM="rm -f"}
9653
9654if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9655  lt_unset=unset
9656else
9657  lt_unset=false
9658fi
9659
9660
9661
9662
9663
9664# test EBCDIC or ASCII
9665case `echo X|tr X '\101'` in
9666 A) # ASCII based system
9667    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9668  lt_SP2NL='tr \040 \012'
9669  lt_NL2SP='tr \015\012 \040\040'
9670  ;;
9671 *) # EBCDIC based system
9672  lt_SP2NL='tr \100 \n'
9673  lt_NL2SP='tr \r\n \100\100'
9674  ;;
9675esac
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9686$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9687if ${lt_cv_to_host_file_cmd+:} false; then :
9688  $as_echo_n "(cached) " >&6
9689else
9690  case $host in
9691  *-*-mingw* )
9692    case $build in
9693      *-*-mingw* ) # actually msys
9694        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9695        ;;
9696      *-*-cygwin* )
9697        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9698        ;;
9699      * ) # otherwise, assume *nix
9700        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9701        ;;
9702    esac
9703    ;;
9704  *-*-cygwin* )
9705    case $build in
9706      *-*-mingw* ) # actually msys
9707        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9708        ;;
9709      *-*-cygwin* )
9710        lt_cv_to_host_file_cmd=func_convert_file_noop
9711        ;;
9712      * ) # otherwise, assume *nix
9713        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9714        ;;
9715    esac
9716    ;;
9717  * ) # unhandled hosts (and "normal" native builds)
9718    lt_cv_to_host_file_cmd=func_convert_file_noop
9719    ;;
9720esac
9721
9722fi
9723
9724to_host_file_cmd=$lt_cv_to_host_file_cmd
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9726$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9727
9728
9729
9730
9731
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9733$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9734if ${lt_cv_to_tool_file_cmd+:} false; then :
9735  $as_echo_n "(cached) " >&6
9736else
9737  #assume ordinary cross tools, or native build.
9738lt_cv_to_tool_file_cmd=func_convert_file_noop
9739case $host in
9740  *-*-mingw* )
9741    case $build in
9742      *-*-mingw* ) # actually msys
9743        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9744        ;;
9745    esac
9746    ;;
9747esac
9748
9749fi
9750
9751to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9753$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9754
9755
9756
9757
9758
9759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9760$as_echo_n "checking for $LD option to reload object files... " >&6; }
9761if ${lt_cv_ld_reload_flag+:} false; then :
9762  $as_echo_n "(cached) " >&6
9763else
9764  lt_cv_ld_reload_flag='-r'
9765fi
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9767$as_echo "$lt_cv_ld_reload_flag" >&6; }
9768reload_flag=$lt_cv_ld_reload_flag
9769case $reload_flag in
9770"" | " "*) ;;
9771*) reload_flag=" $reload_flag" ;;
9772esac
9773reload_cmds='$LD$reload_flag -o $output$reload_objs'
9774case $host_os in
9775  cygwin* | mingw* | pw32* | cegcc*)
9776    if test yes != "$GCC"; then
9777      reload_cmds=false
9778    fi
9779    ;;
9780  darwin*)
9781    if test yes = "$GCC"; then
9782      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9783    else
9784      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9785    fi
9786    ;;
9787esac
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797if test -n "$ac_tool_prefix"; then
9798  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9799set dummy ${ac_tool_prefix}objdump; ac_word=$2
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801$as_echo_n "checking for $ac_word... " >&6; }
9802if ${ac_cv_prog_OBJDUMP+:} false; then :
9803  $as_echo_n "(cached) " >&6
9804else
9805  if test -n "$OBJDUMP"; then
9806  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9807else
9808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809for as_dir in $PATH
9810do
9811  IFS=$as_save_IFS
9812  test -z "$as_dir" && as_dir=.
9813    for ac_exec_ext in '' $ac_executable_extensions; do
9814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817    break 2
9818  fi
9819done
9820  done
9821IFS=$as_save_IFS
9822
9823fi
9824fi
9825OBJDUMP=$ac_cv_prog_OBJDUMP
9826if test -n "$OBJDUMP"; then
9827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9828$as_echo "$OBJDUMP" >&6; }
9829else
9830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831$as_echo "no" >&6; }
9832fi
9833
9834
9835fi
9836if test -z "$ac_cv_prog_OBJDUMP"; then
9837  ac_ct_OBJDUMP=$OBJDUMP
9838  # Extract the first word of "objdump", so it can be a program name with args.
9839set dummy objdump; ac_word=$2
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9841$as_echo_n "checking for $ac_word... " >&6; }
9842if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9843  $as_echo_n "(cached) " >&6
9844else
9845  if test -n "$ac_ct_OBJDUMP"; then
9846  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9847else
9848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849for as_dir in $PATH
9850do
9851  IFS=$as_save_IFS
9852  test -z "$as_dir" && as_dir=.
9853    for ac_exec_ext in '' $ac_executable_extensions; do
9854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9855    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9857    break 2
9858  fi
9859done
9860  done
9861IFS=$as_save_IFS
9862
9863fi
9864fi
9865ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9866if test -n "$ac_ct_OBJDUMP"; then
9867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9868$as_echo "$ac_ct_OBJDUMP" >&6; }
9869else
9870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871$as_echo "no" >&6; }
9872fi
9873
9874  if test "x$ac_ct_OBJDUMP" = x; then
9875    OBJDUMP="false"
9876  else
9877    case $cross_compiling:$ac_tool_warned in
9878yes:)
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9881ac_tool_warned=yes ;;
9882esac
9883    OBJDUMP=$ac_ct_OBJDUMP
9884  fi
9885else
9886  OBJDUMP="$ac_cv_prog_OBJDUMP"
9887fi
9888
9889test -z "$OBJDUMP" && OBJDUMP=objdump
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9900$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9901if ${lt_cv_deplibs_check_method+:} false; then :
9902  $as_echo_n "(cached) " >&6
9903else
9904  lt_cv_file_magic_cmd='$MAGIC_CMD'
9905lt_cv_file_magic_test_file=
9906lt_cv_deplibs_check_method='unknown'
9907# Need to set the preceding variable on all platforms that support
9908# interlibrary dependencies.
9909# 'none' -- dependencies not supported.
9910# 'unknown' -- same as none, but documents that we really don't know.
9911# 'pass_all' -- all dependencies passed with no checks.
9912# 'test_compile' -- check by making test program.
9913# 'file_magic [[regex]]' -- check by looking for files in library path
9914# that responds to the $file_magic_cmd with a given extended regex.
9915# If you have 'file' or equivalent on your system and you're not sure
9916# whether 'pass_all' will *always* work, you probably want this one.
9917
9918case $host_os in
9919aix[4-9]*)
9920  lt_cv_deplibs_check_method=pass_all
9921  ;;
9922
9923beos*)
9924  lt_cv_deplibs_check_method=pass_all
9925  ;;
9926
9927bsdi[45]*)
9928  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9929  lt_cv_file_magic_cmd='/usr/bin/file -L'
9930  lt_cv_file_magic_test_file=/shlib/libc.so
9931  ;;
9932
9933cygwin*)
9934  # func_win32_libid is a shell function defined in ltmain.sh
9935  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9936  lt_cv_file_magic_cmd='func_win32_libid'
9937  ;;
9938
9939mingw* | pw32*)
9940  # Base MSYS/MinGW do not provide the 'file' command needed by
9941  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9942  # unless we find 'file', for example because we are cross-compiling.
9943  if ( file / ) >/dev/null 2>&1; then
9944    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9945    lt_cv_file_magic_cmd='func_win32_libid'
9946  else
9947    # Keep this pattern in sync with the one in func_win32_libid.
9948    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9949    lt_cv_file_magic_cmd='$OBJDUMP -f'
9950  fi
9951  ;;
9952
9953cegcc*)
9954  # use the weaker test based on 'objdump'. See mingw*.
9955  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9956  lt_cv_file_magic_cmd='$OBJDUMP -f'
9957  ;;
9958
9959darwin* | rhapsody*)
9960  lt_cv_deplibs_check_method=pass_all
9961  ;;
9962
9963freebsd* | dragonfly*)
9964  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9965    case $host_cpu in
9966    i*86 )
9967      # Not sure whether the presence of OpenBSD here was a mistake.
9968      # Let's accept both of them until this is cleared up.
9969      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9970      lt_cv_file_magic_cmd=/usr/bin/file
9971      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9972      ;;
9973    esac
9974  else
9975    lt_cv_deplibs_check_method=pass_all
9976  fi
9977  ;;
9978
9979haiku*)
9980  lt_cv_deplibs_check_method=pass_all
9981  ;;
9982
9983hpux10.20* | hpux11*)
9984  lt_cv_file_magic_cmd=/usr/bin/file
9985  case $host_cpu in
9986  ia64*)
9987    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9988    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9989    ;;
9990  hppa*64*)
9991    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]'
9992    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9993    ;;
9994  *)
9995    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9996    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9997    ;;
9998  esac
9999  ;;
10000
10001interix[3-9]*)
10002  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10003  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10004  ;;
10005
10006irix5* | irix6* | nonstopux*)
10007  case $LD in
10008  *-32|*"-32 ") libmagic=32-bit;;
10009  *-n32|*"-n32 ") libmagic=N32;;
10010  *-64|*"-64 ") libmagic=64-bit;;
10011  *) libmagic=never-match;;
10012  esac
10013  lt_cv_deplibs_check_method=pass_all
10014  ;;
10015
10016# This must be glibc/ELF.
10017linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10018  lt_cv_deplibs_check_method=pass_all
10019  ;;
10020
10021netbsd*)
10022  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10023    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10024  else
10025    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10026  fi
10027  ;;
10028
10029newos6*)
10030  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10031  lt_cv_file_magic_cmd=/usr/bin/file
10032  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10033  ;;
10034
10035*nto* | *qnx*)
10036  lt_cv_deplibs_check_method=pass_all
10037  ;;
10038
10039openbsd* | bitrig*)
10040  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10041    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10042  else
10043    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10044  fi
10045  ;;
10046
10047osf3* | osf4* | osf5*)
10048  lt_cv_deplibs_check_method=pass_all
10049  ;;
10050
10051rdos*)
10052  lt_cv_deplibs_check_method=pass_all
10053  ;;
10054
10055solaris*)
10056  lt_cv_deplibs_check_method=pass_all
10057  ;;
10058
10059sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10060  lt_cv_deplibs_check_method=pass_all
10061  ;;
10062
10063sysv4 | sysv4.3*)
10064  case $host_vendor in
10065  motorola)
10066    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]'
10067    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10068    ;;
10069  ncr)
10070    lt_cv_deplibs_check_method=pass_all
10071    ;;
10072  sequent)
10073    lt_cv_file_magic_cmd='/bin/file'
10074    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10075    ;;
10076  sni)
10077    lt_cv_file_magic_cmd='/bin/file'
10078    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10079    lt_cv_file_magic_test_file=/lib/libc.so
10080    ;;
10081  siemens)
10082    lt_cv_deplibs_check_method=pass_all
10083    ;;
10084  pc)
10085    lt_cv_deplibs_check_method=pass_all
10086    ;;
10087  esac
10088  ;;
10089
10090tpf*)
10091  lt_cv_deplibs_check_method=pass_all
10092  ;;
10093os2*)
10094  lt_cv_deplibs_check_method=pass_all
10095  ;;
10096esac
10097
10098fi
10099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10100$as_echo "$lt_cv_deplibs_check_method" >&6; }
10101
10102file_magic_glob=
10103want_nocaseglob=no
10104if test "$build" = "$host"; then
10105  case $host_os in
10106  mingw* | pw32*)
10107    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10108      want_nocaseglob=yes
10109    else
10110      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10111    fi
10112    ;;
10113  esac
10114fi
10115
10116file_magic_cmd=$lt_cv_file_magic_cmd
10117deplibs_check_method=$lt_cv_deplibs_check_method
10118test -z "$deplibs_check_method" && deplibs_check_method=unknown
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141if test -n "$ac_tool_prefix"; then
10142  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10143set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145$as_echo_n "checking for $ac_word... " >&6; }
10146if ${ac_cv_prog_DLLTOOL+:} false; then :
10147  $as_echo_n "(cached) " >&6
10148else
10149  if test -n "$DLLTOOL"; then
10150  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10151else
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155  IFS=$as_save_IFS
10156  test -z "$as_dir" && as_dir=.
10157    for ac_exec_ext in '' $ac_executable_extensions; do
10158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161    break 2
10162  fi
10163done
10164  done
10165IFS=$as_save_IFS
10166
10167fi
10168fi
10169DLLTOOL=$ac_cv_prog_DLLTOOL
10170if test -n "$DLLTOOL"; then
10171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10172$as_echo "$DLLTOOL" >&6; }
10173else
10174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
10176fi
10177
10178
10179fi
10180if test -z "$ac_cv_prog_DLLTOOL"; then
10181  ac_ct_DLLTOOL=$DLLTOOL
10182  # Extract the first word of "dlltool", so it can be a program name with args.
10183set dummy dlltool; ac_word=$2
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185$as_echo_n "checking for $ac_word... " >&6; }
10186if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  if test -n "$ac_ct_DLLTOOL"; then
10190  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10191else
10192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193for as_dir in $PATH
10194do
10195  IFS=$as_save_IFS
10196  test -z "$as_dir" && as_dir=.
10197    for ac_exec_ext in '' $ac_executable_extensions; do
10198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201    break 2
10202  fi
10203done
10204  done
10205IFS=$as_save_IFS
10206
10207fi
10208fi
10209ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10210if test -n "$ac_ct_DLLTOOL"; then
10211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10212$as_echo "$ac_ct_DLLTOOL" >&6; }
10213else
10214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215$as_echo "no" >&6; }
10216fi
10217
10218  if test "x$ac_ct_DLLTOOL" = x; then
10219    DLLTOOL="false"
10220  else
10221    case $cross_compiling:$ac_tool_warned in
10222yes:)
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10225ac_tool_warned=yes ;;
10226esac
10227    DLLTOOL=$ac_ct_DLLTOOL
10228  fi
10229else
10230  DLLTOOL="$ac_cv_prog_DLLTOOL"
10231fi
10232
10233test -z "$DLLTOOL" && DLLTOOL=dlltool
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10245$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10246if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10247  $as_echo_n "(cached) " >&6
10248else
10249  lt_cv_sharedlib_from_linklib_cmd='unknown'
10250
10251case $host_os in
10252cygwin* | mingw* | pw32* | cegcc*)
10253  # two different shell functions defined in ltmain.sh;
10254  # decide which one to use based on capabilities of $DLLTOOL
10255  case `$DLLTOOL --help 2>&1` in
10256  *--identify-strict*)
10257    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10258    ;;
10259  *)
10260    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10261    ;;
10262  esac
10263  ;;
10264*)
10265  # fallback: assume linklib IS sharedlib
10266  lt_cv_sharedlib_from_linklib_cmd=$ECHO
10267  ;;
10268esac
10269
10270fi
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10272$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10273sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10274test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10275
10276
10277
10278
10279
10280
10281
10282if test -n "$ac_tool_prefix"; then
10283  for ac_prog in ar
10284  do
10285    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288$as_echo_n "checking for $ac_word... " >&6; }
10289if ${ac_cv_prog_AR+:} false; then :
10290  $as_echo_n "(cached) " >&6
10291else
10292  if test -n "$AR"; then
10293  ac_cv_prog_AR="$AR" # Let the user override the test.
10294else
10295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296for as_dir in $PATH
10297do
10298  IFS=$as_save_IFS
10299  test -z "$as_dir" && as_dir=.
10300    for ac_exec_ext in '' $ac_executable_extensions; do
10301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304    break 2
10305  fi
10306done
10307  done
10308IFS=$as_save_IFS
10309
10310fi
10311fi
10312AR=$ac_cv_prog_AR
10313if test -n "$AR"; then
10314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10315$as_echo "$AR" >&6; }
10316else
10317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318$as_echo "no" >&6; }
10319fi
10320
10321
10322    test -n "$AR" && break
10323  done
10324fi
10325if test -z "$AR"; then
10326  ac_ct_AR=$AR
10327  for ac_prog in ar
10328do
10329  # Extract the first word of "$ac_prog", so it can be a program name with args.
10330set dummy $ac_prog; ac_word=$2
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332$as_echo_n "checking for $ac_word... " >&6; }
10333if ${ac_cv_prog_ac_ct_AR+:} false; then :
10334  $as_echo_n "(cached) " >&6
10335else
10336  if test -n "$ac_ct_AR"; then
10337  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10338else
10339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340for as_dir in $PATH
10341do
10342  IFS=$as_save_IFS
10343  test -z "$as_dir" && as_dir=.
10344    for ac_exec_ext in '' $ac_executable_extensions; do
10345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346    ac_cv_prog_ac_ct_AR="$ac_prog"
10347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348    break 2
10349  fi
10350done
10351  done
10352IFS=$as_save_IFS
10353
10354fi
10355fi
10356ac_ct_AR=$ac_cv_prog_ac_ct_AR
10357if test -n "$ac_ct_AR"; then
10358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10359$as_echo "$ac_ct_AR" >&6; }
10360else
10361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362$as_echo "no" >&6; }
10363fi
10364
10365
10366  test -n "$ac_ct_AR" && break
10367done
10368
10369  if test "x$ac_ct_AR" = x; then
10370    AR="false"
10371  else
10372    case $cross_compiling:$ac_tool_warned in
10373yes:)
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10376ac_tool_warned=yes ;;
10377esac
10378    AR=$ac_ct_AR
10379  fi
10380fi
10381
10382: ${AR=ar}
10383: ${AR_FLAGS=cru}
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10396$as_echo_n "checking for archiver @FILE support... " >&6; }
10397if ${lt_cv_ar_at_file+:} false; then :
10398  $as_echo_n "(cached) " >&6
10399else
10400  lt_cv_ar_at_file=no
10401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402/* end confdefs.h.  */
10403
10404int
10405main ()
10406{
10407
10408  ;
10409  return 0;
10410}
10411_ACEOF
10412if ac_fn_c_try_compile "$LINENO"; then :
10413  echo conftest.$ac_objext > conftest.lst
10414      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10415      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10416  (eval $lt_ar_try) 2>&5
10417  ac_status=$?
10418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10419  test $ac_status = 0; }
10420      if test 0 -eq "$ac_status"; then
10421	# Ensure the archiver fails upon bogus file names.
10422	rm -f conftest.$ac_objext libconftest.a
10423	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10424  (eval $lt_ar_try) 2>&5
10425  ac_status=$?
10426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10427  test $ac_status = 0; }
10428	if test 0 -ne "$ac_status"; then
10429          lt_cv_ar_at_file=@
10430        fi
10431      fi
10432      rm -f conftest.* libconftest.a
10433
10434fi
10435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436
10437fi
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10439$as_echo "$lt_cv_ar_at_file" >&6; }
10440
10441if test no = "$lt_cv_ar_at_file"; then
10442  archiver_list_spec=
10443else
10444  archiver_list_spec=$lt_cv_ar_at_file
10445fi
10446
10447
10448
10449
10450
10451
10452
10453if test -n "$ac_tool_prefix"; then
10454  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10455set dummy ${ac_tool_prefix}strip; ac_word=$2
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457$as_echo_n "checking for $ac_word... " >&6; }
10458if ${ac_cv_prog_STRIP+:} false; then :
10459  $as_echo_n "(cached) " >&6
10460else
10461  if test -n "$STRIP"; then
10462  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10463else
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467  IFS=$as_save_IFS
10468  test -z "$as_dir" && as_dir=.
10469    for ac_exec_ext in '' $ac_executable_extensions; do
10470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10471    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473    break 2
10474  fi
10475done
10476  done
10477IFS=$as_save_IFS
10478
10479fi
10480fi
10481STRIP=$ac_cv_prog_STRIP
10482if test -n "$STRIP"; then
10483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10484$as_echo "$STRIP" >&6; }
10485else
10486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487$as_echo "no" >&6; }
10488fi
10489
10490
10491fi
10492if test -z "$ac_cv_prog_STRIP"; then
10493  ac_ct_STRIP=$STRIP
10494  # Extract the first word of "strip", so it can be a program name with args.
10495set dummy strip; ac_word=$2
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497$as_echo_n "checking for $ac_word... " >&6; }
10498if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10499  $as_echo_n "(cached) " >&6
10500else
10501  if test -n "$ac_ct_STRIP"; then
10502  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10503else
10504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505for as_dir in $PATH
10506do
10507  IFS=$as_save_IFS
10508  test -z "$as_dir" && as_dir=.
10509    for ac_exec_ext in '' $ac_executable_extensions; do
10510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511    ac_cv_prog_ac_ct_STRIP="strip"
10512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513    break 2
10514  fi
10515done
10516  done
10517IFS=$as_save_IFS
10518
10519fi
10520fi
10521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10522if test -n "$ac_ct_STRIP"; then
10523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10524$as_echo "$ac_ct_STRIP" >&6; }
10525else
10526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527$as_echo "no" >&6; }
10528fi
10529
10530  if test "x$ac_ct_STRIP" = x; then
10531    STRIP=":"
10532  else
10533    case $cross_compiling:$ac_tool_warned in
10534yes:)
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10537ac_tool_warned=yes ;;
10538esac
10539    STRIP=$ac_ct_STRIP
10540  fi
10541else
10542  STRIP="$ac_cv_prog_STRIP"
10543fi
10544
10545test -z "$STRIP" && STRIP=:
10546
10547
10548
10549
10550
10551
10552if test -n "$ac_tool_prefix"; then
10553  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10554set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556$as_echo_n "checking for $ac_word... " >&6; }
10557if ${ac_cv_prog_RANLIB+:} false; then :
10558  $as_echo_n "(cached) " >&6
10559else
10560  if test -n "$RANLIB"; then
10561  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10562else
10563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564for as_dir in $PATH
10565do
10566  IFS=$as_save_IFS
10567  test -z "$as_dir" && as_dir=.
10568    for ac_exec_ext in '' $ac_executable_extensions; do
10569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572    break 2
10573  fi
10574done
10575  done
10576IFS=$as_save_IFS
10577
10578fi
10579fi
10580RANLIB=$ac_cv_prog_RANLIB
10581if test -n "$RANLIB"; then
10582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10583$as_echo "$RANLIB" >&6; }
10584else
10585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586$as_echo "no" >&6; }
10587fi
10588
10589
10590fi
10591if test -z "$ac_cv_prog_RANLIB"; then
10592  ac_ct_RANLIB=$RANLIB
10593  # Extract the first word of "ranlib", so it can be a program name with args.
10594set dummy ranlib; ac_word=$2
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596$as_echo_n "checking for $ac_word... " >&6; }
10597if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10598  $as_echo_n "(cached) " >&6
10599else
10600  if test -n "$ac_ct_RANLIB"; then
10601  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10602else
10603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604for as_dir in $PATH
10605do
10606  IFS=$as_save_IFS
10607  test -z "$as_dir" && as_dir=.
10608    for ac_exec_ext in '' $ac_executable_extensions; do
10609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10610    ac_cv_prog_ac_ct_RANLIB="ranlib"
10611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612    break 2
10613  fi
10614done
10615  done
10616IFS=$as_save_IFS
10617
10618fi
10619fi
10620ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10621if test -n "$ac_ct_RANLIB"; then
10622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10623$as_echo "$ac_ct_RANLIB" >&6; }
10624else
10625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626$as_echo "no" >&6; }
10627fi
10628
10629  if test "x$ac_ct_RANLIB" = x; then
10630    RANLIB=":"
10631  else
10632    case $cross_compiling:$ac_tool_warned in
10633yes:)
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10636ac_tool_warned=yes ;;
10637esac
10638    RANLIB=$ac_ct_RANLIB
10639  fi
10640else
10641  RANLIB="$ac_cv_prog_RANLIB"
10642fi
10643
10644test -z "$RANLIB" && RANLIB=:
10645
10646
10647
10648
10649
10650
10651# Determine commands to create old-style static archives.
10652old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10653old_postinstall_cmds='chmod 644 $oldlib'
10654old_postuninstall_cmds=
10655
10656if test -n "$RANLIB"; then
10657  case $host_os in
10658  bitrig* | openbsd*)
10659    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10660    ;;
10661  *)
10662    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10663    ;;
10664  esac
10665  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10666fi
10667
10668case $host_os in
10669  darwin*)
10670    lock_old_archive_extraction=yes ;;
10671  *)
10672    lock_old_archive_extraction=no ;;
10673esac
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713# If no C compiler was specified, use CC.
10714LTCC=${LTCC-"$CC"}
10715
10716# If no C compiler flags were specified, use CFLAGS.
10717LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10718
10719# Allow CC to be a program name with arguments.
10720compiler=$CC
10721
10722
10723# Check for command to grab the raw symbol name followed by C symbol from nm.
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10725$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10726if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10727  $as_echo_n "(cached) " >&6
10728else
10729
10730# These are sane defaults that work on at least a few old systems.
10731# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10732
10733# Character class describing NM global symbol codes.
10734symcode='[BCDEGRST]'
10735
10736# Regexp to match symbols that can be accessed directly from C.
10737sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10738
10739# Define system-specific variables.
10740case $host_os in
10741aix*)
10742  symcode='[BCDT]'
10743  ;;
10744cygwin* | mingw* | pw32* | cegcc*)
10745  symcode='[ABCDGISTW]'
10746  ;;
10747hpux*)
10748  if test ia64 = "$host_cpu"; then
10749    symcode='[ABCDEGRST]'
10750  fi
10751  ;;
10752irix* | nonstopux*)
10753  symcode='[BCDEGRST]'
10754  ;;
10755osf*)
10756  symcode='[BCDEGQRST]'
10757  ;;
10758solaris*)
10759  symcode='[BDRT]'
10760  ;;
10761sco3.2v5*)
10762  symcode='[DT]'
10763  ;;
10764sysv4.2uw2*)
10765  symcode='[DT]'
10766  ;;
10767sysv5* | sco5v6* | unixware* | OpenUNIX*)
10768  symcode='[ABDT]'
10769  ;;
10770sysv4)
10771  symcode='[DFNSTU]'
10772  ;;
10773esac
10774
10775# If we're using GNU nm, then use its standard symbol codes.
10776case `$NM -V 2>&1` in
10777*GNU* | *'with BFD'*)
10778  symcode='[ABCDGIRSTW]' ;;
10779esac
10780
10781if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10782  # Gets list of data symbols to import.
10783  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10784  # Adjust the below global symbol transforms to fixup imported variables.
10785  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10786  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10787  lt_c_name_lib_hook="\
10788  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10789  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10790else
10791  # Disable hooks by default.
10792  lt_cv_sys_global_symbol_to_import=
10793  lt_cdecl_hook=
10794  lt_c_name_hook=
10795  lt_c_name_lib_hook=
10796fi
10797
10798# Transform an extracted symbol line into a proper C declaration.
10799# Some systems (esp. on ia64) link data and code symbols differently,
10800# so use this general approach.
10801lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10802$lt_cdecl_hook\
10803" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10804" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10805
10806# Transform an extracted symbol line into symbol name and symbol address
10807lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10808$lt_c_name_hook\
10809" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10810" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10811
10812# Transform an extracted symbol line into symbol name with lib prefix and
10813# symbol address.
10814lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10815$lt_c_name_lib_hook\
10816" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10817" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10818" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10819
10820# Handle CRLF in mingw tool chain
10821opt_cr=
10822case $build_os in
10823mingw*)
10824  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10825  ;;
10826esac
10827
10828# Try without a prefix underscore, then with it.
10829for ac_symprfx in "" "_"; do
10830
10831  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10832  symxfrm="\\1 $ac_symprfx\\2 \\2"
10833
10834  # Write the raw and C identifiers.
10835  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10836    # Fake it for dumpbin and say T for any non-static function,
10837    # D for any global variable and I for any imported variable.
10838    # Also find C++ and __fastcall symbols from MSVC++,
10839    # which start with @ or ?.
10840    lt_cv_sys_global_symbol_pipe="$AWK '"\
10841"     {last_section=section; section=\$ 3};"\
10842"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10843"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10844"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10845"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10846"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10847"     \$ 0!~/External *\|/{next};"\
10848"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10849"     {if(hide[section]) next};"\
10850"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10851"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10852"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10853"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10854"     ' prfx=^$ac_symprfx"
10855  else
10856    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10857  fi
10858  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10859
10860  # Check to see that the pipe works correctly.
10861  pipe_works=no
10862
10863  rm -f conftest*
10864  cat > conftest.$ac_ext <<_LT_EOF
10865#ifdef __cplusplus
10866extern "C" {
10867#endif
10868char nm_test_var;
10869void nm_test_func(void);
10870void nm_test_func(void){}
10871#ifdef __cplusplus
10872}
10873#endif
10874int main(){nm_test_var='a';nm_test_func();return(0);}
10875_LT_EOF
10876
10877  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10878  (eval $ac_compile) 2>&5
10879  ac_status=$?
10880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10881  test $ac_status = 0; }; then
10882    # Now try to grab the symbols.
10883    nlist=conftest.nm
10884    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10885  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10886  ac_status=$?
10887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10888  test $ac_status = 0; } && test -s "$nlist"; then
10889      # Try sorting and uniquifying the output.
10890      if sort "$nlist" | uniq > "$nlist"T; then
10891	mv -f "$nlist"T "$nlist"
10892      else
10893	rm -f "$nlist"T
10894      fi
10895
10896      # Make sure that we snagged all the symbols we need.
10897      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10898	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10899	  cat <<_LT_EOF > conftest.$ac_ext
10900/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10901#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10902/* DATA imports from DLLs on WIN32 can't be const, because runtime
10903   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10904# define LT_DLSYM_CONST
10905#elif defined __osf__
10906/* This system does not cope well with relocations in const data.  */
10907# define LT_DLSYM_CONST
10908#else
10909# define LT_DLSYM_CONST const
10910#endif
10911
10912#ifdef __cplusplus
10913extern "C" {
10914#endif
10915
10916_LT_EOF
10917	  # Now generate the symbol file.
10918	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10919
10920	  cat <<_LT_EOF >> conftest.$ac_ext
10921
10922/* The mapping between symbol names and symbols.  */
10923LT_DLSYM_CONST struct {
10924  const char *name;
10925  void       *address;
10926}
10927lt__PROGRAM__LTX_preloaded_symbols[] =
10928{
10929  { "@PROGRAM@", (void *) 0 },
10930_LT_EOF
10931	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10932	  cat <<\_LT_EOF >> conftest.$ac_ext
10933  {0, (void *) 0}
10934};
10935
10936/* This works around a problem in FreeBSD linker */
10937#ifdef FREEBSD_WORKAROUND
10938static const void *lt_preloaded_setup() {
10939  return lt__PROGRAM__LTX_preloaded_symbols;
10940}
10941#endif
10942
10943#ifdef __cplusplus
10944}
10945#endif
10946_LT_EOF
10947	  # Now try linking the two files.
10948	  mv conftest.$ac_objext conftstm.$ac_objext
10949	  lt_globsym_save_LIBS=$LIBS
10950	  lt_globsym_save_CFLAGS=$CFLAGS
10951	  LIBS=conftstm.$ac_objext
10952	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10953	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10954  (eval $ac_link) 2>&5
10955  ac_status=$?
10956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10957  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10958	    pipe_works=yes
10959	  fi
10960	  LIBS=$lt_globsym_save_LIBS
10961	  CFLAGS=$lt_globsym_save_CFLAGS
10962	else
10963	  echo "cannot find nm_test_func in $nlist" >&5
10964	fi
10965      else
10966	echo "cannot find nm_test_var in $nlist" >&5
10967      fi
10968    else
10969      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10970    fi
10971  else
10972    echo "$progname: failed program was:" >&5
10973    cat conftest.$ac_ext >&5
10974  fi
10975  rm -rf conftest* conftst*
10976
10977  # Do not use the global_symbol_pipe unless it works.
10978  if test yes = "$pipe_works"; then
10979    break
10980  else
10981    lt_cv_sys_global_symbol_pipe=
10982  fi
10983done
10984
10985fi
10986
10987if test -z "$lt_cv_sys_global_symbol_pipe"; then
10988  lt_cv_sys_global_symbol_to_cdecl=
10989fi
10990if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10992$as_echo "failed" >&6; }
10993else
10994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10995$as_echo "ok" >&6; }
10996fi
10997
10998# Response file support.
10999if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11000  nm_file_list_spec='@'
11001elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11002  nm_file_list_spec='@'
11003fi
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11042$as_echo_n "checking for sysroot... " >&6; }
11043
11044# Check whether --with-sysroot was given.
11045if test "${with_sysroot+set}" = set; then :
11046  withval=$with_sysroot;
11047else
11048  with_sysroot=no
11049fi
11050
11051
11052lt_sysroot=
11053case $with_sysroot in #(
11054 yes)
11055   if test yes = "$GCC"; then
11056     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11057   fi
11058   ;; #(
11059 /*)
11060   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11061   ;; #(
11062 no|'')
11063   ;; #(
11064 *)
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11066$as_echo "$with_sysroot" >&6; }
11067   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11068   ;;
11069esac
11070
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11072$as_echo "${lt_sysroot:-no}" >&6; }
11073
11074
11075
11076
11077
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11079$as_echo_n "checking for a working dd... " >&6; }
11080if ${ac_cv_path_lt_DD+:} false; then :
11081  $as_echo_n "(cached) " >&6
11082else
11083  printf 0123456789abcdef0123456789abcdef >conftest.i
11084cat conftest.i conftest.i >conftest2.i
11085: ${lt_DD:=$DD}
11086if test -z "$lt_DD"; then
11087  ac_path_lt_DD_found=false
11088  # Loop through the user's path and test for each of PROGNAME-LIST
11089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090for as_dir in $PATH
11091do
11092  IFS=$as_save_IFS
11093  test -z "$as_dir" && as_dir=.
11094    for ac_prog in dd; do
11095    for ac_exec_ext in '' $ac_executable_extensions; do
11096      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
11097      as_fn_executable_p "$ac_path_lt_DD" || continue
11098if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11099  cmp -s conftest.i conftest.out \
11100  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11101fi
11102      $ac_path_lt_DD_found && break 3
11103    done
11104  done
11105  done
11106IFS=$as_save_IFS
11107  if test -z "$ac_cv_path_lt_DD"; then
11108    :
11109  fi
11110else
11111  ac_cv_path_lt_DD=$lt_DD
11112fi
11113
11114rm -f conftest.i conftest2.i conftest.out
11115fi
11116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11117$as_echo "$ac_cv_path_lt_DD" >&6; }
11118
11119
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11121$as_echo_n "checking how to truncate binary pipes... " >&6; }
11122if ${lt_cv_truncate_bin+:} false; then :
11123  $as_echo_n "(cached) " >&6
11124else
11125  printf 0123456789abcdef0123456789abcdef >conftest.i
11126cat conftest.i conftest.i >conftest2.i
11127lt_cv_truncate_bin=
11128if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11129  cmp -s conftest.i conftest.out \
11130  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11131fi
11132rm -f conftest.i conftest2.i conftest.out
11133test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11134fi
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11136$as_echo "$lt_cv_truncate_bin" >&6; }
11137
11138
11139
11140
11141
11142
11143
11144# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
11145func_cc_basename ()
11146{
11147    for cc_temp in $*""; do
11148      case $cc_temp in
11149        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11150        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11151        \-*) ;;
11152        *) break;;
11153      esac
11154    done
11155    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11156}
11157
11158# Check whether --enable-libtool-lock was given.
11159if test "${enable_libtool_lock+set}" = set; then :
11160  enableval=$enable_libtool_lock;
11161fi
11162
11163test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11164
11165# Some flags need to be propagated to the compiler or linker for good
11166# libtool support.
11167case $host in
11168ia64-*-hpux*)
11169  # Find out what ABI is being produced by ac_compile, and set mode
11170  # options accordingly.
11171  echo 'int i;' > conftest.$ac_ext
11172  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11173  (eval $ac_compile) 2>&5
11174  ac_status=$?
11175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11176  test $ac_status = 0; }; then
11177    case `/usr/bin/file conftest.$ac_objext` in
11178      *ELF-32*)
11179	HPUX_IA64_MODE=32
11180	;;
11181      *ELF-64*)
11182	HPUX_IA64_MODE=64
11183	;;
11184    esac
11185  fi
11186  rm -rf conftest*
11187  ;;
11188*-*-irix6*)
11189  # Find out what ABI is being produced by ac_compile, and set linker
11190  # options accordingly.
11191  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11192  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11193  (eval $ac_compile) 2>&5
11194  ac_status=$?
11195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11196  test $ac_status = 0; }; then
11197    if test yes = "$lt_cv_prog_gnu_ld"; then
11198      case `/usr/bin/file conftest.$ac_objext` in
11199	*32-bit*)
11200	  LD="${LD-ld} -melf32bsmip"
11201	  ;;
11202	*N32*)
11203	  LD="${LD-ld} -melf32bmipn32"
11204	  ;;
11205	*64-bit*)
11206	  LD="${LD-ld} -melf64bmip"
11207	;;
11208      esac
11209    else
11210      case `/usr/bin/file conftest.$ac_objext` in
11211	*32-bit*)
11212	  LD="${LD-ld} -32"
11213	  ;;
11214	*N32*)
11215	  LD="${LD-ld} -n32"
11216	  ;;
11217	*64-bit*)
11218	  LD="${LD-ld} -64"
11219	  ;;
11220      esac
11221    fi
11222  fi
11223  rm -rf conftest*
11224  ;;
11225
11226mips64*-*linux*)
11227  # Find out what ABI is being produced by ac_compile, and set linker
11228  # options accordingly.
11229  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11230  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11231  (eval $ac_compile) 2>&5
11232  ac_status=$?
11233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11234  test $ac_status = 0; }; then
11235    emul=elf
11236    case `/usr/bin/file conftest.$ac_objext` in
11237      *32-bit*)
11238	emul="${emul}32"
11239	;;
11240      *64-bit*)
11241	emul="${emul}64"
11242	;;
11243    esac
11244    case `/usr/bin/file conftest.$ac_objext` in
11245      *MSB*)
11246	emul="${emul}btsmip"
11247	;;
11248      *LSB*)
11249	emul="${emul}ltsmip"
11250	;;
11251    esac
11252    case `/usr/bin/file conftest.$ac_objext` in
11253      *N32*)
11254	emul="${emul}n32"
11255	;;
11256    esac
11257    LD="${LD-ld} -m $emul"
11258  fi
11259  rm -rf conftest*
11260  ;;
11261
11262x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11263s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11264  # Find out what ABI is being produced by ac_compile, and set linker
11265  # options accordingly.  Note that the listed cases only cover the
11266  # situations where additional linker options are needed (such as when
11267  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11268  # vice versa); the common cases where no linker options are needed do
11269  # not appear in the list.
11270  echo 'int i;' > conftest.$ac_ext
11271  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11272  (eval $ac_compile) 2>&5
11273  ac_status=$?
11274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11275  test $ac_status = 0; }; then
11276    case `/usr/bin/file conftest.o` in
11277      *32-bit*)
11278	case $host in
11279	  x86_64-*kfreebsd*-gnu)
11280	    LD="${LD-ld} -m elf_i386_fbsd"
11281	    ;;
11282	  x86_64-*linux*)
11283	    case `/usr/bin/file conftest.o` in
11284	      *x86-64*)
11285		LD="${LD-ld} -m elf32_x86_64"
11286		;;
11287	      *)
11288		LD="${LD-ld} -m elf_i386"
11289		;;
11290	    esac
11291	    ;;
11292	  powerpc64le-*linux*)
11293	    LD="${LD-ld} -m elf32lppclinux"
11294	    ;;
11295	  powerpc64-*linux*)
11296	    LD="${LD-ld} -m elf32ppclinux"
11297	    ;;
11298	  s390x-*linux*)
11299	    LD="${LD-ld} -m elf_s390"
11300	    ;;
11301	  sparc64-*linux*)
11302	    LD="${LD-ld} -m elf32_sparc"
11303	    ;;
11304	esac
11305	;;
11306      *64-bit*)
11307	case $host in
11308	  x86_64-*kfreebsd*-gnu)
11309	    LD="${LD-ld} -m elf_x86_64_fbsd"
11310	    ;;
11311	  x86_64-*linux*)
11312	    LD="${LD-ld} -m elf_x86_64"
11313	    ;;
11314	  powerpcle-*linux*)
11315	    LD="${LD-ld} -m elf64lppc"
11316	    ;;
11317	  powerpc-*linux*)
11318	    LD="${LD-ld} -m elf64ppc"
11319	    ;;
11320	  s390*-*linux*|s390*-*tpf*)
11321	    LD="${LD-ld} -m elf64_s390"
11322	    ;;
11323	  sparc*-*linux*)
11324	    LD="${LD-ld} -m elf64_sparc"
11325	    ;;
11326	esac
11327	;;
11328    esac
11329  fi
11330  rm -rf conftest*
11331  ;;
11332
11333*-*-sco3.2v5*)
11334  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11335  SAVE_CFLAGS=$CFLAGS
11336  CFLAGS="$CFLAGS -belf"
11337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11338$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11339if ${lt_cv_cc_needs_belf+:} false; then :
11340  $as_echo_n "(cached) " >&6
11341else
11342  ac_ext=c
11343ac_cpp='$CPP $CPPFLAGS'
11344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346ac_compiler_gnu=$ac_cv_c_compiler_gnu
11347
11348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349/* end confdefs.h.  */
11350
11351int
11352main ()
11353{
11354
11355  ;
11356  return 0;
11357}
11358_ACEOF
11359if ac_fn_c_try_link "$LINENO"; then :
11360  lt_cv_cc_needs_belf=yes
11361else
11362  lt_cv_cc_needs_belf=no
11363fi
11364rm -f core conftest.err conftest.$ac_objext \
11365    conftest$ac_exeext conftest.$ac_ext
11366     ac_ext=c
11367ac_cpp='$CPP $CPPFLAGS'
11368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11370ac_compiler_gnu=$ac_cv_c_compiler_gnu
11371
11372fi
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11374$as_echo "$lt_cv_cc_needs_belf" >&6; }
11375  if test yes != "$lt_cv_cc_needs_belf"; then
11376    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11377    CFLAGS=$SAVE_CFLAGS
11378  fi
11379  ;;
11380*-*solaris*)
11381  # Find out what ABI is being produced by ac_compile, and set linker
11382  # options accordingly.
11383  echo 'int i;' > conftest.$ac_ext
11384  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11385  (eval $ac_compile) 2>&5
11386  ac_status=$?
11387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388  test $ac_status = 0; }; then
11389    case `/usr/bin/file conftest.o` in
11390    *64-bit*)
11391      case $lt_cv_prog_gnu_ld in
11392      yes*)
11393        case $host in
11394        i?86-*-solaris*|x86_64-*-solaris*)
11395          LD="${LD-ld} -m elf_x86_64"
11396          ;;
11397        sparc*-*-solaris*)
11398          LD="${LD-ld} -m elf64_sparc"
11399          ;;
11400        esac
11401        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11402        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11403          LD=${LD-ld}_sol2
11404        fi
11405        ;;
11406      *)
11407	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11408	  LD="${LD-ld} -64"
11409	fi
11410	;;
11411      esac
11412      ;;
11413    esac
11414  fi
11415  rm -rf conftest*
11416  ;;
11417esac
11418
11419need_locks=$enable_libtool_lock
11420
11421if test -n "$ac_tool_prefix"; then
11422  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11423set dummy ${ac_tool_prefix}mt; ac_word=$2
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425$as_echo_n "checking for $ac_word... " >&6; }
11426if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11427  $as_echo_n "(cached) " >&6
11428else
11429  if test -n "$MANIFEST_TOOL"; then
11430  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11431else
11432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $PATH
11434do
11435  IFS=$as_save_IFS
11436  test -z "$as_dir" && as_dir=.
11437    for ac_exec_ext in '' $ac_executable_extensions; do
11438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441    break 2
11442  fi
11443done
11444  done
11445IFS=$as_save_IFS
11446
11447fi
11448fi
11449MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11450if test -n "$MANIFEST_TOOL"; then
11451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11452$as_echo "$MANIFEST_TOOL" >&6; }
11453else
11454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455$as_echo "no" >&6; }
11456fi
11457
11458
11459fi
11460if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11461  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11462  # Extract the first word of "mt", so it can be a program name with args.
11463set dummy mt; ac_word=$2
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465$as_echo_n "checking for $ac_word... " >&6; }
11466if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11467  $as_echo_n "(cached) " >&6
11468else
11469  if test -n "$ac_ct_MANIFEST_TOOL"; then
11470  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11471else
11472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473for as_dir in $PATH
11474do
11475  IFS=$as_save_IFS
11476  test -z "$as_dir" && as_dir=.
11477    for ac_exec_ext in '' $ac_executable_extensions; do
11478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481    break 2
11482  fi
11483done
11484  done
11485IFS=$as_save_IFS
11486
11487fi
11488fi
11489ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11490if test -n "$ac_ct_MANIFEST_TOOL"; then
11491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11492$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11493else
11494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495$as_echo "no" >&6; }
11496fi
11497
11498  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11499    MANIFEST_TOOL=":"
11500  else
11501    case $cross_compiling:$ac_tool_warned in
11502yes:)
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11505ac_tool_warned=yes ;;
11506esac
11507    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11508  fi
11509else
11510  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11511fi
11512
11513test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11515$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11516if ${lt_cv_path_mainfest_tool+:} false; then :
11517  $as_echo_n "(cached) " >&6
11518else
11519  lt_cv_path_mainfest_tool=no
11520  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11521  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11522  cat conftest.err >&5
11523  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11524    lt_cv_path_mainfest_tool=yes
11525  fi
11526  rm -f conftest*
11527fi
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11529$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11530if test yes != "$lt_cv_path_mainfest_tool"; then
11531  MANIFEST_TOOL=:
11532fi
11533
11534
11535
11536
11537
11538
11539  case $host_os in
11540    rhapsody* | darwin*)
11541    if test -n "$ac_tool_prefix"; then
11542  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11543set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545$as_echo_n "checking for $ac_word... " >&6; }
11546if ${ac_cv_prog_DSYMUTIL+:} false; then :
11547  $as_echo_n "(cached) " >&6
11548else
11549  if test -n "$DSYMUTIL"; then
11550  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11551else
11552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553for as_dir in $PATH
11554do
11555  IFS=$as_save_IFS
11556  test -z "$as_dir" && as_dir=.
11557    for ac_exec_ext in '' $ac_executable_extensions; do
11558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11559    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11561    break 2
11562  fi
11563done
11564  done
11565IFS=$as_save_IFS
11566
11567fi
11568fi
11569DSYMUTIL=$ac_cv_prog_DSYMUTIL
11570if test -n "$DSYMUTIL"; then
11571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11572$as_echo "$DSYMUTIL" >&6; }
11573else
11574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575$as_echo "no" >&6; }
11576fi
11577
11578
11579fi
11580if test -z "$ac_cv_prog_DSYMUTIL"; then
11581  ac_ct_DSYMUTIL=$DSYMUTIL
11582  # Extract the first word of "dsymutil", so it can be a program name with args.
11583set dummy dsymutil; ac_word=$2
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585$as_echo_n "checking for $ac_word... " >&6; }
11586if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11587  $as_echo_n "(cached) " >&6
11588else
11589  if test -n "$ac_ct_DSYMUTIL"; then
11590  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11591else
11592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593for as_dir in $PATH
11594do
11595  IFS=$as_save_IFS
11596  test -z "$as_dir" && as_dir=.
11597    for ac_exec_ext in '' $ac_executable_extensions; do
11598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601    break 2
11602  fi
11603done
11604  done
11605IFS=$as_save_IFS
11606
11607fi
11608fi
11609ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11610if test -n "$ac_ct_DSYMUTIL"; then
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11612$as_echo "$ac_ct_DSYMUTIL" >&6; }
11613else
11614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615$as_echo "no" >&6; }
11616fi
11617
11618  if test "x$ac_ct_DSYMUTIL" = x; then
11619    DSYMUTIL=":"
11620  else
11621    case $cross_compiling:$ac_tool_warned in
11622yes:)
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11625ac_tool_warned=yes ;;
11626esac
11627    DSYMUTIL=$ac_ct_DSYMUTIL
11628  fi
11629else
11630  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11631fi
11632
11633    if test -n "$ac_tool_prefix"; then
11634  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11635set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637$as_echo_n "checking for $ac_word... " >&6; }
11638if ${ac_cv_prog_NMEDIT+:} false; then :
11639  $as_echo_n "(cached) " >&6
11640else
11641  if test -n "$NMEDIT"; then
11642  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11643else
11644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645for as_dir in $PATH
11646do
11647  IFS=$as_save_IFS
11648  test -z "$as_dir" && as_dir=.
11649    for ac_exec_ext in '' $ac_executable_extensions; do
11650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653    break 2
11654  fi
11655done
11656  done
11657IFS=$as_save_IFS
11658
11659fi
11660fi
11661NMEDIT=$ac_cv_prog_NMEDIT
11662if test -n "$NMEDIT"; then
11663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11664$as_echo "$NMEDIT" >&6; }
11665else
11666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667$as_echo "no" >&6; }
11668fi
11669
11670
11671fi
11672if test -z "$ac_cv_prog_NMEDIT"; then
11673  ac_ct_NMEDIT=$NMEDIT
11674  # Extract the first word of "nmedit", so it can be a program name with args.
11675set dummy nmedit; ac_word=$2
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677$as_echo_n "checking for $ac_word... " >&6; }
11678if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11679  $as_echo_n "(cached) " >&6
11680else
11681  if test -n "$ac_ct_NMEDIT"; then
11682  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11683else
11684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685for as_dir in $PATH
11686do
11687  IFS=$as_save_IFS
11688  test -z "$as_dir" && as_dir=.
11689    for ac_exec_ext in '' $ac_executable_extensions; do
11690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11691    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693    break 2
11694  fi
11695done
11696  done
11697IFS=$as_save_IFS
11698
11699fi
11700fi
11701ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11702if test -n "$ac_ct_NMEDIT"; then
11703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11704$as_echo "$ac_ct_NMEDIT" >&6; }
11705else
11706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707$as_echo "no" >&6; }
11708fi
11709
11710  if test "x$ac_ct_NMEDIT" = x; then
11711    NMEDIT=":"
11712  else
11713    case $cross_compiling:$ac_tool_warned in
11714yes:)
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11717ac_tool_warned=yes ;;
11718esac
11719    NMEDIT=$ac_ct_NMEDIT
11720  fi
11721else
11722  NMEDIT="$ac_cv_prog_NMEDIT"
11723fi
11724
11725    if test -n "$ac_tool_prefix"; then
11726  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11727set dummy ${ac_tool_prefix}lipo; ac_word=$2
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729$as_echo_n "checking for $ac_word... " >&6; }
11730if ${ac_cv_prog_LIPO+:} false; then :
11731  $as_echo_n "(cached) " >&6
11732else
11733  if test -n "$LIPO"; then
11734  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11735else
11736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739  IFS=$as_save_IFS
11740  test -z "$as_dir" && as_dir=.
11741    for ac_exec_ext in '' $ac_executable_extensions; do
11742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11743    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745    break 2
11746  fi
11747done
11748  done
11749IFS=$as_save_IFS
11750
11751fi
11752fi
11753LIPO=$ac_cv_prog_LIPO
11754if test -n "$LIPO"; then
11755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11756$as_echo "$LIPO" >&6; }
11757else
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
11760fi
11761
11762
11763fi
11764if test -z "$ac_cv_prog_LIPO"; then
11765  ac_ct_LIPO=$LIPO
11766  # Extract the first word of "lipo", so it can be a program name with args.
11767set dummy lipo; ac_word=$2
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769$as_echo_n "checking for $ac_word... " >&6; }
11770if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11771  $as_echo_n "(cached) " >&6
11772else
11773  if test -n "$ac_ct_LIPO"; then
11774  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11775else
11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779  IFS=$as_save_IFS
11780  test -z "$as_dir" && as_dir=.
11781    for ac_exec_ext in '' $ac_executable_extensions; do
11782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783    ac_cv_prog_ac_ct_LIPO="lipo"
11784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785    break 2
11786  fi
11787done
11788  done
11789IFS=$as_save_IFS
11790
11791fi
11792fi
11793ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11794if test -n "$ac_ct_LIPO"; then
11795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11796$as_echo "$ac_ct_LIPO" >&6; }
11797else
11798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
11800fi
11801
11802  if test "x$ac_ct_LIPO" = x; then
11803    LIPO=":"
11804  else
11805    case $cross_compiling:$ac_tool_warned in
11806yes:)
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11809ac_tool_warned=yes ;;
11810esac
11811    LIPO=$ac_ct_LIPO
11812  fi
11813else
11814  LIPO="$ac_cv_prog_LIPO"
11815fi
11816
11817    if test -n "$ac_tool_prefix"; then
11818  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11819set dummy ${ac_tool_prefix}otool; ac_word=$2
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821$as_echo_n "checking for $ac_word... " >&6; }
11822if ${ac_cv_prog_OTOOL+:} false; then :
11823  $as_echo_n "(cached) " >&6
11824else
11825  if test -n "$OTOOL"; then
11826  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11827else
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831  IFS=$as_save_IFS
11832  test -z "$as_dir" && as_dir=.
11833    for ac_exec_ext in '' $ac_executable_extensions; do
11834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837    break 2
11838  fi
11839done
11840  done
11841IFS=$as_save_IFS
11842
11843fi
11844fi
11845OTOOL=$ac_cv_prog_OTOOL
11846if test -n "$OTOOL"; then
11847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11848$as_echo "$OTOOL" >&6; }
11849else
11850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
11852fi
11853
11854
11855fi
11856if test -z "$ac_cv_prog_OTOOL"; then
11857  ac_ct_OTOOL=$OTOOL
11858  # Extract the first word of "otool", so it can be a program name with args.
11859set dummy otool; ac_word=$2
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861$as_echo_n "checking for $ac_word... " >&6; }
11862if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  if test -n "$ac_ct_OTOOL"; then
11866  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11867else
11868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869for as_dir in $PATH
11870do
11871  IFS=$as_save_IFS
11872  test -z "$as_dir" && as_dir=.
11873    for ac_exec_ext in '' $ac_executable_extensions; do
11874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875    ac_cv_prog_ac_ct_OTOOL="otool"
11876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877    break 2
11878  fi
11879done
11880  done
11881IFS=$as_save_IFS
11882
11883fi
11884fi
11885ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11886if test -n "$ac_ct_OTOOL"; then
11887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11888$as_echo "$ac_ct_OTOOL" >&6; }
11889else
11890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892fi
11893
11894  if test "x$ac_ct_OTOOL" = x; then
11895    OTOOL=":"
11896  else
11897    case $cross_compiling:$ac_tool_warned in
11898yes:)
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11901ac_tool_warned=yes ;;
11902esac
11903    OTOOL=$ac_ct_OTOOL
11904  fi
11905else
11906  OTOOL="$ac_cv_prog_OTOOL"
11907fi
11908
11909    if test -n "$ac_tool_prefix"; then
11910  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11911set dummy ${ac_tool_prefix}otool64; ac_word=$2
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913$as_echo_n "checking for $ac_word... " >&6; }
11914if ${ac_cv_prog_OTOOL64+:} false; then :
11915  $as_echo_n "(cached) " >&6
11916else
11917  if test -n "$OTOOL64"; then
11918  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11919else
11920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921for as_dir in $PATH
11922do
11923  IFS=$as_save_IFS
11924  test -z "$as_dir" && as_dir=.
11925    for ac_exec_ext in '' $ac_executable_extensions; do
11926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11927    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929    break 2
11930  fi
11931done
11932  done
11933IFS=$as_save_IFS
11934
11935fi
11936fi
11937OTOOL64=$ac_cv_prog_OTOOL64
11938if test -n "$OTOOL64"; then
11939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11940$as_echo "$OTOOL64" >&6; }
11941else
11942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943$as_echo "no" >&6; }
11944fi
11945
11946
11947fi
11948if test -z "$ac_cv_prog_OTOOL64"; then
11949  ac_ct_OTOOL64=$OTOOL64
11950  # Extract the first word of "otool64", so it can be a program name with args.
11951set dummy otool64; ac_word=$2
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953$as_echo_n "checking for $ac_word... " >&6; }
11954if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11955  $as_echo_n "(cached) " >&6
11956else
11957  if test -n "$ac_ct_OTOOL64"; then
11958  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11959else
11960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961for as_dir in $PATH
11962do
11963  IFS=$as_save_IFS
11964  test -z "$as_dir" && as_dir=.
11965    for ac_exec_ext in '' $ac_executable_extensions; do
11966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967    ac_cv_prog_ac_ct_OTOOL64="otool64"
11968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969    break 2
11970  fi
11971done
11972  done
11973IFS=$as_save_IFS
11974
11975fi
11976fi
11977ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11978if test -n "$ac_ct_OTOOL64"; then
11979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11980$as_echo "$ac_ct_OTOOL64" >&6; }
11981else
11982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
11984fi
11985
11986  if test "x$ac_ct_OTOOL64" = x; then
11987    OTOOL64=":"
11988  else
11989    case $cross_compiling:$ac_tool_warned in
11990yes:)
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11993ac_tool_warned=yes ;;
11994esac
11995    OTOOL64=$ac_ct_OTOOL64
11996  fi
11997else
11998  OTOOL64="$ac_cv_prog_OTOOL64"
11999fi
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12028$as_echo_n "checking for -single_module linker flag... " >&6; }
12029if ${lt_cv_apple_cc_single_mod+:} false; then :
12030  $as_echo_n "(cached) " >&6
12031else
12032  lt_cv_apple_cc_single_mod=no
12033      if test -z "$LT_MULTI_MODULE"; then
12034	# By default we will add the -single_module flag. You can override
12035	# by either setting the environment variable LT_MULTI_MODULE
12036	# non-empty at configure time, or by adding -multi_module to the
12037	# link flags.
12038	rm -rf libconftest.dylib*
12039	echo "int foo(void){return 1;}" > conftest.c
12040	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12041-dynamiclib -Wl,-single_module conftest.c" >&5
12042	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12043	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12044        _lt_result=$?
12045	# If there is a non-empty error log, and "single_module"
12046	# appears in it, assume the flag caused a linker warning
12047        if test -s conftest.err && $GREP single_module conftest.err; then
12048	  cat conftest.err >&5
12049	# Otherwise, if the output was created with a 0 exit code from
12050	# the compiler, it worked.
12051	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12052	  lt_cv_apple_cc_single_mod=yes
12053	else
12054	  cat conftest.err >&5
12055	fi
12056	rm -rf libconftest.dylib*
12057	rm -f conftest.*
12058      fi
12059fi
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12061$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12062
12063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12064$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12065if ${lt_cv_ld_exported_symbols_list+:} false; then :
12066  $as_echo_n "(cached) " >&6
12067else
12068  lt_cv_ld_exported_symbols_list=no
12069      save_LDFLAGS=$LDFLAGS
12070      echo "_main" > conftest.sym
12071      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12072      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073/* end confdefs.h.  */
12074
12075int
12076main ()
12077{
12078
12079  ;
12080  return 0;
12081}
12082_ACEOF
12083if ac_fn_c_try_link "$LINENO"; then :
12084  lt_cv_ld_exported_symbols_list=yes
12085else
12086  lt_cv_ld_exported_symbols_list=no
12087fi
12088rm -f core conftest.err conftest.$ac_objext \
12089    conftest$ac_exeext conftest.$ac_ext
12090	LDFLAGS=$save_LDFLAGS
12091
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12094$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12095
12096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12097$as_echo_n "checking for -force_load linker flag... " >&6; }
12098if ${lt_cv_ld_force_load+:} false; then :
12099  $as_echo_n "(cached) " >&6
12100else
12101  lt_cv_ld_force_load=no
12102      cat > conftest.c << _LT_EOF
12103int forced_loaded() { return 2;}
12104_LT_EOF
12105      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12106      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12107      echo "$AR cru libconftest.a conftest.o" >&5
12108      $AR cru libconftest.a conftest.o 2>&5
12109      echo "$RANLIB libconftest.a" >&5
12110      $RANLIB libconftest.a 2>&5
12111      cat > conftest.c << _LT_EOF
12112int main() { return 0;}
12113_LT_EOF
12114      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12115      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12116      _lt_result=$?
12117      if test -s conftest.err && $GREP force_load conftest.err; then
12118	cat conftest.err >&5
12119      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12120	lt_cv_ld_force_load=yes
12121      else
12122	cat conftest.err >&5
12123      fi
12124        rm -f conftest.err libconftest.a conftest conftest.c
12125        rm -rf conftest.dSYM
12126
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12129$as_echo "$lt_cv_ld_force_load" >&6; }
12130    case $host_os in
12131    rhapsody* | darwin1.[012])
12132      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12133    darwin1.*)
12134      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12135    darwin*) # darwin 5.x on
12136      # if running on 10.5 or later, the deployment target defaults
12137      # to the OS version, if on x86, and 10.4, the deployment
12138      # target defaults to 10.4. Don't you love it?
12139      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12140	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12141	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12142	10.[012][,.]*)
12143	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12144	10.*)
12145	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12146      esac
12147    ;;
12148  esac
12149    if test yes = "$lt_cv_apple_cc_single_mod"; then
12150      _lt_dar_single_mod='$single_module'
12151    fi
12152    if test yes = "$lt_cv_ld_exported_symbols_list"; then
12153      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12154    else
12155      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12156    fi
12157    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12158      _lt_dsymutil='~$DSYMUTIL $lib || :'
12159    else
12160      _lt_dsymutil=
12161    fi
12162    ;;
12163  esac
12164
12165# func_munge_path_list VARIABLE PATH
12166# -----------------------------------
12167# VARIABLE is name of variable containing _space_ separated list of
12168# directories to be munged by the contents of PATH, which is string
12169# having a format:
12170# "DIR[:DIR]:"
12171#       string "DIR[ DIR]" will be prepended to VARIABLE
12172# ":DIR[:DIR]"
12173#       string "DIR[ DIR]" will be appended to VARIABLE
12174# "DIRP[:DIRP]::[DIRA:]DIRA"
12175#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12176#       "DIRA[ DIRA]" will be appended to VARIABLE
12177# "DIR[:DIR]"
12178#       VARIABLE will be replaced by "DIR[ DIR]"
12179func_munge_path_list ()
12180{
12181    case x$2 in
12182    x)
12183        ;;
12184    *:)
12185        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12186        ;;
12187    x:*)
12188        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12189        ;;
12190    *::*)
12191        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12192        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12193        ;;
12194    *)
12195        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12196        ;;
12197    esac
12198}
12199
12200for ac_header in dlfcn.h
12201do :
12202  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12203"
12204if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12205  cat >>confdefs.h <<_ACEOF
12206#define HAVE_DLFCN_H 1
12207_ACEOF
12208
12209fi
12210
12211done
12212
12213
12214
12215
12216
12217# Set options
12218
12219
12220
12221        enable_dlopen=no
12222
12223
12224  enable_win32_dll=no
12225
12226
12227            # Check whether --enable-shared was given.
12228if test "${enable_shared+set}" = set; then :
12229  enableval=$enable_shared; p=${PACKAGE-default}
12230    case $enableval in
12231    yes) enable_shared=yes ;;
12232    no) enable_shared=no ;;
12233    *)
12234      enable_shared=no
12235      # Look at the argument we got.  We use all the common list separators.
12236      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12237      for pkg in $enableval; do
12238	IFS=$lt_save_ifs
12239	if test "X$pkg" = "X$p"; then
12240	  enable_shared=yes
12241	fi
12242      done
12243      IFS=$lt_save_ifs
12244      ;;
12245    esac
12246else
12247  enable_shared=yes
12248fi
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258  # Check whether --enable-static was given.
12259if test "${enable_static+set}" = set; then :
12260  enableval=$enable_static; p=${PACKAGE-default}
12261    case $enableval in
12262    yes) enable_static=yes ;;
12263    no) enable_static=no ;;
12264    *)
12265     enable_static=no
12266      # Look at the argument we got.  We use all the common list separators.
12267      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12268      for pkg in $enableval; do
12269	IFS=$lt_save_ifs
12270	if test "X$pkg" = "X$p"; then
12271	  enable_static=yes
12272	fi
12273      done
12274      IFS=$lt_save_ifs
12275      ;;
12276    esac
12277else
12278  enable_static=yes
12279fi
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290# Check whether --with-pic was given.
12291if test "${with_pic+set}" = set; then :
12292  withval=$with_pic; lt_p=${PACKAGE-default}
12293    case $withval in
12294    yes|no) pic_mode=$withval ;;
12295    *)
12296      pic_mode=default
12297      # Look at the argument we got.  We use all the common list separators.
12298      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12299      for lt_pkg in $withval; do
12300	IFS=$lt_save_ifs
12301	if test "X$lt_pkg" = "X$lt_p"; then
12302	  pic_mode=yes
12303	fi
12304      done
12305      IFS=$lt_save_ifs
12306      ;;
12307    esac
12308else
12309  pic_mode=default
12310fi
12311
12312
12313
12314
12315
12316
12317
12318
12319  # Check whether --enable-fast-install was given.
12320if test "${enable_fast_install+set}" = set; then :
12321  enableval=$enable_fast_install; p=${PACKAGE-default}
12322    case $enableval in
12323    yes) enable_fast_install=yes ;;
12324    no) enable_fast_install=no ;;
12325    *)
12326      enable_fast_install=no
12327      # Look at the argument we got.  We use all the common list separators.
12328      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12329      for pkg in $enableval; do
12330	IFS=$lt_save_ifs
12331	if test "X$pkg" = "X$p"; then
12332	  enable_fast_install=yes
12333	fi
12334      done
12335      IFS=$lt_save_ifs
12336      ;;
12337    esac
12338else
12339  enable_fast_install=yes
12340fi
12341
12342
12343
12344
12345
12346
12347
12348
12349  shared_archive_member_spec=
12350case $host,$enable_shared in
12351power*-*-aix[5-9]*,yes)
12352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12353$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
12354
12355# Check whether --with-aix-soname was given.
12356if test "${with_aix_soname+set}" = set; then :
12357  withval=$with_aix_soname; case $withval in
12358    aix|svr4|both)
12359      ;;
12360    *)
12361      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12362      ;;
12363    esac
12364    lt_cv_with_aix_soname=$with_aix_soname
12365else
12366  if ${lt_cv_with_aix_soname+:} false; then :
12367  $as_echo_n "(cached) " >&6
12368else
12369  lt_cv_with_aix_soname=aix
12370fi
12371
12372    with_aix_soname=$lt_cv_with_aix_soname
12373fi
12374
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12376$as_echo "$with_aix_soname" >&6; }
12377  if test aix != "$with_aix_soname"; then
12378    # For the AIX way of multilib, we name the shared archive member
12379    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12380    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12381    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12382    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12383    if test 64 = "${OBJECT_MODE-32}"; then
12384      shared_archive_member_spec=shr_64
12385    else
12386      shared_archive_member_spec=shr
12387    fi
12388  fi
12389  ;;
12390*)
12391  with_aix_soname=aix
12392  ;;
12393esac
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404# This can be used to rebuild libtool when needed
12405LIBTOOL_DEPS=$ltmain
12406
12407# Always use our own libtool.
12408LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439test -z "$LN_S" && LN_S="ln -s"
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454if test -n "${ZSH_VERSION+set}"; then
12455   setopt NO_GLOB_SUBST
12456fi
12457
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12459$as_echo_n "checking for objdir... " >&6; }
12460if ${lt_cv_objdir+:} false; then :
12461  $as_echo_n "(cached) " >&6
12462else
12463  rm -f .libs 2>/dev/null
12464mkdir .libs 2>/dev/null
12465if test -d .libs; then
12466  lt_cv_objdir=.libs
12467else
12468  # MS-DOS does not allow filenames that begin with a dot.
12469  lt_cv_objdir=_libs
12470fi
12471rmdir .libs 2>/dev/null
12472fi
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12474$as_echo "$lt_cv_objdir" >&6; }
12475objdir=$lt_cv_objdir
12476
12477
12478
12479
12480
12481cat >>confdefs.h <<_ACEOF
12482#define LT_OBJDIR "$lt_cv_objdir/"
12483_ACEOF
12484
12485
12486
12487
12488case $host_os in
12489aix3*)
12490  # AIX sometimes has problems with the GCC collect2 program.  For some
12491  # reason, if we set the COLLECT_NAMES environment variable, the problems
12492  # vanish in a puff of smoke.
12493  if test set != "${COLLECT_NAMES+set}"; then
12494    COLLECT_NAMES=
12495    export COLLECT_NAMES
12496  fi
12497  ;;
12498esac
12499
12500# Global variables:
12501ofile=libtool
12502can_build_shared=yes
12503
12504# All known linkers require a '.a' archive for static linking (except MSVC,
12505# which needs '.lib').
12506libext=a
12507
12508with_gnu_ld=$lt_cv_prog_gnu_ld
12509
12510old_CC=$CC
12511old_CFLAGS=$CFLAGS
12512
12513# Set sane defaults for various variables
12514test -z "$CC" && CC=cc
12515test -z "$LTCC" && LTCC=$CC
12516test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12517test -z "$LD" && LD=ld
12518test -z "$ac_objext" && ac_objext=o
12519
12520func_cc_basename $compiler
12521cc_basename=$func_cc_basename_result
12522
12523
12524# Only perform the check for file, if the check method requires it
12525test -z "$MAGIC_CMD" && MAGIC_CMD=file
12526case $deplibs_check_method in
12527file_magic*)
12528  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12529    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12530$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12531if ${lt_cv_path_MAGIC_CMD+:} false; then :
12532  $as_echo_n "(cached) " >&6
12533else
12534  case $MAGIC_CMD in
12535[\\/*] |  ?:[\\/]*)
12536  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12537  ;;
12538*)
12539  lt_save_MAGIC_CMD=$MAGIC_CMD
12540  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12541  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12542  for ac_dir in $ac_dummy; do
12543    IFS=$lt_save_ifs
12544    test -z "$ac_dir" && ac_dir=.
12545    if test -f "$ac_dir/${ac_tool_prefix}file"; then
12546      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12547      if test -n "$file_magic_test_file"; then
12548	case $deplibs_check_method in
12549	"file_magic "*)
12550	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12551	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12552	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12553	    $EGREP "$file_magic_regex" > /dev/null; then
12554	    :
12555	  else
12556	    cat <<_LT_EOF 1>&2
12557
12558*** Warning: the command libtool uses to detect shared libraries,
12559*** $file_magic_cmd, produces output that libtool cannot recognize.
12560*** The result is that libtool may fail to recognize shared libraries
12561*** as such.  This will affect the creation of libtool libraries that
12562*** depend on shared libraries, but programs linked with such libtool
12563*** libraries will work regardless of this problem.  Nevertheless, you
12564*** may want to report the problem to your system manager and/or to
12565*** bug-libtool@gnu.org
12566
12567_LT_EOF
12568	  fi ;;
12569	esac
12570      fi
12571      break
12572    fi
12573  done
12574  IFS=$lt_save_ifs
12575  MAGIC_CMD=$lt_save_MAGIC_CMD
12576  ;;
12577esac
12578fi
12579
12580MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12581if test -n "$MAGIC_CMD"; then
12582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12583$as_echo "$MAGIC_CMD" >&6; }
12584else
12585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
12587fi
12588
12589
12590
12591
12592
12593if test -z "$lt_cv_path_MAGIC_CMD"; then
12594  if test -n "$ac_tool_prefix"; then
12595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12596$as_echo_n "checking for file... " >&6; }
12597if ${lt_cv_path_MAGIC_CMD+:} false; then :
12598  $as_echo_n "(cached) " >&6
12599else
12600  case $MAGIC_CMD in
12601[\\/*] |  ?:[\\/]*)
12602  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12603  ;;
12604*)
12605  lt_save_MAGIC_CMD=$MAGIC_CMD
12606  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12607  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12608  for ac_dir in $ac_dummy; do
12609    IFS=$lt_save_ifs
12610    test -z "$ac_dir" && ac_dir=.
12611    if test -f "$ac_dir/file"; then
12612      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12613      if test -n "$file_magic_test_file"; then
12614	case $deplibs_check_method in
12615	"file_magic "*)
12616	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12617	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12618	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12619	    $EGREP "$file_magic_regex" > /dev/null; then
12620	    :
12621	  else
12622	    cat <<_LT_EOF 1>&2
12623
12624*** Warning: the command libtool uses to detect shared libraries,
12625*** $file_magic_cmd, produces output that libtool cannot recognize.
12626*** The result is that libtool may fail to recognize shared libraries
12627*** as such.  This will affect the creation of libtool libraries that
12628*** depend on shared libraries, but programs linked with such libtool
12629*** libraries will work regardless of this problem.  Nevertheless, you
12630*** may want to report the problem to your system manager and/or to
12631*** bug-libtool@gnu.org
12632
12633_LT_EOF
12634	  fi ;;
12635	esac
12636      fi
12637      break
12638    fi
12639  done
12640  IFS=$lt_save_ifs
12641  MAGIC_CMD=$lt_save_MAGIC_CMD
12642  ;;
12643esac
12644fi
12645
12646MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12647if test -n "$MAGIC_CMD"; then
12648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12649$as_echo "$MAGIC_CMD" >&6; }
12650else
12651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
12653fi
12654
12655
12656  else
12657    MAGIC_CMD=:
12658  fi
12659fi
12660
12661  fi
12662  ;;
12663esac
12664
12665# Use C for the default configuration in the libtool script
12666
12667lt_save_CC=$CC
12668ac_ext=c
12669ac_cpp='$CPP $CPPFLAGS'
12670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673
12674
12675# Source file extension for C test sources.
12676ac_ext=c
12677
12678# Object file extension for compiled C test sources.
12679objext=o
12680objext=$objext
12681
12682# Code to be used in simple compile tests
12683lt_simple_compile_test_code="int some_variable = 0;"
12684
12685# Code to be used in simple link tests
12686lt_simple_link_test_code='int main(){return(0);}'
12687
12688
12689
12690
12691
12692
12693
12694# If no C compiler was specified, use CC.
12695LTCC=${LTCC-"$CC"}
12696
12697# If no C compiler flags were specified, use CFLAGS.
12698LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12699
12700# Allow CC to be a program name with arguments.
12701compiler=$CC
12702
12703# Save the default compiler, since it gets overwritten when the other
12704# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12705compiler_DEFAULT=$CC
12706
12707# save warnings/boilerplate of simple test code
12708ac_outfile=conftest.$ac_objext
12709echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12710eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12711_lt_compiler_boilerplate=`cat conftest.err`
12712$RM conftest*
12713
12714ac_outfile=conftest.$ac_objext
12715echo "$lt_simple_link_test_code" >conftest.$ac_ext
12716eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12717_lt_linker_boilerplate=`cat conftest.err`
12718$RM -r conftest*
12719
12720
12721## CAVEAT EMPTOR:
12722## There is no encapsulation within the following macros, do not change
12723## the running order or otherwise move them around unless you know exactly
12724## what you are doing...
12725if test -n "$compiler"; then
12726
12727lt_prog_compiler_no_builtin_flag=
12728
12729if test yes = "$GCC"; then
12730  case $cc_basename in
12731  nvcc*)
12732    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12733  *)
12734    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12735  esac
12736
12737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12738$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12739if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12740  $as_echo_n "(cached) " >&6
12741else
12742  lt_cv_prog_compiler_rtti_exceptions=no
12743   ac_outfile=conftest.$ac_objext
12744   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12745   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12746   # Insert the option either (1) after the last *FLAGS variable, or
12747   # (2) before a word containing "conftest.", or (3) at the end.
12748   # Note that $ac_compile itself does not contain backslashes and begins
12749   # with a dollar sign (not a hyphen), so the echo should work correctly.
12750   # The option is referenced via a variable to avoid confusing sed.
12751   lt_compile=`echo "$ac_compile" | $SED \
12752   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12753   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12754   -e 's:$: $lt_compiler_flag:'`
12755   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12756   (eval "$lt_compile" 2>conftest.err)
12757   ac_status=$?
12758   cat conftest.err >&5
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   if (exit $ac_status) && test -s "$ac_outfile"; then
12761     # The compiler can only warn and ignore the option if not recognized
12762     # So say no if there are warnings other than the usual output.
12763     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12764     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12765     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12766       lt_cv_prog_compiler_rtti_exceptions=yes
12767     fi
12768   fi
12769   $RM conftest*
12770
12771fi
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12773$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12774
12775if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12776    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12777else
12778    :
12779fi
12780
12781fi
12782
12783
12784
12785
12786
12787
12788  lt_prog_compiler_wl=
12789lt_prog_compiler_pic=
12790lt_prog_compiler_static=
12791
12792
12793  if test yes = "$GCC"; then
12794    lt_prog_compiler_wl='-Wl,'
12795    lt_prog_compiler_static='-static'
12796
12797    case $host_os in
12798      aix*)
12799      # All AIX code is PIC.
12800      if test ia64 = "$host_cpu"; then
12801	# AIX 5 now supports IA64 processor
12802	lt_prog_compiler_static='-Bstatic'
12803      fi
12804      lt_prog_compiler_pic='-fPIC'
12805      ;;
12806
12807    amigaos*)
12808      case $host_cpu in
12809      powerpc)
12810            # see comment about AmigaOS4 .so support
12811            lt_prog_compiler_pic='-fPIC'
12812        ;;
12813      m68k)
12814            # FIXME: we need at least 68020 code to build shared libraries, but
12815            # adding the '-m68020' flag to GCC prevents building anything better,
12816            # like '-m68040'.
12817            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12818        ;;
12819      esac
12820      ;;
12821
12822    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12823      # PIC is the default for these OSes.
12824      ;;
12825
12826    mingw* | cygwin* | pw32* | os2* | cegcc*)
12827      # This hack is so that the source file can tell whether it is being
12828      # built for inclusion in a dll (and should export symbols for example).
12829      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12830      # (--disable-auto-import) libraries
12831      lt_prog_compiler_pic='-DDLL_EXPORT'
12832      case $host_os in
12833      os2*)
12834	lt_prog_compiler_static='$wl-static'
12835	;;
12836      esac
12837      ;;
12838
12839    darwin* | rhapsody*)
12840      # PIC is the default on this platform
12841      # Common symbols not allowed in MH_DYLIB files
12842      lt_prog_compiler_pic='-fno-common'
12843      ;;
12844
12845    haiku*)
12846      # PIC is the default for Haiku.
12847      # The "-static" flag exists, but is broken.
12848      lt_prog_compiler_static=
12849      ;;
12850
12851    hpux*)
12852      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12853      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12854      # sets the default TLS model and affects inlining.
12855      case $host_cpu in
12856      hppa*64*)
12857	# +Z the default
12858	;;
12859      *)
12860	lt_prog_compiler_pic='-fPIC'
12861	;;
12862      esac
12863      ;;
12864
12865    interix[3-9]*)
12866      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12867      # Instead, we relocate shared libraries at runtime.
12868      ;;
12869
12870    msdosdjgpp*)
12871      # Just because we use GCC doesn't mean we suddenly get shared libraries
12872      # on systems that don't support them.
12873      lt_prog_compiler_can_build_shared=no
12874      enable_shared=no
12875      ;;
12876
12877    *nto* | *qnx*)
12878      # QNX uses GNU C++, but need to define -shared option too, otherwise
12879      # it will coredump.
12880      lt_prog_compiler_pic='-fPIC -shared'
12881      ;;
12882
12883    sysv4*MP*)
12884      if test -d /usr/nec; then
12885	lt_prog_compiler_pic=-Kconform_pic
12886      fi
12887      ;;
12888
12889    *)
12890      lt_prog_compiler_pic='-fPIC'
12891      ;;
12892    esac
12893
12894    case $cc_basename in
12895    nvcc*) # Cuda Compiler Driver 2.2
12896      lt_prog_compiler_wl='-Xlinker '
12897      if test -n "$lt_prog_compiler_pic"; then
12898        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12899      fi
12900      ;;
12901    esac
12902  else
12903    # PORTME Check for flag to pass linker flags through the system compiler.
12904    case $host_os in
12905    aix*)
12906      lt_prog_compiler_wl='-Wl,'
12907      if test ia64 = "$host_cpu"; then
12908	# AIX 5 now supports IA64 processor
12909	lt_prog_compiler_static='-Bstatic'
12910      else
12911	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12912      fi
12913      ;;
12914
12915    darwin* | rhapsody*)
12916      # PIC is the default on this platform
12917      # Common symbols not allowed in MH_DYLIB files
12918      lt_prog_compiler_pic='-fno-common'
12919      case $cc_basename in
12920      nagfor*)
12921        # NAG Fortran compiler
12922        lt_prog_compiler_wl='-Wl,-Wl,,'
12923        lt_prog_compiler_pic='-PIC'
12924        lt_prog_compiler_static='-Bstatic'
12925        ;;
12926      esac
12927      ;;
12928
12929    mingw* | cygwin* | pw32* | os2* | cegcc*)
12930      # This hack is so that the source file can tell whether it is being
12931      # built for inclusion in a dll (and should export symbols for example).
12932      lt_prog_compiler_pic='-DDLL_EXPORT'
12933      case $host_os in
12934      os2*)
12935	lt_prog_compiler_static='$wl-static'
12936	;;
12937      esac
12938      ;;
12939
12940    hpux9* | hpux10* | hpux11*)
12941      lt_prog_compiler_wl='-Wl,'
12942      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12943      # not for PA HP-UX.
12944      case $host_cpu in
12945      hppa*64*|ia64*)
12946	# +Z the default
12947	;;
12948      *)
12949	lt_prog_compiler_pic='+Z'
12950	;;
12951      esac
12952      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12953      lt_prog_compiler_static='$wl-a ${wl}archive'
12954      ;;
12955
12956    irix5* | irix6* | nonstopux*)
12957      lt_prog_compiler_wl='-Wl,'
12958      # PIC (with -KPIC) is the default.
12959      lt_prog_compiler_static='-non_shared'
12960      ;;
12961
12962    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12963      case $cc_basename in
12964      # old Intel for x86_64, which still supported -KPIC.
12965      ecc*)
12966	lt_prog_compiler_wl='-Wl,'
12967	lt_prog_compiler_pic='-KPIC'
12968	lt_prog_compiler_static='-static'
12969        ;;
12970      # icc used to be incompatible with GCC.
12971      # ICC 10 doesn't accept -KPIC any more.
12972      icc* | ifort*)
12973	lt_prog_compiler_wl='-Wl,'
12974	lt_prog_compiler_pic='-fPIC'
12975	lt_prog_compiler_static='-static'
12976        ;;
12977      # Lahey Fortran 8.1.
12978      lf95*)
12979	lt_prog_compiler_wl='-Wl,'
12980	lt_prog_compiler_pic='--shared'
12981	lt_prog_compiler_static='--static'
12982	;;
12983      nagfor*)
12984	# NAG Fortran compiler
12985	lt_prog_compiler_wl='-Wl,-Wl,,'
12986	lt_prog_compiler_pic='-PIC'
12987	lt_prog_compiler_static='-Bstatic'
12988	;;
12989      tcc*)
12990	# Fabrice Bellard et al's Tiny C Compiler
12991	lt_prog_compiler_wl='-Wl,'
12992	lt_prog_compiler_pic='-fPIC'
12993	lt_prog_compiler_static='-static'
12994	;;
12995      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12996        # Portland Group compilers (*not* the Pentium gcc compiler,
12997	# which looks to be a dead project)
12998	lt_prog_compiler_wl='-Wl,'
12999	lt_prog_compiler_pic='-fpic'
13000	lt_prog_compiler_static='-Bstatic'
13001        ;;
13002      ccc*)
13003        lt_prog_compiler_wl='-Wl,'
13004        # All Alpha code is PIC.
13005        lt_prog_compiler_static='-non_shared'
13006        ;;
13007      xl* | bgxl* | bgf* | mpixl*)
13008	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13009	lt_prog_compiler_wl='-Wl,'
13010	lt_prog_compiler_pic='-qpic'
13011	lt_prog_compiler_static='-qstaticlink'
13012	;;
13013      *)
13014	case `$CC -V 2>&1 | sed 5q` in
13015	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13016	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13017	  lt_prog_compiler_pic='-KPIC'
13018	  lt_prog_compiler_static='-Bstatic'
13019	  lt_prog_compiler_wl=''
13020	  ;;
13021	*Sun\ F* | *Sun*Fortran*)
13022	  lt_prog_compiler_pic='-KPIC'
13023	  lt_prog_compiler_static='-Bstatic'
13024	  lt_prog_compiler_wl='-Qoption ld '
13025	  ;;
13026	*Sun\ C*)
13027	  # Sun C 5.9
13028	  lt_prog_compiler_pic='-KPIC'
13029	  lt_prog_compiler_static='-Bstatic'
13030	  lt_prog_compiler_wl='-Wl,'
13031	  ;;
13032        *Intel*\ [CF]*Compiler*)
13033	  lt_prog_compiler_wl='-Wl,'
13034	  lt_prog_compiler_pic='-fPIC'
13035	  lt_prog_compiler_static='-static'
13036	  ;;
13037	*Portland\ Group*)
13038	  lt_prog_compiler_wl='-Wl,'
13039	  lt_prog_compiler_pic='-fpic'
13040	  lt_prog_compiler_static='-Bstatic'
13041	  ;;
13042	esac
13043	;;
13044      esac
13045      ;;
13046
13047    newsos6)
13048      lt_prog_compiler_pic='-KPIC'
13049      lt_prog_compiler_static='-Bstatic'
13050      ;;
13051
13052    *nto* | *qnx*)
13053      # QNX uses GNU C++, but need to define -shared option too, otherwise
13054      # it will coredump.
13055      lt_prog_compiler_pic='-fPIC -shared'
13056      ;;
13057
13058    osf3* | osf4* | osf5*)
13059      lt_prog_compiler_wl='-Wl,'
13060      # All OSF/1 code is PIC.
13061      lt_prog_compiler_static='-non_shared'
13062      ;;
13063
13064    rdos*)
13065      lt_prog_compiler_static='-non_shared'
13066      ;;
13067
13068    solaris*)
13069      lt_prog_compiler_pic='-KPIC'
13070      lt_prog_compiler_static='-Bstatic'
13071      case $cc_basename in
13072      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13073	lt_prog_compiler_wl='-Qoption ld ';;
13074      *)
13075	lt_prog_compiler_wl='-Wl,';;
13076      esac
13077      ;;
13078
13079    sunos4*)
13080      lt_prog_compiler_wl='-Qoption ld '
13081      lt_prog_compiler_pic='-PIC'
13082      lt_prog_compiler_static='-Bstatic'
13083      ;;
13084
13085    sysv4 | sysv4.2uw2* | sysv4.3*)
13086      lt_prog_compiler_wl='-Wl,'
13087      lt_prog_compiler_pic='-KPIC'
13088      lt_prog_compiler_static='-Bstatic'
13089      ;;
13090
13091    sysv4*MP*)
13092      if test -d /usr/nec; then
13093	lt_prog_compiler_pic='-Kconform_pic'
13094	lt_prog_compiler_static='-Bstatic'
13095      fi
13096      ;;
13097
13098    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13099      lt_prog_compiler_wl='-Wl,'
13100      lt_prog_compiler_pic='-KPIC'
13101      lt_prog_compiler_static='-Bstatic'
13102      ;;
13103
13104    unicos*)
13105      lt_prog_compiler_wl='-Wl,'
13106      lt_prog_compiler_can_build_shared=no
13107      ;;
13108
13109    uts4*)
13110      lt_prog_compiler_pic='-pic'
13111      lt_prog_compiler_static='-Bstatic'
13112      ;;
13113
13114    *)
13115      lt_prog_compiler_can_build_shared=no
13116      ;;
13117    esac
13118  fi
13119
13120case $host_os in
13121  # For platforms that do not support PIC, -DPIC is meaningless:
13122  *djgpp*)
13123    lt_prog_compiler_pic=
13124    ;;
13125  *)
13126    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13127    ;;
13128esac
13129
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13131$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13132if ${lt_cv_prog_compiler_pic+:} false; then :
13133  $as_echo_n "(cached) " >&6
13134else
13135  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13136fi
13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13138$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13139lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13140
13141#
13142# Check to make sure the PIC flag actually works.
13143#
13144if test -n "$lt_prog_compiler_pic"; then
13145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13146$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13147if ${lt_cv_prog_compiler_pic_works+:} false; then :
13148  $as_echo_n "(cached) " >&6
13149else
13150  lt_cv_prog_compiler_pic_works=no
13151   ac_outfile=conftest.$ac_objext
13152   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13153   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13154   # Insert the option either (1) after the last *FLAGS variable, or
13155   # (2) before a word containing "conftest.", or (3) at the end.
13156   # Note that $ac_compile itself does not contain backslashes and begins
13157   # with a dollar sign (not a hyphen), so the echo should work correctly.
13158   # The option is referenced via a variable to avoid confusing sed.
13159   lt_compile=`echo "$ac_compile" | $SED \
13160   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13161   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13162   -e 's:$: $lt_compiler_flag:'`
13163   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13164   (eval "$lt_compile" 2>conftest.err)
13165   ac_status=$?
13166   cat conftest.err >&5
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   if (exit $ac_status) && test -s "$ac_outfile"; then
13169     # The compiler can only warn and ignore the option if not recognized
13170     # So say no if there are warnings other than the usual output.
13171     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13172     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13173     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13174       lt_cv_prog_compiler_pic_works=yes
13175     fi
13176   fi
13177   $RM conftest*
13178
13179fi
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13181$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13182
13183if test yes = "$lt_cv_prog_compiler_pic_works"; then
13184    case $lt_prog_compiler_pic in
13185     "" | " "*) ;;
13186     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13187     esac
13188else
13189    lt_prog_compiler_pic=
13190     lt_prog_compiler_can_build_shared=no
13191fi
13192
13193fi
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205#
13206# Check to make sure the static flag actually works.
13207#
13208wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13210$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13211if ${lt_cv_prog_compiler_static_works+:} false; then :
13212  $as_echo_n "(cached) " >&6
13213else
13214  lt_cv_prog_compiler_static_works=no
13215   save_LDFLAGS=$LDFLAGS
13216   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13217   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13218   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13219     # The linker can only warn and ignore the option if not recognized
13220     # So say no if there are warnings
13221     if test -s conftest.err; then
13222       # Append any errors to the config.log.
13223       cat conftest.err 1>&5
13224       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13225       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13226       if diff conftest.exp conftest.er2 >/dev/null; then
13227         lt_cv_prog_compiler_static_works=yes
13228       fi
13229     else
13230       lt_cv_prog_compiler_static_works=yes
13231     fi
13232   fi
13233   $RM -r conftest*
13234   LDFLAGS=$save_LDFLAGS
13235
13236fi
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13238$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13239
13240if test yes = "$lt_cv_prog_compiler_static_works"; then
13241    :
13242else
13243    lt_prog_compiler_static=
13244fi
13245
13246
13247
13248
13249
13250
13251
13252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13253$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13254if ${lt_cv_prog_compiler_c_o+:} false; then :
13255  $as_echo_n "(cached) " >&6
13256else
13257  lt_cv_prog_compiler_c_o=no
13258   $RM -r conftest 2>/dev/null
13259   mkdir conftest
13260   cd conftest
13261   mkdir out
13262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13263
13264   lt_compiler_flag="-o out/conftest2.$ac_objext"
13265   # Insert the option either (1) after the last *FLAGS variable, or
13266   # (2) before a word containing "conftest.", or (3) at the end.
13267   # Note that $ac_compile itself does not contain backslashes and begins
13268   # with a dollar sign (not a hyphen), so the echo should work correctly.
13269   lt_compile=`echo "$ac_compile" | $SED \
13270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13272   -e 's:$: $lt_compiler_flag:'`
13273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13274   (eval "$lt_compile" 2>out/conftest.err)
13275   ac_status=$?
13276   cat out/conftest.err >&5
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13279   then
13280     # The compiler can only warn and ignore the option if not recognized
13281     # So say no if there are warnings
13282     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13285       lt_cv_prog_compiler_c_o=yes
13286     fi
13287   fi
13288   chmod u+w . 2>&5
13289   $RM conftest*
13290   # SGI C++ compiler will create directory out/ii_files/ for
13291   # template instantiation
13292   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13293   $RM out/* && rmdir out
13294   cd ..
13295   $RM -r conftest
13296   $RM conftest*
13297
13298fi
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13300$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13301
13302
13303
13304
13305
13306
13307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13308$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13309if ${lt_cv_prog_compiler_c_o+:} false; then :
13310  $as_echo_n "(cached) " >&6
13311else
13312  lt_cv_prog_compiler_c_o=no
13313   $RM -r conftest 2>/dev/null
13314   mkdir conftest
13315   cd conftest
13316   mkdir out
13317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13318
13319   lt_compiler_flag="-o out/conftest2.$ac_objext"
13320   # Insert the option either (1) after the last *FLAGS variable, or
13321   # (2) before a word containing "conftest.", or (3) at the end.
13322   # Note that $ac_compile itself does not contain backslashes and begins
13323   # with a dollar sign (not a hyphen), so the echo should work correctly.
13324   lt_compile=`echo "$ac_compile" | $SED \
13325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13327   -e 's:$: $lt_compiler_flag:'`
13328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13329   (eval "$lt_compile" 2>out/conftest.err)
13330   ac_status=$?
13331   cat out/conftest.err >&5
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13334   then
13335     # The compiler can only warn and ignore the option if not recognized
13336     # So say no if there are warnings
13337     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13338     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13339     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13340       lt_cv_prog_compiler_c_o=yes
13341     fi
13342   fi
13343   chmod u+w . 2>&5
13344   $RM conftest*
13345   # SGI C++ compiler will create directory out/ii_files/ for
13346   # template instantiation
13347   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13348   $RM out/* && rmdir out
13349   cd ..
13350   $RM -r conftest
13351   $RM conftest*
13352
13353fi
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13355$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13356
13357
13358
13359
13360hard_links=nottested
13361if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13362  # do not overwrite the value of need_locks provided by the user
13363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13364$as_echo_n "checking if we can lock with hard links... " >&6; }
13365  hard_links=yes
13366  $RM conftest*
13367  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13368  touch conftest.a
13369  ln conftest.a conftest.b 2>&5 || hard_links=no
13370  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13372$as_echo "$hard_links" >&6; }
13373  if test no = "$hard_links"; then
13374    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13375$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13376    need_locks=warn
13377  fi
13378else
13379  need_locks=no
13380fi
13381
13382
13383
13384
13385
13386
13387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13388$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13389
13390  runpath_var=
13391  allow_undefined_flag=
13392  always_export_symbols=no
13393  archive_cmds=
13394  archive_expsym_cmds=
13395  compiler_needs_object=no
13396  enable_shared_with_static_runtimes=no
13397  export_dynamic_flag_spec=
13398  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13399  hardcode_automatic=no
13400  hardcode_direct=no
13401  hardcode_direct_absolute=no
13402  hardcode_libdir_flag_spec=
13403  hardcode_libdir_separator=
13404  hardcode_minus_L=no
13405  hardcode_shlibpath_var=unsupported
13406  inherit_rpath=no
13407  link_all_deplibs=unknown
13408  module_cmds=
13409  module_expsym_cmds=
13410  old_archive_from_new_cmds=
13411  old_archive_from_expsyms_cmds=
13412  thread_safe_flag_spec=
13413  whole_archive_flag_spec=
13414  # include_expsyms should be a list of space-separated symbols to be *always*
13415  # included in the symbol list
13416  include_expsyms=
13417  # exclude_expsyms can be an extended regexp of symbols to exclude
13418  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13419  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13420  # as well as any symbol that contains 'd'.
13421  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13422  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13423  # platforms (ab)use it in PIC code, but their linkers get confused if
13424  # the symbol is explicitly referenced.  Since portable code cannot
13425  # rely on this symbol name, it's probably fine to never include it in
13426  # preloaded symbol tables.
13427  # Exclude shared library initialization/finalization symbols.
13428  extract_expsyms_cmds=
13429
13430  case $host_os in
13431  cygwin* | mingw* | pw32* | cegcc*)
13432    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13433    # When not using gcc, we currently assume that we are using
13434    # Microsoft Visual C++.
13435    if test yes != "$GCC"; then
13436      with_gnu_ld=no
13437    fi
13438    ;;
13439  interix*)
13440    # we just hope/assume this is gcc and not c89 (= MSVC++)
13441    with_gnu_ld=yes
13442    ;;
13443  openbsd* | bitrig*)
13444    with_gnu_ld=no
13445    ;;
13446  esac
13447
13448  ld_shlibs=yes
13449
13450  # On some targets, GNU ld is compatible enough with the native linker
13451  # that we're better off using the native interface for both.
13452  lt_use_gnu_ld_interface=no
13453  if test yes = "$with_gnu_ld"; then
13454    case $host_os in
13455      aix*)
13456	# The AIX port of GNU ld has always aspired to compatibility
13457	# with the native linker.  However, as the warning in the GNU ld
13458	# block says, versions before 2.19.5* couldn't really create working
13459	# shared libraries, regardless of the interface used.
13460	case `$LD -v 2>&1` in
13461	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13462	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13463	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13464	  *)
13465	    lt_use_gnu_ld_interface=yes
13466	    ;;
13467	esac
13468	;;
13469      *)
13470	lt_use_gnu_ld_interface=yes
13471	;;
13472    esac
13473  fi
13474
13475  if test yes = "$lt_use_gnu_ld_interface"; then
13476    # If archive_cmds runs LD, not CC, wlarc should be empty
13477    wlarc='$wl'
13478
13479    # Set some defaults for GNU ld with shared library support. These
13480    # are reset later if shared libraries are not supported. Putting them
13481    # here allows them to be overridden if necessary.
13482    runpath_var=LD_RUN_PATH
13483    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13484    export_dynamic_flag_spec='$wl--export-dynamic'
13485    # ancient GNU ld didn't support --whole-archive et. al.
13486    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13487      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13488    else
13489      whole_archive_flag_spec=
13490    fi
13491    supports_anon_versioning=no
13492    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13493      *GNU\ gold*) supports_anon_versioning=yes ;;
13494      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13495      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13496      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13497      *\ 2.11.*) ;; # other 2.11 versions
13498      *) supports_anon_versioning=yes ;;
13499    esac
13500
13501    # See if GNU ld supports shared libraries.
13502    case $host_os in
13503    aix[3-9]*)
13504      # On AIX/PPC, the GNU linker is very broken
13505      if test ia64 != "$host_cpu"; then
13506	ld_shlibs=no
13507	cat <<_LT_EOF 1>&2
13508
13509*** Warning: the GNU linker, at least up to release 2.19, is reported
13510*** to be unable to reliably create shared libraries on AIX.
13511*** Therefore, libtool is disabling shared libraries support.  If you
13512*** really care for shared libraries, you may want to install binutils
13513*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13514*** You will then need to restart the configuration process.
13515
13516_LT_EOF
13517      fi
13518      ;;
13519
13520    amigaos*)
13521      case $host_cpu in
13522      powerpc)
13523            # see comment about AmigaOS4 .so support
13524            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13525            archive_expsym_cmds=''
13526        ;;
13527      m68k)
13528            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)'
13529            hardcode_libdir_flag_spec='-L$libdir'
13530            hardcode_minus_L=yes
13531        ;;
13532      esac
13533      ;;
13534
13535    beos*)
13536      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13537	allow_undefined_flag=unsupported
13538	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13539	# support --undefined.  This deserves some investigation.  FIXME
13540	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13541      else
13542	ld_shlibs=no
13543      fi
13544      ;;
13545
13546    cygwin* | mingw* | pw32* | cegcc*)
13547      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13548      # as there is no search path for DLLs.
13549      hardcode_libdir_flag_spec='-L$libdir'
13550      export_dynamic_flag_spec='$wl--export-all-symbols'
13551      allow_undefined_flag=unsupported
13552      always_export_symbols=no
13553      enable_shared_with_static_runtimes=yes
13554      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'
13555      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13556
13557      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13558        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13559	# If the export-symbols file already is a .def file, use it as
13560	# is; otherwise, prepend EXPORTS...
13561	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13562          cp $export_symbols $output_objdir/$soname.def;
13563        else
13564          echo EXPORTS > $output_objdir/$soname.def;
13565          cat $export_symbols >> $output_objdir/$soname.def;
13566        fi~
13567        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13568      else
13569	ld_shlibs=no
13570      fi
13571      ;;
13572
13573    haiku*)
13574      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13575      link_all_deplibs=yes
13576      ;;
13577
13578    os2*)
13579      hardcode_libdir_flag_spec='-L$libdir'
13580      hardcode_minus_L=yes
13581      allow_undefined_flag=unsupported
13582      shrext_cmds=.dll
13583      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13584	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13585	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13586	$ECHO EXPORTS >> $output_objdir/$libname.def~
13587	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13588	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13589	emximp -o $lib $output_objdir/$libname.def'
13590      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13591	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13592	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13593	$ECHO EXPORTS >> $output_objdir/$libname.def~
13594	prefix_cmds="$SED"~
13595	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13596	  prefix_cmds="$prefix_cmds -e 1d";
13597	fi~
13598	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13599	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13600	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13601	emximp -o $lib $output_objdir/$libname.def'
13602      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13603      enable_shared_with_static_runtimes=yes
13604      ;;
13605
13606    interix[3-9]*)
13607      hardcode_direct=no
13608      hardcode_shlibpath_var=no
13609      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13610      export_dynamic_flag_spec='$wl-E'
13611      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13612      # Instead, shared libraries are loaded at an image base (0x10000000 by
13613      # default) and relocated if they conflict, which is a slow very memory
13614      # consuming and fragmenting process.  To avoid this, we pick a random,
13615      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13616      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13617      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13618      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'
13619      ;;
13620
13621    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13622      tmp_diet=no
13623      if test linux-dietlibc = "$host_os"; then
13624	case $cc_basename in
13625	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13626	esac
13627      fi
13628      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13629	 && test no = "$tmp_diet"
13630      then
13631	tmp_addflag=' $pic_flag'
13632	tmp_sharedflag='-shared'
13633	case $cc_basename,$host_cpu in
13634        pgcc*)				# Portland Group C compiler
13635	  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'
13636	  tmp_addflag=' $pic_flag'
13637	  ;;
13638	pgf77* | pgf90* | pgf95* | pgfortran*)
13639					# Portland Group f77 and f90 compilers
13640	  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'
13641	  tmp_addflag=' $pic_flag -Mnomain' ;;
13642	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13643	  tmp_addflag=' -i_dynamic' ;;
13644	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13645	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13646	ifc* | ifort*)			# Intel Fortran compiler
13647	  tmp_addflag=' -nofor_main' ;;
13648	lf95*)				# Lahey Fortran 8.1
13649	  whole_archive_flag_spec=
13650	  tmp_sharedflag='--shared' ;;
13651        nagfor*)                        # NAGFOR 5.3
13652          tmp_sharedflag='-Wl,-shared' ;;
13653	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13654	  tmp_sharedflag='-qmkshrobj'
13655	  tmp_addflag= ;;
13656	nvcc*)	# Cuda Compiler Driver 2.2
13657	  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'
13658	  compiler_needs_object=yes
13659	  ;;
13660	esac
13661	case `$CC -V 2>&1 | sed 5q` in
13662	*Sun\ C*)			# Sun C 5.9
13663	  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'
13664	  compiler_needs_object=yes
13665	  tmp_sharedflag='-G' ;;
13666	*Sun\ F*)			# Sun Fortran 8.3
13667	  tmp_sharedflag='-G' ;;
13668	esac
13669	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13670
13671        if test yes = "$supports_anon_versioning"; then
13672          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13673            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13674            echo "local: *; };" >> $output_objdir/$libname.ver~
13675            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13676        fi
13677
13678	case $cc_basename in
13679	tcc*)
13680	  export_dynamic_flag_spec='-rdynamic'
13681	  ;;
13682	xlf* | bgf* | bgxlf* | mpixlf*)
13683	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13684	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13685	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13686	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13687	  if test yes = "$supports_anon_versioning"; then
13688	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13689              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13690              echo "local: *; };" >> $output_objdir/$libname.ver~
13691              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13692	  fi
13693	  ;;
13694	esac
13695      else
13696        ld_shlibs=no
13697      fi
13698      ;;
13699
13700    netbsd*)
13701      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13702	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13703	wlarc=
13704      else
13705	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13706	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13707      fi
13708      ;;
13709
13710    solaris*)
13711      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13712	ld_shlibs=no
13713	cat <<_LT_EOF 1>&2
13714
13715*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13716*** create shared libraries on Solaris systems.  Therefore, libtool
13717*** is disabling shared libraries support.  We urge you to upgrade GNU
13718*** binutils to release 2.9.1 or newer.  Another option is to modify
13719*** your PATH or compiler configuration so that the native linker is
13720*** used, and then restart.
13721
13722_LT_EOF
13723      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13724	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13725	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13726      else
13727	ld_shlibs=no
13728      fi
13729      ;;
13730
13731    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13732      case `$LD -v 2>&1` in
13733        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13734	ld_shlibs=no
13735	cat <<_LT_EOF 1>&2
13736
13737*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13738*** reliably create shared libraries on SCO systems.  Therefore, libtool
13739*** is disabling shared libraries support.  We urge you to upgrade GNU
13740*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13741*** your PATH or compiler configuration so that the native linker is
13742*** used, and then restart.
13743
13744_LT_EOF
13745	;;
13746	*)
13747	  # For security reasons, it is highly recommended that you always
13748	  # use absolute paths for naming shared libraries, and exclude the
13749	  # DT_RUNPATH tag from executables and libraries.  But doing so
13750	  # requires that you compile everything twice, which is a pain.
13751	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13752	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13753	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13754	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13755	  else
13756	    ld_shlibs=no
13757	  fi
13758	;;
13759      esac
13760      ;;
13761
13762    sunos4*)
13763      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13764      wlarc=
13765      hardcode_direct=yes
13766      hardcode_shlibpath_var=no
13767      ;;
13768
13769    *)
13770      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13771	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13772	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13773      else
13774	ld_shlibs=no
13775      fi
13776      ;;
13777    esac
13778
13779    if test no = "$ld_shlibs"; then
13780      runpath_var=
13781      hardcode_libdir_flag_spec=
13782      export_dynamic_flag_spec=
13783      whole_archive_flag_spec=
13784    fi
13785  else
13786    # PORTME fill in a description of your system's linker (not GNU ld)
13787    case $host_os in
13788    aix3*)
13789      allow_undefined_flag=unsupported
13790      always_export_symbols=yes
13791      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'
13792      # Note: this linker hardcodes the directories in LIBPATH if there
13793      # are no directories specified by -L.
13794      hardcode_minus_L=yes
13795      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13796	# Neither direct hardcoding nor static linking is supported with a
13797	# broken collect2.
13798	hardcode_direct=unsupported
13799      fi
13800      ;;
13801
13802    aix[4-9]*)
13803      if test ia64 = "$host_cpu"; then
13804	# On IA64, the linker does run time linking by default, so we don't
13805	# have to do anything special.
13806	aix_use_runtimelinking=no
13807	exp_sym_flag='-Bexport'
13808	no_entry_flag=
13809      else
13810	# If we're using GNU nm, then we don't want the "-C" option.
13811	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
13812	# Without the "-l" option, or with the "-B" option, AIX nm treats
13813	# weak defined symbols like other global defined symbols, whereas
13814	# GNU nm marks them as "W".
13815	# While the 'weak' keyword is ignored in the Export File, we need
13816	# it in the Import File for the 'aix-soname' feature, so we have
13817	# to replace the "-B" option with "-P" for AIX nm.
13818	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13819	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
13820	else
13821	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13822	fi
13823	aix_use_runtimelinking=no
13824
13825	# Test if we are trying to use run time linking or normal
13826	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13827	# have runtime linking enabled, and use it for executables.
13828	# For shared libraries, we enable/disable runtime linking
13829	# depending on the kind of the shared library created -
13830	# when "with_aix_soname,aix_use_runtimelinking" is:
13831	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13832	# "aix,yes"  lib.so          shared, rtl:yes, for executables
13833	#            lib.a           static archive
13834	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
13835	#            lib.a(lib.so.V) shared, rtl:no,  for executables
13836	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13837	#            lib.a(lib.so.V) shared, rtl:no
13838	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13839	#            lib.a           static archive
13840	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13841	  for ld_flag in $LDFLAGS; do
13842	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13843	    aix_use_runtimelinking=yes
13844	    break
13845	  fi
13846	  done
13847	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13848	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
13849	    # so we don't have lib.a shared libs to link our executables.
13850	    # We have to force runtime linking in this case.
13851	    aix_use_runtimelinking=yes
13852	    LDFLAGS="$LDFLAGS -Wl,-brtl"
13853	  fi
13854	  ;;
13855	esac
13856
13857	exp_sym_flag='-bexport'
13858	no_entry_flag='-bnoentry'
13859      fi
13860
13861      # When large executables or shared objects are built, AIX ld can
13862      # have problems creating the table of contents.  If linking a library
13863      # or program results in "error TOC overflow" add -mminimal-toc to
13864      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13865      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13866
13867      archive_cmds=''
13868      hardcode_direct=yes
13869      hardcode_direct_absolute=yes
13870      hardcode_libdir_separator=':'
13871      link_all_deplibs=yes
13872      file_list_spec='$wl-f,'
13873      case $with_aix_soname,$aix_use_runtimelinking in
13874      aix,*) ;; # traditional, no import file
13875      svr4,* | *,yes) # use import file
13876	# The Import File defines what to hardcode.
13877	hardcode_direct=no
13878	hardcode_direct_absolute=no
13879	;;
13880      esac
13881
13882      if test yes = "$GCC"; then
13883	case $host_os in aix4.[012]|aix4.[012].*)
13884	# We only want to do this on AIX 4.2 and lower, the check
13885	# below for broken collect2 doesn't work under 4.3+
13886	  collect2name=`$CC -print-prog-name=collect2`
13887	  if test -f "$collect2name" &&
13888	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13889	  then
13890	  # We have reworked collect2
13891	  :
13892	  else
13893	  # We have old collect2
13894	  hardcode_direct=unsupported
13895	  # It fails to find uninstalled libraries when the uninstalled
13896	  # path is not listed in the libpath.  Setting hardcode_minus_L
13897	  # to unsupported forces relinking
13898	  hardcode_minus_L=yes
13899	  hardcode_libdir_flag_spec='-L$libdir'
13900	  hardcode_libdir_separator=
13901	  fi
13902	  ;;
13903	esac
13904	shared_flag='-shared'
13905	if test yes = "$aix_use_runtimelinking"; then
13906	  shared_flag="$shared_flag "'$wl-G'
13907	fi
13908	# Need to ensure runtime linking is disabled for the traditional
13909	# shared library, or the linker may eventually find shared libraries
13910	# /with/ Import File - we do not want to mix them.
13911	shared_flag_aix='-shared'
13912	shared_flag_svr4='-shared $wl-G'
13913      else
13914	# not using gcc
13915	if test ia64 = "$host_cpu"; then
13916	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13917	# chokes on -Wl,-G. The following line is correct:
13918	  shared_flag='-G'
13919	else
13920	  if test yes = "$aix_use_runtimelinking"; then
13921	    shared_flag='$wl-G'
13922	  else
13923	    shared_flag='$wl-bM:SRE'
13924	  fi
13925	  shared_flag_aix='$wl-bM:SRE'
13926	  shared_flag_svr4='$wl-G'
13927	fi
13928      fi
13929
13930      export_dynamic_flag_spec='$wl-bexpall'
13931      # It seems that -bexpall does not export symbols beginning with
13932      # underscore (_), so it is better to generate a list of symbols to export.
13933      always_export_symbols=yes
13934      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13935	# Warning - without using the other runtime loading flags (-brtl),
13936	# -berok will link without error, but may produce a broken library.
13937	allow_undefined_flag='-berok'
13938        # Determine the default libpath from the value encoded in an
13939        # empty executable.
13940        if test set = "${lt_cv_aix_libpath+set}"; then
13941  aix_libpath=$lt_cv_aix_libpath
13942else
13943  if ${lt_cv_aix_libpath_+:} false; then :
13944  $as_echo_n "(cached) " >&6
13945else
13946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947/* end confdefs.h.  */
13948
13949int
13950main ()
13951{
13952
13953  ;
13954  return 0;
13955}
13956_ACEOF
13957if ac_fn_c_try_link "$LINENO"; then :
13958
13959  lt_aix_libpath_sed='
13960      /Import File Strings/,/^$/ {
13961	  /^0/ {
13962	      s/^0  *\([^ ]*\) *$/\1/
13963	      p
13964	  }
13965      }'
13966  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13967  # Check for a 64-bit object if we didn't find anything.
13968  if test -z "$lt_cv_aix_libpath_"; then
13969    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13970  fi
13971fi
13972rm -f core conftest.err conftest.$ac_objext \
13973    conftest$ac_exeext conftest.$ac_ext
13974  if test -z "$lt_cv_aix_libpath_"; then
13975    lt_cv_aix_libpath_=/usr/lib:/lib
13976  fi
13977
13978fi
13979
13980  aix_libpath=$lt_cv_aix_libpath_
13981fi
13982
13983        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13984        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13985      else
13986	if test ia64 = "$host_cpu"; then
13987	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13988	  allow_undefined_flag="-z nodefs"
13989	  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"
13990	else
13991	 # Determine the default libpath from the value encoded in an
13992	 # empty executable.
13993	 if test set = "${lt_cv_aix_libpath+set}"; then
13994  aix_libpath=$lt_cv_aix_libpath
13995else
13996  if ${lt_cv_aix_libpath_+:} false; then :
13997  $as_echo_n "(cached) " >&6
13998else
13999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000/* end confdefs.h.  */
14001
14002int
14003main ()
14004{
14005
14006  ;
14007  return 0;
14008}
14009_ACEOF
14010if ac_fn_c_try_link "$LINENO"; then :
14011
14012  lt_aix_libpath_sed='
14013      /Import File Strings/,/^$/ {
14014	  /^0/ {
14015	      s/^0  *\([^ ]*\) *$/\1/
14016	      p
14017	  }
14018      }'
14019  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14020  # Check for a 64-bit object if we didn't find anything.
14021  if test -z "$lt_cv_aix_libpath_"; then
14022    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14023  fi
14024fi
14025rm -f core conftest.err conftest.$ac_objext \
14026    conftest$ac_exeext conftest.$ac_ext
14027  if test -z "$lt_cv_aix_libpath_"; then
14028    lt_cv_aix_libpath_=/usr/lib:/lib
14029  fi
14030
14031fi
14032
14033  aix_libpath=$lt_cv_aix_libpath_
14034fi
14035
14036	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14037	  # Warning - without using the other run time loading flags,
14038	  # -berok will link without error, but may produce a broken library.
14039	  no_undefined_flag=' $wl-bernotok'
14040	  allow_undefined_flag=' $wl-berok'
14041	  if test yes = "$with_gnu_ld"; then
14042	    # We only use this code for GNU lds that support --whole-archive.
14043	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14044	  else
14045	    # Exported symbols can be pulled into shared objects from archives
14046	    whole_archive_flag_spec='$convenience'
14047	  fi
14048	  archive_cmds_need_lc=yes
14049	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14050	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14051	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14052	  if test svr4 != "$with_aix_soname"; then
14053	    # This is similar to how AIX traditionally builds its shared libraries.
14054	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14055	  fi
14056	  if test aix != "$with_aix_soname"; then
14057	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14058	  else
14059	    # used by -dlpreopen to get the symbols
14060	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14061	  fi
14062	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14063	fi
14064      fi
14065      ;;
14066
14067    amigaos*)
14068      case $host_cpu in
14069      powerpc)
14070            # see comment about AmigaOS4 .so support
14071            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14072            archive_expsym_cmds=''
14073        ;;
14074      m68k)
14075            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)'
14076            hardcode_libdir_flag_spec='-L$libdir'
14077            hardcode_minus_L=yes
14078        ;;
14079      esac
14080      ;;
14081
14082    bsdi[45]*)
14083      export_dynamic_flag_spec=-rdynamic
14084      ;;
14085
14086    cygwin* | mingw* | pw32* | cegcc*)
14087      # When not using gcc, we currently assume that we are using
14088      # Microsoft Visual C++.
14089      # hardcode_libdir_flag_spec is actually meaningless, as there is
14090      # no search path for DLLs.
14091      case $cc_basename in
14092      cl*)
14093	# Native MSVC
14094	hardcode_libdir_flag_spec=' '
14095	allow_undefined_flag=unsupported
14096	always_export_symbols=yes
14097	file_list_spec='@'
14098	# Tell ltmain to make .lib files, not .a files.
14099	libext=lib
14100	# Tell ltmain to make .dll files, not .so files.
14101	shrext_cmds=.dll
14102	# FIXME: Setting linknames here is a bad hack.
14103	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14104	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14105            cp "$export_symbols" "$output_objdir/$soname.def";
14106            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14107          else
14108            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14109          fi~
14110          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14111          linknames='
14112	# The linker will not automatically build a static lib if we build a DLL.
14113	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14114	enable_shared_with_static_runtimes=yes
14115	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14116	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14117	# Don't use ranlib
14118	old_postinstall_cmds='chmod 644 $oldlib'
14119	postlink_cmds='lt_outputfile="@OUTPUT@"~
14120          lt_tool_outputfile="@TOOL_OUTPUT@"~
14121          case $lt_outputfile in
14122            *.exe|*.EXE) ;;
14123            *)
14124              lt_outputfile=$lt_outputfile.exe
14125              lt_tool_outputfile=$lt_tool_outputfile.exe
14126              ;;
14127          esac~
14128          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14129            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14130            $RM "$lt_outputfile.manifest";
14131          fi'
14132	;;
14133      *)
14134	# Assume MSVC wrapper
14135	hardcode_libdir_flag_spec=' '
14136	allow_undefined_flag=unsupported
14137	# Tell ltmain to make .lib files, not .a files.
14138	libext=lib
14139	# Tell ltmain to make .dll files, not .so files.
14140	shrext_cmds=.dll
14141	# FIXME: Setting linknames here is a bad hack.
14142	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14143	# The linker will automatically build a .lib file if we build a DLL.
14144	old_archive_from_new_cmds='true'
14145	# FIXME: Should let the user specify the lib program.
14146	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14147	enable_shared_with_static_runtimes=yes
14148	;;
14149      esac
14150      ;;
14151
14152    darwin* | rhapsody*)
14153
14154
14155  archive_cmds_need_lc=no
14156  hardcode_direct=no
14157  hardcode_automatic=yes
14158  hardcode_shlibpath_var=unsupported
14159  if test yes = "$lt_cv_ld_force_load"; then
14160    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\"`'
14161
14162  else
14163    whole_archive_flag_spec=''
14164  fi
14165  link_all_deplibs=yes
14166  allow_undefined_flag=$_lt_dar_allow_undefined
14167  case $cc_basename in
14168     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14169     *) _lt_dar_can_shared=$GCC ;;
14170  esac
14171  if test yes = "$_lt_dar_can_shared"; then
14172    output_verbose_link_cmd=func_echo_all
14173    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14174    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14175    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"
14176    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"
14177
14178  else
14179  ld_shlibs=no
14180  fi
14181
14182      ;;
14183
14184    dgux*)
14185      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14186      hardcode_libdir_flag_spec='-L$libdir'
14187      hardcode_shlibpath_var=no
14188      ;;
14189
14190    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14191    # support.  Future versions do this automatically, but an explicit c++rt0.o
14192    # does not break anything, and helps significantly (at the cost of a little
14193    # extra space).
14194    freebsd2.2*)
14195      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14196      hardcode_libdir_flag_spec='-R$libdir'
14197      hardcode_direct=yes
14198      hardcode_shlibpath_var=no
14199      ;;
14200
14201    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14202    freebsd2.*)
14203      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14204      hardcode_direct=yes
14205      hardcode_minus_L=yes
14206      hardcode_shlibpath_var=no
14207      ;;
14208
14209    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14210    freebsd* | dragonfly*)
14211      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14212      hardcode_libdir_flag_spec='-R$libdir'
14213      hardcode_direct=yes
14214      hardcode_shlibpath_var=no
14215      ;;
14216
14217    hpux9*)
14218      if test yes = "$GCC"; then
14219	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14220      else
14221	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14222      fi
14223      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14224      hardcode_libdir_separator=:
14225      hardcode_direct=yes
14226
14227      # hardcode_minus_L: Not really in the search PATH,
14228      # but as the default location of the library.
14229      hardcode_minus_L=yes
14230      export_dynamic_flag_spec='$wl-E'
14231      ;;
14232
14233    hpux10*)
14234      if test yes,no = "$GCC,$with_gnu_ld"; then
14235	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14236      else
14237	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14238      fi
14239      if test no = "$with_gnu_ld"; then
14240	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14241	hardcode_libdir_separator=:
14242	hardcode_direct=yes
14243	hardcode_direct_absolute=yes
14244	export_dynamic_flag_spec='$wl-E'
14245	# hardcode_minus_L: Not really in the search PATH,
14246	# but as the default location of the library.
14247	hardcode_minus_L=yes
14248      fi
14249      ;;
14250
14251    hpux11*)
14252      if test yes,no = "$GCC,$with_gnu_ld"; then
14253	case $host_cpu in
14254	hppa*64*)
14255	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14256	  ;;
14257	ia64*)
14258	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14259	  ;;
14260	*)
14261	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14262	  ;;
14263	esac
14264      else
14265	case $host_cpu in
14266	hppa*64*)
14267	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14268	  ;;
14269	ia64*)
14270	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14271	  ;;
14272	*)
14273
14274	  # Older versions of the 11.00 compiler do not understand -b yet
14275	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14276	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14277$as_echo_n "checking if $CC understands -b... " >&6; }
14278if ${lt_cv_prog_compiler__b+:} false; then :
14279  $as_echo_n "(cached) " >&6
14280else
14281  lt_cv_prog_compiler__b=no
14282   save_LDFLAGS=$LDFLAGS
14283   LDFLAGS="$LDFLAGS -b"
14284   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14285   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14286     # The linker can only warn and ignore the option if not recognized
14287     # So say no if there are warnings
14288     if test -s conftest.err; then
14289       # Append any errors to the config.log.
14290       cat conftest.err 1>&5
14291       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14292       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14293       if diff conftest.exp conftest.er2 >/dev/null; then
14294         lt_cv_prog_compiler__b=yes
14295       fi
14296     else
14297       lt_cv_prog_compiler__b=yes
14298     fi
14299   fi
14300   $RM -r conftest*
14301   LDFLAGS=$save_LDFLAGS
14302
14303fi
14304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14305$as_echo "$lt_cv_prog_compiler__b" >&6; }
14306
14307if test yes = "$lt_cv_prog_compiler__b"; then
14308    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14309else
14310    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14311fi
14312
14313	  ;;
14314	esac
14315      fi
14316      if test no = "$with_gnu_ld"; then
14317	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14318	hardcode_libdir_separator=:
14319
14320	case $host_cpu in
14321	hppa*64*|ia64*)
14322	  hardcode_direct=no
14323	  hardcode_shlibpath_var=no
14324	  ;;
14325	*)
14326	  hardcode_direct=yes
14327	  hardcode_direct_absolute=yes
14328	  export_dynamic_flag_spec='$wl-E'
14329
14330	  # hardcode_minus_L: Not really in the search PATH,
14331	  # but as the default location of the library.
14332	  hardcode_minus_L=yes
14333	  ;;
14334	esac
14335      fi
14336      ;;
14337
14338    irix5* | irix6* | nonstopux*)
14339      if test yes = "$GCC"; then
14340	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'
14341	# Try to use the -exported_symbol ld option, if it does not
14342	# work, assume that -exports_file does not work either and
14343	# implicitly export all symbols.
14344	# This should be the same for all languages, so no per-tag cache variable.
14345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14346$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14347if ${lt_cv_irix_exported_symbol+:} false; then :
14348  $as_echo_n "(cached) " >&6
14349else
14350  save_LDFLAGS=$LDFLAGS
14351	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14352	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353/* end confdefs.h.  */
14354int foo (void) { return 0; }
14355_ACEOF
14356if ac_fn_c_try_link "$LINENO"; then :
14357  lt_cv_irix_exported_symbol=yes
14358else
14359  lt_cv_irix_exported_symbol=no
14360fi
14361rm -f core conftest.err conftest.$ac_objext \
14362    conftest$ac_exeext conftest.$ac_ext
14363           LDFLAGS=$save_LDFLAGS
14364fi
14365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14366$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14367	if test yes = "$lt_cv_irix_exported_symbol"; then
14368          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'
14369	fi
14370      else
14371	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'
14372	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'
14373      fi
14374      archive_cmds_need_lc='no'
14375      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14376      hardcode_libdir_separator=:
14377      inherit_rpath=yes
14378      link_all_deplibs=yes
14379      ;;
14380
14381    linux*)
14382      case $cc_basename in
14383      tcc*)
14384	# Fabrice Bellard et al's Tiny C Compiler
14385	ld_shlibs=yes
14386	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14387	;;
14388      esac
14389      ;;
14390
14391    netbsd*)
14392      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14393	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14394      else
14395	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14396      fi
14397      hardcode_libdir_flag_spec='-R$libdir'
14398      hardcode_direct=yes
14399      hardcode_shlibpath_var=no
14400      ;;
14401
14402    newsos6)
14403      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14404      hardcode_direct=yes
14405      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14406      hardcode_libdir_separator=:
14407      hardcode_shlibpath_var=no
14408      ;;
14409
14410    *nto* | *qnx*)
14411      ;;
14412
14413    openbsd* | bitrig*)
14414      if test -f /usr/libexec/ld.so; then
14415	hardcode_direct=yes
14416	hardcode_shlibpath_var=no
14417	hardcode_direct_absolute=yes
14418	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14419	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14420	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14421	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14422	  export_dynamic_flag_spec='$wl-E'
14423	else
14424	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14425	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14426	fi
14427      else
14428	ld_shlibs=no
14429      fi
14430      ;;
14431
14432    os2*)
14433      hardcode_libdir_flag_spec='-L$libdir'
14434      hardcode_minus_L=yes
14435      allow_undefined_flag=unsupported
14436      shrext_cmds=.dll
14437      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14438	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14439	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14440	$ECHO EXPORTS >> $output_objdir/$libname.def~
14441	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14442	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14443	emximp -o $lib $output_objdir/$libname.def'
14444      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14445	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14446	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14447	$ECHO EXPORTS >> $output_objdir/$libname.def~
14448	prefix_cmds="$SED"~
14449	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14450	  prefix_cmds="$prefix_cmds -e 1d";
14451	fi~
14452	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14453	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14454	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14455	emximp -o $lib $output_objdir/$libname.def'
14456      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14457      enable_shared_with_static_runtimes=yes
14458      ;;
14459
14460    osf3*)
14461      if test yes = "$GCC"; then
14462	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14463	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'
14464      else
14465	allow_undefined_flag=' -expect_unresolved \*'
14466	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'
14467      fi
14468      archive_cmds_need_lc='no'
14469      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14470      hardcode_libdir_separator=:
14471      ;;
14472
14473    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14474      if test yes = "$GCC"; then
14475	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14476	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'
14477	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14478      else
14479	allow_undefined_flag=' -expect_unresolved \*'
14480	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'
14481	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~
14482          $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'
14483
14484	# Both c and cxx compiler support -rpath directly
14485	hardcode_libdir_flag_spec='-rpath $libdir'
14486      fi
14487      archive_cmds_need_lc='no'
14488      hardcode_libdir_separator=:
14489      ;;
14490
14491    solaris*)
14492      no_undefined_flag=' -z defs'
14493      if test yes = "$GCC"; then
14494	wlarc='$wl'
14495	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14496	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14497          $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'
14498      else
14499	case `$CC -V 2>&1` in
14500	*"Compilers 5.0"*)
14501	  wlarc=''
14502	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14504            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14505	  ;;
14506	*)
14507	  wlarc='$wl'
14508	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14509	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14510            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14511	  ;;
14512	esac
14513      fi
14514      hardcode_libdir_flag_spec='-R$libdir'
14515      hardcode_shlibpath_var=no
14516      case $host_os in
14517      solaris2.[0-5] | solaris2.[0-5].*) ;;
14518      *)
14519	# The compiler driver will combine and reorder linker options,
14520	# but understands '-z linker_flag'.  GCC discards it without '$wl',
14521	# but is careful enough not to reorder.
14522	# Supported since Solaris 2.6 (maybe 2.5.1?)
14523	if test yes = "$GCC"; then
14524	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14525	else
14526	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14527	fi
14528	;;
14529      esac
14530      link_all_deplibs=yes
14531      ;;
14532
14533    sunos4*)
14534      if test sequent = "$host_vendor"; then
14535	# Use $CC to link under sequent, because it throws in some extra .o
14536	# files that make .init and .fini sections work.
14537	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14538      else
14539	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14540      fi
14541      hardcode_libdir_flag_spec='-L$libdir'
14542      hardcode_direct=yes
14543      hardcode_minus_L=yes
14544      hardcode_shlibpath_var=no
14545      ;;
14546
14547    sysv4)
14548      case $host_vendor in
14549	sni)
14550	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14551	  hardcode_direct=yes # is this really true???
14552	;;
14553	siemens)
14554	  ## LD is ld it makes a PLAMLIB
14555	  ## CC just makes a GrossModule.
14556	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14557	  reload_cmds='$CC -r -o $output$reload_objs'
14558	  hardcode_direct=no
14559        ;;
14560	motorola)
14561	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14562	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14563	;;
14564      esac
14565      runpath_var='LD_RUN_PATH'
14566      hardcode_shlibpath_var=no
14567      ;;
14568
14569    sysv4.3*)
14570      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14571      hardcode_shlibpath_var=no
14572      export_dynamic_flag_spec='-Bexport'
14573      ;;
14574
14575    sysv4*MP*)
14576      if test -d /usr/nec; then
14577	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14578	hardcode_shlibpath_var=no
14579	runpath_var=LD_RUN_PATH
14580	hardcode_runpath_var=yes
14581	ld_shlibs=yes
14582      fi
14583      ;;
14584
14585    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14586      no_undefined_flag='$wl-z,text'
14587      archive_cmds_need_lc=no
14588      hardcode_shlibpath_var=no
14589      runpath_var='LD_RUN_PATH'
14590
14591      if test yes = "$GCC"; then
14592	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14593	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14594      else
14595	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14596	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14597      fi
14598      ;;
14599
14600    sysv5* | sco3.2v5* | sco5v6*)
14601      # Note: We CANNOT use -z defs as we might desire, because we do not
14602      # link with -lc, and that would cause any symbols used from libc to
14603      # always be unresolved, which means just about no library would
14604      # ever link correctly.  If we're not using GNU ld we use -z text
14605      # though, which does catch some bad symbols but isn't as heavy-handed
14606      # as -z defs.
14607      no_undefined_flag='$wl-z,text'
14608      allow_undefined_flag='$wl-z,nodefs'
14609      archive_cmds_need_lc=no
14610      hardcode_shlibpath_var=no
14611      hardcode_libdir_flag_spec='$wl-R,$libdir'
14612      hardcode_libdir_separator=':'
14613      link_all_deplibs=yes
14614      export_dynamic_flag_spec='$wl-Bexport'
14615      runpath_var='LD_RUN_PATH'
14616
14617      if test yes = "$GCC"; then
14618	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14619	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14620      else
14621	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14622	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14623      fi
14624      ;;
14625
14626    uts4*)
14627      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14628      hardcode_libdir_flag_spec='-L$libdir'
14629      hardcode_shlibpath_var=no
14630      ;;
14631
14632    *)
14633      ld_shlibs=no
14634      ;;
14635    esac
14636
14637    if test sni = "$host_vendor"; then
14638      case $host in
14639      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14640	export_dynamic_flag_spec='$wl-Blargedynsym'
14641	;;
14642      esac
14643    fi
14644  fi
14645
14646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14647$as_echo "$ld_shlibs" >&6; }
14648test no = "$ld_shlibs" && can_build_shared=no
14649
14650with_gnu_ld=$with_gnu_ld
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666#
14667# Do we need to explicitly link libc?
14668#
14669case "x$archive_cmds_need_lc" in
14670x|xyes)
14671  # Assume -lc should be added
14672  archive_cmds_need_lc=yes
14673
14674  if test yes,yes = "$GCC,$enable_shared"; then
14675    case $archive_cmds in
14676    *'~'*)
14677      # FIXME: we may have to deal with multi-command sequences.
14678      ;;
14679    '$CC '*)
14680      # Test whether the compiler implicitly links with -lc since on some
14681      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14682      # to ld, don't add -lc before -lgcc.
14683      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14684$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14685if ${lt_cv_archive_cmds_need_lc+:} false; then :
14686  $as_echo_n "(cached) " >&6
14687else
14688  $RM conftest*
14689	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14690
14691	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14692  (eval $ac_compile) 2>&5
14693  ac_status=$?
14694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14695  test $ac_status = 0; } 2>conftest.err; then
14696	  soname=conftest
14697	  lib=conftest
14698	  libobjs=conftest.$ac_objext
14699	  deplibs=
14700	  wl=$lt_prog_compiler_wl
14701	  pic_flag=$lt_prog_compiler_pic
14702	  compiler_flags=-v
14703	  linker_flags=-v
14704	  verstring=
14705	  output_objdir=.
14706	  libname=conftest
14707	  lt_save_allow_undefined_flag=$allow_undefined_flag
14708	  allow_undefined_flag=
14709	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14710  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14711  ac_status=$?
14712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14713  test $ac_status = 0; }
14714	  then
14715	    lt_cv_archive_cmds_need_lc=no
14716	  else
14717	    lt_cv_archive_cmds_need_lc=yes
14718	  fi
14719	  allow_undefined_flag=$lt_save_allow_undefined_flag
14720	else
14721	  cat conftest.err 1>&5
14722	fi
14723	$RM conftest*
14724
14725fi
14726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14727$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14728      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14729      ;;
14730    esac
14731  fi
14732  ;;
14733esac
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14887$as_echo_n "checking dynamic linker characteristics... " >&6; }
14888
14889if test yes = "$GCC"; then
14890  case $host_os in
14891    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14892    *) lt_awk_arg='/^libraries:/' ;;
14893  esac
14894  case $host_os in
14895    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14896    *) lt_sed_strip_eq='s|=/|/|g' ;;
14897  esac
14898  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14899  case $lt_search_path_spec in
14900  *\;*)
14901    # if the path contains ";" then we assume it to be the separator
14902    # otherwise default to the standard path separator (i.e. ":") - it is
14903    # assumed that no part of a normal pathname contains ";" but that should
14904    # okay in the real world where ";" in dirpaths is itself problematic.
14905    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14906    ;;
14907  *)
14908    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14909    ;;
14910  esac
14911  # Ok, now we have the path, separated by spaces, we can step through it
14912  # and add multilib dir if necessary...
14913  lt_tmp_lt_search_path_spec=
14914  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14915  # ...but if some path component already ends with the multilib dir we assume
14916  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14917  case "$lt_multi_os_dir; $lt_search_path_spec " in
14918  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14919    lt_multi_os_dir=
14920    ;;
14921  esac
14922  for lt_sys_path in $lt_search_path_spec; do
14923    if test -d "$lt_sys_path$lt_multi_os_dir"; then
14924      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14925    elif test -n "$lt_multi_os_dir"; then
14926      test -d "$lt_sys_path" && \
14927	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14928    fi
14929  done
14930  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14931BEGIN {RS = " "; FS = "/|\n";} {
14932  lt_foo = "";
14933  lt_count = 0;
14934  for (lt_i = NF; lt_i > 0; lt_i--) {
14935    if ($lt_i != "" && $lt_i != ".") {
14936      if ($lt_i == "..") {
14937        lt_count++;
14938      } else {
14939        if (lt_count == 0) {
14940          lt_foo = "/" $lt_i lt_foo;
14941        } else {
14942          lt_count--;
14943        }
14944      }
14945    }
14946  }
14947  if (lt_foo != "") { lt_freq[lt_foo]++; }
14948  if (lt_freq[lt_foo] == 1) { print lt_foo; }
14949}'`
14950  # AWK program above erroneously prepends '/' to C:/dos/paths
14951  # for these hosts.
14952  case $host_os in
14953    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14954      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14955  esac
14956  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14957else
14958  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14959fi
14960library_names_spec=
14961libname_spec='lib$name'
14962soname_spec=
14963shrext_cmds=.so
14964postinstall_cmds=
14965postuninstall_cmds=
14966finish_cmds=
14967finish_eval=
14968shlibpath_var=
14969shlibpath_overrides_runpath=unknown
14970version_type=none
14971dynamic_linker="$host_os ld.so"
14972sys_lib_dlsearch_path_spec="/lib /usr/lib"
14973need_lib_prefix=unknown
14974hardcode_into_libs=no
14975
14976# when you set need_version to no, make sure it does not cause -set_version
14977# flags to be left without arguments
14978need_version=unknown
14979
14980
14981
14982case $host_os in
14983aix3*)
14984  version_type=linux # correct to gnu/linux during the next big refactor
14985  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14986  shlibpath_var=LIBPATH
14987
14988  # AIX 3 has no versioning support, so we append a major version to the name.
14989  soname_spec='$libname$release$shared_ext$major'
14990  ;;
14991
14992aix[4-9]*)
14993  version_type=linux # correct to gnu/linux during the next big refactor
14994  need_lib_prefix=no
14995  need_version=no
14996  hardcode_into_libs=yes
14997  if test ia64 = "$host_cpu"; then
14998    # AIX 5 supports IA64
14999    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15000    shlibpath_var=LD_LIBRARY_PATH
15001  else
15002    # With GCC up to 2.95.x, collect2 would create an import file
15003    # for dependence libraries.  The import file would start with
15004    # the line '#! .'.  This would cause the generated library to
15005    # depend on '.', always an invalid library.  This was fixed in
15006    # development snapshots of GCC prior to 3.0.
15007    case $host_os in
15008      aix4 | aix4.[01] | aix4.[01].*)
15009      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15010	   echo ' yes '
15011	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15012	:
15013      else
15014	can_build_shared=no
15015      fi
15016      ;;
15017    esac
15018    # Using Import Files as archive members, it is possible to support
15019    # filename-based versioning of shared library archives on AIX. While
15020    # this would work for both with and without runtime linking, it will
15021    # prevent static linking of such archives. So we do filename-based
15022    # shared library versioning with .so extension only, which is used
15023    # when both runtime linking and shared linking is enabled.
15024    # Unfortunately, runtime linking may impact performance, so we do
15025    # not want this to be the default eventually. Also, we use the
15026    # versioned .so libs for executables only if there is the -brtl
15027    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15028    # To allow for filename-based versioning support, we need to create
15029    # libNAME.so.V as an archive file, containing:
15030    # *) an Import File, referring to the versioned filename of the
15031    #    archive as well as the shared archive member, telling the
15032    #    bitwidth (32 or 64) of that shared object, and providing the
15033    #    list of exported symbols of that shared object, eventually
15034    #    decorated with the 'weak' keyword
15035    # *) the shared object with the F_LOADONLY flag set, to really avoid
15036    #    it being seen by the linker.
15037    # At run time we better use the real file rather than another symlink,
15038    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15039
15040    case $with_aix_soname,$aix_use_runtimelinking in
15041    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15042    # soname into executable. Probably we can add versioning support to
15043    # collect2, so additional links can be useful in future.
15044    aix,yes) # traditional libtool
15045      dynamic_linker='AIX unversionable lib.so'
15046      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15047      # instead of lib<name>.a to let people know that these are not
15048      # typical AIX shared libraries.
15049      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15050      ;;
15051    aix,no) # traditional AIX only
15052      dynamic_linker='AIX lib.a(lib.so.V)'
15053      # We preserve .a as extension for shared libraries through AIX4.2
15054      # and later when we are not doing run time linking.
15055      library_names_spec='$libname$release.a $libname.a'
15056      soname_spec='$libname$release$shared_ext$major'
15057      ;;
15058    svr4,*) # full svr4 only
15059      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15060      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15061      # We do not specify a path in Import Files, so LIBPATH fires.
15062      shlibpath_overrides_runpath=yes
15063      ;;
15064    *,yes) # both, prefer svr4
15065      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15066      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15067      # unpreferred sharedlib libNAME.a needs extra handling
15068      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15069      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15070      # We do not specify a path in Import Files, so LIBPATH fires.
15071      shlibpath_overrides_runpath=yes
15072      ;;
15073    *,no) # both, prefer aix
15074      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15075      library_names_spec='$libname$release.a $libname.a'
15076      soname_spec='$libname$release$shared_ext$major'
15077      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15078      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15079      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15080      ;;
15081    esac
15082    shlibpath_var=LIBPATH
15083  fi
15084  ;;
15085
15086amigaos*)
15087  case $host_cpu in
15088  powerpc)
15089    # Since July 2007 AmigaOS4 officially supports .so libraries.
15090    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15091    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15092    ;;
15093  m68k)
15094    library_names_spec='$libname.ixlibrary $libname.a'
15095    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15096    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15097    ;;
15098  esac
15099  ;;
15100
15101beos*)
15102  library_names_spec='$libname$shared_ext'
15103  dynamic_linker="$host_os ld.so"
15104  shlibpath_var=LIBRARY_PATH
15105  ;;
15106
15107bsdi[45]*)
15108  version_type=linux # correct to gnu/linux during the next big refactor
15109  need_version=no
15110  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15111  soname_spec='$libname$release$shared_ext$major'
15112  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15113  shlibpath_var=LD_LIBRARY_PATH
15114  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15115  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15116  # the default ld.so.conf also contains /usr/contrib/lib and
15117  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15118  # libtool to hard-code these into programs
15119  ;;
15120
15121cygwin* | mingw* | pw32* | cegcc*)
15122  version_type=windows
15123  shrext_cmds=.dll
15124  need_version=no
15125  need_lib_prefix=no
15126
15127  case $GCC,$cc_basename in
15128  yes,*)
15129    # gcc
15130    library_names_spec='$libname.dll.a'
15131    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15132    postinstall_cmds='base_file=`basename \$file`~
15133      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15134      dldir=$destdir/`dirname \$dlpath`~
15135      test -d \$dldir || mkdir -p \$dldir~
15136      $install_prog $dir/$dlname \$dldir/$dlname~
15137      chmod a+x \$dldir/$dlname~
15138      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15139        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15140      fi'
15141    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15142      dlpath=$dir/\$dldll~
15143       $RM \$dlpath'
15144    shlibpath_overrides_runpath=yes
15145
15146    case $host_os in
15147    cygwin*)
15148      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15149      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15150
15151      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15152      ;;
15153    mingw* | cegcc*)
15154      # MinGW DLLs use traditional 'lib' prefix
15155      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15156      ;;
15157    pw32*)
15158      # pw32 DLLs use 'pw' prefix rather than 'lib'
15159      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15160      ;;
15161    esac
15162    dynamic_linker='Win32 ld.exe'
15163    ;;
15164
15165  *,cl*)
15166    # Native MSVC
15167    libname_spec='$name'
15168    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15169    library_names_spec='$libname.dll.lib'
15170
15171    case $build_os in
15172    mingw*)
15173      sys_lib_search_path_spec=
15174      lt_save_ifs=$IFS
15175      IFS=';'
15176      for lt_path in $LIB
15177      do
15178        IFS=$lt_save_ifs
15179        # Let DOS variable expansion print the short 8.3 style file name.
15180        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15181        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15182      done
15183      IFS=$lt_save_ifs
15184      # Convert to MSYS style.
15185      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15186      ;;
15187    cygwin*)
15188      # Convert to unix form, then to dos form, then back to unix form
15189      # but this time dos style (no spaces!) so that the unix form looks
15190      # like /cygdrive/c/PROGRA~1:/cygdr...
15191      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15192      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15193      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15194      ;;
15195    *)
15196      sys_lib_search_path_spec=$LIB
15197      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15198        # It is most probably a Windows format PATH.
15199        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15200      else
15201        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15202      fi
15203      # FIXME: find the short name or the path components, as spaces are
15204      # common. (e.g. "Program Files" -> "PROGRA~1")
15205      ;;
15206    esac
15207
15208    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15209    postinstall_cmds='base_file=`basename \$file`~
15210      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15211      dldir=$destdir/`dirname \$dlpath`~
15212      test -d \$dldir || mkdir -p \$dldir~
15213      $install_prog $dir/$dlname \$dldir/$dlname'
15214    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15215      dlpath=$dir/\$dldll~
15216       $RM \$dlpath'
15217    shlibpath_overrides_runpath=yes
15218    dynamic_linker='Win32 link.exe'
15219    ;;
15220
15221  *)
15222    # Assume MSVC wrapper
15223    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15224    dynamic_linker='Win32 ld.exe'
15225    ;;
15226  esac
15227  # FIXME: first we should search . and the directory the executable is in
15228  shlibpath_var=PATH
15229  ;;
15230
15231darwin* | rhapsody*)
15232  dynamic_linker="$host_os dyld"
15233  version_type=darwin
15234  need_lib_prefix=no
15235  need_version=no
15236  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15237  soname_spec='$libname$release$major$shared_ext'
15238  shlibpath_overrides_runpath=yes
15239  shlibpath_var=DYLD_LIBRARY_PATH
15240  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15241
15242  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15243  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15244  ;;
15245
15246dgux*)
15247  version_type=linux # correct to gnu/linux during the next big refactor
15248  need_lib_prefix=no
15249  need_version=no
15250  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15251  soname_spec='$libname$release$shared_ext$major'
15252  shlibpath_var=LD_LIBRARY_PATH
15253  ;;
15254
15255freebsd* | dragonfly*)
15256  # DragonFly does not have aout.  When/if they implement a new
15257  # versioning mechanism, adjust this.
15258  if test -x /usr/bin/objformat; then
15259    objformat=`/usr/bin/objformat`
15260  else
15261    case $host_os in
15262    freebsd[23].*) objformat=aout ;;
15263    *) objformat=elf ;;
15264    esac
15265  fi
15266  version_type=freebsd-$objformat
15267  case $version_type in
15268    freebsd-elf*)
15269      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15270      soname_spec='$libname$release$shared_ext$major'
15271      need_version=no
15272      need_lib_prefix=no
15273      ;;
15274    freebsd-*)
15275      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15276      need_version=yes
15277      ;;
15278  esac
15279  shlibpath_var=LD_LIBRARY_PATH
15280  case $host_os in
15281  freebsd2.*)
15282    shlibpath_overrides_runpath=yes
15283    ;;
15284  freebsd3.[01]* | freebsdelf3.[01]*)
15285    shlibpath_overrides_runpath=yes
15286    hardcode_into_libs=yes
15287    ;;
15288  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15289  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15290    shlibpath_overrides_runpath=no
15291    hardcode_into_libs=yes
15292    ;;
15293  *) # from 4.6 on, and DragonFly
15294    shlibpath_overrides_runpath=yes
15295    hardcode_into_libs=yes
15296    ;;
15297  esac
15298  ;;
15299
15300haiku*)
15301  version_type=linux # correct to gnu/linux during the next big refactor
15302  need_lib_prefix=no
15303  need_version=no
15304  dynamic_linker="$host_os runtime_loader"
15305  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15306  soname_spec='$libname$release$shared_ext$major'
15307  shlibpath_var=LIBRARY_PATH
15308  shlibpath_overrides_runpath=no
15309  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15310  hardcode_into_libs=yes
15311  ;;
15312
15313hpux9* | hpux10* | hpux11*)
15314  # Give a soname corresponding to the major version so that dld.sl refuses to
15315  # link against other versions.
15316  version_type=sunos
15317  need_lib_prefix=no
15318  need_version=no
15319  case $host_cpu in
15320  ia64*)
15321    shrext_cmds='.so'
15322    hardcode_into_libs=yes
15323    dynamic_linker="$host_os dld.so"
15324    shlibpath_var=LD_LIBRARY_PATH
15325    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15326    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15327    soname_spec='$libname$release$shared_ext$major'
15328    if test 32 = "$HPUX_IA64_MODE"; then
15329      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15330      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15331    else
15332      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15333      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15334    fi
15335    ;;
15336  hppa*64*)
15337    shrext_cmds='.sl'
15338    hardcode_into_libs=yes
15339    dynamic_linker="$host_os dld.sl"
15340    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15341    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15342    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15343    soname_spec='$libname$release$shared_ext$major'
15344    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15345    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15346    ;;
15347  *)
15348    shrext_cmds='.sl'
15349    dynamic_linker="$host_os dld.sl"
15350    shlibpath_var=SHLIB_PATH
15351    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15352    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15353    soname_spec='$libname$release$shared_ext$major'
15354    ;;
15355  esac
15356  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15357  postinstall_cmds='chmod 555 $lib'
15358  # or fails outright, so override atomically:
15359  install_override_mode=555
15360  ;;
15361
15362interix[3-9]*)
15363  version_type=linux # correct to gnu/linux during the next big refactor
15364  need_lib_prefix=no
15365  need_version=no
15366  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15367  soname_spec='$libname$release$shared_ext$major'
15368  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15369  shlibpath_var=LD_LIBRARY_PATH
15370  shlibpath_overrides_runpath=no
15371  hardcode_into_libs=yes
15372  ;;
15373
15374irix5* | irix6* | nonstopux*)
15375  case $host_os in
15376    nonstopux*) version_type=nonstopux ;;
15377    *)
15378	if test yes = "$lt_cv_prog_gnu_ld"; then
15379		version_type=linux # correct to gnu/linux during the next big refactor
15380	else
15381		version_type=irix
15382	fi ;;
15383  esac
15384  need_lib_prefix=no
15385  need_version=no
15386  soname_spec='$libname$release$shared_ext$major'
15387  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15388  case $host_os in
15389  irix5* | nonstopux*)
15390    libsuff= shlibsuff=
15391    ;;
15392  *)
15393    case $LD in # libtool.m4 will add one of these switches to LD
15394    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15395      libsuff= shlibsuff= libmagic=32-bit;;
15396    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15397      libsuff=32 shlibsuff=N32 libmagic=N32;;
15398    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15399      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15400    *) libsuff= shlibsuff= libmagic=never-match;;
15401    esac
15402    ;;
15403  esac
15404  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15405  shlibpath_overrides_runpath=no
15406  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15407  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15408  hardcode_into_libs=yes
15409  ;;
15410
15411# No shared lib support for Linux oldld, aout, or coff.
15412linux*oldld* | linux*aout* | linux*coff*)
15413  dynamic_linker=no
15414  ;;
15415
15416linux*android*)
15417  version_type=none # Android doesn't support versioned libraries.
15418  need_lib_prefix=no
15419  need_version=no
15420  library_names_spec='$libname$release$shared_ext'
15421  soname_spec='$libname$release$shared_ext'
15422  finish_cmds=
15423  shlibpath_var=LD_LIBRARY_PATH
15424  shlibpath_overrides_runpath=yes
15425
15426  # This implies no fast_install, which is unacceptable.
15427  # Some rework will be needed to allow for fast_install
15428  # before this can be enabled.
15429  hardcode_into_libs=yes
15430
15431  dynamic_linker='Android linker'
15432  # Don't embed -rpath directories since the linker doesn't support them.
15433  hardcode_libdir_flag_spec='-L$libdir'
15434  ;;
15435
15436# This must be glibc/ELF.
15437linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15438  version_type=linux # correct to gnu/linux during the next big refactor
15439  need_lib_prefix=no
15440  need_version=no
15441  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15442  soname_spec='$libname$release$shared_ext$major'
15443  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15444  shlibpath_var=LD_LIBRARY_PATH
15445  shlibpath_overrides_runpath=no
15446
15447  # Some binutils ld are patched to set DT_RUNPATH
15448  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15449  $as_echo_n "(cached) " >&6
15450else
15451  lt_cv_shlibpath_overrides_runpath=no
15452    save_LDFLAGS=$LDFLAGS
15453    save_libdir=$libdir
15454    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15455	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15456    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457/* end confdefs.h.  */
15458
15459int
15460main ()
15461{
15462
15463  ;
15464  return 0;
15465}
15466_ACEOF
15467if ac_fn_c_try_link "$LINENO"; then :
15468  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15469  lt_cv_shlibpath_overrides_runpath=yes
15470fi
15471fi
15472rm -f core conftest.err conftest.$ac_objext \
15473    conftest$ac_exeext conftest.$ac_ext
15474    LDFLAGS=$save_LDFLAGS
15475    libdir=$save_libdir
15476
15477fi
15478
15479  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15480
15481  # This implies no fast_install, which is unacceptable.
15482  # Some rework will be needed to allow for fast_install
15483  # before this can be enabled.
15484  hardcode_into_libs=yes
15485
15486  # Ideally, we could use ldconfig to report *all* directores which are
15487  # searched for libraries, however this is still not possible.  Aside from not
15488  # being certain /sbin/ldconfig is available, command
15489  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15490  # even though it is searched at run-time.  Try to do the best guess by
15491  # appending ld.so.conf contents (and includes) to the search path.
15492  if test -f /etc/ld.so.conf; then
15493    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' ' '`
15494    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15495  fi
15496
15497  # We used to test for /lib/ld.so.1 and disable shared libraries on
15498  # powerpc, because MkLinux only supported shared libraries with the
15499  # GNU dynamic linker.  Since this was broken with cross compilers,
15500  # most powerpc-linux boxes support dynamic linking these days and
15501  # people can always --disable-shared, the test was removed, and we
15502  # assume the GNU/Linux dynamic linker is in use.
15503  dynamic_linker='GNU/Linux ld.so'
15504  ;;
15505
15506netbsd*)
15507  version_type=sunos
15508  need_lib_prefix=no
15509  need_version=no
15510  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15511    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15512    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15513    dynamic_linker='NetBSD (a.out) ld.so'
15514  else
15515    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15516    soname_spec='$libname$release$shared_ext$major'
15517    dynamic_linker='NetBSD ld.elf_so'
15518  fi
15519  shlibpath_var=LD_LIBRARY_PATH
15520  shlibpath_overrides_runpath=yes
15521  hardcode_into_libs=yes
15522  ;;
15523
15524newsos6)
15525  version_type=linux # correct to gnu/linux during the next big refactor
15526  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15527  shlibpath_var=LD_LIBRARY_PATH
15528  shlibpath_overrides_runpath=yes
15529  ;;
15530
15531*nto* | *qnx*)
15532  version_type=qnx
15533  need_lib_prefix=no
15534  need_version=no
15535  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15536  soname_spec='$libname$release$shared_ext$major'
15537  shlibpath_var=LD_LIBRARY_PATH
15538  shlibpath_overrides_runpath=no
15539  hardcode_into_libs=yes
15540  dynamic_linker='ldqnx.so'
15541  ;;
15542
15543openbsd* | bitrig*)
15544  version_type=sunos
15545  sys_lib_dlsearch_path_spec=/usr/lib
15546  need_lib_prefix=no
15547  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15548    need_version=no
15549  else
15550    need_version=yes
15551  fi
15552  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15553  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15554  shlibpath_var=LD_LIBRARY_PATH
15555  shlibpath_overrides_runpath=yes
15556  ;;
15557
15558os2*)
15559  libname_spec='$name'
15560  version_type=windows
15561  shrext_cmds=.dll
15562  need_version=no
15563  need_lib_prefix=no
15564  # OS/2 can only load a DLL with a base name of 8 characters or less.
15565  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15566    v=$($ECHO $release$versuffix | tr -d .-);
15567    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15568    $ECHO $n$v`$shared_ext'
15569  library_names_spec='${libname}_dll.$libext'
15570  dynamic_linker='OS/2 ld.exe'
15571  shlibpath_var=BEGINLIBPATH
15572  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15573  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15574  postinstall_cmds='base_file=`basename \$file`~
15575    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15576    dldir=$destdir/`dirname \$dlpath`~
15577    test -d \$dldir || mkdir -p \$dldir~
15578    $install_prog $dir/$dlname \$dldir/$dlname~
15579    chmod a+x \$dldir/$dlname~
15580    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15581      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15582    fi'
15583  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15584    dlpath=$dir/\$dldll~
15585    $RM \$dlpath'
15586  ;;
15587
15588osf3* | osf4* | osf5*)
15589  version_type=osf
15590  need_lib_prefix=no
15591  need_version=no
15592  soname_spec='$libname$release$shared_ext$major'
15593  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15594  shlibpath_var=LD_LIBRARY_PATH
15595  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15596  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15597  ;;
15598
15599rdos*)
15600  dynamic_linker=no
15601  ;;
15602
15603solaris*)
15604  version_type=linux # correct to gnu/linux during the next big refactor
15605  need_lib_prefix=no
15606  need_version=no
15607  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15608  soname_spec='$libname$release$shared_ext$major'
15609  shlibpath_var=LD_LIBRARY_PATH
15610  shlibpath_overrides_runpath=yes
15611  hardcode_into_libs=yes
15612  # ldd complains unless libraries are executable
15613  postinstall_cmds='chmod +x $lib'
15614  ;;
15615
15616sunos4*)
15617  version_type=sunos
15618  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15619  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15620  shlibpath_var=LD_LIBRARY_PATH
15621  shlibpath_overrides_runpath=yes
15622  if test yes = "$with_gnu_ld"; then
15623    need_lib_prefix=no
15624  fi
15625  need_version=yes
15626  ;;
15627
15628sysv4 | sysv4.3*)
15629  version_type=linux # correct to gnu/linux during the next big refactor
15630  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15631  soname_spec='$libname$release$shared_ext$major'
15632  shlibpath_var=LD_LIBRARY_PATH
15633  case $host_vendor in
15634    sni)
15635      shlibpath_overrides_runpath=no
15636      need_lib_prefix=no
15637      runpath_var=LD_RUN_PATH
15638      ;;
15639    siemens)
15640      need_lib_prefix=no
15641      ;;
15642    motorola)
15643      need_lib_prefix=no
15644      need_version=no
15645      shlibpath_overrides_runpath=no
15646      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15647      ;;
15648  esac
15649  ;;
15650
15651sysv4*MP*)
15652  if test -d /usr/nec; then
15653    version_type=linux # correct to gnu/linux during the next big refactor
15654    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15655    soname_spec='$libname$shared_ext.$major'
15656    shlibpath_var=LD_LIBRARY_PATH
15657  fi
15658  ;;
15659
15660sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15661  version_type=sco
15662  need_lib_prefix=no
15663  need_version=no
15664  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15665  soname_spec='$libname$release$shared_ext$major'
15666  shlibpath_var=LD_LIBRARY_PATH
15667  shlibpath_overrides_runpath=yes
15668  hardcode_into_libs=yes
15669  if test yes = "$with_gnu_ld"; then
15670    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15671  else
15672    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15673    case $host_os in
15674      sco3.2v5*)
15675        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15676	;;
15677    esac
15678  fi
15679  sys_lib_dlsearch_path_spec='/usr/lib'
15680  ;;
15681
15682tpf*)
15683  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15684  version_type=linux # correct to gnu/linux during the next big refactor
15685  need_lib_prefix=no
15686  need_version=no
15687  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15688  shlibpath_var=LD_LIBRARY_PATH
15689  shlibpath_overrides_runpath=no
15690  hardcode_into_libs=yes
15691  ;;
15692
15693uts4*)
15694  version_type=linux # correct to gnu/linux during the next big refactor
15695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15696  soname_spec='$libname$release$shared_ext$major'
15697  shlibpath_var=LD_LIBRARY_PATH
15698  ;;
15699
15700*)
15701  dynamic_linker=no
15702  ;;
15703esac
15704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15705$as_echo "$dynamic_linker" >&6; }
15706test no = "$dynamic_linker" && can_build_shared=no
15707
15708variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15709if test yes = "$GCC"; then
15710  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15711fi
15712
15713if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15714  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15715fi
15716
15717if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15718  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15719fi
15720
15721# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15722configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15723
15724# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15725func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15726
15727# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15728configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15827$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15828hardcode_action=
15829if test -n "$hardcode_libdir_flag_spec" ||
15830   test -n "$runpath_var" ||
15831   test yes = "$hardcode_automatic"; then
15832
15833  # We can hardcode non-existent directories.
15834  if test no != "$hardcode_direct" &&
15835     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15836     # have to relink, otherwise we might link with an installed library
15837     # when we should be linking with a yet-to-be-installed one
15838     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15839     test no != "$hardcode_minus_L"; then
15840    # Linking always hardcodes the temporary library directory.
15841    hardcode_action=relink
15842  else
15843    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15844    hardcode_action=immediate
15845  fi
15846else
15847  # We cannot hardcode anything, or else we can only hardcode existing
15848  # directories.
15849  hardcode_action=unsupported
15850fi
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15852$as_echo "$hardcode_action" >&6; }
15853
15854if test relink = "$hardcode_action" ||
15855   test yes = "$inherit_rpath"; then
15856  # Fast installation is not supported
15857  enable_fast_install=no
15858elif test yes = "$shlibpath_overrides_runpath" ||
15859     test no = "$enable_shared"; then
15860  # Fast installation is not necessary
15861  enable_fast_install=needless
15862fi
15863
15864
15865
15866
15867
15868
15869  if test yes != "$enable_dlopen"; then
15870  enable_dlopen=unknown
15871  enable_dlopen_self=unknown
15872  enable_dlopen_self_static=unknown
15873else
15874  lt_cv_dlopen=no
15875  lt_cv_dlopen_libs=
15876
15877  case $host_os in
15878  beos*)
15879    lt_cv_dlopen=load_add_on
15880    lt_cv_dlopen_libs=
15881    lt_cv_dlopen_self=yes
15882    ;;
15883
15884  mingw* | pw32* | cegcc*)
15885    lt_cv_dlopen=LoadLibrary
15886    lt_cv_dlopen_libs=
15887    ;;
15888
15889  cygwin*)
15890    lt_cv_dlopen=dlopen
15891    lt_cv_dlopen_libs=
15892    ;;
15893
15894  darwin*)
15895    # if libdl is installed we need to link against it
15896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15897$as_echo_n "checking for dlopen in -ldl... " >&6; }
15898if ${ac_cv_lib_dl_dlopen+:} false; then :
15899  $as_echo_n "(cached) " >&6
15900else
15901  ac_check_lib_save_LIBS=$LIBS
15902LIBS="-ldl  $LIBS"
15903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h.  */
15905
15906/* Override any GCC internal prototype to avoid an error.
15907   Use char because int might match the return type of a GCC
15908   builtin and then its argument prototype would still apply.  */
15909#ifdef __cplusplus
15910extern "C"
15911#endif
15912char dlopen ();
15913int
15914main ()
15915{
15916return dlopen ();
15917  ;
15918  return 0;
15919}
15920_ACEOF
15921if ac_fn_c_try_link "$LINENO"; then :
15922  ac_cv_lib_dl_dlopen=yes
15923else
15924  ac_cv_lib_dl_dlopen=no
15925fi
15926rm -f core conftest.err conftest.$ac_objext \
15927    conftest$ac_exeext conftest.$ac_ext
15928LIBS=$ac_check_lib_save_LIBS
15929fi
15930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15931$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15932if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15933  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15934else
15935
15936    lt_cv_dlopen=dyld
15937    lt_cv_dlopen_libs=
15938    lt_cv_dlopen_self=yes
15939
15940fi
15941
15942    ;;
15943
15944  tpf*)
15945    # Don't try to run any link tests for TPF.  We know it's impossible
15946    # because TPF is a cross-compiler, and we know how we open DSOs.
15947    lt_cv_dlopen=dlopen
15948    lt_cv_dlopen_libs=
15949    lt_cv_dlopen_self=no
15950    ;;
15951
15952  *)
15953    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15954if test "x$ac_cv_func_shl_load" = xyes; then :
15955  lt_cv_dlopen=shl_load
15956else
15957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15958$as_echo_n "checking for shl_load in -ldld... " >&6; }
15959if ${ac_cv_lib_dld_shl_load+:} false; then :
15960  $as_echo_n "(cached) " >&6
15961else
15962  ac_check_lib_save_LIBS=$LIBS
15963LIBS="-ldld  $LIBS"
15964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965/* end confdefs.h.  */
15966
15967/* Override any GCC internal prototype to avoid an error.
15968   Use char because int might match the return type of a GCC
15969   builtin and then its argument prototype would still apply.  */
15970#ifdef __cplusplus
15971extern "C"
15972#endif
15973char shl_load ();
15974int
15975main ()
15976{
15977return shl_load ();
15978  ;
15979  return 0;
15980}
15981_ACEOF
15982if ac_fn_c_try_link "$LINENO"; then :
15983  ac_cv_lib_dld_shl_load=yes
15984else
15985  ac_cv_lib_dld_shl_load=no
15986fi
15987rm -f core conftest.err conftest.$ac_objext \
15988    conftest$ac_exeext conftest.$ac_ext
15989LIBS=$ac_check_lib_save_LIBS
15990fi
15991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15992$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15993if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15994  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15995else
15996  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15997if test "x$ac_cv_func_dlopen" = xyes; then :
15998  lt_cv_dlopen=dlopen
15999else
16000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16001$as_echo_n "checking for dlopen in -ldl... " >&6; }
16002if ${ac_cv_lib_dl_dlopen+:} false; then :
16003  $as_echo_n "(cached) " >&6
16004else
16005  ac_check_lib_save_LIBS=$LIBS
16006LIBS="-ldl  $LIBS"
16007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008/* end confdefs.h.  */
16009
16010/* Override any GCC internal prototype to avoid an error.
16011   Use char because int might match the return type of a GCC
16012   builtin and then its argument prototype would still apply.  */
16013#ifdef __cplusplus
16014extern "C"
16015#endif
16016char dlopen ();
16017int
16018main ()
16019{
16020return dlopen ();
16021  ;
16022  return 0;
16023}
16024_ACEOF
16025if ac_fn_c_try_link "$LINENO"; then :
16026  ac_cv_lib_dl_dlopen=yes
16027else
16028  ac_cv_lib_dl_dlopen=no
16029fi
16030rm -f core conftest.err conftest.$ac_objext \
16031    conftest$ac_exeext conftest.$ac_ext
16032LIBS=$ac_check_lib_save_LIBS
16033fi
16034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16035$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16036if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16037  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16038else
16039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16040$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16041if ${ac_cv_lib_svld_dlopen+:} false; then :
16042  $as_echo_n "(cached) " >&6
16043else
16044  ac_check_lib_save_LIBS=$LIBS
16045LIBS="-lsvld  $LIBS"
16046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047/* end confdefs.h.  */
16048
16049/* Override any GCC internal prototype to avoid an error.
16050   Use char because int might match the return type of a GCC
16051   builtin and then its argument prototype would still apply.  */
16052#ifdef __cplusplus
16053extern "C"
16054#endif
16055char dlopen ();
16056int
16057main ()
16058{
16059return dlopen ();
16060  ;
16061  return 0;
16062}
16063_ACEOF
16064if ac_fn_c_try_link "$LINENO"; then :
16065  ac_cv_lib_svld_dlopen=yes
16066else
16067  ac_cv_lib_svld_dlopen=no
16068fi
16069rm -f core conftest.err conftest.$ac_objext \
16070    conftest$ac_exeext conftest.$ac_ext
16071LIBS=$ac_check_lib_save_LIBS
16072fi
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16074$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16075if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16076  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16077else
16078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16079$as_echo_n "checking for dld_link in -ldld... " >&6; }
16080if ${ac_cv_lib_dld_dld_link+:} false; then :
16081  $as_echo_n "(cached) " >&6
16082else
16083  ac_check_lib_save_LIBS=$LIBS
16084LIBS="-ldld  $LIBS"
16085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086/* end confdefs.h.  */
16087
16088/* Override any GCC internal prototype to avoid an error.
16089   Use char because int might match the return type of a GCC
16090   builtin and then its argument prototype would still apply.  */
16091#ifdef __cplusplus
16092extern "C"
16093#endif
16094char dld_link ();
16095int
16096main ()
16097{
16098return dld_link ();
16099  ;
16100  return 0;
16101}
16102_ACEOF
16103if ac_fn_c_try_link "$LINENO"; then :
16104  ac_cv_lib_dld_dld_link=yes
16105else
16106  ac_cv_lib_dld_dld_link=no
16107fi
16108rm -f core conftest.err conftest.$ac_objext \
16109    conftest$ac_exeext conftest.$ac_ext
16110LIBS=$ac_check_lib_save_LIBS
16111fi
16112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16113$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16114if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16115  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16116fi
16117
16118
16119fi
16120
16121
16122fi
16123
16124
16125fi
16126
16127
16128fi
16129
16130
16131fi
16132
16133    ;;
16134  esac
16135
16136  if test no = "$lt_cv_dlopen"; then
16137    enable_dlopen=no
16138  else
16139    enable_dlopen=yes
16140  fi
16141
16142  case $lt_cv_dlopen in
16143  dlopen)
16144    save_CPPFLAGS=$CPPFLAGS
16145    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16146
16147    save_LDFLAGS=$LDFLAGS
16148    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16149
16150    save_LIBS=$LIBS
16151    LIBS="$lt_cv_dlopen_libs $LIBS"
16152
16153    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16154$as_echo_n "checking whether a program can dlopen itself... " >&6; }
16155if ${lt_cv_dlopen_self+:} false; then :
16156  $as_echo_n "(cached) " >&6
16157else
16158  	  if test yes = "$cross_compiling"; then :
16159  lt_cv_dlopen_self=cross
16160else
16161  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16162  lt_status=$lt_dlunknown
16163  cat > conftest.$ac_ext <<_LT_EOF
16164#line $LINENO "configure"
16165#include "confdefs.h"
16166
16167#if HAVE_DLFCN_H
16168#include <dlfcn.h>
16169#endif
16170
16171#include <stdio.h>
16172
16173#ifdef RTLD_GLOBAL
16174#  define LT_DLGLOBAL		RTLD_GLOBAL
16175#else
16176#  ifdef DL_GLOBAL
16177#    define LT_DLGLOBAL		DL_GLOBAL
16178#  else
16179#    define LT_DLGLOBAL		0
16180#  endif
16181#endif
16182
16183/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16184   find out it does not work in some platform. */
16185#ifndef LT_DLLAZY_OR_NOW
16186#  ifdef RTLD_LAZY
16187#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16188#  else
16189#    ifdef DL_LAZY
16190#      define LT_DLLAZY_OR_NOW		DL_LAZY
16191#    else
16192#      ifdef RTLD_NOW
16193#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16194#      else
16195#        ifdef DL_NOW
16196#          define LT_DLLAZY_OR_NOW	DL_NOW
16197#        else
16198#          define LT_DLLAZY_OR_NOW	0
16199#        endif
16200#      endif
16201#    endif
16202#  endif
16203#endif
16204
16205/* When -fvisibility=hidden is used, assume the code has been annotated
16206   correspondingly for the symbols needed.  */
16207#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16208int fnord () __attribute__((visibility("default")));
16209#endif
16210
16211int fnord () { return 42; }
16212int main ()
16213{
16214  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16215  int status = $lt_dlunknown;
16216
16217  if (self)
16218    {
16219      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16220      else
16221        {
16222	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16223          else puts (dlerror ());
16224	}
16225      /* dlclose (self); */
16226    }
16227  else
16228    puts (dlerror ());
16229
16230  return status;
16231}
16232_LT_EOF
16233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16234  (eval $ac_link) 2>&5
16235  ac_status=$?
16236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16238    (./conftest; exit; ) >&5 2>/dev/null
16239    lt_status=$?
16240    case x$lt_status in
16241      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16242      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16243      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16244    esac
16245  else :
16246    # compilation failed
16247    lt_cv_dlopen_self=no
16248  fi
16249fi
16250rm -fr conftest*
16251
16252
16253fi
16254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16255$as_echo "$lt_cv_dlopen_self" >&6; }
16256
16257    if test yes = "$lt_cv_dlopen_self"; then
16258      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16259      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16260$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16261if ${lt_cv_dlopen_self_static+:} false; then :
16262  $as_echo_n "(cached) " >&6
16263else
16264  	  if test yes = "$cross_compiling"; then :
16265  lt_cv_dlopen_self_static=cross
16266else
16267  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16268  lt_status=$lt_dlunknown
16269  cat > conftest.$ac_ext <<_LT_EOF
16270#line $LINENO "configure"
16271#include "confdefs.h"
16272
16273#if HAVE_DLFCN_H
16274#include <dlfcn.h>
16275#endif
16276
16277#include <stdio.h>
16278
16279#ifdef RTLD_GLOBAL
16280#  define LT_DLGLOBAL		RTLD_GLOBAL
16281#else
16282#  ifdef DL_GLOBAL
16283#    define LT_DLGLOBAL		DL_GLOBAL
16284#  else
16285#    define LT_DLGLOBAL		0
16286#  endif
16287#endif
16288
16289/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16290   find out it does not work in some platform. */
16291#ifndef LT_DLLAZY_OR_NOW
16292#  ifdef RTLD_LAZY
16293#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16294#  else
16295#    ifdef DL_LAZY
16296#      define LT_DLLAZY_OR_NOW		DL_LAZY
16297#    else
16298#      ifdef RTLD_NOW
16299#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16300#      else
16301#        ifdef DL_NOW
16302#          define LT_DLLAZY_OR_NOW	DL_NOW
16303#        else
16304#          define LT_DLLAZY_OR_NOW	0
16305#        endif
16306#      endif
16307#    endif
16308#  endif
16309#endif
16310
16311/* When -fvisibility=hidden is used, assume the code has been annotated
16312   correspondingly for the symbols needed.  */
16313#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16314int fnord () __attribute__((visibility("default")));
16315#endif
16316
16317int fnord () { return 42; }
16318int main ()
16319{
16320  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16321  int status = $lt_dlunknown;
16322
16323  if (self)
16324    {
16325      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16326      else
16327        {
16328	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16329          else puts (dlerror ());
16330	}
16331      /* dlclose (self); */
16332    }
16333  else
16334    puts (dlerror ());
16335
16336  return status;
16337}
16338_LT_EOF
16339  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16340  (eval $ac_link) 2>&5
16341  ac_status=$?
16342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16343  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16344    (./conftest; exit; ) >&5 2>/dev/null
16345    lt_status=$?
16346    case x$lt_status in
16347      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16348      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16349      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16350    esac
16351  else :
16352    # compilation failed
16353    lt_cv_dlopen_self_static=no
16354  fi
16355fi
16356rm -fr conftest*
16357
16358
16359fi
16360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16361$as_echo "$lt_cv_dlopen_self_static" >&6; }
16362    fi
16363
16364    CPPFLAGS=$save_CPPFLAGS
16365    LDFLAGS=$save_LDFLAGS
16366    LIBS=$save_LIBS
16367    ;;
16368  esac
16369
16370  case $lt_cv_dlopen_self in
16371  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16372  *) enable_dlopen_self=unknown ;;
16373  esac
16374
16375  case $lt_cv_dlopen_self_static in
16376  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16377  *) enable_dlopen_self_static=unknown ;;
16378  esac
16379fi
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397striplib=
16398old_striplib=
16399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16400$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16401if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16402  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16403  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16405$as_echo "yes" >&6; }
16406else
16407# FIXME - insert some real tests, host_os isn't really good enough
16408  case $host_os in
16409  darwin*)
16410    if test -n "$STRIP"; then
16411      striplib="$STRIP -x"
16412      old_striplib="$STRIP -S"
16413      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16414$as_echo "yes" >&6; }
16415    else
16416      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16417$as_echo "no" >&6; }
16418    fi
16419    ;;
16420  *)
16421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422$as_echo "no" >&6; }
16423    ;;
16424  esac
16425fi
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438  # Report what library types will actually be built
16439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16440$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16442$as_echo "$can_build_shared" >&6; }
16443
16444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16445$as_echo_n "checking whether to build shared libraries... " >&6; }
16446  test no = "$can_build_shared" && enable_shared=no
16447
16448  # On AIX, shared libraries and static libraries use the same namespace, and
16449  # are all built from PIC.
16450  case $host_os in
16451  aix3*)
16452    test yes = "$enable_shared" && enable_static=no
16453    if test -n "$RANLIB"; then
16454      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16455      postinstall_cmds='$RANLIB $lib'
16456    fi
16457    ;;
16458
16459  aix[4-9]*)
16460    if test ia64 != "$host_cpu"; then
16461      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16462      yes,aix,yes) ;;			# shared object as lib.so file only
16463      yes,svr4,*) ;;			# shared object as lib.so archive member only
16464      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
16465      esac
16466    fi
16467    ;;
16468  esac
16469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16470$as_echo "$enable_shared" >&6; }
16471
16472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16473$as_echo_n "checking whether to build static libraries... " >&6; }
16474  # Make sure either enable_shared or enable_static is yes.
16475  test yes = "$enable_shared" || enable_static=yes
16476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16477$as_echo "$enable_static" >&6; }
16478
16479
16480
16481
16482fi
16483ac_ext=c
16484ac_cpp='$CPP $CPPFLAGS'
16485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16487ac_compiler_gnu=$ac_cv_c_compiler_gnu
16488
16489CC=$lt_save_CC
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505        ac_config_commands="$ac_config_commands libtool"
16506
16507
16508
16509
16510# Only expand once:
16511
16512
16513
16514
16515
16516if test -n "$ac_tool_prefix"; then
16517  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16518set dummy ${ac_tool_prefix}ar; ac_word=$2
16519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16520$as_echo_n "checking for $ac_word... " >&6; }
16521if ${ac_cv_prog_AR+:} false; then :
16522  $as_echo_n "(cached) " >&6
16523else
16524  if test -n "$AR"; then
16525  ac_cv_prog_AR="$AR" # Let the user override the test.
16526else
16527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528for as_dir in $PATH
16529do
16530  IFS=$as_save_IFS
16531  test -z "$as_dir" && as_dir=.
16532    for ac_exec_ext in '' $ac_executable_extensions; do
16533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534    ac_cv_prog_AR="${ac_tool_prefix}ar"
16535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16536    break 2
16537  fi
16538done
16539  done
16540IFS=$as_save_IFS
16541
16542fi
16543fi
16544AR=$ac_cv_prog_AR
16545if test -n "$AR"; then
16546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16547$as_echo "$AR" >&6; }
16548else
16549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550$as_echo "no" >&6; }
16551fi
16552
16553
16554fi
16555if test -z "$ac_cv_prog_AR"; then
16556  ac_ct_AR=$AR
16557  # Extract the first word of "ar", so it can be a program name with args.
16558set dummy ar; ac_word=$2
16559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16560$as_echo_n "checking for $ac_word... " >&6; }
16561if ${ac_cv_prog_ac_ct_AR+:} false; then :
16562  $as_echo_n "(cached) " >&6
16563else
16564  if test -n "$ac_ct_AR"; then
16565  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16566else
16567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568for as_dir in $PATH
16569do
16570  IFS=$as_save_IFS
16571  test -z "$as_dir" && as_dir=.
16572    for ac_exec_ext in '' $ac_executable_extensions; do
16573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16574    ac_cv_prog_ac_ct_AR="ar"
16575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16576    break 2
16577  fi
16578done
16579  done
16580IFS=$as_save_IFS
16581
16582fi
16583fi
16584ac_ct_AR=$ac_cv_prog_ac_ct_AR
16585if test -n "$ac_ct_AR"; then
16586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16587$as_echo "$ac_ct_AR" >&6; }
16588else
16589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16590$as_echo "no" >&6; }
16591fi
16592
16593  if test "x$ac_ct_AR" = x; then
16594    AR="ar"
16595  else
16596    case $cross_compiling:$ac_tool_warned in
16597yes:)
16598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16600ac_tool_warned=yes ;;
16601esac
16602    AR=$ac_ct_AR
16603  fi
16604else
16605  AR="$ac_cv_prog_AR"
16606fi
16607
16608
16609
16610if test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"; then :
16611
16612
16613  oldcflags="$CFLAGS"
16614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
16615$as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
16616if ${ax_cv_check_cflags___mmmx+:} false; then :
16617  $as_echo_n "(cached) " >&6
16618else
16619
16620  ax_check_save_flags=$CFLAGS
16621  CFLAGS="$CFLAGS  -mmmx"
16622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623/* end confdefs.h.  */
16624#include <time.h>
16625int
16626main ()
16627{
16628time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16629  ;
16630  return 0;
16631}
16632_ACEOF
16633if ac_fn_c_try_link "$LINENO"; then :
16634  ax_cv_check_cflags___mmmx=yes
16635else
16636  ax_cv_check_cflags___mmmx=no
16637fi
16638rm -f core conftest.err conftest.$ac_objext \
16639    conftest$ac_exeext conftest.$ac_ext
16640  CFLAGS=$ax_check_save_flags
16641fi
16642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
16643$as_echo "$ax_cv_check_cflags___mmmx" >&6; }
16644if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
16645  CFLAGS="$CFLAGS -mmmx"
16646else
16647  :
16648fi
16649
16650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
16651$as_echo_n "checking for MMX instructions set... " >&6; }
16652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653/* end confdefs.h.  */
16654
16655#pragma GCC target("mmx")
16656#include <mmintrin.h>
16657
16658int
16659main ()
16660{
16661 __m64 x = _mm_setzero_si64();
16662  ;
16663  return 0;
16664}
16665_ACEOF
16666if ac_fn_c_try_compile "$LINENO"; then :
16667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16668$as_echo "yes" >&6; }
16669
16670$as_echo "#define HAVE_MMINTRIN_H 1" >>confdefs.h
16671
16672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
16673$as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
16674if ${ax_cv_check_cflags___mmmx+:} false; then :
16675  $as_echo_n "(cached) " >&6
16676else
16677
16678  ax_check_save_flags=$CFLAGS
16679  CFLAGS="$CFLAGS  -mmmx"
16680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681/* end confdefs.h.  */
16682#include <time.h>
16683int
16684main ()
16685{
16686time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16687  ;
16688  return 0;
16689}
16690_ACEOF
16691if ac_fn_c_try_link "$LINENO"; then :
16692  ax_cv_check_cflags___mmmx=yes
16693else
16694  ax_cv_check_cflags___mmmx=no
16695fi
16696rm -f core conftest.err conftest.$ac_objext \
16697    conftest$ac_exeext conftest.$ac_ext
16698  CFLAGS=$ax_check_save_flags
16699fi
16700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
16701$as_echo "$ax_cv_check_cflags___mmmx" >&6; }
16702if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
16703  CFLAGS_MMX="-mmmx"
16704else
16705  :
16706fi
16707
16708else
16709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16710$as_echo "no" >&6; }
16711fi
16712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713  CFLAGS="$oldcflags"
16714
16715  oldcflags="$CFLAGS"
16716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
16717$as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
16718if ${ax_cv_check_cflags___msse2+:} false; then :
16719  $as_echo_n "(cached) " >&6
16720else
16721
16722  ax_check_save_flags=$CFLAGS
16723  CFLAGS="$CFLAGS  -msse2"
16724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725/* end confdefs.h.  */
16726#include <time.h>
16727int
16728main ()
16729{
16730time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16731  ;
16732  return 0;
16733}
16734_ACEOF
16735if ac_fn_c_try_link "$LINENO"; then :
16736  ax_cv_check_cflags___msse2=yes
16737else
16738  ax_cv_check_cflags___msse2=no
16739fi
16740rm -f core conftest.err conftest.$ac_objext \
16741    conftest$ac_exeext conftest.$ac_ext
16742  CFLAGS=$ax_check_save_flags
16743fi
16744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
16745$as_echo "$ax_cv_check_cflags___msse2" >&6; }
16746if test "x$ax_cv_check_cflags___msse2" = xyes; then :
16747  CFLAGS="$CFLAGS -msse2"
16748else
16749  :
16750fi
16751
16752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
16753$as_echo_n "checking for SSE2 instructions set... " >&6; }
16754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755/* end confdefs.h.  */
16756
16757#pragma GCC target("sse2")
16758#ifndef __SSE2__
16759# define __SSE2__
16760#endif
16761#include <emmintrin.h>
16762
16763int
16764main ()
16765{
16766 __m128d x = _mm_setzero_pd();
16767       __m128i z = _mm_srli_epi64(_mm_setzero_si128(), 26);
16768  ;
16769  return 0;
16770}
16771_ACEOF
16772if ac_fn_c_try_compile "$LINENO"; then :
16773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16774$as_echo "yes" >&6; }
16775
16776$as_echo "#define HAVE_EMMINTRIN_H 1" >>confdefs.h
16777
16778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
16779$as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
16780if ${ax_cv_check_cflags___msse2+:} false; then :
16781  $as_echo_n "(cached) " >&6
16782else
16783
16784  ax_check_save_flags=$CFLAGS
16785  CFLAGS="$CFLAGS  -msse2"
16786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787/* end confdefs.h.  */
16788#include <time.h>
16789int
16790main ()
16791{
16792time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16793  ;
16794  return 0;
16795}
16796_ACEOF
16797if ac_fn_c_try_link "$LINENO"; then :
16798  ax_cv_check_cflags___msse2=yes
16799else
16800  ax_cv_check_cflags___msse2=no
16801fi
16802rm -f core conftest.err conftest.$ac_objext \
16803    conftest$ac_exeext conftest.$ac_ext
16804  CFLAGS=$ax_check_save_flags
16805fi
16806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
16807$as_echo "$ax_cv_check_cflags___msse2" >&6; }
16808if test "x$ax_cv_check_cflags___msse2" = xyes; then :
16809  CFLAGS_SSE2="-msse2"
16810else
16811  :
16812fi
16813
16814else
16815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16816$as_echo "no" >&6; }
16817fi
16818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819  CFLAGS="$oldcflags"
16820
16821  oldcflags="$CFLAGS"
16822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
16823$as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
16824if ${ax_cv_check_cflags___msse3+:} false; then :
16825  $as_echo_n "(cached) " >&6
16826else
16827
16828  ax_check_save_flags=$CFLAGS
16829  CFLAGS="$CFLAGS  -msse3"
16830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831/* end confdefs.h.  */
16832#include <time.h>
16833int
16834main ()
16835{
16836time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16837  ;
16838  return 0;
16839}
16840_ACEOF
16841if ac_fn_c_try_link "$LINENO"; then :
16842  ax_cv_check_cflags___msse3=yes
16843else
16844  ax_cv_check_cflags___msse3=no
16845fi
16846rm -f core conftest.err conftest.$ac_objext \
16847    conftest$ac_exeext conftest.$ac_ext
16848  CFLAGS=$ax_check_save_flags
16849fi
16850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
16851$as_echo "$ax_cv_check_cflags___msse3" >&6; }
16852if test "x$ax_cv_check_cflags___msse3" = xyes; then :
16853  CFLAGS="$CFLAGS -msse3"
16854else
16855  :
16856fi
16857
16858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
16859$as_echo_n "checking for SSE3 instructions set... " >&6; }
16860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861/* end confdefs.h.  */
16862
16863#pragma GCC target("sse3")
16864#include <pmmintrin.h>
16865
16866int
16867main ()
16868{
16869 __m128 x = _mm_addsub_ps(_mm_cvtpd_ps(_mm_setzero_pd()),
16870                                _mm_cvtpd_ps(_mm_setzero_pd()));
16871  ;
16872  return 0;
16873}
16874_ACEOF
16875if ac_fn_c_try_compile "$LINENO"; then :
16876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16877$as_echo "yes" >&6; }
16878
16879$as_echo "#define HAVE_PMMINTRIN_H 1" >>confdefs.h
16880
16881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
16882$as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
16883if ${ax_cv_check_cflags___msse3+:} false; then :
16884  $as_echo_n "(cached) " >&6
16885else
16886
16887  ax_check_save_flags=$CFLAGS
16888  CFLAGS="$CFLAGS  -msse3"
16889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890/* end confdefs.h.  */
16891#include <time.h>
16892int
16893main ()
16894{
16895time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16896  ;
16897  return 0;
16898}
16899_ACEOF
16900if ac_fn_c_try_link "$LINENO"; then :
16901  ax_cv_check_cflags___msse3=yes
16902else
16903  ax_cv_check_cflags___msse3=no
16904fi
16905rm -f core conftest.err conftest.$ac_objext \
16906    conftest$ac_exeext conftest.$ac_ext
16907  CFLAGS=$ax_check_save_flags
16908fi
16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
16910$as_echo "$ax_cv_check_cflags___msse3" >&6; }
16911if test "x$ax_cv_check_cflags___msse3" = xyes; then :
16912  CFLAGS_SSE3="-msse3"
16913else
16914  :
16915fi
16916
16917else
16918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16919$as_echo "no" >&6; }
16920fi
16921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922  CFLAGS="$oldcflags"
16923
16924  oldcflags="$CFLAGS"
16925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
16926$as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
16927if ${ax_cv_check_cflags___mssse3+:} false; then :
16928  $as_echo_n "(cached) " >&6
16929else
16930
16931  ax_check_save_flags=$CFLAGS
16932  CFLAGS="$CFLAGS  -mssse3"
16933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934/* end confdefs.h.  */
16935#include <time.h>
16936int
16937main ()
16938{
16939time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16940  ;
16941  return 0;
16942}
16943_ACEOF
16944if ac_fn_c_try_link "$LINENO"; then :
16945  ax_cv_check_cflags___mssse3=yes
16946else
16947  ax_cv_check_cflags___mssse3=no
16948fi
16949rm -f core conftest.err conftest.$ac_objext \
16950    conftest$ac_exeext conftest.$ac_ext
16951  CFLAGS=$ax_check_save_flags
16952fi
16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
16954$as_echo "$ax_cv_check_cflags___mssse3" >&6; }
16955if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
16956  CFLAGS="$CFLAGS -mssse3"
16957else
16958  :
16959fi
16960
16961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3 instructions set" >&5
16962$as_echo_n "checking for SSSE3 instructions set... " >&6; }
16963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964/* end confdefs.h.  */
16965
16966#pragma GCC target("ssse3")
16967#include <tmmintrin.h>
16968
16969int
16970main ()
16971{
16972 __m64 x = _mm_abs_pi32(_m_from_int(0));
16973  ;
16974  return 0;
16975}
16976_ACEOF
16977if ac_fn_c_try_compile "$LINENO"; then :
16978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16979$as_echo "yes" >&6; }
16980
16981$as_echo "#define HAVE_TMMINTRIN_H 1" >>confdefs.h
16982
16983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
16984$as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
16985if ${ax_cv_check_cflags___mssse3+:} false; then :
16986  $as_echo_n "(cached) " >&6
16987else
16988
16989  ax_check_save_flags=$CFLAGS
16990  CFLAGS="$CFLAGS  -mssse3"
16991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992/* end confdefs.h.  */
16993#include <time.h>
16994int
16995main ()
16996{
16997time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16998  ;
16999  return 0;
17000}
17001_ACEOF
17002if ac_fn_c_try_link "$LINENO"; then :
17003  ax_cv_check_cflags___mssse3=yes
17004else
17005  ax_cv_check_cflags___mssse3=no
17006fi
17007rm -f core conftest.err conftest.$ac_objext \
17008    conftest$ac_exeext conftest.$ac_ext
17009  CFLAGS=$ax_check_save_flags
17010fi
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
17012$as_echo "$ax_cv_check_cflags___mssse3" >&6; }
17013if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
17014  CFLAGS_SSSE3="-mssse3"
17015else
17016  :
17017fi
17018
17019else
17020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17021$as_echo "no" >&6; }
17022fi
17023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024  CFLAGS="$oldcflags"
17025
17026  oldcflags="$CFLAGS"
17027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
17028$as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
17029if ${ax_cv_check_cflags___msse4_1+:} false; then :
17030  $as_echo_n "(cached) " >&6
17031else
17032
17033  ax_check_save_flags=$CFLAGS
17034  CFLAGS="$CFLAGS  -msse4.1"
17035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036/* end confdefs.h.  */
17037#include <time.h>
17038int
17039main ()
17040{
17041time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17042  ;
17043  return 0;
17044}
17045_ACEOF
17046if ac_fn_c_try_link "$LINENO"; then :
17047  ax_cv_check_cflags___msse4_1=yes
17048else
17049  ax_cv_check_cflags___msse4_1=no
17050fi
17051rm -f core conftest.err conftest.$ac_objext \
17052    conftest$ac_exeext conftest.$ac_ext
17053  CFLAGS=$ax_check_save_flags
17054fi
17055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
17056$as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
17057if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
17058  CFLAGS="$CFLAGS -msse4.1"
17059else
17060  :
17061fi
17062
17063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 instructions set" >&5
17064$as_echo_n "checking for SSE4.1 instructions set... " >&6; }
17065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066/* end confdefs.h.  */
17067
17068#pragma GCC target("sse4.1")
17069#include <smmintrin.h>
17070
17071int
17072main ()
17073{
17074 __m128i x = _mm_minpos_epu16(_mm_setzero_si128());
17075  ;
17076  return 0;
17077}
17078_ACEOF
17079if ac_fn_c_try_compile "$LINENO"; then :
17080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17081$as_echo "yes" >&6; }
17082
17083$as_echo "#define HAVE_SMMINTRIN_H 1" >>confdefs.h
17084
17085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
17086$as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
17087if ${ax_cv_check_cflags___msse4_1+:} false; then :
17088  $as_echo_n "(cached) " >&6
17089else
17090
17091  ax_check_save_flags=$CFLAGS
17092  CFLAGS="$CFLAGS  -msse4.1"
17093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094/* end confdefs.h.  */
17095#include <time.h>
17096int
17097main ()
17098{
17099time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17100  ;
17101  return 0;
17102}
17103_ACEOF
17104if ac_fn_c_try_link "$LINENO"; then :
17105  ax_cv_check_cflags___msse4_1=yes
17106else
17107  ax_cv_check_cflags___msse4_1=no
17108fi
17109rm -f core conftest.err conftest.$ac_objext \
17110    conftest$ac_exeext conftest.$ac_ext
17111  CFLAGS=$ax_check_save_flags
17112fi
17113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
17114$as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
17115if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
17116  CFLAGS_SSE41="-msse4.1"
17117else
17118  :
17119fi
17120
17121else
17122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17123$as_echo "no" >&6; }
17124fi
17125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126  CFLAGS="$oldcflags"
17127
17128  oldcflags="$CFLAGS"
17129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
17130$as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
17131if ${ax_cv_check_cflags___mavx+:} false; then :
17132  $as_echo_n "(cached) " >&6
17133else
17134
17135  ax_check_save_flags=$CFLAGS
17136  CFLAGS="$CFLAGS  -mavx"
17137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h.  */
17139#include <time.h>
17140int
17141main ()
17142{
17143time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17144  ;
17145  return 0;
17146}
17147_ACEOF
17148if ac_fn_c_try_link "$LINENO"; then :
17149  ax_cv_check_cflags___mavx=yes
17150else
17151  ax_cv_check_cflags___mavx=no
17152fi
17153rm -f core conftest.err conftest.$ac_objext \
17154    conftest$ac_exeext conftest.$ac_ext
17155  CFLAGS=$ax_check_save_flags
17156fi
17157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
17158$as_echo "$ax_cv_check_cflags___mavx" >&6; }
17159if test "x$ax_cv_check_cflags___mavx" = xyes; then :
17160  CFLAGS="$CFLAGS -mavx"
17161else
17162  :
17163fi
17164
17165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX instructions set" >&5
17166$as_echo_n "checking for AVX instructions set... " >&6; }
17167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168/* end confdefs.h.  */
17169
17170#ifdef __native_client__
17171# error NativeClient detected - Avoiding AVX opcodes
17172#endif
17173#pragma GCC target("avx")
17174#include <immintrin.h>
17175
17176int
17177main ()
17178{
17179 _mm256_zeroall();
17180  ;
17181  return 0;
17182}
17183_ACEOF
17184if ac_fn_c_try_compile "$LINENO"; then :
17185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17186$as_echo "yes" >&6; }
17187
17188$as_echo "#define HAVE_AVXINTRIN_H 1" >>confdefs.h
17189
17190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
17191$as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
17192if ${ax_cv_check_cflags___mavx+:} false; then :
17193  $as_echo_n "(cached) " >&6
17194else
17195
17196  ax_check_save_flags=$CFLAGS
17197  CFLAGS="$CFLAGS  -mavx"
17198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199/* end confdefs.h.  */
17200#include <time.h>
17201int
17202main ()
17203{
17204time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17205  ;
17206  return 0;
17207}
17208_ACEOF
17209if ac_fn_c_try_link "$LINENO"; then :
17210  ax_cv_check_cflags___mavx=yes
17211else
17212  ax_cv_check_cflags___mavx=no
17213fi
17214rm -f core conftest.err conftest.$ac_objext \
17215    conftest$ac_exeext conftest.$ac_ext
17216  CFLAGS=$ax_check_save_flags
17217fi
17218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
17219$as_echo "$ax_cv_check_cflags___mavx" >&6; }
17220if test "x$ax_cv_check_cflags___mavx" = xyes; then :
17221  CFLAGS_AVX="-mavx"
17222else
17223  :
17224fi
17225
17226else
17227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17228$as_echo "no" >&6; }
17229fi
17230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231  CFLAGS="$oldcflags"
17232
17233  oldcflags="$CFLAGS"
17234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
17235$as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
17236if ${ax_cv_check_cflags___mavx2+:} false; then :
17237  $as_echo_n "(cached) " >&6
17238else
17239
17240  ax_check_save_flags=$CFLAGS
17241  CFLAGS="$CFLAGS  -mavx2"
17242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243/* end confdefs.h.  */
17244#include <time.h>
17245int
17246main ()
17247{
17248time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17249  ;
17250  return 0;
17251}
17252_ACEOF
17253if ac_fn_c_try_link "$LINENO"; then :
17254  ax_cv_check_cflags___mavx2=yes
17255else
17256  ax_cv_check_cflags___mavx2=no
17257fi
17258rm -f core conftest.err conftest.$ac_objext \
17259    conftest$ac_exeext conftest.$ac_ext
17260  CFLAGS=$ax_check_save_flags
17261fi
17262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
17263$as_echo "$ax_cv_check_cflags___mavx2" >&6; }
17264if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
17265  CFLAGS="$CFLAGS -mavx2"
17266else
17267  :
17268fi
17269
17270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2 instructions set" >&5
17271$as_echo_n "checking for AVX2 instructions set... " >&6; }
17272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273/* end confdefs.h.  */
17274
17275#ifdef __native_client__
17276# error NativeClient detected - Avoiding AVX2 opcodes
17277#endif
17278#pragma GCC target("avx2")
17279#include <immintrin.h>
17280
17281int
17282main ()
17283{
17284
17285__m256 x = _mm256_set1_ps(3.14);
17286__m256 y = _mm256_permutevar8x32_ps(x, _mm256_set1_epi32(42));
17287return _mm256_movemask_ps(_mm256_cmp_ps(x, y, _CMP_NEQ_OQ));
17288
17289  ;
17290  return 0;
17291}
17292_ACEOF
17293if ac_fn_c_try_compile "$LINENO"; then :
17294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17295$as_echo "yes" >&6; }
17296
17297$as_echo "#define HAVE_AVX2INTRIN_H 1" >>confdefs.h
17298
17299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
17300$as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
17301if ${ax_cv_check_cflags___mavx2+:} false; then :
17302  $as_echo_n "(cached) " >&6
17303else
17304
17305  ax_check_save_flags=$CFLAGS
17306  CFLAGS="$CFLAGS  -mavx2"
17307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308/* end confdefs.h.  */
17309#include <time.h>
17310int
17311main ()
17312{
17313time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17314  ;
17315  return 0;
17316}
17317_ACEOF
17318if ac_fn_c_try_link "$LINENO"; then :
17319  ax_cv_check_cflags___mavx2=yes
17320else
17321  ax_cv_check_cflags___mavx2=no
17322fi
17323rm -f core conftest.err conftest.$ac_objext \
17324    conftest$ac_exeext conftest.$ac_ext
17325  CFLAGS=$ax_check_save_flags
17326fi
17327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
17328$as_echo "$ax_cv_check_cflags___mavx2" >&6; }
17329if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
17330  CFLAGS_AVX2="-mavx2"
17331else
17332  :
17333fi
17334
17335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _mm256_broadcastsi128_si256 is correctly defined" >&5
17336$as_echo_n "checking if _mm256_broadcastsi128_si256 is correctly defined... " >&6; }
17337     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339
17340#ifdef __native_client__
17341# error NativeClient detected - Avoiding AVX2 opcodes
17342#endif
17343#pragma GCC target("avx2")
17344#include <immintrin.h>
17345
17346int
17347main ()
17348{
17349 __m256i y = _mm256_broadcastsi128_si256(_mm_setzero_si128());
17350  ;
17351  return 0;
17352}
17353_ACEOF
17354if ac_fn_c_try_compile "$LINENO"; then :
17355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17356$as_echo "yes" >&6; }
17357else
17358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17359$as_echo "no" >&6; }
17360
17361$as_echo "#define _mm256_broadcastsi128_si256 _mm_broadcastsi128_si256" >>confdefs.h
17362
17363fi
17364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365
17366else
17367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368$as_echo "no" >&6; }
17369fi
17370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371  CFLAGS="$oldcflags"
17372
17373  oldcflags="$CFLAGS"
17374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
17375$as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
17376if ${ax_cv_check_cflags___mavx512f+:} false; then :
17377  $as_echo_n "(cached) " >&6
17378else
17379
17380  ax_check_save_flags=$CFLAGS
17381  CFLAGS="$CFLAGS  -mavx512f"
17382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383/* end confdefs.h.  */
17384#include <time.h>
17385int
17386main ()
17387{
17388time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17389  ;
17390  return 0;
17391}
17392_ACEOF
17393if ac_fn_c_try_link "$LINENO"; then :
17394  ax_cv_check_cflags___mavx512f=yes
17395else
17396  ax_cv_check_cflags___mavx512f=no
17397fi
17398rm -f core conftest.err conftest.$ac_objext \
17399    conftest$ac_exeext conftest.$ac_ext
17400  CFLAGS=$ax_check_save_flags
17401fi
17402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
17403$as_echo "$ax_cv_check_cflags___mavx512f" >&6; }
17404if test "x$ax_cv_check_cflags___mavx512f" = xyes; then :
17405  CFLAGS="$CFLAGS -mavx512f"
17406else
17407  :
17408fi
17409
17410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512F instructions set" >&5
17411$as_echo_n "checking for AVX512F instructions set... " >&6; }
17412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413/* end confdefs.h.  */
17414
17415#ifdef __native_client__
17416# error NativeClient detected - Avoiding AVX512F opcodes
17417#endif
17418#pragma GCC target("avx512f")
17419#include <immintrin.h>
17420
17421int
17422main ()
17423{
17424
17425__m512i x = _mm512_setzero_epi32();
17426__m512i y = _mm512_permutexvar_epi64(_mm512_setr_epi64(0, 1, 4, 5, 2, 3, 6, 7), x);
17427
17428  ;
17429  return 0;
17430}
17431_ACEOF
17432if ac_fn_c_try_compile "$LINENO"; then :
17433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17434$as_echo "yes" >&6; }
17435
17436$as_echo "#define HAVE_AVX512FINTRIN_H 1" >>confdefs.h
17437
17438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
17439$as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
17440if ${ax_cv_check_cflags___mavx512f+:} false; then :
17441  $as_echo_n "(cached) " >&6
17442else
17443
17444  ax_check_save_flags=$CFLAGS
17445  CFLAGS="$CFLAGS  -mavx512f"
17446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447/* end confdefs.h.  */
17448#include <time.h>
17449int
17450main ()
17451{
17452time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17453  ;
17454  return 0;
17455}
17456_ACEOF
17457if ac_fn_c_try_link "$LINENO"; then :
17458  ax_cv_check_cflags___mavx512f=yes
17459else
17460  ax_cv_check_cflags___mavx512f=no
17461fi
17462rm -f core conftest.err conftest.$ac_objext \
17463    conftest$ac_exeext conftest.$ac_ext
17464  CFLAGS=$ax_check_save_flags
17465fi
17466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
17467$as_echo "$ax_cv_check_cflags___mavx512f" >&6; }
17468if test "x$ax_cv_check_cflags___mavx512f" = xyes; then :
17469  CFLAGS_AVX512F="-mavx512f"
17470else
17471  :
17472fi
17473
17474else
17475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476$as_echo "no" >&6; }
17477fi
17478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479  CFLAGS="$oldcflags"
17480
17481  oldcflags="$CFLAGS"
17482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
17483$as_echo_n "checking whether C compiler accepts -maes... " >&6; }
17484if ${ax_cv_check_cflags___maes+:} false; then :
17485  $as_echo_n "(cached) " >&6
17486else
17487
17488  ax_check_save_flags=$CFLAGS
17489  CFLAGS="$CFLAGS  -maes"
17490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491/* end confdefs.h.  */
17492#include <time.h>
17493int
17494main ()
17495{
17496time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17497  ;
17498  return 0;
17499}
17500_ACEOF
17501if ac_fn_c_try_link "$LINENO"; then :
17502  ax_cv_check_cflags___maes=yes
17503else
17504  ax_cv_check_cflags___maes=no
17505fi
17506rm -f core conftest.err conftest.$ac_objext \
17507    conftest$ac_exeext conftest.$ac_ext
17508  CFLAGS=$ax_check_save_flags
17509fi
17510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
17511$as_echo "$ax_cv_check_cflags___maes" >&6; }
17512if test "x$ax_cv_check_cflags___maes" = xyes; then :
17513  CFLAGS="$CFLAGS -maes"
17514else
17515  :
17516fi
17517
17518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
17519$as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
17520if ${ax_cv_check_cflags___mpclmul+:} false; then :
17521  $as_echo_n "(cached) " >&6
17522else
17523
17524  ax_check_save_flags=$CFLAGS
17525  CFLAGS="$CFLAGS  -mpclmul"
17526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527/* end confdefs.h.  */
17528#include <time.h>
17529int
17530main ()
17531{
17532time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17533  ;
17534  return 0;
17535}
17536_ACEOF
17537if ac_fn_c_try_link "$LINENO"; then :
17538  ax_cv_check_cflags___mpclmul=yes
17539else
17540  ax_cv_check_cflags___mpclmul=no
17541fi
17542rm -f core conftest.err conftest.$ac_objext \
17543    conftest$ac_exeext conftest.$ac_ext
17544  CFLAGS=$ax_check_save_flags
17545fi
17546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
17547$as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
17548if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
17549  CFLAGS="$CFLAGS -mpclmul"
17550else
17551  :
17552fi
17553
17554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AESNI instructions set and PCLMULQDQ" >&5
17555$as_echo_n "checking for AESNI instructions set and PCLMULQDQ... " >&6; }
17556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557/* end confdefs.h.  */
17558
17559#ifdef __native_client__
17560# error NativeClient detected - Avoiding AESNI opcodes
17561#endif
17562#pragma GCC target("aes")
17563#pragma GCC target("pclmul")
17564#include <wmmintrin.h>
17565
17566int
17567main ()
17568{
17569 __m128i x = _mm_aesimc_si128(_mm_setzero_si128());
17570       __m128i y = _mm_clmulepi64_si128(_mm_setzero_si128(), _mm_setzero_si128(), 0);
17571  ;
17572  return 0;
17573}
17574_ACEOF
17575if ac_fn_c_try_compile "$LINENO"; then :
17576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17577$as_echo "yes" >&6; }
17578
17579$as_echo "#define HAVE_WMMINTRIN_H 1" >>confdefs.h
17580
17581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
17582$as_echo_n "checking whether C compiler accepts -maes... " >&6; }
17583if ${ax_cv_check_cflags___maes+:} false; then :
17584  $as_echo_n "(cached) " >&6
17585else
17586
17587  ax_check_save_flags=$CFLAGS
17588  CFLAGS="$CFLAGS  -maes"
17589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590/* end confdefs.h.  */
17591#include <time.h>
17592int
17593main ()
17594{
17595time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17596  ;
17597  return 0;
17598}
17599_ACEOF
17600if ac_fn_c_try_link "$LINENO"; then :
17601  ax_cv_check_cflags___maes=yes
17602else
17603  ax_cv_check_cflags___maes=no
17604fi
17605rm -f core conftest.err conftest.$ac_objext \
17606    conftest$ac_exeext conftest.$ac_ext
17607  CFLAGS=$ax_check_save_flags
17608fi
17609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
17610$as_echo "$ax_cv_check_cflags___maes" >&6; }
17611if test "x$ax_cv_check_cflags___maes" = xyes; then :
17612  CFLAGS_AESNI="-maes"
17613else
17614  :
17615fi
17616
17617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
17618$as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
17619if ${ax_cv_check_cflags___mpclmul+:} false; then :
17620  $as_echo_n "(cached) " >&6
17621else
17622
17623  ax_check_save_flags=$CFLAGS
17624  CFLAGS="$CFLAGS  -mpclmul"
17625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626/* end confdefs.h.  */
17627#include <time.h>
17628int
17629main ()
17630{
17631time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17632  ;
17633  return 0;
17634}
17635_ACEOF
17636if ac_fn_c_try_link "$LINENO"; then :
17637  ax_cv_check_cflags___mpclmul=yes
17638else
17639  ax_cv_check_cflags___mpclmul=no
17640fi
17641rm -f core conftest.err conftest.$ac_objext \
17642    conftest$ac_exeext conftest.$ac_ext
17643  CFLAGS=$ax_check_save_flags
17644fi
17645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
17646$as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
17647if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
17648  CFLAGS_PCLMUL="-mpclmul"
17649else
17650  :
17651fi
17652
17653
17654else
17655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17656$as_echo "no" >&6; }
17657fi
17658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659  CFLAGS="$oldcflags"
17660
17661  oldcflags="$CFLAGS"
17662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
17663$as_echo_n "checking whether C compiler accepts -mrdrnd... " >&6; }
17664if ${ax_cv_check_cflags___mrdrnd+:} false; then :
17665  $as_echo_n "(cached) " >&6
17666else
17667
17668  ax_check_save_flags=$CFLAGS
17669  CFLAGS="$CFLAGS  -mrdrnd"
17670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671/* end confdefs.h.  */
17672#include <time.h>
17673int
17674main ()
17675{
17676time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17677  ;
17678  return 0;
17679}
17680_ACEOF
17681if ac_fn_c_try_link "$LINENO"; then :
17682  ax_cv_check_cflags___mrdrnd=yes
17683else
17684  ax_cv_check_cflags___mrdrnd=no
17685fi
17686rm -f core conftest.err conftest.$ac_objext \
17687    conftest$ac_exeext conftest.$ac_ext
17688  CFLAGS=$ax_check_save_flags
17689fi
17690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
17691$as_echo "$ax_cv_check_cflags___mrdrnd" >&6; }
17692if test "x$ax_cv_check_cflags___mrdrnd" = xyes; then :
17693  CFLAGS="$CFLAGS -mrdrnd"
17694else
17695  :
17696fi
17697
17698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RDRAND" >&5
17699$as_echo_n "checking for RDRAND... " >&6; }
17700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17701/* end confdefs.h.  */
17702
17703#ifdef __native_client__
17704# error NativeClient detected - Avoiding RDRAND opcodes
17705#endif
17706#pragma GCC target("rdrnd")
17707#include <immintrin.h>
17708
17709int
17710main ()
17711{
17712 unsigned long long x; _rdrand64_step(&x);
17713  ;
17714  return 0;
17715}
17716_ACEOF
17717if ac_fn_c_try_compile "$LINENO"; then :
17718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17719$as_echo "yes" >&6; }
17720
17721$as_echo "#define HAVE_RDRAND 1" >>confdefs.h
17722
17723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
17724$as_echo_n "checking whether C compiler accepts -mrdrnd... " >&6; }
17725if ${ax_cv_check_cflags___mrdrnd+:} false; then :
17726  $as_echo_n "(cached) " >&6
17727else
17728
17729  ax_check_save_flags=$CFLAGS
17730  CFLAGS="$CFLAGS  -mrdrnd"
17731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732/* end confdefs.h.  */
17733#include <time.h>
17734int
17735main ()
17736{
17737time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17738  ;
17739  return 0;
17740}
17741_ACEOF
17742if ac_fn_c_try_link "$LINENO"; then :
17743  ax_cv_check_cflags___mrdrnd=yes
17744else
17745  ax_cv_check_cflags___mrdrnd=no
17746fi
17747rm -f core conftest.err conftest.$ac_objext \
17748    conftest$ac_exeext conftest.$ac_ext
17749  CFLAGS=$ax_check_save_flags
17750fi
17751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
17752$as_echo "$ax_cv_check_cflags___mrdrnd" >&6; }
17753if test "x$ax_cv_check_cflags___mrdrnd" = xyes; then :
17754  CFLAGS_RDRAND="-mrdrnd"
17755else
17756  :
17757fi
17758
17759
17760else
17761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762$as_echo "no" >&6; }
17763fi
17764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765  CFLAGS="$oldcflags"
17766
17767
17768fi
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782for ac_header in sys/mman.h intrin.h
17783do :
17784  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17785ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17786if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17787  cat >>confdefs.h <<_ACEOF
17788#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17789_ACEOF
17790
17791fi
17792
17793done
17794
17795
17796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _xgetbv() is available" >&5
17797$as_echo_n "checking if _xgetbv() is available... " >&6; }
17798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799/* end confdefs.h.  */
17800 #include <intrin.h>
17801int
17802main ()
17803{
17804 (void) _xgetbv(0)
17805  ;
17806  return 0;
17807}
17808_ACEOF
17809if ac_fn_c_try_link "$LINENO"; then :
17810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17811$as_echo "yes" >&6; }
17812
17813$as_echo "#define HAVE__XGETBV 1" >>confdefs.h
17814
17815else
17816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17817$as_echo "no" >&6; }
17818fi
17819rm -f core conftest.err conftest.$ac_objext \
17820    conftest$ac_exeext conftest.$ac_ext
17821
17822
17823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17824$as_echo_n "checking for inline... " >&6; }
17825if ${ac_cv_c_inline+:} false; then :
17826  $as_echo_n "(cached) " >&6
17827else
17828  ac_cv_c_inline=no
17829for ac_kw in inline __inline__ __inline; do
17830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831/* end confdefs.h.  */
17832#ifndef __cplusplus
17833typedef int foo_t;
17834static $ac_kw foo_t static_foo () {return 0; }
17835$ac_kw foo_t foo () {return 0; }
17836#endif
17837
17838_ACEOF
17839if ac_fn_c_try_compile "$LINENO"; then :
17840  ac_cv_c_inline=$ac_kw
17841fi
17842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17843  test "$ac_cv_c_inline" != no && break
17844done
17845
17846fi
17847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17848$as_echo "$ac_cv_c_inline" >&6; }
17849
17850case $ac_cv_c_inline in
17851  inline | yes) ;;
17852  *)
17853    case $ac_cv_c_inline in
17854      no) ac_val=;;
17855      *) ac_val=$ac_cv_c_inline;;
17856    esac
17857    cat >>confdefs.h <<_ACEOF
17858#ifndef __cplusplus
17859#define inline $ac_val
17860#endif
17861_ACEOF
17862    ;;
17863esac
17864
17865case $host_cpu in #(
17866  i?86|amd64|x86_64) :
17867    ac_cv_c_bigendian=no
17868 ;; #(
17869  *) :
17870     ;;
17871esac
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17873$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17874if ${ac_cv_c_bigendian+:} false; then :
17875  $as_echo_n "(cached) " >&6
17876else
17877  ac_cv_c_bigendian=unknown
17878    # See if we're dealing with a universal compiler.
17879    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880/* end confdefs.h.  */
17881#ifndef __APPLE_CC__
17882	       not a universal capable compiler
17883	     #endif
17884	     typedef int dummy;
17885
17886_ACEOF
17887if ac_fn_c_try_compile "$LINENO"; then :
17888
17889	# Check for potential -arch flags.  It is not universal unless
17890	# there are at least two -arch flags with different values.
17891	ac_arch=
17892	ac_prev=
17893	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17894	 if test -n "$ac_prev"; then
17895	   case $ac_word in
17896	     i?86 | x86_64 | ppc | ppc64)
17897	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17898		 ac_arch=$ac_word
17899	       else
17900		 ac_cv_c_bigendian=universal
17901		 break
17902	       fi
17903	       ;;
17904	   esac
17905	   ac_prev=
17906	 elif test "x$ac_word" = "x-arch"; then
17907	   ac_prev=arch
17908	 fi
17909       done
17910fi
17911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912    if test $ac_cv_c_bigendian = unknown; then
17913      # See if sys/param.h defines the BYTE_ORDER macro.
17914      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915/* end confdefs.h.  */
17916#include <sys/types.h>
17917	     #include <sys/param.h>
17918
17919int
17920main ()
17921{
17922#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17923		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17924		     && LITTLE_ENDIAN)
17925	      bogus endian macros
17926	     #endif
17927
17928  ;
17929  return 0;
17930}
17931_ACEOF
17932if ac_fn_c_try_compile "$LINENO"; then :
17933  # It does; now see whether it defined to BIG_ENDIAN or not.
17934	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935/* end confdefs.h.  */
17936#include <sys/types.h>
17937		#include <sys/param.h>
17938
17939int
17940main ()
17941{
17942#if BYTE_ORDER != BIG_ENDIAN
17943		 not big endian
17944		#endif
17945
17946  ;
17947  return 0;
17948}
17949_ACEOF
17950if ac_fn_c_try_compile "$LINENO"; then :
17951  ac_cv_c_bigendian=yes
17952else
17953  ac_cv_c_bigendian=no
17954fi
17955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956fi
17957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17958    fi
17959    if test $ac_cv_c_bigendian = unknown; then
17960      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17961      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962/* end confdefs.h.  */
17963#include <limits.h>
17964
17965int
17966main ()
17967{
17968#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17969	      bogus endian macros
17970	     #endif
17971
17972  ;
17973  return 0;
17974}
17975_ACEOF
17976if ac_fn_c_try_compile "$LINENO"; then :
17977  # It does; now see whether it defined to _BIG_ENDIAN or not.
17978	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979/* end confdefs.h.  */
17980#include <limits.h>
17981
17982int
17983main ()
17984{
17985#ifndef _BIG_ENDIAN
17986		 not big endian
17987		#endif
17988
17989  ;
17990  return 0;
17991}
17992_ACEOF
17993if ac_fn_c_try_compile "$LINENO"; then :
17994  ac_cv_c_bigendian=yes
17995else
17996  ac_cv_c_bigendian=no
17997fi
17998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999fi
18000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18001    fi
18002    if test $ac_cv_c_bigendian = unknown; then
18003      # Compile a test program.
18004      if test "$cross_compiling" = yes; then :
18005  # Try to guess by grepping values from an object file.
18006	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007/* end confdefs.h.  */
18008short int ascii_mm[] =
18009		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18010		short int ascii_ii[] =
18011		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18012		int use_ascii (int i) {
18013		  return ascii_mm[i] + ascii_ii[i];
18014		}
18015		short int ebcdic_ii[] =
18016		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18017		short int ebcdic_mm[] =
18018		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18019		int use_ebcdic (int i) {
18020		  return ebcdic_mm[i] + ebcdic_ii[i];
18021		}
18022		extern int foo;
18023
18024int
18025main ()
18026{
18027return use_ascii (foo) == use_ebcdic (foo);
18028  ;
18029  return 0;
18030}
18031_ACEOF
18032if ac_fn_c_try_compile "$LINENO"; then :
18033  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18034	      ac_cv_c_bigendian=yes
18035	    fi
18036	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18037	      if test "$ac_cv_c_bigendian" = unknown; then
18038		ac_cv_c_bigendian=no
18039	      else
18040		# finding both strings is unlikely to happen, but who knows?
18041		ac_cv_c_bigendian=unknown
18042	      fi
18043	    fi
18044fi
18045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18046else
18047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048/* end confdefs.h.  */
18049$ac_includes_default
18050int
18051main ()
18052{
18053
18054	     /* Are we little or big endian?  From Harbison&Steele.  */
18055	     union
18056	     {
18057	       long int l;
18058	       char c[sizeof (long int)];
18059	     } u;
18060	     u.l = 1;
18061	     return u.c[sizeof (long int) - 1] == 1;
18062
18063  ;
18064  return 0;
18065}
18066_ACEOF
18067if ac_fn_c_try_run "$LINENO"; then :
18068  ac_cv_c_bigendian=no
18069else
18070  ac_cv_c_bigendian=yes
18071fi
18072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18073  conftest.$ac_objext conftest.beam conftest.$ac_ext
18074fi
18075
18076    fi
18077fi
18078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18079$as_echo "$ac_cv_c_bigendian" >&6; }
18080 case $ac_cv_c_bigendian in #(
18081   yes)
18082
18083$as_echo "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
18084;; #(
18085   no)
18086
18087$as_echo "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
18088 ;; #(
18089   universal)
18090     as_fn_error $? "universal endianness is not supported - compile separately and use lipo(1)" "$LINENO" 5
18091
18092     ;; #(
18093   *)
18094     as_fn_error $? "unknown endianness" "$LINENO" 5 ;;
18095 esac
18096
18097
18098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __STDC_LIMIT_MACROS is required" >&5
18099$as_echo_n "checking whether __STDC_LIMIT_MACROS is required... " >&6; }
18100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101/* end confdefs.h.  */
18102
18103#include <limits.h>
18104#include <stdint.h>
18105
18106int
18107main ()
18108{
18109
18110(void) SIZE_MAX;
18111(void) UINT64_MAX;
18112
18113  ;
18114  return 0;
18115}
18116_ACEOF
18117if ac_fn_c_try_compile "$LINENO"; then :
18118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18119$as_echo "no" >&6; }
18120else
18121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18122$as_echo "yes" >&6; }
18123   CPPFLAGS="$CPPFLAGS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
18124
18125fi
18126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18127
18128HAVE_AMD64_ASM_V=0
18129if test "$enable_asm" != "no"; then :
18130
18131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use x86_64 asm code" >&5
18132$as_echo_n "checking whether we can use x86_64 asm code... " >&6; }
18133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134/* end confdefs.h.  */
18135
18136
18137int
18138main ()
18139{
18140
18141#if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
18142# if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
18143#  error Windows x86_64 calling conventions are not supported yet
18144# endif
18145/* neat */
18146#else
18147# error !x86_64
18148#endif
18149unsigned char i = 0, o = 0, t;
18150__asm__ __volatile__ ("pxor %%xmm12, %%xmm6 \n"
18151                      "movb (%[i]), %[t] \n"
18152                      "addb %[t], (%[o]) \n"
18153                      : [t] "=&r"(t)
18154                      : [o] "D"(&o), [i] "S"(&i)
18155                      : "memory", "flags", "cc");
18156
18157  ;
18158  return 0;
18159}
18160_ACEOF
18161if ac_fn_c_try_compile "$LINENO"; then :
18162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18163$as_echo "yes" >&6; }
18164
18165$as_echo "#define HAVE_AMD64_ASM 1" >>confdefs.h
18166
18167   HAVE_AMD64_ASM_V=1
18168else
18169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18170$as_echo "no" >&6; }
18171fi
18172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173
18174fi
18175 if test $HAVE_AMD64_ASM_V = 1; then
18176  HAVE_AMD64_ASM_TRUE=
18177  HAVE_AMD64_ASM_FALSE='#'
18178else
18179  HAVE_AMD64_ASM_TRUE='#'
18180  HAVE_AMD64_ASM_FALSE=
18181fi
18182
18183
18184
18185HAVE_AVX_ASM_V=0
18186if test "$enable_asm" != "no"; then :
18187
18188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can assemble AVX opcodes" >&5
18189$as_echo_n "checking whether we can assemble AVX opcodes... " >&6; }
18190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191/* end confdefs.h.  */
18192
18193
18194int
18195main ()
18196{
18197
18198#if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
18199# if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
18200#  error Windows x86_64 calling conventions are not supported yet
18201# endif
18202/* neat */
18203#else
18204# error !x86_64
18205#endif
18206__asm__ __volatile__ ("vpunpcklqdq %xmm0,%xmm13,%xmm0");
18207
18208  ;
18209  return 0;
18210}
18211_ACEOF
18212if ac_fn_c_try_compile "$LINENO"; then :
18213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18214$as_echo "yes" >&6; }
18215
18216$as_echo "#define HAVE_AVX_ASM 1" >>confdefs.h
18217
18218   HAVE_AVX_ASM_V=1
18219else
18220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221$as_echo "no" >&6; }
18222fi
18223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18224
18225fi
18226 if test $HAVE_AVX_ASM_V = 1; then
18227  HAVE_AVX_ASM_TRUE=
18228  HAVE_AVX_ASM_FALSE='#'
18229else
18230  HAVE_AVX_ASM_TRUE='#'
18231  HAVE_AVX_ASM_FALSE=
18232fi
18233
18234
18235
18236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit arithmetic" >&5
18237$as_echo_n "checking for 128-bit arithmetic... " >&6; }
18238HAVE_TI_MODE_V=0
18239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240/* end confdefs.h.  */
18241
18242#if !defined(__GNUC__) && !defined(__SIZEOF_INT128__)
18243# error mode(TI) is a gcc extension, and __int128 is not available
18244#endif
18245#if defined(__clang__) && !defined(__x86_64__)
18246# error clang does not properly handle the 128-bit type on 32-bit systems
18247#endif
18248#ifndef NATIVE_LITTLE_ENDIAN
18249# error libsodium currently expects a little endian CPU for the 128-bit type
18250#endif
18251#ifdef __EMSCRIPTEN__
18252# error emscripten currently supports only shift operations on integers \
18253#       larger than 64 bits
18254#endif
18255#include <stddef.h>
18256#include <stdint.h>
18257#if defined(__SIZEOF_INT128__)
18258typedef unsigned __int128 uint128_t;
18259#else
18260typedef unsigned uint128_t __attribute__((mode(TI)));
18261#endif
18262void fcontract(uint128_t *t) {
18263  *t += 0x8000000000000 - 1;
18264}
18265
18266int
18267main ()
18268{
18269
18270(void) fcontract;
18271
18272  ;
18273  return 0;
18274}
18275_ACEOF
18276if ac_fn_c_try_compile "$LINENO"; then :
18277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18278$as_echo "yes" >&6; }
18279
18280$as_echo "#define HAVE_TI_MODE 1" >>confdefs.h
18281
18282 HAVE_TI_MODE_V=1
18283else
18284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285$as_echo "no" >&6; }
18286fi
18287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288 if test $HAVE_TI_MODE_V = 1; then
18289  HAVE_TI_MODE_TRUE=
18290  HAVE_TI_MODE_FALSE='#'
18291else
18292  HAVE_TI_MODE_TRUE='#'
18293  HAVE_TI_MODE_FALSE=
18294fi
18295
18296
18297
18298HAVE_CPUID_V=0
18299if test "$enable_asm" != "no" -o "$host_alias" = "x86_64-nacl"; then :
18300
18301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid instruction" >&5
18302$as_echo_n "checking for cpuid instruction... " >&6; }
18303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18304/* end confdefs.h.  */
18305
18306int
18307main ()
18308{
18309
18310unsigned int cpu_info[4];
18311__asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
18312                      "=a" (cpu_info[0]), "=&r" (cpu_info[1]),
18313                      "=c" (cpu_info[2]), "=d" (cpu_info[3]) :
18314                      "0" (0U), "2" (0U));
18315
18316  ;
18317  return 0;
18318}
18319_ACEOF
18320if ac_fn_c_try_compile "$LINENO"; then :
18321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18322$as_echo "yes" >&6; }
18323
18324$as_echo "#define HAVE_CPUID 1" >>confdefs.h
18325
18326   HAVE_CPUID_V=1
18327else
18328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329$as_echo "no" >&6; }
18330fi
18331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18332
18333fi
18334
18335
18336asm_hide_symbol="unsupported"
18337if test "$enable_asm" != "no" -o "$host_os" = "nacl"; then :
18338
18339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .private_extern asm directive is supported" >&5
18340$as_echo_n "checking if the .private_extern asm directive is supported... " >&6; }
18341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342/* end confdefs.h.  */
18343
18344int
18345main ()
18346{
18347
18348__asm__ __volatile__ (".private_extern dummy_symbol \n"
18349                      ".private_extern _dummy_symbol \n"
18350                      ".globl dummy_symbol \n"
18351                      ".globl _dummy_symbol \n"
18352                      "dummy_symbol: \n"
18353                      "_dummy_symbol: \n"
18354                      "    nop \n"
18355);
18356
18357  ;
18358  return 0;
18359}
18360_ACEOF
18361if ac_fn_c_try_link "$LINENO"; then :
18362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18363$as_echo "yes" >&6; }
18364   asm_hide_symbol=".private_extern"
18365else
18366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18367$as_echo "no" >&6; }
18368fi
18369rm -f core conftest.err conftest.$ac_objext \
18370    conftest$ac_exeext conftest.$ac_ext
18371
18372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .hidden asm directive is supported" >&5
18373$as_echo_n "checking if the .hidden asm directive is supported... " >&6; }
18374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375/* end confdefs.h.  */
18376
18377int
18378main ()
18379{
18380
18381__asm__ __volatile__ (".hidden dummy_symbol \n"
18382                      ".hidden _dummy_symbol \n"
18383                      ".globl dummy_symbol \n"
18384                      ".globl _dummy_symbol \n"
18385                      "dummy_symbol: \n"
18386                      "_dummy_symbol: \n"
18387                      "    nop \n"
18388);
18389
18390  ;
18391  return 0;
18392}
18393_ACEOF
18394if ac_fn_c_try_link "$LINENO"; then :
18395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18396$as_echo "yes" >&6; }
18397   if test "$asm_hide_symbol" = "unsupported"; then :
18398  asm_hide_symbol=".hidden"
18399else
18400  { $as_echo "$as_me:${as_lineno-$LINENO}: unable to reliably tag symbols as private" >&5
18401$as_echo "$as_me: unable to reliably tag symbols as private" >&6;}
18402           asm_hide_symbol="unsupported"
18403fi
18404
18405else
18406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18407$as_echo "no" >&6; }
18408fi
18409rm -f core conftest.err conftest.$ac_objext \
18410    conftest$ac_exeext conftest.$ac_ext
18411
18412  if test "$asm_hide_symbol" != "unsupported"; then :
18413
18414
18415cat >>confdefs.h <<_ACEOF
18416#define ASM_HIDE_SYMBOL $asm_hide_symbol
18417_ACEOF
18418
18419
18420fi
18421
18422fi
18423
18424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
18425$as_echo_n "checking if weak symbols are supported... " >&6; }
18426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427/* end confdefs.h.  */
18428
18429#if !defined(__ELF__) && !defined(__APPLE_CC__)
18430# error Support for weak symbols may not be available
18431#endif
18432__attribute__((weak)) void __dummy(void *x) { }
18433void f(void *x) { __dummy(x); }
18434
18435int
18436main ()
18437{
18438
18439
18440  ;
18441  return 0;
18442}
18443_ACEOF
18444if ac_fn_c_try_link "$LINENO"; then :
18445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18446$as_echo "yes" >&6; }
18447
18448$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
18449
18450else
18451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18452$as_echo "no" >&6; }
18453fi
18454rm -f core conftest.err conftest.$ac_objext \
18455    conftest$ac_exeext conftest.$ac_ext
18456
18457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if data alignment is required" >&5
18458$as_echo_n "checking if data alignment is required... " >&6; }
18459aligned_access_required=yes
18460case $host_cpu in #(
18461  i?86|amd64|x86_64|powerpc*|s390*) :
18462    aligned_access_required=no ;; #(
18463  arm*) :
18464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465/* end confdefs.h.  */
18466
18467#ifndef __ARM_FEATURE_UNALIGNED
18468# error data alignment is required
18469#endif
18470
18471int
18472main ()
18473{
18474
18475  ;
18476  return 0;
18477}
18478_ACEOF
18479if ac_fn_c_try_compile "$LINENO"; then :
18480  aligned_access_required=no
18481fi
18482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483 ;; #(
18484  *) :
18485     ;;
18486esac
18487if test "x$aligned_access_required" = "xyes"; then :
18488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18489$as_echo "yes" >&6; }
18490else
18491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492$as_echo "no" >&6; }
18493
18494$as_echo "#define CPU_UNALIGNED_ACCESS 1" >>confdefs.h
18495
18496fi
18497
18498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if atomic operations are supported" >&5
18499$as_echo_n "checking if atomic operations are supported... " >&6; }
18500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501/* end confdefs.h.  */
18502
18503int
18504main ()
18505{
18506
18507static volatile int _sodium_lock;
18508__sync_lock_test_and_set(&_sodium_lock, 1);
18509__sync_lock_release(&_sodium_lock);
18510
18511
18512  ;
18513  return 0;
18514}
18515_ACEOF
18516if ac_fn_c_try_link "$LINENO"; then :
18517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18518$as_echo "yes" >&6; }
18519
18520$as_echo "#define HAVE_ATOMIC_OPS 1" >>confdefs.h
18521
18522else
18523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18524$as_echo "no" >&6; }
18525fi
18526rm -f core conftest.err conftest.$ac_objext \
18527    conftest$ac_exeext conftest.$ac_ext
18528
18529
18530ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18531if test "x$ac_cv_type_size_t" = xyes; then :
18532
18533else
18534
18535cat >>confdefs.h <<_ACEOF
18536#define size_t unsigned int
18537_ACEOF
18538
18539fi
18540
18541# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18542# for constant arguments.  Useless!
18543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18544$as_echo_n "checking for working alloca.h... " >&6; }
18545if ${ac_cv_working_alloca_h+:} false; then :
18546  $as_echo_n "(cached) " >&6
18547else
18548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549/* end confdefs.h.  */
18550#include <alloca.h>
18551int
18552main ()
18553{
18554char *p = (char *) alloca (2 * sizeof (int));
18555			  if (p) return 0;
18556  ;
18557  return 0;
18558}
18559_ACEOF
18560if ac_fn_c_try_link "$LINENO"; then :
18561  ac_cv_working_alloca_h=yes
18562else
18563  ac_cv_working_alloca_h=no
18564fi
18565rm -f core conftest.err conftest.$ac_objext \
18566    conftest$ac_exeext conftest.$ac_ext
18567fi
18568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18569$as_echo "$ac_cv_working_alloca_h" >&6; }
18570if test $ac_cv_working_alloca_h = yes; then
18571
18572$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18573
18574fi
18575
18576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18577$as_echo_n "checking for alloca... " >&6; }
18578if ${ac_cv_func_alloca_works+:} false; then :
18579  $as_echo_n "(cached) " >&6
18580else
18581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582/* end confdefs.h.  */
18583#ifdef __GNUC__
18584# define alloca __builtin_alloca
18585#else
18586# ifdef _MSC_VER
18587#  include <malloc.h>
18588#  define alloca _alloca
18589# else
18590#  ifdef HAVE_ALLOCA_H
18591#   include <alloca.h>
18592#  else
18593#   ifdef _AIX
18594 #pragma alloca
18595#   else
18596#    ifndef alloca /* predefined by HP cc +Olibcalls */
18597void *alloca (size_t);
18598#    endif
18599#   endif
18600#  endif
18601# endif
18602#endif
18603
18604int
18605main ()
18606{
18607char *p = (char *) alloca (1);
18608				    if (p) return 0;
18609  ;
18610  return 0;
18611}
18612_ACEOF
18613if ac_fn_c_try_link "$LINENO"; then :
18614  ac_cv_func_alloca_works=yes
18615else
18616  ac_cv_func_alloca_works=no
18617fi
18618rm -f core conftest.err conftest.$ac_objext \
18619    conftest$ac_exeext conftest.$ac_ext
18620fi
18621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18622$as_echo "$ac_cv_func_alloca_works" >&6; }
18623
18624if test $ac_cv_func_alloca_works = yes; then
18625
18626$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18627
18628else
18629  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18630# that cause trouble.  Some versions do not even contain alloca or
18631# contain a buggy version.  If you still want to use their alloca,
18632# use ar to extract alloca.o from them instead of compiling alloca.c.
18633
18634ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18635
18636$as_echo "#define C_ALLOCA 1" >>confdefs.h
18637
18638
18639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18640$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18641if ${ac_cv_os_cray+:} false; then :
18642  $as_echo_n "(cached) " >&6
18643else
18644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645/* end confdefs.h.  */
18646#if defined CRAY && ! defined CRAY2
18647webecray
18648#else
18649wenotbecray
18650#endif
18651
18652_ACEOF
18653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18654  $EGREP "webecray" >/dev/null 2>&1; then :
18655  ac_cv_os_cray=yes
18656else
18657  ac_cv_os_cray=no
18658fi
18659rm -f conftest*
18660
18661fi
18662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18663$as_echo "$ac_cv_os_cray" >&6; }
18664if test $ac_cv_os_cray = yes; then
18665  for ac_func in _getb67 GETB67 getb67; do
18666    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18667ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18668if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18669
18670cat >>confdefs.h <<_ACEOF
18671#define CRAY_STACKSEG_END $ac_func
18672_ACEOF
18673
18674    break
18675fi
18676
18677  done
18678fi
18679
18680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18681$as_echo_n "checking stack direction for C alloca... " >&6; }
18682if ${ac_cv_c_stack_direction+:} false; then :
18683  $as_echo_n "(cached) " >&6
18684else
18685  if test "$cross_compiling" = yes; then :
18686  ac_cv_c_stack_direction=0
18687else
18688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18689/* end confdefs.h.  */
18690$ac_includes_default
18691int
18692find_stack_direction (int *addr, int depth)
18693{
18694  int dir, dummy = 0;
18695  if (! addr)
18696    addr = &dummy;
18697  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18698  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18699  return dir + dummy;
18700}
18701
18702int
18703main (int argc, char **argv)
18704{
18705  return find_stack_direction (0, argc + !argv + 20) < 0;
18706}
18707_ACEOF
18708if ac_fn_c_try_run "$LINENO"; then :
18709  ac_cv_c_stack_direction=1
18710else
18711  ac_cv_c_stack_direction=-1
18712fi
18713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18714  conftest.$ac_objext conftest.beam conftest.$ac_ext
18715fi
18716
18717fi
18718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18719$as_echo "$ac_cv_c_stack_direction" >&6; }
18720cat >>confdefs.h <<_ACEOF
18721#define STACK_DIRECTION $ac_cv_c_stack_direction
18722_ACEOF
18723
18724
18725fi
18726
18727if test "x$EMSCRIPTEN" = "x"; then :
18728
18729  for ac_func in arc4random arc4random_buf
18730do :
18731  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18732ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18733if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18734  cat >>confdefs.h <<_ACEOF
18735#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18736_ACEOF
18737
18738fi
18739done
18740
18741  for ac_func in mmap mlock madvise mprotect memset_s explicit_bzero nanosleep
18742do :
18743  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18744ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18745if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18746  cat >>confdefs.h <<_ACEOF
18747#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18748_ACEOF
18749
18750fi
18751done
18752
18753
18754fi
18755for ac_func in posix_memalign getpid
18756do :
18757  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18758ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18759if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18760  cat >>confdefs.h <<_ACEOF
18761#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18762_ACEOF
18763
18764fi
18765done
18766
18767
18768
18769
18770TEST_LDFLAGS=''
18771if test "x$EMSCRIPTEN" != "x"; then :
18772
18773  EXEEXT=.js
18774  TEST_LDFLAGS='--memory-init-file 0 --pre-js pre.js.inc -s RESERVED_FUNCTION_POINTERS=8'
18775
18776fi
18777
18778 if test "x$EMSCRIPTEN" != "x"; then
18779  EMSCRIPTEN_TRUE=
18780  EMSCRIPTEN_FALSE='#'
18781else
18782  EMSCRIPTEN_TRUE='#'
18783  EMSCRIPTEN_FALSE=
18784fi
18785
18786
18787 if test "x$NATIVECLIENT" != "x"; then
18788  NATIVECLIENT_TRUE=
18789  NATIVECLIENT_FALSE='#'
18790else
18791  NATIVECLIENT_TRUE='#'
18792  NATIVECLIENT_FALSE=
18793fi
18794
18795
18796
18797$as_echo "#define CONFIGURED 1" >>confdefs.h
18798
18799
18800
18801
18802enable_win32_dll=yes
18803
18804case $host in
18805*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
18806  if test -n "$ac_tool_prefix"; then
18807  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
18808set dummy ${ac_tool_prefix}as; ac_word=$2
18809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18810$as_echo_n "checking for $ac_word... " >&6; }
18811if ${ac_cv_prog_AS+:} false; then :
18812  $as_echo_n "(cached) " >&6
18813else
18814  if test -n "$AS"; then
18815  ac_cv_prog_AS="$AS" # Let the user override the test.
18816else
18817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18818for as_dir in $PATH
18819do
18820  IFS=$as_save_IFS
18821  test -z "$as_dir" && as_dir=.
18822    for ac_exec_ext in '' $ac_executable_extensions; do
18823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18824    ac_cv_prog_AS="${ac_tool_prefix}as"
18825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18826    break 2
18827  fi
18828done
18829  done
18830IFS=$as_save_IFS
18831
18832fi
18833fi
18834AS=$ac_cv_prog_AS
18835if test -n "$AS"; then
18836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
18837$as_echo "$AS" >&6; }
18838else
18839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18840$as_echo "no" >&6; }
18841fi
18842
18843
18844fi
18845if test -z "$ac_cv_prog_AS"; then
18846  ac_ct_AS=$AS
18847  # Extract the first word of "as", so it can be a program name with args.
18848set dummy as; ac_word=$2
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18850$as_echo_n "checking for $ac_word... " >&6; }
18851if ${ac_cv_prog_ac_ct_AS+:} false; then :
18852  $as_echo_n "(cached) " >&6
18853else
18854  if test -n "$ac_ct_AS"; then
18855  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
18856else
18857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18858for as_dir in $PATH
18859do
18860  IFS=$as_save_IFS
18861  test -z "$as_dir" && as_dir=.
18862    for ac_exec_ext in '' $ac_executable_extensions; do
18863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18864    ac_cv_prog_ac_ct_AS="as"
18865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18866    break 2
18867  fi
18868done
18869  done
18870IFS=$as_save_IFS
18871
18872fi
18873fi
18874ac_ct_AS=$ac_cv_prog_ac_ct_AS
18875if test -n "$ac_ct_AS"; then
18876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
18877$as_echo "$ac_ct_AS" >&6; }
18878else
18879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18880$as_echo "no" >&6; }
18881fi
18882
18883  if test "x$ac_ct_AS" = x; then
18884    AS="false"
18885  else
18886    case $cross_compiling:$ac_tool_warned in
18887yes:)
18888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18890ac_tool_warned=yes ;;
18891esac
18892    AS=$ac_ct_AS
18893  fi
18894else
18895  AS="$ac_cv_prog_AS"
18896fi
18897
18898  if test -n "$ac_tool_prefix"; then
18899  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
18900set dummy ${ac_tool_prefix}dlltool; ac_word=$2
18901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902$as_echo_n "checking for $ac_word... " >&6; }
18903if ${ac_cv_prog_DLLTOOL+:} false; then :
18904  $as_echo_n "(cached) " >&6
18905else
18906  if test -n "$DLLTOOL"; then
18907  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
18908else
18909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18910for as_dir in $PATH
18911do
18912  IFS=$as_save_IFS
18913  test -z "$as_dir" && as_dir=.
18914    for ac_exec_ext in '' $ac_executable_extensions; do
18915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18916    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
18917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18918    break 2
18919  fi
18920done
18921  done
18922IFS=$as_save_IFS
18923
18924fi
18925fi
18926DLLTOOL=$ac_cv_prog_DLLTOOL
18927if test -n "$DLLTOOL"; then
18928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
18929$as_echo "$DLLTOOL" >&6; }
18930else
18931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932$as_echo "no" >&6; }
18933fi
18934
18935
18936fi
18937if test -z "$ac_cv_prog_DLLTOOL"; then
18938  ac_ct_DLLTOOL=$DLLTOOL
18939  # Extract the first word of "dlltool", so it can be a program name with args.
18940set dummy dlltool; ac_word=$2
18941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18942$as_echo_n "checking for $ac_word... " >&6; }
18943if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
18944  $as_echo_n "(cached) " >&6
18945else
18946  if test -n "$ac_ct_DLLTOOL"; then
18947  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
18948else
18949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18950for as_dir in $PATH
18951do
18952  IFS=$as_save_IFS
18953  test -z "$as_dir" && as_dir=.
18954    for ac_exec_ext in '' $ac_executable_extensions; do
18955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18956    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
18957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18958    break 2
18959  fi
18960done
18961  done
18962IFS=$as_save_IFS
18963
18964fi
18965fi
18966ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
18967if test -n "$ac_ct_DLLTOOL"; then
18968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
18969$as_echo "$ac_ct_DLLTOOL" >&6; }
18970else
18971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972$as_echo "no" >&6; }
18973fi
18974
18975  if test "x$ac_ct_DLLTOOL" = x; then
18976    DLLTOOL="false"
18977  else
18978    case $cross_compiling:$ac_tool_warned in
18979yes:)
18980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18982ac_tool_warned=yes ;;
18983esac
18984    DLLTOOL=$ac_ct_DLLTOOL
18985  fi
18986else
18987  DLLTOOL="$ac_cv_prog_DLLTOOL"
18988fi
18989
18990  if test -n "$ac_tool_prefix"; then
18991  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
18992set dummy ${ac_tool_prefix}objdump; ac_word=$2
18993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18994$as_echo_n "checking for $ac_word... " >&6; }
18995if ${ac_cv_prog_OBJDUMP+:} false; then :
18996  $as_echo_n "(cached) " >&6
18997else
18998  if test -n "$OBJDUMP"; then
18999  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
19000else
19001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19002for as_dir in $PATH
19003do
19004  IFS=$as_save_IFS
19005  test -z "$as_dir" && as_dir=.
19006    for ac_exec_ext in '' $ac_executable_extensions; do
19007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19008    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
19009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19010    break 2
19011  fi
19012done
19013  done
19014IFS=$as_save_IFS
19015
19016fi
19017fi
19018OBJDUMP=$ac_cv_prog_OBJDUMP
19019if test -n "$OBJDUMP"; then
19020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
19021$as_echo "$OBJDUMP" >&6; }
19022else
19023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19024$as_echo "no" >&6; }
19025fi
19026
19027
19028fi
19029if test -z "$ac_cv_prog_OBJDUMP"; then
19030  ac_ct_OBJDUMP=$OBJDUMP
19031  # Extract the first word of "objdump", so it can be a program name with args.
19032set dummy objdump; ac_word=$2
19033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19034$as_echo_n "checking for $ac_word... " >&6; }
19035if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
19036  $as_echo_n "(cached) " >&6
19037else
19038  if test -n "$ac_ct_OBJDUMP"; then
19039  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
19040else
19041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042for as_dir in $PATH
19043do
19044  IFS=$as_save_IFS
19045  test -z "$as_dir" && as_dir=.
19046    for ac_exec_ext in '' $ac_executable_extensions; do
19047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19048    ac_cv_prog_ac_ct_OBJDUMP="objdump"
19049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19050    break 2
19051  fi
19052done
19053  done
19054IFS=$as_save_IFS
19055
19056fi
19057fi
19058ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
19059if test -n "$ac_ct_OBJDUMP"; then
19060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
19061$as_echo "$ac_ct_OBJDUMP" >&6; }
19062else
19063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064$as_echo "no" >&6; }
19065fi
19066
19067  if test "x$ac_ct_OBJDUMP" = x; then
19068    OBJDUMP="false"
19069  else
19070    case $cross_compiling:$ac_tool_warned in
19071yes:)
19072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19074ac_tool_warned=yes ;;
19075esac
19076    OBJDUMP=$ac_ct_OBJDUMP
19077  fi
19078else
19079  OBJDUMP="$ac_cv_prog_OBJDUMP"
19080fi
19081
19082  ;;
19083esac
19084
19085test -z "$AS" && AS=as
19086
19087
19088
19089
19090
19091test -z "$DLLTOOL" && DLLTOOL=dlltool
19092
19093
19094test -z "$OBJDUMP" && OBJDUMP=objdump
19095
19096
19097
19098
19099
19100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
19101$as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
19102if ${gl_cv_ld_output_def+:} false; then :
19103  $as_echo_n "(cached) " >&6
19104else
19105  if test "$enable_shared" = no; then
19106       gl_cv_ld_output_def="not needed, shared libraries are disabled"
19107     else
19108       gl_ldflags_save=$LDFLAGS
19109       LDFLAGS="-Wl,--output-def,conftest.def"
19110       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111/* end confdefs.h.  */
19112
19113int
19114main ()
19115{
19116
19117  ;
19118  return 0;
19119}
19120_ACEOF
19121if ac_fn_c_try_link "$LINENO"; then :
19122  gl_cv_ld_output_def=yes
19123else
19124  gl_cv_ld_output_def=no
19125fi
19126rm -f core conftest.err conftest.$ac_objext \
19127    conftest$ac_exeext conftest.$ac_ext
19128       rm -f conftest.def
19129       LDFLAGS="$gl_ldflags_save"
19130     fi
19131fi
19132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
19133$as_echo "$gl_cv_ld_output_def" >&6; }
19134   if test "x$gl_cv_ld_output_def" = "xyes"; then
19135  HAVE_LD_OUTPUT_DEF_TRUE=
19136  HAVE_LD_OUTPUT_DEF_FALSE='#'
19137else
19138  HAVE_LD_OUTPUT_DEF_TRUE='#'
19139  HAVE_LD_OUTPUT_DEF_FALSE=
19140fi
19141
19142
19143
19144
19145
19146
19147if test "x$ENABLE_CWFLAGS" = "xyes"; then :
19148
19149  CFLAGS="$CFLAGS $CWFLAGS"
19150
19151fi
19152
19153ac_config_files="$ac_config_files Makefile builds/Makefile contrib/Makefile dist-build/Makefile libsodium.pc libsodium-uninstalled.pc msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
19154
19155cat >confcache <<\_ACEOF
19156# This file is a shell script that caches the results of configure
19157# tests run on this system so they can be shared between configure
19158# scripts and configure runs, see configure's option --config-cache.
19159# It is not useful on other systems.  If it contains results you don't
19160# want to keep, you may remove or edit it.
19161#
19162# config.status only pays attention to the cache file if you give it
19163# the --recheck option to rerun configure.
19164#
19165# `ac_cv_env_foo' variables (set or unset) will be overridden when
19166# loading this file, other *unset* `ac_cv_foo' will be assigned the
19167# following values.
19168
19169_ACEOF
19170
19171# The following way of writing the cache mishandles newlines in values,
19172# but we know of no workaround that is simple, portable, and efficient.
19173# So, we kill variables containing newlines.
19174# Ultrix sh set writes to stderr and can't be redirected directly,
19175# and sets the high bit in the cache file unless we assign to the vars.
19176(
19177  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19178    eval ac_val=\$$ac_var
19179    case $ac_val in #(
19180    *${as_nl}*)
19181      case $ac_var in #(
19182      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19183$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19184      esac
19185      case $ac_var in #(
19186      _ | IFS | as_nl) ;; #(
19187      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19188      *) { eval $ac_var=; unset $ac_var;} ;;
19189      esac ;;
19190    esac
19191  done
19192
19193  (set) 2>&1 |
19194    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19195    *${as_nl}ac_space=\ *)
19196      # `set' does not quote correctly, so add quotes: double-quote
19197      # substitution turns \\\\ into \\, and sed turns \\ into \.
19198      sed -n \
19199	"s/'/'\\\\''/g;
19200	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19201      ;; #(
19202    *)
19203      # `set' quotes correctly as required by POSIX, so do not add quotes.
19204      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19205      ;;
19206    esac |
19207    sort
19208) |
19209  sed '
19210     /^ac_cv_env_/b end
19211     t clear
19212     :clear
19213     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19214     t end
19215     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19216     :end' >>confcache
19217if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19218  if test -w "$cache_file"; then
19219    if test "x$cache_file" != "x/dev/null"; then
19220      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19221$as_echo "$as_me: updating cache $cache_file" >&6;}
19222      if test ! -f "$cache_file" || test -h "$cache_file"; then
19223	cat confcache >"$cache_file"
19224      else
19225        case $cache_file in #(
19226        */* | ?:*)
19227	  mv -f confcache "$cache_file"$$ &&
19228	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19229        *)
19230	  mv -f confcache "$cache_file" ;;
19231	esac
19232      fi
19233    fi
19234  else
19235    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19236$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19237  fi
19238fi
19239rm -f confcache
19240
19241test "x$prefix" = xNONE && prefix=$ac_default_prefix
19242# Let make expand exec_prefix.
19243test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19244
19245# Transform confdefs.h into DEFS.
19246# Protect against shell expansion while executing Makefile rules.
19247# Protect against Makefile macro expansion.
19248#
19249# If the first sed substitution is executed (which looks for macros that
19250# take arguments), then branch to the quote section.  Otherwise,
19251# look for a macro that doesn't take arguments.
19252ac_script='
19253:mline
19254/\\$/{
19255 N
19256 s,\\\n,,
19257 b mline
19258}
19259t clear
19260:clear
19261s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
19262t quote
19263s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
19264t quote
19265b any
19266:quote
19267s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19268s/\[/\\&/g
19269s/\]/\\&/g
19270s/\$/$$/g
19271H
19272:any
19273${
19274	g
19275	s/^\n//
19276	s/\n/ /g
19277	p
19278}
19279'
19280DEFS=`sed -n "$ac_script" confdefs.h`
19281
19282
19283ac_libobjs=
19284ac_ltlibobjs=
19285U=
19286for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19287  # 1. Remove the extension, and $U if already installed.
19288  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19289  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19290  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19291  #    will be set to the directory where LIBOBJS objects are built.
19292  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19293  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19294done
19295LIBOBJS=$ac_libobjs
19296
19297LTLIBOBJS=$ac_ltlibobjs
19298
19299
19300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19301$as_echo_n "checking that generated files are newer than configure... " >&6; }
19302   if test -n "$am_sleep_pid"; then
19303     # Hide warnings about reused PIDs.
19304     wait $am_sleep_pid 2>/dev/null
19305   fi
19306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19307$as_echo "done" >&6; }
19308 if test -n "$EXEEXT"; then
19309  am__EXEEXT_TRUE=
19310  am__EXEEXT_FALSE='#'
19311else
19312  am__EXEEXT_TRUE='#'
19313  am__EXEEXT_FALSE=
19314fi
19315
19316if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19317  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19318Usually this means the macro was only invoked conditionally." "$LINENO" 5
19319fi
19320if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19321  as_fn_error $? "conditional \"AMDEP\" was never defined.
19322Usually this means the macro was only invoked conditionally." "$LINENO" 5
19323fi
19324if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19325  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19326Usually this means the macro was only invoked conditionally." "$LINENO" 5
19327fi
19328if test -z "${MINIMAL_TRUE}" && test -z "${MINIMAL_FALSE}"; then
19329  as_fn_error $? "conditional \"MINIMAL\" was never defined.
19330Usually this means the macro was only invoked conditionally." "$LINENO" 5
19331fi
19332if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
19333  as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
19334Usually this means the macro was only invoked conditionally." "$LINENO" 5
19335fi
19336if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19337  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19338Usually this means the macro was only invoked conditionally." "$LINENO" 5
19339fi
19340if test -z "${HAVE_AMD64_ASM_TRUE}" && test -z "${HAVE_AMD64_ASM_FALSE}"; then
19341  as_fn_error $? "conditional \"HAVE_AMD64_ASM\" was never defined.
19342Usually this means the macro was only invoked conditionally." "$LINENO" 5
19343fi
19344if test -z "${HAVE_AVX_ASM_TRUE}" && test -z "${HAVE_AVX_ASM_FALSE}"; then
19345  as_fn_error $? "conditional \"HAVE_AVX_ASM\" was never defined.
19346Usually this means the macro was only invoked conditionally." "$LINENO" 5
19347fi
19348if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
19349  as_fn_error $? "conditional \"HAVE_TI_MODE\" was never defined.
19350Usually this means the macro was only invoked conditionally." "$LINENO" 5
19351fi
19352if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
19353  as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
19354Usually this means the macro was only invoked conditionally." "$LINENO" 5
19355fi
19356if test -z "${NATIVECLIENT_TRUE}" && test -z "${NATIVECLIENT_FALSE}"; then
19357  as_fn_error $? "conditional \"NATIVECLIENT\" was never defined.
19358Usually this means the macro was only invoked conditionally." "$LINENO" 5
19359fi
19360if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
19361  as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
19362Usually this means the macro was only invoked conditionally." "$LINENO" 5
19363fi
19364
19365: "${CONFIG_STATUS=./config.status}"
19366ac_write_fail=0
19367ac_clean_files_save=$ac_clean_files
19368ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19369{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19370$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19371as_write_fail=0
19372cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19373#! $SHELL
19374# Generated by $as_me.
19375# Run this file to recreate the current configuration.
19376# Compiler output produced by configure, useful for debugging
19377# configure, is in config.log if it exists.
19378
19379debug=false
19380ac_cs_recheck=false
19381ac_cs_silent=false
19382
19383SHELL=\${CONFIG_SHELL-$SHELL}
19384export SHELL
19385_ASEOF
19386cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19387## -------------------- ##
19388## M4sh Initialization. ##
19389## -------------------- ##
19390
19391# Be more Bourne compatible
19392DUALCASE=1; export DUALCASE # for MKS sh
19393if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19394  emulate sh
19395  NULLCMD=:
19396  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19397  # is contrary to our usage.  Disable this feature.
19398  alias -g '${1+"$@"}'='"$@"'
19399  setopt NO_GLOB_SUBST
19400else
19401  case `(set -o) 2>/dev/null` in #(
19402  *posix*) :
19403    set -o posix ;; #(
19404  *) :
19405     ;;
19406esac
19407fi
19408
19409
19410as_nl='
19411'
19412export as_nl
19413# Printing a long string crashes Solaris 7 /usr/bin/printf.
19414as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19415as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19416as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19417# Prefer a ksh shell builtin over an external printf program on Solaris,
19418# but without wasting forks for bash or zsh.
19419if test -z "$BASH_VERSION$ZSH_VERSION" \
19420    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19421  as_echo='print -r --'
19422  as_echo_n='print -rn --'
19423elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19424  as_echo='printf %s\n'
19425  as_echo_n='printf %s'
19426else
19427  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19428    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19429    as_echo_n='/usr/ucb/echo -n'
19430  else
19431    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19432    as_echo_n_body='eval
19433      arg=$1;
19434      case $arg in #(
19435      *"$as_nl"*)
19436	expr "X$arg" : "X\\(.*\\)$as_nl";
19437	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19438      esac;
19439      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19440    '
19441    export as_echo_n_body
19442    as_echo_n='sh -c $as_echo_n_body as_echo'
19443  fi
19444  export as_echo_body
19445  as_echo='sh -c $as_echo_body as_echo'
19446fi
19447
19448# The user is always right.
19449if test "${PATH_SEPARATOR+set}" != set; then
19450  PATH_SEPARATOR=:
19451  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19452    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19453      PATH_SEPARATOR=';'
19454  }
19455fi
19456
19457
19458# IFS
19459# We need space, tab and new line, in precisely that order.  Quoting is
19460# there to prevent editors from complaining about space-tab.
19461# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19462# splitting by setting IFS to empty value.)
19463IFS=" ""	$as_nl"
19464
19465# Find who we are.  Look in the path if we contain no directory separator.
19466as_myself=
19467case $0 in #((
19468  *[\\/]* ) as_myself=$0 ;;
19469  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19470for as_dir in $PATH
19471do
19472  IFS=$as_save_IFS
19473  test -z "$as_dir" && as_dir=.
19474    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19475  done
19476IFS=$as_save_IFS
19477
19478     ;;
19479esac
19480# We did not find ourselves, most probably we were run as `sh COMMAND'
19481# in which case we are not to be found in the path.
19482if test "x$as_myself" = x; then
19483  as_myself=$0
19484fi
19485if test ! -f "$as_myself"; then
19486  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19487  exit 1
19488fi
19489
19490# Unset variables that we do not need and which cause bugs (e.g. in
19491# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19492# suppresses any "Segmentation fault" message there.  '((' could
19493# trigger a bug in pdksh 5.2.14.
19494for as_var in BASH_ENV ENV MAIL MAILPATH
19495do eval test x\${$as_var+set} = xset \
19496  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19497done
19498PS1='$ '
19499PS2='> '
19500PS4='+ '
19501
19502# NLS nuisances.
19503LC_ALL=C
19504export LC_ALL
19505LANGUAGE=C
19506export LANGUAGE
19507
19508# CDPATH.
19509(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19510
19511
19512# as_fn_error STATUS ERROR [LINENO LOG_FD]
19513# ----------------------------------------
19514# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19515# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19516# script with STATUS, using 1 if that was 0.
19517as_fn_error ()
19518{
19519  as_status=$1; test $as_status -eq 0 && as_status=1
19520  if test "$4"; then
19521    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19522    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19523  fi
19524  $as_echo "$as_me: error: $2" >&2
19525  as_fn_exit $as_status
19526} # as_fn_error
19527
19528
19529# as_fn_set_status STATUS
19530# -----------------------
19531# Set $? to STATUS, without forking.
19532as_fn_set_status ()
19533{
19534  return $1
19535} # as_fn_set_status
19536
19537# as_fn_exit STATUS
19538# -----------------
19539# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19540as_fn_exit ()
19541{
19542  set +e
19543  as_fn_set_status $1
19544  exit $1
19545} # as_fn_exit
19546
19547# as_fn_unset VAR
19548# ---------------
19549# Portably unset VAR.
19550as_fn_unset ()
19551{
19552  { eval $1=; unset $1;}
19553}
19554as_unset=as_fn_unset
19555# as_fn_append VAR VALUE
19556# ----------------------
19557# Append the text in VALUE to the end of the definition contained in VAR. Take
19558# advantage of any shell optimizations that allow amortized linear growth over
19559# repeated appends, instead of the typical quadratic growth present in naive
19560# implementations.
19561if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19562  eval 'as_fn_append ()
19563  {
19564    eval $1+=\$2
19565  }'
19566else
19567  as_fn_append ()
19568  {
19569    eval $1=\$$1\$2
19570  }
19571fi # as_fn_append
19572
19573# as_fn_arith ARG...
19574# ------------------
19575# Perform arithmetic evaluation on the ARGs, and store the result in the
19576# global $as_val. Take advantage of shells that can avoid forks. The arguments
19577# must be portable across $(()) and expr.
19578if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19579  eval 'as_fn_arith ()
19580  {
19581    as_val=$(( $* ))
19582  }'
19583else
19584  as_fn_arith ()
19585  {
19586    as_val=`expr "$@" || test $? -eq 1`
19587  }
19588fi # as_fn_arith
19589
19590
19591if expr a : '\(a\)' >/dev/null 2>&1 &&
19592   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19593  as_expr=expr
19594else
19595  as_expr=false
19596fi
19597
19598if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19599  as_basename=basename
19600else
19601  as_basename=false
19602fi
19603
19604if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19605  as_dirname=dirname
19606else
19607  as_dirname=false
19608fi
19609
19610as_me=`$as_basename -- "$0" ||
19611$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19612	 X"$0" : 'X\(//\)$' \| \
19613	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19614$as_echo X/"$0" |
19615    sed '/^.*\/\([^/][^/]*\)\/*$/{
19616	    s//\1/
19617	    q
19618	  }
19619	  /^X\/\(\/\/\)$/{
19620	    s//\1/
19621	    q
19622	  }
19623	  /^X\/\(\/\).*/{
19624	    s//\1/
19625	    q
19626	  }
19627	  s/.*/./; q'`
19628
19629# Avoid depending upon Character Ranges.
19630as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19631as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19632as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19633as_cr_digits='0123456789'
19634as_cr_alnum=$as_cr_Letters$as_cr_digits
19635
19636ECHO_C= ECHO_N= ECHO_T=
19637case `echo -n x` in #(((((
19638-n*)
19639  case `echo 'xy\c'` in
19640  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19641  xy)  ECHO_C='\c';;
19642  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19643       ECHO_T='	';;
19644  esac;;
19645*)
19646  ECHO_N='-n';;
19647esac
19648
19649rm -f conf$$ conf$$.exe conf$$.file
19650if test -d conf$$.dir; then
19651  rm -f conf$$.dir/conf$$.file
19652else
19653  rm -f conf$$.dir
19654  mkdir conf$$.dir 2>/dev/null
19655fi
19656if (echo >conf$$.file) 2>/dev/null; then
19657  if ln -s conf$$.file conf$$ 2>/dev/null; then
19658    as_ln_s='ln -s'
19659    # ... but there are two gotchas:
19660    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19661    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19662    # In both cases, we have to default to `cp -pR'.
19663    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19664      as_ln_s='cp -pR'
19665  elif ln conf$$.file conf$$ 2>/dev/null; then
19666    as_ln_s=ln
19667  else
19668    as_ln_s='cp -pR'
19669  fi
19670else
19671  as_ln_s='cp -pR'
19672fi
19673rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19674rmdir conf$$.dir 2>/dev/null
19675
19676
19677# as_fn_mkdir_p
19678# -------------
19679# Create "$as_dir" as a directory, including parents if necessary.
19680as_fn_mkdir_p ()
19681{
19682
19683  case $as_dir in #(
19684  -*) as_dir=./$as_dir;;
19685  esac
19686  test -d "$as_dir" || eval $as_mkdir_p || {
19687    as_dirs=
19688    while :; do
19689      case $as_dir in #(
19690      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19691      *) as_qdir=$as_dir;;
19692      esac
19693      as_dirs="'$as_qdir' $as_dirs"
19694      as_dir=`$as_dirname -- "$as_dir" ||
19695$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19696	 X"$as_dir" : 'X\(//\)[^/]' \| \
19697	 X"$as_dir" : 'X\(//\)$' \| \
19698	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19699$as_echo X"$as_dir" |
19700    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19701	    s//\1/
19702	    q
19703	  }
19704	  /^X\(\/\/\)[^/].*/{
19705	    s//\1/
19706	    q
19707	  }
19708	  /^X\(\/\/\)$/{
19709	    s//\1/
19710	    q
19711	  }
19712	  /^X\(\/\).*/{
19713	    s//\1/
19714	    q
19715	  }
19716	  s/.*/./; q'`
19717      test -d "$as_dir" && break
19718    done
19719    test -z "$as_dirs" || eval "mkdir $as_dirs"
19720  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19721
19722
19723} # as_fn_mkdir_p
19724if mkdir -p . 2>/dev/null; then
19725  as_mkdir_p='mkdir -p "$as_dir"'
19726else
19727  test -d ./-p && rmdir ./-p
19728  as_mkdir_p=false
19729fi
19730
19731
19732# as_fn_executable_p FILE
19733# -----------------------
19734# Test if FILE is an executable regular file.
19735as_fn_executable_p ()
19736{
19737  test -f "$1" && test -x "$1"
19738} # as_fn_executable_p
19739as_test_x='test -x'
19740as_executable_p=as_fn_executable_p
19741
19742# Sed expression to map a string onto a valid CPP name.
19743as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19744
19745# Sed expression to map a string onto a valid variable name.
19746as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19747
19748
19749exec 6>&1
19750## ----------------------------------- ##
19751## Main body of $CONFIG_STATUS script. ##
19752## ----------------------------------- ##
19753_ASEOF
19754test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19755
19756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19757# Save the log message, to keep $0 and so on meaningful, and to
19758# report actual input values of CONFIG_FILES etc. instead of their
19759# values after options handling.
19760ac_log="
19761This file was extended by libsodium $as_me 1.0.16, which was
19762generated by GNU Autoconf 2.69.  Invocation command line was
19763
19764  CONFIG_FILES    = $CONFIG_FILES
19765  CONFIG_HEADERS  = $CONFIG_HEADERS
19766  CONFIG_LINKS    = $CONFIG_LINKS
19767  CONFIG_COMMANDS = $CONFIG_COMMANDS
19768  $ $0 $@
19769
19770on `(hostname || uname -n) 2>/dev/null | sed 1q`
19771"
19772
19773_ACEOF
19774
19775case $ac_config_files in *"
19776"*) set x $ac_config_files; shift; ac_config_files=$*;;
19777esac
19778
19779
19780
19781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19782# Files that config.status was made for.
19783config_files="$ac_config_files"
19784config_commands="$ac_config_commands"
19785
19786_ACEOF
19787
19788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19789ac_cs_usage="\
19790\`$as_me' instantiates files and other configuration actions
19791from templates according to the current configuration.  Unless the files
19792and actions are specified as TAGs, all are instantiated by default.
19793
19794Usage: $0 [OPTION]... [TAG]...
19795
19796  -h, --help       print this help, then exit
19797  -V, --version    print version number and configuration settings, then exit
19798      --config     print configuration, then exit
19799  -q, --quiet, --silent
19800                   do not print progress messages
19801  -d, --debug      don't remove temporary files
19802      --recheck    update $as_me by reconfiguring in the same conditions
19803      --file=FILE[:TEMPLATE]
19804                   instantiate the configuration file FILE
19805
19806Configuration files:
19807$config_files
19808
19809Configuration commands:
19810$config_commands
19811
19812Report bugs to <https://github.com/jedisct1/libsodium/issues>.
19813libsodium home page: <https://github.com/jedisct1/libsodium>."
19814
19815_ACEOF
19816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19817ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19818ac_cs_version="\\
19819libsodium config.status 1.0.16
19820configured by $0, generated by GNU Autoconf 2.69,
19821  with options \\"\$ac_cs_config\\"
19822
19823Copyright (C) 2012 Free Software Foundation, Inc.
19824This config.status script is free software; the Free Software Foundation
19825gives unlimited permission to copy, distribute and modify it."
19826
19827ac_pwd='$ac_pwd'
19828srcdir='$srcdir'
19829INSTALL='$INSTALL'
19830MKDIR_P='$MKDIR_P'
19831AWK='$AWK'
19832test -n "\$AWK" || AWK=awk
19833_ACEOF
19834
19835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19836# The default lists apply if the user does not specify any file.
19837ac_need_defaults=:
19838while test $# != 0
19839do
19840  case $1 in
19841  --*=?*)
19842    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19843    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19844    ac_shift=:
19845    ;;
19846  --*=)
19847    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19848    ac_optarg=
19849    ac_shift=:
19850    ;;
19851  *)
19852    ac_option=$1
19853    ac_optarg=$2
19854    ac_shift=shift
19855    ;;
19856  esac
19857
19858  case $ac_option in
19859  # Handling of the options.
19860  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19861    ac_cs_recheck=: ;;
19862  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19863    $as_echo "$ac_cs_version"; exit ;;
19864  --config | --confi | --conf | --con | --co | --c )
19865    $as_echo "$ac_cs_config"; exit ;;
19866  --debug | --debu | --deb | --de | --d | -d )
19867    debug=: ;;
19868  --file | --fil | --fi | --f )
19869    $ac_shift
19870    case $ac_optarg in
19871    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19872    '') as_fn_error $? "missing file argument" ;;
19873    esac
19874    as_fn_append CONFIG_FILES " '$ac_optarg'"
19875    ac_need_defaults=false;;
19876  --he | --h |  --help | --hel | -h )
19877    $as_echo "$ac_cs_usage"; exit ;;
19878  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19879  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19880    ac_cs_silent=: ;;
19881
19882  # This is an error.
19883  -*) as_fn_error $? "unrecognized option: \`$1'
19884Try \`$0 --help' for more information." ;;
19885
19886  *) as_fn_append ac_config_targets " $1"
19887     ac_need_defaults=false ;;
19888
19889  esac
19890  shift
19891done
19892
19893ac_configure_extra_args=
19894
19895if $ac_cs_silent; then
19896  exec 6>/dev/null
19897  ac_configure_extra_args="$ac_configure_extra_args --silent"
19898fi
19899
19900_ACEOF
19901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19902if \$ac_cs_recheck; then
19903  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19904  shift
19905  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19906  CONFIG_SHELL='$SHELL'
19907  export CONFIG_SHELL
19908  exec "\$@"
19909fi
19910
19911_ACEOF
19912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19913exec 5>>config.log
19914{
19915  echo
19916  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19917## Running $as_me. ##
19918_ASBOX
19919  $as_echo "$ac_log"
19920} >&5
19921
19922_ACEOF
19923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19924#
19925# INIT-COMMANDS
19926#
19927AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19928
19929
19930# The HP-UX ksh and POSIX shell print the target directory to stdout
19931# if CDPATH is set.
19932(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19933
19934sed_quote_subst='$sed_quote_subst'
19935double_quote_subst='$double_quote_subst'
19936delay_variable_subst='$delay_variable_subst'
19937macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19938macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19939enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19940enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19941pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19942enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19943shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19944SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19945ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19946PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19947host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19948host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19949host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19950build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19951build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19952build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19953SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19954Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19955GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19956EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19957FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19958LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19959NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19960LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19961max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19962ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19963exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19964lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19965lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19966lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19967lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19968lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19969reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19970reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19971OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19972deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19973file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19974file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19975want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19976DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19977sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19978AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19979AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19980archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19981STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19982RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19983old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19984old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19985old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19986lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19987CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19988CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19989compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19990GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19991lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19992lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19993lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19994lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19995lt_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"`'
19996lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19997nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19998lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19999lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20000objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20001MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20002lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20003lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20004lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20005lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20006lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20007need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20008MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20009DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20010NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20011LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20012OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20013OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20014libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20015shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20016extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20017archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20018enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20019export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20020whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20021compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20022old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20023old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20024archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20025archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20026module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20027module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20028with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20029allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20030no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20031hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20032hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20033hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20034hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20035hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20036hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20037hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20038inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20039link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20040always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20041export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20042exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20043include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20044prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20045postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20046file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20047variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20048need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20049need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20050version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20051runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20052shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20053shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20054libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20055library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20056soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20057install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20058postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20059postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20060finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20061finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20062hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20063sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20064configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20065configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20066hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20067enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20068enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20069enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20070old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20071striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20072AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20073
20074LTCC='$LTCC'
20075LTCFLAGS='$LTCFLAGS'
20076compiler='$compiler_DEFAULT'
20077
20078# A function that is used when there is no print builtin or printf.
20079func_fallback_echo ()
20080{
20081  eval 'cat <<_LTECHO_EOF
20082\$1
20083_LTECHO_EOF'
20084}
20085
20086# Quote evaled strings.
20087for var in SHELL \
20088ECHO \
20089PATH_SEPARATOR \
20090SED \
20091GREP \
20092EGREP \
20093FGREP \
20094LD \
20095NM \
20096LN_S \
20097lt_SP2NL \
20098lt_NL2SP \
20099reload_flag \
20100OBJDUMP \
20101deplibs_check_method \
20102file_magic_cmd \
20103file_magic_glob \
20104want_nocaseglob \
20105DLLTOOL \
20106sharedlib_from_linklib_cmd \
20107AR \
20108AR_FLAGS \
20109archiver_list_spec \
20110STRIP \
20111RANLIB \
20112CC \
20113CFLAGS \
20114compiler \
20115lt_cv_sys_global_symbol_pipe \
20116lt_cv_sys_global_symbol_to_cdecl \
20117lt_cv_sys_global_symbol_to_import \
20118lt_cv_sys_global_symbol_to_c_name_address \
20119lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20120lt_cv_nm_interface \
20121nm_file_list_spec \
20122lt_cv_truncate_bin \
20123lt_prog_compiler_no_builtin_flag \
20124lt_prog_compiler_pic \
20125lt_prog_compiler_wl \
20126lt_prog_compiler_static \
20127lt_cv_prog_compiler_c_o \
20128need_locks \
20129MANIFEST_TOOL \
20130DSYMUTIL \
20131NMEDIT \
20132LIPO \
20133OTOOL \
20134OTOOL64 \
20135shrext_cmds \
20136export_dynamic_flag_spec \
20137whole_archive_flag_spec \
20138compiler_needs_object \
20139with_gnu_ld \
20140allow_undefined_flag \
20141no_undefined_flag \
20142hardcode_libdir_flag_spec \
20143hardcode_libdir_separator \
20144exclude_expsyms \
20145include_expsyms \
20146file_list_spec \
20147variables_saved_for_relink \
20148libname_spec \
20149library_names_spec \
20150soname_spec \
20151install_override_mode \
20152finish_eval \
20153old_striplib \
20154striplib \
20155AS; do
20156    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20157    *[\\\\\\\`\\"\\\$]*)
20158      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20159      ;;
20160    *)
20161      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20162      ;;
20163    esac
20164done
20165
20166# Double-quote double-evaled strings.
20167for var in reload_cmds \
20168old_postinstall_cmds \
20169old_postuninstall_cmds \
20170old_archive_cmds \
20171extract_expsyms_cmds \
20172old_archive_from_new_cmds \
20173old_archive_from_expsyms_cmds \
20174archive_cmds \
20175archive_expsym_cmds \
20176module_cmds \
20177module_expsym_cmds \
20178export_symbols_cmds \
20179prelink_cmds \
20180postlink_cmds \
20181postinstall_cmds \
20182postuninstall_cmds \
20183finish_cmds \
20184sys_lib_search_path_spec \
20185configure_time_dlsearch_path \
20186configure_time_lt_sys_library_path; do
20187    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20188    *[\\\\\\\`\\"\\\$]*)
20189      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20190      ;;
20191    *)
20192      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20193      ;;
20194    esac
20195done
20196
20197ac_aux_dir='$ac_aux_dir'
20198
20199# See if we are running on zsh, and set the options that allow our
20200# commands through without removal of \ escapes INIT.
20201if test -n "\${ZSH_VERSION+set}"; then
20202   setopt NO_GLOB_SUBST
20203fi
20204
20205
20206    PACKAGE='$PACKAGE'
20207    VERSION='$VERSION'
20208    RM='$RM'
20209    ofile='$ofile'
20210
20211
20212
20213
20214_ACEOF
20215
20216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20217
20218# Handling of arguments.
20219for ac_config_target in $ac_config_targets
20220do
20221  case $ac_config_target in
20222    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20223    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20224    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20225    "builds/Makefile") CONFIG_FILES="$CONFIG_FILES builds/Makefile" ;;
20226    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
20227    "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
20228    "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
20229    "libsodium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libsodium-uninstalled.pc" ;;
20230    "msvc-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES msvc-scripts/Makefile" ;;
20231    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20232    "src/libsodium/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/Makefile" ;;
20233    "src/libsodium/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/Makefile" ;;
20234    "src/libsodium/include/sodium/version.h") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/sodium/version.h" ;;
20235    "test/default/Makefile") CONFIG_FILES="$CONFIG_FILES test/default/Makefile" ;;
20236    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20237
20238  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20239  esac
20240done
20241
20242
20243# If the user did not use the arguments to specify the items to instantiate,
20244# then the envvar interface is used.  Set only those that are not.
20245# We use the long form for the default assignment because of an extremely
20246# bizarre bug on SunOS 4.1.3.
20247if $ac_need_defaults; then
20248  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20249  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20250fi
20251
20252# Have a temporary directory for convenience.  Make it in the build tree
20253# simply because there is no reason against having it here, and in addition,
20254# creating and moving files from /tmp can sometimes cause problems.
20255# Hook for its removal unless debugging.
20256# Note that there is a small window in which the directory will not be cleaned:
20257# after its creation but before its name has been assigned to `$tmp'.
20258$debug ||
20259{
20260  tmp= ac_tmp=
20261  trap 'exit_status=$?
20262  : "${ac_tmp:=$tmp}"
20263  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20264' 0
20265  trap 'as_fn_exit 1' 1 2 13 15
20266}
20267# Create a (secure) tmp directory for tmp files.
20268
20269{
20270  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20271  test -d "$tmp"
20272}  ||
20273{
20274  tmp=./conf$$-$RANDOM
20275  (umask 077 && mkdir "$tmp")
20276} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20277ac_tmp=$tmp
20278
20279# Set up the scripts for CONFIG_FILES section.
20280# No need to generate them if there are no CONFIG_FILES.
20281# This happens for instance with `./config.status config.h'.
20282if test -n "$CONFIG_FILES"; then
20283
20284
20285ac_cr=`echo X | tr X '\015'`
20286# On cygwin, bash can eat \r inside `` if the user requested igncr.
20287# But we know of no other shell where ac_cr would be empty at this
20288# point, so we can use a bashism as a fallback.
20289if test "x$ac_cr" = x; then
20290  eval ac_cr=\$\'\\r\'
20291fi
20292ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20293if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20294  ac_cs_awk_cr='\\r'
20295else
20296  ac_cs_awk_cr=$ac_cr
20297fi
20298
20299echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20300_ACEOF
20301
20302
20303{
20304  echo "cat >conf$$subs.awk <<_ACEOF" &&
20305  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20306  echo "_ACEOF"
20307} >conf$$subs.sh ||
20308  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20309ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20310ac_delim='%!_!# '
20311for ac_last_try in false false false false false :; do
20312  . ./conf$$subs.sh ||
20313    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20314
20315  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20316  if test $ac_delim_n = $ac_delim_num; then
20317    break
20318  elif $ac_last_try; then
20319    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20320  else
20321    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20322  fi
20323done
20324rm -f conf$$subs.sh
20325
20326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20327cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20328_ACEOF
20329sed -n '
20330h
20331s/^/S["/; s/!.*/"]=/
20332p
20333g
20334s/^[^!]*!//
20335:repl
20336t repl
20337s/'"$ac_delim"'$//
20338t delim
20339:nl
20340h
20341s/\(.\{148\}\)..*/\1/
20342t more1
20343s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20344p
20345n
20346b repl
20347:more1
20348s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20349p
20350g
20351s/.\{148\}//
20352t nl
20353:delim
20354h
20355s/\(.\{148\}\)..*/\1/
20356t more2
20357s/["\\]/\\&/g; s/^/"/; s/$/"/
20358p
20359b
20360:more2
20361s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20362p
20363g
20364s/.\{148\}//
20365t delim
20366' <conf$$subs.awk | sed '
20367/^[^""]/{
20368  N
20369  s/\n//
20370}
20371' >>$CONFIG_STATUS || ac_write_fail=1
20372rm -f conf$$subs.awk
20373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20374_ACAWK
20375cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20376  for (key in S) S_is_set[key] = 1
20377  FS = ""
20378
20379}
20380{
20381  line = $ 0
20382  nfields = split(line, field, "@")
20383  substed = 0
20384  len = length(field[1])
20385  for (i = 2; i < nfields; i++) {
20386    key = field[i]
20387    keylen = length(key)
20388    if (S_is_set[key]) {
20389      value = S[key]
20390      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20391      len += length(value) + length(field[++i])
20392      substed = 1
20393    } else
20394      len += 1 + keylen
20395  }
20396
20397  print line
20398}
20399
20400_ACAWK
20401_ACEOF
20402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20404  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20405else
20406  cat
20407fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20408  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20409_ACEOF
20410
20411# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20412# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20413# trailing colons and then remove the whole line if VPATH becomes empty
20414# (actually we leave an empty line to preserve line numbers).
20415if test "x$srcdir" = x.; then
20416  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20417h
20418s///
20419s/^/:/
20420s/[	 ]*$/:/
20421s/:\$(srcdir):/:/g
20422s/:\${srcdir}:/:/g
20423s/:@srcdir@:/:/g
20424s/^:*//
20425s/:*$//
20426x
20427s/\(=[	 ]*\).*/\1/
20428G
20429s/\n//
20430s/^[^=]*=[	 ]*$//
20431}'
20432fi
20433
20434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20435fi # test -n "$CONFIG_FILES"
20436
20437
20438eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
20439shift
20440for ac_tag
20441do
20442  case $ac_tag in
20443  :[FHLC]) ac_mode=$ac_tag; continue;;
20444  esac
20445  case $ac_mode$ac_tag in
20446  :[FHL]*:*);;
20447  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20448  :[FH]-) ac_tag=-:-;;
20449  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20450  esac
20451  ac_save_IFS=$IFS
20452  IFS=:
20453  set x $ac_tag
20454  IFS=$ac_save_IFS
20455  shift
20456  ac_file=$1
20457  shift
20458
20459  case $ac_mode in
20460  :L) ac_source=$1;;
20461  :[FH])
20462    ac_file_inputs=
20463    for ac_f
20464    do
20465      case $ac_f in
20466      -) ac_f="$ac_tmp/stdin";;
20467      *) # Look for the file first in the build tree, then in the source tree
20468	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20469	 # because $ac_f cannot contain `:'.
20470	 test -f "$ac_f" ||
20471	   case $ac_f in
20472	   [\\/$]*) false;;
20473	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20474	   esac ||
20475	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20476      esac
20477      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20478      as_fn_append ac_file_inputs " '$ac_f'"
20479    done
20480
20481    # Let's still pretend it is `configure' which instantiates (i.e., don't
20482    # use $as_me), people would be surprised to read:
20483    #    /* config.h.  Generated by config.status.  */
20484    configure_input='Generated from '`
20485	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20486	`' by configure.'
20487    if test x"$ac_file" != x-; then
20488      configure_input="$ac_file.  $configure_input"
20489      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20490$as_echo "$as_me: creating $ac_file" >&6;}
20491    fi
20492    # Neutralize special characters interpreted by sed in replacement strings.
20493    case $configure_input in #(
20494    *\&* | *\|* | *\\* )
20495       ac_sed_conf_input=`$as_echo "$configure_input" |
20496       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20497    *) ac_sed_conf_input=$configure_input;;
20498    esac
20499
20500    case $ac_tag in
20501    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20502      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20503    esac
20504    ;;
20505  esac
20506
20507  ac_dir=`$as_dirname -- "$ac_file" ||
20508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20509	 X"$ac_file" : 'X\(//\)[^/]' \| \
20510	 X"$ac_file" : 'X\(//\)$' \| \
20511	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20512$as_echo X"$ac_file" |
20513    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20514	    s//\1/
20515	    q
20516	  }
20517	  /^X\(\/\/\)[^/].*/{
20518	    s//\1/
20519	    q
20520	  }
20521	  /^X\(\/\/\)$/{
20522	    s//\1/
20523	    q
20524	  }
20525	  /^X\(\/\).*/{
20526	    s//\1/
20527	    q
20528	  }
20529	  s/.*/./; q'`
20530  as_dir="$ac_dir"; as_fn_mkdir_p
20531  ac_builddir=.
20532
20533case "$ac_dir" in
20534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20535*)
20536  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20537  # A ".." for each directory in $ac_dir_suffix.
20538  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20539  case $ac_top_builddir_sub in
20540  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20541  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20542  esac ;;
20543esac
20544ac_abs_top_builddir=$ac_pwd
20545ac_abs_builddir=$ac_pwd$ac_dir_suffix
20546# for backward compatibility:
20547ac_top_builddir=$ac_top_build_prefix
20548
20549case $srcdir in
20550  .)  # We are building in place.
20551    ac_srcdir=.
20552    ac_top_srcdir=$ac_top_builddir_sub
20553    ac_abs_top_srcdir=$ac_pwd ;;
20554  [\\/]* | ?:[\\/]* )  # Absolute name.
20555    ac_srcdir=$srcdir$ac_dir_suffix;
20556    ac_top_srcdir=$srcdir
20557    ac_abs_top_srcdir=$srcdir ;;
20558  *) # Relative name.
20559    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20560    ac_top_srcdir=$ac_top_build_prefix$srcdir
20561    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20562esac
20563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20564
20565
20566  case $ac_mode in
20567  :F)
20568  #
20569  # CONFIG_FILE
20570  #
20571
20572  case $INSTALL in
20573  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20574  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20575  esac
20576  ac_MKDIR_P=$MKDIR_P
20577  case $MKDIR_P in
20578  [\\/$]* | ?:[\\/]* ) ;;
20579  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20580  esac
20581_ACEOF
20582
20583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20584# If the template does not know about datarootdir, expand it.
20585# FIXME: This hack should be removed a few years after 2.60.
20586ac_datarootdir_hack=; ac_datarootdir_seen=
20587ac_sed_dataroot='
20588/datarootdir/ {
20589  p
20590  q
20591}
20592/@datadir@/p
20593/@docdir@/p
20594/@infodir@/p
20595/@localedir@/p
20596/@mandir@/p'
20597case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20598*datarootdir*) ac_datarootdir_seen=yes;;
20599*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20600  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20601$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20602_ACEOF
20603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20604  ac_datarootdir_hack='
20605  s&@datadir@&$datadir&g
20606  s&@docdir@&$docdir&g
20607  s&@infodir@&$infodir&g
20608  s&@localedir@&$localedir&g
20609  s&@mandir@&$mandir&g
20610  s&\\\${datarootdir}&$datarootdir&g' ;;
20611esac
20612_ACEOF
20613
20614# Neutralize VPATH when `$srcdir' = `.'.
20615# Shell code in configure.ac might set extrasub.
20616# FIXME: do we really want to maintain this feature?
20617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20618ac_sed_extra="$ac_vpsub
20619$extrasub
20620_ACEOF
20621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20622:t
20623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20624s|@configure_input@|$ac_sed_conf_input|;t t
20625s&@top_builddir@&$ac_top_builddir_sub&;t t
20626s&@top_build_prefix@&$ac_top_build_prefix&;t t
20627s&@srcdir@&$ac_srcdir&;t t
20628s&@abs_srcdir@&$ac_abs_srcdir&;t t
20629s&@top_srcdir@&$ac_top_srcdir&;t t
20630s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20631s&@builddir@&$ac_builddir&;t t
20632s&@abs_builddir@&$ac_abs_builddir&;t t
20633s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20634s&@INSTALL@&$ac_INSTALL&;t t
20635s&@MKDIR_P@&$ac_MKDIR_P&;t t
20636$ac_datarootdir_hack
20637"
20638eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20639  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20640
20641test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20642  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20643  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20644      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20645  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20646which seems to be undefined.  Please make sure it is defined" >&5
20647$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20648which seems to be undefined.  Please make sure it is defined" >&2;}
20649
20650  rm -f "$ac_tmp/stdin"
20651  case $ac_file in
20652  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20653  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20654  esac \
20655  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20656 ;;
20657
20658
20659  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20660$as_echo "$as_me: executing $ac_file commands" >&6;}
20661 ;;
20662  esac
20663
20664
20665  case $ac_file$ac_mode in
20666    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20667  # Older Autoconf quotes --file arguments for eval, but not when files
20668  # are listed without --file.  Let's play safe and only enable the eval
20669  # if we detect the quoting.
20670  case $CONFIG_FILES in
20671  *\'*) eval set x "$CONFIG_FILES" ;;
20672  *)   set x $CONFIG_FILES ;;
20673  esac
20674  shift
20675  for mf
20676  do
20677    # Strip MF so we end up with the name of the file.
20678    mf=`echo "$mf" | sed -e 's/:.*$//'`
20679    # Check whether this is an Automake generated Makefile or not.
20680    # We used to match only the files named 'Makefile.in', but
20681    # some people rename them; so instead we look at the file content.
20682    # Grep'ing the first line is not enough: some people post-process
20683    # each Makefile.in and add a new line on top of each file to say so.
20684    # Grep'ing the whole file is not good either: AIX grep has a line
20685    # limit of 2048, but all sed's we know have understand at least 4000.
20686    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20687      dirpart=`$as_dirname -- "$mf" ||
20688$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20689	 X"$mf" : 'X\(//\)[^/]' \| \
20690	 X"$mf" : 'X\(//\)$' \| \
20691	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20692$as_echo X"$mf" |
20693    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20694	    s//\1/
20695	    q
20696	  }
20697	  /^X\(\/\/\)[^/].*/{
20698	    s//\1/
20699	    q
20700	  }
20701	  /^X\(\/\/\)$/{
20702	    s//\1/
20703	    q
20704	  }
20705	  /^X\(\/\).*/{
20706	    s//\1/
20707	    q
20708	  }
20709	  s/.*/./; q'`
20710    else
20711      continue
20712    fi
20713    # Extract the definition of DEPDIR, am__include, and am__quote
20714    # from the Makefile without running 'make'.
20715    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20716    test -z "$DEPDIR" && continue
20717    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20718    test -z "$am__include" && continue
20719    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20720    # Find all dependency output files, they are included files with
20721    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20722    # simplest approach to changing $(DEPDIR) to its actual value in the
20723    # expansion.
20724    for file in `sed -n "
20725      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20726	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20727      # Make sure the directory exists.
20728      test -f "$dirpart/$file" && continue
20729      fdir=`$as_dirname -- "$file" ||
20730$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20731	 X"$file" : 'X\(//\)[^/]' \| \
20732	 X"$file" : 'X\(//\)$' \| \
20733	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20734$as_echo X"$file" |
20735    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20736	    s//\1/
20737	    q
20738	  }
20739	  /^X\(\/\/\)[^/].*/{
20740	    s//\1/
20741	    q
20742	  }
20743	  /^X\(\/\/\)$/{
20744	    s//\1/
20745	    q
20746	  }
20747	  /^X\(\/\).*/{
20748	    s//\1/
20749	    q
20750	  }
20751	  s/.*/./; q'`
20752      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20753      # echo "creating $dirpart/$file"
20754      echo '# dummy' > "$dirpart/$file"
20755    done
20756  done
20757}
20758 ;;
20759    "libtool":C)
20760
20761    # See if we are running on zsh, and set the options that allow our
20762    # commands through without removal of \ escapes.
20763    if test -n "${ZSH_VERSION+set}"; then
20764      setopt NO_GLOB_SUBST
20765    fi
20766
20767    cfgfile=${ofile}T
20768    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20769    $RM "$cfgfile"
20770
20771    cat <<_LT_EOF >> "$cfgfile"
20772#! $SHELL
20773# Generated automatically by $as_me ($PACKAGE) $VERSION
20774# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20775# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20776
20777# Provide generalized library-building support services.
20778# Written by Gordon Matzigkeit, 1996
20779
20780# Copyright (C) 2014 Free Software Foundation, Inc.
20781# This is free software; see the source for copying conditions.  There is NO
20782# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20783
20784# GNU Libtool is free software; you can redistribute it and/or modify
20785# it under the terms of the GNU General Public License as published by
20786# the Free Software Foundation; either version 2 of of the License, or
20787# (at your option) any later version.
20788#
20789# As a special exception to the GNU General Public License, if you
20790# distribute this file as part of a program or library that is built
20791# using GNU Libtool, you may include this file under the  same
20792# distribution terms that you use for the rest of that program.
20793#
20794# GNU Libtool is distributed in the hope that it will be useful, but
20795# WITHOUT ANY WARRANTY; without even the implied warranty of
20796# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20797# GNU General Public License for more details.
20798#
20799# You should have received a copy of the GNU General Public License
20800# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20801
20802
20803# The names of the tagged configurations supported by this script.
20804available_tags=''
20805
20806# Configured defaults for sys_lib_dlsearch_path munging.
20807: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20808
20809# ### BEGIN LIBTOOL CONFIG
20810
20811# Which release of libtool.m4 was used?
20812macro_version=$macro_version
20813macro_revision=$macro_revision
20814
20815# Whether or not to build shared libraries.
20816build_libtool_libs=$enable_shared
20817
20818# Whether or not to build static libraries.
20819build_old_libs=$enable_static
20820
20821# What type of objects to build.
20822pic_mode=$pic_mode
20823
20824# Whether or not to optimize for fast installation.
20825fast_install=$enable_fast_install
20826
20827# Shared archive member basename,for filename based shared library versioning on AIX.
20828shared_archive_member_spec=$shared_archive_member_spec
20829
20830# Shell to use when invoking shell scripts.
20831SHELL=$lt_SHELL
20832
20833# An echo program that protects backslashes.
20834ECHO=$lt_ECHO
20835
20836# The PATH separator for the build system.
20837PATH_SEPARATOR=$lt_PATH_SEPARATOR
20838
20839# The host system.
20840host_alias=$host_alias
20841host=$host
20842host_os=$host_os
20843
20844# The build system.
20845build_alias=$build_alias
20846build=$build
20847build_os=$build_os
20848
20849# A sed program that does not truncate output.
20850SED=$lt_SED
20851
20852# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20853Xsed="\$SED -e 1s/^X//"
20854
20855# A grep program that handles long lines.
20856GREP=$lt_GREP
20857
20858# An ERE matcher.
20859EGREP=$lt_EGREP
20860
20861# A literal string matcher.
20862FGREP=$lt_FGREP
20863
20864# A BSD- or MS-compatible name lister.
20865NM=$lt_NM
20866
20867# Whether we need soft or hard links.
20868LN_S=$lt_LN_S
20869
20870# What is the maximum length of a command?
20871max_cmd_len=$max_cmd_len
20872
20873# Object file suffix (normally "o").
20874objext=$ac_objext
20875
20876# Executable file suffix (normally "").
20877exeext=$exeext
20878
20879# whether the shell understands "unset".
20880lt_unset=$lt_unset
20881
20882# turn spaces into newlines.
20883SP2NL=$lt_lt_SP2NL
20884
20885# turn newlines into spaces.
20886NL2SP=$lt_lt_NL2SP
20887
20888# convert \$build file names to \$host format.
20889to_host_file_cmd=$lt_cv_to_host_file_cmd
20890
20891# convert \$build files to toolchain format.
20892to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20893
20894# An object symbol dumper.
20895OBJDUMP=$lt_OBJDUMP
20896
20897# Method to check whether dependent libraries are shared objects.
20898deplibs_check_method=$lt_deplibs_check_method
20899
20900# Command to use when deplibs_check_method = "file_magic".
20901file_magic_cmd=$lt_file_magic_cmd
20902
20903# How to find potential files when deplibs_check_method = "file_magic".
20904file_magic_glob=$lt_file_magic_glob
20905
20906# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20907want_nocaseglob=$lt_want_nocaseglob
20908
20909# DLL creation program.
20910DLLTOOL=$lt_DLLTOOL
20911
20912# Command to associate shared and link libraries.
20913sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20914
20915# The archiver.
20916AR=$lt_AR
20917
20918# Flags to create an archive.
20919AR_FLAGS=$lt_AR_FLAGS
20920
20921# How to feed a file listing to the archiver.
20922archiver_list_spec=$lt_archiver_list_spec
20923
20924# A symbol stripping program.
20925STRIP=$lt_STRIP
20926
20927# Commands used to install an old-style archive.
20928RANLIB=$lt_RANLIB
20929old_postinstall_cmds=$lt_old_postinstall_cmds
20930old_postuninstall_cmds=$lt_old_postuninstall_cmds
20931
20932# Whether to use a lock for old archive extraction.
20933lock_old_archive_extraction=$lock_old_archive_extraction
20934
20935# A C compiler.
20936LTCC=$lt_CC
20937
20938# LTCC compiler flags.
20939LTCFLAGS=$lt_CFLAGS
20940
20941# Take the output of nm and produce a listing of raw symbols and C names.
20942global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20943
20944# Transform the output of nm in a proper C declaration.
20945global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20946
20947# Transform the output of nm into a list of symbols to manually relocate.
20948global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20949
20950# Transform the output of nm in a C name address pair.
20951global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20952
20953# Transform the output of nm in a C name address pair when lib prefix is needed.
20954global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20955
20956# The name lister interface.
20957nm_interface=$lt_lt_cv_nm_interface
20958
20959# Specify filename containing input files for \$NM.
20960nm_file_list_spec=$lt_nm_file_list_spec
20961
20962# The root where to search for dependent libraries,and where our libraries should be installed.
20963lt_sysroot=$lt_sysroot
20964
20965# Command to truncate a binary pipe.
20966lt_truncate_bin=$lt_lt_cv_truncate_bin
20967
20968# The name of the directory that contains temporary libtool files.
20969objdir=$objdir
20970
20971# Used to examine libraries when file_magic_cmd begins with "file".
20972MAGIC_CMD=$MAGIC_CMD
20973
20974# Must we lock files when doing compilation?
20975need_locks=$lt_need_locks
20976
20977# Manifest tool.
20978MANIFEST_TOOL=$lt_MANIFEST_TOOL
20979
20980# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20981DSYMUTIL=$lt_DSYMUTIL
20982
20983# Tool to change global to local symbols on Mac OS X.
20984NMEDIT=$lt_NMEDIT
20985
20986# Tool to manipulate fat objects and archives on Mac OS X.
20987LIPO=$lt_LIPO
20988
20989# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20990OTOOL=$lt_OTOOL
20991
20992# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20993OTOOL64=$lt_OTOOL64
20994
20995# Old archive suffix (normally "a").
20996libext=$libext
20997
20998# Shared library suffix (normally ".so").
20999shrext_cmds=$lt_shrext_cmds
21000
21001# The commands to extract the exported symbol list from a shared archive.
21002extract_expsyms_cmds=$lt_extract_expsyms_cmds
21003
21004# Variables whose values should be saved in libtool wrapper scripts and
21005# restored at link time.
21006variables_saved_for_relink=$lt_variables_saved_for_relink
21007
21008# Do we need the "lib" prefix for modules?
21009need_lib_prefix=$need_lib_prefix
21010
21011# Do we need a version for libraries?
21012need_version=$need_version
21013
21014# Library versioning type.
21015version_type=$version_type
21016
21017# Shared library runtime path variable.
21018runpath_var=$runpath_var
21019
21020# Shared library path variable.
21021shlibpath_var=$shlibpath_var
21022
21023# Is shlibpath searched before the hard-coded library search path?
21024shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21025
21026# Format of library name prefix.
21027libname_spec=$lt_libname_spec
21028
21029# List of archive names.  First name is the real one, the rest are links.
21030# The last name is the one that the linker finds with -lNAME
21031library_names_spec=$lt_library_names_spec
21032
21033# The coded name of the library, if different from the real name.
21034soname_spec=$lt_soname_spec
21035
21036# Permission mode override for installation of shared libraries.
21037install_override_mode=$lt_install_override_mode
21038
21039# Command to use after installation of a shared archive.
21040postinstall_cmds=$lt_postinstall_cmds
21041
21042# Command to use after uninstallation of a shared archive.
21043postuninstall_cmds=$lt_postuninstall_cmds
21044
21045# Commands used to finish a libtool library installation in a directory.
21046finish_cmds=$lt_finish_cmds
21047
21048# As "finish_cmds", except a single script fragment to be evaled but
21049# not shown.
21050finish_eval=$lt_finish_eval
21051
21052# Whether we should hardcode library paths into libraries.
21053hardcode_into_libs=$hardcode_into_libs
21054
21055# Compile-time system search path for libraries.
21056sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21057
21058# Detected run-time system search path for libraries.
21059sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21060
21061# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21062configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21063
21064# Whether dlopen is supported.
21065dlopen_support=$enable_dlopen
21066
21067# Whether dlopen of programs is supported.
21068dlopen_self=$enable_dlopen_self
21069
21070# Whether dlopen of statically linked programs is supported.
21071dlopen_self_static=$enable_dlopen_self_static
21072
21073# Commands to strip libraries.
21074old_striplib=$lt_old_striplib
21075striplib=$lt_striplib
21076
21077# Assembler program.
21078AS=$lt_AS
21079
21080
21081# The linker used to build libraries.
21082LD=$lt_LD
21083
21084# How to create reloadable object files.
21085reload_flag=$lt_reload_flag
21086reload_cmds=$lt_reload_cmds
21087
21088# Commands used to build an old-style archive.
21089old_archive_cmds=$lt_old_archive_cmds
21090
21091# A language specific compiler.
21092CC=$lt_compiler
21093
21094# Is the compiler the GNU compiler?
21095with_gcc=$GCC
21096
21097# Compiler flag to turn off builtin functions.
21098no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21099
21100# Additional compiler flags for building library objects.
21101pic_flag=$lt_lt_prog_compiler_pic
21102
21103# How to pass a linker flag through the compiler.
21104wl=$lt_lt_prog_compiler_wl
21105
21106# Compiler flag to prevent dynamic linking.
21107link_static_flag=$lt_lt_prog_compiler_static
21108
21109# Does compiler simultaneously support -c and -o options?
21110compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21111
21112# Whether or not to add -lc for building shared libraries.
21113build_libtool_need_lc=$archive_cmds_need_lc
21114
21115# Whether or not to disallow shared libs when runtime libs are static.
21116allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21117
21118# Compiler flag to allow reflexive dlopens.
21119export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21120
21121# Compiler flag to generate shared objects directly from archives.
21122whole_archive_flag_spec=$lt_whole_archive_flag_spec
21123
21124# Whether the compiler copes with passing no objects directly.
21125compiler_needs_object=$lt_compiler_needs_object
21126
21127# Create an old-style archive from a shared archive.
21128old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21129
21130# Create a temporary old-style archive to link instead of a shared archive.
21131old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21132
21133# Commands used to build a shared archive.
21134archive_cmds=$lt_archive_cmds
21135archive_expsym_cmds=$lt_archive_expsym_cmds
21136
21137# Commands used to build a loadable module if different from building
21138# a shared archive.
21139module_cmds=$lt_module_cmds
21140module_expsym_cmds=$lt_module_expsym_cmds
21141
21142# Whether we are building with GNU ld or not.
21143with_gnu_ld=$lt_with_gnu_ld
21144
21145# Flag that allows shared libraries with undefined symbols to be built.
21146allow_undefined_flag=$lt_allow_undefined_flag
21147
21148# Flag that enforces no undefined symbols.
21149no_undefined_flag=$lt_no_undefined_flag
21150
21151# Flag to hardcode \$libdir into a binary during linking.
21152# This must work even if \$libdir does not exist
21153hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21154
21155# Whether we need a single "-rpath" flag with a separated argument.
21156hardcode_libdir_separator=$lt_hardcode_libdir_separator
21157
21158# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21159# DIR into the resulting binary.
21160hardcode_direct=$hardcode_direct
21161
21162# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21163# DIR into the resulting binary and the resulting library dependency is
21164# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21165# library is relocated.
21166hardcode_direct_absolute=$hardcode_direct_absolute
21167
21168# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21169# into the resulting binary.
21170hardcode_minus_L=$hardcode_minus_L
21171
21172# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21173# into the resulting binary.
21174hardcode_shlibpath_var=$hardcode_shlibpath_var
21175
21176# Set to "yes" if building a shared library automatically hardcodes DIR
21177# into the library and all subsequent libraries and executables linked
21178# against it.
21179hardcode_automatic=$hardcode_automatic
21180
21181# Set to yes if linker adds runtime paths of dependent libraries
21182# to runtime path list.
21183inherit_rpath=$inherit_rpath
21184
21185# Whether libtool must link a program against all its dependency libraries.
21186link_all_deplibs=$link_all_deplibs
21187
21188# Set to "yes" if exported symbols are required.
21189always_export_symbols=$always_export_symbols
21190
21191# The commands to list exported symbols.
21192export_symbols_cmds=$lt_export_symbols_cmds
21193
21194# Symbols that should not be listed in the preloaded symbols.
21195exclude_expsyms=$lt_exclude_expsyms
21196
21197# Symbols that must always be exported.
21198include_expsyms=$lt_include_expsyms
21199
21200# Commands necessary for linking programs (against libraries) with templates.
21201prelink_cmds=$lt_prelink_cmds
21202
21203# Commands necessary for finishing linking programs.
21204postlink_cmds=$lt_postlink_cmds
21205
21206# Specify filename containing input files.
21207file_list_spec=$lt_file_list_spec
21208
21209# How to hardcode a shared library path into an executable.
21210hardcode_action=$hardcode_action
21211
21212# ### END LIBTOOL CONFIG
21213
21214_LT_EOF
21215
21216    cat <<'_LT_EOF' >> "$cfgfile"
21217
21218# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21219
21220# func_munge_path_list VARIABLE PATH
21221# -----------------------------------
21222# VARIABLE is name of variable containing _space_ separated list of
21223# directories to be munged by the contents of PATH, which is string
21224# having a format:
21225# "DIR[:DIR]:"
21226#       string "DIR[ DIR]" will be prepended to VARIABLE
21227# ":DIR[:DIR]"
21228#       string "DIR[ DIR]" will be appended to VARIABLE
21229# "DIRP[:DIRP]::[DIRA:]DIRA"
21230#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21231#       "DIRA[ DIRA]" will be appended to VARIABLE
21232# "DIR[:DIR]"
21233#       VARIABLE will be replaced by "DIR[ DIR]"
21234func_munge_path_list ()
21235{
21236    case x$2 in
21237    x)
21238        ;;
21239    *:)
21240        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21241        ;;
21242    x:*)
21243        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21244        ;;
21245    *::*)
21246        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21247        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21248        ;;
21249    *)
21250        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21251        ;;
21252    esac
21253}
21254
21255
21256# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21257func_cc_basename ()
21258{
21259    for cc_temp in $*""; do
21260      case $cc_temp in
21261        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21262        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21263        \-*) ;;
21264        *) break;;
21265      esac
21266    done
21267    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21268}
21269
21270
21271# ### END FUNCTIONS SHARED WITH CONFIGURE
21272
21273_LT_EOF
21274
21275  case $host_os in
21276  aix3*)
21277    cat <<\_LT_EOF >> "$cfgfile"
21278# AIX sometimes has problems with the GCC collect2 program.  For some
21279# reason, if we set the COLLECT_NAMES environment variable, the problems
21280# vanish in a puff of smoke.
21281if test set != "${COLLECT_NAMES+set}"; then
21282  COLLECT_NAMES=
21283  export COLLECT_NAMES
21284fi
21285_LT_EOF
21286    ;;
21287  esac
21288
21289
21290ltmain=$ac_aux_dir/ltmain.sh
21291
21292
21293  # We use sed instead of cat because bash on DJGPP gets confused if
21294  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21295  # text mode, it properly converts lines to CR/LF.  This bash problem
21296  # is reportedly fixed, but why not run on old versions too?
21297  sed '$q' "$ltmain" >> "$cfgfile" \
21298     || (rm -f "$cfgfile"; exit 1)
21299
21300   mv -f "$cfgfile" "$ofile" ||
21301    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21302  chmod +x "$ofile"
21303
21304 ;;
21305
21306  esac
21307done # for ac_tag
21308
21309
21310as_fn_exit 0
21311_ACEOF
21312ac_clean_files=$ac_clean_files_save
21313
21314test $ac_write_fail = 0 ||
21315  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21316
21317
21318# configure is writing to config.log, and then calls config.status.
21319# config.status does its own redirection, appending to config.log.
21320# Unfortunately, on DOS this fails, as config.log is still kept open
21321# by configure, so config.status won't be able to write to it; its
21322# output is simply discarded.  So we exec the FD to /dev/null,
21323# effectively closing config.log, so it can be properly (re)opened and
21324# appended to by config.status.  When coming back to configure, we
21325# need to make the FD available again.
21326if test "$no_create" != yes; then
21327  ac_cs_success=:
21328  ac_config_status_args=
21329  test "$silent" = yes &&
21330    ac_config_status_args="$ac_config_status_args --quiet"
21331  exec 5>/dev/null
21332  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21333  exec 5>>config.log
21334  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21335  # would make configure fail if this is the last instruction.
21336  $ac_cs_success || as_fn_exit 1
21337fi
21338if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21339  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21340$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21341fi
21342
21343