1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for spot 2.10.2.
4#
5# Report bugs to <spot@lrde.epita.fr>.
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 spot@lrde.epita.fr
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: 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
567lt_ltdl_dir='ltdl'
568
569SHELL=${CONFIG_SHELL-/bin/sh}
570
571lt_dlopen_dir=$lt_ltdl_dir
572
573
574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
576
577# Name of the host.
578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
586ac_clean_files=
587ac_config_libobj_dir=.
588LIBOBJS=
589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
593
594# Identity of this package.
595PACKAGE_NAME='spot'
596PACKAGE_TARNAME='spot'
597PACKAGE_VERSION='2.10.2'
598PACKAGE_STRING='spot 2.10.2'
599PACKAGE_BUGREPORT='spot@lrde.epita.fr'
600PACKAGE_URL=''
601
602ac_header_list=
603# Factoring default headers for most tests.
604ac_includes_default="\
605#include <stdio.h>
606#ifdef HAVE_SYS_TYPES_H
607# include <sys/types.h>
608#endif
609#ifdef HAVE_SYS_STAT_H
610# include <sys/stat.h>
611#endif
612#ifdef STDC_HEADERS
613# include <stdlib.h>
614# include <stddef.h>
615#else
616# ifdef HAVE_STDLIB_H
617#  include <stdlib.h>
618# endif
619#endif
620#ifdef HAVE_STRING_H
621# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622#  include <memory.h>
623# endif
624# include <string.h>
625#endif
626#ifdef HAVE_STRINGS_H
627# include <strings.h>
628#endif
629#ifdef HAVE_INTTYPES_H
630# include <inttypes.h>
631#endif
632#ifdef HAVE_STDINT_H
633# include <stdint.h>
634#endif
635#ifdef HAVE_UNISTD_H
636# include <unistd.h>
637#endif"
638
639ac_func_list=
640gl_getopt_required=POSIX
641enable_option_checking=no
642ac_subst_vars='ltdl_LTLIBOBJS
643ltdl_LIBOBJS
644gltests_LTLIBOBJS
645gltests_LIBOBJS
646gl_LTLIBOBJS
647gl_LIBOBJS
648am__EXEEXT_FALSE
649am__EXEEXT_TRUE
650LTLIBOBJS
651LIBOBJS
652GITPATCH
653CROSS_COMPILING
654SWIG
655VALGRIND
656LBTT_TRANSLATE
657JUPYTER
658IPYTHON
659EMACS
660LBTT
661SPIN
662PERL
663LTL3BA
664LTL2BA
665DOT
666NEVER_FALSE
667NEVER_TRUE
668WARNING_CXXFLAGS
669INTEL_CXXFLAGS
670PYTHONINC
671PYEXT
672pkgpyexecdir
673pyexecdir
674pkgpythondir
675pythondir
676PYTHON_PLATFORM
677PYTHON_EXEC_PREFIX
678PYTHON_PREFIX
679PYTHON_VERSION
680PYTHON
681USE_PYTHON_FALSE
682USE_PYTHON_TRUE
683SYMBOLIC_LDFLAGS
684LTDLOPEN
685LT_CONFIG_H
686CONVENIENCE_LTDL_FALSE
687CONVENIENCE_LTDL_TRUE
688INSTALL_LTDL_FALSE
689INSTALL_LTDL_TRUE
690LT_ARGZ_H
691sys_symbol_underscore
692LIBADD_DL
693LT_DLPREOPEN
694LIBADD_DLD_LINK
695LIBADD_SHL_LOAD
696LIBADD_DLOPEN
697LT_DLLOADERS
698INCLTDL
699LTDLINCL
700LTDLDEPS
701LIBLTDL
702LT_SYS_LIBRARY_PATH
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
708MANIFEST_TOOL
709ac_ct_AR
710LN_S
711NM
712ac_ct_DUMPBIN
713DUMPBIN
714LD
715FGREP
716SED
717LIBTOOL
718OBJDUMP
719DLLTOOL
720AS
721CXXCPP
722subdirs
723BUDDY_CPPFLAGS
724BUDDY_LDFLAGS
725gltests_WITNESS
726REPLACE_TOWLOWER
727REPLACE_ISWCNTRL
728HAVE_WCTYPE_H
729NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
730NEXT_WCTYPE_H
731HAVE_ISWCNTRL
732REPLACE_ISWXDIGIT
733REPLACE_ISWDIGIT
734REPLACE_ISWBLANK
735HAVE_WCTRANS_T
736HAVE_WCTYPE_T
737HAVE_ISWBLANK
738GNULIB_TOWCTRANS
739GNULIB_WCTRANS
740GNULIB_ISWCTYPE
741GNULIB_WCTYPE
742GNULIB_ISWXDIGIT
743GNULIB_ISWDIGIT
744GNULIB_ISWBLANK
745HAVE_CRTDEFS_H
746HAVE_WINT_T
747NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
748NEXT_WCHAR_H
749HAVE_FEATURES_H
750HAVE_UNISTD_H
751NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
752NEXT_UNISTD_H
753UNISTD_H_DEFINES_STRUCT_TIMESPEC
754PTHREAD_H_DEFINES_STRUCT_TIMESPEC
755SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
756TIME_H_DEFINES_STRUCT_TIMESPEC
757NEXT_AS_FIRST_DIRECTIVE_TIME_H
758NEXT_TIME_H
759GL_GENERATE_SYSEXITS_H_FALSE
760GL_GENERATE_SYSEXITS_H_TRUE
761SYSEXITS_H
762HAVE_SYSEXITS_H
763NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
764NEXT_SYSEXITS_H
765NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
766NEXT_SYS_WAIT_H
767GNULIB_WAITPID
768WINDOWS_STAT_INODES
769WINDOWS_64_BIT_OFF_T
770NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
771NEXT_SYS_TYPES_H
772HAVE_STRINGS_H
773NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
774NEXT_STRINGS_H
775NEXT_AS_FIRST_DIRECTIVE_STRING_H
776NEXT_STRING_H
777HAVE_DECL_STRNCASECMP
778HAVE_STRCASECMP
779HAVE_FFS
780GNULIB_FFS
781NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
782NEXT_STDLIB_H
783NEXT_AS_FIRST_DIRECTIVE_STDIO_H
784NEXT_STDIO_H
785REPLACE_VSPRINTF
786REPLACE_VSNPRINTF
787REPLACE_VPRINTF
788REPLACE_VFPRINTF
789REPLACE_VDPRINTF
790REPLACE_VASPRINTF
791REPLACE_TMPFILE
792REPLACE_STDIO_WRITE_FUNCS
793REPLACE_STDIO_READ_FUNCS
794REPLACE_SPRINTF
795REPLACE_SNPRINTF
796REPLACE_RENAMEAT
797REPLACE_RENAME
798REPLACE_REMOVE
799REPLACE_PRINTF
800REPLACE_POPEN
801REPLACE_PERROR
802REPLACE_OBSTACK_PRINTF
803REPLACE_GETLINE
804REPLACE_GETDELIM
805REPLACE_FTELLO
806REPLACE_FTELL
807REPLACE_FSEEKO
808REPLACE_FSEEK
809REPLACE_FREOPEN
810REPLACE_FPURGE
811REPLACE_FPRINTF
812REPLACE_FOPEN
813REPLACE_FFLUSH
814REPLACE_FDOPEN
815REPLACE_FCLOSE
816REPLACE_DPRINTF
817HAVE_VDPRINTF
818HAVE_VASPRINTF
819HAVE_RENAMEAT
820HAVE_POPEN
821HAVE_PCLOSE
822HAVE_FTELLO
823HAVE_FSEEKO
824HAVE_DPRINTF
825HAVE_DECL_VSNPRINTF
826HAVE_DECL_SNPRINTF
827HAVE_DECL_OBSTACK_PRINTF
828HAVE_DECL_GETLINE
829HAVE_DECL_GETDELIM
830HAVE_DECL_FTELLO
831HAVE_DECL_FSEEKO
832HAVE_DECL_FPURGE
833GNULIB_VSPRINTF_POSIX
834GNULIB_VSNPRINTF
835GNULIB_VPRINTF_POSIX
836GNULIB_VPRINTF
837GNULIB_VFPRINTF_POSIX
838GNULIB_VFPRINTF
839GNULIB_VDPRINTF
840GNULIB_VSCANF
841GNULIB_VFSCANF
842GNULIB_VASPRINTF
843GNULIB_TMPFILE
844GNULIB_STDIO_H_SIGPIPE
845GNULIB_STDIO_H_NONBLOCKING
846GNULIB_SPRINTF_POSIX
847GNULIB_SNPRINTF
848GNULIB_SCANF
849GNULIB_RENAMEAT
850GNULIB_RENAME
851GNULIB_REMOVE
852GNULIB_PUTS
853GNULIB_PUTCHAR
854GNULIB_PUTC
855GNULIB_PRINTF_POSIX
856GNULIB_PRINTF
857GNULIB_POPEN
858GNULIB_PERROR
859GNULIB_PCLOSE
860GNULIB_OBSTACK_PRINTF_POSIX
861GNULIB_OBSTACK_PRINTF
862GNULIB_GETLINE
863GNULIB_GETDELIM
864GNULIB_GETCHAR
865GNULIB_GETC
866GNULIB_FWRITE
867GNULIB_FTELLO
868GNULIB_FTELL
869GNULIB_FSEEKO
870GNULIB_FSEEK
871GNULIB_FSCANF
872GNULIB_FREOPEN
873GNULIB_FREAD
874GNULIB_FPUTS
875GNULIB_FPUTC
876GNULIB_FPURGE
877GNULIB_FPRINTF_POSIX
878GNULIB_FPRINTF
879GNULIB_FOPEN
880GNULIB_FGETS
881GNULIB_FGETC
882GNULIB_FFLUSH
883GNULIB_FDOPEN
884GNULIB_FCLOSE
885GNULIB_DPRINTF
886HAVE__BOOL
887GL_GENERATE_STDBOOL_H_FALSE
888GL_GENERATE_STDBOOL_H_TRUE
889STDBOOL_H
890GL_GENERATE_STDALIGN_H_FALSE
891GL_GENERATE_STDALIGN_H_TRUE
892STDALIGN_H
893WINDOWS_64_BIT_ST_SIZE
894WINDOWS_STAT_TIMESPEC
895NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
896NEXT_SYS_STAT_H
897HAVE_MSVC_INVALID_PARAMETER_HANDLER
898UNDEFINE_STRTOK_R
899REPLACE_STRSIGNAL
900REPLACE_STRERROR_R
901REPLACE_STRERROR
902REPLACE_STRTOK_R
903REPLACE_STRCASESTR
904REPLACE_STRSTR
905REPLACE_STRNLEN
906REPLACE_STRNDUP
907REPLACE_STRNCAT
908REPLACE_STRDUP
909REPLACE_STRCHRNUL
910REPLACE_STPNCPY
911REPLACE_MEMMEM
912REPLACE_MEMCHR
913HAVE_STRVERSCMP
914HAVE_DECL_STRSIGNAL
915HAVE_DECL_STRERROR_R
916HAVE_DECL_STRTOK_R
917HAVE_STRCASESTR
918HAVE_STRSEP
919HAVE_STRPBRK
920HAVE_DECL_STRNLEN
921HAVE_DECL_STRNDUP
922HAVE_DECL_STRDUP
923HAVE_STRCHRNUL
924HAVE_STPNCPY
925HAVE_STPCPY
926HAVE_RAWMEMCHR
927HAVE_DECL_MEMRCHR
928HAVE_MEMPCPY
929HAVE_DECL_MEMMEM
930HAVE_MEMCHR
931HAVE_FFSLL
932HAVE_FFSL
933HAVE_EXPLICIT_BZERO
934HAVE_MBSLEN
935GNULIB_STRVERSCMP
936GNULIB_STRSIGNAL
937GNULIB_STRERROR_R
938GNULIB_STRERROR
939GNULIB_MBSTOK_R
940GNULIB_MBSSEP
941GNULIB_MBSSPN
942GNULIB_MBSPBRK
943GNULIB_MBSCSPN
944GNULIB_MBSCASESTR
945GNULIB_MBSPCASECMP
946GNULIB_MBSNCASECMP
947GNULIB_MBSCASECMP
948GNULIB_MBSSTR
949GNULIB_MBSRCHR
950GNULIB_MBSCHR
951GNULIB_MBSNLEN
952GNULIB_MBSLEN
953GNULIB_STRTOK_R
954GNULIB_STRCASESTR
955GNULIB_STRSTR
956GNULIB_STRSEP
957GNULIB_STRPBRK
958GNULIB_STRNLEN
959GNULIB_STRNDUP
960GNULIB_STRNCAT
961GNULIB_STRDUP
962GNULIB_STRCHRNUL
963GNULIB_STPNCPY
964GNULIB_STPCPY
965GNULIB_RAWMEMCHR
966GNULIB_MEMRCHR
967GNULIB_MEMPCPY
968GNULIB_MEMMEM
969GNULIB_MEMCHR
970GNULIB_FFSLL
971GNULIB_FFSL
972GNULIB_EXPLICIT_BZERO
973HAVE_VISIBILITY
974CFLAG_VISIBILITY
975LIB_MBRTOWC
976LOCALE_ZH_CN
977LOCALE_FR_UTF8
978LOCALE_JA
979REPLACE_WCSTOK
980REPLACE_WCSFTIME
981REPLACE_WCSWIDTH
982REPLACE_WCWIDTH
983REPLACE_WCSNRTOMBS
984REPLACE_WCSRTOMBS
985REPLACE_WCRTOMB
986REPLACE_MBSNRTOWCS
987REPLACE_MBSRTOWCS
988REPLACE_MBRLEN
989REPLACE_MBRTOWC
990REPLACE_MBSINIT
991REPLACE_WCTOB
992REPLACE_BTOWC
993REPLACE_MBSTATE_T
994HAVE_DECL_WCWIDTH
995HAVE_DECL_WCTOB
996HAVE_WCSFTIME
997HAVE_WCSWIDTH
998HAVE_WCSTOK
999HAVE_WCSSTR
1000HAVE_WCSPBRK
1001HAVE_WCSSPN
1002HAVE_WCSCSPN
1003HAVE_WCSRCHR
1004HAVE_WCSCHR
1005HAVE_WCSDUP
1006HAVE_WCSXFRM
1007HAVE_WCSCOLL
1008HAVE_WCSNCASECMP
1009HAVE_WCSCASECMP
1010HAVE_WCSNCMP
1011HAVE_WCSCMP
1012HAVE_WCSNCAT
1013HAVE_WCSCAT
1014HAVE_WCPNCPY
1015HAVE_WCSNCPY
1016HAVE_WCPCPY
1017HAVE_WCSCPY
1018HAVE_WCSNLEN
1019HAVE_WCSLEN
1020HAVE_WMEMSET
1021HAVE_WMEMMOVE
1022HAVE_WMEMCPY
1023HAVE_WMEMCMP
1024HAVE_WMEMCHR
1025HAVE_WCSNRTOMBS
1026HAVE_WCSRTOMBS
1027HAVE_WCRTOMB
1028HAVE_MBSNRTOWCS
1029HAVE_MBSRTOWCS
1030HAVE_MBRLEN
1031HAVE_MBRTOWC
1032HAVE_MBSINIT
1033HAVE_BTOWC
1034GNULIB_WCSFTIME
1035GNULIB_WCSWIDTH
1036GNULIB_WCSTOK
1037GNULIB_WCSSTR
1038GNULIB_WCSPBRK
1039GNULIB_WCSSPN
1040GNULIB_WCSCSPN
1041GNULIB_WCSRCHR
1042GNULIB_WCSCHR
1043GNULIB_WCSDUP
1044GNULIB_WCSXFRM
1045GNULIB_WCSCOLL
1046GNULIB_WCSNCASECMP
1047GNULIB_WCSCASECMP
1048GNULIB_WCSNCMP
1049GNULIB_WCSCMP
1050GNULIB_WCSNCAT
1051GNULIB_WCSCAT
1052GNULIB_WCPNCPY
1053GNULIB_WCSNCPY
1054GNULIB_WCPCPY
1055GNULIB_WCSCPY
1056GNULIB_WCSNLEN
1057GNULIB_WCSLEN
1058GNULIB_WMEMSET
1059GNULIB_WMEMMOVE
1060GNULIB_WMEMCPY
1061GNULIB_WMEMCMP
1062GNULIB_WMEMCHR
1063GNULIB_WCWIDTH
1064GNULIB_WCSNRTOMBS
1065GNULIB_WCSRTOMBS
1066GNULIB_WCRTOMB
1067GNULIB_MBSNRTOWCS
1068GNULIB_MBSRTOWCS
1069GNULIB_MBRLEN
1070GNULIB_MBRTOWC
1071GNULIB_MBSINIT
1072GNULIB_WCTOB
1073GNULIB_BTOWC
1074REPLACE_WCTOMB
1075REPLACE_UNSETENV
1076REPLACE_STRTOLD
1077REPLACE_STRTOD
1078REPLACE_SETSTATE
1079REPLACE_SETENV
1080REPLACE_REALPATH
1081REPLACE_REALLOC
1082REPLACE_RANDOM_R
1083REPLACE_RANDOM
1084REPLACE_QSORT_R
1085REPLACE_PUTENV
1086REPLACE_PTSNAME_R
1087REPLACE_PTSNAME
1088REPLACE_MKSTEMP
1089REPLACE_MBTOWC
1090REPLACE_MALLOC
1091REPLACE_INITSTATE
1092REPLACE_CANONICALIZE_FILE_NAME
1093REPLACE_CALLOC
1094HAVE_DECL_UNSETENV
1095HAVE_UNLOCKPT
1096HAVE_SYS_LOADAVG_H
1097HAVE_STRUCT_RANDOM_DATA
1098HAVE_STRTOULL
1099HAVE_STRTOLL
1100HAVE_STRTOLD
1101HAVE_STRTOD
1102HAVE_DECL_SETSTATE
1103HAVE_SETSTATE
1104HAVE_DECL_SETENV
1105HAVE_SETENV
1106HAVE_SECURE_GETENV
1107HAVE_RPMATCH
1108HAVE_REALPATH
1109HAVE_REALLOCARRAY
1110HAVE_RANDOM_R
1111HAVE_RANDOM_H
1112HAVE_RANDOM
1113HAVE_QSORT_R
1114HAVE_PTSNAME_R
1115HAVE_PTSNAME
1116HAVE_POSIX_OPENPT
1117HAVE_MKSTEMPS
1118HAVE_MKSTEMP
1119HAVE_MKOSTEMPS
1120HAVE_MKOSTEMP
1121HAVE_MKDTEMP
1122HAVE_MBTOWC
1123HAVE_DECL_INITSTATE
1124HAVE_INITSTATE
1125HAVE_GRANTPT
1126HAVE_GETSUBOPT
1127HAVE_DECL_GETLOADAVG
1128HAVE_CANONICALIZE_FILE_NAME
1129HAVE_ATOLL
1130HAVE__EXIT
1131GNULIB_WCTOMB
1132GNULIB_UNSETENV
1133GNULIB_UNLOCKPT
1134GNULIB_SYSTEM_POSIX
1135GNULIB_STRTOULL
1136GNULIB_STRTOLL
1137GNULIB_STRTOLD
1138GNULIB_STRTOD
1139GNULIB_SETENV
1140GNULIB_SECURE_GETENV
1141GNULIB_RPMATCH
1142GNULIB_REALPATH
1143GNULIB_REALLOC_POSIX
1144GNULIB_REALLOCARRAY
1145GNULIB_RANDOM_R
1146GNULIB_RANDOM
1147GNULIB_QSORT_R
1148GNULIB_PUTENV
1149GNULIB_PTSNAME_R
1150GNULIB_PTSNAME
1151GNULIB_POSIX_OPENPT
1152GNULIB_MKSTEMPS
1153GNULIB_MKSTEMP
1154GNULIB_MKOSTEMPS
1155GNULIB_MKOSTEMP
1156GNULIB_MKDTEMP
1157GNULIB_MBTOWC
1158GNULIB_MALLOC_POSIX
1159GNULIB_GRANTPT
1160GNULIB_GETSUBOPT
1161GNULIB_GETLOADAVG
1162GNULIB_CANONICALIZE_FILE_NAME
1163GNULIB_CALLOC_POSIX
1164GNULIB_ATOLL
1165GNULIB__EXIT
1166REPLACE_UTIMENSAT
1167REPLACE_STAT
1168REPLACE_MKNOD
1169REPLACE_MKFIFO
1170REPLACE_MKDIR
1171REPLACE_LSTAT
1172REPLACE_FUTIMENS
1173REPLACE_FSTATAT
1174REPLACE_FSTAT
1175REPLACE_FCHMODAT
1176HAVE_UTIMENSAT
1177HAVE_MKNODAT
1178HAVE_MKNOD
1179HAVE_MKFIFOAT
1180HAVE_MKFIFO
1181HAVE_MKDIRAT
1182HAVE_LSTAT
1183HAVE_LCHMOD
1184HAVE_FUTIMENS
1185HAVE_FSTATAT
1186HAVE_FCHMODAT
1187GNULIB_OVERRIDES_STRUCT_STAT
1188GNULIB_UTIMENSAT
1189GNULIB_STAT
1190GNULIB_MKNODAT
1191GNULIB_MKNOD
1192GNULIB_MKFIFOAT
1193GNULIB_MKFIFO
1194GNULIB_MKDIRAT
1195GNULIB_LSTAT
1196GNULIB_LCHMOD
1197GNULIB_FUTIMENS
1198GNULIB_FSTATAT
1199GNULIB_FSTAT
1200GNULIB_FCHMODAT
1201NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1202NEXT_LOCALE_H
1203HAVE_XLOCALE_H
1204NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1205NEXT_STDDEF_H
1206GL_GENERATE_STDDEF_H_FALSE
1207GL_GENERATE_STDDEF_H_TRUE
1208STDDEF_H
1209HAVE_WCHAR_T
1210HAVE_MAX_ALIGN_T
1211REPLACE_NULL
1212REPLACE_STRUCT_LCONV
1213REPLACE_FREELOCALE
1214REPLACE_DUPLOCALE
1215REPLACE_NEWLOCALE
1216REPLACE_SETLOCALE
1217REPLACE_LOCALECONV
1218HAVE_FREELOCALE
1219HAVE_DUPLOCALE
1220HAVE_NEWLOCALE
1221GNULIB_LOCALENAME
1222GNULIB_DUPLOCALE
1223GNULIB_SETLOCALE_NULL
1224GNULIB_SETLOCALE
1225GNULIB_LOCALECONV
1226LOCALCHARSET_TESTS_ENVIRONMENT
1227NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1228NEXT_INTTYPES_H
1229UINT64_MAX_EQ_ULONG_MAX
1230UINT32_MAX_LT_UINTMAX_MAX
1231PRIPTR_PREFIX
1232PRI_MACROS_BROKEN
1233INT64_MAX_EQ_LONG_MAX
1234INT32_MAX_LT_INTMAX_MAX
1235REPLACE_STRTOUMAX
1236REPLACE_STRTOIMAX
1237HAVE_IMAXDIV_T
1238HAVE_DECL_STRTOUMAX
1239HAVE_DECL_STRTOIMAX
1240HAVE_DECL_IMAXDIV
1241HAVE_DECL_IMAXABS
1242GNULIB_STRTOUMAX
1243GNULIB_STRTOIMAX
1244GNULIB_IMAXDIV
1245GNULIB_IMAXABS
1246GL_GENERATE_STDINT_H_FALSE
1247GL_GENERATE_STDINT_H_TRUE
1248STDINT_H
1249HAVE_SYS_INTTYPES_H
1250HAVE_SYS_BITYPES_H
1251HAVE_C99_STDINT_H
1252WINT_T_SUFFIX
1253WCHAR_T_SUFFIX
1254SIG_ATOMIC_T_SUFFIX
1255SIZE_T_SUFFIX
1256PTRDIFF_T_SUFFIX
1257HAVE_SIGNED_WINT_T
1258HAVE_SIGNED_WCHAR_T
1259HAVE_SIGNED_SIG_ATOMIC_T
1260BITSIZEOF_WINT_T
1261BITSIZEOF_WCHAR_T
1262BITSIZEOF_SIG_ATOMIC_T
1263BITSIZEOF_SIZE_T
1264BITSIZEOF_PTRDIFF_T
1265APPLE_UNIVERSAL_BUILD
1266HAVE_STDINT_H
1267NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1268NEXT_STDINT_H
1269HAVE_SYS_TYPES_H
1270HAVE_INTTYPES_H
1271HAVE_WCHAR_H
1272GNULIB_OVERRIDES_WINT_T
1273GL_GENERATE_LIMITS_H_FALSE
1274GL_GENERATE_LIMITS_H_TRUE
1275LIMITS_H
1276NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1277NEXT_LIMITS_H
1278LIB_HARD_LOCALE
1279LIB_SETLOCALE_NULL
1280LIB_SCHED_YIELD
1281LIBPMULTITHREAD
1282LIBPTHREAD
1283REPLACE_LOCALTIME
1284REPLACE_GMTIME
1285REPLACE_TZSET
1286REPLACE_TIMEGM
1287REPLACE_STRFTIME
1288REPLACE_NANOSLEEP
1289REPLACE_MKTIME
1290REPLACE_LOCALTIME_R
1291REPLACE_CTIME
1292HAVE_TIMEZONE_T
1293HAVE_TZSET
1294HAVE_TIMEGM
1295HAVE_STRPTIME
1296HAVE_NANOSLEEP
1297HAVE_DECL_LOCALTIME_R
1298GNULIB_TZSET
1299GNULIB_TIME_RZ
1300GNULIB_TIME_R
1301GNULIB_TIMEGM
1302GNULIB_STRPTIME
1303GNULIB_STRFTIME
1304GNULIB_NANOSLEEP
1305GNULIB_LOCALTIME
1306GNULIB_MKTIME
1307GNULIB_CTIME
1308HAVE_WINSOCK2_H
1309NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1310NEXT_SYS_TIME_H
1311REPLACE_STRUCT_TIMEVAL
1312REPLACE_GETTIMEOFDAY
1313HAVE_SYS_TIME_H
1314HAVE_STRUCT_TIMEVAL
1315HAVE_GETTIMEOFDAY
1316GNULIB_GETTIMEOFDAY
1317LTLIBINTL
1318LIBINTL
1319GNULIB_GL_UNISTD_H_GETOPT
1320GETOPT_CDEFS_H
1321GETOPT_H
1322HAVE_SYS_CDEFS_H
1323HAVE_GETOPT_H
1324NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1325NEXT_GETOPT_H
1326UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1327UNISTD_H_HAVE_WINSOCK2_H
1328REPLACE_WRITE
1329REPLACE_USLEEP
1330REPLACE_UNLINKAT
1331REPLACE_UNLINK
1332REPLACE_TTYNAME_R
1333REPLACE_TRUNCATE
1334REPLACE_SYMLINKAT
1335REPLACE_SYMLINK
1336REPLACE_SLEEP
1337REPLACE_RMDIR
1338REPLACE_READLINKAT
1339REPLACE_READLINK
1340REPLACE_READ
1341REPLACE_PWRITE
1342REPLACE_PREAD
1343REPLACE_LSEEK
1344REPLACE_LINKAT
1345REPLACE_LINK
1346REPLACE_LCHOWN
1347REPLACE_ISATTY
1348REPLACE_GETPASS
1349REPLACE_GETPAGESIZE
1350REPLACE_GETGROUPS
1351REPLACE_GETLOGIN_R
1352REPLACE_GETDTABLESIZE
1353REPLACE_GETDOMAINNAME
1354REPLACE_GETCWD
1355REPLACE_FTRUNCATE
1356REPLACE_FCHOWNAT
1357REPLACE_FACCESSAT
1358REPLACE_DUP2
1359REPLACE_DUP
1360REPLACE_CLOSE
1361REPLACE_CHOWN
1362REPLACE_ACCESS
1363HAVE_SYS_PARAM_H
1364HAVE_OS_H
1365HAVE_DECL_TTYNAME_R
1366HAVE_DECL_TRUNCATE
1367HAVE_DECL_SETHOSTNAME
1368HAVE_DECL_GETUSERSHELL
1369HAVE_DECL_GETPAGESIZE
1370HAVE_DECL_GETLOGIN_R
1371HAVE_DECL_GETLOGIN
1372HAVE_DECL_GETDOMAINNAME
1373HAVE_DECL_FDATASYNC
1374HAVE_DECL_FCHDIR
1375HAVE_DECL_ENVIRON
1376HAVE_USLEEP
1377HAVE_UNLINKAT
1378HAVE_SYMLINKAT
1379HAVE_SYMLINK
1380HAVE_SLEEP
1381HAVE_SETHOSTNAME
1382HAVE_READLINKAT
1383HAVE_READLINK
1384HAVE_PWRITE
1385HAVE_PREAD
1386HAVE_PIPE2
1387HAVE_PIPE
1388HAVE_LINKAT
1389HAVE_LINK
1390HAVE_LCHOWN
1391HAVE_GROUP_MEMBER
1392HAVE_GETPASS
1393HAVE_GETPAGESIZE
1394HAVE_GETLOGIN
1395HAVE_GETHOSTNAME
1396HAVE_GETGROUPS
1397HAVE_GETDTABLESIZE
1398HAVE_FTRUNCATE
1399HAVE_FSYNC
1400HAVE_FDATASYNC
1401HAVE_FCHOWNAT
1402HAVE_FCHDIR
1403HAVE_FACCESSAT
1404HAVE_EUIDACCESS
1405HAVE_DUP3
1406HAVE_DUP2
1407HAVE_COPY_FILE_RANGE
1408HAVE_CHOWN
1409GNULIB_WRITE
1410GNULIB_USLEEP
1411GNULIB_UNLINKAT
1412GNULIB_UNLINK
1413GNULIB_UNISTD_H_SIGPIPE
1414GNULIB_UNISTD_H_NONBLOCKING
1415GNULIB_TTYNAME_R
1416GNULIB_TRUNCATE
1417GNULIB_SYMLINKAT
1418GNULIB_SYMLINK
1419GNULIB_SLEEP
1420GNULIB_SETHOSTNAME
1421GNULIB_RMDIR
1422GNULIB_READLINKAT
1423GNULIB_READLINK
1424GNULIB_READ
1425GNULIB_PWRITE
1426GNULIB_PREAD
1427GNULIB_PIPE2
1428GNULIB_PIPE
1429GNULIB_LSEEK
1430GNULIB_LINKAT
1431GNULIB_LINK
1432GNULIB_LCHOWN
1433GNULIB_ISATTY
1434GNULIB_GROUP_MEMBER
1435GNULIB_GETUSERSHELL
1436GNULIB_GETPASS
1437GNULIB_GETPAGESIZE
1438GNULIB_GETOPT_POSIX
1439GNULIB_GETLOGIN_R
1440GNULIB_GETLOGIN
1441GNULIB_GETHOSTNAME
1442GNULIB_GETGROUPS
1443GNULIB_GETDTABLESIZE
1444GNULIB_GETDOMAINNAME
1445GNULIB_GETCWD
1446GNULIB_FTRUNCATE
1447GNULIB_FSYNC
1448GNULIB_FDATASYNC
1449GNULIB_FCHOWNAT
1450GNULIB_FCHDIR
1451GNULIB_FACCESSAT
1452GNULIB_EUIDACCESS
1453GNULIB_ENVIRON
1454GNULIB_DUP3
1455GNULIB_DUP2
1456GNULIB_DUP
1457GNULIB_COPY_FILE_RANGE
1458GNULIB_CLOSE
1459GNULIB_CHOWN
1460GNULIB_CHDIR
1461GNULIB_ACCESS
1462REPLACE_ITOLD
1463GL_GENERATE_FLOAT_H_FALSE
1464GL_GENERATE_FLOAT_H_TRUE
1465FLOAT_H
1466NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1467NEXT_FLOAT_H
1468NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1469NEXT_FCNTL_H
1470REPLACE_OPENAT
1471REPLACE_OPEN
1472REPLACE_FCNTL
1473REPLACE_CREAT
1474HAVE_OPENAT
1475HAVE_FCNTL
1476GNULIB_OPENAT
1477GNULIB_OPEN
1478GNULIB_NONBLOCKING
1479GNULIB_FCNTL
1480GNULIB_CREAT
1481EOVERFLOW_VALUE
1482EOVERFLOW_HIDDEN
1483ENOLINK_VALUE
1484ENOLINK_HIDDEN
1485EMULTIHOP_VALUE
1486EMULTIHOP_HIDDEN
1487GL_GENERATE_ERRNO_H_FALSE
1488GL_GENERATE_ERRNO_H_TRUE
1489ERRNO_H
1490NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1491NEXT_ERRNO_H
1492PRAGMA_COLUMNS
1493PRAGMA_SYSTEM_HEADER
1494INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1495INCLUDE_NEXT
1496HAVE_ALLOCA_H
1497GL_GENERATE_ALLOCA_H_FALSE
1498GL_GENERATE_ALLOCA_H_TRUE
1499ALLOCA_H
1500ALLOCA
1501LTALLOCA
1502GL_COND_LIBTOOL_FALSE
1503GL_COND_LIBTOOL_TRUE
1504ENABLE_DOXYGEN_FALSE
1505ENABLE_DOXYGEN_TRUE
1506BISON_EXTRA_FLAGS
1507BISON
1508LEXLIB
1509LEX_OUTPUT_ROOT
1510LEX
1511am__fastdepCXX_FALSE
1512am__fastdepCXX_TRUE
1513CXXDEPMODE
1514ac_ct_CXX
1515CXXFLAGS
1516CXX
1517RANLIB
1518ARFLAGS
1519AR
1520host_os
1521host_vendor
1522host_cpu
1523host
1524build_os
1525build_vendor
1526build_cpu
1527build
1528EGREP
1529GREP
1530CPP
1531am__fastdepCC_FALSE
1532am__fastdepCC_TRUE
1533CCDEPMODE
1534am__nodep
1535AMDEPBACKSLASH
1536AMDEP_FALSE
1537AMDEP_TRUE
1538am__include
1539DEPDIR
1540OBJEXT
1541EXEEXT
1542ac_ct_CC
1543CPPFLAGS
1544LDFLAGS
1545CFLAGS
1546CC
1547AM_BACKSLASH
1548AM_DEFAULT_VERBOSITY
1549AM_DEFAULT_V
1550AM_V
1551am__untar
1552am__tar
1553AMTAR
1554am__leading_dot
1555SET_MAKE
1556AWK
1557mkdir_p
1558MKDIR_P
1559INSTALL_STRIP_PROGRAM
1560STRIP
1561install_sh
1562MAKEINFO
1563AUTOHEADER
1564AUTOMAKE
1565AUTOCONF
1566ACLOCAL
1567VERSION
1568PACKAGE
1569CYGPATH_W
1570am__isrc
1571INSTALL_DATA
1572INSTALL_SCRIPT
1573INSTALL_PROGRAM
1574target_alias
1575host_alias
1576build_alias
1577LIBS
1578ECHO_T
1579ECHO_N
1580ECHO_C
1581DEFS
1582mandir
1583localedir
1584libdir
1585psdir
1586pdfdir
1587dvidir
1588htmldir
1589infodir
1590docdir
1591oldincludedir
1592includedir
1593runstatedir
1594localstatedir
1595sharedstatedir
1596sysconfdir
1597datadir
1598datarootdir
1599libexecdir
1600sbindir
1601bindir
1602program_transform_name
1603prefix
1604exec_prefix
1605PACKAGE_URL
1606PACKAGE_BUGREPORT
1607PACKAGE_STRING
1608PACKAGE_VERSION
1609PACKAGE_TARNAME
1610PACKAGE_NAME
1611PATH_SEPARATOR
1612SHELL
1613am__quote'
1614ac_subst_files=''
1615ac_user_opts='
1616enable_option_checking
1617enable_silent_rules
1618enable_devel
1619enable_dependency_tracking
1620enable_largefile
1621enable_c__20
1622enable_doxygen
1623enable_max_accsets
1624enable_cross_guesses
1625enable_shared
1626enable_static
1627with_pic
1628enable_fast_install
1629with_aix_soname
1630with_gnu_ld
1631with_sysroot
1632enable_libtool_lock
1633with_included_ltdl
1634with_ltdl_include
1635with_ltdl_lib
1636enable_ltdl_install
1637enable_Bsymbolic
1638enable_python
1639enable_debug
1640enable_optimizations
1641enable_assert
1642enable_glibcxx_debug
1643enable_warnings
1644'
1645      ac_precious_vars='build_alias
1646host_alias
1647target_alias
1648CC
1649CFLAGS
1650LDFLAGS
1651LIBS
1652CPPFLAGS
1653CPP
1654CXX
1655CXXFLAGS
1656CCC
1657BISON
1658CXXCPP
1659LT_SYS_LIBRARY_PATH
1660PYTHON'
1661ac_subdirs_all='buddy
1662ltdl'
1663
1664# Initialize some variables set by options.
1665ac_init_help=
1666ac_init_version=false
1667ac_unrecognized_opts=
1668ac_unrecognized_sep=
1669# The variables have the same names as the options, with
1670# dashes changed to underlines.
1671cache_file=/dev/null
1672exec_prefix=NONE
1673no_create=
1674no_recursion=
1675prefix=NONE
1676program_prefix=NONE
1677program_suffix=NONE
1678program_transform_name=s,x,x,
1679silent=
1680site=
1681srcdir=
1682verbose=
1683x_includes=NONE
1684x_libraries=NONE
1685
1686# Installation directory options.
1687# These are left unexpanded so users can "make install exec_prefix=/foo"
1688# and all the variables that are supposed to be based on exec_prefix
1689# by default will actually change.
1690# Use braces instead of parens because sh, perl, etc. also accept them.
1691# (The list follows the same order as the GNU Coding Standards.)
1692bindir='${exec_prefix}/bin'
1693sbindir='${exec_prefix}/sbin'
1694libexecdir='${exec_prefix}/libexec'
1695datarootdir='${prefix}/share'
1696datadir='${datarootdir}'
1697sysconfdir='${prefix}/etc'
1698sharedstatedir='${prefix}/com'
1699localstatedir='${prefix}/var'
1700runstatedir='${localstatedir}/run'
1701includedir='${prefix}/include'
1702oldincludedir='/usr/include'
1703docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1704infodir='${datarootdir}/info'
1705htmldir='${docdir}'
1706dvidir='${docdir}'
1707pdfdir='${docdir}'
1708psdir='${docdir}'
1709libdir='${exec_prefix}/lib'
1710localedir='${datarootdir}/locale'
1711mandir='${datarootdir}/man'
1712
1713ac_prev=
1714ac_dashdash=
1715for ac_option
1716do
1717  # If the previous option needs an argument, assign it.
1718  if test -n "$ac_prev"; then
1719    eval $ac_prev=\$ac_option
1720    ac_prev=
1721    continue
1722  fi
1723
1724  case $ac_option in
1725  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1726  *=)   ac_optarg= ;;
1727  *)    ac_optarg=yes ;;
1728  esac
1729
1730  # Accept the important Cygnus configure options, so we can diagnose typos.
1731
1732  case $ac_dashdash$ac_option in
1733  --)
1734    ac_dashdash=yes ;;
1735
1736  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1737    ac_prev=bindir ;;
1738  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1739    bindir=$ac_optarg ;;
1740
1741  -build | --build | --buil | --bui | --bu)
1742    ac_prev=build_alias ;;
1743  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1744    build_alias=$ac_optarg ;;
1745
1746  -cache-file | --cache-file | --cache-fil | --cache-fi \
1747  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1748    ac_prev=cache_file ;;
1749  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1750  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1751    cache_file=$ac_optarg ;;
1752
1753  --config-cache | -C)
1754    cache_file=config.cache ;;
1755
1756  -datadir | --datadir | --datadi | --datad)
1757    ac_prev=datadir ;;
1758  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1759    datadir=$ac_optarg ;;
1760
1761  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1762  | --dataroo | --dataro | --datar)
1763    ac_prev=datarootdir ;;
1764  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1765  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1766    datarootdir=$ac_optarg ;;
1767
1768  -disable-* | --disable-*)
1769    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1770    # Reject names that are not valid shell variable names.
1771    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1772      as_fn_error $? "invalid feature name: $ac_useropt"
1773    ac_useropt_orig=$ac_useropt
1774    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1775    case $ac_user_opts in
1776      *"
1777"enable_$ac_useropt"
1778"*) ;;
1779      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1780	 ac_unrecognized_sep=', ';;
1781    esac
1782    eval enable_$ac_useropt=no ;;
1783
1784  -docdir | --docdir | --docdi | --doc | --do)
1785    ac_prev=docdir ;;
1786  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1787    docdir=$ac_optarg ;;
1788
1789  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1790    ac_prev=dvidir ;;
1791  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1792    dvidir=$ac_optarg ;;
1793
1794  -enable-* | --enable-*)
1795    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1796    # Reject names that are not valid shell variable names.
1797    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1798      as_fn_error $? "invalid feature name: $ac_useropt"
1799    ac_useropt_orig=$ac_useropt
1800    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1801    case $ac_user_opts in
1802      *"
1803"enable_$ac_useropt"
1804"*) ;;
1805      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1806	 ac_unrecognized_sep=', ';;
1807    esac
1808    eval enable_$ac_useropt=\$ac_optarg ;;
1809
1810  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1811  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1812  | --exec | --exe | --ex)
1813    ac_prev=exec_prefix ;;
1814  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1815  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1816  | --exec=* | --exe=* | --ex=*)
1817    exec_prefix=$ac_optarg ;;
1818
1819  -gas | --gas | --ga | --g)
1820    # Obsolete; use --with-gas.
1821    with_gas=yes ;;
1822
1823  -help | --help | --hel | --he | -h)
1824    ac_init_help=long ;;
1825  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1826    ac_init_help=recursive ;;
1827  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1828    ac_init_help=short ;;
1829
1830  -host | --host | --hos | --ho)
1831    ac_prev=host_alias ;;
1832  -host=* | --host=* | --hos=* | --ho=*)
1833    host_alias=$ac_optarg ;;
1834
1835  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1836    ac_prev=htmldir ;;
1837  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1838  | --ht=*)
1839    htmldir=$ac_optarg ;;
1840
1841  -includedir | --includedir | --includedi | --included | --include \
1842  | --includ | --inclu | --incl | --inc)
1843    ac_prev=includedir ;;
1844  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1845  | --includ=* | --inclu=* | --incl=* | --inc=*)
1846    includedir=$ac_optarg ;;
1847
1848  -infodir | --infodir | --infodi | --infod | --info | --inf)
1849    ac_prev=infodir ;;
1850  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1851    infodir=$ac_optarg ;;
1852
1853  -libdir | --libdir | --libdi | --libd)
1854    ac_prev=libdir ;;
1855  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1856    libdir=$ac_optarg ;;
1857
1858  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1859  | --libexe | --libex | --libe)
1860    ac_prev=libexecdir ;;
1861  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1862  | --libexe=* | --libex=* | --libe=*)
1863    libexecdir=$ac_optarg ;;
1864
1865  -localedir | --localedir | --localedi | --localed | --locale)
1866    ac_prev=localedir ;;
1867  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1868    localedir=$ac_optarg ;;
1869
1870  -localstatedir | --localstatedir | --localstatedi | --localstated \
1871  | --localstate | --localstat | --localsta | --localst | --locals)
1872    ac_prev=localstatedir ;;
1873  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1874  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1875    localstatedir=$ac_optarg ;;
1876
1877  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1878    ac_prev=mandir ;;
1879  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1880    mandir=$ac_optarg ;;
1881
1882  -nfp | --nfp | --nf)
1883    # Obsolete; use --without-fp.
1884    with_fp=no ;;
1885
1886  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1887  | --no-cr | --no-c | -n)
1888    no_create=yes ;;
1889
1890  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1891  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1892    no_recursion=yes ;;
1893
1894  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1895  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1896  | --oldin | --oldi | --old | --ol | --o)
1897    ac_prev=oldincludedir ;;
1898  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1899  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1900  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1901    oldincludedir=$ac_optarg ;;
1902
1903  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1904    ac_prev=prefix ;;
1905  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1906    prefix=$ac_optarg ;;
1907
1908  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1909  | --program-pre | --program-pr | --program-p)
1910    ac_prev=program_prefix ;;
1911  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1912  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1913    program_prefix=$ac_optarg ;;
1914
1915  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1916  | --program-suf | --program-su | --program-s)
1917    ac_prev=program_suffix ;;
1918  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1919  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1920    program_suffix=$ac_optarg ;;
1921
1922  -program-transform-name | --program-transform-name \
1923  | --program-transform-nam | --program-transform-na \
1924  | --program-transform-n | --program-transform- \
1925  | --program-transform | --program-transfor \
1926  | --program-transfo | --program-transf \
1927  | --program-trans | --program-tran \
1928  | --progr-tra | --program-tr | --program-t)
1929    ac_prev=program_transform_name ;;
1930  -program-transform-name=* | --program-transform-name=* \
1931  | --program-transform-nam=* | --program-transform-na=* \
1932  | --program-transform-n=* | --program-transform-=* \
1933  | --program-transform=* | --program-transfor=* \
1934  | --program-transfo=* | --program-transf=* \
1935  | --program-trans=* | --program-tran=* \
1936  | --progr-tra=* | --program-tr=* | --program-t=*)
1937    program_transform_name=$ac_optarg ;;
1938
1939  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1940    ac_prev=pdfdir ;;
1941  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1942    pdfdir=$ac_optarg ;;
1943
1944  -psdir | --psdir | --psdi | --psd | --ps)
1945    ac_prev=psdir ;;
1946  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1947    psdir=$ac_optarg ;;
1948
1949  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950  | -silent | --silent | --silen | --sile | --sil)
1951    silent=yes ;;
1952
1953  -runstatedir | --runstatedir | --runstatedi | --runstated \
1954  | --runstate | --runstat | --runsta | --runst | --runs \
1955  | --run | --ru | --r)
1956    ac_prev=runstatedir ;;
1957  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1958  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1959  | --run=* | --ru=* | --r=*)
1960    runstatedir=$ac_optarg ;;
1961
1962  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1963    ac_prev=sbindir ;;
1964  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1965  | --sbi=* | --sb=*)
1966    sbindir=$ac_optarg ;;
1967
1968  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1969  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1970  | --sharedst | --shareds | --shared | --share | --shar \
1971  | --sha | --sh)
1972    ac_prev=sharedstatedir ;;
1973  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1974  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1975  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1976  | --sha=* | --sh=*)
1977    sharedstatedir=$ac_optarg ;;
1978
1979  -site | --site | --sit)
1980    ac_prev=site ;;
1981  -site=* | --site=* | --sit=*)
1982    site=$ac_optarg ;;
1983
1984  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1985    ac_prev=srcdir ;;
1986  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1987    srcdir=$ac_optarg ;;
1988
1989  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1990  | --syscon | --sysco | --sysc | --sys | --sy)
1991    ac_prev=sysconfdir ;;
1992  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1993  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1994    sysconfdir=$ac_optarg ;;
1995
1996  -target | --target | --targe | --targ | --tar | --ta | --t)
1997    ac_prev=target_alias ;;
1998  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1999    target_alias=$ac_optarg ;;
2000
2001  -v | -verbose | --verbose | --verbos | --verbo | --verb)
2002    verbose=yes ;;
2003
2004  -version | --version | --versio | --versi | --vers | -V)
2005    ac_init_version=: ;;
2006
2007  -with-* | --with-*)
2008    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2009    # Reject names that are not valid shell variable names.
2010    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2011      as_fn_error $? "invalid package name: $ac_useropt"
2012    ac_useropt_orig=$ac_useropt
2013    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2014    case $ac_user_opts in
2015      *"
2016"with_$ac_useropt"
2017"*) ;;
2018      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2019	 ac_unrecognized_sep=', ';;
2020    esac
2021    eval with_$ac_useropt=\$ac_optarg ;;
2022
2023  -without-* | --without-*)
2024    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2025    # Reject names that are not valid shell variable names.
2026    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2027      as_fn_error $? "invalid package name: $ac_useropt"
2028    ac_useropt_orig=$ac_useropt
2029    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2030    case $ac_user_opts in
2031      *"
2032"with_$ac_useropt"
2033"*) ;;
2034      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2035	 ac_unrecognized_sep=', ';;
2036    esac
2037    eval with_$ac_useropt=no ;;
2038
2039  --x)
2040    # Obsolete; use --with-x.
2041    with_x=yes ;;
2042
2043  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2044  | --x-incl | --x-inc | --x-in | --x-i)
2045    ac_prev=x_includes ;;
2046  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2047  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2048    x_includes=$ac_optarg ;;
2049
2050  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2051  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2052    ac_prev=x_libraries ;;
2053  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2054  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2055    x_libraries=$ac_optarg ;;
2056
2057  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2058Try \`$0 --help' for more information"
2059    ;;
2060
2061  *=*)
2062    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2063    # Reject names that are not valid shell variable names.
2064    case $ac_envvar in #(
2065      '' | [0-9]* | *[!_$as_cr_alnum]* )
2066      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2067    esac
2068    eval $ac_envvar=\$ac_optarg
2069    export $ac_envvar ;;
2070
2071  *)
2072    # FIXME: should be removed in autoconf 3.0.
2073    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2074    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2075      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2076    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2077    ;;
2078
2079  esac
2080done
2081
2082if test -n "$ac_prev"; then
2083  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2084  as_fn_error $? "missing argument to $ac_option"
2085fi
2086
2087if test -n "$ac_unrecognized_opts"; then
2088  case $enable_option_checking in
2089    no) ;;
2090    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2091    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2092  esac
2093fi
2094
2095# Check all directory arguments for consistency.
2096for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2097		datadir sysconfdir sharedstatedir localstatedir includedir \
2098		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2099		libdir localedir mandir runstatedir
2100do
2101  eval ac_val=\$$ac_var
2102  # Remove trailing slashes.
2103  case $ac_val in
2104    */ )
2105      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2106      eval $ac_var=\$ac_val;;
2107  esac
2108  # Be sure to have absolute directory names.
2109  case $ac_val in
2110    [\\/$]* | ?:[\\/]* )  continue;;
2111    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2112  esac
2113  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2114done
2115
2116# There might be people who depend on the old broken behavior: `$host'
2117# used to hold the argument of --host etc.
2118# FIXME: To remove some day.
2119build=$build_alias
2120host=$host_alias
2121target=$target_alias
2122
2123# FIXME: To remove some day.
2124if test "x$host_alias" != x; then
2125  if test "x$build_alias" = x; then
2126    cross_compiling=maybe
2127  elif test "x$build_alias" != "x$host_alias"; then
2128    cross_compiling=yes
2129  fi
2130fi
2131
2132ac_tool_prefix=
2133test -n "$host_alias" && ac_tool_prefix=$host_alias-
2134
2135test "$silent" = yes && exec 6>/dev/null
2136
2137
2138ac_pwd=`pwd` && test -n "$ac_pwd" &&
2139ac_ls_di=`ls -di .` &&
2140ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2141  as_fn_error $? "working directory cannot be determined"
2142test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2143  as_fn_error $? "pwd does not report name of working directory"
2144
2145
2146# Find the source files, if location was not specified.
2147if test -z "$srcdir"; then
2148  ac_srcdir_defaulted=yes
2149  # Try the directory containing this script, then the parent directory.
2150  ac_confdir=`$as_dirname -- "$as_myself" ||
2151$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2152	 X"$as_myself" : 'X\(//\)[^/]' \| \
2153	 X"$as_myself" : 'X\(//\)$' \| \
2154	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2155$as_echo X"$as_myself" |
2156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2157	    s//\1/
2158	    q
2159	  }
2160	  /^X\(\/\/\)[^/].*/{
2161	    s//\1/
2162	    q
2163	  }
2164	  /^X\(\/\/\)$/{
2165	    s//\1/
2166	    q
2167	  }
2168	  /^X\(\/\).*/{
2169	    s//\1/
2170	    q
2171	  }
2172	  s/.*/./; q'`
2173  srcdir=$ac_confdir
2174  if test ! -r "$srcdir/$ac_unique_file"; then
2175    srcdir=..
2176  fi
2177else
2178  ac_srcdir_defaulted=no
2179fi
2180if test ! -r "$srcdir/$ac_unique_file"; then
2181  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2182  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2183fi
2184ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2185ac_abs_confdir=`(
2186	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2187	pwd)`
2188# When building in place, set srcdir=.
2189if test "$ac_abs_confdir" = "$ac_pwd"; then
2190  srcdir=.
2191fi
2192# Remove unnecessary trailing slashes from srcdir.
2193# Double slashes in file names in object file debugging info
2194# mess up M-x gdb in Emacs.
2195case $srcdir in
2196*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2197esac
2198for ac_var in $ac_precious_vars; do
2199  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2200  eval ac_env_${ac_var}_value=\$${ac_var}
2201  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2202  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2203done
2204
2205#
2206# Report the --help message.
2207#
2208if test "$ac_init_help" = "long"; then
2209  # Omit some internal or obsolete options to make the list less imposing.
2210  # This message is too long to be a string in the A/UX 3.1 sh.
2211  cat <<_ACEOF
2212\`configure' configures spot 2.10.2 to adapt to many kinds of systems.
2213
2214Usage: $0 [OPTION]... [VAR=VALUE]...
2215
2216To assign environment variables (e.g., CC, CFLAGS...), specify them as
2217VAR=VALUE.  See below for descriptions of some of the useful variables.
2218
2219Defaults for the options are specified in brackets.
2220
2221Configuration:
2222  -h, --help              display this help and exit
2223      --help=short        display options specific to this package
2224      --help=recursive    display the short help of all the included packages
2225  -V, --version           display version information and exit
2226  -q, --quiet, --silent   do not print \`checking ...' messages
2227      --cache-file=FILE   cache test results in FILE [disabled]
2228  -C, --config-cache      alias for \`--cache-file=config.cache'
2229  -n, --no-create         do not create output files
2230      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2231
2232Installation directories:
2233  --prefix=PREFIX         install architecture-independent files in PREFIX
2234                          [$ac_default_prefix]
2235  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2236                          [PREFIX]
2237
2238By default, \`make install' will install all the files in
2239\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2240an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2241for instance \`--prefix=\$HOME'.
2242
2243For better control, use the options below.
2244
2245Fine tuning of the installation directories:
2246  --bindir=DIR            user executables [EPREFIX/bin]
2247  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2248  --libexecdir=DIR        program executables [EPREFIX/libexec]
2249  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2250  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2251  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2252  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2253  --libdir=DIR            object code libraries [EPREFIX/lib]
2254  --includedir=DIR        C header files [PREFIX/include]
2255  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2256  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2257  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2258  --infodir=DIR           info documentation [DATAROOTDIR/info]
2259  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2260  --mandir=DIR            man documentation [DATAROOTDIR/man]
2261  --docdir=DIR            documentation root [DATAROOTDIR/doc/spot]
2262  --htmldir=DIR           html documentation [DOCDIR]
2263  --dvidir=DIR            dvi documentation [DOCDIR]
2264  --pdfdir=DIR            pdf documentation [DOCDIR]
2265  --psdir=DIR             ps documentation [DOCDIR]
2266_ACEOF
2267
2268  cat <<\_ACEOF
2269
2270Program names:
2271  --program-prefix=PREFIX            prepend PREFIX to installed program names
2272  --program-suffix=SUFFIX            append SUFFIX to installed program names
2273  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2274
2275System types:
2276  --build=BUILD     configure for building on BUILD [guessed]
2277  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2278_ACEOF
2279fi
2280
2281if test -n "$ac_init_help"; then
2282  case $ac_init_help in
2283     short | recursive ) echo "Configuration of spot 2.10.2:";;
2284   esac
2285  cat <<\_ACEOF
2286
2287Optional Features:
2288  --disable-option-checking  ignore unrecognized --enable/--with options
2289  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2290  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2291  --enable-silent-rules   less verbose build output (undo: "make V=1")
2292  --disable-silent-rules  verbose build output (undo: "make V=0")
2293  --enable-devel          turn on useful developer options
2294  --enable-dependency-tracking
2295                          do not reject slow dependency extractors
2296  --disable-dependency-tracking
2297                          speeds up one-time build
2298  --disable-largefile     omit support for large files
2299  --enable-c++20          Compile in C++20 mode.
2300  --enable-doxygen        enable generation of Doxygen documentation (requires
2301                          Doxygen)
2302  --enable-max-accsets=N  Support up to N acceptance sets
2303  --enable-cross-guesses={conservative|risky}
2304                          specify policy for cross-compilation guesses
2305  --enable-shared[=PKGS]  build shared libraries [default=yes]
2306  --enable-static[=PKGS]  build static libraries [default=yes]
2307  --enable-fast-install[=PKGS]
2308                          optimize for fast installation [default=yes]
2309  --disable-libtool-lock  avoid locking (might break parallel builds)
2310  --enable-ltdl-install   install libltdl
2311  --disable-Bsymbolic     disable linking with -Bsymbolic
2312  --disable-python        do not compile Python bindings
2313  --enable-debug          enable debugging symbols
2314  --disable-optimizations turn off aggressive optimizations
2315  --enable-assert         turn on assertions
2316  --enable-glibcxx-debug  turn on use the libstdc++ debug mode (see README)
2317  --enable-warnings       enable a lot of compiler warnings
2318
2319Optional Packages:
2320  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2321  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2322  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2323                          both]
2324  --with-aix-soname=aix|svr4|both
2325                          shared library versioning (aka "SONAME") variant to
2326                          provide on AIX, [default=aix].
2327  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2328  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2329                          compiler's sysroot if not specified).
2330  --with-included-ltdl    use the GNU ltdl sources included here
2331  --with-ltdl-include=DIR use the ltdl headers installed in DIR
2332  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
2333
2334Some influential environment variables:
2335  CC          C compiler command
2336  CFLAGS      C compiler flags
2337  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2338              nonstandard directory <lib dir>
2339  LIBS        libraries to pass to the linker, e.g. -l<library>
2340  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2341              you have headers in a nonstandard directory <include dir>
2342  CPP         C preprocessor
2343  CXX         C++ compiler command
2344  CXXFLAGS    C++ compiler flags
2345  BISON       Bison parser generator
2346  CXXCPP      C++ preprocessor
2347  LT_SYS_LIBRARY_PATH
2348              User-defined run-time library search path.
2349  PYTHON      the Python interpreter
2350
2351Use these variables to override the choices made by `configure' or to help
2352it to find libraries and programs with nonstandard names/locations.
2353
2354Report bugs to <spot@lrde.epita.fr>.
2355_ACEOF
2356ac_status=$?
2357fi
2358
2359if test "$ac_init_help" = "recursive"; then
2360  # If there are subdirs, report their specific --help.
2361  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2362    test -d "$ac_dir" ||
2363      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2364      continue
2365    ac_builddir=.
2366
2367case "$ac_dir" in
2368.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2369*)
2370  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2371  # A ".." for each directory in $ac_dir_suffix.
2372  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2373  case $ac_top_builddir_sub in
2374  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2375  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2376  esac ;;
2377esac
2378ac_abs_top_builddir=$ac_pwd
2379ac_abs_builddir=$ac_pwd$ac_dir_suffix
2380# for backward compatibility:
2381ac_top_builddir=$ac_top_build_prefix
2382
2383case $srcdir in
2384  .)  # We are building in place.
2385    ac_srcdir=.
2386    ac_top_srcdir=$ac_top_builddir_sub
2387    ac_abs_top_srcdir=$ac_pwd ;;
2388  [\\/]* | ?:[\\/]* )  # Absolute name.
2389    ac_srcdir=$srcdir$ac_dir_suffix;
2390    ac_top_srcdir=$srcdir
2391    ac_abs_top_srcdir=$srcdir ;;
2392  *) # Relative name.
2393    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2394    ac_top_srcdir=$ac_top_build_prefix$srcdir
2395    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2396esac
2397ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2398
2399    cd "$ac_dir" || { ac_status=$?; continue; }
2400    # Check for guested configure.
2401    if test -f "$ac_srcdir/configure.gnu"; then
2402      echo &&
2403      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2404    elif test -f "$ac_srcdir/configure"; then
2405      echo &&
2406      $SHELL "$ac_srcdir/configure" --help=recursive
2407    else
2408      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2409    fi || ac_status=$?
2410    cd "$ac_pwd" || { ac_status=$?; break; }
2411  done
2412fi
2413
2414test -n "$ac_init_help" && exit $ac_status
2415if $ac_init_version; then
2416  cat <<\_ACEOF
2417spot configure 2.10.2
2418generated by GNU Autoconf 2.69
2419
2420Copyright (C) 2012 Free Software Foundation, Inc.
2421This configure script is free software; the Free Software Foundation
2422gives unlimited permission to copy, distribute and modify it.
2423_ACEOF
2424  exit
2425fi
2426
2427## ------------------------ ##
2428## Autoconf initialization. ##
2429## ------------------------ ##
2430
2431# ac_fn_c_try_compile LINENO
2432# --------------------------
2433# Try to compile conftest.$ac_ext, and return whether this succeeded.
2434ac_fn_c_try_compile ()
2435{
2436  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437  rm -f conftest.$ac_objext
2438  if { { ac_try="$ac_compile"
2439case "(($ac_try" in
2440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441  *) ac_try_echo=$ac_try;;
2442esac
2443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2444$as_echo "$ac_try_echo"; } >&5
2445  (eval "$ac_compile") 2>conftest.err
2446  ac_status=$?
2447  if test -s conftest.err; then
2448    grep -v '^ *+' conftest.err >conftest.er1
2449    cat conftest.er1 >&5
2450    mv -f conftest.er1 conftest.err
2451  fi
2452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2453  test $ac_status = 0; } && {
2454	 test -z "$ac_c_werror_flag" ||
2455	 test ! -s conftest.err
2456       } && test -s conftest.$ac_objext; then :
2457  ac_retval=0
2458else
2459  $as_echo "$as_me: failed program was:" >&5
2460sed 's/^/| /' conftest.$ac_ext >&5
2461
2462	ac_retval=1
2463fi
2464  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2465  as_fn_set_status $ac_retval
2466
2467} # ac_fn_c_try_compile
2468
2469# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2470# -------------------------------------------------------
2471# Tests whether HEADER exists and can be compiled using the include files in
2472# INCLUDES, setting the cache variable VAR accordingly.
2473ac_fn_c_check_header_compile ()
2474{
2475  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2477$as_echo_n "checking for $2... " >&6; }
2478if eval \${$3+:} false; then :
2479  $as_echo_n "(cached) " >&6
2480else
2481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482/* end confdefs.h.  */
2483$4
2484#include <$2>
2485_ACEOF
2486if ac_fn_c_try_compile "$LINENO"; then :
2487  eval "$3=yes"
2488else
2489  eval "$3=no"
2490fi
2491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492fi
2493eval ac_res=\$$3
2494	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2495$as_echo "$ac_res" >&6; }
2496  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2497
2498} # ac_fn_c_check_header_compile
2499
2500# ac_fn_c_try_cpp LINENO
2501# ----------------------
2502# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2503ac_fn_c_try_cpp ()
2504{
2505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506  if { { ac_try="$ac_cpp conftest.$ac_ext"
2507case "(($ac_try" in
2508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509  *) ac_try_echo=$ac_try;;
2510esac
2511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2512$as_echo "$ac_try_echo"; } >&5
2513  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2514  ac_status=$?
2515  if test -s conftest.err; then
2516    grep -v '^ *+' conftest.err >conftest.er1
2517    cat conftest.er1 >&5
2518    mv -f conftest.er1 conftest.err
2519  fi
2520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521  test $ac_status = 0; } > conftest.i && {
2522	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2523	 test ! -s conftest.err
2524       }; then :
2525  ac_retval=0
2526else
2527  $as_echo "$as_me: failed program was:" >&5
2528sed 's/^/| /' conftest.$ac_ext >&5
2529
2530    ac_retval=1
2531fi
2532  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533  as_fn_set_status $ac_retval
2534
2535} # ac_fn_c_try_cpp
2536
2537# ac_fn_c_try_run LINENO
2538# ----------------------
2539# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2540# that executables *can* be run.
2541ac_fn_c_try_run ()
2542{
2543  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544  if { { ac_try="$ac_link"
2545case "(($ac_try" in
2546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547  *) ac_try_echo=$ac_try;;
2548esac
2549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2550$as_echo "$ac_try_echo"; } >&5
2551  (eval "$ac_link") 2>&5
2552  ac_status=$?
2553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2554  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2555  { { case "(($ac_try" in
2556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557  *) ac_try_echo=$ac_try;;
2558esac
2559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2560$as_echo "$ac_try_echo"; } >&5
2561  (eval "$ac_try") 2>&5
2562  ac_status=$?
2563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2564  test $ac_status = 0; }; }; then :
2565  ac_retval=0
2566else
2567  $as_echo "$as_me: program exited with status $ac_status" >&5
2568       $as_echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571       ac_retval=$ac_status
2572fi
2573  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2575  as_fn_set_status $ac_retval
2576
2577} # ac_fn_c_try_run
2578
2579# ac_fn_cxx_try_compile LINENO
2580# ----------------------------
2581# Try to compile conftest.$ac_ext, and return whether this succeeded.
2582ac_fn_cxx_try_compile ()
2583{
2584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585  rm -f conftest.$ac_objext
2586  if { { ac_try="$ac_compile"
2587case "(($ac_try" in
2588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589  *) ac_try_echo=$ac_try;;
2590esac
2591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2592$as_echo "$ac_try_echo"; } >&5
2593  (eval "$ac_compile") 2>conftest.err
2594  ac_status=$?
2595  if test -s conftest.err; then
2596    grep -v '^ *+' conftest.err >conftest.er1
2597    cat conftest.er1 >&5
2598    mv -f conftest.er1 conftest.err
2599  fi
2600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2601  test $ac_status = 0; } && {
2602	 test -z "$ac_cxx_werror_flag" ||
2603	 test ! -s conftest.err
2604       } && test -s conftest.$ac_objext; then :
2605  ac_retval=0
2606else
2607  $as_echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610	ac_retval=1
2611fi
2612  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2613  as_fn_set_status $ac_retval
2614
2615} # ac_fn_cxx_try_compile
2616
2617# ac_fn_c_try_link LINENO
2618# -----------------------
2619# Try to link conftest.$ac_ext, and return whether this succeeded.
2620ac_fn_c_try_link ()
2621{
2622  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2623  rm -f conftest.$ac_objext conftest$ac_exeext
2624  if { { ac_try="$ac_link"
2625case "(($ac_try" in
2626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627  *) ac_try_echo=$ac_try;;
2628esac
2629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630$as_echo "$ac_try_echo"; } >&5
2631  (eval "$ac_link") 2>conftest.err
2632  ac_status=$?
2633  if test -s conftest.err; then
2634    grep -v '^ *+' conftest.err >conftest.er1
2635    cat conftest.er1 >&5
2636    mv -f conftest.er1 conftest.err
2637  fi
2638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639  test $ac_status = 0; } && {
2640	 test -z "$ac_c_werror_flag" ||
2641	 test ! -s conftest.err
2642       } && test -s conftest$ac_exeext && {
2643	 test "$cross_compiling" = yes ||
2644	 test -x conftest$ac_exeext
2645       }; then :
2646  ac_retval=0
2647else
2648  $as_echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651	ac_retval=1
2652fi
2653  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2654  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2655  # interfere with the next link command; also delete a directory that is
2656  # left behind by Apple's compiler.  We do this before executing the actions.
2657  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659  as_fn_set_status $ac_retval
2660
2661} # ac_fn_c_try_link
2662
2663# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2664# --------------------------------------------
2665# Tries to find the compile-time value of EXPR in a program that includes
2666# INCLUDES, setting VAR accordingly. Returns whether the value could be
2667# computed
2668ac_fn_c_compute_int ()
2669{
2670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2671  if test "$cross_compiling" = yes; then
2672    # Depending upon the size, compute the lo and hi bounds.
2673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674/* end confdefs.h.  */
2675$4
2676int
2677main ()
2678{
2679static int test_array [1 - 2 * !(($2) >= 0)];
2680test_array [0] = 0;
2681return test_array [0];
2682
2683  ;
2684  return 0;
2685}
2686_ACEOF
2687if ac_fn_c_try_compile "$LINENO"; then :
2688  ac_lo=0 ac_mid=0
2689  while :; do
2690    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691/* end confdefs.h.  */
2692$4
2693int
2694main ()
2695{
2696static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2697test_array [0] = 0;
2698return test_array [0];
2699
2700  ;
2701  return 0;
2702}
2703_ACEOF
2704if ac_fn_c_try_compile "$LINENO"; then :
2705  ac_hi=$ac_mid; break
2706else
2707  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2708			if test $ac_lo -le $ac_mid; then
2709			  ac_lo= ac_hi=
2710			  break
2711			fi
2712			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2713fi
2714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715  done
2716else
2717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718/* end confdefs.h.  */
2719$4
2720int
2721main ()
2722{
2723static int test_array [1 - 2 * !(($2) < 0)];
2724test_array [0] = 0;
2725return test_array [0];
2726
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731if ac_fn_c_try_compile "$LINENO"; then :
2732  ac_hi=-1 ac_mid=-1
2733  while :; do
2734    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735/* end confdefs.h.  */
2736$4
2737int
2738main ()
2739{
2740static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2741test_array [0] = 0;
2742return test_array [0];
2743
2744  ;
2745  return 0;
2746}
2747_ACEOF
2748if ac_fn_c_try_compile "$LINENO"; then :
2749  ac_lo=$ac_mid; break
2750else
2751  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2752			if test $ac_mid -le $ac_hi; then
2753			  ac_lo= ac_hi=
2754			  break
2755			fi
2756			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2757fi
2758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759  done
2760else
2761  ac_lo= ac_hi=
2762fi
2763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764fi
2765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766# Binary search between lo and hi bounds.
2767while test "x$ac_lo" != "x$ac_hi"; do
2768  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770/* end confdefs.h.  */
2771$4
2772int
2773main ()
2774{
2775static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2776test_array [0] = 0;
2777return test_array [0];
2778
2779  ;
2780  return 0;
2781}
2782_ACEOF
2783if ac_fn_c_try_compile "$LINENO"; then :
2784  ac_hi=$ac_mid
2785else
2786  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2787fi
2788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789done
2790case $ac_lo in #((
2791?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2792'') ac_retval=1 ;;
2793esac
2794  else
2795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796/* end confdefs.h.  */
2797$4
2798static long int longval () { return $2; }
2799static unsigned long int ulongval () { return $2; }
2800#include <stdio.h>
2801#include <stdlib.h>
2802int
2803main ()
2804{
2805
2806  FILE *f = fopen ("conftest.val", "w");
2807  if (! f)
2808    return 1;
2809  if (($2) < 0)
2810    {
2811      long int i = longval ();
2812      if (i != ($2))
2813	return 1;
2814      fprintf (f, "%ld", i);
2815    }
2816  else
2817    {
2818      unsigned long int i = ulongval ();
2819      if (i != ($2))
2820	return 1;
2821      fprintf (f, "%lu", i);
2822    }
2823  /* Do not output a trailing newline, as this causes \r\n confusion
2824     on some platforms.  */
2825  return ferror (f) || fclose (f) != 0;
2826
2827  ;
2828  return 0;
2829}
2830_ACEOF
2831if ac_fn_c_try_run "$LINENO"; then :
2832  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2833else
2834  ac_retval=1
2835fi
2836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2837  conftest.$ac_objext conftest.beam conftest.$ac_ext
2838rm -f conftest.val
2839
2840  fi
2841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842  as_fn_set_status $ac_retval
2843
2844} # ac_fn_c_compute_int
2845
2846# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2847# -------------------------------------------
2848# Tests whether TYPE exists after having included INCLUDES, setting cache
2849# variable VAR accordingly.
2850ac_fn_c_check_type ()
2851{
2852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2854$as_echo_n "checking for $2... " >&6; }
2855if eval \${$3+:} false; then :
2856  $as_echo_n "(cached) " >&6
2857else
2858  eval "$3=no"
2859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860/* end confdefs.h.  */
2861$4
2862int
2863main ()
2864{
2865if (sizeof ($2))
2866	 return 0;
2867  ;
2868  return 0;
2869}
2870_ACEOF
2871if ac_fn_c_try_compile "$LINENO"; then :
2872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873/* end confdefs.h.  */
2874$4
2875int
2876main ()
2877{
2878if (sizeof (($2)))
2879	    return 0;
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884if ac_fn_c_try_compile "$LINENO"; then :
2885
2886else
2887  eval "$3=yes"
2888fi
2889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890fi
2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892fi
2893eval ac_res=\$$3
2894	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2895$as_echo "$ac_res" >&6; }
2896  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2897
2898} # ac_fn_c_check_type
2899
2900# ac_fn_c_check_func LINENO FUNC VAR
2901# ----------------------------------
2902# Tests whether FUNC exists, setting the cache variable VAR accordingly
2903ac_fn_c_check_func ()
2904{
2905  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2907$as_echo_n "checking for $2... " >&6; }
2908if eval \${$3+:} false; then :
2909  $as_echo_n "(cached) " >&6
2910else
2911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2912/* end confdefs.h.  */
2913/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2914   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2915#define $2 innocuous_$2
2916
2917/* System header to define __stub macros and hopefully few prototypes,
2918    which can conflict with char $2 (); below.
2919    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920    <limits.h> exists even on freestanding compilers.  */
2921
2922#ifdef __STDC__
2923# include <limits.h>
2924#else
2925# include <assert.h>
2926#endif
2927
2928#undef $2
2929
2930/* Override any GCC internal prototype to avoid an error.
2931   Use char because int might match the return type of a GCC
2932   builtin and then its argument prototype would still apply.  */
2933#ifdef __cplusplus
2934extern "C"
2935#endif
2936char $2 ();
2937/* The GNU C library defines this for functions which it implements
2938    to always fail with ENOSYS.  Some functions are actually named
2939    something starting with __ and the normal name is an alias.  */
2940#if defined __stub_$2 || defined __stub___$2
2941choke me
2942#endif
2943
2944int
2945main ()
2946{
2947return $2 ();
2948  ;
2949  return 0;
2950}
2951_ACEOF
2952if ac_fn_c_try_link "$LINENO"; then :
2953  eval "$3=yes"
2954else
2955  eval "$3=no"
2956fi
2957rm -f core conftest.err conftest.$ac_objext \
2958    conftest$ac_exeext conftest.$ac_ext
2959fi
2960eval ac_res=\$$3
2961	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2962$as_echo "$ac_res" >&6; }
2963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2964
2965} # ac_fn_c_check_func
2966
2967# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2968# ---------------------------------------------
2969# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2970# accordingly.
2971ac_fn_c_check_decl ()
2972{
2973  ac_save_ac_compile="$ac_compile"
2974  if test -n "$ac_compile_for_check_decl"; then
2975    ac_compile="$ac_compile_for_check_decl"
2976  fi
2977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2978  as_decl_name=`echo $2|sed 's/ *(.*//'`
2979  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2981$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2982if eval \${$3+:} false; then :
2983  $as_echo_n "(cached) " >&6
2984else
2985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986/* end confdefs.h.  */
2987$4
2988int
2989main ()
2990{
2991#ifndef $as_decl_name
2992#ifdef __cplusplus
2993  (void) $as_decl_use;
2994#else
2995  (void) $as_decl_name;
2996#endif
2997#endif
2998
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003if ac_fn_c_try_compile "$LINENO"; then :
3004  eval "$3=yes"
3005else
3006  eval "$3=no"
3007fi
3008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009fi
3010eval ac_res=\$$3
3011	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3012$as_echo "$ac_res" >&6; }
3013  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3014  ac_compile="$ac_save_ac_compile"
3015
3016} # ac_fn_c_check_decl
3017
3018# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3019# -------------------------------------------------------
3020# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3021# the include files in INCLUDES and setting the cache variable VAR
3022# accordingly.
3023ac_fn_c_check_header_mongrel ()
3024{
3025  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3026  if eval \${$3+:} false; then :
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3028$as_echo_n "checking for $2... " >&6; }
3029if eval \${$3+:} false; then :
3030  $as_echo_n "(cached) " >&6
3031fi
3032eval ac_res=\$$3
3033	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3034$as_echo "$ac_res" >&6; }
3035else
3036  # Is the header compilable?
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3038$as_echo_n "checking $2 usability... " >&6; }
3039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040/* end confdefs.h.  */
3041$4
3042#include <$2>
3043_ACEOF
3044if ac_fn_c_try_compile "$LINENO"; then :
3045  ac_header_compiler=yes
3046else
3047  ac_header_compiler=no
3048fi
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3051$as_echo "$ac_header_compiler" >&6; }
3052
3053# Is the header present?
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3055$as_echo_n "checking $2 presence... " >&6; }
3056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057/* end confdefs.h.  */
3058#include <$2>
3059_ACEOF
3060if ac_fn_c_try_cpp "$LINENO"; then :
3061  ac_header_preproc=yes
3062else
3063  ac_header_preproc=no
3064fi
3065rm -f conftest.err conftest.i conftest.$ac_ext
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3067$as_echo "$ac_header_preproc" >&6; }
3068
3069# So?  What about this header?
3070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3071  yes:no: )
3072    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3073$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3074    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3075$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3076    ;;
3077  no:yes:* )
3078    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3079$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3080    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3081$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3083$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3085$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3087$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3088( $as_echo "## --------------------------------- ##
3089## Report this to spot@lrde.epita.fr ##
3090## --------------------------------- ##"
3091     ) | sed "s/^/$as_me: WARNING:     /" >&2
3092    ;;
3093esac
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3095$as_echo_n "checking for $2... " >&6; }
3096if eval \${$3+:} false; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  eval "$3=\$ac_header_compiler"
3100fi
3101eval ac_res=\$$3
3102	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3103$as_echo "$ac_res" >&6; }
3104fi
3105  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3106
3107} # ac_fn_c_check_header_mongrel
3108
3109# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3110# ----------------------------------------------------
3111# Tries to find if the field MEMBER exists in type AGGR, after including
3112# INCLUDES, setting cache variable VAR accordingly.
3113ac_fn_c_check_member ()
3114{
3115  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3117$as_echo_n "checking for $2.$3... " >&6; }
3118if eval \${$4+:} false; then :
3119  $as_echo_n "(cached) " >&6
3120else
3121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122/* end confdefs.h.  */
3123$5
3124int
3125main ()
3126{
3127static $2 ac_aggr;
3128if (ac_aggr.$3)
3129return 0;
3130  ;
3131  return 0;
3132}
3133_ACEOF
3134if ac_fn_c_try_compile "$LINENO"; then :
3135  eval "$4=yes"
3136else
3137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138/* end confdefs.h.  */
3139$5
3140int
3141main ()
3142{
3143static $2 ac_aggr;
3144if (sizeof ac_aggr.$3)
3145return 0;
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150if ac_fn_c_try_compile "$LINENO"; then :
3151  eval "$4=yes"
3152else
3153  eval "$4=no"
3154fi
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156fi
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158fi
3159eval ac_res=\$$4
3160	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3161$as_echo "$ac_res" >&6; }
3162  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3163
3164} # ac_fn_c_check_member
3165
3166# ac_fn_cxx_try_link LINENO
3167# -------------------------
3168# Try to link conftest.$ac_ext, and return whether this succeeded.
3169ac_fn_cxx_try_link ()
3170{
3171  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3172  rm -f conftest.$ac_objext conftest$ac_exeext
3173  if { { ac_try="$ac_link"
3174case "(($ac_try" in
3175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176  *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179$as_echo "$ac_try_echo"; } >&5
3180  (eval "$ac_link") 2>conftest.err
3181  ac_status=$?
3182  if test -s conftest.err; then
3183    grep -v '^ *+' conftest.err >conftest.er1
3184    cat conftest.er1 >&5
3185    mv -f conftest.er1 conftest.err
3186  fi
3187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188  test $ac_status = 0; } && {
3189	 test -z "$ac_cxx_werror_flag" ||
3190	 test ! -s conftest.err
3191       } && test -s conftest$ac_exeext && {
3192	 test "$cross_compiling" = yes ||
3193	 test -x conftest$ac_exeext
3194       }; then :
3195  ac_retval=0
3196else
3197  $as_echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200	ac_retval=1
3201fi
3202  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3203  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3204  # interfere with the next link command; also delete a directory that is
3205  # left behind by Apple's compiler.  We do this before executing the actions.
3206  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3207  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3208  as_fn_set_status $ac_retval
3209
3210} # ac_fn_cxx_try_link
3211
3212# ac_fn_cxx_try_cpp LINENO
3213# ------------------------
3214# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3215ac_fn_cxx_try_cpp ()
3216{
3217  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3218  if { { ac_try="$ac_cpp conftest.$ac_ext"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3226  ac_status=$?
3227  if test -s conftest.err; then
3228    grep -v '^ *+' conftest.err >conftest.er1
3229    cat conftest.er1 >&5
3230    mv -f conftest.er1 conftest.err
3231  fi
3232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233  test $ac_status = 0; } > conftest.i && {
3234	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3235	 test ! -s conftest.err
3236       }; then :
3237  ac_retval=0
3238else
3239  $as_echo "$as_me: failed program was:" >&5
3240sed 's/^/| /' conftest.$ac_ext >&5
3241
3242    ac_retval=1
3243fi
3244  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3245  as_fn_set_status $ac_retval
3246
3247} # ac_fn_cxx_try_cpp
3248
3249# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3250# ---------------------------------------------------------
3251# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3252# the include files in INCLUDES and setting the cache variable VAR
3253# accordingly.
3254ac_fn_cxx_check_header_mongrel ()
3255{
3256  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3257  if eval \${$3+:} false; then :
3258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3259$as_echo_n "checking for $2... " >&6; }
3260if eval \${$3+:} false; then :
3261  $as_echo_n "(cached) " >&6
3262fi
3263eval ac_res=\$$3
3264	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3265$as_echo "$ac_res" >&6; }
3266else
3267  # Is the header compilable?
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3269$as_echo_n "checking $2 usability... " >&6; }
3270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h.  */
3272$4
3273#include <$2>
3274_ACEOF
3275if ac_fn_cxx_try_compile "$LINENO"; then :
3276  ac_header_compiler=yes
3277else
3278  ac_header_compiler=no
3279fi
3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3282$as_echo "$ac_header_compiler" >&6; }
3283
3284# Is the header present?
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3286$as_echo_n "checking $2 presence... " >&6; }
3287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288/* end confdefs.h.  */
3289#include <$2>
3290_ACEOF
3291if ac_fn_cxx_try_cpp "$LINENO"; then :
3292  ac_header_preproc=yes
3293else
3294  ac_header_preproc=no
3295fi
3296rm -f conftest.err conftest.i conftest.$ac_ext
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3298$as_echo "$ac_header_preproc" >&6; }
3299
3300# So?  What about this header?
3301case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3302  yes:no: )
3303    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3304$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3305    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3306$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3307    ;;
3308  no:yes:* )
3309    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3310$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3311    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3312$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3313    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3314$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3315    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3316$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3317    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3318$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3319( $as_echo "## --------------------------------- ##
3320## Report this to spot@lrde.epita.fr ##
3321## --------------------------------- ##"
3322     ) | sed "s/^/$as_me: WARNING:     /" >&2
3323    ;;
3324esac
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3326$as_echo_n "checking for $2... " >&6; }
3327if eval \${$3+:} false; then :
3328  $as_echo_n "(cached) " >&6
3329else
3330  eval "$3=\$ac_header_compiler"
3331fi
3332eval ac_res=\$$3
3333	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3334$as_echo "$ac_res" >&6; }
3335fi
3336  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3337
3338} # ac_fn_cxx_check_header_mongrel
3339
3340# ac_fn_cxx_check_func LINENO FUNC VAR
3341# ------------------------------------
3342# Tests whether FUNC exists, setting the cache variable VAR accordingly
3343ac_fn_cxx_check_func ()
3344{
3345  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3347$as_echo_n "checking for $2... " >&6; }
3348if eval \${$3+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352/* end confdefs.h.  */
3353/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3354   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3355#define $2 innocuous_$2
3356
3357/* System header to define __stub macros and hopefully few prototypes,
3358    which can conflict with char $2 (); below.
3359    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360    <limits.h> exists even on freestanding compilers.  */
3361
3362#ifdef __STDC__
3363# include <limits.h>
3364#else
3365# include <assert.h>
3366#endif
3367
3368#undef $2
3369
3370/* Override any GCC internal prototype to avoid an error.
3371   Use char because int might match the return type of a GCC
3372   builtin and then its argument prototype would still apply.  */
3373#ifdef __cplusplus
3374extern "C"
3375#endif
3376char $2 ();
3377/* The GNU C library defines this for functions which it implements
3378    to always fail with ENOSYS.  Some functions are actually named
3379    something starting with __ and the normal name is an alias.  */
3380#if defined __stub_$2 || defined __stub___$2
3381choke me
3382#endif
3383
3384int
3385main ()
3386{
3387return $2 ();
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392if ac_fn_cxx_try_link "$LINENO"; then :
3393  eval "$3=yes"
3394else
3395  eval "$3=no"
3396fi
3397rm -f core conftest.err conftest.$ac_objext \
3398    conftest$ac_exeext conftest.$ac_ext
3399fi
3400eval ac_res=\$$3
3401	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3402$as_echo "$ac_res" >&6; }
3403  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3404
3405} # ac_fn_cxx_check_func
3406
3407# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
3408# ---------------------------------------------------------
3409# Tests whether HEADER exists and can be compiled using the include files in
3410# INCLUDES, setting the cache variable VAR accordingly.
3411ac_fn_cxx_check_header_compile ()
3412{
3413  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3415$as_echo_n "checking for $2... " >&6; }
3416if eval \${$3+:} false; then :
3417  $as_echo_n "(cached) " >&6
3418else
3419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420/* end confdefs.h.  */
3421$4
3422#include <$2>
3423_ACEOF
3424if ac_fn_cxx_try_compile "$LINENO"; then :
3425  eval "$3=yes"
3426else
3427  eval "$3=no"
3428fi
3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430fi
3431eval ac_res=\$$3
3432	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3433$as_echo "$ac_res" >&6; }
3434  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3435
3436} # ac_fn_cxx_check_header_compile
3437
3438# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
3439# -----------------------------------------------
3440# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3441# accordingly.
3442ac_fn_cxx_check_decl ()
3443{
3444  ac_save_ac_compile="$ac_compile"
3445  if test -n "$ac_compile_for_check_decl"; then
3446    ac_compile="$ac_compile_for_check_decl"
3447  fi
3448  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3449  as_decl_name=`echo $2|sed 's/ *(.*//'`
3450  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3452$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3453if eval \${$3+:} false; then :
3454  $as_echo_n "(cached) " >&6
3455else
3456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h.  */
3458$4
3459int
3460main ()
3461{
3462#ifndef $as_decl_name
3463#ifdef __cplusplus
3464  (void) $as_decl_use;
3465#else
3466  (void) $as_decl_name;
3467#endif
3468#endif
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474if ac_fn_cxx_try_compile "$LINENO"; then :
3475  eval "$3=yes"
3476else
3477  eval "$3=no"
3478fi
3479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480fi
3481eval ac_res=\$$3
3482	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3483$as_echo "$ac_res" >&6; }
3484  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3485  ac_compile="$ac_save_ac_compile"
3486
3487} # ac_fn_cxx_check_decl
3488
3489# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
3490# ---------------------------------------------
3491# Tests whether TYPE exists after having included INCLUDES, setting cache
3492# variable VAR accordingly.
3493ac_fn_cxx_check_type ()
3494{
3495  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3497$as_echo_n "checking for $2... " >&6; }
3498if eval \${$3+:} false; then :
3499  $as_echo_n "(cached) " >&6
3500else
3501  eval "$3=no"
3502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h.  */
3504$4
3505int
3506main ()
3507{
3508if (sizeof ($2))
3509	 return 0;
3510  ;
3511  return 0;
3512}
3513_ACEOF
3514if ac_fn_cxx_try_compile "$LINENO"; then :
3515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h.  */
3517$4
3518int
3519main ()
3520{
3521if (sizeof (($2)))
3522	    return 0;
3523  ;
3524  return 0;
3525}
3526_ACEOF
3527if ac_fn_cxx_try_compile "$LINENO"; then :
3528
3529else
3530  eval "$3=yes"
3531fi
3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533fi
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535fi
3536eval ac_res=\$$3
3537	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3538$as_echo "$ac_res" >&6; }
3539  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3540
3541} # ac_fn_cxx_check_type
3542cat >config.log <<_ACEOF
3543This file contains any messages produced by compilers while
3544running configure, to aid debugging if configure makes a mistake.
3545
3546It was created by spot $as_me 2.10.2, which was
3547generated by GNU Autoconf 2.69.  Invocation command line was
3548
3549  $ $0 $@
3550
3551_ACEOF
3552exec 5>>config.log
3553{
3554cat <<_ASUNAME
3555## --------- ##
3556## Platform. ##
3557## --------- ##
3558
3559hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3560uname -m = `(uname -m) 2>/dev/null || echo unknown`
3561uname -r = `(uname -r) 2>/dev/null || echo unknown`
3562uname -s = `(uname -s) 2>/dev/null || echo unknown`
3563uname -v = `(uname -v) 2>/dev/null || echo unknown`
3564
3565/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3566/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3567
3568/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3569/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3570/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3571/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3572/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3573/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3574/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3575
3576_ASUNAME
3577
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581  IFS=$as_save_IFS
3582  test -z "$as_dir" && as_dir=.
3583    $as_echo "PATH: $as_dir"
3584  done
3585IFS=$as_save_IFS
3586
3587} >&5
3588
3589cat >&5 <<_ACEOF
3590
3591
3592## ----------- ##
3593## Core tests. ##
3594## ----------- ##
3595
3596_ACEOF
3597
3598
3599# Keep a trace of the command line.
3600# Strip out --no-create and --no-recursion so they do not pile up.
3601# Strip out --silent because we don't want to record it for future runs.
3602# Also quote any args containing shell meta-characters.
3603# Make two passes to allow for proper duplicate-argument suppression.
3604ac_configure_args=
3605ac_configure_args0=
3606ac_configure_args1=
3607ac_must_keep_next=false
3608for ac_pass in 1 2
3609do
3610  for ac_arg
3611  do
3612    case $ac_arg in
3613    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3614    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3615    | -silent | --silent | --silen | --sile | --sil)
3616      continue ;;
3617    *\'*)
3618      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3619    esac
3620    case $ac_pass in
3621    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3622    2)
3623      as_fn_append ac_configure_args1 " '$ac_arg'"
3624      if test $ac_must_keep_next = true; then
3625	ac_must_keep_next=false # Got value, back to normal.
3626      else
3627	case $ac_arg in
3628	  *=* | --config-cache | -C | -disable-* | --disable-* \
3629	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3630	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3631	  | -with-* | --with-* | -without-* | --without-* | --x)
3632	    case "$ac_configure_args0 " in
3633	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3634	    esac
3635	    ;;
3636	  -* ) ac_must_keep_next=true ;;
3637	esac
3638      fi
3639      as_fn_append ac_configure_args " '$ac_arg'"
3640      ;;
3641    esac
3642  done
3643done
3644{ ac_configure_args0=; unset ac_configure_args0;}
3645{ ac_configure_args1=; unset ac_configure_args1;}
3646
3647# When interrupted or exit'd, cleanup temporary files, and complete
3648# config.log.  We remove comments because anyway the quotes in there
3649# would cause problems or look ugly.
3650# WARNING: Use '\'' to represent an apostrophe within the trap.
3651# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3652trap 'exit_status=$?
3653  # Save into config.log some information that might help in debugging.
3654  {
3655    echo
3656
3657    $as_echo "## ---------------- ##
3658## Cache variables. ##
3659## ---------------- ##"
3660    echo
3661    # The following way of writing the cache mishandles newlines in values,
3662(
3663  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3664    eval ac_val=\$$ac_var
3665    case $ac_val in #(
3666    *${as_nl}*)
3667      case $ac_var in #(
3668      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3669$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3670      esac
3671      case $ac_var in #(
3672      _ | IFS | as_nl) ;; #(
3673      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3674      *) { eval $ac_var=; unset $ac_var;} ;;
3675      esac ;;
3676    esac
3677  done
3678  (set) 2>&1 |
3679    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3680    *${as_nl}ac_space=\ *)
3681      sed -n \
3682	"s/'\''/'\''\\\\'\'''\''/g;
3683	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3684      ;; #(
3685    *)
3686      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3687      ;;
3688    esac |
3689    sort
3690)
3691    echo
3692
3693    $as_echo "## ----------------- ##
3694## Output variables. ##
3695## ----------------- ##"
3696    echo
3697    for ac_var in $ac_subst_vars
3698    do
3699      eval ac_val=\$$ac_var
3700      case $ac_val in
3701      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3702      esac
3703      $as_echo "$ac_var='\''$ac_val'\''"
3704    done | sort
3705    echo
3706
3707    if test -n "$ac_subst_files"; then
3708      $as_echo "## ------------------- ##
3709## File substitutions. ##
3710## ------------------- ##"
3711      echo
3712      for ac_var in $ac_subst_files
3713      do
3714	eval ac_val=\$$ac_var
3715	case $ac_val in
3716	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3717	esac
3718	$as_echo "$ac_var='\''$ac_val'\''"
3719      done | sort
3720      echo
3721    fi
3722
3723    if test -s confdefs.h; then
3724      $as_echo "## ----------- ##
3725## confdefs.h. ##
3726## ----------- ##"
3727      echo
3728      cat confdefs.h
3729      echo
3730    fi
3731    test "$ac_signal" != 0 &&
3732      $as_echo "$as_me: caught signal $ac_signal"
3733    $as_echo "$as_me: exit $exit_status"
3734  } >&5
3735  rm -f core *.core core.conftest.* &&
3736    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3737    exit $exit_status
3738' 0
3739for ac_signal in 1 2 13 15; do
3740  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3741done
3742ac_signal=0
3743
3744# confdefs.h avoids OS command line length limits that DEFS can exceed.
3745rm -f -r conftest* confdefs.h
3746
3747$as_echo "/* confdefs.h */" > confdefs.h
3748
3749# Predefined preprocessor variables.
3750
3751cat >>confdefs.h <<_ACEOF
3752#define PACKAGE_NAME "$PACKAGE_NAME"
3753_ACEOF
3754
3755cat >>confdefs.h <<_ACEOF
3756#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3757_ACEOF
3758
3759cat >>confdefs.h <<_ACEOF
3760#define PACKAGE_VERSION "$PACKAGE_VERSION"
3761_ACEOF
3762
3763cat >>confdefs.h <<_ACEOF
3764#define PACKAGE_STRING "$PACKAGE_STRING"
3765_ACEOF
3766
3767cat >>confdefs.h <<_ACEOF
3768#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3769_ACEOF
3770
3771cat >>confdefs.h <<_ACEOF
3772#define PACKAGE_URL "$PACKAGE_URL"
3773_ACEOF
3774
3775
3776# Let the site file select an alternate cache file if it wants to.
3777# Prefer an explicitly selected file to automatically selected ones.
3778ac_site_file1=NONE
3779ac_site_file2=NONE
3780if test -n "$CONFIG_SITE"; then
3781  # We do not want a PATH search for config.site.
3782  case $CONFIG_SITE in #((
3783    -*)  ac_site_file1=./$CONFIG_SITE;;
3784    */*) ac_site_file1=$CONFIG_SITE;;
3785    *)   ac_site_file1=./$CONFIG_SITE;;
3786  esac
3787elif test "x$prefix" != xNONE; then
3788  ac_site_file1=$prefix/share/config.site
3789  ac_site_file2=$prefix/etc/config.site
3790else
3791  ac_site_file1=$ac_default_prefix/share/config.site
3792  ac_site_file2=$ac_default_prefix/etc/config.site
3793fi
3794for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3795do
3796  test "x$ac_site_file" = xNONE && continue
3797  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3798    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3799$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3800    sed 's/^/| /' "$ac_site_file" >&5
3801    . "$ac_site_file" \
3802      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804as_fn_error $? "failed to load site script $ac_site_file
3805See \`config.log' for more details" "$LINENO" 5; }
3806  fi
3807done
3808
3809if test -r "$cache_file"; then
3810  # Some versions of bash will fail to source /dev/null (special files
3811  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3812  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3813    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3814$as_echo "$as_me: loading cache $cache_file" >&6;}
3815    case $cache_file in
3816      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3817      *)                      . "./$cache_file";;
3818    esac
3819  fi
3820else
3821  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3822$as_echo "$as_me: creating cache $cache_file" >&6;}
3823  >$cache_file
3824fi
3825
3826as_fn_append ac_header_list " wchar.h"
3827as_fn_append ac_header_list " minix/config.h"
3828as_fn_append ac_func_list " flockfile"
3829as_fn_append ac_func_list " funlockfile"
3830as_fn_append ac_header_list " features.h"
3831as_fn_append ac_header_list " linewrap.h"
3832as_fn_append ac_header_list " unistd.h"
3833as_fn_append ac_func_list " symlink"
3834as_fn_append ac_header_list " stdio_ext.h"
3835gl_getopt_required=GNU
3836as_fn_append ac_header_list " getopt.h"
3837as_fn_append ac_header_list " sys/cdefs.h"
3838as_fn_append ac_func_list " getprogname"
3839as_fn_append ac_func_list " getexecname"
3840as_fn_append ac_header_list " sys/time.h"
3841as_fn_append ac_header_list " sys/socket.h"
3842as_fn_append ac_func_list " gettimeofday"
3843as_fn_append ac_header_list " threads.h"
3844as_fn_append ac_header_list " limits.h"
3845as_fn_append ac_header_list " stdint.h"
3846as_fn_append ac_header_list " inttypes.h"
3847as_fn_append ac_header_list " xlocale.h"
3848as_fn_append ac_func_list " lstat"
3849as_fn_append ac_func_list " mbsinit"
3850as_fn_append ac_func_list " mbrtowc"
3851as_fn_append ac_header_list " sys/mman.h"
3852as_fn_append ac_func_list " mprotect"
3853as_fn_append ac_func_list " mkstemp"
3854as_fn_append ac_func_list " mkstemps"
3855as_fn_append ac_func_list " _set_invalid_parameter_handler"
3856as_fn_append ac_header_list " sys/param.h"
3857as_fn_append ac_func_list " secure_getenv"
3858as_fn_append ac_func_list " getuid"
3859as_fn_append ac_func_list " geteuid"
3860as_fn_append ac_func_list " getgid"
3861as_fn_append ac_func_list " getegid"
3862as_fn_append ac_func_list " sleep"
3863as_fn_append ac_header_list " sys/stat.h"
3864as_fn_append ac_header_list " strings.h"
3865as_fn_append ac_func_list " strndup"
3866as_fn_append ac_header_list " sys/wait.h"
3867as_fn_append ac_header_list " sysexits.h"
3868as_fn_append ac_func_list " vasnprintf"
3869as_fn_append ac_func_list " snprintf"
3870as_fn_append ac_header_list " crtdefs.h"
3871as_fn_append ac_func_list " iswcntrl"
3872as_fn_append ac_header_list " wctype.h"
3873# Check that the precious variables saved in the cache have kept the same
3874# value.
3875ac_cache_corrupted=false
3876for ac_var in $ac_precious_vars; do
3877  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3878  eval ac_new_set=\$ac_env_${ac_var}_set
3879  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3880  eval ac_new_val=\$ac_env_${ac_var}_value
3881  case $ac_old_set,$ac_new_set in
3882    set,)
3883      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3884$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3885      ac_cache_corrupted=: ;;
3886    ,set)
3887      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3888$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3889      ac_cache_corrupted=: ;;
3890    ,);;
3891    *)
3892      if test "x$ac_old_val" != "x$ac_new_val"; then
3893	# differences in whitespace do not lead to failure.
3894	ac_old_val_w=`echo x $ac_old_val`
3895	ac_new_val_w=`echo x $ac_new_val`
3896	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3897	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3898$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3899	  ac_cache_corrupted=:
3900	else
3901	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3902$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3903	  eval $ac_var=\$ac_old_val
3904	fi
3905	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3906$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3907	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3908$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3909      fi;;
3910  esac
3911  # Pass precious variables to config.status.
3912  if test "$ac_new_set" = set; then
3913    case $ac_new_val in
3914    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3915    *) ac_arg=$ac_var=$ac_new_val ;;
3916    esac
3917    case " $ac_configure_args " in
3918      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3919      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3920    esac
3921  fi
3922done
3923if $ac_cache_corrupted; then
3924  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3927$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3928  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3929fi
3930## -------------------- ##
3931## Main body of script. ##
3932## -------------------- ##
3933
3934ac_ext=c
3935ac_cpp='$CPP $CPPFLAGS'
3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
3940
3941ac_aux_dir=
3942for ac_dir in tools "$srcdir"/tools; do
3943  if test -f "$ac_dir/install-sh"; then
3944    ac_aux_dir=$ac_dir
3945    ac_install_sh="$ac_aux_dir/install-sh -c"
3946    break
3947  elif test -f "$ac_dir/install.sh"; then
3948    ac_aux_dir=$ac_dir
3949    ac_install_sh="$ac_aux_dir/install.sh -c"
3950    break
3951  elif test -f "$ac_dir/shtool"; then
3952    ac_aux_dir=$ac_dir
3953    ac_install_sh="$ac_aux_dir/shtool install -c"
3954    break
3955  fi
3956done
3957if test -z "$ac_aux_dir"; then
3958  as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3959fi
3960
3961# These three variables are undocumented and unsupported,
3962# and are intended to be withdrawn in a future Autoconf release.
3963# They can cause serious problems if a builder's source tree is in a directory
3964# whose full name contains unusual characters.
3965ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3966ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3967ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3968
3969
3970
3971am__api_version='1.16'
3972
3973# Find a good install program.  We prefer a C program (faster),
3974# so one script is as good as another.  But avoid the broken or
3975# incompatible versions:
3976# SysV /etc/install, /usr/sbin/install
3977# SunOS /usr/etc/install
3978# IRIX /sbin/install
3979# AIX /bin/install
3980# AmigaOS /C/install, which installs bootblocks on floppy discs
3981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3984# OS/2's system install, which has a completely different semantic
3985# ./install, which can be erroneously created by make from ./install.sh.
3986# Reject install programs that cannot install multiple files.
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3988$as_echo_n "checking for a BSD-compatible install... " >&6; }
3989if test -z "$INSTALL"; then
3990if ${ac_cv_path_install+:} false; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996  IFS=$as_save_IFS
3997  test -z "$as_dir" && as_dir=.
3998    # Account for people who put trailing slashes in PATH elements.
3999case $as_dir/ in #((
4000  ./ | .// | /[cC]/* | \
4001  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4002  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4003  /usr/ucb/* ) ;;
4004  *)
4005    # OSF1 and SCO ODT 3.0 have their own names for install.
4006    # Don't use installbsd from OSF since it installs stuff as root
4007    # by default.
4008    for ac_prog in ginstall scoinst install; do
4009      for ac_exec_ext in '' $ac_executable_extensions; do
4010	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4011	  if test $ac_prog = install &&
4012	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4013	    # AIX install.  It has an incompatible calling convention.
4014	    :
4015	  elif test $ac_prog = install &&
4016	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4017	    # program-specific install script used by HP pwplus--don't use.
4018	    :
4019	  else
4020	    rm -rf conftest.one conftest.two conftest.dir
4021	    echo one > conftest.one
4022	    echo two > conftest.two
4023	    mkdir conftest.dir
4024	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4025	      test -s conftest.one && test -s conftest.two &&
4026	      test -s conftest.dir/conftest.one &&
4027	      test -s conftest.dir/conftest.two
4028	    then
4029	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4030	      break 3
4031	    fi
4032	  fi
4033	fi
4034      done
4035    done
4036    ;;
4037esac
4038
4039  done
4040IFS=$as_save_IFS
4041
4042rm -rf conftest.one conftest.two conftest.dir
4043
4044fi
4045  if test "${ac_cv_path_install+set}" = set; then
4046    INSTALL=$ac_cv_path_install
4047  else
4048    # As a last resort, use the slow shell script.  Don't cache a
4049    # value for INSTALL within a source directory, because that will
4050    # break other packages using the cache if that directory is
4051    # removed, or if the value is a relative name.
4052    INSTALL=$ac_install_sh
4053  fi
4054fi
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4056$as_echo "$INSTALL" >&6; }
4057
4058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4059# It thinks the first close brace ends the variable substitution.
4060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4061
4062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4063
4064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4067$as_echo_n "checking whether build environment is sane... " >&6; }
4068# Reject unsafe characters in $srcdir or the absolute working directory
4069# name.  Accept space and tab only in the latter.
4070am_lf='
4071'
4072case `pwd` in
4073  *[\\\"\#\$\&\'\`$am_lf]*)
4074    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4075esac
4076case $srcdir in
4077  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4078    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4079esac
4080
4081# Do 'set' in a subshell so we don't clobber the current shell's
4082# arguments.  Must try -L first in case configure is actually a
4083# symlink; some systems play weird games with the mod time of symlinks
4084# (eg FreeBSD returns the mod time of the symlink's containing
4085# directory).
4086if (
4087   am_has_slept=no
4088   for am_try in 1 2; do
4089     echo "timestamp, slept: $am_has_slept" > conftest.file
4090     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4091     if test "$*" = "X"; then
4092	# -L didn't work.
4093	set X `ls -t "$srcdir/configure" conftest.file`
4094     fi
4095     if test "$*" != "X $srcdir/configure conftest.file" \
4096	&& test "$*" != "X conftest.file $srcdir/configure"; then
4097
4098	# If neither matched, then we have a broken ls.  This can happen
4099	# if, for instance, CONFIG_SHELL is bash and it inherits a
4100	# broken ls alias from the environment.  This has actually
4101	# happened.  Such a system could not be considered "sane".
4102	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4103  alias in your environment" "$LINENO" 5
4104     fi
4105     if test "$2" = conftest.file || test $am_try -eq 2; then
4106       break
4107     fi
4108     # Just in case.
4109     sleep 1
4110     am_has_slept=yes
4111   done
4112   test "$2" = conftest.file
4113   )
4114then
4115   # Ok.
4116   :
4117else
4118   as_fn_error $? "newly created file is older than distributed files!
4119Check your system clock" "$LINENO" 5
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4122$as_echo "yes" >&6; }
4123# If we didn't sleep, we still need to ensure time stamps of config.status and
4124# generated files are strictly newer.
4125am_sleep_pid=
4126if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4127  ( sleep 1 ) &
4128  am_sleep_pid=$!
4129fi
4130
4131rm -f conftest.file
4132
4133test "$program_prefix" != NONE &&
4134  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4135# Use a double $ so make ignores it.
4136test "$program_suffix" != NONE &&
4137  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4138# Double any \ or $.
4139# By default was `s,x,x', remove it if useless.
4140ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4141program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4142
4143# Expand $ac_aux_dir to an absolute path.
4144am_aux_dir=`cd "$ac_aux_dir" && pwd`
4145
4146if test x"${MISSING+set}" != xset; then
4147  MISSING="\${SHELL} '$am_aux_dir/missing'"
4148fi
4149# Use eval to expand $SHELL
4150if eval "$MISSING --is-lightweight"; then
4151  am_missing_run="$MISSING "
4152else
4153  am_missing_run=
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4155$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4156fi
4157
4158if test x"${install_sh+set}" != xset; then
4159  case $am_aux_dir in
4160  *\ * | *\	*)
4161    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4162  *)
4163    install_sh="\${SHELL} $am_aux_dir/install-sh"
4164  esac
4165fi
4166
4167# Installed binaries are usually stripped using 'strip' when the user
4168# run "make install-strip".  However 'strip' might not be the right
4169# tool to use in cross-compilation environments, therefore Automake
4170# will honor the 'STRIP' environment variable to overrule this program.
4171if test "$cross_compiling" != no; then
4172  if test -n "$ac_tool_prefix"; then
4173  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4174set dummy ${ac_tool_prefix}strip; ac_word=$2
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176$as_echo_n "checking for $ac_word... " >&6; }
4177if ${ac_cv_prog_STRIP+:} false; then :
4178  $as_echo_n "(cached) " >&6
4179else
4180  if test -n "$STRIP"; then
4181  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4182else
4183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH
4185do
4186  IFS=$as_save_IFS
4187  test -z "$as_dir" && as_dir=.
4188    for ac_exec_ext in '' $ac_executable_extensions; do
4189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192    break 2
4193  fi
4194done
4195  done
4196IFS=$as_save_IFS
4197
4198fi
4199fi
4200STRIP=$ac_cv_prog_STRIP
4201if test -n "$STRIP"; then
4202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4203$as_echo "$STRIP" >&6; }
4204else
4205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206$as_echo "no" >&6; }
4207fi
4208
4209
4210fi
4211if test -z "$ac_cv_prog_STRIP"; then
4212  ac_ct_STRIP=$STRIP
4213  # Extract the first word of "strip", so it can be a program name with args.
4214set dummy strip; ac_word=$2
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216$as_echo_n "checking for $ac_word... " >&6; }
4217if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4218  $as_echo_n "(cached) " >&6
4219else
4220  if test -n "$ac_ct_STRIP"; then
4221  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4222else
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226  IFS=$as_save_IFS
4227  test -z "$as_dir" && as_dir=.
4228    for ac_exec_ext in '' $ac_executable_extensions; do
4229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230    ac_cv_prog_ac_ct_STRIP="strip"
4231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232    break 2
4233  fi
4234done
4235  done
4236IFS=$as_save_IFS
4237
4238fi
4239fi
4240ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4241if test -n "$ac_ct_STRIP"; then
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4243$as_echo "$ac_ct_STRIP" >&6; }
4244else
4245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
4247fi
4248
4249  if test "x$ac_ct_STRIP" = x; then
4250    STRIP=":"
4251  else
4252    case $cross_compiling:$ac_tool_warned in
4253yes:)
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4256ac_tool_warned=yes ;;
4257esac
4258    STRIP=$ac_ct_STRIP
4259  fi
4260else
4261  STRIP="$ac_cv_prog_STRIP"
4262fi
4263
4264fi
4265INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4266
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4268$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4269if test -z "$MKDIR_P"; then
4270  if ${ac_cv_path_mkdir+:} false; then :
4271  $as_echo_n "(cached) " >&6
4272else
4273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278    for ac_prog in mkdir gmkdir; do
4279	 for ac_exec_ext in '' $ac_executable_extensions; do
4280	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4281	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4282	     'mkdir (GNU coreutils) '* | \
4283	     'mkdir (coreutils) '* | \
4284	     'mkdir (fileutils) '4.1*)
4285	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4286	       break 3;;
4287	   esac
4288	 done
4289       done
4290  done
4291IFS=$as_save_IFS
4292
4293fi
4294
4295  test -d ./--version && rmdir ./--version
4296  if test "${ac_cv_path_mkdir+set}" = set; then
4297    MKDIR_P="$ac_cv_path_mkdir -p"
4298  else
4299    # As a last resort, use the slow shell script.  Don't cache a
4300    # value for MKDIR_P within a source directory, because that will
4301    # break other packages using the cache if that directory is
4302    # removed, or if the value is a relative name.
4303    MKDIR_P="$ac_install_sh -d"
4304  fi
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4307$as_echo "$MKDIR_P" >&6; }
4308
4309for ac_prog in gawk mawk nawk awk
4310do
4311  # Extract the first word of "$ac_prog", so it can be a program name with args.
4312set dummy $ac_prog; ac_word=$2
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314$as_echo_n "checking for $ac_word... " >&6; }
4315if ${ac_cv_prog_AWK+:} false; then :
4316  $as_echo_n "(cached) " >&6
4317else
4318  if test -n "$AWK"; then
4319  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4320else
4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324  IFS=$as_save_IFS
4325  test -z "$as_dir" && as_dir=.
4326    for ac_exec_ext in '' $ac_executable_extensions; do
4327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328    ac_cv_prog_AWK="$ac_prog"
4329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330    break 2
4331  fi
4332done
4333  done
4334IFS=$as_save_IFS
4335
4336fi
4337fi
4338AWK=$ac_cv_prog_AWK
4339if test -n "$AWK"; then
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4341$as_echo "$AWK" >&6; }
4342else
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344$as_echo "no" >&6; }
4345fi
4346
4347
4348  test -n "$AWK" && break
4349done
4350
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4352$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4353set x ${MAKE-make}
4354ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4355if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  cat >conftest.make <<\_ACEOF
4359SHELL = /bin/sh
4360all:
4361	@echo '@@@%%%=$(MAKE)=@@@%%%'
4362_ACEOF
4363# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4364case `${MAKE-make} -f conftest.make 2>/dev/null` in
4365  *@@@%%%=?*=@@@%%%*)
4366    eval ac_cv_prog_make_${ac_make}_set=yes;;
4367  *)
4368    eval ac_cv_prog_make_${ac_make}_set=no;;
4369esac
4370rm -f conftest.make
4371fi
4372if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4374$as_echo "yes" >&6; }
4375  SET_MAKE=
4376else
4377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378$as_echo "no" >&6; }
4379  SET_MAKE="MAKE=${MAKE-make}"
4380fi
4381
4382rm -rf .tst 2>/dev/null
4383mkdir .tst 2>/dev/null
4384if test -d .tst; then
4385  am__leading_dot=.
4386else
4387  am__leading_dot=_
4388fi
4389rmdir .tst 2>/dev/null
4390
4391# Check whether --enable-silent-rules was given.
4392if test "${enable_silent_rules+set}" = set; then :
4393  enableval=$enable_silent_rules;
4394fi
4395
4396case $enable_silent_rules in # (((
4397  yes) AM_DEFAULT_VERBOSITY=0;;
4398   no) AM_DEFAULT_VERBOSITY=1;;
4399    *) AM_DEFAULT_VERBOSITY=1;;
4400esac
4401am_make=${MAKE-make}
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4403$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4404if ${am_cv_make_support_nested_variables+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if $as_echo 'TRUE=$(BAR$(V))
4408BAR0=false
4409BAR1=true
4410V=1
4411am__doit:
4412	@$(TRUE)
4413.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4414  am_cv_make_support_nested_variables=yes
4415else
4416  am_cv_make_support_nested_variables=no
4417fi
4418fi
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4420$as_echo "$am_cv_make_support_nested_variables" >&6; }
4421if test $am_cv_make_support_nested_variables = yes; then
4422    AM_V='$(V)'
4423  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4424else
4425  AM_V=$AM_DEFAULT_VERBOSITY
4426  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4427fi
4428AM_BACKSLASH='\'
4429
4430if test "`cd $srcdir && pwd`" != "`pwd`"; then
4431  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4432  # is not polluted with repeated "-I."
4433  am__isrc=' -I$(srcdir)'
4434  # test to see if srcdir already configured
4435  if test -f $srcdir/config.status; then
4436    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4437  fi
4438fi
4439
4440# test whether we have cygpath
4441if test -z "$CYGPATH_W"; then
4442  if (cygpath --version) >/dev/null 2>/dev/null; then
4443    CYGPATH_W='cygpath -w'
4444  else
4445    CYGPATH_W=echo
4446  fi
4447fi
4448
4449
4450# Define the identity of the package.
4451 PACKAGE='spot'
4452 VERSION='2.10.2'
4453
4454
4455cat >>confdefs.h <<_ACEOF
4456#define PACKAGE "$PACKAGE"
4457_ACEOF
4458
4459
4460cat >>confdefs.h <<_ACEOF
4461#define VERSION "$VERSION"
4462_ACEOF
4463
4464# Some tools Automake needs.
4465
4466ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4467
4468
4469AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4470
4471
4472AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4473
4474
4475AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4476
4477
4478MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4479
4480# For better backward compatibility.  To be removed once Automake 1.9.x
4481# dies out for good.  For more background, see:
4482# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4483# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4484mkdir_p='$(MKDIR_P)'
4485
4486# We need awk for the "check" target (and possibly the TAP driver).  The
4487# system "awk" is bad on some platforms.
4488# Always define AMTAR for backward compatibility.  Yes, it's still used
4489# in the wild :-(  We should find a proper way to deprecate it ...
4490AMTAR='$${TAR-tar}'
4491
4492
4493# We'll loop over all known methods to create a tar archive until one works.
4494_am_tools='gnutar plaintar pax cpio none'
4495
4496# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4497      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4498      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4499      # and bug#13588).
4500      am_max_uid=2097151 # 2^21 - 1
4501      am_max_gid=$am_max_uid
4502      # The $UID and $GID variables are not portable, so we need to resort
4503      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4504      # below are definitely unexpected, so allow the users to see them
4505      # (that is, avoid stderr redirection).
4506      am_uid=`id -u || echo unknown`
4507      am_gid=`id -g || echo unknown`
4508      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4509$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4510      if test $am_uid -le $am_max_uid; then
4511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512$as_echo "yes" >&6; }
4513      else
4514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515$as_echo "no" >&6; }
4516         _am_tools=none
4517      fi
4518      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4519$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4520      if test $am_gid -le $am_max_gid; then
4521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522$as_echo "yes" >&6; }
4523      else
4524        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525$as_echo "no" >&6; }
4526        _am_tools=none
4527      fi
4528
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4530$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4531
4532  # Go ahead even if we have the value already cached.  We do so because we
4533  # need to set the values for the 'am__tar' and 'am__untar' variables.
4534  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4535
4536  for _am_tool in $_am_tools; do
4537    case $_am_tool in
4538    gnutar)
4539      for _am_tar in tar gnutar gtar; do
4540        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4541   ($_am_tar --version) >&5 2>&5
4542   ac_status=$?
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } && break
4545      done
4546      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4547      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4548      am__untar="$_am_tar -xf -"
4549      ;;
4550    plaintar)
4551      # Must skip GNU tar: if it does not support --format= it doesn't create
4552      # ustar tarball either.
4553      (tar --version) >/dev/null 2>&1 && continue
4554      am__tar='tar chf - "$$tardir"'
4555      am__tar_='tar chf - "$tardir"'
4556      am__untar='tar xf -'
4557      ;;
4558    pax)
4559      am__tar='pax -L -x ustar -w "$$tardir"'
4560      am__tar_='pax -L -x ustar -w "$tardir"'
4561      am__untar='pax -r'
4562      ;;
4563    cpio)
4564      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4565      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4566      am__untar='cpio -i -H ustar -d'
4567      ;;
4568    none)
4569      am__tar=false
4570      am__tar_=false
4571      am__untar=false
4572      ;;
4573    esac
4574
4575    # If the value was cached, stop now.  We just wanted to have am__tar
4576    # and am__untar set.
4577    test -n "${am_cv_prog_tar_ustar}" && break
4578
4579    # tar/untar a dummy directory, and stop if the command works.
4580    rm -rf conftest.dir
4581    mkdir conftest.dir
4582    echo GrepMe > conftest.dir/file
4583    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4584   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); }
4588    rm -rf conftest.dir
4589    if test -s conftest.tar; then
4590      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4591   ($am__untar <conftest.tar) >&5 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }
4595      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4596   (cat conftest.dir/file) >&5 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }
4600      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4601    fi
4602  done
4603  rm -rf conftest.dir
4604
4605  if ${am_cv_prog_tar_ustar+:} false; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  am_cv_prog_tar_ustar=$_am_tool
4609fi
4610
4611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4612$as_echo "$am_cv_prog_tar_ustar" >&6; }
4613
4614
4615
4616
4617
4618
4619# POSIX will say in a future version that running "rm -f" with no argument
4620# is OK; and we want to be able to make that assumption in our Makefile
4621# recipes.  So use an aggressive probe to check that the usage we want is
4622# actually supported "in the wild" to an acceptable degree.
4623# See automake bug#10828.
4624# To make any issue more visible, cause the running configure to be aborted
4625# by default if the 'rm' program in use doesn't match our expectations; the
4626# user can still override this though.
4627if rm -f && rm -fr && rm -rf; then : OK; else
4628  cat >&2 <<'END'
4629Oops!
4630
4631Your 'rm' program seems unable to run without file operands specified
4632on the command line, even when the '-f' option is present.  This is contrary
4633to the behaviour of most rm programs out there, and not conforming with
4634the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4635
4636Please tell bug-automake@gnu.org about your system, including the value
4637of your $PATH and any error possibly output before this message.  This
4638can help us improve future automake versions.
4639
4640END
4641  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4642    echo 'Configuration will proceed anyway, since you have set the' >&2
4643    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4644    echo >&2
4645  else
4646    cat >&2 <<'END'
4647Aborting the configuration process, to ensure you take notice of the issue.
4648
4649You can download and install GNU coreutils to get an 'rm' implementation
4650that behaves properly: <https://www.gnu.org/software/coreutils/>.
4651
4652If you want to complete the configuration process using your problematic
4653'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4654to "yes", and re-run configure.
4655
4656END
4657    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4658  fi
4659fi
4660
4661ac_config_headers="$ac_config_headers config.h"
4662
4663ac_config_commands="$ac_config_commands spot/misc/_config.h"
4664
4665# If the user didn't supply a CFLAGS value,
4666# set an empty one to prevent autoconf to stick -O2 -g here.
4667test -z "$CFLAGS" && CFLAGS=
4668test -z "$CXXFLAGS" && CXXFLAGS=
4669
4670# Check whether --enable-devel was given.
4671if test "${enable_devel+set}" = set; then :
4672  enableval=$enable_devel;
4673fi
4674
4675
4676 # Turn on devel options for development version, unless
4677 # explicitely turned off.
4678 case $VERSION in
4679   *[abcdefghijklmnopqrstuvwxyz])
4680     if test -z "${enable_devel}"; then
4681       enable_devel=yes
4682       # Pass this flag to sub-libraries
4683       as_fn_append ac_configure_args " --enable-devel"
4684     fi;;
4685   *)
4686     if test -z "${enable_devel}"; then
4687       enable_devel=no
4688       # Pass this flag to sub-libraries
4689       as_fn_append ac_configure_args " --disable-devel"
4690     fi;;
4691 esac
4692
4693 if test x"$enable_devel" = xyes; then
4694   enable_debug=${enable_debug-yes}
4695   enable_warnings=${enable_warnings-yes}
4696   enable_assert=${enable_assert-yes}
4697   enable_optimizations=${enable_optimizations--O}
4698 fi
4699
4700
4701ac_ext=c
4702ac_cpp='$CPP $CPPFLAGS'
4703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706if test -n "$ac_tool_prefix"; then
4707  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4708set dummy ${ac_tool_prefix}gcc; ac_word=$2
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710$as_echo_n "checking for $ac_word... " >&6; }
4711if ${ac_cv_prog_CC+:} false; then :
4712  $as_echo_n "(cached) " >&6
4713else
4714  if test -n "$CC"; then
4715  ac_cv_prog_CC="$CC" # Let the user override the test.
4716else
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720  IFS=$as_save_IFS
4721  test -z "$as_dir" && as_dir=.
4722    for ac_exec_ext in '' $ac_executable_extensions; do
4723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726    break 2
4727  fi
4728done
4729  done
4730IFS=$as_save_IFS
4731
4732fi
4733fi
4734CC=$ac_cv_prog_CC
4735if test -n "$CC"; then
4736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4737$as_echo "$CC" >&6; }
4738else
4739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740$as_echo "no" >&6; }
4741fi
4742
4743
4744fi
4745if test -z "$ac_cv_prog_CC"; then
4746  ac_ct_CC=$CC
4747  # Extract the first word of "gcc", so it can be a program name with args.
4748set dummy gcc; ac_word=$2
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750$as_echo_n "checking for $ac_word... " >&6; }
4751if ${ac_cv_prog_ac_ct_CC+:} false; then :
4752  $as_echo_n "(cached) " >&6
4753else
4754  if test -n "$ac_ct_CC"; then
4755  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760  IFS=$as_save_IFS
4761  test -z "$as_dir" && as_dir=.
4762    for ac_exec_ext in '' $ac_executable_extensions; do
4763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764    ac_cv_prog_ac_ct_CC="gcc"
4765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766    break 2
4767  fi
4768done
4769  done
4770IFS=$as_save_IFS
4771
4772fi
4773fi
4774ac_ct_CC=$ac_cv_prog_ac_ct_CC
4775if test -n "$ac_ct_CC"; then
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4777$as_echo "$ac_ct_CC" >&6; }
4778else
4779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780$as_echo "no" >&6; }
4781fi
4782
4783  if test "x$ac_ct_CC" = x; then
4784    CC=""
4785  else
4786    case $cross_compiling:$ac_tool_warned in
4787yes:)
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4790ac_tool_warned=yes ;;
4791esac
4792    CC=$ac_ct_CC
4793  fi
4794else
4795  CC="$ac_cv_prog_CC"
4796fi
4797
4798if test -z "$CC"; then
4799          if test -n "$ac_tool_prefix"; then
4800    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4801set dummy ${ac_tool_prefix}cc; ac_word=$2
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803$as_echo_n "checking for $ac_word... " >&6; }
4804if ${ac_cv_prog_CC+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  if test -n "$CC"; then
4808  ac_cv_prog_CC="$CC" # Let the user override the test.
4809else
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813  IFS=$as_save_IFS
4814  test -z "$as_dir" && as_dir=.
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817    ac_cv_prog_CC="${ac_tool_prefix}cc"
4818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819    break 2
4820  fi
4821done
4822  done
4823IFS=$as_save_IFS
4824
4825fi
4826fi
4827CC=$ac_cv_prog_CC
4828if test -n "$CC"; then
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4830$as_echo "$CC" >&6; }
4831else
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
4834fi
4835
4836
4837  fi
4838fi
4839if test -z "$CC"; then
4840  # Extract the first word of "cc", so it can be a program name with args.
4841set dummy cc; ac_word=$2
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843$as_echo_n "checking for $ac_word... " >&6; }
4844if ${ac_cv_prog_CC+:} false; then :
4845  $as_echo_n "(cached) " >&6
4846else
4847  if test -n "$CC"; then
4848  ac_cv_prog_CC="$CC" # Let the user override the test.
4849else
4850  ac_prog_rejected=no
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854  IFS=$as_save_IFS
4855  test -z "$as_dir" && as_dir=.
4856    for ac_exec_ext in '' $ac_executable_extensions; do
4857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4859       ac_prog_rejected=yes
4860       continue
4861     fi
4862    ac_cv_prog_CC="cc"
4863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864    break 2
4865  fi
4866done
4867  done
4868IFS=$as_save_IFS
4869
4870if test $ac_prog_rejected = yes; then
4871  # We found a bogon in the path, so make sure we never use it.
4872  set dummy $ac_cv_prog_CC
4873  shift
4874  if test $# != 0; then
4875    # We chose a different compiler from the bogus one.
4876    # However, it has the same basename, so the bogon will be chosen
4877    # first if we set CC to just the basename; use the full file name.
4878    shift
4879    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4880  fi
4881fi
4882fi
4883fi
4884CC=$ac_cv_prog_CC
4885if test -n "$CC"; then
4886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4887$as_echo "$CC" >&6; }
4888else
4889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890$as_echo "no" >&6; }
4891fi
4892
4893
4894fi
4895if test -z "$CC"; then
4896  if test -n "$ac_tool_prefix"; then
4897  for ac_prog in cl.exe
4898  do
4899    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902$as_echo_n "checking for $ac_word... " >&6; }
4903if ${ac_cv_prog_CC+:} false; then :
4904  $as_echo_n "(cached) " >&6
4905else
4906  if test -n "$CC"; then
4907  ac_cv_prog_CC="$CC" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912  IFS=$as_save_IFS
4913  test -z "$as_dir" && as_dir=.
4914    for ac_exec_ext in '' $ac_executable_extensions; do
4915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918    break 2
4919  fi
4920done
4921  done
4922IFS=$as_save_IFS
4923
4924fi
4925fi
4926CC=$ac_cv_prog_CC
4927if test -n "$CC"; then
4928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4929$as_echo "$CC" >&6; }
4930else
4931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932$as_echo "no" >&6; }
4933fi
4934
4935
4936    test -n "$CC" && break
4937  done
4938fi
4939if test -z "$CC"; then
4940  ac_ct_CC=$CC
4941  for ac_prog in cl.exe
4942do
4943  # Extract the first word of "$ac_prog", so it can be a program name with args.
4944set dummy $ac_prog; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_ac_ct_CC+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -n "$ac_ct_CC"; then
4951  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960    ac_cv_prog_ac_ct_CC="$ac_prog"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970ac_ct_CC=$ac_cv_prog_ac_ct_CC
4971if test -n "$ac_ct_CC"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4973$as_echo "$ac_ct_CC" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979
4980  test -n "$ac_ct_CC" && break
4981done
4982
4983  if test "x$ac_ct_CC" = x; then
4984    CC=""
4985  else
4986    case $cross_compiling:$ac_tool_warned in
4987yes:)
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990ac_tool_warned=yes ;;
4991esac
4992    CC=$ac_ct_CC
4993  fi
4994fi
4995
4996fi
4997if test -z "$CC"; then
4998  if test -n "$ac_tool_prefix"; then
4999  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5000set dummy ${ac_tool_prefix}clang; ac_word=$2
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002$as_echo_n "checking for $ac_word... " >&6; }
5003if ${ac_cv_prog_CC+:} false; then :
5004  $as_echo_n "(cached) " >&6
5005else
5006  if test -n "$CC"; then
5007  ac_cv_prog_CC="$CC" # Let the user override the test.
5008else
5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010for as_dir in $PATH
5011do
5012  IFS=$as_save_IFS
5013  test -z "$as_dir" && as_dir=.
5014    for ac_exec_ext in '' $ac_executable_extensions; do
5015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016    ac_cv_prog_CC="${ac_tool_prefix}clang"
5017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018    break 2
5019  fi
5020done
5021  done
5022IFS=$as_save_IFS
5023
5024fi
5025fi
5026CC=$ac_cv_prog_CC
5027if test -n "$CC"; then
5028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5029$as_echo "$CC" >&6; }
5030else
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032$as_echo "no" >&6; }
5033fi
5034
5035
5036fi
5037if test -z "$ac_cv_prog_CC"; then
5038  ac_ct_CC=$CC
5039  # Extract the first word of "clang", so it can be a program name with args.
5040set dummy clang; ac_word=$2
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042$as_echo_n "checking for $ac_word... " >&6; }
5043if ${ac_cv_prog_ac_ct_CC+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046  if test -n "$ac_ct_CC"; then
5047  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5048else
5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052  IFS=$as_save_IFS
5053  test -z "$as_dir" && as_dir=.
5054    for ac_exec_ext in '' $ac_executable_extensions; do
5055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056    ac_cv_prog_ac_ct_CC="clang"
5057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058    break 2
5059  fi
5060done
5061  done
5062IFS=$as_save_IFS
5063
5064fi
5065fi
5066ac_ct_CC=$ac_cv_prog_ac_ct_CC
5067if test -n "$ac_ct_CC"; then
5068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5069$as_echo "$ac_ct_CC" >&6; }
5070else
5071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072$as_echo "no" >&6; }
5073fi
5074
5075  if test "x$ac_ct_CC" = x; then
5076    CC=""
5077  else
5078    case $cross_compiling:$ac_tool_warned in
5079yes:)
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082ac_tool_warned=yes ;;
5083esac
5084    CC=$ac_ct_CC
5085  fi
5086else
5087  CC="$ac_cv_prog_CC"
5088fi
5089
5090fi
5091
5092
5093test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095as_fn_error $? "no acceptable C compiler found in \$PATH
5096See \`config.log' for more details" "$LINENO" 5; }
5097
5098# Provide some information about the compiler.
5099$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5100set X $ac_compile
5101ac_compiler=$2
5102for ac_option in --version -v -V -qversion -version; do
5103  { { ac_try="$ac_compiler $ac_option >&5"
5104case "(($ac_try" in
5105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106  *) ac_try_echo=$ac_try;;
5107esac
5108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5109$as_echo "$ac_try_echo"; } >&5
5110  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5111  ac_status=$?
5112  if test -s conftest.err; then
5113    sed '10a\
5114... rest of stderr output deleted ...
5115         10q' conftest.err >conftest.er1
5116    cat conftest.er1 >&5
5117  fi
5118  rm -f conftest.er1 conftest.err
5119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120  test $ac_status = 0; }
5121done
5122
5123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124/* end confdefs.h.  */
5125
5126int
5127main ()
5128{
5129
5130  ;
5131  return 0;
5132}
5133_ACEOF
5134ac_clean_files_save=$ac_clean_files
5135ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5136# Try to create an executable without -o first, disregard a.out.
5137# It will help us diagnose broken compilers, and finding out an intuition
5138# of exeext.
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5140$as_echo_n "checking whether the C compiler works... " >&6; }
5141ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5142
5143# The possible output files:
5144ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5145
5146ac_rmfiles=
5147for ac_file in $ac_files
5148do
5149  case $ac_file in
5150    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5151    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5152  esac
5153done
5154rm -f $ac_rmfiles
5155
5156if { { ac_try="$ac_link_default"
5157case "(($ac_try" in
5158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159  *) ac_try_echo=$ac_try;;
5160esac
5161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5162$as_echo "$ac_try_echo"; } >&5
5163  (eval "$ac_link_default") 2>&5
5164  ac_status=$?
5165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166  test $ac_status = 0; }; then :
5167  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5168# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5169# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5170# so that the user can short-circuit this test for compilers unknown to
5171# Autoconf.
5172for ac_file in $ac_files ''
5173do
5174  test -f "$ac_file" || continue
5175  case $ac_file in
5176    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5177	;;
5178    [ab].out )
5179	# We found the default executable, but exeext='' is most
5180	# certainly right.
5181	break;;
5182    *.* )
5183	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5184	then :; else
5185	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5186	fi
5187	# We set ac_cv_exeext here because the later test for it is not
5188	# safe: cross compilers may not add the suffix if given an `-o'
5189	# argument, so we may need to know it at that point already.
5190	# Even if this section looks crufty: it has the advantage of
5191	# actually working.
5192	break;;
5193    * )
5194	break;;
5195  esac
5196done
5197test "$ac_cv_exeext" = no && ac_cv_exeext=
5198
5199else
5200  ac_file=''
5201fi
5202if test -z "$ac_file"; then :
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204$as_echo "no" >&6; }
5205$as_echo "$as_me: failed program was:" >&5
5206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5210as_fn_error 77 "C compiler cannot create executables
5211See \`config.log' for more details" "$LINENO" 5; }
5212else
5213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214$as_echo "yes" >&6; }
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5217$as_echo_n "checking for C compiler default output file name... " >&6; }
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5219$as_echo "$ac_file" >&6; }
5220ac_exeext=$ac_cv_exeext
5221
5222rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5223ac_clean_files=$ac_clean_files_save
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5225$as_echo_n "checking for suffix of executables... " >&6; }
5226if { { ac_try="$ac_link"
5227case "(($ac_try" in
5228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229  *) ac_try_echo=$ac_try;;
5230esac
5231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5232$as_echo "$ac_try_echo"; } >&5
5233  (eval "$ac_link") 2>&5
5234  ac_status=$?
5235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5236  test $ac_status = 0; }; then :
5237  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5238# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5239# work properly (i.e., refer to `conftest.exe'), while it won't with
5240# `rm'.
5241for ac_file in conftest.exe conftest conftest.*; do
5242  test -f "$ac_file" || continue
5243  case $ac_file in
5244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5245    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5246	  break;;
5247    * ) break;;
5248  esac
5249done
5250else
5251  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5253as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5254See \`config.log' for more details" "$LINENO" 5; }
5255fi
5256rm -f conftest conftest$ac_cv_exeext
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5258$as_echo "$ac_cv_exeext" >&6; }
5259
5260rm -f conftest.$ac_ext
5261EXEEXT=$ac_cv_exeext
5262ac_exeext=$EXEEXT
5263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h.  */
5265#include <stdio.h>
5266int
5267main ()
5268{
5269FILE *f = fopen ("conftest.out", "w");
5270 return ferror (f) || fclose (f) != 0;
5271
5272  ;
5273  return 0;
5274}
5275_ACEOF
5276ac_clean_files="$ac_clean_files conftest.out"
5277# Check that the compiler produces executables we can run.  If not, either
5278# the compiler is broken, or we cross compile.
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5280$as_echo_n "checking whether we are cross compiling... " >&6; }
5281if test "$cross_compiling" != yes; then
5282  { { ac_try="$ac_link"
5283case "(($ac_try" in
5284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285  *) ac_try_echo=$ac_try;;
5286esac
5287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5288$as_echo "$ac_try_echo"; } >&5
5289  (eval "$ac_link") 2>&5
5290  ac_status=$?
5291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5292  test $ac_status = 0; }
5293  if { ac_try='./conftest$ac_cv_exeext'
5294  { { case "(($ac_try" in
5295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296  *) ac_try_echo=$ac_try;;
5297esac
5298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5299$as_echo "$ac_try_echo"; } >&5
5300  (eval "$ac_try") 2>&5
5301  ac_status=$?
5302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5303  test $ac_status = 0; }; }; then
5304    cross_compiling=no
5305  else
5306    if test "$cross_compiling" = maybe; then
5307	cross_compiling=yes
5308    else
5309	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5311as_fn_error $? "cannot run C compiled programs.
5312If you meant to cross compile, use \`--host'.
5313See \`config.log' for more details" "$LINENO" 5; }
5314    fi
5315  fi
5316fi
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5318$as_echo "$cross_compiling" >&6; }
5319
5320rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5321ac_clean_files=$ac_clean_files_save
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5323$as_echo_n "checking for suffix of object files... " >&6; }
5324if ${ac_cv_objext+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329
5330int
5331main ()
5332{
5333
5334  ;
5335  return 0;
5336}
5337_ACEOF
5338rm -f conftest.o conftest.obj
5339if { { ac_try="$ac_compile"
5340case "(($ac_try" in
5341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342  *) ac_try_echo=$ac_try;;
5343esac
5344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5345$as_echo "$ac_try_echo"; } >&5
5346  (eval "$ac_compile") 2>&5
5347  ac_status=$?
5348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5349  test $ac_status = 0; }; then :
5350  for ac_file in conftest.o conftest.obj conftest.*; do
5351  test -f "$ac_file" || continue;
5352  case $ac_file in
5353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5354    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5355       break;;
5356  esac
5357done
5358else
5359  $as_echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5364as_fn_error $? "cannot compute suffix of object files: cannot compile
5365See \`config.log' for more details" "$LINENO" 5; }
5366fi
5367rm -f conftest.$ac_cv_objext conftest.$ac_ext
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5370$as_echo "$ac_cv_objext" >&6; }
5371OBJEXT=$ac_cv_objext
5372ac_objext=$OBJEXT
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5374$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5375if ${ac_cv_c_compiler_gnu+:} false; then :
5376  $as_echo_n "(cached) " >&6
5377else
5378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380
5381int
5382main ()
5383{
5384#ifndef __GNUC__
5385       choke me
5386#endif
5387
5388  ;
5389  return 0;
5390}
5391_ACEOF
5392if ac_fn_c_try_compile "$LINENO"; then :
5393  ac_compiler_gnu=yes
5394else
5395  ac_compiler_gnu=no
5396fi
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398ac_cv_c_compiler_gnu=$ac_compiler_gnu
5399
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5402$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5403if test $ac_compiler_gnu = yes; then
5404  GCC=yes
5405else
5406  GCC=
5407fi
5408ac_test_CFLAGS=${CFLAGS+set}
5409ac_save_CFLAGS=$CFLAGS
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5411$as_echo_n "checking whether $CC accepts -g... " >&6; }
5412if ${ac_cv_prog_cc_g+:} false; then :
5413  $as_echo_n "(cached) " >&6
5414else
5415  ac_save_c_werror_flag=$ac_c_werror_flag
5416   ac_c_werror_flag=yes
5417   ac_cv_prog_cc_g=no
5418   CFLAGS="-g"
5419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420/* end confdefs.h.  */
5421
5422int
5423main ()
5424{
5425
5426  ;
5427  return 0;
5428}
5429_ACEOF
5430if ac_fn_c_try_compile "$LINENO"; then :
5431  ac_cv_prog_cc_g=yes
5432else
5433  CFLAGS=""
5434      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h.  */
5436
5437int
5438main ()
5439{
5440
5441  ;
5442  return 0;
5443}
5444_ACEOF
5445if ac_fn_c_try_compile "$LINENO"; then :
5446
5447else
5448  ac_c_werror_flag=$ac_save_c_werror_flag
5449	 CFLAGS="-g"
5450	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452
5453int
5454main ()
5455{
5456
5457  ;
5458  return 0;
5459}
5460_ACEOF
5461if ac_fn_c_try_compile "$LINENO"; then :
5462  ac_cv_prog_cc_g=yes
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465fi
5466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467fi
5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469   ac_c_werror_flag=$ac_save_c_werror_flag
5470fi
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5472$as_echo "$ac_cv_prog_cc_g" >&6; }
5473if test "$ac_test_CFLAGS" = set; then
5474  CFLAGS=$ac_save_CFLAGS
5475elif test $ac_cv_prog_cc_g = yes; then
5476  if test "$GCC" = yes; then
5477    CFLAGS="-g -O2"
5478  else
5479    CFLAGS="-g"
5480  fi
5481else
5482  if test "$GCC" = yes; then
5483    CFLAGS="-O2"
5484  else
5485    CFLAGS=
5486  fi
5487fi
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5489$as_echo_n "checking for $CC option to enable C11 features... " >&6; }
5490if ${ac_cv_prog_cc_c11+:} false; then :
5491  $as_echo_n "(cached) " >&6
5492else
5493  ac_cv_prog_cc_c11=no
5494ac_save_CC=$CC
5495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h.  */
5497#include <stdarg.h>
5498#include <stdbool.h>
5499#include <stddef.h>
5500#include <stdlib.h>
5501#include <wchar.h>
5502#include <stdio.h>
5503
5504// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5505#define debug(...) fprintf (stderr, __VA_ARGS__)
5506#define showlist(...) puts (#__VA_ARGS__)
5507#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5508static void
5509test_varargs_macros (void)
5510{
5511  int x = 1234;
5512  int y = 5678;
5513  debug ("Flag");
5514  debug ("X = %d\n", x);
5515  showlist (The first, second, and third items.);
5516  report (x>y, "x is %d but y is %d", x, y);
5517}
5518
5519// Check long long types.
5520#define BIG64 18446744073709551615ull
5521#define BIG32 4294967295ul
5522#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5523#if !BIG_OK
5524  your preprocessor is broken;
5525#endif
5526#if BIG_OK
5527#else
5528  your preprocessor is broken;
5529#endif
5530static long long int bignum = -9223372036854775807LL;
5531static unsigned long long int ubignum = BIG64;
5532
5533struct incomplete_array
5534{
5535  int datasize;
5536  double data[];
5537};
5538
5539struct named_init {
5540  int number;
5541  const wchar_t *name;
5542  double average;
5543};
5544
5545typedef const char *ccp;
5546
5547static inline int
5548test_restrict (ccp restrict text)
5549{
5550  // See if C++-style comments work.
5551  // Iterate through items via the restricted pointer.
5552  // Also check for declarations in for loops.
5553  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5554    continue;
5555  return 0;
5556}
5557
5558// Check varargs and va_copy.
5559static bool
5560test_varargs (const char *format, ...)
5561{
5562  va_list args;
5563  va_start (args, format);
5564  va_list args_copy;
5565  va_copy (args_copy, args);
5566
5567  const char *str = "";
5568  int number = 0;
5569  float fnumber = 0;
5570
5571  while (*format)
5572    {
5573      switch (*format++)
5574	{
5575	case 's': // string
5576	  str = va_arg (args_copy, const char *);
5577	  break;
5578	case 'd': // int
5579	  number = va_arg (args_copy, int);
5580	  break;
5581	case 'f': // float
5582	  fnumber = va_arg (args_copy, double);
5583	  break;
5584	default:
5585	  break;
5586	}
5587    }
5588  va_end (args_copy);
5589  va_end (args);
5590
5591  return *str && number && fnumber;
5592}
5593// Check _Alignas.
5594char _Alignas (double) aligned_as_double;
5595char _Alignas (0) no_special_alignment;
5596extern char aligned_as_int;
5597char _Alignas (0) _Alignas (int) aligned_as_int;
5598
5599// Check _Alignof.
5600enum
5601{
5602  int_alignment = _Alignof (int),
5603  int_array_alignment = _Alignof (int[100]),
5604  char_alignment = _Alignof (char)
5605};
5606_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
5607
5608// Check _Noreturn.
5609int _Noreturn does_not_return (void) { for (;;) continue; }
5610
5611// Check _Static_assert.
5612struct test_static_assert
5613{
5614  int x;
5615  _Static_assert (sizeof (int) <= sizeof (long int),
5616                  "_Static_assert does not work in struct");
5617  long int y;
5618};
5619
5620// Check UTF-8 literals.
5621#define u8 syntax error!
5622char const utf8_literal[] = u8"happens to be ASCII" "another string";
5623
5624// Check duplicate typedefs.
5625typedef long *long_ptr;
5626typedef long int *long_ptr;
5627typedef long_ptr long_ptr;
5628
5629// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
5630struct anonymous
5631{
5632  union {
5633    struct { int i; int j; };
5634    struct { int k; long int l; } w;
5635  };
5636  int m;
5637} v1;
5638
5639int
5640main ()
5641{
5642
5643  // Check bool.
5644  _Bool success = false;
5645
5646  // Check restrict.
5647  if (test_restrict ("String literal") == 0)
5648    success = true;
5649  char *restrict newvar = "Another string";
5650
5651  // Check varargs.
5652  success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5653  test_varargs_macros ();
5654
5655  // Check flexible array members.
5656  struct incomplete_array *ia =
5657    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5658  ia->datasize = 10;
5659  for (int i = 0; i < ia->datasize; ++i)
5660    ia->data[i] = i * 1.234;
5661
5662  // Check named initializers.
5663  struct named_init ni = {
5664    .number = 34,
5665    .name = L"Test wide string",
5666    .average = 543.34343,
5667  };
5668
5669  ni.number = 58;
5670
5671  int dynamic_array[ni.number];
5672  dynamic_array[ni.number - 1] = 543;
5673
5674  // work around unused variable warnings
5675  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5676	  || dynamic_array[ni.number - 1] != 543);
5677
5678  v1.i = 2;
5679  v1.w.k = 5;
5680  _Static_assert ((offsetof (struct anonymous, i)
5681		   == offsetof (struct anonymous, w.k)),
5682		  "Anonymous union alignment botch");
5683
5684  ;
5685  return 0;
5686}
5687_ACEOF
5688for ac_arg in '' -std=gnu11
5689do
5690  CC="$ac_save_CC $ac_arg"
5691  if ac_fn_c_try_compile "$LINENO"; then :
5692  ac_cv_prog_cc_c11=$ac_arg
5693fi
5694rm -f core conftest.err conftest.$ac_objext
5695  test "x$ac_cv_prog_cc_c11" != "xno" && break
5696done
5697rm -f conftest.$ac_ext
5698CC=$ac_save_CC
5699
5700fi
5701# AC_CACHE_VAL
5702ac_prog_cc_stdc_options=
5703case "x$ac_cv_prog_cc_c11" in
5704  x)
5705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5706$as_echo "none needed" >&6; } ;;
5707  xno)
5708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5709$as_echo "unsupported" >&6; } ;;
5710  *)
5711    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
5712    CC=$CC$ac_prog_cc_stdc_options
5713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5714$as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
5715esac
5716if test "x$ac_cv_prog_cc_c11" != xno; then :
5717  ac_prog_cc_stdc=c11
5718		 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5719else
5720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5721$as_echo_n "checking for $CC option to enable C99 features... " >&6; }
5722if ${ac_cv_prog_cc_c99+:} false; then :
5723  $as_echo_n "(cached) " >&6
5724else
5725  ac_cv_prog_cc_c99=no
5726ac_save_CC=$CC
5727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728/* end confdefs.h.  */
5729#include <stdarg.h>
5730#include <stdbool.h>
5731#include <stddef.h>
5732#include <stdlib.h>
5733#include <wchar.h>
5734#include <stdio.h>
5735
5736// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5737#define debug(...) fprintf (stderr, __VA_ARGS__)
5738#define showlist(...) puts (#__VA_ARGS__)
5739#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5740static void
5741test_varargs_macros (void)
5742{
5743  int x = 1234;
5744  int y = 5678;
5745  debug ("Flag");
5746  debug ("X = %d\n", x);
5747  showlist (The first, second, and third items.);
5748  report (x>y, "x is %d but y is %d", x, y);
5749}
5750
5751// Check long long types.
5752#define BIG64 18446744073709551615ull
5753#define BIG32 4294967295ul
5754#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5755#if !BIG_OK
5756  your preprocessor is broken;
5757#endif
5758#if BIG_OK
5759#else
5760  your preprocessor is broken;
5761#endif
5762static long long int bignum = -9223372036854775807LL;
5763static unsigned long long int ubignum = BIG64;
5764
5765struct incomplete_array
5766{
5767  int datasize;
5768  double data[];
5769};
5770
5771struct named_init {
5772  int number;
5773  const wchar_t *name;
5774  double average;
5775};
5776
5777typedef const char *ccp;
5778
5779static inline int
5780test_restrict (ccp restrict text)
5781{
5782  // See if C++-style comments work.
5783  // Iterate through items via the restricted pointer.
5784  // Also check for declarations in for loops.
5785  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5786    continue;
5787  return 0;
5788}
5789
5790// Check varargs and va_copy.
5791static bool
5792test_varargs (const char *format, ...)
5793{
5794  va_list args;
5795  va_start (args, format);
5796  va_list args_copy;
5797  va_copy (args_copy, args);
5798
5799  const char *str = "";
5800  int number = 0;
5801  float fnumber = 0;
5802
5803  while (*format)
5804    {
5805      switch (*format++)
5806	{
5807	case 's': // string
5808	  str = va_arg (args_copy, const char *);
5809	  break;
5810	case 'd': // int
5811	  number = va_arg (args_copy, int);
5812	  break;
5813	case 'f': // float
5814	  fnumber = va_arg (args_copy, double);
5815	  break;
5816	default:
5817	  break;
5818	}
5819    }
5820  va_end (args_copy);
5821  va_end (args);
5822
5823  return *str && number && fnumber;
5824}
5825int
5826main ()
5827{
5828
5829  // Check bool.
5830  _Bool success = false;
5831
5832  // Check restrict.
5833  if (test_restrict ("String literal") == 0)
5834    success = true;
5835  char *restrict newvar = "Another string";
5836
5837  // Check varargs.
5838  success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5839  test_varargs_macros ();
5840
5841  // Check flexible array members.
5842  struct incomplete_array *ia =
5843    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5844  ia->datasize = 10;
5845  for (int i = 0; i < ia->datasize; ++i)
5846    ia->data[i] = i * 1.234;
5847
5848  // Check named initializers.
5849  struct named_init ni = {
5850    .number = 34,
5851    .name = L"Test wide string",
5852    .average = 543.34343,
5853  };
5854
5855  ni.number = 58;
5856
5857  int dynamic_array[ni.number];
5858  dynamic_array[ni.number - 1] = 543;
5859
5860  // work around unused variable warnings
5861  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5862	  || dynamic_array[ni.number - 1] != 543);
5863
5864  ;
5865  return 0;
5866}
5867_ACEOF
5868for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5869do
5870  CC="$ac_save_CC $ac_arg"
5871  if ac_fn_c_try_compile "$LINENO"; then :
5872  ac_cv_prog_cc_c99=$ac_arg
5873fi
5874rm -f core conftest.err conftest.$ac_objext
5875  test "x$ac_cv_prog_cc_c99" != "xno" && break
5876done
5877rm -f conftest.$ac_ext
5878CC=$ac_save_CC
5879
5880fi
5881# AC_CACHE_VAL
5882ac_prog_cc_stdc_options=
5883case "x$ac_cv_prog_cc_c99" in
5884  x)
5885    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5886$as_echo "none needed" >&6; } ;;
5887  xno)
5888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5889$as_echo "unsupported" >&6; } ;;
5890  *)
5891    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5892    CC=$CC$ac_prog_cc_stdc_options
5893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5894$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5895esac
5896if test "x$ac_cv_prog_cc_c99" != xno; then :
5897  ac_prog_cc_stdc=c99
5898		    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5899else
5900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5901$as_echo_n "checking for $CC option to enable C89 features... " >&6; }
5902if ${ac_cv_prog_cc_c89+:} false; then :
5903  $as_echo_n "(cached) " >&6
5904else
5905  ac_cv_prog_cc_c89=no
5906ac_save_CC=$CC
5907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h.  */
5909#include <stdarg.h>
5910#include <stdio.h>
5911struct stat;
5912/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5913struct buf { int x; };
5914FILE * (*rcsopen) (struct buf *, struct stat *, int);
5915static char *e (p, i)
5916     char **p;
5917     int i;
5918{
5919  return p[i];
5920}
5921static char *f (char * (*g) (char **, int), char **p, ...)
5922{
5923  char *s;
5924  va_list v;
5925  va_start (v,p);
5926  s = g (p, va_arg (v,int));
5927  va_end (v);
5928  return s;
5929}
5930
5931/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5932   function prototypes and stuff, but not '\xHH' hex character constants.
5933   These don't provoke an error unfortunately, instead are silently treated
5934   as 'x'.  The following induces an error, until -std is added to get
5935   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5936   array size at least.  It's necessary to write '\x00'==0 to get something
5937   that's true only with -std.  */
5938int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5939
5940/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5941   inside strings and character constants.  */
5942#define FOO(x) 'x'
5943int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5944
5945int test (int i, double x);
5946struct s1 {int (*f) (int a);};
5947struct s2 {int (*f) (double a);};
5948int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5949int argc;
5950char **argv;
5951int
5952main ()
5953{
5954return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5955  ;
5956  return 0;
5957}
5958_ACEOF
5959for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5960	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5961do
5962  CC="$ac_save_CC $ac_arg"
5963  if ac_fn_c_try_compile "$LINENO"; then :
5964  ac_cv_prog_cc_c89=$ac_arg
5965fi
5966rm -f core conftest.err conftest.$ac_objext
5967  test "x$ac_cv_prog_cc_c89" != "xno" && break
5968done
5969rm -f conftest.$ac_ext
5970CC=$ac_save_CC
5971
5972fi
5973# AC_CACHE_VAL
5974ac_prog_cc_stdc_options=
5975case "x$ac_cv_prog_cc_c89" in
5976  x)
5977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5978$as_echo "none needed" >&6; } ;;
5979  xno)
5980    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5981$as_echo "unsupported" >&6; } ;;
5982  *)
5983    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5984    CC=$CC$ac_prog_cc_stdc_options
5985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5986$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5987esac
5988if test "x$ac_cv_prog_cc_c89" != xno; then :
5989  ac_prog_cc_stdc=c89
5990		       ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5991else
5992  ac_prog_cc_stdc=no
5993		       ac_cv_prog_cc_stdc=no
5994fi
5995
5996fi
5997
5998fi
5999
6000ac_ext=c
6001ac_cpp='$CPP $CPPFLAGS'
6002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006
6007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
6008$as_echo_n "checking whether the compiler is clang... " >&6; }
6009if ${gl_cv_compiler_clang+:} false; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014
6015           #ifdef __clang__
6016           barfbarf
6017           #endif
6018
6019int
6020main ()
6021{
6022
6023  ;
6024  return 0;
6025}
6026
6027_ACEOF
6028if ac_fn_c_try_compile "$LINENO"; then :
6029  gl_cv_compiler_clang=no
6030else
6031  gl_cv_compiler_clang=yes
6032fi
6033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034
6035fi
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
6037$as_echo "$gl_cv_compiler_clang" >&6; }
6038
6039
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
6041$as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
6042if ${gl_cv_compiler_check_decl_option+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  if test $gl_cv_compiler_clang = yes; then
6046                     save_ac_compile="$ac_compile"
6047       ac_compile="$ac_compile -Werror=implicit-function-declaration"
6048                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h.  */
6050
6051int
6052main ()
6053{
6054
6055  ;
6056  return 0;
6057}
6058_ACEOF
6059if ac_fn_c_try_compile "$LINENO"; then :
6060  gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
6061else
6062  gl_cv_compiler_check_decl_option=none
6063fi
6064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065       ac_compile="$save_ac_compile"
6066     else
6067       gl_cv_compiler_check_decl_option=none
6068     fi
6069
6070fi
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
6072$as_echo "$gl_cv_compiler_check_decl_option" >&6; }
6073  if test "x$gl_cv_compiler_check_decl_option" != xnone; then
6074    ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
6075  else
6076    ac_compile_for_check_decl="$ac_compile"
6077  fi
6078
6079DEPDIR="${am__leading_dot}deps"
6080
6081ac_config_commands="$ac_config_commands depfiles"
6082
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6084$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
6085cat > confinc.mk << 'END'
6086am__doit:
6087	@echo this is the am__doit target >confinc.out
6088.PHONY: am__doit
6089END
6090am__include="#"
6091am__quote=
6092# BSD make does it like this.
6093echo '.include "confinc.mk" # ignored' > confmf.BSD
6094# Other make implementations (GNU, Solaris 10, AIX) do it like this.
6095echo 'include confinc.mk # ignored' > confmf.GNU
6096_am_result=no
6097for s in GNU BSD; do
6098  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6099   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6100   ac_status=$?
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); }
6103  case $?:`cat confinc.out 2>/dev/null` in #(
6104  '0:this is the am__doit target') :
6105    case $s in #(
6106  BSD) :
6107    am__include='.include' am__quote='"' ;; #(
6108  *) :
6109    am__include='include' am__quote='' ;;
6110esac ;; #(
6111  *) :
6112     ;;
6113esac
6114  if test "$am__include" != "#"; then
6115    _am_result="yes ($s style)"
6116    break
6117  fi
6118done
6119rm -f confinc.* confmf.*
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6121$as_echo "${_am_result}" >&6; }
6122
6123# Check whether --enable-dependency-tracking was given.
6124if test "${enable_dependency_tracking+set}" = set; then :
6125  enableval=$enable_dependency_tracking;
6126fi
6127
6128if test "x$enable_dependency_tracking" != xno; then
6129  am_depcomp="$ac_aux_dir/depcomp"
6130  AMDEPBACKSLASH='\'
6131  am__nodep='_no'
6132fi
6133 if test "x$enable_dependency_tracking" != xno; then
6134  AMDEP_TRUE=
6135  AMDEP_FALSE='#'
6136else
6137  AMDEP_TRUE='#'
6138  AMDEP_FALSE=
6139fi
6140
6141
6142
6143depcc="$CC"   am_compiler_list=
6144
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6146$as_echo_n "checking dependency style of $depcc... " >&6; }
6147if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6148  $as_echo_n "(cached) " >&6
6149else
6150  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6151  # We make a subdir and do the tests there.  Otherwise we can end up
6152  # making bogus files that we don't know about and never remove.  For
6153  # instance it was reported that on HP-UX the gcc test will end up
6154  # making a dummy file named 'D' -- because '-MD' means "put the output
6155  # in D".
6156  rm -rf conftest.dir
6157  mkdir conftest.dir
6158  # Copy depcomp to subdir because otherwise we won't find it if we're
6159  # using a relative directory.
6160  cp "$am_depcomp" conftest.dir
6161  cd conftest.dir
6162  # We will build objects and dependencies in a subdirectory because
6163  # it helps to detect inapplicable dependency modes.  For instance
6164  # both Tru64's cc and ICC support -MD to output dependencies as a
6165  # side effect of compilation, but ICC will put the dependencies in
6166  # the current directory while Tru64 will put them in the object
6167  # directory.
6168  mkdir sub
6169
6170  am_cv_CC_dependencies_compiler_type=none
6171  if test "$am_compiler_list" = ""; then
6172     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6173  fi
6174  am__universal=false
6175  case " $depcc " in #(
6176     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6177     esac
6178
6179  for depmode in $am_compiler_list; do
6180    # Setup a source with many dependencies, because some compilers
6181    # like to wrap large dependency lists on column 80 (with \), and
6182    # we should not choose a depcomp mode which is confused by this.
6183    #
6184    # We need to recreate these files for each test, as the compiler may
6185    # overwrite some of them when testing with obscure command lines.
6186    # This happens at least with the AIX C compiler.
6187    : > sub/conftest.c
6188    for i in 1 2 3 4 5 6; do
6189      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6190      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6191      # Solaris 10 /bin/sh.
6192      echo '/* dummy */' > sub/conftst$i.h
6193    done
6194    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6195
6196    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6197    # mode.  It turns out that the SunPro C++ compiler does not properly
6198    # handle '-M -o', and we need to detect this.  Also, some Intel
6199    # versions had trouble with output in subdirs.
6200    am__obj=sub/conftest.${OBJEXT-o}
6201    am__minus_obj="-o $am__obj"
6202    case $depmode in
6203    gcc)
6204      # This depmode causes a compiler race in universal mode.
6205      test "$am__universal" = false || continue
6206      ;;
6207    nosideeffect)
6208      # After this tag, mechanisms are not by side-effect, so they'll
6209      # only be used when explicitly requested.
6210      if test "x$enable_dependency_tracking" = xyes; then
6211	continue
6212      else
6213	break
6214      fi
6215      ;;
6216    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6217      # This compiler won't grok '-c -o', but also, the minuso test has
6218      # not run yet.  These depmodes are late enough in the game, and
6219      # so weak that their functioning should not be impacted.
6220      am__obj=conftest.${OBJEXT-o}
6221      am__minus_obj=
6222      ;;
6223    none) break ;;
6224    esac
6225    if depmode=$depmode \
6226       source=sub/conftest.c object=$am__obj \
6227       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6228       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6229         >/dev/null 2>conftest.err &&
6230       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6231       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6232       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6233       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6234      # icc doesn't choke on unknown options, it will just issue warnings
6235      # or remarks (even with -Werror).  So we grep stderr for any message
6236      # that says an option was ignored or not supported.
6237      # When given -MP, icc 7.0 and 7.1 complain thusly:
6238      #   icc: Command line warning: ignoring option '-M'; no argument required
6239      # The diagnosis changed in icc 8.0:
6240      #   icc: Command line remark: option '-MP' not supported
6241      if (grep 'ignoring option' conftest.err ||
6242          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6243        am_cv_CC_dependencies_compiler_type=$depmode
6244        break
6245      fi
6246    fi
6247  done
6248
6249  cd ..
6250  rm -rf conftest.dir
6251else
6252  am_cv_CC_dependencies_compiler_type=none
6253fi
6254
6255fi
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6257$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6258CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6259
6260 if
6261  test "x$enable_dependency_tracking" != xno \
6262  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6263  am__fastdepCC_TRUE=
6264  am__fastdepCC_FALSE='#'
6265else
6266  am__fastdepCC_TRUE='#'
6267  am__fastdepCC_FALSE=
6268fi
6269
6270
6271
6272
6273ac_ext=c
6274ac_cpp='$CPP $CPPFLAGS'
6275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6279$as_echo_n "checking how to run the C preprocessor... " >&6; }
6280# On Suns, sometimes $CPP names a directory.
6281if test -n "$CPP" && test -d "$CPP"; then
6282  CPP=
6283fi
6284if test -z "$CPP"; then
6285  if ${ac_cv_prog_CPP+:} false; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288      # Double quotes because CPP needs to be expanded
6289    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6290    do
6291      ac_preproc_ok=false
6292for ac_c_preproc_warn_flag in '' yes
6293do
6294  # Use a header file that comes with gcc, so configuring glibc
6295  # with a fresh cross-compiler works.
6296  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6297  # <limits.h> exists even on freestanding compilers.
6298  # On the NeXT, cc -E runs the code through the compiler's parser,
6299  # not just through cpp. "Syntax error" is here to catch this case.
6300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h.  */
6302#ifdef __STDC__
6303# include <limits.h>
6304#else
6305# include <assert.h>
6306#endif
6307		     Syntax error
6308_ACEOF
6309if ac_fn_c_try_cpp "$LINENO"; then :
6310
6311else
6312  # Broken: fails on valid input.
6313continue
6314fi
6315rm -f conftest.err conftest.i conftest.$ac_ext
6316
6317  # OK, works on sane cases.  Now check whether nonexistent headers
6318  # can be detected and how.
6319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320/* end confdefs.h.  */
6321#include <ac_nonexistent.h>
6322_ACEOF
6323if ac_fn_c_try_cpp "$LINENO"; then :
6324  # Broken: success on invalid input.
6325continue
6326else
6327  # Passes both tests.
6328ac_preproc_ok=:
6329break
6330fi
6331rm -f conftest.err conftest.i conftest.$ac_ext
6332
6333done
6334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6335rm -f conftest.i conftest.err conftest.$ac_ext
6336if $ac_preproc_ok; then :
6337  break
6338fi
6339
6340    done
6341    ac_cv_prog_CPP=$CPP
6342
6343fi
6344  CPP=$ac_cv_prog_CPP
6345else
6346  ac_cv_prog_CPP=$CPP
6347fi
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6349$as_echo "$CPP" >&6; }
6350ac_preproc_ok=false
6351for ac_c_preproc_warn_flag in '' yes
6352do
6353  # Use a header file that comes with gcc, so configuring glibc
6354  # with a fresh cross-compiler works.
6355  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6356  # <limits.h> exists even on freestanding compilers.
6357  # On the NeXT, cc -E runs the code through the compiler's parser,
6358  # not just through cpp. "Syntax error" is here to catch this case.
6359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h.  */
6361#ifdef __STDC__
6362# include <limits.h>
6363#else
6364# include <assert.h>
6365#endif
6366		     Syntax error
6367_ACEOF
6368if ac_fn_c_try_cpp "$LINENO"; then :
6369
6370else
6371  # Broken: fails on valid input.
6372continue
6373fi
6374rm -f conftest.err conftest.i conftest.$ac_ext
6375
6376  # OK, works on sane cases.  Now check whether nonexistent headers
6377  # can be detected and how.
6378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379/* end confdefs.h.  */
6380#include <ac_nonexistent.h>
6381_ACEOF
6382if ac_fn_c_try_cpp "$LINENO"; then :
6383  # Broken: success on invalid input.
6384continue
6385else
6386  # Passes both tests.
6387ac_preproc_ok=:
6388break
6389fi
6390rm -f conftest.err conftest.i conftest.$ac_ext
6391
6392done
6393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6394rm -f conftest.i conftest.err conftest.$ac_ext
6395if $ac_preproc_ok; then :
6396
6397else
6398  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6400as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6401See \`config.log' for more details" "$LINENO" 5; }
6402fi
6403
6404ac_ext=c
6405ac_cpp='$CPP $CPPFLAGS'
6406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409
6410
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6412$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6413if ${ac_cv_path_GREP+:} false; then :
6414  $as_echo_n "(cached) " >&6
6415else
6416  if test -z "$GREP"; then
6417  ac_path_GREP_found=false
6418  # Loop through the user's path and test for each of PROGNAME-LIST
6419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6421do
6422  IFS=$as_save_IFS
6423  test -z "$as_dir" && as_dir=.
6424    for ac_prog in grep ggrep; do
6425    for ac_exec_ext in '' $ac_executable_extensions; do
6426      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6427      as_fn_executable_p "$ac_path_GREP" || continue
6428# Check for GNU ac_path_GREP and select it if it is found.
6429  # Check for GNU $ac_path_GREP
6430case `"$ac_path_GREP" --version 2>&1` in
6431*GNU*)
6432  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6433*)
6434  ac_count=0
6435  $as_echo_n 0123456789 >"conftest.in"
6436  while :
6437  do
6438    cat "conftest.in" "conftest.in" >"conftest.tmp"
6439    mv "conftest.tmp" "conftest.in"
6440    cp "conftest.in" "conftest.nl"
6441    $as_echo 'GREP' >> "conftest.nl"
6442    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6444    as_fn_arith $ac_count + 1 && ac_count=$as_val
6445    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6446      # Best one so far, save it but keep looking for a better one
6447      ac_cv_path_GREP="$ac_path_GREP"
6448      ac_path_GREP_max=$ac_count
6449    fi
6450    # 10*(2^10) chars as input seems more than enough
6451    test $ac_count -gt 10 && break
6452  done
6453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6454esac
6455
6456      $ac_path_GREP_found && break 3
6457    done
6458  done
6459  done
6460IFS=$as_save_IFS
6461  if test -z "$ac_cv_path_GREP"; then
6462    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6463  fi
6464else
6465  ac_cv_path_GREP=$GREP
6466fi
6467
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6470$as_echo "$ac_cv_path_GREP" >&6; }
6471 GREP="$ac_cv_path_GREP"
6472
6473
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6475$as_echo_n "checking for egrep... " >&6; }
6476if ${ac_cv_path_EGREP+:} false; then :
6477  $as_echo_n "(cached) " >&6
6478else
6479  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6480   then ac_cv_path_EGREP="$GREP -E"
6481   else
6482     if test -z "$EGREP"; then
6483  ac_path_EGREP_found=false
6484  # Loop through the user's path and test for each of PROGNAME-LIST
6485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6487do
6488  IFS=$as_save_IFS
6489  test -z "$as_dir" && as_dir=.
6490    for ac_prog in egrep; do
6491    for ac_exec_ext in '' $ac_executable_extensions; do
6492      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6493      as_fn_executable_p "$ac_path_EGREP" || continue
6494# Check for GNU ac_path_EGREP and select it if it is found.
6495  # Check for GNU $ac_path_EGREP
6496case `"$ac_path_EGREP" --version 2>&1` in
6497*GNU*)
6498  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6499*)
6500  ac_count=0
6501  $as_echo_n 0123456789 >"conftest.in"
6502  while :
6503  do
6504    cat "conftest.in" "conftest.in" >"conftest.tmp"
6505    mv "conftest.tmp" "conftest.in"
6506    cp "conftest.in" "conftest.nl"
6507    $as_echo 'EGREP' >> "conftest.nl"
6508    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6509    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6510    as_fn_arith $ac_count + 1 && ac_count=$as_val
6511    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6512      # Best one so far, save it but keep looking for a better one
6513      ac_cv_path_EGREP="$ac_path_EGREP"
6514      ac_path_EGREP_max=$ac_count
6515    fi
6516    # 10*(2^10) chars as input seems more than enough
6517    test $ac_count -gt 10 && break
6518  done
6519  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6520esac
6521
6522      $ac_path_EGREP_found && break 3
6523    done
6524  done
6525  done
6526IFS=$as_save_IFS
6527  if test -z "$ac_cv_path_EGREP"; then
6528    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6529  fi
6530else
6531  ac_cv_path_EGREP=$EGREP
6532fi
6533
6534   fi
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6537$as_echo "$ac_cv_path_EGREP" >&6; }
6538 EGREP="$ac_cv_path_EGREP"
6539
6540
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6542$as_echo_n "checking for ANSI C header files... " >&6; }
6543if ${ac_cv_header_stdc+:} false; then :
6544  $as_echo_n "(cached) " >&6
6545else
6546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h.  */
6548#include <stdlib.h>
6549#include <stdarg.h>
6550#include <string.h>
6551#include <float.h>
6552
6553int
6554main ()
6555{
6556
6557  ;
6558  return 0;
6559}
6560_ACEOF
6561if ac_fn_c_try_compile "$LINENO"; then :
6562  ac_cv_header_stdc=yes
6563else
6564  ac_cv_header_stdc=no
6565fi
6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567
6568if test $ac_cv_header_stdc = yes; then
6569  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h.  */
6572#include <string.h>
6573
6574_ACEOF
6575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6576  $EGREP "memchr" >/dev/null 2>&1; then :
6577
6578else
6579  ac_cv_header_stdc=no
6580fi
6581rm -f conftest*
6582
6583fi
6584
6585if test $ac_cv_header_stdc = yes; then
6586  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h.  */
6589#include <stdlib.h>
6590
6591_ACEOF
6592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6593  $EGREP "free" >/dev/null 2>&1; then :
6594
6595else
6596  ac_cv_header_stdc=no
6597fi
6598rm -f conftest*
6599
6600fi
6601
6602if test $ac_cv_header_stdc = yes; then
6603  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6604  if test "$cross_compiling" = yes; then :
6605  :
6606else
6607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608/* end confdefs.h.  */
6609#include <ctype.h>
6610#include <stdlib.h>
6611#if ((' ' & 0x0FF) == 0x020)
6612# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6613# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6614#else
6615# define ISLOWER(c) \
6616		   (('a' <= (c) && (c) <= 'i') \
6617		     || ('j' <= (c) && (c) <= 'r') \
6618		     || ('s' <= (c) && (c) <= 'z'))
6619# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6620#endif
6621
6622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6623int
6624main ()
6625{
6626  int i;
6627  for (i = 0; i < 256; i++)
6628    if (XOR (islower (i), ISLOWER (i))
6629	|| toupper (i) != TOUPPER (i))
6630      return 2;
6631  return 0;
6632}
6633_ACEOF
6634if ac_fn_c_try_run "$LINENO"; then :
6635
6636else
6637  ac_cv_header_stdc=no
6638fi
6639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6640  conftest.$ac_objext conftest.beam conftest.$ac_ext
6641fi
6642
6643fi
6644fi
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6646$as_echo "$ac_cv_header_stdc" >&6; }
6647if test $ac_cv_header_stdc = yes; then
6648
6649$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6650
6651fi
6652
6653# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6654for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6655		  inttypes.h stdint.h unistd.h
6656do :
6657  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6658ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6659"
6660if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6661  cat >>confdefs.h <<_ACEOF
6662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6663_ACEOF
6664
6665fi
6666
6667done
6668
6669
6670
6671
6672
6673  for ac_header in $ac_header_list
6674do :
6675  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6677"
6678if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6679  cat >>confdefs.h <<_ACEOF
6680#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681_ACEOF
6682
6683fi
6684
6685done
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6696$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6697if ${ac_cv_safe_to_define___extensions__+:} false; then :
6698  $as_echo_n "(cached) " >&6
6699else
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702
6703#         define __EXTENSIONS__ 1
6704          $ac_includes_default
6705int
6706main ()
6707{
6708
6709  ;
6710  return 0;
6711}
6712_ACEOF
6713if ac_fn_c_try_compile "$LINENO"; then :
6714  ac_cv_safe_to_define___extensions__=yes
6715else
6716  ac_cv_safe_to_define___extensions__=no
6717fi
6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6721$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6722
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6724$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6725if ${ac_cv_should_define__xopen_source+:} false; then :
6726  $as_echo_n "(cached) " >&6
6727else
6728  ac_cv_should_define__xopen_source=no
6729    if test $ac_cv_header_wchar_h = yes; then :
6730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731/* end confdefs.h.  */
6732
6733          #include <wchar.h>
6734          mbstate_t x;
6735int
6736main ()
6737{
6738
6739  ;
6740  return 0;
6741}
6742_ACEOF
6743if ac_fn_c_try_compile "$LINENO"; then :
6744
6745else
6746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747/* end confdefs.h.  */
6748
6749            #define _XOPEN_SOURCE 500
6750            #include <wchar.h>
6751            mbstate_t x;
6752int
6753main ()
6754{
6755
6756  ;
6757  return 0;
6758}
6759_ACEOF
6760if ac_fn_c_try_compile "$LINENO"; then :
6761  ac_cv_should_define__xopen_source=yes
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766fi
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6769$as_echo "$ac_cv_should_define__xopen_source" >&6; }
6770
6771  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6772
6773  $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6774
6775  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6776
6777  $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6778
6779  $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6780
6781  $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
6782
6783  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6784
6785  $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6786
6787  $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6788
6789  $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6790
6791  $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6792
6793  $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6794
6795  $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6796
6797  $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6798
6799  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6800
6801  if test $ac_cv_header_minix_config_h = yes; then :
6802  MINIX=yes
6803    $as_echo "#define _MINIX 1" >>confdefs.h
6804
6805    $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6806
6807    $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6808
6809else
6810  MINIX=
6811fi
6812  if test $ac_cv_safe_to_define___extensions__ = yes; then :
6813  $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6814
6815fi
6816  if test $ac_cv_should_define__xopen_source = yes; then :
6817  $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6818
6819fi
6820
6821# Make sure we can run config.sub.
6822$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6823  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6824
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6826$as_echo_n "checking build system type... " >&6; }
6827if ${ac_cv_build+:} false; then :
6828  $as_echo_n "(cached) " >&6
6829else
6830  ac_build_alias=$build_alias
6831test "x$ac_build_alias" = x &&
6832  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6833test "x$ac_build_alias" = x &&
6834  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6835ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6836  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6837
6838fi
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6840$as_echo "$ac_cv_build" >&6; }
6841case $ac_cv_build in
6842*-*-*) ;;
6843*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6844esac
6845build=$ac_cv_build
6846ac_save_IFS=$IFS; IFS='-'
6847set x $ac_cv_build
6848shift
6849build_cpu=$1
6850build_vendor=$2
6851shift; shift
6852# Remember, the first character of IFS is used to create $*,
6853# except with old shells:
6854build_os=$*
6855IFS=$ac_save_IFS
6856case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6857
6858
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6860$as_echo_n "checking host system type... " >&6; }
6861if ${ac_cv_host+:} false; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test "x$host_alias" = x; then
6865  ac_cv_host=$ac_cv_build
6866else
6867  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6868    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6869fi
6870
6871fi
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6873$as_echo "$ac_cv_host" >&6; }
6874case $ac_cv_host in
6875*-*-*) ;;
6876*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6877esac
6878host=$ac_cv_host
6879ac_save_IFS=$IFS; IFS='-'
6880set x $ac_cv_host
6881shift
6882host_cpu=$1
6883host_vendor=$2
6884shift; shift
6885# Remember, the first character of IFS is used to create $*,
6886# except with old shells:
6887host_os=$*
6888IFS=$ac_save_IFS
6889case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6890
6891
6892
6893
6894
6895
6896  case "$host_os" in
6897    openbsd*)
6898
6899$as_echo "#define _ISOC11_SOURCE 1" >>confdefs.h
6900
6901      ;;
6902  esac
6903
6904
6905
6906
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6908$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6909if ${gl_cv_c_amsterdam_compiler+:} false; then :
6910  $as_echo_n "(cached) " >&6
6911else
6912
6913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915
6916#ifdef __ACK__
6917Amsterdam
6918#endif
6919
6920_ACEOF
6921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6922  $EGREP "Amsterdam" >/dev/null 2>&1; then :
6923  gl_cv_c_amsterdam_compiler=yes
6924else
6925  gl_cv_c_amsterdam_compiler=no
6926fi
6927rm -f conftest*
6928
6929
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6932$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6933
6934      if test $gl_cv_c_amsterdam_compiler = yes; then
6935    if test -z "$AR"; then
6936      AR='cc -c.a'
6937    fi
6938    if test -z "$ARFLAGS"; then
6939      ARFLAGS='-o'
6940    fi
6941  else
6942                                                :
6943  fi
6944
6945        if test -n "$ac_tool_prefix"; then
6946  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6947set dummy ${ac_tool_prefix}ar; ac_word=$2
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949$as_echo_n "checking for $ac_word... " >&6; }
6950if ${ac_cv_prog_AR+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  if test -n "$AR"; then
6954  ac_cv_prog_AR="$AR" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959  IFS=$as_save_IFS
6960  test -z "$as_dir" && as_dir=.
6961    for ac_exec_ext in '' $ac_executable_extensions; do
6962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963    ac_cv_prog_AR="${ac_tool_prefix}ar"
6964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965    break 2
6966  fi
6967done
6968  done
6969IFS=$as_save_IFS
6970
6971fi
6972fi
6973AR=$ac_cv_prog_AR
6974if test -n "$AR"; then
6975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6976$as_echo "$AR" >&6; }
6977else
6978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979$as_echo "no" >&6; }
6980fi
6981
6982
6983fi
6984if test -z "$ac_cv_prog_AR"; then
6985  ac_ct_AR=$AR
6986  # Extract the first word of "ar", so it can be a program name with args.
6987set dummy ar; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
6990if ${ac_cv_prog_ac_ct_AR+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  if test -n "$ac_ct_AR"; then
6994  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  test -z "$as_dir" && as_dir=.
7001    for ac_exec_ext in '' $ac_executable_extensions; do
7002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003    ac_cv_prog_ac_ct_AR="ar"
7004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005    break 2
7006  fi
7007done
7008  done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013ac_ct_AR=$ac_cv_prog_ac_ct_AR
7014if test -n "$ac_ct_AR"; then
7015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7016$as_echo "$ac_ct_AR" >&6; }
7017else
7018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022  if test "x$ac_ct_AR" = x; then
7023    AR="ar"
7024  else
7025    case $cross_compiling:$ac_tool_warned in
7026yes:)
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029ac_tool_warned=yes ;;
7030esac
7031    AR=$ac_ct_AR
7032  fi
7033else
7034  AR="$ac_cv_prog_AR"
7035fi
7036
7037  if test -z "$ARFLAGS"; then
7038    ARFLAGS='cr'
7039  fi
7040
7041
7042
7043  if test -z "$RANLIB"; then
7044    if test $gl_cv_c_amsterdam_compiler = yes; then
7045      RANLIB=':'
7046    else
7047            if test -n "$ac_tool_prefix"; then
7048  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7049set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051$as_echo_n "checking for $ac_word... " >&6; }
7052if ${ac_cv_prog_RANLIB+:} false; then :
7053  $as_echo_n "(cached) " >&6
7054else
7055  if test -n "$RANLIB"; then
7056  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063    for ac_exec_ext in '' $ac_executable_extensions; do
7064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070  done
7071IFS=$as_save_IFS
7072
7073fi
7074fi
7075RANLIB=$ac_cv_prog_RANLIB
7076if test -n "$RANLIB"; then
7077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7078$as_echo "$RANLIB" >&6; }
7079else
7080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081$as_echo "no" >&6; }
7082fi
7083
7084
7085fi
7086if test -z "$ac_cv_prog_RANLIB"; then
7087  ac_ct_RANLIB=$RANLIB
7088  # Extract the first word of "ranlib", so it can be a program name with args.
7089set dummy ranlib; ac_word=$2
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
7092if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  if test -n "$ac_ct_RANLIB"; then
7096  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101  IFS=$as_save_IFS
7102  test -z "$as_dir" && as_dir=.
7103    for ac_exec_ext in '' $ac_executable_extensions; do
7104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105    ac_cv_prog_ac_ct_RANLIB="ranlib"
7106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107    break 2
7108  fi
7109done
7110  done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7116if test -n "$ac_ct_RANLIB"; then
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7118$as_echo "$ac_ct_RANLIB" >&6; }
7119else
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
7122fi
7123
7124  if test "x$ac_ct_RANLIB" = x; then
7125    RANLIB=":"
7126  else
7127    case $cross_compiling:$ac_tool_warned in
7128yes:)
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131ac_tool_warned=yes ;;
7132esac
7133    RANLIB=$ac_ct_RANLIB
7134  fi
7135else
7136  RANLIB="$ac_cv_prog_RANLIB"
7137fi
7138
7139    fi
7140  fi
7141
7142
7143# Check whether --enable-largefile was given.
7144if test "${enable_largefile+set}" = set; then :
7145  enableval=$enable_largefile;
7146fi
7147
7148if test "$enable_largefile" != no; then
7149
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7151$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7152if ${ac_cv_sys_largefile_CC+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  ac_cv_sys_largefile_CC=no
7156     if test "$GCC" != yes; then
7157       ac_save_CC=$CC
7158       while :; do
7159         # IRIX 6.2 and later do not support large files by default,
7160         # so use the C compiler's -n32 option if that helps.
7161         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162/* end confdefs.h.  */
7163#include <sys/types.h>
7164 /* Check that off_t can represent 2**63 - 1 correctly.
7165    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7166    since some C++ compilers masquerading as C compilers
7167    incorrectly reject 9223372036854775807.  */
7168#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7169  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7170                       && LARGE_OFF_T % 2147483647 == 1)
7171                      ? 1 : -1];
7172int
7173main ()
7174{
7175
7176  ;
7177  return 0;
7178}
7179_ACEOF
7180         if ac_fn_c_try_compile "$LINENO"; then :
7181  break
7182fi
7183rm -f core conftest.err conftest.$ac_objext
7184         CC="$CC -n32"
7185         if ac_fn_c_try_compile "$LINENO"; then :
7186  ac_cv_sys_largefile_CC=' -n32'; break
7187fi
7188rm -f core conftest.err conftest.$ac_objext
7189         break
7190       done
7191       CC=$ac_save_CC
7192       rm -f conftest.$ac_ext
7193    fi
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7196$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7197  if test "$ac_cv_sys_largefile_CC" != no; then
7198    CC=$CC$ac_cv_sys_largefile_CC
7199  fi
7200
7201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7202$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7203if ${ac_cv_sys_file_offset_bits+:} false; then :
7204  $as_echo_n "(cached) " >&6
7205else
7206  while :; do
7207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209#include <sys/types.h>
7210 /* Check that off_t can represent 2**63 - 1 correctly.
7211    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7212    since some C++ compilers masquerading as C compilers
7213    incorrectly reject 9223372036854775807.  */
7214#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7215  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7216                       && LARGE_OFF_T % 2147483647 == 1)
7217                      ? 1 : -1];
7218int
7219main ()
7220{
7221
7222  ;
7223  return 0;
7224}
7225_ACEOF
7226if ac_fn_c_try_compile "$LINENO"; then :
7227  ac_cv_sys_file_offset_bits=no; break
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h.  */
7232#define _FILE_OFFSET_BITS 64
7233#include <sys/types.h>
7234 /* Check that off_t can represent 2**63 - 1 correctly.
7235    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7236    since some C++ compilers masquerading as C compilers
7237    incorrectly reject 9223372036854775807.  */
7238#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7239  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7240                       && LARGE_OFF_T % 2147483647 == 1)
7241                      ? 1 : -1];
7242int
7243main ()
7244{
7245
7246  ;
7247  return 0;
7248}
7249_ACEOF
7250if ac_fn_c_try_compile "$LINENO"; then :
7251  ac_cv_sys_file_offset_bits=64; break
7252fi
7253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254  ac_cv_sys_file_offset_bits=unknown
7255  break
7256done
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7259$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7260case $ac_cv_sys_file_offset_bits in #(
7261  no | unknown) ;;
7262  *)
7263cat >>confdefs.h <<_ACEOF
7264#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7265_ACEOF
7266;;
7267esac
7268rm -rf conftest*
7269  if test $ac_cv_sys_file_offset_bits = unknown; then
7270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7271$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7272if ${ac_cv_sys_large_files+:} false; then :
7273  $as_echo_n "(cached) " >&6
7274else
7275  while :; do
7276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277/* end confdefs.h.  */
7278#include <sys/types.h>
7279 /* Check that off_t can represent 2**63 - 1 correctly.
7280    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7281    since some C++ compilers masquerading as C compilers
7282    incorrectly reject 9223372036854775807.  */
7283#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7284  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7285                       && LARGE_OFF_T % 2147483647 == 1)
7286                      ? 1 : -1];
7287int
7288main ()
7289{
7290
7291  ;
7292  return 0;
7293}
7294_ACEOF
7295if ac_fn_c_try_compile "$LINENO"; then :
7296  ac_cv_sys_large_files=no; break
7297fi
7298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h.  */
7301#define _LARGE_FILES 1
7302#include <sys/types.h>
7303 /* Check that off_t can represent 2**63 - 1 correctly.
7304    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7305    since some C++ compilers masquerading as C compilers
7306    incorrectly reject 9223372036854775807.  */
7307#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7308  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7309                       && LARGE_OFF_T % 2147483647 == 1)
7310                      ? 1 : -1];
7311int
7312main ()
7313{
7314
7315  ;
7316  return 0;
7317}
7318_ACEOF
7319if ac_fn_c_try_compile "$LINENO"; then :
7320  ac_cv_sys_large_files=1; break
7321fi
7322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323  ac_cv_sys_large_files=unknown
7324  break
7325done
7326fi
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7328$as_echo "$ac_cv_sys_large_files" >&6; }
7329case $ac_cv_sys_large_files in #(
7330  no | unknown) ;;
7331  *)
7332cat >>confdefs.h <<_ACEOF
7333#define _LARGE_FILES $ac_cv_sys_large_files
7334_ACEOF
7335;;
7336esac
7337rm -rf conftest*
7338  fi
7339fi
7340
7341
7342
7343  # Pre-early section.
7344
7345
7346
7347  # Code from module absolute-header:
7348  # Code from module alloca:
7349  # Code from module alloca-opt:
7350  # Code from module argmatch:
7351  # Code from module argp:
7352  # Code from module c-ctype:
7353  # Code from module c-strcase:
7354  # Code from module c-strcaseeq:
7355  # Code from module c99:
7356  # Code from module close-stream:
7357  # Code from module closeout:
7358  # Code from module dirname-lgpl:
7359  # Code from module double-slash-root:
7360  # Code from module errno:
7361  # Code from module error:
7362  # Code from module exitfail:
7363  # Code from module extensions:
7364  # Code from module extern-inline:
7365  # Code from module fcntl-h:
7366  # Code from module filename:
7367  # Code from module float:
7368  # Code from module fpending:
7369  # Code from module getopt-gnu:
7370  # Code from module getopt-posix:
7371  # Code from module getprogname:
7372  # Code from module gettext-h:
7373  # Code from module gettimeofday:
7374  # Code from module hard-locale:
7375  # Code from module include_next:
7376  # Code from module intprops:
7377  # Code from module inttypes-incomplete:
7378  # Code from module isatty:
7379  # Code from module largefile:
7380
7381  # Code from module libc-config:
7382  # Code from module limits-h:
7383  # Code from module localcharset:
7384  # Code from module locale:
7385  # Code from module localtime-buffer:
7386  # Code from module lstat:
7387  # Code from module malloc-gnu:
7388  # Code from module malloc-posix:
7389  # Code from module malloca:
7390  # Code from module mbrtowc:
7391  # Code from module mbsinit:
7392  # Code from module memchr:
7393  # Code from module mempcpy:
7394  # Code from module minmax:
7395  # Code from module mkdir:
7396  # Code from module mkstemp:
7397  # Code from module mkstemps:
7398  # Code from module msvc-inval:
7399  # Code from module msvc-nothrow:
7400  # Code from module multiarch:
7401  # Code from module nocrash:
7402  # Code from module pathmax:
7403  # Code from module progname:
7404  # Code from module quote:
7405  # Code from module quotearg:
7406  # Code from module quotearg-simple:
7407  # Code from module rawmemchr:
7408  # Code from module secure_getenv:
7409  # Code from module setlocale-null:
7410  # Code from module size_max:
7411  # Code from module sleep:
7412  # Code from module snippet/_Noreturn:
7413  # Code from module snippet/arg-nonnull:
7414  # Code from module snippet/c++defs:
7415  # Code from module snippet/warn-on-use:
7416  # Code from module ssize_t:
7417  # Code from module stat:
7418  # Code from module stat-time:
7419  # Code from module std-gnu11:
7420  # Code from module stdalign:
7421  # Code from module stdbool:
7422  # Code from module stddef:
7423  # Code from module stdint:
7424  # Code from module stdio:
7425  # Code from module stdlib:
7426  # Code from module stpcpy:
7427  # Code from module strcase:
7428  # Code from module strchrnul:
7429  # Code from module streq:
7430  # Code from module strerror:
7431  # Code from module strerror-override:
7432  # Code from module string:
7433  # Code from module strings:
7434  # Code from module strndup:
7435  # Code from module strnlen:
7436  # Code from module strverscmp:
7437  # Code from module sys_stat:
7438  # Code from module sys_time:
7439  # Code from module sys_types:
7440  # Code from module sys_wait:
7441  # Code from module sysexits:
7442  # Code from module tempname:
7443  # Code from module time:
7444  # Code from module unistd:
7445  # Code from module vasnprintf:
7446  # Code from module verify:
7447  # Code from module vsnprintf:
7448  # Code from module wchar:
7449  # Code from module wctype-h:
7450  # Code from module xalloc:
7451  # Code from module xalloc-die:
7452  # Code from module xalloc-oversized:
7453  # Code from module xsize:
7454
7455
7456
7457ac_ext=cpp
7458ac_cpp='$CXXCPP $CPPFLAGS'
7459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7462if test -z "$CXX"; then
7463  if test -n "$CCC"; then
7464    CXX=$CCC
7465  else
7466    if test -n "$ac_tool_prefix"; then
7467  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7468  do
7469    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
7473if ${ac_cv_prog_CXX+:} false; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  if test -n "$CXX"; then
7477  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482  IFS=$as_save_IFS
7483  test -z "$as_dir" && as_dir=.
7484    for ac_exec_ext in '' $ac_executable_extensions; do
7485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488    break 2
7489  fi
7490done
7491  done
7492IFS=$as_save_IFS
7493
7494fi
7495fi
7496CXX=$ac_cv_prog_CXX
7497if test -n "$CXX"; then
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7499$as_echo "$CXX" >&6; }
7500else
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503fi
7504
7505
7506    test -n "$CXX" && break
7507  done
7508fi
7509if test -z "$CXX"; then
7510  ac_ct_CXX=$CXX
7511  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7512do
7513  # Extract the first word of "$ac_prog", so it can be a program name with args.
7514set dummy $ac_prog; ac_word=$2
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516$as_echo_n "checking for $ac_word... " >&6; }
7517if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520  if test -n "$ac_ct_CXX"; then
7521  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7522else
7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526  IFS=$as_save_IFS
7527  test -z "$as_dir" && as_dir=.
7528    for ac_exec_ext in '' $ac_executable_extensions; do
7529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530    ac_cv_prog_ac_ct_CXX="$ac_prog"
7531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532    break 2
7533  fi
7534done
7535  done
7536IFS=$as_save_IFS
7537
7538fi
7539fi
7540ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7541if test -n "$ac_ct_CXX"; then
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7543$as_echo "$ac_ct_CXX" >&6; }
7544else
7545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546$as_echo "no" >&6; }
7547fi
7548
7549
7550  test -n "$ac_ct_CXX" && break
7551done
7552
7553  if test "x$ac_ct_CXX" = x; then
7554    CXX="g++"
7555  else
7556    case $cross_compiling:$ac_tool_warned in
7557yes:)
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560ac_tool_warned=yes ;;
7561esac
7562    CXX=$ac_ct_CXX
7563  fi
7564fi
7565
7566  fi
7567fi
7568# Provide some information about the compiler.
7569$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7570set X $ac_compile
7571ac_compiler=$2
7572for ac_option in --version -v -V -qversion; do
7573  { { ac_try="$ac_compiler $ac_option >&5"
7574case "(($ac_try" in
7575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576  *) ac_try_echo=$ac_try;;
7577esac
7578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7579$as_echo "$ac_try_echo"; } >&5
7580  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7581  ac_status=$?
7582  if test -s conftest.err; then
7583    sed '10a\
7584... rest of stderr output deleted ...
7585         10q' conftest.err >conftest.er1
7586    cat conftest.er1 >&5
7587  fi
7588  rm -f conftest.er1 conftest.err
7589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590  test $ac_status = 0; }
7591done
7592
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7594$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7595if ${ac_cv_cxx_compiler_gnu+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600
7601int
7602main ()
7603{
7604#ifndef __GNUC__
7605       choke me
7606#endif
7607
7608  ;
7609  return 0;
7610}
7611_ACEOF
7612if ac_fn_cxx_try_compile "$LINENO"; then :
7613  ac_compiler_gnu=yes
7614else
7615  ac_compiler_gnu=no
7616fi
7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7619
7620fi
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7622$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7623if test $ac_compiler_gnu = yes; then
7624  GXX=yes
7625else
7626  GXX=
7627fi
7628ac_test_CXXFLAGS=${CXXFLAGS+set}
7629ac_save_CXXFLAGS=$CXXFLAGS
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7631$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7632if ${ac_cv_prog_cxx_g+:} false; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7636   ac_cxx_werror_flag=yes
7637   ac_cv_prog_cxx_g=no
7638   CXXFLAGS="-g"
7639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640/* end confdefs.h.  */
7641
7642int
7643main ()
7644{
7645
7646  ;
7647  return 0;
7648}
7649_ACEOF
7650if ac_fn_cxx_try_compile "$LINENO"; then :
7651  ac_cv_prog_cxx_g=yes
7652else
7653  CXXFLAGS=""
7654      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h.  */
7656
7657int
7658main ()
7659{
7660
7661  ;
7662  return 0;
7663}
7664_ACEOF
7665if ac_fn_cxx_try_compile "$LINENO"; then :
7666
7667else
7668  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7669	 CXXFLAGS="-g"
7670	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672
7673int
7674main ()
7675{
7676
7677  ;
7678  return 0;
7679}
7680_ACEOF
7681if ac_fn_cxx_try_compile "$LINENO"; then :
7682  ac_cv_prog_cxx_g=yes
7683fi
7684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685fi
7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687fi
7688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7690fi
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7692$as_echo "$ac_cv_prog_cxx_g" >&6; }
7693if test "$ac_test_CXXFLAGS" = set; then
7694  CXXFLAGS=$ac_save_CXXFLAGS
7695elif test $ac_cv_prog_cxx_g = yes; then
7696  if test "$GXX" = yes; then
7697    CXXFLAGS="-g -O2"
7698  else
7699    CXXFLAGS="-g"
7700  fi
7701else
7702  if test "$GXX" = yes; then
7703    CXXFLAGS="-O2"
7704  else
7705    CXXFLAGS=
7706  fi
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
7709$as_echo_n "checking for $CXX option to enable C++11 features... " >&6; }
7710ac_ext=cpp
7711ac_cpp='$CXXCPP $CPPFLAGS'
7712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7715if ${ac_cv_prog_cxx_cxx11+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  ac_cv_prog_cxx_cxx11=no
7719ac_save_CXX=$CXX
7720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h.  */
7722
7723#include <deque>
7724#include <functional>
7725#include <memory>
7726#include <tuple>
7727#include <array>
7728#include <regex>
7729#include <iostream>
7730
7731namespace cxx11test
7732{
7733  typedef std::shared_ptr<std::string> sptr;
7734  typedef std::weak_ptr<std::string> wptr;
7735
7736  typedef std::tuple<std::string,int,double> tp;
7737  typedef std::array<int, 20> int_array;
7738
7739  constexpr int get_val() { return 20; }
7740
7741  struct testinit
7742  {
7743    int i;
7744    double d;
7745  };
7746
7747  class delegate  {
7748  public:
7749    delegate(int n) : n(n) {}
7750    delegate(): delegate(2354) {}
7751
7752    virtual int getval() { return this->n; };
7753  protected:
7754    int n;
7755  };
7756
7757  class overridden : public delegate {
7758  public:
7759    overridden(int n): delegate(n) {}
7760    virtual int getval() override final { return this->n * 2; }
7761  };
7762
7763  class nocopy {
7764  public:
7765    nocopy(int i): i(i) {}
7766    nocopy() = default;
7767    nocopy(const nocopy&) = delete;
7768    nocopy & operator=(const nocopy&) = delete;
7769  private:
7770    int i;
7771  };
7772}
7773
7774
7775#include <algorithm>
7776#include <cstdlib>
7777#include <fstream>
7778#include <iomanip>
7779#include <iostream>
7780#include <list>
7781#include <map>
7782#include <set>
7783#include <sstream>
7784#include <stdexcept>
7785#include <string>
7786#include <utility>
7787#include <vector>
7788
7789namespace test {
7790  typedef std::vector<std::string> string_vec;
7791  typedef std::pair<int,bool> map_value;
7792  typedef std::map<std::string,map_value> map_type;
7793  typedef std::set<int> set_type;
7794
7795  template<typename T>
7796  class printer {
7797  public:
7798    printer(std::ostringstream& os): os(os) {}
7799    void operator() (T elem) { os << elem << std::endl; }
7800  private:
7801    std::ostringstream& os;
7802  };
7803}
7804
7805int
7806main ()
7807{
7808
7809{
7810  // Test auto and decltype
7811  std::deque<int> d;
7812  d.push_front(43);
7813  d.push_front(484);
7814  d.push_front(3);
7815  d.push_front(844);
7816  int total = 0;
7817  for (auto i = d.begin(); i != d.end(); ++i) { total += *i; }
7818
7819  auto a1 = 6538;
7820  auto a2 = 48573953.4;
7821  auto a3 = "String literal";
7822
7823  decltype(a2) a4 = 34895.034;
7824}
7825{
7826  // Test constexpr
7827  short sa[cxx11test::get_val()] = { 0 };
7828}
7829{
7830  // Test initializer lists
7831  cxx11test::testinit il = { 4323, 435234.23544 };
7832}
7833{
7834  // Test range-based for and lambda
7835  cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
7836  for (int &x : array) { x += 23; }
7837  std::for_each(array.begin(), array.end(), [](int v1){ std::cout << v1; });
7838}
7839{
7840  using cxx11test::sptr;
7841  using cxx11test::wptr;
7842
7843  sptr sp(new std::string("ASCII string"));
7844  wptr wp(sp);
7845  sptr sp2(wp);
7846}
7847{
7848  cxx11test::tp tuple("test", 54, 45.53434);
7849  double d = std::get<2>(tuple);
7850  std::string s;
7851  int i;
7852  std::tie(s,i,d) = tuple;
7853}
7854{
7855  static std::regex filename_regex("^_?([a-z0-9_.]+-)+[a-z0-9]+$");
7856  std::string testmatch("Test if this string matches");
7857  bool match = std::regex_search(testmatch, filename_regex);
7858}
7859{
7860  cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
7861  cxx11test::int_array::size_type size = array.size();
7862}
7863{
7864  // Test constructor delegation
7865  cxx11test::delegate d1;
7866  cxx11test::delegate d2();
7867  cxx11test::delegate d3(45);
7868}
7869{
7870  // Test override and final
7871  cxx11test::overridden o1(55464);
7872}
7873{
7874  // Test nullptr
7875  char *c = nullptr;
7876}
7877{
7878  // Test template brackets
7879  std::vector<std::pair<int,char*>> v1;
7880}
7881{
7882  // Unicode literals
7883  char const *utf8 = u8"UTF-8 string \u2500";
7884  char16_t const *utf16 = u"UTF-8 string \u2500";
7885  char32_t const *utf32 = U"UTF-32 string \u2500";
7886}
7887
7888
7889
7890try {
7891  // Basic string.
7892  std::string teststr("ASCII text");
7893  teststr += " string";
7894
7895  // Simple vector.
7896  test::string_vec testvec;
7897  testvec.push_back(teststr);
7898  testvec.push_back("foo");
7899  testvec.push_back("bar");
7900  if (testvec.size() != 3) {
7901    throw std::runtime_error("vector size is not 1");
7902  }
7903
7904  // Dump vector into stringstream and obtain string.
7905  std::ostringstream os;
7906  for (test::string_vec::const_iterator i = testvec.begin();
7907       i != testvec.end(); ++i) {
7908    if (i + 1 != testvec.end()) {
7909      os << teststr << '\n';
7910    }
7911  }
7912  // Check algorithms work.
7913  std::for_each(testvec.begin(), testvec.end(), test::printer<std::string>(os));
7914  std::string os_out = os.str();
7915
7916  // Test pair and map.
7917  test::map_type testmap;
7918  testmap.insert(std::make_pair(std::string("key"),
7919                                std::make_pair(53,false)));
7920
7921  // Test set.
7922  int values[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
7923  test::set_type testset(values, values + sizeof(values)/sizeof(values[0]));
7924  std::list<int> testlist(testset.begin(), testset.end());
7925  std::copy(testset.begin(), testset.end(), std::back_inserter(testlist));
7926} catch (const std::exception& e) {
7927  std::cerr << "Caught exception: " << e.what() << std::endl;
7928
7929  // Test fstream
7930  std::ofstream of("test.txt");
7931  of << "Test ASCII text\n" << std::flush;
7932  of << "N= " << std::hex << std::setw(8) << std::left << 534 << std::endl;
7933  of.close();
7934}
7935std::exit(0);
7936
7937  ;
7938  return 0;
7939}
7940_ACEOF
7941for ac_arg in '' -std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA
7942do
7943  CXX="$ac_save_CXX $ac_arg"
7944  if ac_fn_cxx_try_compile "$LINENO"; then :
7945  ac_cv_prog_cxx_cxx11=$ac_arg
7946fi
7947rm -f core conftest.err conftest.$ac_objext
7948  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
7949done
7950rm -f conftest.$ac_ext
7951CXX=$ac_save_CXX
7952
7953fi
7954# AC_CACHE_VAL
7955ac_prog_cxx_stdcxx_options=
7956case "x$ac_cv_prog_cxx_cxx11" in
7957  x)
7958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7959$as_echo "none needed" >&6; } ;;
7960  xno)
7961    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7962$as_echo "unsupported" >&6; } ;;
7963  *)
7964    ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx11"
7965    CXX=$CXX$ac_prog_cxx_stdcxx_options
7966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
7967$as_echo "$ac_cv_prog_cxx_cxx11" >&6; } ;;
7968esac
7969ac_ext=cpp
7970ac_cpp='$CXXCPP $CPPFLAGS'
7971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7974if test "x$ac_cv_prog_cxx_cxx11" != xno; then :
7975  ac_prog_cxx_stdcxx=cxx11
7976		    ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
7977		    ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11
7978else
7979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
7980$as_echo_n "checking for $CXX option to enable C++98 features... " >&6; }
7981ac_ext=cpp
7982ac_cpp='$CXXCPP $CPPFLAGS'
7983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7986if ${ac_cv_prog_cxx_cxx98+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  ac_cv_prog_cxx_cxx98=no
7990ac_save_CXX=$CXX
7991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993
7994#include <algorithm>
7995#include <cstdlib>
7996#include <fstream>
7997#include <iomanip>
7998#include <iostream>
7999#include <list>
8000#include <map>
8001#include <set>
8002#include <sstream>
8003#include <stdexcept>
8004#include <string>
8005#include <utility>
8006#include <vector>
8007
8008namespace test {
8009  typedef std::vector<std::string> string_vec;
8010  typedef std::pair<int,bool> map_value;
8011  typedef std::map<std::string,map_value> map_type;
8012  typedef std::set<int> set_type;
8013
8014  template<typename T>
8015  class printer {
8016  public:
8017    printer(std::ostringstream& os): os(os) {}
8018    void operator() (T elem) { os << elem << std::endl; }
8019  private:
8020    std::ostringstream& os;
8021  };
8022}
8023
8024int
8025main ()
8026{
8027
8028
8029try {
8030  // Basic string.
8031  std::string teststr("ASCII text");
8032  teststr += " string";
8033
8034  // Simple vector.
8035  test::string_vec testvec;
8036  testvec.push_back(teststr);
8037  testvec.push_back("foo");
8038  testvec.push_back("bar");
8039  if (testvec.size() != 3) {
8040    throw std::runtime_error("vector size is not 1");
8041  }
8042
8043  // Dump vector into stringstream and obtain string.
8044  std::ostringstream os;
8045  for (test::string_vec::const_iterator i = testvec.begin();
8046       i != testvec.end(); ++i) {
8047    if (i + 1 != testvec.end()) {
8048      os << teststr << '\n';
8049    }
8050  }
8051  // Check algorithms work.
8052  std::for_each(testvec.begin(), testvec.end(), test::printer<std::string>(os));
8053  std::string os_out = os.str();
8054
8055  // Test pair and map.
8056  test::map_type testmap;
8057  testmap.insert(std::make_pair(std::string("key"),
8058                                std::make_pair(53,false)));
8059
8060  // Test set.
8061  int values[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
8062  test::set_type testset(values, values + sizeof(values)/sizeof(values[0]));
8063  std::list<int> testlist(testset.begin(), testset.end());
8064  std::copy(testset.begin(), testset.end(), std::back_inserter(testlist));
8065} catch (const std::exception& e) {
8066  std::cerr << "Caught exception: " << e.what() << std::endl;
8067
8068  // Test fstream
8069  std::ofstream of("test.txt");
8070  of << "Test ASCII text\n" << std::flush;
8071  of << "N= " << std::hex << std::setw(8) << std::left << 534 << std::endl;
8072  of.close();
8073}
8074std::exit(0);
8075
8076  ;
8077  return 0;
8078}
8079_ACEOF
8080for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
8081do
8082  CXX="$ac_save_CXX $ac_arg"
8083  if ac_fn_cxx_try_compile "$LINENO"; then :
8084  ac_cv_prog_cxx_cxx98=$ac_arg
8085fi
8086rm -f core conftest.err conftest.$ac_objext
8087  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
8088done
8089rm -f conftest.$ac_ext
8090CXX=$ac_save_CXX
8091
8092fi
8093# AC_CACHE_VAL
8094ac_prog_cxx_stdcxx_options=
8095case "x$ac_cv_prog_cxx_cxx98" in
8096  x)
8097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8098$as_echo "none needed" >&6; } ;;
8099  xno)
8100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8101$as_echo "unsupported" >&6; } ;;
8102  *)
8103    ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx98"
8104    CXX=$CXX$ac_prog_cxx_stdcxx_options
8105    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
8106$as_echo "$ac_cv_prog_cxx_cxx98" >&6; } ;;
8107esac
8108ac_ext=cpp
8109ac_cpp='$CXXCPP $CPPFLAGS'
8110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8113if test "x$ac_cv_prog_cxx_cxx98" != xno; then :
8114  ac_prog_cxx_stdcxx=cxx98
8115		        ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
8116else
8117  ac_prog_cxx_stdcxx=no
8118		        ac_cv_prog_cxx_stdcxx=no
8119fi
8120
8121fi
8122
8123ac_ext=c
8124ac_cpp='$CPP $CPPFLAGS'
8125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8127ac_compiler_gnu=$ac_cv_c_compiler_gnu
8128
8129depcc="$CXX"  am_compiler_list=
8130
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8132$as_echo_n "checking dependency style of $depcc... " >&6; }
8133if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8137  # We make a subdir and do the tests there.  Otherwise we can end up
8138  # making bogus files that we don't know about and never remove.  For
8139  # instance it was reported that on HP-UX the gcc test will end up
8140  # making a dummy file named 'D' -- because '-MD' means "put the output
8141  # in D".
8142  rm -rf conftest.dir
8143  mkdir conftest.dir
8144  # Copy depcomp to subdir because otherwise we won't find it if we're
8145  # using a relative directory.
8146  cp "$am_depcomp" conftest.dir
8147  cd conftest.dir
8148  # We will build objects and dependencies in a subdirectory because
8149  # it helps to detect inapplicable dependency modes.  For instance
8150  # both Tru64's cc and ICC support -MD to output dependencies as a
8151  # side effect of compilation, but ICC will put the dependencies in
8152  # the current directory while Tru64 will put them in the object
8153  # directory.
8154  mkdir sub
8155
8156  am_cv_CXX_dependencies_compiler_type=none
8157  if test "$am_compiler_list" = ""; then
8158     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8159  fi
8160  am__universal=false
8161  case " $depcc " in #(
8162     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8163     esac
8164
8165  for depmode in $am_compiler_list; do
8166    # Setup a source with many dependencies, because some compilers
8167    # like to wrap large dependency lists on column 80 (with \), and
8168    # we should not choose a depcomp mode which is confused by this.
8169    #
8170    # We need to recreate these files for each test, as the compiler may
8171    # overwrite some of them when testing with obscure command lines.
8172    # This happens at least with the AIX C compiler.
8173    : > sub/conftest.c
8174    for i in 1 2 3 4 5 6; do
8175      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8176      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8177      # Solaris 10 /bin/sh.
8178      echo '/* dummy */' > sub/conftst$i.h
8179    done
8180    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8181
8182    # We check with '-c' and '-o' for the sake of the "dashmstdout"
8183    # mode.  It turns out that the SunPro C++ compiler does not properly
8184    # handle '-M -o', and we need to detect this.  Also, some Intel
8185    # versions had trouble with output in subdirs.
8186    am__obj=sub/conftest.${OBJEXT-o}
8187    am__minus_obj="-o $am__obj"
8188    case $depmode in
8189    gcc)
8190      # This depmode causes a compiler race in universal mode.
8191      test "$am__universal" = false || continue
8192      ;;
8193    nosideeffect)
8194      # After this tag, mechanisms are not by side-effect, so they'll
8195      # only be used when explicitly requested.
8196      if test "x$enable_dependency_tracking" = xyes; then
8197	continue
8198      else
8199	break
8200      fi
8201      ;;
8202    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8203      # This compiler won't grok '-c -o', but also, the minuso test has
8204      # not run yet.  These depmodes are late enough in the game, and
8205      # so weak that their functioning should not be impacted.
8206      am__obj=conftest.${OBJEXT-o}
8207      am__minus_obj=
8208      ;;
8209    none) break ;;
8210    esac
8211    if depmode=$depmode \
8212       source=sub/conftest.c object=$am__obj \
8213       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8214       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8215         >/dev/null 2>conftest.err &&
8216       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8217       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8218       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8219       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8220      # icc doesn't choke on unknown options, it will just issue warnings
8221      # or remarks (even with -Werror).  So we grep stderr for any message
8222      # that says an option was ignored or not supported.
8223      # When given -MP, icc 7.0 and 7.1 complain thusly:
8224      #   icc: Command line warning: ignoring option '-M'; no argument required
8225      # The diagnosis changed in icc 8.0:
8226      #   icc: Command line remark: option '-MP' not supported
8227      if (grep 'ignoring option' conftest.err ||
8228          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8229        am_cv_CXX_dependencies_compiler_type=$depmode
8230        break
8231      fi
8232    fi
8233  done
8234
8235  cd ..
8236  rm -rf conftest.dir
8237else
8238  am_cv_CXX_dependencies_compiler_type=none
8239fi
8240
8241fi
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8243$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8244CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8245
8246 if
8247  test "x$enable_dependency_tracking" != xno \
8248  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8249  am__fastdepCXX_TRUE=
8250  am__fastdepCXX_FALSE='#'
8251else
8252  am__fastdepCXX_TRUE='#'
8253  am__fastdepCXX_FALSE=
8254fi
8255
8256
8257
8258for ac_prog in flex lex
8259do
8260  # Extract the first word of "$ac_prog", so it can be a program name with args.
8261set dummy $ac_prog; ac_word=$2
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263$as_echo_n "checking for $ac_word... " >&6; }
8264if ${ac_cv_prog_LEX+:} false; then :
8265  $as_echo_n "(cached) " >&6
8266else
8267  if test -n "$LEX"; then
8268  ac_cv_prog_LEX="$LEX" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273  IFS=$as_save_IFS
8274  test -z "$as_dir" && as_dir=.
8275    for ac_exec_ext in '' $ac_executable_extensions; do
8276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277    ac_cv_prog_LEX="$ac_prog"
8278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279    break 2
8280  fi
8281done
8282  done
8283IFS=$as_save_IFS
8284
8285fi
8286fi
8287LEX=$ac_cv_prog_LEX
8288if test -n "$LEX"; then
8289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8290$as_echo "$LEX" >&6; }
8291else
8292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }
8294fi
8295
8296
8297  test -n "$LEX" && break
8298done
8299test -n "$LEX" || LEX=":"
8300
8301if test "x$LEX" != "x:"; then
8302  cat >conftest.l <<_ACEOF
8303%%
8304a { ECHO; }
8305b { REJECT; }
8306c { yymore (); }
8307d { yyless (1); }
8308e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
8309    yyless ((input () != 0)); }
8310f { unput (yytext[0]); }
8311. { BEGIN INITIAL; }
8312%%
8313#ifdef YYTEXT_POINTER
8314extern char *yytext;
8315#endif
8316int
8317main (void)
8318{
8319  return ! yylex () + ! yywrap ();
8320}
8321_ACEOF
8322{ { ac_try="$LEX conftest.l"
8323case "(($ac_try" in
8324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325  *) ac_try_echo=$ac_try;;
8326esac
8327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8328$as_echo "$ac_try_echo"; } >&5
8329  (eval "$LEX conftest.l") 2>&5
8330  ac_status=$?
8331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8332  test $ac_status = 0; }
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
8334$as_echo_n "checking lex output file root... " >&6; }
8335if ${ac_cv_prog_lex_root+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338
8339if test -f lex.yy.c; then
8340  ac_cv_prog_lex_root=lex.yy
8341elif test -f lexyy.c; then
8342  ac_cv_prog_lex_root=lexyy
8343else
8344  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
8345fi
8346fi
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
8348$as_echo "$ac_cv_prog_lex_root" >&6; }
8349LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8350
8351if test -z "${LEXLIB+set}"; then
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
8353$as_echo_n "checking lex library... " >&6; }
8354if ${ac_cv_lib_lex+:} false; then :
8355  $as_echo_n "(cached) " >&6
8356else
8357
8358    ac_save_LIBS=$LIBS
8359    ac_cv_lib_lex='none needed'
8360    for ac_lib in '' -lfl -ll; do
8361      LIBS="$ac_lib $ac_save_LIBS"
8362      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363/* end confdefs.h.  */
8364`cat $LEX_OUTPUT_ROOT.c`
8365_ACEOF
8366if ac_fn_c_try_link "$LINENO"; then :
8367  ac_cv_lib_lex=$ac_lib
8368fi
8369rm -f core conftest.err conftest.$ac_objext \
8370    conftest$ac_exeext conftest.$ac_ext
8371      test "$ac_cv_lib_lex" != 'none needed' && break
8372    done
8373    LIBS=$ac_save_LIBS
8374
8375fi
8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
8377$as_echo "$ac_cv_lib_lex" >&6; }
8378  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
8379fi
8380
8381
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
8383$as_echo_n "checking whether yytext is a pointer... " >&6; }
8384if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
8385  $as_echo_n "(cached) " >&6
8386else
8387  # POSIX says lex can declare yytext either as a pointer or an array; the
8388# default is implementation-dependent.  Figure out which it is, since
8389# not all implementations provide the %pointer and %array declarations.
8390ac_cv_prog_lex_yytext_pointer=no
8391ac_save_LIBS=$LIBS
8392LIBS="$LEXLIB $ac_save_LIBS"
8393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395
8396  #define YYTEXT_POINTER 1
8397`cat $LEX_OUTPUT_ROOT.c`
8398_ACEOF
8399if ac_fn_c_try_link "$LINENO"; then :
8400  ac_cv_prog_lex_yytext_pointer=yes
8401fi
8402rm -f core conftest.err conftest.$ac_objext \
8403    conftest$ac_exeext conftest.$ac_ext
8404LIBS=$ac_save_LIBS
8405
8406fi
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
8408$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
8409if test $ac_cv_prog_lex_yytext_pointer = yes; then
8410
8411$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
8412
8413fi
8414rm -f conftest.l $LEX_OUTPUT_ROOT.c
8415
8416fi
8417if test "$LEX" = :; then
8418  LEX=${am_missing_run}flex
8419fi
8420
8421for ac_prog in bison
8422do
8423  # Extract the first word of "$ac_prog", so it can be a program name with args.
8424set dummy $ac_prog; ac_word=$2
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426$as_echo_n "checking for $ac_word... " >&6; }
8427if ${ac_cv_prog_BISON+:} false; then :
8428  $as_echo_n "(cached) " >&6
8429else
8430  if test -n "$BISON"; then
8431  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8432else
8433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434for as_dir in $PATH
8435do
8436  IFS=$as_save_IFS
8437  test -z "$as_dir" && as_dir=.
8438    for ac_exec_ext in '' $ac_executable_extensions; do
8439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440    ac_cv_prog_BISON="$ac_prog"
8441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442    break 2
8443  fi
8444done
8445  done
8446IFS=$as_save_IFS
8447
8448fi
8449fi
8450BISON=$ac_cv_prog_BISON
8451if test -n "$BISON"; then
8452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8453$as_echo "$BISON" >&6; }
8454else
8455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456$as_echo "no" >&6; }
8457fi
8458
8459
8460  test -n "$BISON" && break
8461done
8462
8463if test -n "$BISON"; then
8464   opt='-Wno-deprecated'
8465   if { echo "$as_me:$LINENO: $BISON $opt --version" >&5
8466   ($BISON $opt --version) >&5 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; then
8470      BISON_EXTRA_FLAGS=$opt
8471   fi
8472fi
8473
8474
8475# Decrease verbosity when passing argument V=0
8476# Check whether --enable-silent-rules was given.
8477if test "${enable_silent_rules+set}" = set; then :
8478  enableval=$enable_silent_rules;
8479fi
8480
8481case $enable_silent_rules in # (((
8482  yes) AM_DEFAULT_VERBOSITY=0;;
8483   no) AM_DEFAULT_VERBOSITY=1;;
8484    *) AM_DEFAULT_VERBOSITY=1;;
8485esac
8486am_make=${MAKE-make}
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
8488$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
8489if ${am_cv_make_support_nested_variables+:} false; then :
8490  $as_echo_n "(cached) " >&6
8491else
8492  if $as_echo 'TRUE=$(BAR$(V))
8493BAR0=false
8494BAR1=true
8495V=1
8496am__doit:
8497	@$(TRUE)
8498.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
8499  am_cv_make_support_nested_variables=yes
8500else
8501  am_cv_make_support_nested_variables=no
8502fi
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
8505$as_echo "$am_cv_make_support_nested_variables" >&6; }
8506if test $am_cv_make_support_nested_variables = yes; then
8507    AM_V='$(V)'
8508  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
8509else
8510  AM_V=$AM_DEFAULT_VERBOSITY
8511  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
8512fi
8513AM_BACKSLASH='\'
8514
8515
8516# Option to activate C++20
8517# Check whether --enable-c++20 was given.
8518if test "${enable_c__20+set}" = set; then :
8519  enableval=$enable_c__20; enable_20=$enableval
8520else
8521  enable_20=no
8522fi
8523
8524
8525# Check whether --enable-doxygen was given.
8526if test "${enable_doxygen+set}" = set; then :
8527  enableval=$enable_doxygen; enable_doxygen=$enableval
8528else
8529  enable_doxygen=no
8530fi
8531
8532 if test "x${enable_doxygen:-no}" = xyes; then
8533  ENABLE_DOXYGEN_TRUE=
8534  ENABLE_DOXYGEN_FALSE='#'
8535else
8536  ENABLE_DOXYGEN_TRUE='#'
8537  ENABLE_DOXYGEN_FALSE=
8538fi
8539
8540
8541# Option to indicate the maximal number of acceptance marks
8542if ac_fn_c_compute_int "$LINENO" "8*sizeof(unsigned)" "default_max_accsets"        ""; then :
8543
8544fi
8545
8546# Check whether --enable-max-accsets was given.
8547if test "${enable_max_accsets+set}" = set; then :
8548  enableval=$enable_max_accsets; enable_max_accsets=$enableval
8549else
8550  enable_max_accsets=$default_max_accsets
8551fi
8552
8553if test 0 -eq `expr $enable_max_accsets % $default_max_accsets`
8554then
8555
8556cat >>confdefs.h <<_ACEOF
8557#define MAX_ACCSETS $enable_max_accsets
8558_ACEOF
8559
8560else
8561  as_fn_error $? "The argument of --enable-max-accsets must be a multiple of $default_max_accsets" "$LINENO" 5
8562fi
8563
8564# Activate C11 for gnulib tests
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c11" >&5
8566$as_echo_n "checking whether C compiler accepts -std=c11... " >&6; }
8567if ${ax_cv_check_cflags___std_c11+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570
8571  ax_check_save_flags=$CFLAGS
8572  CFLAGS="$CFLAGS  -std=c11"
8573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574/* end confdefs.h.  */
8575
8576int
8577main ()
8578{
8579
8580  ;
8581  return 0;
8582}
8583_ACEOF
8584if ac_fn_c_try_compile "$LINENO"; then :
8585  ax_cv_check_cflags___std_c11=yes
8586else
8587  ax_cv_check_cflags___std_c11=no
8588fi
8589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590  CFLAGS=$ax_check_save_flags
8591fi
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_c11" >&5
8593$as_echo "$ax_cv_check_cflags___std_c11" >&6; }
8594if test x"$ax_cv_check_cflags___std_c11" = xyes; then :
8595  CFLAGS="$CFLAGS -std=c11"
8596fi
8597
8598
8599
8600
8601
8602
8603
8604
8605                        # Check whether --enable-cross-guesses was given.
8606if test "${enable_cross_guesses+set}" = set; then :
8607  enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
8608       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
8609$as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
8610       enableval=conservative
8611     fi
8612     gl_cross_guesses="$enableval"
8613else
8614  gl_cross_guesses=conservative
8615fi
8616
8617  if test $gl_cross_guesses = risky; then
8618    gl_cross_guess_normal="guessing yes"
8619    gl_cross_guess_inverted="guessing no"
8620  else
8621    gl_cross_guess_normal="guessing no"
8622    gl_cross_guess_inverted="guessing yes"
8623  fi
8624          LIBC_FATAL_STDERR_=1
8625  export LIBC_FATAL_STDERR_
8626
8627
8628ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8629if test "x$ac_cv_type_size_t" = xyes; then :
8630
8631else
8632
8633cat >>confdefs.h <<_ACEOF
8634#define size_t unsigned int
8635_ACEOF
8636
8637fi
8638
8639# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8640# for constant arguments.  Useless!
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8642$as_echo_n "checking for working alloca.h... " >&6; }
8643if ${ac_cv_working_alloca_h+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h.  */
8648#include <alloca.h>
8649int
8650main ()
8651{
8652char *p = (char *) alloca (2 * sizeof (int));
8653			  if (p) return 0;
8654  ;
8655  return 0;
8656}
8657_ACEOF
8658if ac_fn_c_try_link "$LINENO"; then :
8659  ac_cv_working_alloca_h=yes
8660else
8661  ac_cv_working_alloca_h=no
8662fi
8663rm -f core conftest.err conftest.$ac_objext \
8664    conftest$ac_exeext conftest.$ac_ext
8665fi
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8667$as_echo "$ac_cv_working_alloca_h" >&6; }
8668if test $ac_cv_working_alloca_h = yes; then
8669
8670$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8671
8672fi
8673
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8675$as_echo_n "checking for alloca... " >&6; }
8676if ${ac_cv_func_alloca_works+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681#ifdef __GNUC__
8682# define alloca __builtin_alloca
8683#else
8684# ifdef _MSC_VER
8685#  include <malloc.h>
8686#  define alloca _alloca
8687# else
8688#  ifdef HAVE_ALLOCA_H
8689#   include <alloca.h>
8690#  else
8691#   ifdef _AIX
8692 #pragma alloca
8693#   else
8694#    ifndef alloca /* predefined by HP cc +Olibcalls */
8695void *alloca (size_t);
8696#    endif
8697#   endif
8698#  endif
8699# endif
8700#endif
8701
8702int
8703main ()
8704{
8705char *p = (char *) alloca (1);
8706				    if (p) return 0;
8707  ;
8708  return 0;
8709}
8710_ACEOF
8711if ac_fn_c_try_link "$LINENO"; then :
8712  ac_cv_func_alloca_works=yes
8713else
8714  ac_cv_func_alloca_works=no
8715fi
8716rm -f core conftest.err conftest.$ac_objext \
8717    conftest$ac_exeext conftest.$ac_ext
8718fi
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8720$as_echo "$ac_cv_func_alloca_works" >&6; }
8721
8722if test $ac_cv_func_alloca_works = yes; then
8723
8724$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8725
8726else
8727  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8728# that cause trouble.  Some versions do not even contain alloca or
8729# contain a buggy version.  If you still want to use their alloca,
8730# use ar to extract alloca.o from them instead of compiling alloca.c.
8731
8732
8733
8734
8735
8736ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8737
8738$as_echo "#define C_ALLOCA 1" >>confdefs.h
8739
8740
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8742$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8743if ${ac_cv_os_cray+:} false; then :
8744  $as_echo_n "(cached) " >&6
8745else
8746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747/* end confdefs.h.  */
8748#if defined CRAY && ! defined CRAY2
8749webecray
8750#else
8751wenotbecray
8752#endif
8753
8754_ACEOF
8755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8756  $EGREP "webecray" >/dev/null 2>&1; then :
8757  ac_cv_os_cray=yes
8758else
8759  ac_cv_os_cray=no
8760fi
8761rm -f conftest*
8762
8763fi
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8765$as_echo "$ac_cv_os_cray" >&6; }
8766if test $ac_cv_os_cray = yes; then
8767  for ac_func in _getb67 GETB67 getb67; do
8768    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8769ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8770if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8771
8772cat >>confdefs.h <<_ACEOF
8773#define CRAY_STACKSEG_END $ac_func
8774_ACEOF
8775
8776    break
8777fi
8778
8779  done
8780fi
8781
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8783$as_echo_n "checking stack direction for C alloca... " >&6; }
8784if ${ac_cv_c_stack_direction+:} false; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  if test "$cross_compiling" = yes; then :
8788  ac_cv_c_stack_direction=0
8789else
8790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791/* end confdefs.h.  */
8792$ac_includes_default
8793int
8794find_stack_direction (int *addr, int depth)
8795{
8796  int dir, dummy = 0;
8797  if (! addr)
8798    addr = &dummy;
8799  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8800  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8801  return dir + dummy;
8802}
8803
8804int
8805main (int argc, char **argv)
8806{
8807  return find_stack_direction (0, argc + !argv + 20) < 0;
8808}
8809_ACEOF
8810if ac_fn_c_try_run "$LINENO"; then :
8811  ac_cv_c_stack_direction=1
8812else
8813  ac_cv_c_stack_direction=-1
8814fi
8815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8816  conftest.$ac_objext conftest.beam conftest.$ac_ext
8817fi
8818
8819fi
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8821$as_echo "$ac_cv_c_stack_direction" >&6; }
8822cat >>confdefs.h <<_ACEOF
8823#define STACK_DIRECTION $ac_cv_c_stack_direction
8824_ACEOF
8825
8826
8827fi
8828
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8830$as_echo_n "checking for inline... " >&6; }
8831if ${ac_cv_c_inline+:} false; then :
8832  $as_echo_n "(cached) " >&6
8833else
8834  ac_cv_c_inline=no
8835for ac_kw in inline __inline__ __inline; do
8836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837/* end confdefs.h.  */
8838#ifndef __cplusplus
8839typedef int foo_t;
8840static $ac_kw foo_t static_foo () {return 0; }
8841$ac_kw foo_t foo () {return 0; }
8842#endif
8843
8844_ACEOF
8845if ac_fn_c_try_compile "$LINENO"; then :
8846  ac_cv_c_inline=$ac_kw
8847fi
8848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849  test "$ac_cv_c_inline" != no && break
8850done
8851
8852fi
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8854$as_echo "$ac_cv_c_inline" >&6; }
8855
8856case $ac_cv_c_inline in
8857  inline | yes) ;;
8858  *)
8859    case $ac_cv_c_inline in
8860      no) ac_val=;;
8861      *) ac_val=$ac_cv_c_inline;;
8862    esac
8863    cat >>confdefs.h <<_ACEOF
8864#ifndef __cplusplus
8865#define inline $ac_val
8866#endif
8867_ACEOF
8868    ;;
8869esac
8870
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
8872$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
8873if ${ac_cv_c_restrict+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  ac_cv_c_restrict=no
8877   # The order here caters to the fact that C++ does not require restrict.
8878   for ac_kw in __restrict __restrict__ _Restrict restrict; do
8879     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h.  */
8881typedef int *int_ptr;
8882           int foo (int_ptr $ac_kw ip) { return ip[0]; }
8883           int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
8884           int bar (int ip[$ac_kw]) { return ip[0]; }
8885
8886int
8887main ()
8888{
8889int s[1];
8890           int *$ac_kw t = s;
8891           t[0] = 0;
8892           return foo (t) + bar (t);
8893
8894  ;
8895  return 0;
8896}
8897_ACEOF
8898if ac_fn_c_try_compile "$LINENO"; then :
8899  ac_cv_c_restrict=$ac_kw
8900fi
8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902     test "$ac_cv_c_restrict" != no && break
8903   done
8904
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
8907$as_echo "$ac_cv_c_restrict" >&6; }
8908
8909 case $ac_cv_c_restrict in
8910   restrict) ;;
8911   no) $as_echo "#define restrict /**/" >>confdefs.h
8912 ;;
8913   *)  cat >>confdefs.h <<_ACEOF
8914#define restrict $ac_cv_c_restrict
8915_ACEOF
8916 ;;
8917 esac
8918
8919ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
8920if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
8921  ac_have_decl=1
8922else
8923  ac_have_decl=0
8924fi
8925
8926cat >>confdefs.h <<_ACEOF
8927#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
8928_ACEOF
8929
8930ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
8931if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
8932  ac_have_decl=1
8933else
8934  ac_have_decl=0
8935fi
8936
8937cat >>confdefs.h <<_ACEOF
8938#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
8939_ACEOF
8940
8941ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
8942if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
8943  ac_have_decl=1
8944else
8945  ac_have_decl=0
8946fi
8947
8948cat >>confdefs.h <<_ACEOF
8949#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
8950_ACEOF
8951
8952ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
8953if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
8954  ac_have_decl=1
8955else
8956  ac_have_decl=0
8957fi
8958
8959cat >>confdefs.h <<_ACEOF
8960#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
8961_ACEOF
8962
8963ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
8964if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
8965  ac_have_decl=1
8966else
8967  ac_have_decl=0
8968fi
8969
8970cat >>confdefs.h <<_ACEOF
8971#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
8972_ACEOF
8973
8974ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
8975if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
8976  ac_have_decl=1
8977else
8978  ac_have_decl=0
8979fi
8980
8981cat >>confdefs.h <<_ACEOF
8982#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
8983_ACEOF
8984
8985ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
8986if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
8987  ac_have_decl=1
8988else
8989  ac_have_decl=0
8990fi
8991
8992cat >>confdefs.h <<_ACEOF
8993#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
8994_ACEOF
8995
8996ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
8997if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
8998  ac_have_decl=1
8999else
9000  ac_have_decl=0
9001fi
9002
9003cat >>confdefs.h <<_ACEOF
9004#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
9005_ACEOF
9006
9007ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
9008if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
9009  ac_have_decl=1
9010else
9011  ac_have_decl=0
9012fi
9013
9014cat >>confdefs.h <<_ACEOF
9015#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
9016_ACEOF
9017
9018ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9019if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9020  ac_have_decl=1
9021else
9022  ac_have_decl=0
9023fi
9024
9025cat >>confdefs.h <<_ACEOF
9026#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9027_ACEOF
9028
9029ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
9030if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
9031  ac_have_decl=1
9032else
9033  ac_have_decl=0
9034fi
9035
9036cat >>confdefs.h <<_ACEOF
9037#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
9038_ACEOF
9039
9040ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
9041if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
9042  ac_have_decl=1
9043else
9044  ac_have_decl=0
9045fi
9046
9047cat >>confdefs.h <<_ACEOF
9048#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
9049_ACEOF
9050
9051ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
9052if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
9053  ac_have_decl=1
9054else
9055  ac_have_decl=0
9056fi
9057
9058cat >>confdefs.h <<_ACEOF
9059#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
9060_ACEOF
9061
9062
9063
9064
9065  for ac_func in $ac_func_list
9066do :
9067  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9068ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9069if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9070  cat >>confdefs.h <<_ACEOF
9071#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9072_ACEOF
9073
9074fi
9075done
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
9086if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
9087  ac_have_decl=1
9088else
9089  ac_have_decl=0
9090fi
9091
9092cat >>confdefs.h <<_ACEOF
9093#define HAVE_DECL_STRERROR_R $ac_have_decl
9094_ACEOF
9095
9096for ac_func in strerror_r
9097do :
9098  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
9099if test "x$ac_cv_func_strerror_r" = xyes; then :
9100  cat >>confdefs.h <<_ACEOF
9101#define HAVE_STRERROR_R 1
9102_ACEOF
9103
9104fi
9105done
9106
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9108$as_echo_n "checking whether strerror_r returns char *... " >&6; }
9109if ${ac_cv_func_strerror_r_char_p+:} false; then :
9110  $as_echo_n "(cached) " >&6
9111else
9112
9113    ac_cv_func_strerror_r_char_p=no
9114    if test $ac_cv_have_decl_strerror_r = yes; then
9115      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116/* end confdefs.h.  */
9117$ac_includes_default
9118int
9119main ()
9120{
9121
9122	  char buf[100];
9123	  char x = *strerror_r (0, buf, sizeof buf);
9124	  char *p = strerror_r (0, buf, sizeof buf);
9125	  return !p || x;
9126
9127  ;
9128  return 0;
9129}
9130_ACEOF
9131if ac_fn_c_try_compile "$LINENO"; then :
9132  ac_cv_func_strerror_r_char_p=yes
9133fi
9134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135    else
9136      # strerror_r is not declared.  Choose between
9137      # systems that have relatively inaccessible declarations for the
9138      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
9139      # former has a strerror_r that returns char*, while the latter
9140      # has a strerror_r that returns `int'.
9141      # This test should segfault on the DEC system.
9142      if test "$cross_compiling" = yes; then :
9143  :
9144else
9145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h.  */
9147$ac_includes_default
9148	extern char *strerror_r ();
9149int
9150main ()
9151{
9152char buf[100];
9153	  char x = *strerror_r (0, buf, sizeof buf);
9154	  return ! isalpha (x);
9155  ;
9156  return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_run "$LINENO"; then :
9160  ac_cv_func_strerror_r_char_p=yes
9161fi
9162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9163  conftest.$ac_objext conftest.beam conftest.$ac_ext
9164fi
9165
9166    fi
9167
9168fi
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9170$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9171if test $ac_cv_func_strerror_r_char_p = yes; then
9172
9173$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9174
9175fi
9176
9177
9178  XGETTEXT_EXTRA_OPTIONS=
9179
9180
9181
9182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
9183$as_echo_n "checking whether // is distinct from /... " >&6; }
9184if ${gl_cv_double_slash_root+:} false; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187   if test x"$cross_compiling" = xyes ; then
9188        # When cross-compiling, there is no way to tell whether // is special
9189        # short of a list of hosts.  However, the only known hosts to date
9190        # that have a distinct // are Apollo DomainOS (too old to port to),
9191        # Cygwin, and z/OS.  If anyone knows of another system for which // has
9192        # special semantics and is distinct from /, please report it to
9193        # <bug-gnulib@gnu.org>.
9194        case $host in
9195          *-cygwin | i370-ibm-openedition)
9196            gl_cv_double_slash_root=yes ;;
9197          *)
9198            # Be optimistic and assume that / and // are the same when we
9199            # don't know.
9200            gl_cv_double_slash_root='unknown, assuming no' ;;
9201        esac
9202      else
9203        set x `ls -di / // 2>/dev/null`
9204        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
9205          gl_cv_double_slash_root=no
9206        else
9207          gl_cv_double_slash_root=yes
9208        fi
9209      fi
9210fi
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
9212$as_echo "$gl_cv_double_slash_root" >&6; }
9213  if test "$gl_cv_double_slash_root" = yes; then
9214
9215$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
9216
9217  fi
9218
9219
9220
9221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9222$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9223if ${gl_cv_have_include_next+:} false; then :
9224  $as_echo_n "(cached) " >&6
9225else
9226  rm -rf conftestd1a conftestd1b conftestd2
9227     mkdir conftestd1a conftestd1b conftestd2
9228                                                  cat <<EOF > conftestd1a/conftest.h
9229#define DEFINED_IN_CONFTESTD1
9230#include_next <conftest.h>
9231#ifdef DEFINED_IN_CONFTESTD2
9232int foo;
9233#else
9234#error "include_next doesn't work"
9235#endif
9236EOF
9237     cat <<EOF > conftestd1b/conftest.h
9238#define DEFINED_IN_CONFTESTD1
9239#include <stdio.h>
9240#include_next <conftest.h>
9241#ifdef DEFINED_IN_CONFTESTD2
9242int foo;
9243#else
9244#error "include_next doesn't work"
9245#endif
9246EOF
9247     cat <<EOF > conftestd2/conftest.h
9248#ifndef DEFINED_IN_CONFTESTD1
9249#error "include_next test doesn't work"
9250#endif
9251#define DEFINED_IN_CONFTESTD2
9252EOF
9253     gl_save_CPPFLAGS="$CPPFLAGS"
9254     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9255     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256/* end confdefs.h.  */
9257#include <conftest.h>
9258_ACEOF
9259if ac_fn_c_try_compile "$LINENO"; then :
9260  gl_cv_have_include_next=yes
9261else
9262  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9263        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h.  */
9265#include <conftest.h>
9266_ACEOF
9267if ac_fn_c_try_compile "$LINENO"; then :
9268  gl_cv_have_include_next=buggy
9269else
9270  gl_cv_have_include_next=no
9271fi
9272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273
9274fi
9275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276     CPPFLAGS="$gl_save_CPPFLAGS"
9277     rm -rf conftestd1a conftestd1b conftestd2
9278
9279fi
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9281$as_echo "$gl_cv_have_include_next" >&6; }
9282  PRAGMA_SYSTEM_HEADER=
9283  if test $gl_cv_have_include_next = yes; then
9284    INCLUDE_NEXT=include_next
9285    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9286    if test -n "$GCC"; then
9287      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
9288    fi
9289  else
9290    if test $gl_cv_have_include_next = buggy; then
9291      INCLUDE_NEXT=include
9292      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9293    else
9294      INCLUDE_NEXT=include
9295      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
9296    fi
9297  fi
9298
9299
9300
9301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9302$as_echo_n "checking whether system header files limit the line length... " >&6; }
9303if ${gl_cv_pragma_columns+:} false; then :
9304  $as_echo_n "(cached) " >&6
9305else
9306       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h.  */
9308
9309#ifdef __TANDEM
9310choke me
9311#endif
9312
9313_ACEOF
9314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9315  $EGREP "choke me" >/dev/null 2>&1; then :
9316  gl_cv_pragma_columns=yes
9317else
9318  gl_cv_pragma_columns=no
9319fi
9320rm -f conftest*
9321
9322
9323fi
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9325$as_echo "$gl_cv_pragma_columns" >&6; }
9326  if test $gl_cv_pragma_columns = yes; then
9327    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
9328  else
9329    PRAGMA_COLUMNS=
9330  fi
9331
9332
9333
9334
9335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
9336$as_echo_n "checking for complete errno.h... " >&6; }
9337if ${gl_cv_header_errno_h_complete+:} false; then :
9338  $as_echo_n "(cached) " >&6
9339else
9340
9341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343
9344#include <errno.h>
9345#if !defined ETXTBSY
9346booboo
9347#endif
9348#if !defined ENOMSG
9349booboo
9350#endif
9351#if !defined EIDRM
9352booboo
9353#endif
9354#if !defined ENOLINK
9355booboo
9356#endif
9357#if !defined EPROTO
9358booboo
9359#endif
9360#if !defined EMULTIHOP
9361booboo
9362#endif
9363#if !defined EBADMSG
9364booboo
9365#endif
9366#if !defined EOVERFLOW
9367booboo
9368#endif
9369#if !defined ENOTSUP
9370booboo
9371#endif
9372#if !defined ENETRESET
9373booboo
9374#endif
9375#if !defined ECONNABORTED
9376booboo
9377#endif
9378#if !defined ESTALE
9379booboo
9380#endif
9381#if !defined EDQUOT
9382booboo
9383#endif
9384#if !defined ECANCELED
9385booboo
9386#endif
9387#if !defined EOWNERDEAD
9388booboo
9389#endif
9390#if !defined ENOTRECOVERABLE
9391booboo
9392#endif
9393#if !defined EILSEQ
9394booboo
9395#endif
9396
9397_ACEOF
9398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9399  $EGREP "booboo" >/dev/null 2>&1; then :
9400  gl_cv_header_errno_h_complete=no
9401else
9402  gl_cv_header_errno_h_complete=yes
9403fi
9404rm -f conftest*
9405
9406
9407fi
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
9409$as_echo "$gl_cv_header_errno_h_complete" >&6; }
9410  if test $gl_cv_header_errno_h_complete = yes; then
9411    ERRNO_H=''
9412  else
9413
9414
9415
9416
9417
9418
9419
9420
9421     if test $gl_cv_have_include_next = yes; then
9422       gl_cv_next_errno_h='<'errno.h'>'
9423     else
9424       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
9425$as_echo_n "checking absolute name of <errno.h>... " >&6; }
9426if ${gl_cv_next_errno_h+:} false; then :
9427  $as_echo_n "(cached) " >&6
9428else
9429
9430
9431
9432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433/* end confdefs.h.  */
9434#include <errno.h>
9435_ACEOF
9436                case "$host_os" in
9437    aix*) gl_absname_cpp="$ac_cpp -C" ;;
9438    *)    gl_absname_cpp="$ac_cpp" ;;
9439  esac
9440
9441  case "$host_os" in
9442    mingw*)
9443                                          gl_dirsep_regex='[/\\]'
9444      ;;
9445    *)
9446      gl_dirsep_regex='\/'
9447      ;;
9448  esac
9449      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9450  gl_header_literal_regex=`echo 'errno.h' \
9451                           | sed -e "$gl_make_literal_regex_sed"`
9452  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9453      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9454      s|^/[^/]|//&|
9455      p
9456      q
9457    }'
9458
9459        gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9460  sed -n "$gl_absolute_header_sed"`
9461
9462           gl_header=$gl_cv_absolute_errno_h
9463           gl_cv_next_errno_h='"'$gl_header'"'
9464
9465
9466fi
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
9468$as_echo "$gl_cv_next_errno_h" >&6; }
9469     fi
9470     NEXT_ERRNO_H=$gl_cv_next_errno_h
9471
9472     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9473       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9474       gl_next_as_first_directive='<'errno.h'>'
9475     else
9476       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9477       gl_next_as_first_directive=$gl_cv_next_errno_h
9478     fi
9479     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
9480
9481
9482
9483
9484    ERRNO_H='errno.h'
9485  fi
9486
9487   if test -n "$ERRNO_H"; then
9488  GL_GENERATE_ERRNO_H_TRUE=
9489  GL_GENERATE_ERRNO_H_FALSE='#'
9490else
9491  GL_GENERATE_ERRNO_H_TRUE='#'
9492  GL_GENERATE_ERRNO_H_FALSE=
9493fi
9494
9495
9496  if test -n "$ERRNO_H"; then
9497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
9498$as_echo_n "checking for EMULTIHOP value... " >&6; }
9499if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502
9503      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h.  */
9505
9506#include <errno.h>
9507#ifdef EMULTIHOP
9508yes
9509#endif
9510
9511_ACEOF
9512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9513  $EGREP "yes" >/dev/null 2>&1; then :
9514  gl_cv_header_errno_h_EMULTIHOP=yes
9515else
9516  gl_cv_header_errno_h_EMULTIHOP=no
9517fi
9518rm -f conftest*
9519
9520      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
9521        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522/* end confdefs.h.  */
9523
9524#define _XOPEN_SOURCE_EXTENDED 1
9525#include <errno.h>
9526#ifdef EMULTIHOP
9527yes
9528#endif
9529
9530_ACEOF
9531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9532  $EGREP "yes" >/dev/null 2>&1; then :
9533  gl_cv_header_errno_h_EMULTIHOP=hidden
9534fi
9535rm -f conftest*
9536
9537        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
9538                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
9539#define _XOPEN_SOURCE_EXTENDED 1
9540#include <errno.h>
9541/* The following two lines are a workaround against an autoconf-2.52 bug.  */
9542#include <stdio.h>
9543#include <stdlib.h>
9544"; then :
9545
9546fi
9547
9548        fi
9549      fi
9550
9551fi
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
9553$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
9554    case $gl_cv_header_errno_h_EMULTIHOP in
9555      yes | no)
9556        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
9557        ;;
9558      *)
9559        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
9560        ;;
9561    esac
9562
9563
9564  fi
9565
9566
9567  if test -n "$ERRNO_H"; then
9568    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
9569$as_echo_n "checking for ENOLINK value... " >&6; }
9570if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
9571  $as_echo_n "(cached) " >&6
9572else
9573
9574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575/* end confdefs.h.  */
9576
9577#include <errno.h>
9578#ifdef ENOLINK
9579yes
9580#endif
9581
9582_ACEOF
9583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9584  $EGREP "yes" >/dev/null 2>&1; then :
9585  gl_cv_header_errno_h_ENOLINK=yes
9586else
9587  gl_cv_header_errno_h_ENOLINK=no
9588fi
9589rm -f conftest*
9590
9591      if test $gl_cv_header_errno_h_ENOLINK = no; then
9592        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h.  */
9594
9595#define _XOPEN_SOURCE_EXTENDED 1
9596#include <errno.h>
9597#ifdef ENOLINK
9598yes
9599#endif
9600
9601_ACEOF
9602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9603  $EGREP "yes" >/dev/null 2>&1; then :
9604  gl_cv_header_errno_h_ENOLINK=hidden
9605fi
9606rm -f conftest*
9607
9608        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
9609                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
9610#define _XOPEN_SOURCE_EXTENDED 1
9611#include <errno.h>
9612/* The following two lines are a workaround against an autoconf-2.52 bug.  */
9613#include <stdio.h>
9614#include <stdlib.h>
9615"; then :
9616
9617fi
9618
9619        fi
9620      fi
9621
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
9624$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
9625    case $gl_cv_header_errno_h_ENOLINK in
9626      yes | no)
9627        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
9628        ;;
9629      *)
9630        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
9631        ;;
9632    esac
9633
9634
9635  fi
9636
9637
9638  if test -n "$ERRNO_H"; then
9639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
9640$as_echo_n "checking for EOVERFLOW value... " >&6; }
9641if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
9642  $as_echo_n "(cached) " >&6
9643else
9644
9645      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h.  */
9647
9648#include <errno.h>
9649#ifdef EOVERFLOW
9650yes
9651#endif
9652
9653_ACEOF
9654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9655  $EGREP "yes" >/dev/null 2>&1; then :
9656  gl_cv_header_errno_h_EOVERFLOW=yes
9657else
9658  gl_cv_header_errno_h_EOVERFLOW=no
9659fi
9660rm -f conftest*
9661
9662      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
9663        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h.  */
9665
9666#define _XOPEN_SOURCE_EXTENDED 1
9667#include <errno.h>
9668#ifdef EOVERFLOW
9669yes
9670#endif
9671
9672_ACEOF
9673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9674  $EGREP "yes" >/dev/null 2>&1; then :
9675  gl_cv_header_errno_h_EOVERFLOW=hidden
9676fi
9677rm -f conftest*
9678
9679        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
9680                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
9681#define _XOPEN_SOURCE_EXTENDED 1
9682#include <errno.h>
9683/* The following two lines are a workaround against an autoconf-2.52 bug.  */
9684#include <stdio.h>
9685#include <stdlib.h>
9686"; then :
9687
9688fi
9689
9690        fi
9691      fi
9692
9693fi
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
9695$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
9696    case $gl_cv_header_errno_h_EOVERFLOW in
9697      yes | no)
9698        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
9699        ;;
9700      *)
9701        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
9702        ;;
9703    esac
9704
9705
9706  fi
9707
9708
9709
9710
9711
9712
9713  GNULIB_CREAT=0;
9714  GNULIB_FCNTL=0;
9715  GNULIB_NONBLOCKING=0;
9716  GNULIB_OPEN=0;
9717  GNULIB_OPENAT=0;
9718    HAVE_FCNTL=1;
9719  HAVE_OPENAT=1;
9720  REPLACE_CREAT=0;
9721  REPLACE_FCNTL=0;
9722  REPLACE_OPEN=0;
9723  REPLACE_OPENAT=0;
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9735$as_echo_n "checking for working fcntl.h... " >&6; }
9736if ${gl_cv_header_working_fcntl_h+:} false; then :
9737  $as_echo_n "(cached) " >&6
9738else
9739  if test "$cross_compiling" = yes; then :
9740  case "$host_os" in
9741                  # Guess 'no' on native Windows.
9742          mingw*) gl_cv_header_working_fcntl_h='no' ;;
9743          *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
9744        esac
9745
9746else
9747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h.  */
9749#include <sys/types.h>
9750           #include <sys/stat.h>
9751           #if HAVE_UNISTD_H
9752           # include <unistd.h>
9753           #else /* on Windows with MSVC */
9754           # include <io.h>
9755           # include <stdlib.h>
9756           # defined sleep(n) _sleep ((n) * 1000)
9757           #endif
9758           #include <fcntl.h>
9759           #ifndef O_NOATIME
9760            #define O_NOATIME 0
9761           #endif
9762           #ifndef O_NOFOLLOW
9763            #define O_NOFOLLOW 0
9764           #endif
9765           static int const constants[] =
9766            {
9767              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9768              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9769            };
9770
9771int
9772main ()
9773{
9774
9775            int result = !constants;
9776            #if HAVE_SYMLINK
9777            {
9778              static char const sym[] = "conftest.sym";
9779              if (symlink ("/dev/null", sym) != 0)
9780                result |= 2;
9781              else
9782                {
9783                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9784                  if (fd >= 0)
9785                    {
9786                      close (fd);
9787                      result |= 4;
9788                    }
9789                }
9790              if (unlink (sym) != 0 || symlink (".", sym) != 0)
9791                result |= 2;
9792              else
9793                {
9794                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9795                  if (fd >= 0)
9796                    {
9797                      close (fd);
9798                      result |= 4;
9799                    }
9800                }
9801              unlink (sym);
9802            }
9803            #endif
9804            {
9805              static char const file[] = "confdefs.h";
9806              int fd = open (file, O_RDONLY | O_NOATIME);
9807              if (fd < 0)
9808                result |= 8;
9809              else
9810                {
9811                  struct stat st0;
9812                  if (fstat (fd, &st0) != 0)
9813                    result |= 16;
9814                  else
9815                    {
9816                      char c;
9817                      sleep (1);
9818                      if (read (fd, &c, 1) != 1)
9819                        result |= 24;
9820                      else
9821                        {
9822                          if (close (fd) != 0)
9823                            result |= 32;
9824                          else
9825                            {
9826                              struct stat st1;
9827                              if (stat (file, &st1) != 0)
9828                                result |= 40;
9829                              else
9830                                if (st0.st_atime != st1.st_atime)
9831                                  result |= 64;
9832                            }
9833                        }
9834                    }
9835                }
9836            }
9837            return result;
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842if ac_fn_c_try_run "$LINENO"; then :
9843  gl_cv_header_working_fcntl_h=yes
9844else
9845  case $? in #(
9846        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9847        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9848        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9849         *) gl_cv_header_working_fcntl_h='no';;
9850        esac
9851fi
9852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9853  conftest.$ac_objext conftest.beam conftest.$ac_ext
9854fi
9855
9856
9857fi
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9859$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9860
9861  case $gl_cv_header_working_fcntl_h in #(
9862  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9863  *) ac_val=1;;
9864  esac
9865
9866cat >>confdefs.h <<_ACEOF
9867#define HAVE_WORKING_O_NOATIME $ac_val
9868_ACEOF
9869
9870
9871  case $gl_cv_header_working_fcntl_h in #(
9872  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9873  *) ac_val=1;;
9874  esac
9875
9876cat >>confdefs.h <<_ACEOF
9877#define HAVE_WORKING_O_NOFOLLOW $ac_val
9878_ACEOF
9879
9880
9881ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9882if test "x$ac_cv_type_pid_t" = xyes; then :
9883
9884else
9885
9886cat >>confdefs.h <<_ACEOF
9887#define pid_t int
9888_ACEOF
9889
9890fi
9891
9892ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9893if test "x$ac_cv_type_mode_t" = xyes; then :
9894
9895else
9896
9897cat >>confdefs.h <<_ACEOF
9898#define mode_t int
9899_ACEOF
9900
9901fi
9902
9903
9904
9905
9906  GNULIB_ACCESS=0;
9907  GNULIB_CHDIR=0;
9908  GNULIB_CHOWN=0;
9909  GNULIB_CLOSE=0;
9910  GNULIB_COPY_FILE_RANGE=0;
9911  GNULIB_DUP=0;
9912  GNULIB_DUP2=0;
9913  GNULIB_DUP3=0;
9914  GNULIB_ENVIRON=0;
9915  GNULIB_EUIDACCESS=0;
9916  GNULIB_FACCESSAT=0;
9917  GNULIB_FCHDIR=0;
9918  GNULIB_FCHOWNAT=0;
9919  GNULIB_FDATASYNC=0;
9920  GNULIB_FSYNC=0;
9921  GNULIB_FTRUNCATE=0;
9922  GNULIB_GETCWD=0;
9923  GNULIB_GETDOMAINNAME=0;
9924  GNULIB_GETDTABLESIZE=0;
9925  GNULIB_GETGROUPS=0;
9926  GNULIB_GETHOSTNAME=0;
9927  GNULIB_GETLOGIN=0;
9928  GNULIB_GETLOGIN_R=0;
9929  GNULIB_GETOPT_POSIX=0;
9930  GNULIB_GETPAGESIZE=0;
9931  GNULIB_GETPASS=0;
9932  GNULIB_GETUSERSHELL=0;
9933  GNULIB_GROUP_MEMBER=0;
9934  GNULIB_ISATTY=0;
9935  GNULIB_LCHOWN=0;
9936  GNULIB_LINK=0;
9937  GNULIB_LINKAT=0;
9938  GNULIB_LSEEK=0;
9939  GNULIB_PIPE=0;
9940  GNULIB_PIPE2=0;
9941  GNULIB_PREAD=0;
9942  GNULIB_PWRITE=0;
9943  GNULIB_READ=0;
9944  GNULIB_READLINK=0;
9945  GNULIB_READLINKAT=0;
9946  GNULIB_RMDIR=0;
9947  GNULIB_SETHOSTNAME=0;
9948  GNULIB_SLEEP=0;
9949  GNULIB_SYMLINK=0;
9950  GNULIB_SYMLINKAT=0;
9951  GNULIB_TRUNCATE=0;
9952  GNULIB_TTYNAME_R=0;
9953  GNULIB_UNISTD_H_NONBLOCKING=0;
9954  GNULIB_UNISTD_H_SIGPIPE=0;
9955  GNULIB_UNLINK=0;
9956  GNULIB_UNLINKAT=0;
9957  GNULIB_USLEEP=0;
9958  GNULIB_WRITE=0;
9959    HAVE_CHOWN=1;
9960  HAVE_COPY_FILE_RANGE=1;
9961  HAVE_DUP2=1;
9962  HAVE_DUP3=1;
9963  HAVE_EUIDACCESS=1;
9964  HAVE_FACCESSAT=1;
9965  HAVE_FCHDIR=1;
9966  HAVE_FCHOWNAT=1;
9967  HAVE_FDATASYNC=1;
9968  HAVE_FSYNC=1;
9969  HAVE_FTRUNCATE=1;
9970  HAVE_GETDTABLESIZE=1;
9971  HAVE_GETGROUPS=1;
9972  HAVE_GETHOSTNAME=1;
9973  HAVE_GETLOGIN=1;
9974  HAVE_GETPAGESIZE=1;
9975  HAVE_GETPASS=1;
9976  HAVE_GROUP_MEMBER=1;
9977  HAVE_LCHOWN=1;
9978  HAVE_LINK=1;
9979  HAVE_LINKAT=1;
9980  HAVE_PIPE=1;
9981  HAVE_PIPE2=1;
9982  HAVE_PREAD=1;
9983  HAVE_PWRITE=1;
9984  HAVE_READLINK=1;
9985  HAVE_READLINKAT=1;
9986  HAVE_SETHOSTNAME=1;
9987  HAVE_SLEEP=1;
9988  HAVE_SYMLINK=1;
9989  HAVE_SYMLINKAT=1;
9990  HAVE_UNLINKAT=1;
9991  HAVE_USLEEP=1;
9992  HAVE_DECL_ENVIRON=1;
9993  HAVE_DECL_FCHDIR=1;
9994  HAVE_DECL_FDATASYNC=1;
9995  HAVE_DECL_GETDOMAINNAME=1;
9996  HAVE_DECL_GETLOGIN=1;
9997  HAVE_DECL_GETLOGIN_R=1;
9998  HAVE_DECL_GETPAGESIZE=1;
9999  HAVE_DECL_GETUSERSHELL=1;
10000  HAVE_DECL_SETHOSTNAME=1;
10001  HAVE_DECL_TRUNCATE=1;
10002  HAVE_DECL_TTYNAME_R=1;
10003  HAVE_OS_H=0;
10004  HAVE_SYS_PARAM_H=0;
10005  REPLACE_ACCESS=0;
10006  REPLACE_CHOWN=0;
10007  REPLACE_CLOSE=0;
10008  REPLACE_DUP=0;
10009  REPLACE_DUP2=0;
10010  REPLACE_FACCESSAT=0;
10011  REPLACE_FCHOWNAT=0;
10012  REPLACE_FTRUNCATE=0;
10013  REPLACE_GETCWD=0;
10014  REPLACE_GETDOMAINNAME=0;
10015  REPLACE_GETDTABLESIZE=0;
10016  REPLACE_GETLOGIN_R=0;
10017  REPLACE_GETGROUPS=0;
10018  REPLACE_GETPAGESIZE=0;
10019  REPLACE_GETPASS=0;
10020  REPLACE_ISATTY=0;
10021  REPLACE_LCHOWN=0;
10022  REPLACE_LINK=0;
10023  REPLACE_LINKAT=0;
10024  REPLACE_LSEEK=0;
10025  REPLACE_PREAD=0;
10026  REPLACE_PWRITE=0;
10027  REPLACE_READ=0;
10028  REPLACE_READLINK=0;
10029  REPLACE_READLINKAT=0;
10030  REPLACE_RMDIR=0;
10031  REPLACE_SLEEP=0;
10032  REPLACE_SYMLINK=0;
10033  REPLACE_SYMLINKAT=0;
10034  REPLACE_TRUNCATE=0;
10035  REPLACE_TTYNAME_R=0;
10036  REPLACE_UNLINK=0;
10037  REPLACE_UNLINKAT=0;
10038  REPLACE_USLEEP=0;
10039  REPLACE_WRITE=0;
10040  UNISTD_H_HAVE_WINSOCK2_H=0;
10041  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059     if test $gl_cv_have_include_next = yes; then
10060       gl_cv_next_getopt_h='<'getopt.h'>'
10061     else
10062       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
10063$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
10064if ${gl_cv_next_getopt_h+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067
10068             if test $ac_cv_header_getopt_h = yes; then
10069
10070
10071
10072
10073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h.  */
10075#include <getopt.h>
10076_ACEOF
10077                case "$host_os" in
10078    aix*) gl_absname_cpp="$ac_cpp -C" ;;
10079    *)    gl_absname_cpp="$ac_cpp" ;;
10080  esac
10081
10082  case "$host_os" in
10083    mingw*)
10084                                          gl_dirsep_regex='[/\\]'
10085      ;;
10086    *)
10087      gl_dirsep_regex='\/'
10088      ;;
10089  esac
10090      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10091  gl_header_literal_regex=`echo 'getopt.h' \
10092                           | sed -e "$gl_make_literal_regex_sed"`
10093  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10094      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10095      s|^/[^/]|//&|
10096      p
10097      q
10098    }'
10099
10100        gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10101  sed -n "$gl_absolute_header_sed"`
10102
10103           gl_header=$gl_cv_absolute_getopt_h
10104           gl_cv_next_getopt_h='"'$gl_header'"'
10105          else
10106               gl_cv_next_getopt_h='<'getopt.h'>'
10107             fi
10108
10109
10110fi
10111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
10112$as_echo "$gl_cv_next_getopt_h" >&6; }
10113     fi
10114     NEXT_GETOPT_H=$gl_cv_next_getopt_h
10115
10116     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10117       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10118       gl_next_as_first_directive='<'getopt.h'>'
10119     else
10120       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10121       gl_next_as_first_directive=$gl_cv_next_getopt_h
10122     fi
10123     NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
10124
10125
10126
10127
10128  if test $ac_cv_header_getopt_h = yes; then
10129    HAVE_GETOPT_H=1
10130  else
10131    HAVE_GETOPT_H=0
10132  fi
10133
10134
10135  gl_replace_getopt=
10136
10137    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
10138    for ac_header in getopt.h
10139do :
10140  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
10141if test "x$ac_cv_header_getopt_h" = xyes; then :
10142  cat >>confdefs.h <<_ACEOF
10143#define HAVE_GETOPT_H 1
10144_ACEOF
10145
10146else
10147  gl_replace_getopt=yes
10148fi
10149
10150done
10151
10152  fi
10153
10154    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
10155    for ac_func in getopt_long_only
10156do :
10157  ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
10158if test "x$ac_cv_func_getopt_long_only" = xyes; then :
10159  cat >>confdefs.h <<_ACEOF
10160#define HAVE_GETOPT_LONG_ONLY 1
10161_ACEOF
10162
10163else
10164  gl_replace_getopt=yes
10165fi
10166done
10167
10168  fi
10169
10170          if test -z "$gl_replace_getopt"; then
10171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
10172$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
10173if ${gl_cv_func_getopt_posix+:} false; then :
10174  $as_echo_n "(cached) " >&6
10175else
10176
10177                                                if test $cross_compiling = no; then
10178                              if test "$cross_compiling" = yes; then :
10179  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10181as_fn_error $? "cannot run test program while cross compiling
10182See \`config.log' for more details" "$LINENO" 5; }
10183else
10184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185/* end confdefs.h.  */
10186
10187#include <unistd.h>
10188#include <stdlib.h>
10189#include <string.h>
10190
10191int
10192main ()
10193{
10194  static char program[] = "program";
10195  static char a[] = "-a";
10196  static char foo[] = "foo";
10197  static char bar[] = "bar";
10198  char *argv[] = { program, a, foo, bar, NULL };
10199  int c;
10200
10201  c = getopt (4, argv, "ab");
10202  if (!(c == 'a'))
10203    return 1;
10204  c = getopt (4, argv, "ab");
10205  if (!(c == -1))
10206    return 2;
10207  if (!(optind == 2))
10208    return 3;
10209  return 0;
10210}
10211
10212_ACEOF
10213if ac_fn_c_try_run "$LINENO"; then :
10214  gl_cv_func_getopt_posix=maybe
10215else
10216  gl_cv_func_getopt_posix=no
10217fi
10218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10219  conftest.$ac_objext conftest.beam conftest.$ac_ext
10220fi
10221
10222          if test $gl_cv_func_getopt_posix = maybe; then
10223                                    if test "$cross_compiling" = yes; then :
10224  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10226as_fn_error $? "cannot run test program while cross compiling
10227See \`config.log' for more details" "$LINENO" 5; }
10228else
10229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230/* end confdefs.h.  */
10231
10232#include <unistd.h>
10233#include <stdlib.h>
10234#include <string.h>
10235
10236int
10237main ()
10238{
10239  static char program[] = "program";
10240  static char donald[] = "donald";
10241  static char p[] = "-p";
10242  static char billy[] = "billy";
10243  static char duck[] = "duck";
10244  static char a[] = "-a";
10245  static char bar[] = "bar";
10246  char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
10247  int c;
10248
10249  c = getopt (7, argv, "+abp:q:");
10250  if (!(c == -1))
10251    return 4;
10252  if (!(strcmp (argv[0], "program") == 0))
10253    return 5;
10254  if (!(strcmp (argv[1], "donald") == 0))
10255    return 6;
10256  if (!(strcmp (argv[2], "-p") == 0))
10257    return 7;
10258  if (!(strcmp (argv[3], "billy") == 0))
10259    return 8;
10260  if (!(strcmp (argv[4], "duck") == 0))
10261    return 9;
10262  if (!(strcmp (argv[5], "-a") == 0))
10263    return 10;
10264  if (!(strcmp (argv[6], "bar") == 0))
10265    return 11;
10266  if (!(optind == 1))
10267    return 12;
10268  return 0;
10269}
10270
10271_ACEOF
10272if ac_fn_c_try_run "$LINENO"; then :
10273  gl_cv_func_getopt_posix=maybe
10274else
10275  gl_cv_func_getopt_posix=no
10276fi
10277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10278  conftest.$ac_objext conftest.beam conftest.$ac_ext
10279fi
10280
10281          fi
10282          if test $gl_cv_func_getopt_posix = maybe; then
10283                        if test "$cross_compiling" = yes; then :
10284  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10286as_fn_error $? "cannot run test program while cross compiling
10287See \`config.log' for more details" "$LINENO" 5; }
10288else
10289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h.  */
10291
10292#include <unistd.h>
10293#include <stdlib.h>
10294#include <string.h>
10295
10296int
10297main ()
10298{
10299  static char program[] = "program";
10300  static char ab[] = "-ab";
10301  char *argv[3] = { program, ab, NULL };
10302  if (getopt (2, argv, "ab:") != 'a')
10303    return 13;
10304  if (getopt (2, argv, "ab:") != '?')
10305    return 14;
10306  if (optopt != 'b')
10307    return 15;
10308  if (optind != 2)
10309    return 16;
10310  return 0;
10311}
10312
10313_ACEOF
10314if ac_fn_c_try_run "$LINENO"; then :
10315  gl_cv_func_getopt_posix=yes
10316else
10317  gl_cv_func_getopt_posix=no
10318fi
10319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10320  conftest.$ac_objext conftest.beam conftest.$ac_ext
10321fi
10322
10323          fi
10324        else
10325          case "$host_os" in
10326            darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
10327            *)                       gl_cv_func_getopt_posix="guessing yes";;
10328          esac
10329        fi
10330
10331fi
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
10333$as_echo "$gl_cv_func_getopt_posix" >&6; }
10334    case "$gl_cv_func_getopt_posix" in
10335      *no) gl_replace_getopt=yes ;;
10336    esac
10337  fi
10338
10339  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
10340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
10341$as_echo_n "checking for working GNU getopt function... " >&6; }
10342if ${gl_cv_func_getopt_gnu+:} false; then :
10343  $as_echo_n "(cached) " >&6
10344else
10345  # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
10346       # optstring is necessary for programs like m4 that have POSIX-mandated
10347       # semantics for supporting options interspersed with files.
10348       # Also, since getopt_long is a GNU extension, we require optind=0.
10349       # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
10350       # so take care to revert to the correct (non-)export state.
10351       gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
10352       case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
10353         xx) gl_had_POSIXLY_CORRECT=exported ;;
10354         x)  gl_had_POSIXLY_CORRECT=yes      ;;
10355         *)  gl_had_POSIXLY_CORRECT=         ;;
10356       esac
10357       POSIXLY_CORRECT=1
10358       export POSIXLY_CORRECT
10359       if test "$cross_compiling" = yes; then :
10360                             gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
10361
10362else
10363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364/* end confdefs.h.  */
10365#include <getopt.h>
10366                           #include <stddef.h>
10367                           #include <string.h>
10368
10369#include <stdlib.h>
10370#if defined __MACH__ && defined __APPLE__
10371/* Avoid a crash on Mac OS X.  */
10372#include <mach/mach.h>
10373#include <mach/mach_error.h>
10374#include <mach/thread_status.h>
10375#include <mach/exception.h>
10376#include <mach/task.h>
10377#include <pthread.h>
10378/* The exception port on which our thread listens.  */
10379static mach_port_t our_exception_port;
10380/* The main function of the thread listening for exceptions of type
10381   EXC_BAD_ACCESS.  */
10382static void *
10383mach_exception_thread (void *arg)
10384{
10385  /* Buffer for a message to be received.  */
10386  struct {
10387    mach_msg_header_t head;
10388    mach_msg_body_t msgh_body;
10389    char data[1024];
10390  } msg;
10391  mach_msg_return_t retval;
10392  /* Wait for a message on the exception port.  */
10393  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
10394                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
10395  if (retval != MACH_MSG_SUCCESS)
10396    abort ();
10397  exit (1);
10398}
10399static void
10400nocrash_init (void)
10401{
10402  mach_port_t self = mach_task_self ();
10403  /* Allocate a port on which the thread shall listen for exceptions.  */
10404  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
10405      == KERN_SUCCESS) {
10406    /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
10407    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
10408                                MACH_MSG_TYPE_MAKE_SEND)
10409        == KERN_SUCCESS) {
10410      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
10411         for us.  */
10412      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
10413      /* Create the thread listening on the exception port.  */
10414      pthread_attr_t attr;
10415      pthread_t thread;
10416      if (pthread_attr_init (&attr) == 0
10417          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
10418          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
10419        pthread_attr_destroy (&attr);
10420        /* Replace the exception port info for these exceptions with our own.
10421           Note that we replace the exception port for the entire task, not only
10422           for a particular thread.  This has the effect that when our exception
10423           port gets the message, the thread specific exception port has already
10424           been asked, and we don't need to bother about it.
10425           See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
10426        task_set_exception_ports (self, mask, our_exception_port,
10427                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
10428      }
10429    }
10430  }
10431}
10432#elif defined _WIN32 && ! defined __CYGWIN__
10433/* Avoid a crash on native Windows.  */
10434#define WIN32_LEAN_AND_MEAN
10435#include <windows.h>
10436#include <winerror.h>
10437static LONG WINAPI
10438exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
10439{
10440  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
10441    {
10442    case EXCEPTION_ACCESS_VIOLATION:
10443    case EXCEPTION_IN_PAGE_ERROR:
10444    case EXCEPTION_STACK_OVERFLOW:
10445    case EXCEPTION_GUARD_PAGE:
10446    case EXCEPTION_PRIV_INSTRUCTION:
10447    case EXCEPTION_ILLEGAL_INSTRUCTION:
10448    case EXCEPTION_DATATYPE_MISALIGNMENT:
10449    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
10450    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
10451      exit (1);
10452    }
10453  return EXCEPTION_CONTINUE_SEARCH;
10454}
10455static void
10456nocrash_init (void)
10457{
10458  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
10459}
10460#else
10461/* Avoid a crash on POSIX systems.  */
10462#include <signal.h>
10463#include <unistd.h>
10464/* A POSIX signal handler.  */
10465static void
10466exception_handler (int sig)
10467{
10468  _exit (1);
10469}
10470static void
10471nocrash_init (void)
10472{
10473#ifdef SIGSEGV
10474  signal (SIGSEGV, exception_handler);
10475#endif
10476#ifdef SIGBUS
10477  signal (SIGBUS, exception_handler);
10478#endif
10479}
10480#endif
10481
10482
10483int
10484main ()
10485{
10486
10487             int result = 0;
10488
10489             nocrash_init();
10490
10491             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
10492                and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
10493                OSF/1 5.1, Solaris 10.  */
10494             {
10495               static char conftest[] = "conftest";
10496               static char plus[] = "-+";
10497               char *argv[3] = { conftest, plus, NULL };
10498               opterr = 0;
10499               if (getopt (2, argv, "+a") != '?')
10500                 result |= 1;
10501             }
10502             /* This code succeeds on glibc 2.8, mingw,
10503                and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
10504                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
10505             {
10506               static char program[] = "program";
10507               static char p[] = "-p";
10508               static char foo[] = "foo";
10509               static char bar[] = "bar";
10510               char *argv[] = { program, p, foo, bar, NULL };
10511
10512               optind = 1;
10513               if (getopt (4, argv, "p::") != 'p')
10514                 result |= 2;
10515               else if (optarg != NULL)
10516                 result |= 4;
10517               else if (getopt (4, argv, "p::") != -1)
10518                 result |= 6;
10519               else if (optind != 2)
10520                 result |= 8;
10521             }
10522             /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
10523             {
10524               static char program[] = "program";
10525               static char foo[] = "foo";
10526               static char p[] = "-p";
10527               char *argv[] = { program, foo, p, NULL };
10528               optind = 0;
10529               if (getopt (3, argv, "-p") != 1)
10530                 result |= 16;
10531               else if (getopt (3, argv, "-p") != 'p')
10532                 result |= 16;
10533             }
10534             /* This code fails on glibc 2.11.  */
10535             {
10536               static char program[] = "program";
10537               static char b[] = "-b";
10538               static char a[] = "-a";
10539               char *argv[] = { program, b, a, NULL };
10540               optind = opterr = 0;
10541               if (getopt (3, argv, "+:a:b") != 'b')
10542                 result |= 32;
10543               else if (getopt (3, argv, "+:a:b") != ':')
10544                 result |= 32;
10545             }
10546             /* This code dumps core on glibc 2.14.  */
10547             {
10548               static char program[] = "program";
10549               static char w[] = "-W";
10550               static char dummy[] = "dummy";
10551               char *argv[] = { program, w, dummy, NULL };
10552               optind = opterr = 1;
10553               if (getopt (3, argv, "W;") != 'W')
10554                 result |= 64;
10555             }
10556             return result;
10557
10558  ;
10559  return 0;
10560}
10561_ACEOF
10562if ac_fn_c_try_run "$LINENO"; then :
10563  gl_cv_func_getopt_gnu=yes
10564else
10565  gl_cv_func_getopt_gnu=no
10566fi
10567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10568  conftest.$ac_objext conftest.beam conftest.$ac_ext
10569fi
10570
10571       case $gl_had_POSIXLY_CORRECT in
10572         exported) ;;
10573         yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
10574         *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
10575       esac
10576
10577fi
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
10579$as_echo "$gl_cv_func_getopt_gnu" >&6; }
10580    if test "$gl_cv_func_getopt_gnu" != yes; then
10581      gl_replace_getopt=yes
10582    else
10583      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
10584$as_echo_n "checking for working GNU getopt_long function... " >&6; }
10585if ${gl_cv_func_getopt_long_gnu+:} false; then :
10586  $as_echo_n "(cached) " >&6
10587else
10588  if test "$cross_compiling" = yes; then :
10589              case "$host_os" in
10590              openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
10591              *)        gl_cv_func_getopt_long_gnu="guessing yes";;
10592            esac
10593
10594else
10595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596/* end confdefs.h.  */
10597#include <getopt.h>
10598                #include <stddef.h>
10599                #include <string.h>
10600
10601int
10602main ()
10603{
10604static const struct option long_options[] =
10605                  {
10606                    { "xtremely-",no_argument,       NULL, 1003 },
10607                    { "xtra",     no_argument,       NULL, 1001 },
10608                    { "xtreme",   no_argument,       NULL, 1002 },
10609                    { "xtremely", no_argument,       NULL, 1003 },
10610                    { NULL,       0,                 NULL, 0 }
10611                  };
10612                /* This code fails on OpenBSD 5.0.  */
10613                {
10614                  static char program[] = "program";
10615                  static char xtremel[] = "--xtremel";
10616                  char *argv[] = { program, xtremel, NULL };
10617                  int option_index;
10618                  optind = 1; opterr = 0;
10619                  if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
10620                    return 1;
10621                }
10622                return 0;
10623
10624  ;
10625  return 0;
10626}
10627_ACEOF
10628if ac_fn_c_try_run "$LINENO"; then :
10629  gl_cv_func_getopt_long_gnu=yes
10630else
10631  gl_cv_func_getopt_long_gnu=no
10632fi
10633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10634  conftest.$ac_objext conftest.beam conftest.$ac_ext
10635fi
10636
10637
10638fi
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
10640$as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
10641      case "$gl_cv_func_getopt_long_gnu" in
10642        *yes) ;;
10643        *) gl_replace_getopt=yes ;;
10644      esac
10645    fi
10646  fi
10647
10648
10649
10650
10651
10652
10653
10654
10655  GNULIB_GETTIMEOFDAY=0;
10656    HAVE_GETTIMEOFDAY=1;
10657  HAVE_STRUCT_TIMEVAL=1;
10658  HAVE_SYS_TIME_H=1;
10659  REPLACE_GETTIMEOFDAY=0;
10660  REPLACE_STRUCT_TIMEVAL=0;
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679     if test $gl_cv_have_include_next = yes; then
10680       gl_cv_next_sys_time_h='<'sys/time.h'>'
10681     else
10682       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10683$as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10684if ${gl_cv_next_sys_time_h+:} false; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687
10688             if test $ac_cv_header_sys_time_h = yes; then
10689
10690
10691
10692
10693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694/* end confdefs.h.  */
10695#include <sys/time.h>
10696_ACEOF
10697                case "$host_os" in
10698    aix*) gl_absname_cpp="$ac_cpp -C" ;;
10699    *)    gl_absname_cpp="$ac_cpp" ;;
10700  esac
10701
10702  case "$host_os" in
10703    mingw*)
10704                                          gl_dirsep_regex='[/\\]'
10705      ;;
10706    *)
10707      gl_dirsep_regex='\/'
10708      ;;
10709  esac
10710      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10711  gl_header_literal_regex=`echo 'sys/time.h' \
10712                           | sed -e "$gl_make_literal_regex_sed"`
10713  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10714      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10715      s|^/[^/]|//&|
10716      p
10717      q
10718    }'
10719
10720        gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10721  sed -n "$gl_absolute_header_sed"`
10722
10723           gl_header=$gl_cv_absolute_sys_time_h
10724           gl_cv_next_sys_time_h='"'$gl_header'"'
10725          else
10726               gl_cv_next_sys_time_h='<'sys/time.h'>'
10727             fi
10728
10729
10730fi
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10732$as_echo "$gl_cv_next_sys_time_h" >&6; }
10733     fi
10734     NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
10735
10736     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10737       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10738       gl_next_as_first_directive='<'sys/time.h'>'
10739     else
10740       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10741       gl_next_as_first_directive=$gl_cv_next_sys_time_h
10742     fi
10743     NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
10744
10745
10746
10747
10748
10749  if test $ac_cv_header_sys_time_h != yes; then
10750    HAVE_SYS_TIME_H=0
10751  fi
10752
10753
10754
10755
10756
10757  if test $ac_cv_header_sys_socket_h != yes; then
10758                    for ac_header in winsock2.h
10759do :
10760  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10761if test "x$ac_cv_header_winsock2_h" = xyes; then :
10762  cat >>confdefs.h <<_ACEOF
10763#define HAVE_WINSOCK2_H 1
10764_ACEOF
10765
10766fi
10767
10768done
10769
10770  fi
10771  if test "$ac_cv_header_winsock2_h" = yes; then
10772    HAVE_WINSOCK2_H=1
10773    UNISTD_H_HAVE_WINSOCK2_H=1
10774    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10775  else
10776    HAVE_WINSOCK2_H=0
10777  fi
10778
10779
10780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10781$as_echo_n "checking for struct timeval... " >&6; }
10782if ${gl_cv_sys_struct_timeval+:} false; then :
10783  $as_echo_n "(cached) " >&6
10784else
10785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786/* end confdefs.h.  */
10787#if HAVE_SYS_TIME_H
10788             #include <sys/time.h>
10789            #endif
10790            #include <time.h>
10791            #if HAVE_WINSOCK2_H
10792            # include <winsock2.h>
10793            #endif
10794
10795int
10796main ()
10797{
10798static struct timeval x; x.tv_sec = x.tv_usec;
10799  ;
10800  return 0;
10801}
10802_ACEOF
10803if ac_fn_c_try_compile "$LINENO"; then :
10804  gl_cv_sys_struct_timeval=yes
10805else
10806  gl_cv_sys_struct_timeval=no
10807fi
10808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809
10810fi
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10812$as_echo "$gl_cv_sys_struct_timeval" >&6; }
10813  if test $gl_cv_sys_struct_timeval != yes; then
10814    HAVE_STRUCT_TIMEVAL=0
10815  else
10816                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10817$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10818if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
10819  $as_echo_n "(cached) " >&6
10820else
10821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822/* end confdefs.h.  */
10823#if HAVE_SYS_TIME_H
10824               #include <sys/time.h>
10825              #endif
10826              #include <time.h>
10827              #if HAVE_WINSOCK2_H
10828              # include <winsock2.h>
10829              #endif
10830
10831int
10832main ()
10833{
10834static struct timeval x;
10835              typedef int verify_tv_sec_type[
10836                sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10837              ];
10838
10839  ;
10840  return 0;
10841}
10842_ACEOF
10843if ac_fn_c_try_compile "$LINENO"; then :
10844  gl_cv_sys_struct_timeval_tv_sec=yes
10845else
10846  gl_cv_sys_struct_timeval_tv_sec=no
10847fi
10848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849
10850fi
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10852$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10853    if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10854      REPLACE_STRUCT_TIMEVAL=1
10855    fi
10856  fi
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868  NEED_LOCALTIME_BUFFER=0
10869
10870
10871  GNULIB_CTIME=0;
10872  GNULIB_MKTIME=0;
10873  GNULIB_LOCALTIME=0;
10874  GNULIB_NANOSLEEP=0;
10875  GNULIB_STRFTIME=0;
10876  GNULIB_STRPTIME=0;
10877  GNULIB_TIMEGM=0;
10878  GNULIB_TIME_R=0;
10879  GNULIB_TIME_RZ=0;
10880  GNULIB_TZSET=0;
10881    HAVE_DECL_LOCALTIME_R=1;
10882  HAVE_NANOSLEEP=1;
10883  HAVE_STRPTIME=1;
10884  HAVE_TIMEGM=1;
10885  HAVE_TZSET=1;
10886    HAVE_TIMEZONE_T=0;
10887        REPLACE_CTIME=GNULIB_PORTCHECK;
10888  REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10889  REPLACE_MKTIME=GNULIB_PORTCHECK;
10890  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10891  REPLACE_STRFTIME=GNULIB_PORTCHECK;
10892  REPLACE_TIMEGM=GNULIB_PORTCHECK;
10893  REPLACE_TZSET=GNULIB_PORTCHECK;
10894
10895      : ${GNULIB_GETTIMEOFDAY=0};
10896        REPLACE_GMTIME=0;
10897  REPLACE_LOCALTIME=0;
10898
10899
10900
10901  if test -z "$gl_anythreadlib_early_done"; then
10902    case "$host_os" in
10903      osf*)
10904        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
10905        # groks <pthread.h>. cc also understands the flag -pthread, but
10906        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
10907        # 2. putting a flag into CPPFLAGS that has an effect on the linker
10908        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
10909        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
10910        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10911        ;;
10912    esac
10913    # Some systems optimize for single-threaded programs by default, and
10914    # need special flags to disable these optimizations. For example, the
10915    # definition of 'errno' in <errno.h>.
10916    case "$host_os" in
10917      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
10918      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
10919    esac
10920    gl_anythreadlib_early_done=done
10921  fi
10922
10923
10924
10925
10926
10927  if test -z "$gl_pthreadlib_body_done"; then
10928    gl_pthread_api=no
10929    LIBPTHREAD=
10930    LIBPMULTITHREAD=
10931    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
10932    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
10933    ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10934if test "x$ac_cv_header_pthread_h" = xyes; then :
10935  gl_have_pthread_h=yes
10936else
10937  gl_have_pthread_h=no
10938fi
10939
10940
10941    if test "$gl_have_pthread_h" = yes; then
10942      # Other possible tests:
10943      #   -lpthreads (FSU threads, PCthreads)
10944      #   -lgthreads
10945      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
10946      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
10947      # the second one only in libpthread, and lock.c needs it.
10948      #
10949      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
10950      # needs -pthread for some reason.  See:
10951      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
10952      save_LIBS=$LIBS
10953      for gl_pthread in '' '-pthread'; do
10954        LIBS="$LIBS $gl_pthread"
10955        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956/* end confdefs.h.  */
10957#include <pthread.h>
10958               pthread_mutex_t m;
10959               pthread_mutexattr_t ma;
10960
10961int
10962main ()
10963{
10964pthread_mutex_lock (&m);
10965               pthread_mutexattr_init (&ma);
10966  ;
10967  return 0;
10968}
10969_ACEOF
10970if ac_fn_c_try_link "$LINENO"; then :
10971  gl_pthread_api=yes
10972           LIBPTHREAD=$gl_pthread
10973           LIBPMULTITHREAD=$gl_pthread
10974fi
10975rm -f core conftest.err conftest.$ac_objext \
10976    conftest$ac_exeext conftest.$ac_ext
10977        LIBS=$save_LIBS
10978        test $gl_pthread_api = yes && break
10979      done
10980
10981      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
10982      # since it is defined as a macro on OSF/1.)
10983      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
10984        # The program links fine without libpthread. But it may actually
10985        # need to link with libpthread in order to create multiple threads.
10986        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10987$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10988if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
10989  $as_echo_n "(cached) " >&6
10990else
10991  ac_check_lib_save_LIBS=$LIBS
10992LIBS="-lpthread  $LIBS"
10993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994/* end confdefs.h.  */
10995
10996/* Override any GCC internal prototype to avoid an error.
10997   Use char because int might match the return type of a GCC
10998   builtin and then its argument prototype would still apply.  */
10999#ifdef __cplusplus
11000extern "C"
11001#endif
11002char pthread_kill ();
11003int
11004main ()
11005{
11006return pthread_kill ();
11007  ;
11008  return 0;
11009}
11010_ACEOF
11011if ac_fn_c_try_link "$LINENO"; then :
11012  ac_cv_lib_pthread_pthread_kill=yes
11013else
11014  ac_cv_lib_pthread_pthread_kill=no
11015fi
11016rm -f core conftest.err conftest.$ac_objext \
11017    conftest$ac_exeext conftest.$ac_ext
11018LIBS=$ac_check_lib_save_LIBS
11019fi
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11021$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11022if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
11023  LIBPMULTITHREAD=-lpthread
11024           # On Solaris and HP-UX, most pthread functions exist also in libc.
11025           # Therefore pthread_in_use() needs to actually try to create a
11026           # thread: pthread_create from libc will fail, whereas
11027           # pthread_create will actually create a thread.
11028           # On Solaris 10 or newer, this test is no longer needed, because
11029           # libc contains the fully functional pthread functions.
11030           case "$host_os" in
11031             solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
11032
11033$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
11034
11035           esac
11036
11037fi
11038
11039      elif test $gl_pthread_api != yes; then
11040        # Some library is needed. Try libpthread and libc_r.
11041        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11042$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11043if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
11044  $as_echo_n "(cached) " >&6
11045else
11046  ac_check_lib_save_LIBS=$LIBS
11047LIBS="-lpthread  $LIBS"
11048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049/* end confdefs.h.  */
11050
11051/* Override any GCC internal prototype to avoid an error.
11052   Use char because int might match the return type of a GCC
11053   builtin and then its argument prototype would still apply.  */
11054#ifdef __cplusplus
11055extern "C"
11056#endif
11057char pthread_kill ();
11058int
11059main ()
11060{
11061return pthread_kill ();
11062  ;
11063  return 0;
11064}
11065_ACEOF
11066if ac_fn_c_try_link "$LINENO"; then :
11067  ac_cv_lib_pthread_pthread_kill=yes
11068else
11069  ac_cv_lib_pthread_pthread_kill=no
11070fi
11071rm -f core conftest.err conftest.$ac_objext \
11072    conftest$ac_exeext conftest.$ac_ext
11073LIBS=$ac_check_lib_save_LIBS
11074fi
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11076$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11077if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
11078  gl_pthread_api=yes
11079           LIBPTHREAD=-lpthread
11080           LIBPMULTITHREAD=-lpthread
11081fi
11082
11083        if test $gl_pthread_api != yes; then
11084          # For FreeBSD 4.
11085          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
11086$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
11087if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
11088  $as_echo_n "(cached) " >&6
11089else
11090  ac_check_lib_save_LIBS=$LIBS
11091LIBS="-lc_r  $LIBS"
11092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093/* end confdefs.h.  */
11094
11095/* Override any GCC internal prototype to avoid an error.
11096   Use char because int might match the return type of a GCC
11097   builtin and then its argument prototype would still apply.  */
11098#ifdef __cplusplus
11099extern "C"
11100#endif
11101char pthread_kill ();
11102int
11103main ()
11104{
11105return pthread_kill ();
11106  ;
11107  return 0;
11108}
11109_ACEOF
11110if ac_fn_c_try_link "$LINENO"; then :
11111  ac_cv_lib_c_r_pthread_kill=yes
11112else
11113  ac_cv_lib_c_r_pthread_kill=no
11114fi
11115rm -f core conftest.err conftest.$ac_objext \
11116    conftest$ac_exeext conftest.$ac_ext
11117LIBS=$ac_check_lib_save_LIBS
11118fi
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
11120$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
11121if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
11122  gl_pthread_api=yes
11123             LIBPTHREAD=-lc_r
11124             LIBPMULTITHREAD=-lc_r
11125fi
11126
11127        fi
11128      fi
11129    fi
11130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
11131$as_echo_n "checking whether POSIX threads API is available... " >&6; }
11132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
11133$as_echo "$gl_pthread_api" >&6; }
11134
11135
11136    if test $gl_pthread_api = yes; then
11137
11138$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
11139
11140    fi
11141
11142        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143/* end confdefs.h.  */
11144#include <sched.h>
11145int
11146main ()
11147{
11148sched_yield ();
11149  ;
11150  return 0;
11151}
11152_ACEOF
11153if ac_fn_c_try_link "$LINENO"; then :
11154  LIB_SCHED_YIELD=
11155
11156else
11157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
11158$as_echo_n "checking for sched_yield in -lrt... " >&6; }
11159if ${ac_cv_lib_rt_sched_yield+:} false; then :
11160  $as_echo_n "(cached) " >&6
11161else
11162  ac_check_lib_save_LIBS=$LIBS
11163LIBS="-lrt  $LIBS"
11164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165/* end confdefs.h.  */
11166
11167/* Override any GCC internal prototype to avoid an error.
11168   Use char because int might match the return type of a GCC
11169   builtin and then its argument prototype would still apply.  */
11170#ifdef __cplusplus
11171extern "C"
11172#endif
11173char sched_yield ();
11174int
11175main ()
11176{
11177return sched_yield ();
11178  ;
11179  return 0;
11180}
11181_ACEOF
11182if ac_fn_c_try_link "$LINENO"; then :
11183  ac_cv_lib_rt_sched_yield=yes
11184else
11185  ac_cv_lib_rt_sched_yield=no
11186fi
11187rm -f core conftest.err conftest.$ac_objext \
11188    conftest$ac_exeext conftest.$ac_ext
11189LIBS=$ac_check_lib_save_LIBS
11190fi
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
11192$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
11193if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
11194  LIB_SCHED_YIELD=-lrt
11195else
11196            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
11197$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
11198if ${ac_cv_lib_posix4_sched_yield+:} false; then :
11199  $as_echo_n "(cached) " >&6
11200else
11201  ac_check_lib_save_LIBS=$LIBS
11202LIBS="-lposix4  $LIBS"
11203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204/* end confdefs.h.  */
11205
11206/* Override any GCC internal prototype to avoid an error.
11207   Use char because int might match the return type of a GCC
11208   builtin and then its argument prototype would still apply.  */
11209#ifdef __cplusplus
11210extern "C"
11211#endif
11212char sched_yield ();
11213int
11214main ()
11215{
11216return sched_yield ();
11217  ;
11218  return 0;
11219}
11220_ACEOF
11221if ac_fn_c_try_link "$LINENO"; then :
11222  ac_cv_lib_posix4_sched_yield=yes
11223else
11224  ac_cv_lib_posix4_sched_yield=no
11225fi
11226rm -f core conftest.err conftest.$ac_objext \
11227    conftest$ac_exeext conftest.$ac_ext
11228LIBS=$ac_check_lib_save_LIBS
11229fi
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
11231$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
11232if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
11233  LIB_SCHED_YIELD=-lposix4
11234fi
11235
11236fi
11237
11238
11239fi
11240rm -f core conftest.err conftest.$ac_objext \
11241    conftest$ac_exeext conftest.$ac_ext
11242
11243
11244    gl_pthreadlib_body_done=done
11245  fi
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
11256$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
11257if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
11258  $as_echo_n "(cached) " >&6
11259else
11260  case "$host_os" in
11261       # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
11262       *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
11263         gl_cv_func_setlocale_null_all_mtsafe=no ;;
11264       # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
11265       *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
11266         gl_cv_func_setlocale_null_all_mtsafe=yes ;;
11267       # If we don't know, obey --enable-cross-guesses.
11268       *)
11269         gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
11270     esac
11271
11272fi
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
11274$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
11275    case "$host_os" in
11276    mingw*) ;;
11277    *)
11278      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
11279        gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
11280      fi
11281      ;;
11282  esac
11283  case "$gl_cv_func_setlocale_null_all_mtsafe" in
11284    *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
11285    *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
11286  esac
11287
11288cat >>confdefs.h <<_ACEOF
11289#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
11290_ACEOF
11291
11292
11293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
11294$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
11295if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
11296  $as_echo_n "(cached) " >&6
11297else
11298  case "$host_os" in
11299       # Guess no on OpenBSD, AIX.
11300       openbsd* | aix*)
11301         gl_cv_func_setlocale_null_one_mtsafe=no ;;
11302       # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
11303       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
11304         gl_cv_func_setlocale_null_one_mtsafe=yes ;;
11305       # If we don't know, obey --enable-cross-guesses.
11306       *)
11307         gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
11308     esac
11309
11310fi
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
11312$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
11313    case "$host_os" in
11314    mingw*) ;;
11315    *)
11316      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
11317        gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
11318      fi
11319      ;;
11320  esac
11321  case "$gl_cv_func_setlocale_null_one_mtsafe" in
11322    *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
11323    *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
11324  esac
11325
11326cat >>confdefs.h <<_ACEOF
11327#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
11328_ACEOF
11329
11330
11331    if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
11332    case "$host_os" in
11333      mingw*) LIB_SETLOCALE_NULL= ;;
11334      *)
11335
11336
11337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
11338$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
11339if ${gl_cv_have_weak+:} false; then :
11340  $as_echo_n "(cached) " >&6
11341else
11342  gl_cv_have_weak=no
11343          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h.  */
11345extern void xyzzy ();
11346#pragma weak xyzzy
11347int
11348main ()
11349{
11350xyzzy();
11351  ;
11352  return 0;
11353}
11354_ACEOF
11355if ac_fn_c_try_link "$LINENO"; then :
11356  gl_cv_have_weak=maybe
11357fi
11358rm -f core conftest.err conftest.$ac_objext \
11359    conftest$ac_exeext conftest.$ac_ext
11360     if test $gl_cv_have_weak = maybe; then
11361                     if test "$cross_compiling" = yes; then :
11362                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363/* end confdefs.h.  */
11364#ifdef __ELF__
11365             Extensible Linking Format
11366             #endif
11367
11368_ACEOF
11369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11370  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
11371  gl_cv_have_weak="guessing yes"
11372else
11373  gl_cv_have_weak="guessing no"
11374fi
11375rm -f conftest*
11376
11377
11378else
11379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380/* end confdefs.h.  */
11381
11382#include <stdio.h>
11383#pragma weak fputs
11384int main ()
11385{
11386  return (fputs == NULL);
11387}
11388_ACEOF
11389if ac_fn_c_try_run "$LINENO"; then :
11390  gl_cv_have_weak=yes
11391else
11392  gl_cv_have_weak=no
11393fi
11394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11395  conftest.$ac_objext conftest.beam conftest.$ac_ext
11396fi
11397
11398     fi
11399          case " $LDFLAGS " in
11400       *" -static "*) gl_cv_have_weak=no ;;
11401     esac
11402                    case "$gl_cv_have_weak" in
11403       *yes)
11404         case "$host_os" in
11405           freebsd* | dragonfly*)
11406             : > conftest1.c
11407             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
11408             cat <<EOF > conftest2.c
11409#include <pthread.h>
11410#pragma weak pthread_mutexattr_gettype
11411int main ()
11412{
11413  return (pthread_mutexattr_gettype != NULL);
11414}
11415EOF
11416             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
11417               || gl_cv_have_weak=no
11418             rm -f conftest1.c libempty.so conftest2.c conftest
11419             ;;
11420         esac
11421         ;;
11422     esac
11423
11424fi
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
11426$as_echo "$gl_cv_have_weak" >&6; }
11427  case "$gl_cv_have_weak" in
11428    *yes)
11429
11430$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
11431
11432      ;;
11433  esac
11434
11435        case "$gl_cv_have_weak" in
11436          *yes) LIB_SETLOCALE_NULL= ;;
11437          *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
11438        esac
11439        ;;
11440    esac
11441  else
11442    LIB_SETLOCALE_NULL=
11443  fi
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458     if test $gl_cv_have_include_next = yes; then
11459       gl_cv_next_limits_h='<'limits.h'>'
11460     else
11461       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
11462$as_echo_n "checking absolute name of <limits.h>... " >&6; }
11463if ${gl_cv_next_limits_h+:} false; then :
11464  $as_echo_n "(cached) " >&6
11465else
11466
11467             if test $ac_cv_header_limits_h = yes; then
11468
11469
11470
11471
11472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473/* end confdefs.h.  */
11474#include <limits.h>
11475_ACEOF
11476                case "$host_os" in
11477    aix*) gl_absname_cpp="$ac_cpp -C" ;;
11478    *)    gl_absname_cpp="$ac_cpp" ;;
11479  esac
11480
11481  case "$host_os" in
11482    mingw*)
11483                                          gl_dirsep_regex='[/\\]'
11484      ;;
11485    *)
11486      gl_dirsep_regex='\/'
11487      ;;
11488  esac
11489      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11490  gl_header_literal_regex=`echo 'limits.h' \
11491                           | sed -e "$gl_make_literal_regex_sed"`
11492  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11493      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11494      s|^/[^/]|//&|
11495      p
11496      q
11497    }'
11498
11499        gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11500  sed -n "$gl_absolute_header_sed"`
11501
11502           gl_header=$gl_cv_absolute_limits_h
11503           gl_cv_next_limits_h='"'$gl_header'"'
11504          else
11505               gl_cv_next_limits_h='<'limits.h'>'
11506             fi
11507
11508
11509fi
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
11511$as_echo "$gl_cv_next_limits_h" >&6; }
11512     fi
11513     NEXT_LIMITS_H=$gl_cv_next_limits_h
11514
11515     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11516       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11517       gl_next_as_first_directive='<'limits.h'>'
11518     else
11519       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11520       gl_next_as_first_directive=$gl_cv_next_limits_h
11521     fi
11522     NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
11523
11524
11525
11526
11527
11528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
11529$as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
11530if ${gl_cv_header_limits_width+:} false; then :
11531  $as_echo_n "(cached) " >&6
11532else
11533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h.  */
11535#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11536             #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11537            #endif
11538            #include <limits.h>
11539            long long llm = LLONG_MAX;
11540            int wb = WORD_BIT;
11541            int ullw = ULLONG_WIDTH;
11542
11543int
11544main ()
11545{
11546
11547  ;
11548  return 0;
11549}
11550_ACEOF
11551if ac_fn_c_try_compile "$LINENO"; then :
11552  gl_cv_header_limits_width=yes
11553else
11554  gl_cv_header_limits_width=no
11555fi
11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
11559$as_echo "$gl_cv_header_limits_width" >&6; }
11560  if test "$gl_cv_header_limits_width" = yes; then
11561    LIMITS_H=
11562  else
11563    LIMITS_H=limits.h
11564  fi
11565
11566   if test -n "$LIMITS_H"; then
11567  GL_GENERATE_LIMITS_H_TRUE=
11568  GL_GENERATE_LIMITS_H_FALSE='#'
11569else
11570  GL_GENERATE_LIMITS_H_TRUE='#'
11571  GL_GENERATE_LIMITS_H_FALSE=
11572fi
11573
11574
11575
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11577$as_echo_n "checking for wint_t... " >&6; }
11578if ${gt_cv_c_wint_t+:} false; then :
11579  $as_echo_n "(cached) " >&6
11580else
11581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582/* end confdefs.h.  */
11583
11584/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11585   <wchar.h>.
11586   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11587   before <wchar.h>.  */
11588#include <stddef.h>
11589#include <stdio.h>
11590#include <time.h>
11591#include <wchar.h>
11592            wint_t foo = (wchar_t)'\0';
11593int
11594main ()
11595{
11596
11597  ;
11598  return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_compile "$LINENO"; then :
11602  gt_cv_c_wint_t=yes
11603else
11604  gt_cv_c_wint_t=no
11605fi
11606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607fi
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11609$as_echo "$gt_cv_c_wint_t" >&6; }
11610  if test $gt_cv_c_wint_t = yes; then
11611
11612$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11613
11614
11615            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
11616$as_echo_n "checking whether wint_t is too small... " >&6; }
11617if ${gl_cv_type_wint_t_too_small+:} false; then :
11618  $as_echo_n "(cached) " >&6
11619else
11620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621/* end confdefs.h.  */
11622
11623/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11624   <wchar.h>.
11625   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11626   included before <wchar.h>.  */
11627#if !(defined __GLIBC__ && !defined __UCLIBC__)
11628# include <stddef.h>
11629# include <stdio.h>
11630# include <time.h>
11631#endif
11632#include <wchar.h>
11633              int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
11634
11635int
11636main ()
11637{
11638
11639  ;
11640  return 0;
11641}
11642_ACEOF
11643if ac_fn_c_try_compile "$LINENO"; then :
11644  gl_cv_type_wint_t_too_small=no
11645else
11646  gl_cv_type_wint_t_too_small=yes
11647fi
11648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649fi
11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
11651$as_echo "$gl_cv_type_wint_t_too_small" >&6; }
11652    if test $gl_cv_type_wint_t_too_small = yes; then
11653      GNULIB_OVERRIDES_WINT_T=1
11654    else
11655      GNULIB_OVERRIDES_WINT_T=0
11656    fi
11657  else
11658    GNULIB_OVERRIDES_WINT_T=0
11659  fi
11660
11661
11662
11663
11664
11665    gl_cv_c_multiarch=no
11666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667/* end confdefs.h.  */
11668#ifndef __APPLE_CC__
11669         not a universal capable compiler
11670        #endif
11671        typedef int dummy;
11672
11673_ACEOF
11674if ac_fn_c_try_compile "$LINENO"; then :
11675
11676               arch=
11677     prev=
11678     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11679       if test -n "$prev"; then
11680         case $word in
11681           i?86 | x86_64 | ppc | ppc64)
11682             if test -z "$arch" || test "$arch" = "$word"; then
11683               arch="$word"
11684             else
11685               gl_cv_c_multiarch=yes
11686             fi
11687             ;;
11688         esac
11689         prev=
11690       else
11691         if test "x$word" = "x-arch"; then
11692           prev=arch
11693         fi
11694       fi
11695     done
11696
11697fi
11698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699  if test $gl_cv_c_multiarch = yes; then
11700    APPLE_UNIVERSAL_BUILD=1
11701  else
11702    APPLE_UNIVERSAL_BUILD=0
11703  fi
11704
11705
11706
11707
11708
11709
11710
11711
11712$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11713
11714
11715$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11716
11717
11718
11719  if test $ac_cv_header_wchar_h = yes; then
11720    HAVE_WCHAR_H=1
11721  else
11722    HAVE_WCHAR_H=0
11723  fi
11724
11725
11726      if test $ac_cv_header_inttypes_h = yes; then
11727    HAVE_INTTYPES_H=1
11728  else
11729    HAVE_INTTYPES_H=0
11730  fi
11731
11732
11733      if test $ac_cv_header_sys_types_h = yes; then
11734    HAVE_SYS_TYPES_H=1
11735  else
11736    HAVE_SYS_TYPES_H=0
11737  fi
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749     if test $gl_cv_have_include_next = yes; then
11750       gl_cv_next_stdint_h='<'stdint.h'>'
11751     else
11752       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
11753$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
11754if ${gl_cv_next_stdint_h+:} false; then :
11755  $as_echo_n "(cached) " >&6
11756else
11757
11758             if test $ac_cv_header_stdint_h = yes; then
11759
11760
11761
11762
11763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764/* end confdefs.h.  */
11765#include <stdint.h>
11766_ACEOF
11767                case "$host_os" in
11768    aix*) gl_absname_cpp="$ac_cpp -C" ;;
11769    *)    gl_absname_cpp="$ac_cpp" ;;
11770  esac
11771
11772  case "$host_os" in
11773    mingw*)
11774                                          gl_dirsep_regex='[/\\]'
11775      ;;
11776    *)
11777      gl_dirsep_regex='\/'
11778      ;;
11779  esac
11780      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11781  gl_header_literal_regex=`echo 'stdint.h' \
11782                           | sed -e "$gl_make_literal_regex_sed"`
11783  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11784      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11785      s|^/[^/]|//&|
11786      p
11787      q
11788    }'
11789
11790        gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11791  sed -n "$gl_absolute_header_sed"`
11792
11793           gl_header=$gl_cv_absolute_stdint_h
11794           gl_cv_next_stdint_h='"'$gl_header'"'
11795          else
11796               gl_cv_next_stdint_h='<'stdint.h'>'
11797             fi
11798
11799
11800fi
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
11802$as_echo "$gl_cv_next_stdint_h" >&6; }
11803     fi
11804     NEXT_STDINT_H=$gl_cv_next_stdint_h
11805
11806     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11807       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11808       gl_next_as_first_directive='<'stdint.h'>'
11809     else
11810       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11811       gl_next_as_first_directive=$gl_cv_next_stdint_h
11812     fi
11813     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
11814
11815
11816
11817
11818  if test $ac_cv_header_stdint_h = yes; then
11819    HAVE_STDINT_H=1
11820  else
11821    HAVE_STDINT_H=0
11822  fi
11823
11824
11825    if test $ac_cv_header_stdint_h = yes; then
11826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
11827$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
11828if ${gl_cv_header_working_stdint_h+:} false; then :
11829  $as_echo_n "(cached) " >&6
11830else
11831  gl_cv_header_working_stdint_h=no
11832       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833/* end confdefs.h.  */
11834
11835
11836#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11837#define __STDC_CONSTANT_MACROS 1
11838#define __STDC_LIMIT_MACROS 1
11839#include <stdint.h>
11840/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
11841#if !(defined WCHAR_MIN && defined WCHAR_MAX)
11842#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
11843#endif
11844
11845
11846  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11847     included before <wchar.h>.  */
11848  #include <stddef.h>
11849  #include <signal.h>
11850  #if HAVE_WCHAR_H
11851  # include <stdio.h>
11852  # include <time.h>
11853  # include <wchar.h>
11854  #endif
11855
11856
11857#ifdef INT8_MAX
11858int8_t a1 = INT8_MAX;
11859int8_t a1min = INT8_MIN;
11860#endif
11861#ifdef INT16_MAX
11862int16_t a2 = INT16_MAX;
11863int16_t a2min = INT16_MIN;
11864#endif
11865#ifdef INT32_MAX
11866int32_t a3 = INT32_MAX;
11867int32_t a3min = INT32_MIN;
11868#endif
11869#ifdef INT64_MAX
11870int64_t a4 = INT64_MAX;
11871int64_t a4min = INT64_MIN;
11872#endif
11873#ifdef UINT8_MAX
11874uint8_t b1 = UINT8_MAX;
11875#else
11876typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
11877#endif
11878#ifdef UINT16_MAX
11879uint16_t b2 = UINT16_MAX;
11880#endif
11881#ifdef UINT32_MAX
11882uint32_t b3 = UINT32_MAX;
11883#endif
11884#ifdef UINT64_MAX
11885uint64_t b4 = UINT64_MAX;
11886#endif
11887int_least8_t c1 = INT8_C (0x7f);
11888int_least8_t c1max = INT_LEAST8_MAX;
11889int_least8_t c1min = INT_LEAST8_MIN;
11890int_least16_t c2 = INT16_C (0x7fff);
11891int_least16_t c2max = INT_LEAST16_MAX;
11892int_least16_t c2min = INT_LEAST16_MIN;
11893int_least32_t c3 = INT32_C (0x7fffffff);
11894int_least32_t c3max = INT_LEAST32_MAX;
11895int_least32_t c3min = INT_LEAST32_MIN;
11896int_least64_t c4 = INT64_C (0x7fffffffffffffff);
11897int_least64_t c4max = INT_LEAST64_MAX;
11898int_least64_t c4min = INT_LEAST64_MIN;
11899uint_least8_t d1 = UINT8_C (0xff);
11900uint_least8_t d1max = UINT_LEAST8_MAX;
11901uint_least16_t d2 = UINT16_C (0xffff);
11902uint_least16_t d2max = UINT_LEAST16_MAX;
11903uint_least32_t d3 = UINT32_C (0xffffffff);
11904uint_least32_t d3max = UINT_LEAST32_MAX;
11905uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
11906uint_least64_t d4max = UINT_LEAST64_MAX;
11907int_fast8_t e1 = INT_FAST8_MAX;
11908int_fast8_t e1min = INT_FAST8_MIN;
11909int_fast16_t e2 = INT_FAST16_MAX;
11910int_fast16_t e2min = INT_FAST16_MIN;
11911int_fast32_t e3 = INT_FAST32_MAX;
11912int_fast32_t e3min = INT_FAST32_MIN;
11913int_fast64_t e4 = INT_FAST64_MAX;
11914int_fast64_t e4min = INT_FAST64_MIN;
11915uint_fast8_t f1 = UINT_FAST8_MAX;
11916uint_fast16_t f2 = UINT_FAST16_MAX;
11917uint_fast32_t f3 = UINT_FAST32_MAX;
11918uint_fast64_t f4 = UINT_FAST64_MAX;
11919#ifdef INTPTR_MAX
11920intptr_t g = INTPTR_MAX;
11921intptr_t gmin = INTPTR_MIN;
11922#endif
11923#ifdef UINTPTR_MAX
11924uintptr_t h = UINTPTR_MAX;
11925#endif
11926intmax_t i = INTMAX_MAX;
11927uintmax_t j = UINTMAX_MAX;
11928
11929/* Check that SIZE_MAX has the correct type, if possible.  */
11930#if 201112 <= __STDC_VERSION__
11931int k = _Generic (SIZE_MAX, size_t: 0);
11932#elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
11933       || (0x5110 <= __SUNPRO_C && !__STDC__))
11934extern size_t k;
11935extern __typeof__ (SIZE_MAX) k;
11936#endif
11937
11938#include <limits.h> /* for CHAR_BIT */
11939#define TYPE_MINIMUM(t) \
11940  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11941#define TYPE_MAXIMUM(t) \
11942  ((t) ((t) 0 < (t) -1 \
11943        ? (t) -1 \
11944        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11945struct s {
11946  int check_PTRDIFF:
11947      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11948      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11949      ? 1 : -1;
11950  /* Detect bug in FreeBSD 6.0 / ia64.  */
11951  int check_SIG_ATOMIC:
11952      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11953      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11954      ? 1 : -1;
11955  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11956  int check_WCHAR:
11957      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11958      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11959      ? 1 : -1;
11960  /* Detect bug in mingw.  */
11961  int check_WINT:
11962      WINT_MIN == TYPE_MINIMUM (wint_t)
11963      && WINT_MAX == TYPE_MAXIMUM (wint_t)
11964      ? 1 : -1;
11965
11966  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
11967  int check_UINT8_C:
11968        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11969  int check_UINT16_C:
11970        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11971
11972  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
11973#ifdef UINT8_MAX
11974  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11975#endif
11976#ifdef UINT16_MAX
11977  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11978#endif
11979#ifdef UINT32_MAX
11980  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11981#endif
11982#ifdef UINT64_MAX
11983  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11984#endif
11985  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11986  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11987  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11988  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11989  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11990  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11991  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11992  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11993  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11994  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11995  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11996};
11997
11998int
11999main ()
12000{
12001
12002  ;
12003  return 0;
12004}
12005_ACEOF
12006if ac_fn_c_try_compile "$LINENO"; then :
12007                                                    if test "$cross_compiling" = yes; then :
12008  case "$host_os" in
12009                         # Guess yes on native Windows.
12010                 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
12011                         # In general, assume it works.
12012                 *)      gl_cv_header_working_stdint_h="guessing yes" ;;
12013               esac
12014
12015else
12016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017/* end confdefs.h.  */
12018
12019
12020#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12021#define __STDC_CONSTANT_MACROS 1
12022#define __STDC_LIMIT_MACROS 1
12023#include <stdint.h>
12024
12025
12026  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12027     included before <wchar.h>.  */
12028  #include <stddef.h>
12029  #include <signal.h>
12030  #if HAVE_WCHAR_H
12031  # include <stdio.h>
12032  # include <time.h>
12033  # include <wchar.h>
12034  #endif
12035
12036
12037#include <stdio.h>
12038#include <string.h>
12039#define MVAL(macro) MVAL1(macro)
12040#define MVAL1(expression) #expression
12041static const char *macro_values[] =
12042  {
12043#ifdef INT8_MAX
12044    MVAL (INT8_MAX),
12045#endif
12046#ifdef INT16_MAX
12047    MVAL (INT16_MAX),
12048#endif
12049#ifdef INT32_MAX
12050    MVAL (INT32_MAX),
12051#endif
12052#ifdef INT64_MAX
12053    MVAL (INT64_MAX),
12054#endif
12055#ifdef UINT8_MAX
12056    MVAL (UINT8_MAX),
12057#endif
12058#ifdef UINT16_MAX
12059    MVAL (UINT16_MAX),
12060#endif
12061#ifdef UINT32_MAX
12062    MVAL (UINT32_MAX),
12063#endif
12064#ifdef UINT64_MAX
12065    MVAL (UINT64_MAX),
12066#endif
12067    NULL
12068  };
12069
12070int
12071main ()
12072{
12073
12074  const char **mv;
12075  for (mv = macro_values; *mv != NULL; mv++)
12076    {
12077      const char *value = *mv;
12078      /* Test whether it looks like a cast expression.  */
12079      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12080          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12081          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12082          || strncmp (value, "((int)"/*)*/, 6) == 0
12083          || strncmp (value, "((signed short)"/*)*/, 15) == 0
12084          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12085        return mv - macro_values + 1;
12086    }
12087  return 0;
12088
12089  ;
12090  return 0;
12091}
12092_ACEOF
12093if ac_fn_c_try_run "$LINENO"; then :
12094  gl_cv_header_working_stdint_h=yes
12095fi
12096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12097  conftest.$ac_objext conftest.beam conftest.$ac_ext
12098fi
12099
12100
12101fi
12102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103
12104fi
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12106$as_echo "$gl_cv_header_working_stdint_h" >&6; }
12107  fi
12108
12109  HAVE_C99_STDINT_H=0
12110  HAVE_SYS_BITYPES_H=0
12111  HAVE_SYS_INTTYPES_H=0
12112  STDINT_H=stdint.h
12113  case "$gl_cv_header_working_stdint_h" in
12114    *yes)
12115      HAVE_C99_STDINT_H=1
12116                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
12117$as_echo_n "checking whether stdint.h predates C++11... " >&6; }
12118if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
12119  $as_echo_n "(cached) " >&6
12120else
12121  gl_cv_header_stdint_predates_cxx11_h=yes
12122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h.  */
12124
12125
12126#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12127#include <stdint.h>
12128
12129
12130  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12131     included before <wchar.h>.  */
12132  #include <stddef.h>
12133  #include <signal.h>
12134  #if HAVE_WCHAR_H
12135  # include <stdio.h>
12136  # include <time.h>
12137  # include <wchar.h>
12138  #endif
12139
12140
12141intmax_t im = INTMAX_MAX;
12142int32_t i32 = INT32_C (0x7fffffff);
12143
12144int
12145main ()
12146{
12147
12148  ;
12149  return 0;
12150}
12151_ACEOF
12152if ac_fn_c_try_compile "$LINENO"; then :
12153  gl_cv_header_stdint_predates_cxx11_h=no
12154fi
12155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156fi
12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
12158$as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
12159
12160      if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
12161
12162$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12163
12164
12165$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12166
12167      fi
12168      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12169$as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12170if ${gl_cv_header_stdint_width+:} false; then :
12171  $as_echo_n "(cached) " >&6
12172else
12173  gl_cv_header_stdint_width=no
12174         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175/* end confdefs.h.  */
12176
12177              /* Work if build is not clean.  */
12178              #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12179              #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12180               #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12181              #endif
12182              #include <stdint.h>
12183
12184  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12185     included before <wchar.h>.  */
12186  #include <stddef.h>
12187  #include <signal.h>
12188  #if HAVE_WCHAR_H
12189  # include <stdio.h>
12190  # include <time.h>
12191  # include <wchar.h>
12192  #endif
12193
12194              int iw = UINTMAX_WIDTH;
12195
12196int
12197main ()
12198{
12199
12200  ;
12201  return 0;
12202}
12203_ACEOF
12204if ac_fn_c_try_compile "$LINENO"; then :
12205  gl_cv_header_stdint_width=yes
12206fi
12207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208fi
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12210$as_echo "$gl_cv_header_stdint_width" >&6; }
12211      if test "$gl_cv_header_stdint_width" = yes; then
12212        STDINT_H=
12213      fi
12214      ;;
12215    *)
12216                  for ac_header in sys/inttypes.h sys/bitypes.h
12217do :
12218  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12220if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12221  cat >>confdefs.h <<_ACEOF
12222#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12223_ACEOF
12224
12225fi
12226
12227done
12228
12229      if test $ac_cv_header_sys_inttypes_h = yes; then
12230        HAVE_SYS_INTTYPES_H=1
12231      fi
12232      if test $ac_cv_header_sys_bitypes_h = yes; then
12233        HAVE_SYS_BITYPES_H=1
12234      fi
12235
12236
12237  if test $APPLE_UNIVERSAL_BUILD = 0; then
12238
12239
12240  for gltype in ptrdiff_t size_t ; do
12241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12242$as_echo_n "checking for bit size of $gltype... " >&6; }
12243if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
12244  $as_echo_n "(cached) " >&6
12245else
12246  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
12247  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12248     included before <wchar.h>.  */
12249  #include <stddef.h>
12250  #include <signal.h>
12251  #if HAVE_WCHAR_H
12252  # include <stdio.h>
12253  # include <time.h>
12254  # include <wchar.h>
12255  #endif
12256
12257#include <limits.h>"; then :
12258
12259else
12260  result=unknown
12261fi
12262
12263       eval gl_cv_bitsizeof_${gltype}=\$result
12264
12265fi
12266eval ac_res=\$gl_cv_bitsizeof_${gltype}
12267	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12268$as_echo "$ac_res" >&6; }
12269    eval result=\$gl_cv_bitsizeof_${gltype}
12270    if test $result = unknown; then
12271                                                result=0
12272    fi
12273    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12274    cat >>confdefs.h <<_ACEOF
12275#define BITSIZEOF_${GLTYPE} $result
12276_ACEOF
12277
12278    eval BITSIZEOF_${GLTYPE}=\$result
12279  done
12280
12281
12282  fi
12283
12284
12285  for gltype in sig_atomic_t wchar_t wint_t ; do
12286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12287$as_echo_n "checking for bit size of $gltype... " >&6; }
12288if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
12289  $as_echo_n "(cached) " >&6
12290else
12291  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
12292  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12293     included before <wchar.h>.  */
12294  #include <stddef.h>
12295  #include <signal.h>
12296  #if HAVE_WCHAR_H
12297  # include <stdio.h>
12298  # include <time.h>
12299  # include <wchar.h>
12300  #endif
12301
12302#include <limits.h>"; then :
12303
12304else
12305  result=unknown
12306fi
12307
12308       eval gl_cv_bitsizeof_${gltype}=\$result
12309
12310fi
12311eval ac_res=\$gl_cv_bitsizeof_${gltype}
12312	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12313$as_echo "$ac_res" >&6; }
12314    eval result=\$gl_cv_bitsizeof_${gltype}
12315    if test $result = unknown; then
12316                                                result=0
12317    fi
12318    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12319    cat >>confdefs.h <<_ACEOF
12320#define BITSIZEOF_${GLTYPE} $result
12321_ACEOF
12322
12323    eval BITSIZEOF_${GLTYPE}=\$result
12324  done
12325
12326
12327
12328
12329  for gltype in sig_atomic_t wchar_t wint_t ; do
12330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12331$as_echo_n "checking whether $gltype is signed... " >&6; }
12332if eval \${gl_cv_type_${gltype}_signed+:} false; then :
12333  $as_echo_n "(cached) " >&6
12334else
12335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h.  */
12337
12338  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12339     included before <wchar.h>.  */
12340  #include <stddef.h>
12341  #include <signal.h>
12342  #if HAVE_WCHAR_H
12343  # include <stdio.h>
12344  # include <time.h>
12345  # include <wchar.h>
12346  #endif
12347
12348            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12349int
12350main ()
12351{
12352
12353  ;
12354  return 0;
12355}
12356_ACEOF
12357if ac_fn_c_try_compile "$LINENO"; then :
12358  result=yes
12359else
12360  result=no
12361fi
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363       eval gl_cv_type_${gltype}_signed=\$result
12364
12365fi
12366eval ac_res=\$gl_cv_type_${gltype}_signed
12367	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12368$as_echo "$ac_res" >&6; }
12369    eval result=\$gl_cv_type_${gltype}_signed
12370    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12371    if test "$result" = yes; then
12372      cat >>confdefs.h <<_ACEOF
12373#define HAVE_SIGNED_${GLTYPE} 1
12374_ACEOF
12375
12376      eval HAVE_SIGNED_${GLTYPE}=1
12377    else
12378      eval HAVE_SIGNED_${GLTYPE}=0
12379    fi
12380  done
12381
12382
12383  gl_cv_type_ptrdiff_t_signed=yes
12384  gl_cv_type_size_t_signed=no
12385  if test $APPLE_UNIVERSAL_BUILD = 0; then
12386
12387
12388  for gltype in ptrdiff_t size_t ; do
12389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12390$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12391if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
12392  $as_echo_n "(cached) " >&6
12393else
12394  eval gl_cv_type_${gltype}_suffix=no
12395       eval result=\$gl_cv_type_${gltype}_signed
12396       if test "$result" = yes; then
12397         glsufu=
12398       else
12399         glsufu=u
12400       fi
12401       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12402         case $glsuf in
12403           '')  gltype1='int';;
12404           l)   gltype1='long int';;
12405           ll)  gltype1='long long int';;
12406           i64) gltype1='__int64';;
12407           u)   gltype1='unsigned int';;
12408           ul)  gltype1='unsigned long int';;
12409           ull) gltype1='unsigned long long int';;
12410           ui64)gltype1='unsigned __int64';;
12411         esac
12412         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h.  */
12414
12415  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12416     included before <wchar.h>.  */
12417  #include <stddef.h>
12418  #include <signal.h>
12419  #if HAVE_WCHAR_H
12420  # include <stdio.h>
12421  # include <time.h>
12422  # include <wchar.h>
12423  #endif
12424
12425              extern $gltype foo;
12426              extern $gltype1 foo;
12427int
12428main ()
12429{
12430
12431  ;
12432  return 0;
12433}
12434_ACEOF
12435if ac_fn_c_try_compile "$LINENO"; then :
12436  eval gl_cv_type_${gltype}_suffix=\$glsuf
12437fi
12438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439         eval result=\$gl_cv_type_${gltype}_suffix
12440         test "$result" != no && break
12441       done
12442fi
12443eval ac_res=\$gl_cv_type_${gltype}_suffix
12444	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12445$as_echo "$ac_res" >&6; }
12446    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12447    eval result=\$gl_cv_type_${gltype}_suffix
12448    test "$result" = no && result=
12449    eval ${GLTYPE}_SUFFIX=\$result
12450    cat >>confdefs.h <<_ACEOF
12451#define ${GLTYPE}_SUFFIX $result
12452_ACEOF
12453
12454  done
12455
12456
12457  fi
12458
12459
12460  for gltype in sig_atomic_t wchar_t wint_t ; do
12461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12462$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12463if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
12464  $as_echo_n "(cached) " >&6
12465else
12466  eval gl_cv_type_${gltype}_suffix=no
12467       eval result=\$gl_cv_type_${gltype}_signed
12468       if test "$result" = yes; then
12469         glsufu=
12470       else
12471         glsufu=u
12472       fi
12473       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12474         case $glsuf in
12475           '')  gltype1='int';;
12476           l)   gltype1='long int';;
12477           ll)  gltype1='long long int';;
12478           i64) gltype1='__int64';;
12479           u)   gltype1='unsigned int';;
12480           ul)  gltype1='unsigned long int';;
12481           ull) gltype1='unsigned long long int';;
12482           ui64)gltype1='unsigned __int64';;
12483         esac
12484         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485/* end confdefs.h.  */
12486
12487  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12488     included before <wchar.h>.  */
12489  #include <stddef.h>
12490  #include <signal.h>
12491  #if HAVE_WCHAR_H
12492  # include <stdio.h>
12493  # include <time.h>
12494  # include <wchar.h>
12495  #endif
12496
12497              extern $gltype foo;
12498              extern $gltype1 foo;
12499int
12500main ()
12501{
12502
12503  ;
12504  return 0;
12505}
12506_ACEOF
12507if ac_fn_c_try_compile "$LINENO"; then :
12508  eval gl_cv_type_${gltype}_suffix=\$glsuf
12509fi
12510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12511         eval result=\$gl_cv_type_${gltype}_suffix
12512         test "$result" != no && break
12513       done
12514fi
12515eval ac_res=\$gl_cv_type_${gltype}_suffix
12516	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12517$as_echo "$ac_res" >&6; }
12518    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12519    eval result=\$gl_cv_type_${gltype}_suffix
12520    test "$result" = no && result=
12521    eval ${GLTYPE}_SUFFIX=\$result
12522    cat >>confdefs.h <<_ACEOF
12523#define ${GLTYPE}_SUFFIX $result
12524_ACEOF
12525
12526  done
12527
12528
12529
12530          if test $GNULIB_OVERRIDES_WINT_T = 1; then
12531    BITSIZEOF_WINT_T=32
12532  fi
12533
12534      ;;
12535  esac
12536
12537
12538
12539  LIMITS_H='limits.h'
12540   if test -n "$LIMITS_H"; then
12541  GL_GENERATE_LIMITS_H_TRUE=
12542  GL_GENERATE_LIMITS_H_FALSE='#'
12543else
12544  GL_GENERATE_LIMITS_H_TRUE='#'
12545  GL_GENERATE_LIMITS_H_FALSE=
12546fi
12547
12548
12549
12550
12551
12552
12553
12554   if test -n "$STDINT_H"; then
12555  GL_GENERATE_STDINT_H_TRUE=
12556  GL_GENERATE_STDINT_H_FALSE='#'
12557else
12558  GL_GENERATE_STDINT_H_TRUE='#'
12559  GL_GENERATE_STDINT_H_FALSE=
12560fi
12561
12562
12563
12564
12565
12566  GNULIB_IMAXABS=0;
12567  GNULIB_IMAXDIV=0;
12568  GNULIB_STRTOIMAX=0;
12569  GNULIB_STRTOUMAX=0;
12570    HAVE_DECL_IMAXABS=1;
12571  HAVE_DECL_IMAXDIV=1;
12572  HAVE_DECL_STRTOIMAX=1;
12573  HAVE_DECL_STRTOUMAX=1;
12574  HAVE_IMAXDIV_T=1;
12575  REPLACE_STRTOIMAX=0;
12576  REPLACE_STRTOUMAX=0;
12577  INT32_MAX_LT_INTMAX_MAX=1;
12578  INT64_MAX_EQ_LONG_MAX='defined _LP64';
12579  PRI_MACROS_BROKEN=0;
12580  PRIPTR_PREFIX=__PRIPTR_PREFIX;
12581  UINT32_MAX_LT_UINTMAX_MAX=1;
12582  UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598     if test $gl_cv_have_include_next = yes; then
12599       gl_cv_next_inttypes_h='<'inttypes.h'>'
12600     else
12601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
12602$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
12603if ${gl_cv_next_inttypes_h+:} false; then :
12604  $as_echo_n "(cached) " >&6
12605else
12606
12607             if test $ac_cv_header_inttypes_h = yes; then
12608
12609
12610
12611
12612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613/* end confdefs.h.  */
12614#include <inttypes.h>
12615_ACEOF
12616                case "$host_os" in
12617    aix*) gl_absname_cpp="$ac_cpp -C" ;;
12618    *)    gl_absname_cpp="$ac_cpp" ;;
12619  esac
12620
12621  case "$host_os" in
12622    mingw*)
12623                                          gl_dirsep_regex='[/\\]'
12624      ;;
12625    *)
12626      gl_dirsep_regex='\/'
12627      ;;
12628  esac
12629      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12630  gl_header_literal_regex=`echo 'inttypes.h' \
12631                           | sed -e "$gl_make_literal_regex_sed"`
12632  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12633      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12634      s|^/[^/]|//&|
12635      p
12636      q
12637    }'
12638
12639        gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12640  sed -n "$gl_absolute_header_sed"`
12641
12642           gl_header=$gl_cv_absolute_inttypes_h
12643           gl_cv_next_inttypes_h='"'$gl_header'"'
12644          else
12645               gl_cv_next_inttypes_h='<'inttypes.h'>'
12646             fi
12647
12648
12649fi
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
12651$as_echo "$gl_cv_next_inttypes_h" >&6; }
12652     fi
12653     NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
12654
12655     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12656       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12657       gl_next_as_first_directive='<'inttypes.h'>'
12658     else
12659       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12660       gl_next_as_first_directive=$gl_cv_next_inttypes_h
12661     fi
12662     NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678  case "$host_os" in
12679    mingw*)
12680                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
12681$as_echo_n "checking for 64-bit off_t... " >&6; }
12682if ${gl_cv_type_off_t_64+:} false; then :
12683  $as_echo_n "(cached) " >&6
12684else
12685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686/* end confdefs.h.  */
12687#include <sys/types.h>
12688                int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
12689
12690int
12691main ()
12692{
12693
12694  ;
12695  return 0;
12696}
12697_ACEOF
12698if ac_fn_c_try_compile "$LINENO"; then :
12699  gl_cv_type_off_t_64=yes
12700else
12701  gl_cv_type_off_t_64=no
12702fi
12703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704
12705fi
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
12707$as_echo "$gl_cv_type_off_t_64" >&6; }
12708      if test $gl_cv_type_off_t_64 = no; then
12709        WINDOWS_64_BIT_OFF_T=1
12710      else
12711        WINDOWS_64_BIT_OFF_T=0
12712      fi
12713                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
12714$as_echo_n "checking for 64-bit st_size... " >&6; }
12715if ${gl_cv_member_st_size_64+:} false; then :
12716  $as_echo_n "(cached) " >&6
12717else
12718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719/* end confdefs.h.  */
12720#include <sys/types.h>
12721                struct stat buf;
12722                int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
12723
12724int
12725main ()
12726{
12727
12728  ;
12729  return 0;
12730}
12731_ACEOF
12732if ac_fn_c_try_compile "$LINENO"; then :
12733  gl_cv_member_st_size_64=yes
12734else
12735  gl_cv_member_st_size_64=no
12736fi
12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
12741$as_echo "$gl_cv_member_st_size_64" >&6; }
12742      if test $gl_cv_member_st_size_64 = no; then
12743        WINDOWS_64_BIT_ST_SIZE=1
12744      else
12745        WINDOWS_64_BIT_ST_SIZE=0
12746      fi
12747      ;;
12748    *)
12749                                                      WINDOWS_64_BIT_OFF_T=0
12750      WINDOWS_64_BIT_ST_SIZE=0
12751      ;;
12752  esac
12753
12754
12755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12756$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12757if ${am_cv_langinfo_codeset+:} false; then :
12758  $as_echo_n "(cached) " >&6
12759else
12760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761/* end confdefs.h.  */
12762#include <langinfo.h>
12763int
12764main ()
12765{
12766char* cs = nl_langinfo(CODESET); return !cs;
12767  ;
12768  return 0;
12769}
12770_ACEOF
12771if ac_fn_c_try_link "$LINENO"; then :
12772  am_cv_langinfo_codeset=yes
12773else
12774  am_cv_langinfo_codeset=no
12775fi
12776rm -f core conftest.err conftest.$ac_objext \
12777    conftest$ac_exeext conftest.$ac_ext
12778
12779fi
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12781$as_echo "$am_cv_langinfo_codeset" >&6; }
12782  if test $am_cv_langinfo_codeset = yes; then
12783
12784$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12785
12786  fi
12787
12788
12789  GNULIB_LOCALECONV=0;
12790  GNULIB_SETLOCALE=0;
12791  GNULIB_SETLOCALE_NULL=0;
12792  GNULIB_DUPLOCALE=0;
12793  GNULIB_LOCALENAME=0;
12794    HAVE_NEWLOCALE=1;
12795  HAVE_DUPLOCALE=1;
12796  HAVE_FREELOCALE=1;
12797  REPLACE_LOCALECONV=0;
12798  REPLACE_SETLOCALE=0;
12799  REPLACE_NEWLOCALE=0;
12800  REPLACE_DUPLOCALE=0;
12801  REPLACE_FREELOCALE=0;
12802  REPLACE_STRUCT_LCONV=0;
12803
12804
12805    REPLACE_NULL=0;
12806  HAVE_MAX_ALIGN_T=1;
12807  HAVE_WCHAR_T=1;
12808
12809
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
12811$as_echo_n "checking for wchar_t... " >&6; }
12812if ${gt_cv_c_wchar_t+:} false; then :
12813  $as_echo_n "(cached) " >&6
12814else
12815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816/* end confdefs.h.  */
12817#include <stddef.h>
12818            wchar_t foo = (wchar_t)'\0';
12819int
12820main ()
12821{
12822
12823  ;
12824  return 0;
12825}
12826_ACEOF
12827if ac_fn_c_try_compile "$LINENO"; then :
12828  gt_cv_c_wchar_t=yes
12829else
12830  gt_cv_c_wchar_t=no
12831fi
12832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833fi
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
12835$as_echo "$gt_cv_c_wchar_t" >&6; }
12836  if test $gt_cv_c_wchar_t = yes; then
12837
12838$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
12839
12840  fi
12841
12842
12843
12844
12845  STDDEF_H=
12846
12847      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
12848$as_echo_n "checking for good max_align_t... " >&6; }
12849if ${gl_cv_type_max_align_t+:} false; then :
12850  $as_echo_n "(cached) " >&6
12851else
12852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h.  */
12854#include <stddef.h>
12855            unsigned int s = sizeof (max_align_t);
12856            #if defined __GNUC__ || defined __IBM__ALIGNOF__
12857            int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
12858            int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
12859            #endif
12860
12861int
12862main ()
12863{
12864
12865  ;
12866  return 0;
12867}
12868_ACEOF
12869if ac_fn_c_try_compile "$LINENO"; then :
12870  gl_cv_type_max_align_t=yes
12871else
12872  gl_cv_type_max_align_t=no
12873fi
12874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875
12876fi
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
12878$as_echo "$gl_cv_type_max_align_t" >&6; }
12879  if test $gl_cv_type_max_align_t = no; then
12880    HAVE_MAX_ALIGN_T=0
12881    STDDEF_H=stddef.h
12882  fi
12883
12884  if test $gt_cv_c_wchar_t = no; then
12885    HAVE_WCHAR_T=0
12886    STDDEF_H=stddef.h
12887  fi
12888
12889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12890$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12891if ${gl_cv_decl_null_works+:} false; then :
12892  $as_echo_n "(cached) " >&6
12893else
12894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895/* end confdefs.h.  */
12896#include <stddef.h>
12897      int test[2 * (sizeof NULL == sizeof (void *)) -1];
12898
12899int
12900main ()
12901{
12902
12903  ;
12904  return 0;
12905}
12906_ACEOF
12907if ac_fn_c_try_compile "$LINENO"; then :
12908  gl_cv_decl_null_works=yes
12909else
12910  gl_cv_decl_null_works=no
12911fi
12912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913fi
12914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12915$as_echo "$gl_cv_decl_null_works" >&6; }
12916  if test $gl_cv_decl_null_works = no; then
12917    REPLACE_NULL=1
12918    STDDEF_H=stddef.h
12919  fi
12920
12921
12922   if test -n "$STDDEF_H"; then
12923  GL_GENERATE_STDDEF_H_TRUE=
12924  GL_GENERATE_STDDEF_H_FALSE='#'
12925else
12926  GL_GENERATE_STDDEF_H_TRUE='#'
12927  GL_GENERATE_STDDEF_H_FALSE=
12928fi
12929
12930  if test -n "$STDDEF_H"; then
12931
12932
12933
12934
12935
12936
12937
12938
12939     if test $gl_cv_have_include_next = yes; then
12940       gl_cv_next_stddef_h='<'stddef.h'>'
12941     else
12942       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
12943$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
12944if ${gl_cv_next_stddef_h+:} false; then :
12945  $as_echo_n "(cached) " >&6
12946else
12947
12948
12949
12950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951/* end confdefs.h.  */
12952#include <stddef.h>
12953_ACEOF
12954                case "$host_os" in
12955    aix*) gl_absname_cpp="$ac_cpp -C" ;;
12956    *)    gl_absname_cpp="$ac_cpp" ;;
12957  esac
12958
12959  case "$host_os" in
12960    mingw*)
12961                                          gl_dirsep_regex='[/\\]'
12962      ;;
12963    *)
12964      gl_dirsep_regex='\/'
12965      ;;
12966  esac
12967      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12968  gl_header_literal_regex=`echo 'stddef.h' \
12969                           | sed -e "$gl_make_literal_regex_sed"`
12970  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12971      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12972      s|^/[^/]|//&|
12973      p
12974      q
12975    }'
12976
12977        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12978  sed -n "$gl_absolute_header_sed"`
12979
12980           gl_header=$gl_cv_absolute_stddef_h
12981           gl_cv_next_stddef_h='"'$gl_header'"'
12982
12983
12984fi
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
12986$as_echo "$gl_cv_next_stddef_h" >&6; }
12987     fi
12988     NEXT_STDDEF_H=$gl_cv_next_stddef_h
12989
12990     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12991       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12992       gl_next_as_first_directive='<'stddef.h'>'
12993     else
12994       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12995       gl_next_as_first_directive=$gl_cv_next_stddef_h
12996     fi
12997     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
12998
12999
13000
13001
13002  fi
13003
13004
13005
13006
13007
13008
13009        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
13010$as_echo_n "checking whether locale.h defines locale_t... " >&6; }
13011if ${gl_cv_header_locale_has_locale_t+:} false; then :
13012  $as_echo_n "(cached) " >&6
13013else
13014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015/* end confdefs.h.  */
13016#include <locale.h>
13017            locale_t x;
13018int
13019main ()
13020{
13021
13022  ;
13023  return 0;
13024}
13025_ACEOF
13026if ac_fn_c_try_compile "$LINENO"; then :
13027  gl_cv_header_locale_has_locale_t=yes
13028else
13029  gl_cv_header_locale_has_locale_t=no
13030fi
13031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13032
13033fi
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
13035$as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
13036
13037
13038  if test $ac_cv_header_xlocale_h = yes; then
13039    HAVE_XLOCALE_H=1
13040    if test $gl_cv_header_locale_has_locale_t = yes; then
13041      gl_cv_header_locale_h_needs_xlocale_h=no
13042    else
13043      gl_cv_header_locale_h_needs_xlocale_h=yes
13044    fi
13045    HAVE_LOCALE_T=1
13046  else
13047    HAVE_XLOCALE_H=0
13048    gl_cv_header_locale_h_needs_xlocale_h=no
13049    if test $gl_cv_header_locale_has_locale_t = yes; then
13050      HAVE_LOCALE_T=1
13051    else
13052      HAVE_LOCALE_T=0
13053    fi
13054  fi
13055
13056
13057
13058     GNULIB_FCHMODAT=0;
13059  GNULIB_FSTAT=0;
13060  GNULIB_FSTATAT=0;
13061  GNULIB_FUTIMENS=0;
13062  GNULIB_LCHMOD=0;
13063  GNULIB_LSTAT=0;
13064  GNULIB_MKDIRAT=0;
13065  GNULIB_MKFIFO=0;
13066  GNULIB_MKFIFOAT=0;
13067  GNULIB_MKNOD=0;
13068  GNULIB_MKNODAT=0;
13069  GNULIB_STAT=0;
13070  GNULIB_UTIMENSAT=0;
13071  GNULIB_OVERRIDES_STRUCT_STAT=0;
13072    HAVE_FCHMODAT=1;
13073  HAVE_FSTATAT=1;
13074  HAVE_FUTIMENS=1;
13075  HAVE_LCHMOD=1;
13076  HAVE_LSTAT=1;
13077  HAVE_MKDIRAT=1;
13078  HAVE_MKFIFO=1;
13079  HAVE_MKFIFOAT=1;
13080  HAVE_MKNOD=1;
13081  HAVE_MKNODAT=1;
13082  HAVE_UTIMENSAT=1;
13083  REPLACE_FCHMODAT=0;
13084  REPLACE_FSTAT=0;
13085  REPLACE_FSTATAT=0;
13086  REPLACE_FUTIMENS=0;
13087  REPLACE_LSTAT=0;
13088  REPLACE_MKDIR=0;
13089  REPLACE_MKFIFO=0;
13090  REPLACE_MKNOD=0;
13091  REPLACE_STAT=0;
13092  REPLACE_UTIMENSAT=0;
13093
13094
13095
13096
13097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13098$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13099if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13100  $as_echo_n "(cached) " >&6
13101else
13102  rm -f conftest.sym conftest.file
13103     echo >conftest.file
13104     if test "$cross_compiling" = yes; then :
13105  case "$host_os" in
13106          linux-* | linux)
13107            # Guess yes on Linux systems.
13108            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
13109          *-gnu* | gnu*)
13110            # Guess yes on glibc systems.
13111            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
13112          mingw*)
13113            # Guess no on native Windows.
13114            gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
13115          *)
13116            # If we don't know, obey --enable-cross-guesses.
13117            gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
13118        esac
13119
13120else
13121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122/* end confdefs.h.  */
13123$ac_includes_default
13124int
13125main ()
13126{
13127struct stat sbuf;
13128            if (symlink ("conftest.file", "conftest.sym") != 0)
13129              return 1;
13130            /* Linux will dereference the symlink and fail, as required by
13131               POSIX.  That is better in the sense that it means we will not
13132               have to compile and use the lstat wrapper.  */
13133            return lstat ("conftest.sym/", &sbuf) == 0;
13134
13135  ;
13136  return 0;
13137}
13138_ACEOF
13139if ac_fn_c_try_run "$LINENO"; then :
13140  gl_cv_func_lstat_dereferences_slashed_symlink=yes
13141else
13142  gl_cv_func_lstat_dereferences_slashed_symlink=no
13143fi
13144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13145  conftest.$ac_objext conftest.beam conftest.$ac_ext
13146fi
13147
13148     rm -f conftest.sym conftest.file
13149
13150fi
13151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
13152$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13153  case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13154    *yes)
13155
13156cat >>confdefs.h <<_ACEOF
13157#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13158_ACEOF
13159
13160      ;;
13161  esac
13162
13163
13164  GNULIB__EXIT=0;
13165  GNULIB_ATOLL=0;
13166  GNULIB_CALLOC_POSIX=0;
13167  GNULIB_CANONICALIZE_FILE_NAME=0;
13168  GNULIB_GETLOADAVG=0;
13169  GNULIB_GETSUBOPT=0;
13170  GNULIB_GRANTPT=0;
13171  GNULIB_MALLOC_POSIX=0;
13172  GNULIB_MBTOWC=0;
13173  GNULIB_MKDTEMP=0;
13174  GNULIB_MKOSTEMP=0;
13175  GNULIB_MKOSTEMPS=0;
13176  GNULIB_MKSTEMP=0;
13177  GNULIB_MKSTEMPS=0;
13178  GNULIB_POSIX_OPENPT=0;
13179  GNULIB_PTSNAME=0;
13180  GNULIB_PTSNAME_R=0;
13181  GNULIB_PUTENV=0;
13182  GNULIB_QSORT_R=0;
13183  GNULIB_RANDOM=0;
13184  GNULIB_RANDOM_R=0;
13185  GNULIB_REALLOCARRAY=0;
13186  GNULIB_REALLOC_POSIX=0;
13187  GNULIB_REALPATH=0;
13188  GNULIB_RPMATCH=0;
13189  GNULIB_SECURE_GETENV=0;
13190  GNULIB_SETENV=0;
13191  GNULIB_STRTOD=0;
13192  GNULIB_STRTOLD=0;
13193  GNULIB_STRTOLL=0;
13194  GNULIB_STRTOULL=0;
13195  GNULIB_SYSTEM_POSIX=0;
13196  GNULIB_UNLOCKPT=0;
13197  GNULIB_UNSETENV=0;
13198  GNULIB_WCTOMB=0;
13199    HAVE__EXIT=1;
13200  HAVE_ATOLL=1;
13201  HAVE_CANONICALIZE_FILE_NAME=1;
13202  HAVE_DECL_GETLOADAVG=1;
13203  HAVE_GETSUBOPT=1;
13204  HAVE_GRANTPT=1;
13205  HAVE_INITSTATE=1;
13206  HAVE_DECL_INITSTATE=1;
13207  HAVE_MBTOWC=1;
13208  HAVE_MKDTEMP=1;
13209  HAVE_MKOSTEMP=1;
13210  HAVE_MKOSTEMPS=1;
13211  HAVE_MKSTEMP=1;
13212  HAVE_MKSTEMPS=1;
13213  HAVE_POSIX_OPENPT=1;
13214  HAVE_PTSNAME=1;
13215  HAVE_PTSNAME_R=1;
13216  HAVE_QSORT_R=1;
13217  HAVE_RANDOM=1;
13218  HAVE_RANDOM_H=1;
13219  HAVE_RANDOM_R=1;
13220  HAVE_REALLOCARRAY=1;
13221  HAVE_REALPATH=1;
13222  HAVE_RPMATCH=1;
13223  HAVE_SECURE_GETENV=1;
13224  HAVE_SETENV=1;
13225  HAVE_DECL_SETENV=1;
13226  HAVE_SETSTATE=1;
13227  HAVE_DECL_SETSTATE=1;
13228  HAVE_STRTOD=1;
13229  HAVE_STRTOLD=1;
13230  HAVE_STRTOLL=1;
13231  HAVE_STRTOULL=1;
13232  HAVE_STRUCT_RANDOM_DATA=1;
13233  HAVE_SYS_LOADAVG_H=0;
13234  HAVE_UNLOCKPT=1;
13235  HAVE_DECL_UNSETENV=1;
13236  REPLACE_CALLOC=0;
13237  REPLACE_CANONICALIZE_FILE_NAME=0;
13238  REPLACE_INITSTATE=0;
13239  REPLACE_MALLOC=0;
13240  REPLACE_MBTOWC=0;
13241  REPLACE_MKSTEMP=0;
13242  REPLACE_PTSNAME=0;
13243  REPLACE_PTSNAME_R=0;
13244  REPLACE_PUTENV=0;
13245  REPLACE_QSORT_R=0;
13246  REPLACE_RANDOM=0;
13247  REPLACE_RANDOM_R=0;
13248  REPLACE_REALLOC=0;
13249  REPLACE_REALPATH=0;
13250  REPLACE_SETENV=0;
13251  REPLACE_SETSTATE=0;
13252  REPLACE_STRTOD=0;
13253  REPLACE_STRTOLD=0;
13254  REPLACE_UNSETENV=0;
13255  REPLACE_WCTOMB=0;
13256
13257
13258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13259$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13260if ${gl_cv_func_malloc_posix+:} false; then :
13261  $as_echo_n "(cached) " >&6
13262else
13263
13264                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265/* end confdefs.h.  */
13266
13267int
13268main ()
13269{
13270#if defined _WIN32 && ! defined __CYGWIN__
13271             choke me
13272             #endif
13273
13274  ;
13275  return 0;
13276}
13277_ACEOF
13278if ac_fn_c_try_compile "$LINENO"; then :
13279  gl_cv_func_malloc_posix=yes
13280else
13281  gl_cv_func_malloc_posix=no
13282fi
13283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284
13285fi
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
13287$as_echo "$gl_cv_func_malloc_posix" >&6; }
13288
13289
13290
13291    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13292$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13293if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13294  $as_echo_n "(cached) " >&6
13295else
13296  if test "$cross_compiling" = yes; then :
13297  case "$host_os" in
13298          # Guess yes on platforms where we know the result.
13299          *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
13300          | hpux* | solaris* | cygwin* | mingw*)
13301            ac_cv_func_malloc_0_nonnull="guessing yes" ;;
13302          # If we don't know, obey --enable-cross-guesses.
13303          *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
13304        esac
13305
13306else
13307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308/* end confdefs.h.  */
13309#include <stdlib.h>
13310
13311int
13312main ()
13313{
13314char *p = malloc (0);
13315            int result = !p;
13316            free (p);
13317            return result;
13318  ;
13319  return 0;
13320}
13321
13322_ACEOF
13323if ac_fn_c_try_run "$LINENO"; then :
13324  ac_cv_func_malloc_0_nonnull=yes
13325else
13326  ac_cv_func_malloc_0_nonnull=no
13327fi
13328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13329  conftest.$ac_objext conftest.beam conftest.$ac_ext
13330fi
13331
13332
13333fi
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13335$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13336  case "$ac_cv_func_malloc_0_nonnull" in
13337    *yes)
13338      gl_cv_func_malloc_0_nonnull=1
13339      ;;
13340    *)
13341      gl_cv_func_malloc_0_nonnull=0
13342      ;;
13343  esac
13344
13345
13346cat >>confdefs.h <<_ACEOF
13347#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
13348_ACEOF
13349
13350
13351
13352  GNULIB_BTOWC=0;
13353  GNULIB_WCTOB=0;
13354  GNULIB_MBSINIT=0;
13355  GNULIB_MBRTOWC=0;
13356  GNULIB_MBRLEN=0;
13357  GNULIB_MBSRTOWCS=0;
13358  GNULIB_MBSNRTOWCS=0;
13359  GNULIB_WCRTOMB=0;
13360  GNULIB_WCSRTOMBS=0;
13361  GNULIB_WCSNRTOMBS=0;
13362  GNULIB_WCWIDTH=0;
13363  GNULIB_WMEMCHR=0;
13364  GNULIB_WMEMCMP=0;
13365  GNULIB_WMEMCPY=0;
13366  GNULIB_WMEMMOVE=0;
13367  GNULIB_WMEMSET=0;
13368  GNULIB_WCSLEN=0;
13369  GNULIB_WCSNLEN=0;
13370  GNULIB_WCSCPY=0;
13371  GNULIB_WCPCPY=0;
13372  GNULIB_WCSNCPY=0;
13373  GNULIB_WCPNCPY=0;
13374  GNULIB_WCSCAT=0;
13375  GNULIB_WCSNCAT=0;
13376  GNULIB_WCSCMP=0;
13377  GNULIB_WCSNCMP=0;
13378  GNULIB_WCSCASECMP=0;
13379  GNULIB_WCSNCASECMP=0;
13380  GNULIB_WCSCOLL=0;
13381  GNULIB_WCSXFRM=0;
13382  GNULIB_WCSDUP=0;
13383  GNULIB_WCSCHR=0;
13384  GNULIB_WCSRCHR=0;
13385  GNULIB_WCSCSPN=0;
13386  GNULIB_WCSSPN=0;
13387  GNULIB_WCSPBRK=0;
13388  GNULIB_WCSSTR=0;
13389  GNULIB_WCSTOK=0;
13390  GNULIB_WCSWIDTH=0;
13391  GNULIB_WCSFTIME=0;
13392    HAVE_BTOWC=1;
13393  HAVE_MBSINIT=1;
13394  HAVE_MBRTOWC=1;
13395  HAVE_MBRLEN=1;
13396  HAVE_MBSRTOWCS=1;
13397  HAVE_MBSNRTOWCS=1;
13398  HAVE_WCRTOMB=1;
13399  HAVE_WCSRTOMBS=1;
13400  HAVE_WCSNRTOMBS=1;
13401  HAVE_WMEMCHR=1;
13402  HAVE_WMEMCMP=1;
13403  HAVE_WMEMCPY=1;
13404  HAVE_WMEMMOVE=1;
13405  HAVE_WMEMSET=1;
13406  HAVE_WCSLEN=1;
13407  HAVE_WCSNLEN=1;
13408  HAVE_WCSCPY=1;
13409  HAVE_WCPCPY=1;
13410  HAVE_WCSNCPY=1;
13411  HAVE_WCPNCPY=1;
13412  HAVE_WCSCAT=1;
13413  HAVE_WCSNCAT=1;
13414  HAVE_WCSCMP=1;
13415  HAVE_WCSNCMP=1;
13416  HAVE_WCSCASECMP=1;
13417  HAVE_WCSNCASECMP=1;
13418  HAVE_WCSCOLL=1;
13419  HAVE_WCSXFRM=1;
13420  HAVE_WCSDUP=1;
13421  HAVE_WCSCHR=1;
13422  HAVE_WCSRCHR=1;
13423  HAVE_WCSCSPN=1;
13424  HAVE_WCSSPN=1;
13425  HAVE_WCSPBRK=1;
13426  HAVE_WCSSTR=1;
13427  HAVE_WCSTOK=1;
13428  HAVE_WCSWIDTH=1;
13429  HAVE_WCSFTIME=1;
13430  HAVE_DECL_WCTOB=1;
13431  HAVE_DECL_WCWIDTH=1;
13432  REPLACE_MBSTATE_T=0;
13433  REPLACE_BTOWC=0;
13434  REPLACE_WCTOB=0;
13435  REPLACE_MBSINIT=0;
13436  REPLACE_MBRTOWC=0;
13437  REPLACE_MBRLEN=0;
13438  REPLACE_MBSRTOWCS=0;
13439  REPLACE_MBSNRTOWCS=0;
13440  REPLACE_WCRTOMB=0;
13441  REPLACE_WCSRTOMBS=0;
13442  REPLACE_WCSNRTOMBS=0;
13443  REPLACE_WCWIDTH=0;
13444  REPLACE_WCSWIDTH=0;
13445  REPLACE_WCSFTIME=0;
13446  REPLACE_WCSTOK=0;
13447
13448
13449
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13451$as_echo_n "checking for mbstate_t... " >&6; }
13452if ${ac_cv_type_mbstate_t+:} false; then :
13453  $as_echo_n "(cached) " >&6
13454else
13455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456/* end confdefs.h.  */
13457$ac_includes_default
13458/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13459   <wchar.h>.
13460   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13461   included before <wchar.h>.  */
13462#include <stddef.h>
13463#include <stdio.h>
13464#include <time.h>
13465#include <wchar.h>
13466int
13467main ()
13468{
13469mbstate_t x; return sizeof x;
13470  ;
13471  return 0;
13472}
13473_ACEOF
13474if ac_fn_c_try_compile "$LINENO"; then :
13475  ac_cv_type_mbstate_t=yes
13476else
13477  ac_cv_type_mbstate_t=no
13478fi
13479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480fi
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13482$as_echo "$ac_cv_type_mbstate_t" >&6; }
13483   if test $ac_cv_type_mbstate_t = yes; then
13484
13485$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13486
13487   else
13488
13489$as_echo "#define mbstate_t int" >>confdefs.h
13490
13491   fi
13492
13493
13494
13495
13496
13497
13498
13499
13500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
13501$as_echo_n "checking for a traditional japanese locale... " >&6; }
13502if ${gt_cv_locale_ja+:} false; then :
13503  $as_echo_n "(cached) " >&6
13504else
13505
13506    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h.  */
13508
13509#include <locale.h>
13510#include <time.h>
13511#if HAVE_LANGINFO_CODESET
13512# include <langinfo.h>
13513#endif
13514#include <stdlib.h>
13515#include <string.h>
13516struct tm t;
13517char buf[16];
13518int main ()
13519{
13520  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
13521     imitates locale dependent behaviour by looking at the environment
13522     variables, and all locales use the UTF-8 encoding.  */
13523#if defined __BEOS__ || defined __HAIKU__
13524  return 1;
13525#else
13526  /* Check whether the given locale name is recognized by the system.  */
13527# if defined _WIN32 && !defined __CYGWIN__
13528  /* On native Windows, setlocale(category, "") looks at the system settings,
13529     not at the environment variables.  Also, when an encoding suffix such
13530     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13531     category of the locale to "C".  */
13532  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13533      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13534    return 1;
13535# else
13536  if (setlocale (LC_ALL, "") == NULL) return 1;
13537# endif
13538  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13539     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13540     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13541     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13542     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13543     some unit tests fail.
13544     On MirBSD 10, when an unsupported locale is specified, setlocale()
13545     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
13546# if HAVE_LANGINFO_CODESET
13547  {
13548    const char *cs = nl_langinfo (CODESET);
13549    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13550        || strcmp (cs, "UTF-8") == 0)
13551      return 1;
13552  }
13553# endif
13554# ifdef __CYGWIN__
13555  /* On Cygwin, avoid locale names without encoding suffix, because the
13556     locale_charset() function relies on the encoding suffix.  Note that
13557     LC_ALL is set on the command line.  */
13558  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13559# endif
13560  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
13561     on Cygwin 1.5.x.  */
13562  if (MB_CUR_MAX == 1)
13563    return 1;
13564  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
13565     This excludes the UTF-8 encoding (except on MirBSD).  */
13566  {
13567    const char *p;
13568    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13569    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
13570    for (p = buf; *p != '\0'; p++)
13571      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
13572        return 1;
13573  }
13574  return 0;
13575#endif
13576}
13577
13578_ACEOF
13579    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13580  (eval $ac_link) 2>&5
13581  ac_status=$?
13582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13583  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13584      case "$host_os" in
13585        # Handle native Windows specially, because there setlocale() interprets
13586        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13587        # "fr" or "fra" as "French" or "French_France.1252",
13588        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13589        # "ja" as "Japanese" or "Japanese_Japan.932",
13590        # and similar.
13591        mingw*)
13592          # Note that on native Windows, the Japanese locale is
13593          # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
13594          # cannot use it here.
13595          gt_cv_locale_ja=none
13596          ;;
13597        *)
13598          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13599          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13600          # configure script would override the LC_ALL setting. Likewise for
13601          # LC_CTYPE, which is also set at the beginning of the configure script.
13602          # Test for the AIX locale name.
13603          if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13604            gt_cv_locale_ja=ja_JP
13605          else
13606            # Test for the locale name with explicit encoding suffix.
13607            if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13608              gt_cv_locale_ja=ja_JP.EUC-JP
13609            else
13610              # Test for the HP-UX, OSF/1, NetBSD locale name.
13611              if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13612                gt_cv_locale_ja=ja_JP.eucJP
13613              else
13614                # Test for the IRIX, FreeBSD locale name.
13615                if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13616                  gt_cv_locale_ja=ja_JP.EUC
13617                else
13618                  # Test for the Solaris 7 locale name.
13619                  if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13620                    gt_cv_locale_ja=ja
13621                  else
13622                    # Special test for NetBSD 1.6.
13623                    if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
13624                      gt_cv_locale_ja=ja_JP.eucJP
13625                    else
13626                      # None found.
13627                      gt_cv_locale_ja=none
13628                    fi
13629                  fi
13630                fi
13631              fi
13632            fi
13633          fi
13634          ;;
13635      esac
13636    fi
13637    rm -fr conftest*
13638
13639fi
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
13641$as_echo "$gt_cv_locale_ja" >&6; }
13642  LOCALE_JA=$gt_cv_locale_ja
13643
13644
13645
13646
13647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
13648$as_echo_n "checking for a french Unicode locale... " >&6; }
13649if ${gt_cv_locale_fr_utf8+:} false; then :
13650  $as_echo_n "(cached) " >&6
13651else
13652
13653    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654/* end confdefs.h.  */
13655
13656#include <locale.h>
13657#include <time.h>
13658#if HAVE_LANGINFO_CODESET
13659# include <langinfo.h>
13660#endif
13661#include <stdlib.h>
13662#include <string.h>
13663struct tm t;
13664char buf[16];
13665int main () {
13666  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
13667     imitates locale dependent behaviour by looking at the environment
13668     variables, and all locales use the UTF-8 encoding.  */
13669#if !(defined __BEOS__ || defined __HAIKU__)
13670  /* Check whether the given locale name is recognized by the system.  */
13671# if defined _WIN32 && !defined __CYGWIN__
13672  /* On native Windows, setlocale(category, "") looks at the system settings,
13673     not at the environment variables.  Also, when an encoding suffix such
13674     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13675     category of the locale to "C".  */
13676  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13677      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13678    return 1;
13679# else
13680  if (setlocale (LC_ALL, "") == NULL) return 1;
13681# endif
13682  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13683     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13684     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13685     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13686     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13687     some unit tests fail.  */
13688# if HAVE_LANGINFO_CODESET
13689  {
13690    const char *cs = nl_langinfo (CODESET);
13691    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
13692      return 1;
13693  }
13694# endif
13695# ifdef __CYGWIN__
13696  /* On Cygwin, avoid locale names without encoding suffix, because the
13697     locale_charset() function relies on the encoding suffix.  Note that
13698     LC_ALL is set on the command line.  */
13699  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13700# endif
13701  /* Check whether in the abbreviation of the second month, the second
13702     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
13703     two bytes long, with UTF-8 encoding.  */
13704  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13705  if (strftime (buf, sizeof (buf), "%b", &t) < 4
13706      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
13707    return 1;
13708#endif
13709#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
13710  /* Check whether the decimal separator is a comma.
13711     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
13712     are nl_langinfo(RADIXCHAR) are both ".".  */
13713  if (localeconv () ->decimal_point[0] != ',') return 1;
13714#endif
13715  return 0;
13716}
13717
13718_ACEOF
13719    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13720  (eval $ac_link) 2>&5
13721  ac_status=$?
13722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13723  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13724      case "$host_os" in
13725        # Handle native Windows specially, because there setlocale() interprets
13726        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13727        # "fr" or "fra" as "French" or "French_France.1252",
13728        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13729        # "ja" as "Japanese" or "Japanese_Japan.932",
13730        # and similar.
13731        mingw*)
13732          # Test for the hypothetical native Windows locale name.
13733          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13734            gt_cv_locale_fr_utf8=French_France.65001
13735          else
13736            # None found.
13737            gt_cv_locale_fr_utf8=none
13738          fi
13739          ;;
13740        *)
13741          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13742          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13743          # configure script would override the LC_ALL setting. Likewise for
13744          # LC_CTYPE, which is also set at the beginning of the configure script.
13745          # Test for the usual locale name.
13746          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13747            gt_cv_locale_fr_utf8=fr_FR
13748          else
13749            # Test for the locale name with explicit encoding suffix.
13750            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13751              gt_cv_locale_fr_utf8=fr_FR.UTF-8
13752            else
13753              # Test for the Solaris 7 locale name.
13754              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13755                gt_cv_locale_fr_utf8=fr.UTF-8
13756              else
13757                # None found.
13758                gt_cv_locale_fr_utf8=none
13759              fi
13760            fi
13761          fi
13762          ;;
13763      esac
13764    fi
13765    rm -fr conftest*
13766
13767fi
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
13769$as_echo "$gt_cv_locale_fr_utf8" >&6; }
13770  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
13771
13772
13773
13774
13775
13776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
13777$as_echo_n "checking for a transitional chinese locale... " >&6; }
13778if ${gt_cv_locale_zh_CN+:} false; then :
13779  $as_echo_n "(cached) " >&6
13780else
13781
13782    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783/* end confdefs.h.  */
13784
13785#include <locale.h>
13786#include <stdlib.h>
13787#include <time.h>
13788#if HAVE_LANGINFO_CODESET
13789# include <langinfo.h>
13790#endif
13791#include <stdlib.h>
13792#include <string.h>
13793struct tm t;
13794char buf[16];
13795int main ()
13796{
13797  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
13798     imitates locale dependent behaviour by looking at the environment
13799     variables, and all locales use the UTF-8 encoding.  */
13800#if defined __BEOS__ || defined __HAIKU__
13801  return 1;
13802#else
13803  /* Check whether the given locale name is recognized by the system.  */
13804# if defined _WIN32 && !defined __CYGWIN__
13805  /* On native Windows, setlocale(category, "") looks at the system settings,
13806     not at the environment variables.  Also, when an encoding suffix such
13807     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13808     category of the locale to "C".  */
13809  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13810      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13811    return 1;
13812# else
13813  if (setlocale (LC_ALL, "") == NULL) return 1;
13814# endif
13815  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13816     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13817     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13818     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13819     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13820     some unit tests fail.
13821     On MirBSD 10, when an unsupported locale is specified, setlocale()
13822     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
13823# if HAVE_LANGINFO_CODESET
13824  {
13825    const char *cs = nl_langinfo (CODESET);
13826    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13827        || strcmp (cs, "UTF-8") == 0)
13828      return 1;
13829  }
13830# endif
13831# ifdef __CYGWIN__
13832  /* On Cygwin, avoid locale names without encoding suffix, because the
13833     locale_charset() function relies on the encoding suffix.  Note that
13834     LC_ALL is set on the command line.  */
13835  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13836# endif
13837  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
13838     This excludes the UTF-8 encoding (except on MirBSD).  */
13839  {
13840    const char *p;
13841    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13842    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
13843    for (p = buf; *p != '\0'; p++)
13844      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
13845        return 1;
13846  }
13847  /* Check whether a typical GB18030 multibyte sequence is recognized as a
13848     single wide character.  This excludes the GB2312 and GBK encodings.  */
13849  if (mblen ("\203\062\332\066", 5) != 4)
13850    return 1;
13851  return 0;
13852#endif
13853}
13854
13855_ACEOF
13856    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13857  (eval $ac_link) 2>&5
13858  ac_status=$?
13859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13860  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13861      case "$host_os" in
13862        # Handle native Windows specially, because there setlocale() interprets
13863        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13864        # "fr" or "fra" as "French" or "French_France.1252",
13865        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13866        # "ja" as "Japanese" or "Japanese_Japan.932",
13867        # and similar.
13868        mingw*)
13869          # Test for the hypothetical native Windows locale name.
13870          if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13871            gt_cv_locale_zh_CN=Chinese_China.54936
13872          else
13873            # None found.
13874            gt_cv_locale_zh_CN=none
13875          fi
13876          ;;
13877        solaris2.8)
13878          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
13879          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
13880          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
13881          gt_cv_locale_zh_CN=none
13882          ;;
13883        *)
13884          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13885          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13886          # configure script would override the LC_ALL setting. Likewise for
13887          # LC_CTYPE, which is also set at the beginning of the configure script.
13888          # Test for the locale name without encoding suffix.
13889          if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13890            gt_cv_locale_zh_CN=zh_CN
13891          else
13892            # Test for the locale name with explicit encoding suffix.
13893            if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13894              gt_cv_locale_zh_CN=zh_CN.GB18030
13895            else
13896              # None found.
13897              gt_cv_locale_zh_CN=none
13898            fi
13899          fi
13900          ;;
13901      esac
13902    else
13903      # If there was a link error, due to mblen(), the system is so old that
13904      # it certainly doesn't have a chinese locale.
13905      gt_cv_locale_zh_CN=none
13906    fi
13907    rm -fr conftest*
13908
13909fi
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
13911$as_echo "$gt_cv_locale_zh_CN" >&6; }
13912  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
13913
13914
13915
13916
13917
13918
13919
13920  GNULIB_EXPLICIT_BZERO=0;
13921  GNULIB_FFSL=0;
13922  GNULIB_FFSLL=0;
13923  GNULIB_MEMCHR=0;
13924  GNULIB_MEMMEM=0;
13925  GNULIB_MEMPCPY=0;
13926  GNULIB_MEMRCHR=0;
13927  GNULIB_RAWMEMCHR=0;
13928  GNULIB_STPCPY=0;
13929  GNULIB_STPNCPY=0;
13930  GNULIB_STRCHRNUL=0;
13931  GNULIB_STRDUP=0;
13932  GNULIB_STRNCAT=0;
13933  GNULIB_STRNDUP=0;
13934  GNULIB_STRNLEN=0;
13935  GNULIB_STRPBRK=0;
13936  GNULIB_STRSEP=0;
13937  GNULIB_STRSTR=0;
13938  GNULIB_STRCASESTR=0;
13939  GNULIB_STRTOK_R=0;
13940  GNULIB_MBSLEN=0;
13941  GNULIB_MBSNLEN=0;
13942  GNULIB_MBSCHR=0;
13943  GNULIB_MBSRCHR=0;
13944  GNULIB_MBSSTR=0;
13945  GNULIB_MBSCASECMP=0;
13946  GNULIB_MBSNCASECMP=0;
13947  GNULIB_MBSPCASECMP=0;
13948  GNULIB_MBSCASESTR=0;
13949  GNULIB_MBSCSPN=0;
13950  GNULIB_MBSPBRK=0;
13951  GNULIB_MBSSPN=0;
13952  GNULIB_MBSSEP=0;
13953  GNULIB_MBSTOK_R=0;
13954  GNULIB_STRERROR=0;
13955  GNULIB_STRERROR_R=0;
13956  GNULIB_STRSIGNAL=0;
13957  GNULIB_STRVERSCMP=0;
13958  HAVE_MBSLEN=0;
13959    HAVE_EXPLICIT_BZERO=1;
13960  HAVE_FFSL=1;
13961  HAVE_FFSLL=1;
13962  HAVE_MEMCHR=1;
13963  HAVE_DECL_MEMMEM=1;
13964  HAVE_MEMPCPY=1;
13965  HAVE_DECL_MEMRCHR=1;
13966  HAVE_RAWMEMCHR=1;
13967  HAVE_STPCPY=1;
13968  HAVE_STPNCPY=1;
13969  HAVE_STRCHRNUL=1;
13970  HAVE_DECL_STRDUP=1;
13971  HAVE_DECL_STRNDUP=1;
13972  HAVE_DECL_STRNLEN=1;
13973  HAVE_STRPBRK=1;
13974  HAVE_STRSEP=1;
13975  HAVE_STRCASESTR=1;
13976  HAVE_DECL_STRTOK_R=1;
13977  HAVE_DECL_STRERROR_R=1;
13978  HAVE_DECL_STRSIGNAL=1;
13979  HAVE_STRVERSCMP=1;
13980  REPLACE_MEMCHR=0;
13981  REPLACE_MEMMEM=0;
13982  REPLACE_STPNCPY=0;
13983  REPLACE_STRCHRNUL=0;
13984  REPLACE_STRDUP=0;
13985  REPLACE_STRNCAT=0;
13986  REPLACE_STRNDUP=0;
13987  REPLACE_STRNLEN=0;
13988  REPLACE_STRSTR=0;
13989  REPLACE_STRCASESTR=0;
13990  REPLACE_STRTOK_R=0;
13991  REPLACE_STRERROR=0;
13992  REPLACE_STRERROR_R=0;
13993  REPLACE_STRSIGNAL=0;
13994  UNDEFINE_STRTOK_R=0;
13995
13996
13997
13998
13999
14000
14001  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14002  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14003  # irrelevant for anonymous mappings.
14004  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14005if test "x$ac_cv_func_mmap" = xyes; then :
14006  gl_have_mmap=yes
14007else
14008  gl_have_mmap=no
14009fi
14010
14011
14012  # Try to allow MAP_ANONYMOUS.
14013  gl_have_mmap_anonymous=no
14014  if test $gl_have_mmap = yes; then
14015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14016$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018/* end confdefs.h.  */
14019
14020#include <sys/mman.h>
14021#ifdef MAP_ANONYMOUS
14022    I cannot identify this map
14023#endif
14024
14025_ACEOF
14026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14027  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
14028  gl_have_mmap_anonymous=yes
14029fi
14030rm -f conftest*
14031
14032    if test $gl_have_mmap_anonymous != yes; then
14033      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034/* end confdefs.h.  */
14035
14036#include <sys/mman.h>
14037#ifdef MAP_ANON
14038    I cannot identify this map
14039#endif
14040
14041_ACEOF
14042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14043  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
14044
14045$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14046
14047         gl_have_mmap_anonymous=yes
14048fi
14049rm -f conftest*
14050
14051    fi
14052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14053$as_echo "$gl_have_mmap_anonymous" >&6; }
14054    if test $gl_have_mmap_anonymous = yes; then
14055
14056$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14057
14058    fi
14059  fi
14060
14061
14062
14063
14064
14065
14066  if test $HAVE_MEMCHR = 1; then
14067    # Detect platform-specific bugs in some versions of glibc:
14068    # memchr should not dereference anything with length 0
14069    #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
14070    # memchr should not dereference overestimated length after a match
14071    #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14072    #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
14073    # memchr should cast the second argument to 'unsigned char'.
14074    #   This bug exists in Android 4.3.
14075    # Assume that memchr works on platforms that lack mprotect.
14076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14077$as_echo_n "checking whether memchr works... " >&6; }
14078if ${gl_cv_func_memchr_works+:} false; then :
14079  $as_echo_n "(cached) " >&6
14080else
14081  if test "$cross_compiling" = yes; then :
14082  case "$host_os" in
14083                             # Guess no on Android.
14084            linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
14085                             # Guess yes on native Windows.
14086            mingw*)          gl_cv_func_memchr_works="guessing yes" ;;
14087                             # If we don't know, obey --enable-cross-guesses.
14088            *)               gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
14089          esac
14090
14091else
14092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14093/* end confdefs.h.  */
14094
14095#include <string.h>
14096#if HAVE_SYS_MMAN_H
14097# include <fcntl.h>
14098# include <unistd.h>
14099# include <sys/types.h>
14100# include <sys/mman.h>
14101# ifndef MAP_FILE
14102#  define MAP_FILE 0
14103# endif
14104#endif
14105
14106int
14107main ()
14108{
14109
14110  int result = 0;
14111  char *fence = NULL;
14112#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14113# if HAVE_MAP_ANONYMOUS
14114  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14115  const int fd = -1;
14116# else /* !HAVE_MAP_ANONYMOUS */
14117  const int flags = MAP_FILE | MAP_PRIVATE;
14118  int fd = open ("/dev/zero", O_RDONLY, 0666);
14119  if (fd >= 0)
14120# endif
14121    {
14122      int pagesize = getpagesize ();
14123      char *two_pages =
14124        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14125                       flags, fd, 0);
14126      if (two_pages != (char *)(-1)
14127          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14128        fence = two_pages + pagesize;
14129    }
14130#endif
14131  if (fence)
14132    {
14133      if (memchr (fence, 0, 0))
14134        result |= 1;
14135      strcpy (fence - 9, "12345678");
14136      if (memchr (fence - 9, 0, 79) != fence - 1)
14137        result |= 2;
14138      if (memchr (fence - 1, 0, 3) != fence - 1)
14139        result |= 4;
14140    }
14141  /* Test against bug on Android 4.3.  */
14142  {
14143    char input[3];
14144    input[0] = 'a';
14145    input[1] = 'b';
14146    input[2] = 'c';
14147    if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
14148      result |= 8;
14149  }
14150  return result;
14151
14152  ;
14153  return 0;
14154}
14155_ACEOF
14156if ac_fn_c_try_run "$LINENO"; then :
14157  gl_cv_func_memchr_works=yes
14158else
14159  gl_cv_func_memchr_works=no
14160fi
14161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14162  conftest.$ac_objext conftest.beam conftest.$ac_ext
14163fi
14164
14165
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14168$as_echo "$gl_cv_func_memchr_works" >&6; }
14169    case "$gl_cv_func_memchr_works" in
14170      *yes) ;;
14171      *) REPLACE_MEMCHR=1 ;;
14172    esac
14173  fi
14174
14175
14176
14177
14178
14179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
14180$as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
14181if ${gl_cv_minmax_in_limits_h+:} false; then :
14182  $as_echo_n "(cached) " >&6
14183else
14184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185/* end confdefs.h.  */
14186#include <limits.h>
14187            int x = MIN (42, 17);
14188int
14189main ()
14190{
14191
14192  ;
14193  return 0;
14194}
14195_ACEOF
14196if ac_fn_c_try_compile "$LINENO"; then :
14197  gl_cv_minmax_in_limits_h=yes
14198else
14199  gl_cv_minmax_in_limits_h=no
14200fi
14201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14202fi
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
14204$as_echo "$gl_cv_minmax_in_limits_h" >&6; }
14205  if test $gl_cv_minmax_in_limits_h = yes; then
14206
14207$as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
14208
14209  fi
14210
14211
14212
14213
14214
14215
14216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
14217$as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
14218if ${gl_cv_minmax_in_sys_param_h+:} false; then :
14219  $as_echo_n "(cached) " >&6
14220else
14221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222/* end confdefs.h.  */
14223#include <sys/param.h>
14224            int x = MIN (42, 17);
14225int
14226main ()
14227{
14228
14229  ;
14230  return 0;
14231}
14232_ACEOF
14233if ac_fn_c_try_compile "$LINENO"; then :
14234  gl_cv_minmax_in_sys_param_h=yes
14235else
14236  gl_cv_minmax_in_sys_param_h=no
14237fi
14238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239fi
14240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
14241$as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
14242  if test $gl_cv_minmax_in_sys_param_h = yes; then
14243
14244$as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
14245
14246  fi
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
14260    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
14261
14262$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
14263
14264  else
14265    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
14266  fi
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14287$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14288if ${ac_cv_header_stat_broken+:} false; then :
14289  $as_echo_n "(cached) " >&6
14290else
14291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292/* end confdefs.h.  */
14293#include <sys/types.h>
14294#include <sys/stat.h>
14295
14296#if defined S_ISBLK && defined S_IFDIR
14297extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14298#endif
14299
14300#if defined S_ISBLK && defined S_IFCHR
14301extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14302#endif
14303
14304#if defined S_ISLNK && defined S_IFREG
14305extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14306#endif
14307
14308#if defined S_ISSOCK && defined S_IFREG
14309extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14310#endif
14311
14312_ACEOF
14313if ac_fn_c_try_compile "$LINENO"; then :
14314  ac_cv_header_stat_broken=no
14315else
14316  ac_cv_header_stat_broken=yes
14317fi
14318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319fi
14320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14321$as_echo "$ac_cv_header_stat_broken" >&6; }
14322if test $ac_cv_header_stat_broken = yes; then
14323
14324$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14325
14326fi
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344     if test $gl_cv_have_include_next = yes; then
14345       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14346     else
14347       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
14348$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
14349if ${gl_cv_next_sys_stat_h+:} false; then :
14350  $as_echo_n "(cached) " >&6
14351else
14352
14353             if test $ac_cv_header_sys_stat_h = yes; then
14354
14355
14356
14357
14358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359/* end confdefs.h.  */
14360#include <sys/stat.h>
14361_ACEOF
14362                case "$host_os" in
14363    aix*) gl_absname_cpp="$ac_cpp -C" ;;
14364    *)    gl_absname_cpp="$ac_cpp" ;;
14365  esac
14366
14367  case "$host_os" in
14368    mingw*)
14369                                          gl_dirsep_regex='[/\\]'
14370      ;;
14371    *)
14372      gl_dirsep_regex='\/'
14373      ;;
14374  esac
14375      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14376  gl_header_literal_regex=`echo 'sys/stat.h' \
14377                           | sed -e "$gl_make_literal_regex_sed"`
14378  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14379      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14380      s|^/[^/]|//&|
14381      p
14382      q
14383    }'
14384
14385        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14386  sed -n "$gl_absolute_header_sed"`
14387
14388           gl_header=$gl_cv_absolute_sys_stat_h
14389           gl_cv_next_sys_stat_h='"'$gl_header'"'
14390          else
14391               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14392             fi
14393
14394
14395fi
14396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
14397$as_echo "$gl_cv_next_sys_stat_h" >&6; }
14398     fi
14399     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
14400
14401     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14402       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14403       gl_next_as_first_directive='<'sys/stat.h'>'
14404     else
14405       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14406       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
14407     fi
14408     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
14409
14410
14411
14412
14413
14414
14415
14416
14417    WINDOWS_STAT_TIMESPEC=0
14418
14419
14420
14421
14422
14423
14424
14425
14426      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
14427     #include <sys/stat.h>
14428"
14429if test "x$ac_cv_type_nlink_t" = xyes; then :
14430
14431else
14432
14433$as_echo "#define nlink_t int" >>confdefs.h
14434
14435fi
14436
14437
14438
14439
14440
14441
14442
14443
14444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14445$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14446if ${ac_cv_header_stdbool_h+:} false; then :
14447  $as_echo_n "(cached) " >&6
14448else
14449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450/* end confdefs.h.  */
14451
14452             #include <stdbool.h>
14453
14454             #ifdef __cplusplus
14455              typedef bool Bool;
14456             #else
14457              typedef _Bool Bool;
14458              #ifndef bool
14459               "error: bool is not defined"
14460              #endif
14461              #ifndef false
14462               "error: false is not defined"
14463              #endif
14464              #if false
14465               "error: false is not 0"
14466              #endif
14467              #ifndef true
14468               "error: true is not defined"
14469              #endif
14470              #if true != 1
14471               "error: true is not 1"
14472              #endif
14473             #endif
14474
14475             #ifndef __bool_true_false_are_defined
14476              "error: __bool_true_false_are_defined is not defined"
14477             #endif
14478
14479             struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
14480
14481             char a[true == 1 ? 1 : -1];
14482             char b[false == 0 ? 1 : -1];
14483             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14484             char d[(bool) 0.5 == true ? 1 : -1];
14485             /* See body of main program for 'e'.  */
14486             char f[(Bool) 0.0 == false ? 1 : -1];
14487             char g[true];
14488             char h[sizeof (Bool)];
14489             char i[sizeof s.t];
14490             enum { j = false, k = true, l = false * true, m = true * 256 };
14491             /* The following fails for
14492                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14493             Bool n[m];
14494             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14495             char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14496             /* Catch a bug in an HP-UX C compiler.  See
14497                https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14498                https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
14499              */
14500             Bool q = true;
14501             Bool *pq = &q;
14502             bool *qq = &q;
14503
14504int
14505main ()
14506{
14507
14508             bool e = &s;
14509             *pq |= q; *pq |= ! q;
14510             *qq |= q; *qq |= ! q;
14511             /* Refer to every declared value, to avoid compiler optimizations.  */
14512             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14513                     + !m + !n + !o + !p + !q + !pq + !qq);
14514
14515  ;
14516  return 0;
14517}
14518_ACEOF
14519if ac_fn_c_try_compile "$LINENO"; then :
14520  ac_cv_header_stdbool_h=yes
14521else
14522  ac_cv_header_stdbool_h=no
14523fi
14524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525fi
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14527$as_echo "$ac_cv_header_stdbool_h" >&6; }
14528   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14529if test "x$ac_cv_type__Bool" = xyes; then :
14530
14531cat >>confdefs.h <<_ACEOF
14532#define HAVE__BOOL 1
14533_ACEOF
14534
14535
14536fi
14537
14538
14539
14540  GNULIB_DPRINTF=0;
14541  GNULIB_FCLOSE=0;
14542  GNULIB_FDOPEN=0;
14543  GNULIB_FFLUSH=0;
14544  GNULIB_FGETC=0;
14545  GNULIB_FGETS=0;
14546  GNULIB_FOPEN=0;
14547  GNULIB_FPRINTF=0;
14548  GNULIB_FPRINTF_POSIX=0;
14549  GNULIB_FPURGE=0;
14550  GNULIB_FPUTC=0;
14551  GNULIB_FPUTS=0;
14552  GNULIB_FREAD=0;
14553  GNULIB_FREOPEN=0;
14554  GNULIB_FSCANF=0;
14555  GNULIB_FSEEK=0;
14556  GNULIB_FSEEKO=0;
14557  GNULIB_FTELL=0;
14558  GNULIB_FTELLO=0;
14559  GNULIB_FWRITE=0;
14560  GNULIB_GETC=0;
14561  GNULIB_GETCHAR=0;
14562  GNULIB_GETDELIM=0;
14563  GNULIB_GETLINE=0;
14564  GNULIB_OBSTACK_PRINTF=0;
14565  GNULIB_OBSTACK_PRINTF_POSIX=0;
14566  GNULIB_PCLOSE=0;
14567  GNULIB_PERROR=0;
14568  GNULIB_POPEN=0;
14569  GNULIB_PRINTF=0;
14570  GNULIB_PRINTF_POSIX=0;
14571  GNULIB_PUTC=0;
14572  GNULIB_PUTCHAR=0;
14573  GNULIB_PUTS=0;
14574  GNULIB_REMOVE=0;
14575  GNULIB_RENAME=0;
14576  GNULIB_RENAMEAT=0;
14577  GNULIB_SCANF=0;
14578  GNULIB_SNPRINTF=0;
14579  GNULIB_SPRINTF_POSIX=0;
14580  GNULIB_STDIO_H_NONBLOCKING=0;
14581  GNULIB_STDIO_H_SIGPIPE=0;
14582  GNULIB_TMPFILE=0;
14583  GNULIB_VASPRINTF=0;
14584  GNULIB_VFSCANF=0;
14585  GNULIB_VSCANF=0;
14586  GNULIB_VDPRINTF=0;
14587  GNULIB_VFPRINTF=0;
14588  GNULIB_VFPRINTF_POSIX=0;
14589  GNULIB_VPRINTF=0;
14590  GNULIB_VPRINTF_POSIX=0;
14591  GNULIB_VSNPRINTF=0;
14592  GNULIB_VSPRINTF_POSIX=0;
14593    HAVE_DECL_FPURGE=1;
14594  HAVE_DECL_FSEEKO=1;
14595  HAVE_DECL_FTELLO=1;
14596  HAVE_DECL_GETDELIM=1;
14597  HAVE_DECL_GETLINE=1;
14598  HAVE_DECL_OBSTACK_PRINTF=1;
14599  HAVE_DECL_SNPRINTF=1;
14600  HAVE_DECL_VSNPRINTF=1;
14601  HAVE_DPRINTF=1;
14602  HAVE_FSEEKO=1;
14603  HAVE_FTELLO=1;
14604  HAVE_PCLOSE=1;
14605  HAVE_POPEN=1;
14606  HAVE_RENAMEAT=1;
14607  HAVE_VASPRINTF=1;
14608  HAVE_VDPRINTF=1;
14609  REPLACE_DPRINTF=0;
14610  REPLACE_FCLOSE=0;
14611  REPLACE_FDOPEN=0;
14612  REPLACE_FFLUSH=0;
14613  REPLACE_FOPEN=0;
14614  REPLACE_FPRINTF=0;
14615  REPLACE_FPURGE=0;
14616  REPLACE_FREOPEN=0;
14617  REPLACE_FSEEK=0;
14618  REPLACE_FSEEKO=0;
14619  REPLACE_FTELL=0;
14620  REPLACE_FTELLO=0;
14621  REPLACE_GETDELIM=0;
14622  REPLACE_GETLINE=0;
14623  REPLACE_OBSTACK_PRINTF=0;
14624  REPLACE_PERROR=0;
14625  REPLACE_POPEN=0;
14626  REPLACE_PRINTF=0;
14627  REPLACE_REMOVE=0;
14628  REPLACE_RENAME=0;
14629  REPLACE_RENAMEAT=0;
14630  REPLACE_SNPRINTF=0;
14631  REPLACE_SPRINTF=0;
14632  REPLACE_STDIO_READ_FUNCS=0;
14633  REPLACE_STDIO_WRITE_FUNCS=0;
14634  REPLACE_TMPFILE=0;
14635  REPLACE_VASPRINTF=0;
14636  REPLACE_VDPRINTF=0;
14637  REPLACE_VFPRINTF=0;
14638  REPLACE_VPRINTF=0;
14639  REPLACE_VSNPRINTF=0;
14640  REPLACE_VSPRINTF=0;
14641
14642
14643  GNULIB_FFS=0;
14644    HAVE_FFS=1;
14645  HAVE_STRCASECMP=1;
14646  HAVE_DECL_STRNCASECMP=1;
14647
14648
14649     REPLACE_STRERROR_0=0
14650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
14651$as_echo_n "checking whether strerror(0) succeeds... " >&6; }
14652if ${gl_cv_func_strerror_0_works+:} false; then :
14653  $as_echo_n "(cached) " >&6
14654else
14655  if test "$cross_compiling" = yes; then :
14656  case "$host_os" in
14657                        # Guess yes on glibc systems.
14658         *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
14659                        # Guess yes on musl systems.
14660         *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
14661                        # Guess yes on native Windows.
14662         mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
14663                        # If we don't know, obey --enable-cross-guesses.
14664         *)             gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
14665       esac
14666
14667else
14668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669/* end confdefs.h.  */
14670#include <string.h>
14671           #include <errno.h>
14672
14673int
14674main ()
14675{
14676int result = 0;
14677           char *str;
14678           errno = 0;
14679           str = strerror (0);
14680           if (!*str) result |= 1;
14681           if (errno) result |= 2;
14682           if (strstr (str, "nknown") || strstr (str, "ndefined"))
14683             result |= 4;
14684           return result;
14685  ;
14686  return 0;
14687}
14688_ACEOF
14689if ac_fn_c_try_run "$LINENO"; then :
14690  gl_cv_func_strerror_0_works=yes
14691else
14692  gl_cv_func_strerror_0_works=no
14693fi
14694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14695  conftest.$ac_objext conftest.beam conftest.$ac_ext
14696fi
14697
14698
14699fi
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
14701$as_echo "$gl_cv_func_strerror_0_works" >&6; }
14702  case "$gl_cv_func_strerror_0_works" in
14703    *yes) ;;
14704    *)
14705      REPLACE_STRERROR_0=1
14706
14707$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
14708
14709      ;;
14710  esac
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722     if test $gl_cv_have_include_next = yes; then
14723       gl_cv_next_string_h='<'string.h'>'
14724     else
14725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
14726$as_echo_n "checking absolute name of <string.h>... " >&6; }
14727if ${gl_cv_next_string_h+:} false; then :
14728  $as_echo_n "(cached) " >&6
14729else
14730
14731
14732
14733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735#include <string.h>
14736_ACEOF
14737                case "$host_os" in
14738    aix*) gl_absname_cpp="$ac_cpp -C" ;;
14739    *)    gl_absname_cpp="$ac_cpp" ;;
14740  esac
14741
14742  case "$host_os" in
14743    mingw*)
14744                                          gl_dirsep_regex='[/\\]'
14745      ;;
14746    *)
14747      gl_dirsep_regex='\/'
14748      ;;
14749  esac
14750      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14751  gl_header_literal_regex=`echo 'string.h' \
14752                           | sed -e "$gl_make_literal_regex_sed"`
14753  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14754      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14755      s|^/[^/]|//&|
14756      p
14757      q
14758    }'
14759
14760        gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14761  sed -n "$gl_absolute_header_sed"`
14762
14763           gl_header=$gl_cv_absolute_string_h
14764           gl_cv_next_string_h='"'$gl_header'"'
14765
14766
14767fi
14768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
14769$as_echo "$gl_cv_next_string_h" >&6; }
14770     fi
14771     NEXT_STRING_H=$gl_cv_next_string_h
14772
14773     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14774       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14775       gl_next_as_first_directive='<'string.h'>'
14776     else
14777       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14778       gl_next_as_first_directive=$gl_cv_next_string_h
14779     fi
14780     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
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     if test $gl_cv_have_include_next = yes; then
14807       gl_cv_next_strings_h='<'strings.h'>'
14808     else
14809       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
14810$as_echo_n "checking absolute name of <strings.h>... " >&6; }
14811if ${gl_cv_next_strings_h+:} false; then :
14812  $as_echo_n "(cached) " >&6
14813else
14814
14815             if test $ac_cv_header_strings_h = yes; then
14816
14817
14818
14819
14820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821/* end confdefs.h.  */
14822#include <strings.h>
14823_ACEOF
14824                case "$host_os" in
14825    aix*) gl_absname_cpp="$ac_cpp -C" ;;
14826    *)    gl_absname_cpp="$ac_cpp" ;;
14827  esac
14828
14829  case "$host_os" in
14830    mingw*)
14831                                          gl_dirsep_regex='[/\\]'
14832      ;;
14833    *)
14834      gl_dirsep_regex='\/'
14835      ;;
14836  esac
14837      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14838  gl_header_literal_regex=`echo 'strings.h' \
14839                           | sed -e "$gl_make_literal_regex_sed"`
14840  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14841      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14842      s|^/[^/]|//&|
14843      p
14844      q
14845    }'
14846
14847        gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14848  sed -n "$gl_absolute_header_sed"`
14849
14850           gl_header=$gl_cv_absolute_strings_h
14851           gl_cv_next_strings_h='"'$gl_header'"'
14852          else
14853               gl_cv_next_strings_h='<'strings.h'>'
14854             fi
14855
14856
14857fi
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
14859$as_echo "$gl_cv_next_strings_h" >&6; }
14860     fi
14861     NEXT_STRINGS_H=$gl_cv_next_strings_h
14862
14863     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14864       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14865       gl_next_as_first_directive='<'strings.h'>'
14866     else
14867       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14868       gl_next_as_first_directive=$gl_cv_next_strings_h
14869     fi
14870     NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
14871
14872
14873
14874
14875  if test $ac_cv_header_strings_h = yes; then
14876    HAVE_STRINGS_H=1
14877  else
14878    HAVE_STRINGS_H=0
14879  fi
14880
14881
14882
14883
14884
14885
14886ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
14887if test "x$ac_cv_have_decl_strndup" = xyes; then :
14888  ac_have_decl=1
14889else
14890  ac_have_decl=0
14891fi
14892
14893cat >>confdefs.h <<_ACEOF
14894#define HAVE_DECL_STRNDUP $ac_have_decl
14895_ACEOF
14896
14897
14898
14899ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14900if test "x$ac_cv_have_decl_strnlen" = xyes; then :
14901  ac_have_decl=1
14902else
14903  ac_have_decl=0
14904fi
14905
14906cat >>confdefs.h <<_ACEOF
14907#define HAVE_DECL_STRNLEN $ac_have_decl
14908_ACEOF
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920$as_echo "#define _USE_STD_STAT 1" >>confdefs.h
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932     if test $gl_cv_have_include_next = yes; then
14933       gl_cv_next_sys_types_h='<'sys/types.h'>'
14934     else
14935       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14936$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14937if ${gl_cv_next_sys_types_h+:} false; then :
14938  $as_echo_n "(cached) " >&6
14939else
14940
14941
14942
14943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944/* end confdefs.h.  */
14945#include <sys/types.h>
14946_ACEOF
14947                case "$host_os" in
14948    aix*) gl_absname_cpp="$ac_cpp -C" ;;
14949    *)    gl_absname_cpp="$ac_cpp" ;;
14950  esac
14951
14952  case "$host_os" in
14953    mingw*)
14954                                          gl_dirsep_regex='[/\\]'
14955      ;;
14956    *)
14957      gl_dirsep_regex='\/'
14958      ;;
14959  esac
14960      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14961  gl_header_literal_regex=`echo 'sys/types.h' \
14962                           | sed -e "$gl_make_literal_regex_sed"`
14963  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14964      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14965      s|^/[^/]|//&|
14966      p
14967      q
14968    }'
14969
14970        gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14971  sed -n "$gl_absolute_header_sed"`
14972
14973           gl_header=$gl_cv_absolute_sys_types_h
14974           gl_cv_next_sys_types_h='"'$gl_header'"'
14975
14976
14977fi
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14979$as_echo "$gl_cv_next_sys_types_h" >&6; }
14980     fi
14981     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14982
14983     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14984       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14985       gl_next_as_first_directive='<'sys/types.h'>'
14986     else
14987       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14988       gl_next_as_first_directive=$gl_cv_next_sys_types_h
14989     fi
14990     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003    WINDOWS_STAT_INODES=0
15004
15005
15006
15007
15008  GNULIB_WAITPID=0;
15009
15010
15011
15012
15013
15014
15015
15016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15017$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15018if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
15019  $as_echo_n "(cached) " >&6
15020else
15021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022/* end confdefs.h.  */
15023#include <time.h>
15024
15025int
15026main ()
15027{
15028static struct timespec x; x.tv_sec = x.tv_nsec;
15029  ;
15030  return 0;
15031}
15032_ACEOF
15033if ac_fn_c_try_compile "$LINENO"; then :
15034  gl_cv_sys_struct_timespec_in_time_h=yes
15035else
15036  gl_cv_sys_struct_timespec_in_time_h=no
15037fi
15038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039fi
15040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15041$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15042
15043  TIME_H_DEFINES_STRUCT_TIMESPEC=0
15044  SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15045  PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15046  UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
15047  if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15048    TIME_H_DEFINES_STRUCT_TIMESPEC=1
15049  else
15050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15051$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15052if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
15053  $as_echo_n "(cached) " >&6
15054else
15055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056/* end confdefs.h.  */
15057#include <sys/time.h>
15058
15059int
15060main ()
15061{
15062static struct timespec x; x.tv_sec = x.tv_nsec;
15063  ;
15064  return 0;
15065}
15066_ACEOF
15067if ac_fn_c_try_compile "$LINENO"; then :
15068  gl_cv_sys_struct_timespec_in_sys_time_h=yes
15069else
15070  gl_cv_sys_struct_timespec_in_sys_time_h=no
15071fi
15072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073fi
15074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15075$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15076    if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15077      SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15078    else
15079      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15080$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15081if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
15082  $as_echo_n "(cached) " >&6
15083else
15084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085/* end confdefs.h.  */
15086#include <pthread.h>
15087
15088int
15089main ()
15090{
15091static struct timespec x; x.tv_sec = x.tv_nsec;
15092  ;
15093  return 0;
15094}
15095_ACEOF
15096if ac_fn_c_try_compile "$LINENO"; then :
15097  gl_cv_sys_struct_timespec_in_pthread_h=yes
15098else
15099  gl_cv_sys_struct_timespec_in_pthread_h=no
15100fi
15101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102fi
15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15104$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15105      if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15106        PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15107      else
15108        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
15109$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
15110if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
15111  $as_echo_n "(cached) " >&6
15112else
15113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114/* end confdefs.h.  */
15115#include <unistd.h>
15116
15117int
15118main ()
15119{
15120static struct timespec x; x.tv_sec = x.tv_nsec;
15121  ;
15122  return 0;
15123}
15124_ACEOF
15125if ac_fn_c_try_compile "$LINENO"; then :
15126  gl_cv_sys_struct_timespec_in_unistd_h=yes
15127else
15128  gl_cv_sys_struct_timespec_in_unistd_h=no
15129fi
15130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131fi
15132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
15133$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
15134        if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
15135          UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
15136        fi
15137      fi
15138    fi
15139  fi
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156     if test $gl_cv_have_include_next = yes; then
15157       gl_cv_next_time_h='<'time.h'>'
15158     else
15159       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15160$as_echo_n "checking absolute name of <time.h>... " >&6; }
15161if ${gl_cv_next_time_h+:} false; then :
15162  $as_echo_n "(cached) " >&6
15163else
15164
15165
15166
15167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168/* end confdefs.h.  */
15169#include <time.h>
15170_ACEOF
15171                case "$host_os" in
15172    aix*) gl_absname_cpp="$ac_cpp -C" ;;
15173    *)    gl_absname_cpp="$ac_cpp" ;;
15174  esac
15175
15176  case "$host_os" in
15177    mingw*)
15178                                          gl_dirsep_regex='[/\\]'
15179      ;;
15180    *)
15181      gl_dirsep_regex='\/'
15182      ;;
15183  esac
15184      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15185  gl_header_literal_regex=`echo 'time.h' \
15186                           | sed -e "$gl_make_literal_regex_sed"`
15187  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15188      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15189      s|^/[^/]|//&|
15190      p
15191      q
15192    }'
15193
15194        gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15195  sed -n "$gl_absolute_header_sed"`
15196
15197           gl_header=$gl_cv_absolute_time_h
15198           gl_cv_next_time_h='"'$gl_header'"'
15199
15200
15201fi
15202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15203$as_echo "$gl_cv_next_time_h" >&6; }
15204     fi
15205     NEXT_TIME_H=$gl_cv_next_time_h
15206
15207     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15208       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15209       gl_next_as_first_directive='<'time.h'>'
15210     else
15211       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15212       gl_next_as_first_directive=$gl_cv_next_time_h
15213     fi
15214     NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227  if test $ac_cv_header_features_h = yes; then
15228    HAVE_FEATURES_H=1
15229  else
15230    HAVE_FEATURES_H=0
15231  fi
15232
15233
15234
15235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
15236$as_echo_n "checking for inttypes.h... " >&6; }
15237if ${gl_cv_header_inttypes_h+:} false; then :
15238  $as_echo_n "(cached) " >&6
15239else
15240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241/* end confdefs.h.  */
15242
15243#include <sys/types.h>
15244#include <inttypes.h>
15245
15246int
15247main ()
15248{
15249uintmax_t i = (uintmax_t) -1; return !i;
15250  ;
15251  return 0;
15252}
15253_ACEOF
15254if ac_fn_c_try_compile "$LINENO"; then :
15255  gl_cv_header_inttypes_h=yes
15256else
15257  gl_cv_header_inttypes_h=no
15258fi
15259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260fi
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
15262$as_echo "$gl_cv_header_inttypes_h" >&6; }
15263  if test $gl_cv_header_inttypes_h = yes; then
15264
15265cat >>confdefs.h <<_ACEOF
15266#define HAVE_INTTYPES_H_WITH_UINTMAX 1
15267_ACEOF
15268
15269  fi
15270
15271
15272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15273$as_echo_n "checking for stdint.h... " >&6; }
15274if ${gl_cv_header_stdint_h+:} false; then :
15275  $as_echo_n "(cached) " >&6
15276else
15277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278/* end confdefs.h.  */
15279#include <sys/types.h>
15280            #include <stdint.h>
15281int
15282main ()
15283{
15284uintmax_t i = (uintmax_t) -1; return !i;
15285  ;
15286  return 0;
15287}
15288_ACEOF
15289if ac_fn_c_try_compile "$LINENO"; then :
15290  gl_cv_header_stdint_h=yes
15291else
15292  gl_cv_header_stdint_h=no
15293fi
15294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15295fi
15296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15297$as_echo "$gl_cv_header_stdint_h" >&6; }
15298  if test $gl_cv_header_stdint_h = yes; then
15299
15300cat >>confdefs.h <<_ACEOF
15301#define HAVE_STDINT_H_WITH_UINTMAX 1
15302_ACEOF
15303
15304  fi
15305
15306
15307
15308
15309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
15310$as_echo_n "checking for intmax_t... " >&6; }
15311if ${gt_cv_c_intmax_t+:} false; then :
15312  $as_echo_n "(cached) " >&6
15313else
15314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315/* end confdefs.h.  */
15316
15317#include <stddef.h>
15318#include <stdlib.h>
15319#if HAVE_STDINT_H_WITH_UINTMAX
15320#include <stdint.h>
15321#endif
15322#if HAVE_INTTYPES_H_WITH_UINTMAX
15323#include <inttypes.h>
15324#endif
15325
15326int
15327main ()
15328{
15329intmax_t x = -1; return !x;
15330  ;
15331  return 0;
15332}
15333_ACEOF
15334if ac_fn_c_try_compile "$LINENO"; then :
15335  gt_cv_c_intmax_t=yes
15336else
15337  gt_cv_c_intmax_t=no
15338fi
15339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340fi
15341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
15342$as_echo "$gt_cv_c_intmax_t" >&6; }
15343  if test $gt_cv_c_intmax_t = yes; then
15344
15345$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
15346
15347  else
15348
15349cat >>confdefs.h <<_ACEOF
15350#define intmax_t long long
15351_ACEOF
15352
15353  fi
15354
15355
15356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
15357$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
15358if ${gl_cv_cc_double_expbit0+:} false; then :
15359  $as_echo_n "(cached) " >&6
15360else
15361
15362      if test "$cross_compiling" = yes; then :
15363
15364                                                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365/* end confdefs.h.  */
15366
15367#if defined arm || defined __arm || defined __arm__
15368  mixed_endianness
15369#endif
15370
15371_ACEOF
15372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15373  $EGREP "mixed_endianness" >/dev/null 2>&1; then :
15374  gl_cv_cc_double_expbit0="unknown"
15375else
15376
15377                                                         :
15378if ${ac_cv_c_bigendian+:} false; then :
15379  $as_echo_n "(cached) " >&6
15380else
15381  ac_cv_c_bigendian=unknown
15382    # See if we're dealing with a universal compiler.
15383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384/* end confdefs.h.  */
15385#ifndef __APPLE_CC__
15386	       not a universal capable compiler
15387	     #endif
15388	     typedef int dummy;
15389
15390_ACEOF
15391if ac_fn_c_try_compile "$LINENO"; then :
15392
15393	# Check for potential -arch flags.  It is not universal unless
15394	# there are at least two -arch flags with different values.
15395	ac_arch=
15396	ac_prev=
15397	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15398	 if test -n "$ac_prev"; then
15399	   case $ac_word in
15400	     i?86 | x86_64 | ppc | ppc64)
15401	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15402		 ac_arch=$ac_word
15403	       else
15404		 ac_cv_c_bigendian=universal
15405		 break
15406	       fi
15407	       ;;
15408	   esac
15409	   ac_prev=
15410	 elif test "x$ac_word" = "x-arch"; then
15411	   ac_prev=arch
15412	 fi
15413       done
15414fi
15415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416    if test $ac_cv_c_bigendian = unknown; then
15417      # See if sys/param.h defines the BYTE_ORDER macro.
15418      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419/* end confdefs.h.  */
15420#include <sys/types.h>
15421	     #include <sys/param.h>
15422
15423int
15424main ()
15425{
15426#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15427		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15428		     && LITTLE_ENDIAN)
15429	      bogus endian macros
15430	     #endif
15431
15432  ;
15433  return 0;
15434}
15435_ACEOF
15436if ac_fn_c_try_compile "$LINENO"; then :
15437  # It does; now see whether it defined to BIG_ENDIAN or not.
15438	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439/* end confdefs.h.  */
15440#include <sys/types.h>
15441		#include <sys/param.h>
15442
15443int
15444main ()
15445{
15446#if BYTE_ORDER != BIG_ENDIAN
15447		 not big endian
15448		#endif
15449
15450  ;
15451  return 0;
15452}
15453_ACEOF
15454if ac_fn_c_try_compile "$LINENO"; then :
15455  ac_cv_c_bigendian=yes
15456else
15457  ac_cv_c_bigendian=no
15458fi
15459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460fi
15461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462    fi
15463    if test $ac_cv_c_bigendian = unknown; then
15464      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15465      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466/* end confdefs.h.  */
15467#include <limits.h>
15468
15469int
15470main ()
15471{
15472#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15473	      bogus endian macros
15474	     #endif
15475
15476  ;
15477  return 0;
15478}
15479_ACEOF
15480if ac_fn_c_try_compile "$LINENO"; then :
15481  # It does; now see whether it defined to _BIG_ENDIAN or not.
15482	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483/* end confdefs.h.  */
15484#include <limits.h>
15485
15486int
15487main ()
15488{
15489#ifndef _BIG_ENDIAN
15490		 not big endian
15491		#endif
15492
15493  ;
15494  return 0;
15495}
15496_ACEOF
15497if ac_fn_c_try_compile "$LINENO"; then :
15498  ac_cv_c_bigendian=yes
15499else
15500  ac_cv_c_bigendian=no
15501fi
15502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503fi
15504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505    fi
15506    if test $ac_cv_c_bigendian = unknown; then
15507      # Compile a test program.
15508      if test "$cross_compiling" = yes; then :
15509  # Try to guess by grepping values from an object file.
15510	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h.  */
15512short int ascii_mm[] =
15513		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15514		short int ascii_ii[] =
15515		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15516		int use_ascii (int i) {
15517		  return ascii_mm[i] + ascii_ii[i];
15518		}
15519		short int ebcdic_ii[] =
15520		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15521		short int ebcdic_mm[] =
15522		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15523		int use_ebcdic (int i) {
15524		  return ebcdic_mm[i] + ebcdic_ii[i];
15525		}
15526		extern int foo;
15527
15528int
15529main ()
15530{
15531return use_ascii (foo) == use_ebcdic (foo);
15532  ;
15533  return 0;
15534}
15535_ACEOF
15536if ac_fn_c_try_compile "$LINENO"; then :
15537  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15538	      ac_cv_c_bigendian=yes
15539	    fi
15540	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15541	      if test "$ac_cv_c_bigendian" = unknown; then
15542		ac_cv_c_bigendian=no
15543	      else
15544		# finding both strings is unlikely to happen, but who knows?
15545		ac_cv_c_bigendian=unknown
15546	      fi
15547	    fi
15548fi
15549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550else
15551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552/* end confdefs.h.  */
15553$ac_includes_default
15554int
15555main ()
15556{
15557
15558	     /* Are we little or big endian?  From Harbison&Steele.  */
15559	     union
15560	     {
15561	       long int l;
15562	       char c[sizeof (long int)];
15563	     } u;
15564	     u.l = 1;
15565	     return u.c[sizeof (long int) - 1] == 1;
15566
15567  ;
15568  return 0;
15569}
15570_ACEOF
15571if ac_fn_c_try_run "$LINENO"; then :
15572  ac_cv_c_bigendian=no
15573else
15574  ac_cv_c_bigendian=yes
15575fi
15576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15577  conftest.$ac_objext conftest.beam conftest.$ac_ext
15578fi
15579
15580    fi
15581fi
15582:
15583 case $ac_cv_c_bigendian in #(
15584   yes)
15585     gl_cv_cc_double_expbit0="word 0 bit 20";; #(
15586   no)
15587     gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
15588   universal)
15589
15590$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15591
15592     ;; #(
15593   *)
15594     gl_cv_cc_double_expbit0="unknown" ;;
15595 esac
15596
15597
15598fi
15599rm -f conftest*
15600
15601
15602else
15603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604/* end confdefs.h.  */
15605
15606#include <float.h>
15607#include <stddef.h>
15608#include <stdio.h>
15609#include <string.h>
15610#define NWORDS \
15611  ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
15612typedef union { double value; unsigned int word[NWORDS]; } memory_double;
15613static unsigned int ored_words[NWORDS];
15614static unsigned int anded_words[NWORDS];
15615static void add_to_ored_words (double x)
15616{
15617  memory_double m;
15618  size_t i;
15619  /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
15620  memset (&m, 0, sizeof (memory_double));
15621  m.value = x;
15622  for (i = 0; i < NWORDS; i++)
15623    {
15624      ored_words[i] |= m.word[i];
15625      anded_words[i] &= m.word[i];
15626    }
15627}
15628int main ()
15629{
15630  size_t j;
15631  FILE *fp = fopen ("conftest.out", "w");
15632  if (fp == NULL)
15633    return 1;
15634  for (j = 0; j < NWORDS; j++)
15635    anded_words[j] = ~ (unsigned int) 0;
15636  add_to_ored_words (0.25);
15637  add_to_ored_words (0.5);
15638  add_to_ored_words (1.0);
15639  add_to_ored_words (2.0);
15640  add_to_ored_words (4.0);
15641  /* Remove bits that are common (e.g. if representation of the first mantissa
15642     bit is explicit).  */
15643  for (j = 0; j < NWORDS; j++)
15644    ored_words[j] &= ~anded_words[j];
15645  /* Now find the nonzero word.  */
15646  for (j = 0; j < NWORDS; j++)
15647    if (ored_words[j] != 0)
15648      break;
15649  if (j < NWORDS)
15650    {
15651      size_t i;
15652      for (i = j + 1; i < NWORDS; i++)
15653        if (ored_words[i] != 0)
15654          {
15655            fprintf (fp, "unknown");
15656            return (fclose (fp) != 0);
15657          }
15658      for (i = 0; ; i++)
15659        if ((ored_words[j] >> i) & 1)
15660          {
15661            fprintf (fp, "word %d bit %d", (int) j, (int) i);
15662            return (fclose (fp) != 0);
15663          }
15664    }
15665  fprintf (fp, "unknown");
15666  return (fclose (fp) != 0);
15667}
15668
15669_ACEOF
15670if ac_fn_c_try_run "$LINENO"; then :
15671  gl_cv_cc_double_expbit0=`cat conftest.out`
15672else
15673  gl_cv_cc_double_expbit0="unknown"
15674fi
15675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15676  conftest.$ac_objext conftest.beam conftest.$ac_ext
15677fi
15678
15679      rm -f conftest.out
15680
15681fi
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
15683$as_echo "$gl_cv_cc_double_expbit0" >&6; }
15684  case "$gl_cv_cc_double_expbit0" in
15685    word*bit*)
15686      word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
15687      bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
15688
15689cat >>confdefs.h <<_ACEOF
15690#define DBL_EXPBIT0_WORD $word
15691_ACEOF
15692
15693
15694cat >>confdefs.h <<_ACEOF
15695#define DBL_EXPBIT0_BIT $bit
15696_ACEOF
15697
15698      ;;
15699  esac
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
15710$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
15711if ${gl_cv_func_snprintf_retval_c99+:} false; then :
15712  $as_echo_n "(cached) " >&6
15713else
15714
15715      if test "$cross_compiling" = yes; then :
15716  case "$host_os" in
15717                                 # Guess yes on glibc systems.
15718           *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
15719                                 # Guess yes on musl systems.
15720           *-musl*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
15721                                 # Guess yes on FreeBSD >= 5.
15722           freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
15723           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
15724                                 # Guess yes on Mac OS X >= 10.3.
15725           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
15726           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
15727                                 # Guess yes on OpenBSD >= 3.9.
15728           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
15729                                 gl_cv_func_snprintf_retval_c99="guessing no";;
15730           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
15731                                 # Guess yes on Solaris >= 2.10.
15732           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
15733           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
15734                                 # Guess yes on AIX >= 4.
15735           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
15736           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
15737                                 # Guess yes on NetBSD >= 3.
15738           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
15739                                 gl_cv_func_snprintf_retval_c99="guessing no";;
15740           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
15741                                 # Guess yes on BeOS.
15742           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
15743                                 # Guess yes on Android.
15744           linux*-android*)      gl_cv_func_snprintf_retval_c99="guessing yes";;
15745                                 # Guess yes on MSVC, no on mingw.
15746           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747/* end confdefs.h.  */
15748
15749#ifdef _MSC_VER
15750 Known
15751#endif
15752
15753_ACEOF
15754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15755  $EGREP "Known" >/dev/null 2>&1; then :
15756  gl_cv_func_snprintf_retval_c99="guessing yes"
15757else
15758  gl_cv_func_snprintf_retval_c99="guessing no"
15759fi
15760rm -f conftest*
15761
15762                                 ;;
15763                                 # If we don't know, obey --enable-cross-guesses.
15764           *)                    gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
15765         esac
15766
15767else
15768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769/* end confdefs.h.  */
15770
15771#include <stdio.h>
15772#include <string.h>
15773#if HAVE_SNPRINTF
15774# define my_snprintf snprintf
15775#else
15776# include <stdarg.h>
15777static int my_snprintf (char *buf, int size, const char *format, ...)
15778{
15779  va_list args;
15780  int ret;
15781  va_start (args, format);
15782  ret = vsnprintf (buf, size, format, args);
15783  va_end (args);
15784  return ret;
15785}
15786#endif
15787static char buf[100];
15788int main ()
15789{
15790  strcpy (buf, "ABCDEF");
15791  if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
15792    return 1;
15793  if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
15794    return 2;
15795  if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
15796    return 3;
15797  return 0;
15798}
15799_ACEOF
15800if ac_fn_c_try_run "$LINENO"; then :
15801  gl_cv_func_snprintf_retval_c99=yes
15802else
15803  gl_cv_func_snprintf_retval_c99=no
15804fi
15805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15806  conftest.$ac_objext conftest.beam conftest.$ac_ext
15807fi
15808
15809
15810fi
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
15812$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
15813
15814
15815
15816
15817
15818  for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
15819do :
15820  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15821ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15822if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15823  cat >>confdefs.h <<_ACEOF
15824#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15825_ACEOF
15826
15827fi
15828done
15829
15830      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
15831"
15832if test "x$ac_cv_have_decl__snprintf" = xyes; then :
15833  ac_have_decl=1
15834else
15835  ac_have_decl=0
15836fi
15837
15838cat >>confdefs.h <<_ACEOF
15839#define HAVE_DECL__SNPRINTF $ac_have_decl
15840_ACEOF
15841
15842
15843
15844  case "$gl_cv_func_snprintf_retval_c99" in
15845    *yes)
15846
15847$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
15848
15849      ;;
15850  esac
15851
15852ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
15853if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
15854  ac_have_decl=1
15855else
15856  ac_have_decl=0
15857fi
15858
15859cat >>confdefs.h <<_ACEOF
15860#define HAVE_DECL_VSNPRINTF $ac_have_decl
15861_ACEOF
15862
15863
15864            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
15865$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
15866if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
15867  $as_echo_n "(cached) " >&6
15868else
15869  gl_cv_header_wchar_h_correct_inline=yes
15870     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871/* end confdefs.h.  */
15872
15873       #define wcstod renamed_wcstod
15874/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15875   <wchar.h>.
15876   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15877   included before <wchar.h>.  */
15878#include <stddef.h>
15879#include <stdio.h>
15880#include <time.h>
15881#include <wchar.h>
15882extern int zero (void);
15883int main () { return zero(); }
15884
15885_ACEOF
15886                              save_ac_compile="$ac_compile"
15887     ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
15888     if echo '#include "conftest.c"' >conftest1.c &&
15889        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15890  (eval $ac_compile) 2>&5
15891  ac_status=$?
15892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15893  test $ac_status = 0; }; then
15894       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895/* end confdefs.h.  */
15896
15897         #define wcstod renamed_wcstod
15898/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15899   <wchar.h>.
15900   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15901   included before <wchar.h>.  */
15902#include <stddef.h>
15903#include <stdio.h>
15904#include <time.h>
15905#include <wchar.h>
15906int zero (void) { return 0; }
15907
15908_ACEOF
15909              ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
15910       if echo '#include "conftest.c"' >conftest2.c &&
15911          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15912  (eval $ac_compile) 2>&5
15913  ac_status=$?
15914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15915  test $ac_status = 0; }; then
15916         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
15917           :
15918         else
15919           gl_cv_header_wchar_h_correct_inline=no
15920         fi
15921       fi
15922     fi
15923     ac_compile="$save_ac_compile"
15924     rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
15925
15926fi
15927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
15928$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
15929  if test $gl_cv_header_wchar_h_correct_inline = no; then
15930    as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
15931This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
15932C99 mode. You have four options:
15933  - Add the flag -fgnu89-inline to CC and reconfigure, or
15934  - Fix your include files, using parts of
15935    <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
15936  - Use a gcc version older than 4.3, or
15937  - Don't use the flags -std=c99 or -std=gnu99.
15938Configuration aborted." "$LINENO" 5
15939  fi
15940
15941
15942
15943
15944
15945  if test $ac_cv_header_crtdefs_h = yes; then
15946    HAVE_CRTDEFS_H=1
15947  else
15948    HAVE_CRTDEFS_H=0
15949  fi
15950
15951
15952
15953  GNULIB_ISWBLANK=0;
15954  GNULIB_ISWDIGIT=0;
15955  GNULIB_ISWXDIGIT=0;
15956  GNULIB_WCTYPE=0;
15957  GNULIB_ISWCTYPE=0;
15958  GNULIB_WCTRANS=0;
15959  GNULIB_TOWCTRANS=0;
15960    HAVE_ISWBLANK=1;
15961  HAVE_WCTYPE_T=1;
15962  HAVE_WCTRANS_T=1;
15963  REPLACE_ISWBLANK=0;
15964  REPLACE_ISWDIGIT=0;
15965  REPLACE_ISWXDIGIT=0;
15966
15967
15968
15969
15970
15971
15972   if true; then
15973  GL_COND_LIBTOOL_TRUE=
15974  GL_COND_LIBTOOL_FALSE='#'
15975else
15976  GL_COND_LIBTOOL_TRUE='#'
15977  GL_COND_LIBTOOL_FALSE=
15978fi
15979
15980  gl_cond_libtool=true
15981  gl_m4_base='m4'
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992  gl_source_base='lib'
15993LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
15994
15995
15996
15997  if test $ac_cv_func_alloca_works = no; then
15998    :
15999  fi
16000
16001  # Define an additional variable used in the Makefile substitution.
16002  if test $ac_cv_working_alloca_h = yes; then
16003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16004$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16005if ${gl_cv_rpl_alloca+:} false; then :
16006  $as_echo_n "(cached) " >&6
16007else
16008
16009      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010/* end confdefs.h.  */
16011
16012#if defined __GNUC__ || defined _AIX || defined _MSC_VER
16013        Need own alloca
16014#endif
16015
16016_ACEOF
16017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16018  $EGREP "Need own alloca" >/dev/null 2>&1; then :
16019  gl_cv_rpl_alloca=yes
16020else
16021  gl_cv_rpl_alloca=no
16022fi
16023rm -f conftest*
16024
16025
16026fi
16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16028$as_echo "$gl_cv_rpl_alloca" >&6; }
16029    if test $gl_cv_rpl_alloca = yes; then
16030
16031$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16032
16033      ALLOCA_H=alloca.h
16034    else
16035                  ALLOCA_H=
16036    fi
16037  else
16038    ALLOCA_H=alloca.h
16039  fi
16040
16041   if test -n "$ALLOCA_H"; then
16042  GL_GENERATE_ALLOCA_H_TRUE=
16043  GL_GENERATE_ALLOCA_H_FALSE='#'
16044else
16045  GL_GENERATE_ALLOCA_H_TRUE='#'
16046  GL_GENERATE_ALLOCA_H_FALSE=
16047fi
16048
16049
16050  if test $ac_cv_working_alloca_h = yes; then
16051    HAVE_ALLOCA_H=1
16052  else
16053    HAVE_ALLOCA_H=0
16054  fi
16055
16056
16057
16058
16059
16060
16061
16062  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16063"
16064if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
16065  ac_have_decl=1
16066else
16067  ac_have_decl=0
16068fi
16069
16070cat >>confdefs.h <<_ACEOF
16071#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16072_ACEOF
16073if test $ac_have_decl = 1; then :
16074
16075else
16076
16077$as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
16078
16079fi
16080
16081  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16082"
16083if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
16084  ac_have_decl=1
16085else
16086  ac_have_decl=0
16087fi
16088
16089cat >>confdefs.h <<_ACEOF
16090#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16091_ACEOF
16092if test $ac_have_decl = 1; then :
16093
16094else
16095
16096$as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
16097
16098fi
16099
16100
16101  # Check if program_invocation_name and program_invocation_short_name
16102  # are defined elsewhere. It is improbable that only one of them will
16103  # be defined and other not, I prefer to stay on the safe side and to
16104  # test each one separately.
16105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
16106$as_echo_n "checking whether program_invocation_name is defined... " >&6; }
16107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108/* end confdefs.h.  */
16109#include <argp.h>
16110int
16111main ()
16112{
16113program_invocation_name = "test";
16114  ;
16115  return 0;
16116}
16117_ACEOF
16118if ac_fn_c_try_link "$LINENO"; then :
16119
16120$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
16121
16122                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16123$as_echo "yes" >&6; }
16124else
16125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126$as_echo "no" >&6; }
16127fi
16128rm -f core conftest.err conftest.$ac_objext \
16129    conftest$ac_exeext conftest.$ac_ext
16130
16131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
16132$as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
16133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134/* end confdefs.h.  */
16135#include <argp.h>
16136int
16137main ()
16138{
16139program_invocation_short_name = "test";
16140  ;
16141  return 0;
16142}
16143_ACEOF
16144if ac_fn_c_try_link "$LINENO"; then :
16145
16146$as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
16147
16148                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16149$as_echo "yes" >&6; }
16150else
16151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152$as_echo "no" >&6; }
16153fi
16154rm -f core conftest.err conftest.$ac_objext \
16155    conftest$ac_exeext conftest.$ac_ext
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
16177
16178
16179
16180  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
16181
16182
16183
16184cat >>confdefs.h <<_ACEOF
16185#define GNULIB_CLOSE_STREAM 1
16186_ACEOF
16187
16188
16189
16190
16191
16192
16193
16194
16195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
16196$as_echo_n "checking whether // is distinct from /... " >&6; }
16197if ${gl_cv_double_slash_root+:} false; then :
16198  $as_echo_n "(cached) " >&6
16199else
16200   if test x"$cross_compiling" = xyes ; then
16201        # When cross-compiling, there is no way to tell whether // is special
16202        # short of a list of hosts.  However, the only known hosts to date
16203        # that have a distinct // are Apollo DomainOS (too old to port to),
16204        # Cygwin, and z/OS.  If anyone knows of another system for which // has
16205        # special semantics and is distinct from /, please report it to
16206        # <bug-gnulib@gnu.org>.
16207        case $host in
16208          *-cygwin | i370-ibm-openedition)
16209            gl_cv_double_slash_root=yes ;;
16210          *)
16211            # Be optimistic and assume that / and // are the same when we
16212            # don't know.
16213            gl_cv_double_slash_root='unknown, assuming no' ;;
16214        esac
16215      else
16216        set x `ls -di / // 2>/dev/null`
16217        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
16218          gl_cv_double_slash_root=no
16219        else
16220          gl_cv_double_slash_root=yes
16221        fi
16222      fi
16223fi
16224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
16225$as_echo "$gl_cv_double_slash_root" >&6; }
16226  if test "$gl_cv_double_slash_root" = yes; then
16227
16228$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16229
16230  fi
16231
16232
16233
16234      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
16235$as_echo_n "checking for error_at_line... " >&6; }
16236if ${ac_cv_lib_error_at_line+:} false; then :
16237  $as_echo_n "(cached) " >&6
16238else
16239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240/* end confdefs.h.  */
16241#include <error.h>
16242int
16243main ()
16244{
16245error_at_line (0, 0, "", 0, "an error occurred");
16246  ;
16247  return 0;
16248}
16249_ACEOF
16250if ac_fn_c_try_link "$LINENO"; then :
16251  ac_cv_lib_error_at_line=yes
16252else
16253  ac_cv_lib_error_at_line=no
16254fi
16255rm -f core conftest.err conftest.$ac_objext \
16256    conftest$ac_exeext conftest.$ac_ext
16257fi
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
16259$as_echo "$ac_cv_lib_error_at_line" >&6; }
16260
16261  if test $ac_cv_lib_error_at_line = no; then
16262
16263
16264
16265
16266
16267
16268
16269
16270  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
16271
16272
16273
16274  :
16275
16276  fi
16277
16278
16279  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
16280
16281
16282
16283  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297     if test $gl_cv_have_include_next = yes; then
16298       gl_cv_next_fcntl_h='<'fcntl.h'>'
16299     else
16300       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
16301$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
16302if ${gl_cv_next_fcntl_h+:} false; then :
16303  $as_echo_n "(cached) " >&6
16304else
16305
16306
16307
16308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309/* end confdefs.h.  */
16310#include <fcntl.h>
16311_ACEOF
16312                case "$host_os" in
16313    aix*) gl_absname_cpp="$ac_cpp -C" ;;
16314    *)    gl_absname_cpp="$ac_cpp" ;;
16315  esac
16316
16317  case "$host_os" in
16318    mingw*)
16319                                          gl_dirsep_regex='[/\\]'
16320      ;;
16321    *)
16322      gl_dirsep_regex='\/'
16323      ;;
16324  esac
16325      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16326  gl_header_literal_regex=`echo 'fcntl.h' \
16327                           | sed -e "$gl_make_literal_regex_sed"`
16328  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16329      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16330      s|^/[^/]|//&|
16331      p
16332      q
16333    }'
16334
16335        gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16336  sed -n "$gl_absolute_header_sed"`
16337
16338           gl_header=$gl_cv_absolute_fcntl_h
16339           gl_cv_next_fcntl_h='"'$gl_header'"'
16340
16341
16342fi
16343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
16344$as_echo "$gl_cv_next_fcntl_h" >&6; }
16345     fi
16346     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
16347
16348     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16349       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16350       gl_next_as_first_directive='<'fcntl.h'>'
16351     else
16352       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16353       gl_next_as_first_directive=$gl_cv_next_fcntl_h
16354     fi
16355     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372  FLOAT_H=
16373  REPLACE_FLOAT_LDBL=0
16374  case "$host_os" in
16375    aix* | beos* | openbsd* | mirbsd* | irix*)
16376      FLOAT_H=float.h
16377      ;;
16378    freebsd* | dragonfly*)
16379      case "$host_cpu" in
16380        i[34567]86 )
16381          FLOAT_H=float.h
16382          ;;
16383        x86_64 )
16384          # On x86_64 systems, the C compiler may still be generating
16385          # 32-bit code.
16386          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387/* end confdefs.h.  */
16388#if defined __LP64__ || defined __x86_64__ || defined __amd64__
16389                  int ok;
16390                 #else
16391                  error fail
16392                 #endif
16393
16394_ACEOF
16395if ac_fn_c_try_compile "$LINENO"; then :
16396
16397else
16398  FLOAT_H=float.h
16399fi
16400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401          ;;
16402      esac
16403      ;;
16404    linux*)
16405      case "$host_cpu" in
16406        powerpc*)
16407          FLOAT_H=float.h
16408          ;;
16409      esac
16410      ;;
16411  esac
16412  case "$host_os" in
16413    aix* | freebsd* | dragonfly* | linux*)
16414      if test -n "$FLOAT_H"; then
16415        REPLACE_FLOAT_LDBL=1
16416      fi
16417      ;;
16418  esac
16419
16420    REPLACE_ITOLD=0
16421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
16422$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
16423if ${gl_cv_func_itold_works+:} false; then :
16424  $as_echo_n "(cached) " >&6
16425else
16426
16427      if test "$cross_compiling" = yes; then :
16428  case "$host" in
16429           sparc*-*-linux*)
16430             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431/* end confdefs.h.  */
16432#if defined __LP64__ || defined __arch64__
16433                    int ok;
16434                   #else
16435                    error fail
16436                   #endif
16437
16438_ACEOF
16439if ac_fn_c_try_compile "$LINENO"; then :
16440  gl_cv_func_itold_works="guessing no"
16441else
16442  gl_cv_func_itold_works="guessing yes"
16443fi
16444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445             ;;
16446                   # Guess yes on native Windows.
16447           mingw*) gl_cv_func_itold_works="guessing yes" ;;
16448           *)      gl_cv_func_itold_works="guessing yes" ;;
16449         esac
16450
16451else
16452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453/* end confdefs.h.  */
16454
16455int i = -1;
16456volatile long double ld;
16457int main ()
16458{
16459  ld += i * 1.0L;
16460  if (ld > 0)
16461    return 1;
16462  return 0;
16463}
16464_ACEOF
16465if ac_fn_c_try_run "$LINENO"; then :
16466  gl_cv_func_itold_works=yes
16467else
16468  gl_cv_func_itold_works=no
16469fi
16470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16471  conftest.$ac_objext conftest.beam conftest.$ac_ext
16472fi
16473
16474
16475fi
16476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
16477$as_echo "$gl_cv_func_itold_works" >&6; }
16478  case "$gl_cv_func_itold_works" in
16479    *no)
16480      REPLACE_ITOLD=1
16481                  FLOAT_H=float.h
16482      ;;
16483  esac
16484
16485  if test -n "$FLOAT_H"; then
16486
16487
16488
16489
16490
16491
16492
16493
16494     if test $gl_cv_have_include_next = yes; then
16495       gl_cv_next_float_h='<'float.h'>'
16496     else
16497       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
16498$as_echo_n "checking absolute name of <float.h>... " >&6; }
16499if ${gl_cv_next_float_h+:} false; then :
16500  $as_echo_n "(cached) " >&6
16501else
16502
16503
16504
16505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506/* end confdefs.h.  */
16507#include <float.h>
16508_ACEOF
16509                case "$host_os" in
16510    aix*) gl_absname_cpp="$ac_cpp -C" ;;
16511    *)    gl_absname_cpp="$ac_cpp" ;;
16512  esac
16513
16514  case "$host_os" in
16515    mingw*)
16516                                          gl_dirsep_regex='[/\\]'
16517      ;;
16518    *)
16519      gl_dirsep_regex='\/'
16520      ;;
16521  esac
16522      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16523  gl_header_literal_regex=`echo 'float.h' \
16524                           | sed -e "$gl_make_literal_regex_sed"`
16525  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16526      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16527      s|^/[^/]|//&|
16528      p
16529      q
16530    }'
16531
16532        gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16533  sed -n "$gl_absolute_header_sed"`
16534
16535           gl_header=$gl_cv_absolute_float_h
16536           gl_cv_next_float_h='"'$gl_header'"'
16537
16538
16539fi
16540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
16541$as_echo "$gl_cv_next_float_h" >&6; }
16542     fi
16543     NEXT_FLOAT_H=$gl_cv_next_float_h
16544
16545     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16546       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16547       gl_next_as_first_directive='<'float.h'>'
16548     else
16549       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16550       gl_next_as_first_directive=$gl_cv_next_float_h
16551     fi
16552     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
16553
16554
16555
16556
16557  fi
16558
16559   if test -n "$FLOAT_H"; then
16560  GL_GENERATE_FLOAT_H_TRUE=
16561  GL_GENERATE_FLOAT_H_FALSE='#'
16562else
16563  GL_GENERATE_FLOAT_H_TRUE='#'
16564  GL_GENERATE_FLOAT_H_FALSE=
16565fi
16566
16567
16568
16569  if test $REPLACE_FLOAT_LDBL = 1; then
16570
16571
16572
16573
16574
16575
16576
16577
16578  gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
16579
16580  fi
16581  if test $REPLACE_ITOLD = 1; then
16582
16583
16584
16585
16586
16587
16588
16589
16590  gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
16591
16592  fi
16593
16594
16595  fp_headers='
16596    #include <stdio.h>
16597    #if HAVE_STDIO_EXT_H
16598    # include <stdio_ext.h>
16599    #endif
16600  '
16601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
16602$as_echo_n "checking for __fpending... " >&6; }
16603if ${gl_cv_func___fpending+:} false; then :
16604  $as_echo_n "(cached) " >&6
16605else
16606
16607      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608/* end confdefs.h.  */
16609$fp_headers
16610int
16611main ()
16612{
16613return ! __fpending (stdin);
16614  ;
16615  return 0;
16616}
16617_ACEOF
16618if ac_fn_c_try_link "$LINENO"; then :
16619  gl_cv_func___fpending=yes
16620else
16621  gl_cv_func___fpending=no
16622fi
16623rm -f core conftest.err conftest.$ac_objext \
16624    conftest$ac_exeext conftest.$ac_ext
16625
16626fi
16627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
16628$as_echo "$gl_cv_func___fpending" >&6; }
16629  if test $gl_cv_func___fpending = yes; then
16630    ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
16631"
16632if test "x$ac_cv_have_decl___fpending" = xyes; then :
16633  ac_have_decl=1
16634else
16635  ac_have_decl=0
16636fi
16637
16638cat >>confdefs.h <<_ACEOF
16639#define HAVE_DECL___FPENDING $ac_have_decl
16640_ACEOF
16641
16642  fi
16643
16644  if test $gl_cv_func___fpending = no; then
16645
16646
16647
16648
16649
16650
16651
16652
16653  gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
16654
16655  fi
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665    REPLACE_GETOPT=1
16666
16667  if test $REPLACE_GETOPT = 1; then
16668
16669
16670  if test $ac_cv_header_sys_cdefs_h = yes; then
16671    HAVE_SYS_CDEFS_H=1
16672  else
16673    HAVE_SYS_CDEFS_H=0
16674  fi
16675
16676
16677
16678$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16679
16680  GETOPT_H=getopt.h
16681  GETOPT_CDEFS_H=getopt-cdefs.h
16682
16683
16684
16685  fi
16686
16687  if test $REPLACE_GETOPT = 1; then
16688
16689
16690
16691
16692
16693
16694
16695
16696  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
16707
16708        GNULIB_GL_UNISTD_H_GETOPT=1
16709  fi
16710
16711
16712
16713
16714
16715
16716          GNULIB_GETOPT_POSIX=1
16717
16718
16719
16720
16721
16722$as_echo "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h
16723
16724
16725
16726
16727
16728
16729  ac_found=0
16730  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16731"
16732if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
16733  ac_have_decl=1
16734else
16735  ac_have_decl=0
16736fi
16737
16738cat >>confdefs.h <<_ACEOF
16739#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16740_ACEOF
16741if test $ac_have_decl = 1; then :
16742  ac_found=1
16743fi
16744
16745  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16746"
16747if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
16748  ac_have_decl=1
16749else
16750  ac_have_decl=0
16751fi
16752
16753cat >>confdefs.h <<_ACEOF
16754#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16755_ACEOF
16756if test $ac_have_decl = 1; then :
16757  ac_found=1
16758fi
16759
16760  ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
16761"
16762if test "x$ac_cv_have_decl___argv" = xyes; then :
16763  ac_have_decl=1
16764else
16765  ac_have_decl=0
16766fi
16767
16768cat >>confdefs.h <<_ACEOF
16769#define HAVE_DECL___ARGV $ac_have_decl
16770_ACEOF
16771if test $ac_have_decl = 1; then :
16772  ac_found=1
16773fi
16774
16775
16776  # Incur the cost of this test only if none of the above worked.
16777  if test $ac_found = 0; then
16778    # On OpenBSD 5.1, using the global __progname variable appears to be
16779    # the only way to implement getprogname.
16780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
16781$as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
16782if ${gl_cv_var___progname+:} false; then :
16783  $as_echo_n "(cached) " >&6
16784else
16785
16786        gl_cv_var___progname=
16787        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788/* end confdefs.h.  */
16789extern char *__progname;
16790int
16791main ()
16792{
16793return *__progname;
16794
16795  ;
16796  return 0;
16797}
16798_ACEOF
16799if ac_fn_c_try_link "$LINENO"; then :
16800  gl_cv_var___progname=yes
16801
16802fi
16803rm -f core conftest.err conftest.$ac_objext \
16804    conftest$ac_exeext conftest.$ac_ext
16805
16806
16807fi
16808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
16809$as_echo "$gl_cv_var___progname" >&6; }
16810    if test "$gl_cv_var___progname" = yes; then
16811
16812$as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
16813
16814    fi
16815  fi
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826  gl_gettimeofday_timezone=void
16827  if test $ac_cv_func_gettimeofday != yes; then
16828    HAVE_GETTIMEOFDAY=0
16829  else
16830
16831
16832
16833
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
16835$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
16836if ${gl_cv_func_gettimeofday_clobber+:} false; then :
16837  $as_echo_n "(cached) " >&6
16838else
16839  if test "$cross_compiling" = yes; then :
16840  # When cross-compiling:
16841      case "$host_os" in
16842                       # Guess all is fine on glibc systems.
16843        *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
16844                       # Guess all is fine on musl systems.
16845        *-musl*)       gl_cv_func_gettimeofday_clobber="guessing no" ;;
16846                       # Guess no on native Windows.
16847        mingw*)        gl_cv_func_gettimeofday_clobber="guessing no" ;;
16848                       # If we don't know, obey --enable-cross-guesses.
16849        *)             gl_cv_func_gettimeofday_clobber="$gl_cross_guess_inverted" ;;
16850      esac
16851
16852else
16853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854/* end confdefs.h.  */
16855#include <string.h>
16856          #include <sys/time.h>
16857          #include <time.h>
16858          #include <stdlib.h>
16859
16860int
16861main ()
16862{
16863
16864          time_t t = 0;
16865          struct tm *lt;
16866          struct tm saved_lt;
16867          struct timeval tv;
16868          lt = localtime (&t);
16869          saved_lt = *lt;
16870          gettimeofday (&tv, NULL);
16871          return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
16872
16873  ;
16874  return 0;
16875}
16876_ACEOF
16877if ac_fn_c_try_run "$LINENO"; then :
16878  gl_cv_func_gettimeofday_clobber=no
16879else
16880  gl_cv_func_gettimeofday_clobber=yes
16881fi
16882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16883  conftest.$ac_objext conftest.beam conftest.$ac_ext
16884fi
16885
16886fi
16887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
16888$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
16889
16890 case "$gl_cv_func_gettimeofday_clobber" in
16891   *yes)
16892     REPLACE_GETTIMEOFDAY=1
16893
16894$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
16895
16896
16897
16898
16899  NEED_LOCALTIME_BUFFER=1
16900  REPLACE_GMTIME=1
16901  REPLACE_LOCALTIME=1
16902
16903     ;;
16904 esac
16905
16906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
16907$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
16908if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
16909  $as_echo_n "(cached) " >&6
16910else
16911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912/* end confdefs.h.  */
16913#include <sys/time.h>
16914              struct timeval c;
16915              int gettimeofday (struct timeval *restrict, void *restrict);
16916
16917int
16918main ()
16919{
16920/* glibc uses struct timezone * rather than the POSIX void *
16921                 if _GNU_SOURCE is defined.  However, since the only portable
16922                 use of gettimeofday uses NULL as the second parameter, and
16923                 since the glibc definition is actually more typesafe, it is
16924                 not worth wrapping this to get a compliant signature.  */
16925              int (*f) (struct timeval *restrict, void *restrict)
16926                = gettimeofday;
16927              int x = f (&c, 0);
16928              return !(x | c.tv_sec | c.tv_usec);
16929
16930  ;
16931  return 0;
16932}
16933_ACEOF
16934if ac_fn_c_try_compile "$LINENO"; then :
16935  gl_cv_func_gettimeofday_posix_signature=yes
16936else
16937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h.  */
16939#include <sys/time.h>
16940int gettimeofday (struct timeval *restrict, struct timezone *restrict);
16941
16942int
16943main ()
16944{
16945
16946  ;
16947  return 0;
16948}
16949_ACEOF
16950if ac_fn_c_try_compile "$LINENO"; then :
16951  gl_cv_func_gettimeofday_posix_signature=almost
16952else
16953  gl_cv_func_gettimeofday_posix_signature=no
16954fi
16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956fi
16957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958fi
16959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
16960$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
16961    if test $gl_cv_func_gettimeofday_posix_signature = almost; then
16962      gl_gettimeofday_timezone='struct timezone'
16963    elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
16964      REPLACE_GETTIMEOFDAY=1
16965    fi
16966        if test $REPLACE_STRUCT_TIMEVAL = 1; then
16967      REPLACE_GETTIMEOFDAY=1
16968    fi
16969            case "$host_os" in
16970      mingw*) REPLACE_GETTIMEOFDAY=1 ;;
16971    esac
16972  fi
16973
16974cat >>confdefs.h <<_ACEOF
16975#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
16976_ACEOF
16977
16978
16979  if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
16980
16981
16982
16983
16984
16985
16986
16987
16988  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
16989
16990    :
16991  fi
16992
16993
16994
16995
16996
16997          GNULIB_GETTIMEOFDAY=1
16998
16999
17000
17001
17002
17003$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
17004
17005
17006
17007
17008  LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
17009
17010
17011
17012
17013         case $host_os in
17014    mingw*) REPLACE_ISATTY=1 ;;
17015  esac
17016
17017  if test $REPLACE_ISATTY = 1; then
17018
17019
17020
17021
17022
17023
17024
17025
17026  gl_LIBOBJS="$gl_LIBOBJS isatty.$ac_objext"
17027
17028    :
17029  fi
17030
17031
17032
17033
17034
17035          GNULIB_ISATTY=1
17036
17037
17038
17039
17040
17041$as_echo "#define GNULIB_TEST_ISATTY 1" >>confdefs.h
17042
17043
17044
17045
17046
17047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
17048$as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
17049if ${gl_cv_c___inline+:} false; then :
17050  $as_echo_n "(cached) " >&6
17051else
17052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053/* end confdefs.h.  */
17054typedef int foo_t;
17055           static __inline foo_t foo (void) { return 0; }
17056int
17057main ()
17058{
17059return foo ();
17060  ;
17061  return 0;
17062}
17063_ACEOF
17064if ac_fn_c_try_compile "$LINENO"; then :
17065  gl_cv_c___inline=yes
17066else
17067  gl_cv_c___inline=no
17068fi
17069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070fi
17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
17072$as_echo "$gl_cv_c___inline" >&6; }
17073  if test $gl_cv_c___inline = yes; then
17074
17075$as_echo "#define HAVE___INLINE 1" >>confdefs.h
17076
17077  fi
17078
17079
17080
17081
17082
17083    LOCALCHARSET_TESTS_ENVIRONMENT=
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095  case "$host_os" in
17096    solaris*)
17097
17098$as_echo "#define _LCONV_C99 1" >>confdefs.h
17099
17100      ;;
17101  esac
17102
17103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
17104$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
17105if ${gl_cv_header_locale_h_posix2001+:} false; then :
17106  $as_echo_n "(cached) " >&6
17107else
17108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109/* end confdefs.h.  */
17110#include <locale.h>
17111            int x = LC_MESSAGES;
17112            int y = sizeof (((struct lconv *) 0)->decimal_point);
17113int
17114main ()
17115{
17116
17117  ;
17118  return 0;
17119}
17120_ACEOF
17121if ac_fn_c_try_compile "$LINENO"; then :
17122  gl_cv_header_locale_h_posix2001=yes
17123else
17124  gl_cv_header_locale_h_posix2001=no
17125fi
17126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17127fi
17128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
17129$as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
17130
17131          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
17132$as_echo_n "checking whether struct lconv is properly defined... " >&6; }
17133if ${gl_cv_sys_struct_lconv_ok+:} false; then :
17134  $as_echo_n "(cached) " >&6
17135else
17136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137/* end confdefs.h.  */
17138#include <locale.h>
17139            struct lconv l;
17140            int x = sizeof (l.decimal_point);
17141            int y = sizeof (l.int_p_cs_precedes);
17142int
17143main ()
17144{
17145
17146  ;
17147  return 0;
17148}
17149_ACEOF
17150if ac_fn_c_try_compile "$LINENO"; then :
17151  gl_cv_sys_struct_lconv_ok=yes
17152else
17153  gl_cv_sys_struct_lconv_ok=no
17154fi
17155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17156
17157fi
17158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
17159$as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
17160  if test $gl_cv_sys_struct_lconv_ok = no; then
17161            case "$host_os" in
17162      mingw*)
17163        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164/* end confdefs.h.  */
17165
17166#ifdef _MSC_VER
17167 Special
17168#endif
17169
17170_ACEOF
17171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17172  $EGREP "Special" >/dev/null 2>&1; then :
17173
17174else
17175  REPLACE_STRUCT_LCONV=1
17176fi
17177rm -f conftest*
17178
17179        ;;
17180      *) REPLACE_STRUCT_LCONV=1 ;;
17181    esac
17182  fi
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192     if test $gl_cv_have_include_next = yes; then
17193       gl_cv_next_locale_h='<'locale.h'>'
17194     else
17195       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
17196$as_echo_n "checking absolute name of <locale.h>... " >&6; }
17197if ${gl_cv_next_locale_h+:} false; then :
17198  $as_echo_n "(cached) " >&6
17199else
17200
17201
17202
17203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204/* end confdefs.h.  */
17205#include <locale.h>
17206_ACEOF
17207                case "$host_os" in
17208    aix*) gl_absname_cpp="$ac_cpp -C" ;;
17209    *)    gl_absname_cpp="$ac_cpp" ;;
17210  esac
17211
17212  case "$host_os" in
17213    mingw*)
17214                                          gl_dirsep_regex='[/\\]'
17215      ;;
17216    *)
17217      gl_dirsep_regex='\/'
17218      ;;
17219  esac
17220      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17221  gl_header_literal_regex=`echo 'locale.h' \
17222                           | sed -e "$gl_make_literal_regex_sed"`
17223  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17224      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17225      s|^/[^/]|//&|
17226      p
17227      q
17228    }'
17229
17230        gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17231  sed -n "$gl_absolute_header_sed"`
17232
17233           gl_header=$gl_cv_absolute_locale_h
17234           gl_cv_next_locale_h='"'$gl_header'"'
17235
17236
17237fi
17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
17239$as_echo "$gl_cv_next_locale_h" >&6; }
17240     fi
17241     NEXT_LOCALE_H=$gl_cv_next_locale_h
17242
17243     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17244       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17245       gl_next_as_first_directive='<'locale.h'>'
17246     else
17247       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17248       gl_next_as_first_directive=$gl_cv_next_locale_h
17249     fi
17250     NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269  gl_LIBOBJS="$gl_LIBOBJS localtime-buffer.$ac_objext"
17270
17271
17272
17273
17274
17275  if test $ac_cv_func_lstat = yes; then
17276
17277    case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
17278      solaris* | *no)
17279        REPLACE_LSTAT=1
17280        ;;
17281    esac
17282  else
17283    HAVE_LSTAT=0
17284  fi
17285
17286  if test $REPLACE_LSTAT = 1; then
17287
17288
17289
17290
17291
17292
17293
17294
17295  gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
17296
17297    :
17298  fi
17299
17300
17301
17302
17303
17304          GNULIB_LSTAT=1
17305
17306
17307
17308
17309
17310$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
17311
17312
17313
17314
17315
17316
17317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17318$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17319if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17320  $as_echo_n "(cached) " >&6
17321else
17322  if test "$cross_compiling" = yes; then :
17323  case "$host_os" in
17324          # Guess yes on platforms where we know the result.
17325          *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
17326          | hpux* | solaris* | cygwin* | mingw*)
17327            ac_cv_func_malloc_0_nonnull="guessing yes" ;;
17328          # If we don't know, obey --enable-cross-guesses.
17329          *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
17330        esac
17331
17332else
17333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334/* end confdefs.h.  */
17335#include <stdlib.h>
17336
17337int
17338main ()
17339{
17340char *p = malloc (0);
17341            int result = !p;
17342            free (p);
17343            return result;
17344  ;
17345  return 0;
17346}
17347
17348_ACEOF
17349if ac_fn_c_try_run "$LINENO"; then :
17350  ac_cv_func_malloc_0_nonnull=yes
17351else
17352  ac_cv_func_malloc_0_nonnull=no
17353fi
17354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17355  conftest.$ac_objext conftest.beam conftest.$ac_ext
17356fi
17357
17358
17359fi
17360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17361$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17362  case "$ac_cv_func_malloc_0_nonnull" in
17363    *yes)
17364
17365$as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
17366
17367      ;;
17368    *)
17369      $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
17370
17371     REPLACE_MALLOC=1
17372
17373      ;;
17374  esac
17375
17376
17377  if test $REPLACE_MALLOC = 1; then
17378
17379
17380
17381
17382
17383
17384
17385
17386  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
17387
17388  fi
17389
17390
17391cat >>confdefs.h <<_ACEOF
17392#define GNULIB_MALLOC_GNU 1
17393_ACEOF
17394
17395
17396
17397
17398
17399  if test $gl_cv_func_malloc_posix = yes; then
17400
17401$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
17402
17403  else
17404    REPLACE_MALLOC=1
17405  fi
17406
17407  if test $REPLACE_MALLOC = 1; then
17408
17409
17410
17411
17412
17413
17414
17415
17416  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
17417
17418  fi
17419
17420
17421
17422
17423
17424          GNULIB_MALLOC_POSIX=1
17425
17426
17427
17428
17429
17430$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450        if case "$host_os" in
17451       mingw*) true ;;
17452       *) test $ac_cv_func_mbsinit = yes ;;
17453     esac \
17454    && test $ac_cv_func_mbrtowc = yes; then
17455
17456
17457
17458
17459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
17460$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
17461if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
17462  $as_echo_n "(cached) " >&6
17463else
17464
17465                  case "$host_os" in
17466                     # Guess no on AIX and OSF/1.
17467        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
17468                     # Guess yes otherwise.
17469        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
17470      esac
17471      if test $LOCALE_JA != none; then
17472        if test "$cross_compiling" = yes; then :
17473  :
17474else
17475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476/* end confdefs.h.  */
17477
17478#include <locale.h>
17479#include <string.h>
17480/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17481   <wchar.h>.
17482   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17483   included before <wchar.h>.  */
17484#include <stddef.h>
17485#include <stdio.h>
17486#include <time.h>
17487#include <wchar.h>
17488int main ()
17489{
17490  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
17491    {
17492      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
17493      mbstate_t state;
17494      wchar_t wc;
17495
17496      memset (&state, '\0', sizeof (mbstate_t));
17497      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
17498        if (mbsinit (&state))
17499          return 2;
17500    }
17501  return 0;
17502}
17503_ACEOF
17504if ac_fn_c_try_run "$LINENO"; then :
17505  gl_cv_func_mbrtowc_incomplete_state=yes
17506else
17507  gl_cv_func_mbrtowc_incomplete_state=no
17508fi
17509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17510  conftest.$ac_objext conftest.beam conftest.$ac_ext
17511fi
17512
17513      else
17514        if test $LOCALE_FR_UTF8 != none; then
17515          if test "$cross_compiling" = yes; then :
17516  :
17517else
17518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519/* end confdefs.h.  */
17520
17521#include <locale.h>
17522#include <string.h>
17523/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17524   <wchar.h>.
17525   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17526   included before <wchar.h>.  */
17527#include <stddef.h>
17528#include <stdio.h>
17529#include <time.h>
17530#include <wchar.h>
17531int main ()
17532{
17533  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
17534    {
17535      const char input[] = "B\303\274\303\237er"; /* "Büßer" */
17536      mbstate_t state;
17537      wchar_t wc;
17538
17539      memset (&state, '\0', sizeof (mbstate_t));
17540      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
17541        if (mbsinit (&state))
17542          return 2;
17543    }
17544  return 0;
17545}
17546_ACEOF
17547if ac_fn_c_try_run "$LINENO"; then :
17548  gl_cv_func_mbrtowc_incomplete_state=yes
17549else
17550  gl_cv_func_mbrtowc_incomplete_state=no
17551fi
17552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17553  conftest.$ac_objext conftest.beam conftest.$ac_ext
17554fi
17555
17556        fi
17557      fi
17558
17559fi
17560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
17561$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
17562
17563
17564
17565
17566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
17567$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
17568if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
17569  $as_echo_n "(cached) " >&6
17570else
17571
17572                  case "$host_os" in
17573                    # Guess no on Solaris 8.
17574        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
17575                    # Guess yes otherwise.
17576        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
17577      esac
17578      if test $LOCALE_ZH_CN != none; then
17579        if test "$cross_compiling" = yes; then :
17580  :
17581else
17582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583/* end confdefs.h.  */
17584
17585#include <locale.h>
17586#include <stdlib.h>
17587#include <string.h>
17588/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17589   <wchar.h>.
17590   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17591   included before <wchar.h>.  */
17592#include <stddef.h>
17593#include <stdio.h>
17594#include <time.h>
17595#include <wchar.h>
17596int main ()
17597{
17598  /* This fails on Solaris 8:
17599     mbrtowc returns 2, and sets wc to 0x00F0.
17600     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
17601  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
17602    {
17603      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
17604      mbstate_t state;
17605      wchar_t wc;
17606
17607      memset (&state, '\0', sizeof (mbstate_t));
17608      if (mbrtowc (&wc, input + 3, 6, &state) != 4
17609          && mbtowc (&wc, input + 3, 6) == 4)
17610        return 2;
17611    }
17612  return 0;
17613}
17614_ACEOF
17615if ac_fn_c_try_run "$LINENO"; then :
17616  gl_cv_func_mbrtowc_sanitycheck=yes
17617else
17618  gl_cv_func_mbrtowc_sanitycheck=no
17619fi
17620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17621  conftest.$ac_objext conftest.beam conftest.$ac_ext
17622fi
17623
17624      fi
17625
17626fi
17627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
17628$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
17629
17630    REPLACE_MBSTATE_T=0
17631    case "$gl_cv_func_mbrtowc_incomplete_state" in
17632      *yes) ;;
17633      *) REPLACE_MBSTATE_T=1 ;;
17634    esac
17635    case "$gl_cv_func_mbrtowc_sanitycheck" in
17636      *yes) ;;
17637      *) REPLACE_MBSTATE_T=1 ;;
17638    esac
17639  else
17640    REPLACE_MBSTATE_T=1
17641  fi
17642
17643
17644
17645  if test $ac_cv_func_mbrtowc = no; then
17646    HAVE_MBRTOWC=0
17647    ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
17648/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17649   <wchar.h>.
17650   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17651   included before <wchar.h>.  */
17652#include <stddef.h>
17653#include <stdio.h>
17654#include <time.h>
17655#include <wchar.h>
17656
17657"
17658if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
17659  ac_have_decl=1
17660else
17661  ac_have_decl=0
17662fi
17663
17664cat >>confdefs.h <<_ACEOF
17665#define HAVE_DECL_MBRTOWC $ac_have_decl
17666_ACEOF
17667
17668    if test $ac_cv_have_decl_mbrtowc = yes; then
17669                        REPLACE_MBRTOWC=1
17670    fi
17671  else
17672    if test $REPLACE_MBSTATE_T = 1; then
17673      REPLACE_MBRTOWC=1
17674    else
17675
17676
17677
17678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
17679$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
17680if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
17681  $as_echo_n "(cached) " >&6
17682else
17683
17684                  case "$host_os" in
17685                  # Guess no on Solaris.
17686        solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
17687                  # Guess yes otherwise.
17688        *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
17689      esac
17690      if test $LOCALE_FR_UTF8 != none; then
17691        if test "$cross_compiling" = yes; then :
17692  :
17693else
17694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695/* end confdefs.h.  */
17696
17697#include <locale.h>
17698#include <stdlib.h>
17699#include <string.h>
17700/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17701   <wchar.h>.
17702   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17703   included before <wchar.h>.  */
17704#include <stddef.h>
17705#include <stdio.h>
17706#include <time.h>
17707#include <wchar.h>
17708int main ()
17709{
17710  int result = 0;
17711
17712  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
17713    {
17714      char input[] = "\303\237er";
17715      mbstate_t state;
17716      wchar_t wc;
17717      size_t ret;
17718
17719      memset (&state, '\0', sizeof (mbstate_t));
17720      wc = (wchar_t) 0xBADFACE;
17721      ret = mbrtowc (&wc, input, 5, &state);
17722      if (ret != 2)
17723        result |= 1;
17724      if (!mbsinit (&state))
17725        result |= 2;
17726
17727      memset (&state, '\0', sizeof (mbstate_t));
17728      ret = mbrtowc (NULL, input, 5, &state);
17729      if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
17730        result |= 4;
17731      if (!mbsinit (&state))
17732        result |= 8;
17733    }
17734  return result;
17735}
17736_ACEOF
17737if ac_fn_c_try_run "$LINENO"; then :
17738  gl_cv_func_mbrtowc_null_arg1=yes
17739else
17740  gl_cv_func_mbrtowc_null_arg1=no
17741fi
17742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17743  conftest.$ac_objext conftest.beam conftest.$ac_ext
17744fi
17745
17746      fi
17747
17748fi
17749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
17750$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
17751
17752
17753
17754
17755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
17756$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
17757if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
17758  $as_echo_n "(cached) " >&6
17759else
17760
17761                  case "$host_os" in
17762              # Guess no on OSF/1.
17763        osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
17764              # Guess yes otherwise.
17765        *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
17766      esac
17767      if test $LOCALE_FR_UTF8 != none; then
17768        if test "$cross_compiling" = yes; then :
17769  :
17770else
17771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772/* end confdefs.h.  */
17773
17774#include <locale.h>
17775#include <string.h>
17776/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17777   <wchar.h>.
17778   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17779   included before <wchar.h>.  */
17780#include <stddef.h>
17781#include <stdio.h>
17782#include <time.h>
17783#include <wchar.h>
17784int main ()
17785{
17786  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
17787    {
17788      mbstate_t state;
17789      wchar_t wc;
17790      int ret;
17791
17792      memset (&state, '\0', sizeof (mbstate_t));
17793      wc = (wchar_t) 0xBADFACE;
17794      mbrtowc (&wc, NULL, 5, &state);
17795      /* Check that wc was not modified.  */
17796      if (wc != (wchar_t) 0xBADFACE)
17797        return 2;
17798    }
17799  return 0;
17800}
17801_ACEOF
17802if ac_fn_c_try_run "$LINENO"; then :
17803  gl_cv_func_mbrtowc_null_arg2=yes
17804else
17805  gl_cv_func_mbrtowc_null_arg2=no
17806fi
17807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17808  conftest.$ac_objext conftest.beam conftest.$ac_ext
17809fi
17810
17811      fi
17812
17813fi
17814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
17815$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
17816
17817
17818
17819
17820
17821
17822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
17823$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
17824if ${gl_cv_func_mbrtowc_retval+:} false; then :
17825  $as_echo_n "(cached) " >&6
17826else
17827
17828                  case "$host_os" in
17829                                   # Guess no on HP-UX, Solaris, native Windows.
17830        hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
17831                                   # Guess yes otherwise.
17832        *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
17833      esac
17834      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
17835         || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
17836        if test "$cross_compiling" = yes; then :
17837  :
17838else
17839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840/* end confdefs.h.  */
17841
17842#include <locale.h>
17843#include <string.h>
17844/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17845   <wchar.h>.
17846   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17847   included before <wchar.h>.  */
17848#include <stddef.h>
17849#include <stdio.h>
17850#include <time.h>
17851#include <wchar.h>
17852int main ()
17853{
17854  int result = 0;
17855  int found_some_locale = 0;
17856  /* This fails on Solaris.  */
17857  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
17858    {
17859      char input[] = "B\303\274\303\237er"; /* "Büßer" */
17860      mbstate_t state;
17861      wchar_t wc;
17862
17863      memset (&state, '\0', sizeof (mbstate_t));
17864      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
17865        {
17866          input[1] = '\0';
17867          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
17868            result |= 1;
17869        }
17870      found_some_locale = 1;
17871    }
17872  /* This fails on HP-UX 11.11.  */
17873  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
17874    {
17875      char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
17876      mbstate_t state;
17877      wchar_t wc;
17878
17879      memset (&state, '\0', sizeof (mbstate_t));
17880      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
17881        {
17882          input[1] = '\0';
17883          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
17884            result |= 2;
17885        }
17886      found_some_locale = 1;
17887    }
17888  /* This fails on native Windows.  */
17889  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
17890    {
17891      char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
17892      mbstate_t state;
17893      wchar_t wc;
17894
17895      memset (&state, '\0', sizeof (mbstate_t));
17896      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
17897        {
17898          input[3] = '\0';
17899          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
17900            result |= 4;
17901        }
17902      found_some_locale = 1;
17903    }
17904  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
17905    {
17906      char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
17907      mbstate_t state;
17908      wchar_t wc;
17909
17910      memset (&state, '\0', sizeof (mbstate_t));
17911      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
17912        {
17913          input[3] = '\0';
17914          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
17915            result |= 8;
17916        }
17917      found_some_locale = 1;
17918    }
17919  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
17920    {
17921      char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
17922      mbstate_t state;
17923      wchar_t wc;
17924
17925      memset (&state, '\0', sizeof (mbstate_t));
17926      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
17927        {
17928          input[3] = '\0';
17929          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
17930            result |= 16;
17931        }
17932      found_some_locale = 1;
17933    }
17934  return (found_some_locale ? result : 77);
17935}
17936_ACEOF
17937if ac_fn_c_try_run "$LINENO"; then :
17938  gl_cv_func_mbrtowc_retval=yes
17939else
17940  if test $? != 77; then
17941             gl_cv_func_mbrtowc_retval=no
17942           fi
17943
17944fi
17945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17946  conftest.$ac_objext conftest.beam conftest.$ac_ext
17947fi
17948
17949      fi
17950
17951fi
17952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
17953$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
17954
17955
17956
17957
17958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
17959$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
17960if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
17961  $as_echo_n "(cached) " >&6
17962else
17963
17964                  case "$host_os" in
17965                       # Guess no on Solaris 8 and 9.
17966        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
17967                       # Guess yes otherwise.
17968        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
17969      esac
17970      if test $LOCALE_ZH_CN != none; then
17971        if test "$cross_compiling" = yes; then :
17972  :
17973else
17974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975/* end confdefs.h.  */
17976
17977#include <locale.h>
17978#include <string.h>
17979/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17980   <wchar.h>.
17981   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17982   included before <wchar.h>.  */
17983#include <stddef.h>
17984#include <stdio.h>
17985#include <time.h>
17986#include <wchar.h>
17987int main ()
17988{
17989  /* This fails on Solaris 8 and 9.  */
17990  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
17991    {
17992      mbstate_t state;
17993      wchar_t wc;
17994
17995      memset (&state, '\0', sizeof (mbstate_t));
17996      if (mbrtowc (&wc, "", 1, &state) != 0)
17997        return 2;
17998    }
17999  return 0;
18000}
18001_ACEOF
18002if ac_fn_c_try_run "$LINENO"; then :
18003  gl_cv_func_mbrtowc_nul_retval=yes
18004else
18005  gl_cv_func_mbrtowc_nul_retval=no
18006fi
18007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18008  conftest.$ac_objext conftest.beam conftest.$ac_ext
18009fi
18010
18011      fi
18012
18013fi
18014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
18015$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
18016
18017
18018
18019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
18020$as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
18021if ${gl_cv_func_mbrtowc_stores_incomplete+:} false; then :
18022  $as_echo_n "(cached) " >&6
18023else
18024
18025               case "$host_os" in
18026               # Guess yes on native Windows.
18027       mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;;
18028       *)      gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;;
18029     esac
18030     case "$host_os" in
18031       mingw*)
18032         if test "$cross_compiling" = yes; then :
18033  :
18034else
18035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036/* end confdefs.h.  */
18037
18038#include <locale.h>
18039#include <string.h>
18040/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18041   <wchar.h>.
18042   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18043   included before <wchar.h>.  */
18044#include <stddef.h>
18045#include <stdio.h>
18046#include <time.h>
18047#include <wchar.h>
18048int main ()
18049{
18050  int result = 0;
18051  if (setlocale (LC_ALL, "French_France.65001") != NULL)
18052    {
18053      wchar_t wc = (wchar_t) 0xBADFACE;
18054      mbstate_t state;
18055
18056      memset (&state, '\0', sizeof (mbstate_t));
18057      if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
18058          && wc != (wchar_t) 0xBADFACE)
18059        result |= 1;
18060    }
18061  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
18062    {
18063      wchar_t wc = (wchar_t) 0xBADFACE;
18064      mbstate_t state;
18065
18066      memset (&state, '\0', sizeof (mbstate_t));
18067      if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
18068          && wc != (wchar_t) 0xBADFACE)
18069        result |= 2;
18070    }
18071  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
18072    {
18073      wchar_t wc = (wchar_t) 0xBADFACE;
18074      mbstate_t state;
18075
18076      memset (&state, '\0', sizeof (mbstate_t));
18077      if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
18078          && wc != (wchar_t) 0xBADFACE)
18079        result |= 4;
18080    }
18081  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
18082    {
18083      wchar_t wc = (wchar_t) 0xBADFACE;
18084      mbstate_t state;
18085
18086      memset (&state, '\0', sizeof (mbstate_t));
18087      if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
18088          && wc != (wchar_t) 0xBADFACE)
18089        result |= 8;
18090    }
18091  return result;
18092}
18093_ACEOF
18094if ac_fn_c_try_run "$LINENO"; then :
18095  gl_cv_func_mbrtowc_stores_incomplete=no
18096else
18097  gl_cv_func_mbrtowc_stores_incomplete=yes
18098fi
18099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18100  conftest.$ac_objext conftest.beam conftest.$ac_ext
18101fi
18102
18103         ;;
18104       *)
18105
18106         if test $LOCALE_FR_UTF8 != none; then
18107           if test "$cross_compiling" = yes; then :
18108  :
18109else
18110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111/* end confdefs.h.  */
18112
18113#include <locale.h>
18114#include <string.h>
18115/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18116   <wchar.h>.
18117   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18118   included before <wchar.h>.  */
18119#include <stddef.h>
18120#include <stdio.h>
18121#include <time.h>
18122#include <wchar.h>
18123int main ()
18124{
18125  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18126    {
18127      wchar_t wc = (wchar_t) 0xBADFACE;
18128      mbstate_t state;
18129
18130      memset (&state, '\0', sizeof (mbstate_t));
18131      if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
18132          && wc != (wchar_t) 0xBADFACE)
18133        return 1;
18134    }
18135  return 0;
18136}
18137_ACEOF
18138if ac_fn_c_try_run "$LINENO"; then :
18139  gl_cv_func_mbrtowc_stores_incomplete=no
18140else
18141  gl_cv_func_mbrtowc_stores_incomplete=yes
18142fi
18143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18144  conftest.$ac_objext conftest.beam conftest.$ac_ext
18145fi
18146
18147         fi
18148         ;;
18149     esac
18150
18151fi
18152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
18153$as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
18154
18155
18156
18157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
18158$as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
18159if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
18160  $as_echo_n "(cached) " >&6
18161else
18162
18163                  case "$host_os" in
18164                              # Guess no on AIX and glibc systems.
18165        aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
18166                              # Guess yes on native Windows.
18167        mingw*)               gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
18168        *)                    gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
18169      esac
18170      if test "$cross_compiling" = yes; then :
18171  :
18172else
18173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174/* end confdefs.h.  */
18175
18176           #include <wchar.h>
18177           static wchar_t wc;
18178           static mbstate_t mbs;
18179           int
18180           main (void)
18181           {
18182             return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
18183           }
18184_ACEOF
18185if ac_fn_c_try_run "$LINENO"; then :
18186  gl_cv_func_mbrtowc_empty_input=yes
18187else
18188  gl_cv_func_mbrtowc_empty_input=no
18189fi
18190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18191  conftest.$ac_objext conftest.beam conftest.$ac_ext
18192fi
18193
18194
18195fi
18196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
18197$as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
18198
18199
18200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
18201$as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
18202if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false; then :
18203  $as_echo_n "(cached) " >&6
18204else
18205
18206               gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal"
18207
18208     if test "$cross_compiling" = yes; then :
18209  case "$host_os" in
18210                 # Guess yes on native Windows.
18211         mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;;
18212       esac
18213
18214else
18215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216/* end confdefs.h.  */
18217#include <limits.h>
18218            #include <locale.h>
18219            #include <wchar.h>
18220
18221int
18222main ()
18223{
18224
18225            int i;
18226            char *locale = setlocale (LC_ALL, "C");
18227            if (! locale)
18228              return 2;
18229            for (i = CHAR_MIN; i <= CHAR_MAX; i++)
18230              {
18231                char c = i;
18232                wchar_t wc;
18233                mbstate_t mbs = { 0, };
18234                size_t ss = mbrtowc (&wc, &c, 1, &mbs);
18235                if (1 < ss)
18236                  return 3;
18237              }
18238            return 0;
18239
18240  ;
18241  return 0;
18242}
18243_ACEOF
18244if ac_fn_c_try_run "$LINENO"; then :
18245  gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes
18246else
18247  gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no
18248fi
18249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18250  conftest.$ac_objext conftest.beam conftest.$ac_ext
18251fi
18252
18253
18254fi
18255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
18256$as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
18257
18258      case "$gl_cv_func_mbrtowc_null_arg1" in
18259        *yes) ;;
18260        *)
18261$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
18262
18263           REPLACE_MBRTOWC=1
18264           ;;
18265      esac
18266      case "$gl_cv_func_mbrtowc_null_arg2" in
18267        *yes) ;;
18268        *)
18269$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
18270
18271           REPLACE_MBRTOWC=1
18272           ;;
18273      esac
18274      case "$gl_cv_func_mbrtowc_retval" in
18275        *yes) ;;
18276        *)
18277$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
18278
18279           REPLACE_MBRTOWC=1
18280           ;;
18281      esac
18282      case "$gl_cv_func_mbrtowc_nul_retval" in
18283        *yes) ;;
18284        *)
18285$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
18286
18287           REPLACE_MBRTOWC=1
18288           ;;
18289      esac
18290      case "$gl_cv_func_mbrtowc_stores_incomplete" in
18291        *no) ;;
18292        *)
18293$as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
18294
18295           REPLACE_MBRTOWC=1
18296           ;;
18297      esac
18298      case "$gl_cv_func_mbrtowc_empty_input" in
18299        *yes) ;;
18300        *)
18301$as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
18302
18303           REPLACE_MBRTOWC=1
18304           ;;
18305      esac
18306      case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
18307        *yes) ;;
18308        *)
18309$as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
18310
18311           REPLACE_MBRTOWC=1
18312           ;;
18313      esac
18314    fi
18315  fi
18316  if test $REPLACE_MBSTATE_T = 1; then
18317    case "$host_os" in
18318      mingw*) LIB_MBRTOWC= ;;
18319      *)
18320
18321
18322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
18323$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
18324if ${gl_cv_have_weak+:} false; then :
18325  $as_echo_n "(cached) " >&6
18326else
18327  gl_cv_have_weak=no
18328          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329/* end confdefs.h.  */
18330extern void xyzzy ();
18331#pragma weak xyzzy
18332int
18333main ()
18334{
18335xyzzy();
18336  ;
18337  return 0;
18338}
18339_ACEOF
18340if ac_fn_c_try_link "$LINENO"; then :
18341  gl_cv_have_weak=maybe
18342fi
18343rm -f core conftest.err conftest.$ac_objext \
18344    conftest$ac_exeext conftest.$ac_ext
18345     if test $gl_cv_have_weak = maybe; then
18346                     if test "$cross_compiling" = yes; then :
18347                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348/* end confdefs.h.  */
18349#ifdef __ELF__
18350             Extensible Linking Format
18351             #endif
18352
18353_ACEOF
18354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18355  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
18356  gl_cv_have_weak="guessing yes"
18357else
18358  gl_cv_have_weak="guessing no"
18359fi
18360rm -f conftest*
18361
18362
18363else
18364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365/* end confdefs.h.  */
18366
18367#include <stdio.h>
18368#pragma weak fputs
18369int main ()
18370{
18371  return (fputs == NULL);
18372}
18373_ACEOF
18374if ac_fn_c_try_run "$LINENO"; then :
18375  gl_cv_have_weak=yes
18376else
18377  gl_cv_have_weak=no
18378fi
18379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18380  conftest.$ac_objext conftest.beam conftest.$ac_ext
18381fi
18382
18383     fi
18384          case " $LDFLAGS " in
18385       *" -static "*) gl_cv_have_weak=no ;;
18386     esac
18387                    case "$gl_cv_have_weak" in
18388       *yes)
18389         case "$host_os" in
18390           freebsd* | dragonfly*)
18391             : > conftest1.c
18392             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
18393             cat <<EOF > conftest2.c
18394#include <pthread.h>
18395#pragma weak pthread_mutexattr_gettype
18396int main ()
18397{
18398  return (pthread_mutexattr_gettype != NULL);
18399}
18400EOF
18401             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
18402               || gl_cv_have_weak=no
18403             rm -f conftest1.c libempty.so conftest2.c conftest
18404             ;;
18405         esac
18406         ;;
18407     esac
18408
18409fi
18410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
18411$as_echo "$gl_cv_have_weak" >&6; }
18412  case "$gl_cv_have_weak" in
18413    *yes)
18414
18415$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
18416
18417      ;;
18418  esac
18419
18420        case "$gl_cv_have_weak" in
18421          *yes) LIB_MBRTOWC= ;;
18422          *)    LIB_MBRTOWC="$LIBPTHREAD" ;;
18423        esac
18424        ;;
18425    esac
18426  else
18427    LIB_MBRTOWC=
18428  fi
18429
18430
18431  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
18432
18433
18434
18435
18436
18437
18438
18439
18440  gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
18441
18442    if test $REPLACE_MBSTATE_T = 1; then
18443
18444
18445
18446
18447
18448
18449
18450
18451  gl_LIBOBJS="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461  gl_LIBOBJS="$gl_LIBOBJS mbtowc-lock.$ac_objext"
18462
18463
18464
18465
18466  CFLAG_VISIBILITY=
18467  HAVE_VISIBILITY=0
18468  if test -n "$GCC"; then
18469                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
18470$as_echo_n "checking whether the -Werror option is usable... " >&6; }
18471if ${gl_cv_cc_vis_werror+:} false; then :
18472  $as_echo_n "(cached) " >&6
18473else
18474  gl_save_CFLAGS="$CFLAGS"
18475       CFLAGS="$CFLAGS -Werror"
18476       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477/* end confdefs.h.  */
18478
18479int
18480main ()
18481{
18482
18483  ;
18484  return 0;
18485}
18486_ACEOF
18487if ac_fn_c_try_compile "$LINENO"; then :
18488  gl_cv_cc_vis_werror=yes
18489else
18490  gl_cv_cc_vis_werror=no
18491fi
18492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18493       CFLAGS="$gl_save_CFLAGS"
18494
18495fi
18496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
18497$as_echo "$gl_cv_cc_vis_werror" >&6; }
18498        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
18499$as_echo_n "checking for simple visibility declarations... " >&6; }
18500if ${gl_cv_cc_visibility+:} false; then :
18501  $as_echo_n "(cached) " >&6
18502else
18503  gl_save_CFLAGS="$CFLAGS"
18504       CFLAGS="$CFLAGS -fvisibility=hidden"
18505                                          if test $gl_cv_cc_vis_werror = yes; then
18506         CFLAGS="$CFLAGS -Werror"
18507       fi
18508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509/* end confdefs.h.  */
18510extern __attribute__((__visibility__("hidden"))) int hiddenvar;
18511              extern __attribute__((__visibility__("default"))) int exportedvar;
18512              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
18513              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
18514              void dummyfunc (void) {}
18515
18516int
18517main ()
18518{
18519
18520  ;
18521  return 0;
18522}
18523_ACEOF
18524if ac_fn_c_try_compile "$LINENO"; then :
18525  gl_cv_cc_visibility=yes
18526else
18527  gl_cv_cc_visibility=no
18528fi
18529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18530       CFLAGS="$gl_save_CFLAGS"
18531
18532fi
18533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
18534$as_echo "$gl_cv_cc_visibility" >&6; }
18535    if test $gl_cv_cc_visibility = yes; then
18536      CFLAG_VISIBILITY="-fvisibility=hidden"
18537      HAVE_VISIBILITY=1
18538    fi
18539  fi
18540
18541
18542
18543cat >>confdefs.h <<_ACEOF
18544#define HAVE_VISIBILITY $HAVE_VISIBILITY
18545_ACEOF
18546
18547
18548
18549    fi
18550
18551
18552  :
18553
18554  fi
18555
18556
18557
18558
18559
18560          GNULIB_MBRTOWC=1
18561
18562
18563
18564
18565
18566$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582        if case "$host_os" in
18583       mingw*) true ;;
18584       *) test $ac_cv_func_mbsinit = yes ;;
18585     esac \
18586    && test $ac_cv_func_mbrtowc = yes; then
18587
18588
18589
18590
18591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18592$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18593if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
18594  $as_echo_n "(cached) " >&6
18595else
18596
18597                  case "$host_os" in
18598                     # Guess no on AIX and OSF/1.
18599        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
18600                     # Guess yes otherwise.
18601        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
18602      esac
18603      if test $LOCALE_JA != none; then
18604        if test "$cross_compiling" = yes; then :
18605  :
18606else
18607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608/* end confdefs.h.  */
18609
18610#include <locale.h>
18611#include <string.h>
18612/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18613   <wchar.h>.
18614   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18615   included before <wchar.h>.  */
18616#include <stddef.h>
18617#include <stdio.h>
18618#include <time.h>
18619#include <wchar.h>
18620int main ()
18621{
18622  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18623    {
18624      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18625      mbstate_t state;
18626      wchar_t wc;
18627
18628      memset (&state, '\0', sizeof (mbstate_t));
18629      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18630        if (mbsinit (&state))
18631          return 2;
18632    }
18633  return 0;
18634}
18635_ACEOF
18636if ac_fn_c_try_run "$LINENO"; then :
18637  gl_cv_func_mbrtowc_incomplete_state=yes
18638else
18639  gl_cv_func_mbrtowc_incomplete_state=no
18640fi
18641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18642  conftest.$ac_objext conftest.beam conftest.$ac_ext
18643fi
18644
18645      else
18646        if test $LOCALE_FR_UTF8 != none; then
18647          if test "$cross_compiling" = yes; then :
18648  :
18649else
18650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651/* end confdefs.h.  */
18652
18653#include <locale.h>
18654#include <string.h>
18655/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18656   <wchar.h>.
18657   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18658   included before <wchar.h>.  */
18659#include <stddef.h>
18660#include <stdio.h>
18661#include <time.h>
18662#include <wchar.h>
18663int main ()
18664{
18665  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18666    {
18667      const char input[] = "B\303\274\303\237er"; /* "Büßer" */
18668      mbstate_t state;
18669      wchar_t wc;
18670
18671      memset (&state, '\0', sizeof (mbstate_t));
18672      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18673        if (mbsinit (&state))
18674          return 2;
18675    }
18676  return 0;
18677}
18678_ACEOF
18679if ac_fn_c_try_run "$LINENO"; then :
18680  gl_cv_func_mbrtowc_incomplete_state=yes
18681else
18682  gl_cv_func_mbrtowc_incomplete_state=no
18683fi
18684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18685  conftest.$ac_objext conftest.beam conftest.$ac_ext
18686fi
18687
18688        fi
18689      fi
18690
18691fi
18692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18693$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18694
18695
18696
18697
18698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18699$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18700if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
18701  $as_echo_n "(cached) " >&6
18702else
18703
18704                  case "$host_os" in
18705                    # Guess no on Solaris 8.
18706        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
18707                    # Guess yes otherwise.
18708        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
18709      esac
18710      if test $LOCALE_ZH_CN != none; then
18711        if test "$cross_compiling" = yes; then :
18712  :
18713else
18714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715/* end confdefs.h.  */
18716
18717#include <locale.h>
18718#include <stdlib.h>
18719#include <string.h>
18720/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18721   <wchar.h>.
18722   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18723   included before <wchar.h>.  */
18724#include <stddef.h>
18725#include <stdio.h>
18726#include <time.h>
18727#include <wchar.h>
18728int main ()
18729{
18730  /* This fails on Solaris 8:
18731     mbrtowc returns 2, and sets wc to 0x00F0.
18732     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
18733  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18734    {
18735      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18736      mbstate_t state;
18737      wchar_t wc;
18738
18739      memset (&state, '\0', sizeof (mbstate_t));
18740      if (mbrtowc (&wc, input + 3, 6, &state) != 4
18741          && mbtowc (&wc, input + 3, 6) == 4)
18742        return 2;
18743    }
18744  return 0;
18745}
18746_ACEOF
18747if ac_fn_c_try_run "$LINENO"; then :
18748  gl_cv_func_mbrtowc_sanitycheck=yes
18749else
18750  gl_cv_func_mbrtowc_sanitycheck=no
18751fi
18752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18753  conftest.$ac_objext conftest.beam conftest.$ac_ext
18754fi
18755
18756      fi
18757
18758fi
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18760$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18761
18762    REPLACE_MBSTATE_T=0
18763    case "$gl_cv_func_mbrtowc_incomplete_state" in
18764      *yes) ;;
18765      *) REPLACE_MBSTATE_T=1 ;;
18766    esac
18767    case "$gl_cv_func_mbrtowc_sanitycheck" in
18768      *yes) ;;
18769      *) REPLACE_MBSTATE_T=1 ;;
18770    esac
18771  else
18772    REPLACE_MBSTATE_T=1
18773  fi
18774
18775
18776
18777  if test $ac_cv_func_mbsinit = no; then
18778    HAVE_MBSINIT=0
18779    ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
18780/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18781   <wchar.h>.
18782   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18783   included before <wchar.h>.  */
18784#include <stddef.h>
18785#include <stdio.h>
18786#include <time.h>
18787#include <wchar.h>
18788
18789"
18790if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
18791  ac_have_decl=1
18792else
18793  ac_have_decl=0
18794fi
18795
18796cat >>confdefs.h <<_ACEOF
18797#define HAVE_DECL_MBSINIT $ac_have_decl
18798_ACEOF
18799
18800    if test $ac_cv_have_decl_mbsinit = yes; then
18801                        REPLACE_MBSINIT=1
18802    fi
18803  else
18804    if test $REPLACE_MBSTATE_T = 1; then
18805      REPLACE_MBSINIT=1
18806    else
18807                        case "$host_os" in
18808        mingw*) REPLACE_MBSINIT=1 ;;
18809      esac
18810    fi
18811  fi
18812
18813  if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
18814
18815
18816
18817
18818
18819
18820
18821
18822  gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
18823
18824
18825  :
18826
18827  fi
18828
18829
18830
18831
18832
18833          GNULIB_MBSINIT=1
18834
18835
18836
18837
18838
18839$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
18840
18841
18842
18843
18844  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
18845
18846
18847
18848
18849
18850
18851
18852
18853  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
18854
18855
18856  for ac_header in bp-sym.h
18857do :
18858  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
18859if test "x$ac_cv_header_bp_sym_h" = xyes; then :
18860  cat >>confdefs.h <<_ACEOF
18861#define HAVE_BP_SYM_H 1
18862_ACEOF
18863
18864fi
18865
18866done
18867
18868
18869  fi
18870
18871
18872
18873
18874
18875          GNULIB_MEMCHR=1
18876
18877
18878
18879
18880
18881$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891  for ac_func in mempcpy
18892do :
18893  ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
18894if test "x$ac_cv_func_mempcpy" = xyes; then :
18895  cat >>confdefs.h <<_ACEOF
18896#define HAVE_MEMPCPY 1
18897_ACEOF
18898
18899fi
18900done
18901
18902  if test $ac_cv_func_mempcpy = no; then
18903    HAVE_MEMPCPY=0
18904  fi
18905
18906  if test $HAVE_MEMPCPY = 0; then
18907
18908
18909
18910
18911
18912
18913
18914
18915  gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
18916
18917
18918  :
18919
18920  fi
18921
18922
18923
18924
18925
18926          GNULIB_MEMPCPY=1
18927
18928
18929
18930
18931
18932$as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
18933
18934
18935
18936
18937
18938
18939
18940
18941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
18942$as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
18943if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
18944  $as_echo_n "(cached) " >&6
18945else
18946  rm -rf conftest.dir
18947      if test "$cross_compiling" = yes; then :
18948  case "$host_os" in
18949                          # Guess yes on Linux systems.
18950         linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
18951                          # Guess yes on glibc systems.
18952         *-gnu* | gnu*)   gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
18953                          # Guess yes on MSVC, no on mingw.
18954         mingw*)          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955/* end confdefs.h.  */
18956
18957#ifdef _MSC_VER
18958 Known
18959#endif
18960
18961_ACEOF
18962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18963  $EGREP "Known" >/dev/null 2>&1; then :
18964  gl_cv_func_mkdir_trailing_slash_works="guessing yes"
18965else
18966  gl_cv_func_mkdir_trailing_slash_works="guessing no"
18967fi
18968rm -f conftest*
18969
18970                          ;;
18971                          # If we don't know, obey --enable-cross-guesses.
18972         *)               gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
18973       esac
18974
18975else
18976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977/* end confdefs.h.  */
18978
18979#       include <sys/types.h>
18980#       include <sys/stat.h>
18981
18982int
18983main ()
18984{
18985return mkdir ("conftest.dir/", 0700);
18986  ;
18987  return 0;
18988}
18989_ACEOF
18990if ac_fn_c_try_run "$LINENO"; then :
18991  gl_cv_func_mkdir_trailing_slash_works=yes
18992else
18993  gl_cv_func_mkdir_trailing_slash_works=no
18994fi
18995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18996  conftest.$ac_objext conftest.beam conftest.$ac_ext
18997fi
18998
18999    rm -rf conftest.dir
19000
19001
19002fi
19003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
19004$as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
19005  case "$gl_cv_func_mkdir_trailing_slash_works" in
19006    *yes) ;;
19007    *)
19008      REPLACE_MKDIR=1
19009      ;;
19010  esac
19011
19012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
19013$as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
19014if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
19015  $as_echo_n "(cached) " >&6
19016else
19017  rm -rf conftest.dir
19018      if test "$cross_compiling" = yes; then :
19019  case "$host_os" in
19020                        # Guess yes on glibc systems.
19021         *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
19022                        # Guess yes on musl systems.
19023         *-musl*)       gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
19024                        # Guess no on native Windows.
19025         mingw*)        gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
19026                        # If we don't know, obey --enable-cross-guesses.
19027         *)             gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
19028       esac
19029
19030else
19031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19032/* end confdefs.h.  */
19033
19034#       include <sys/types.h>
19035#       include <sys/stat.h>
19036
19037int
19038main ()
19039{
19040return !mkdir ("conftest.dir/./", 0700);
19041  ;
19042  return 0;
19043}
19044_ACEOF
19045if ac_fn_c_try_run "$LINENO"; then :
19046  gl_cv_func_mkdir_trailing_dot_works=yes
19047else
19048  gl_cv_func_mkdir_trailing_dot_works=no
19049fi
19050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19051  conftest.$ac_objext conftest.beam conftest.$ac_ext
19052fi
19053
19054    rm -rf conftest.dir
19055
19056
19057fi
19058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
19059$as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
19060  case "$gl_cv_func_mkdir_trailing_dot_works" in
19061    *yes) ;;
19062    *)
19063      REPLACE_MKDIR=1
19064
19065$as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
19066
19067      ;;
19068  esac
19069
19070  if test $REPLACE_MKDIR = 1; then
19071
19072
19073
19074
19075
19076
19077
19078
19079  gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
19080
19081  fi
19082
19083
19084
19085
19086  if test $ac_cv_func_mkstemp = yes; then
19087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
19088$as_echo_n "checking for working mkstemp... " >&6; }
19089if ${gl_cv_func_working_mkstemp+:} false; then :
19090  $as_echo_n "(cached) " >&6
19091else
19092
19093        mkdir conftest.mkstemp
19094        if test "$cross_compiling" = yes; then :
19095  case "$host_os" in
19096                            # Guess yes on glibc systems.
19097             *-gnu* | gnu*) gl_cv_func_working_mkstemp="guessing yes" ;;
19098                            # Guess yes on musl systems.
19099             *-musl*)       gl_cv_func_working_mkstemp="guessing yes" ;;
19100                            # Guess no on native Windows.
19101             mingw*)        gl_cv_func_working_mkstemp="guessing no" ;;
19102                            # If we don't know, obey --enable-cross-guesses.
19103             *)             gl_cv_func_working_mkstemp="$gl_cross_guess_normal" ;;
19104           esac
19105
19106else
19107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108/* end confdefs.h.  */
19109$ac_includes_default
19110int
19111main ()
19112{
19113int result = 0;
19114              int i;
19115              off_t large = (off_t) 4294967295u;
19116              if (large < 0)
19117                large = 2147483647;
19118              umask (0);
19119              for (i = 0; i < 70; i++)
19120                {
19121                  char templ[] = "conftest.mkstemp/coXXXXXX";
19122                  int (*mkstemp_function) (char *) = mkstemp;
19123                  int fd = mkstemp_function (templ);
19124                  if (fd < 0)
19125                    result |= 1;
19126                  else
19127                    {
19128                      struct stat st;
19129                      if (lseek (fd, large, SEEK_SET) != large)
19130                        result |= 2;
19131                      if (fstat (fd, &st) < 0)
19132                        result |= 4;
19133                      else if (st.st_mode & 0077)
19134                        result |= 8;
19135                      if (close (fd))
19136                        result |= 16;
19137                    }
19138                }
19139              return result;
19140  ;
19141  return 0;
19142}
19143_ACEOF
19144if ac_fn_c_try_run "$LINENO"; then :
19145  gl_cv_func_working_mkstemp=yes
19146else
19147  gl_cv_func_working_mkstemp=no
19148fi
19149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19150  conftest.$ac_objext conftest.beam conftest.$ac_ext
19151fi
19152
19153        rm -rf conftest.mkstemp
19154
19155fi
19156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
19157$as_echo "$gl_cv_func_working_mkstemp" >&6; }
19158    case "$gl_cv_func_working_mkstemp" in
19159      *yes) ;;
19160      *)
19161        REPLACE_MKSTEMP=1
19162        ;;
19163    esac
19164  else
19165    HAVE_MKSTEMP=0
19166  fi
19167
19168  if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
19169
19170
19171
19172
19173
19174
19175
19176
19177  gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
19178
19179
19180
19181  fi
19182
19183
19184
19185
19186
19187          GNULIB_MKSTEMP=1
19188
19189
19190
19191
19192
19193$as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203  if test $ac_cv_func_mkstemps != yes; then
19204    HAVE_MKSTEMPS=0
19205  fi
19206
19207  if test $HAVE_MKSTEMPS = 0; then
19208
19209
19210
19211
19212
19213
19214
19215
19216  gl_LIBOBJS="$gl_LIBOBJS mkstemps.$ac_objext"
19217
19218  fi
19219
19220
19221cat >>confdefs.h <<_ACEOF
19222#define GNULIB_MKSTEMPS 1
19223_ACEOF
19224
19225
19226
19227
19228
19229
19230
19231          GNULIB_MKSTEMPS=1
19232
19233
19234
19235
19236
19237$as_echo "#define GNULIB_TEST_MKSTEMPS 1" >>confdefs.h
19238
19239
19240
19241
19242  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19243
19244
19245
19246
19247
19248
19249
19250
19251  gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
19252
19253  fi
19254
19255  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19256
19257
19258
19259
19260
19261
19262
19263
19264  gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
19265
19266  fi
19267
19268
19269cat >>confdefs.h <<_ACEOF
19270#define GNULIB_MSVC_NOTHROW 1
19271_ACEOF
19272
19273
19274
19275
19276
19277
19278  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
19279"
19280if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
19281  ac_have_decl=1
19282else
19283  ac_have_decl=0
19284fi
19285
19286cat >>confdefs.h <<_ACEOF
19287#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
19288_ACEOF
19289
19290  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
19291"
19292if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
19293  ac_have_decl=1
19294else
19295  ac_have_decl=0
19296fi
19297
19298cat >>confdefs.h <<_ACEOF
19299#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
19300_ACEOF
19301
19302
19303      :
19304
19305
19306
19307  :
19308
19309
19310
19311
19312
19313  for ac_func in rawmemchr
19314do :
19315  ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
19316if test "x$ac_cv_func_rawmemchr" = xyes; then :
19317  cat >>confdefs.h <<_ACEOF
19318#define HAVE_RAWMEMCHR 1
19319_ACEOF
19320
19321fi
19322done
19323
19324  if test $ac_cv_func_rawmemchr = no; then
19325    HAVE_RAWMEMCHR=0
19326  fi
19327
19328  if test $HAVE_RAWMEMCHR = 0; then
19329
19330
19331
19332
19333
19334
19335
19336
19337  gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
19338
19339    :
19340  fi
19341
19342
19343
19344
19345
19346          GNULIB_RAWMEMCHR=1
19347
19348
19349
19350
19351
19352$as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
19353
19354
19355
19356
19357
19358
19359
19360
19361  if test $ac_cv_func_secure_getenv = no; then
19362    HAVE_SECURE_GETENV=0
19363  fi
19364
19365  if test $HAVE_SECURE_GETENV = 0; then
19366
19367
19368
19369
19370
19371
19372
19373
19374  gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
19375
19376
19377  for ac_func in __secure_getenv
19378do :
19379  ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
19380if test "x$ac_cv_func___secure_getenv" = xyes; then :
19381  cat >>confdefs.h <<_ACEOF
19382#define HAVE___SECURE_GETENV 1
19383_ACEOF
19384
19385fi
19386done
19387
19388  if test $ac_cv_func___secure_getenv = no; then
19389    for ac_func in issetugid
19390do :
19391  ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
19392if test "x$ac_cv_func_issetugid" = xyes; then :
19393  cat >>confdefs.h <<_ACEOF
19394#define HAVE_ISSETUGID 1
19395_ACEOF
19396
19397fi
19398done
19399
19400  fi
19401
19402
19403  fi
19404
19405
19406
19407
19408
19409          GNULIB_SECURE_GETENV=1
19410
19411
19412
19413
19414
19415$as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
19416
19417
19418
19419
19420
19421
19422
19423
19424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
19425$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
19426if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
19427  $as_echo_n "(cached) " >&6
19428else
19429  case "$host_os" in
19430       # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
19431       *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
19432         gl_cv_func_setlocale_null_all_mtsafe=no ;;
19433       # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
19434       *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
19435         gl_cv_func_setlocale_null_all_mtsafe=yes ;;
19436       # If we don't know, obey --enable-cross-guesses.
19437       *)
19438         gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
19439     esac
19440
19441fi
19442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
19443$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
19444    case "$host_os" in
19445    mingw*) ;;
19446    *)
19447      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
19448        gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
19449      fi
19450      ;;
19451  esac
19452  case "$gl_cv_func_setlocale_null_all_mtsafe" in
19453    *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
19454    *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
19455  esac
19456
19457cat >>confdefs.h <<_ACEOF
19458#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
19459_ACEOF
19460
19461
19462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
19463$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
19464if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
19465  $as_echo_n "(cached) " >&6
19466else
19467  case "$host_os" in
19468       # Guess no on OpenBSD, AIX.
19469       openbsd* | aix*)
19470         gl_cv_func_setlocale_null_one_mtsafe=no ;;
19471       # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
19472       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
19473         gl_cv_func_setlocale_null_one_mtsafe=yes ;;
19474       # If we don't know, obey --enable-cross-guesses.
19475       *)
19476         gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
19477     esac
19478
19479fi
19480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
19481$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
19482    case "$host_os" in
19483    mingw*) ;;
19484    *)
19485      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
19486        gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
19487      fi
19488      ;;
19489  esac
19490  case "$gl_cv_func_setlocale_null_one_mtsafe" in
19491    *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
19492    *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
19493  esac
19494
19495cat >>confdefs.h <<_ACEOF
19496#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
19497_ACEOF
19498
19499
19500    if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
19501    case "$host_os" in
19502      mingw*) LIB_SETLOCALE_NULL= ;;
19503      *)
19504
19505
19506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
19507$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
19508if ${gl_cv_have_weak+:} false; then :
19509  $as_echo_n "(cached) " >&6
19510else
19511  gl_cv_have_weak=no
19512          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19513/* end confdefs.h.  */
19514extern void xyzzy ();
19515#pragma weak xyzzy
19516int
19517main ()
19518{
19519xyzzy();
19520  ;
19521  return 0;
19522}
19523_ACEOF
19524if ac_fn_c_try_link "$LINENO"; then :
19525  gl_cv_have_weak=maybe
19526fi
19527rm -f core conftest.err conftest.$ac_objext \
19528    conftest$ac_exeext conftest.$ac_ext
19529     if test $gl_cv_have_weak = maybe; then
19530                     if test "$cross_compiling" = yes; then :
19531                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532/* end confdefs.h.  */
19533#ifdef __ELF__
19534             Extensible Linking Format
19535             #endif
19536
19537_ACEOF
19538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19539  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
19540  gl_cv_have_weak="guessing yes"
19541else
19542  gl_cv_have_weak="guessing no"
19543fi
19544rm -f conftest*
19545
19546
19547else
19548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549/* end confdefs.h.  */
19550
19551#include <stdio.h>
19552#pragma weak fputs
19553int main ()
19554{
19555  return (fputs == NULL);
19556}
19557_ACEOF
19558if ac_fn_c_try_run "$LINENO"; then :
19559  gl_cv_have_weak=yes
19560else
19561  gl_cv_have_weak=no
19562fi
19563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19564  conftest.$ac_objext conftest.beam conftest.$ac_ext
19565fi
19566
19567     fi
19568          case " $LDFLAGS " in
19569       *" -static "*) gl_cv_have_weak=no ;;
19570     esac
19571                    case "$gl_cv_have_weak" in
19572       *yes)
19573         case "$host_os" in
19574           freebsd* | dragonfly*)
19575             : > conftest1.c
19576             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
19577             cat <<EOF > conftest2.c
19578#include <pthread.h>
19579#pragma weak pthread_mutexattr_gettype
19580int main ()
19581{
19582  return (pthread_mutexattr_gettype != NULL);
19583}
19584EOF
19585             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
19586               || gl_cv_have_weak=no
19587             rm -f conftest1.c libempty.so conftest2.c conftest
19588             ;;
19589         esac
19590         ;;
19591     esac
19592
19593fi
19594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
19595$as_echo "$gl_cv_have_weak" >&6; }
19596  case "$gl_cv_have_weak" in
19597    *yes)
19598
19599$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
19600
19601      ;;
19602  esac
19603
19604        case "$gl_cv_have_weak" in
19605          *yes) LIB_SETLOCALE_NULL= ;;
19606          *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
19607        esac
19608        ;;
19609    esac
19610  else
19611    LIB_SETLOCALE_NULL=
19612  fi
19613
19614
19615  if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
19616
19617
19618
19619
19620
19621
19622
19623
19624  gl_LIBOBJS="$gl_LIBOBJS setlocale-lock.$ac_objext"
19625
19626
19627
19628
19629  CFLAG_VISIBILITY=
19630  HAVE_VISIBILITY=0
19631  if test -n "$GCC"; then
19632                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
19633$as_echo_n "checking whether the -Werror option is usable... " >&6; }
19634if ${gl_cv_cc_vis_werror+:} false; then :
19635  $as_echo_n "(cached) " >&6
19636else
19637  gl_save_CFLAGS="$CFLAGS"
19638       CFLAGS="$CFLAGS -Werror"
19639       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640/* end confdefs.h.  */
19641
19642int
19643main ()
19644{
19645
19646  ;
19647  return 0;
19648}
19649_ACEOF
19650if ac_fn_c_try_compile "$LINENO"; then :
19651  gl_cv_cc_vis_werror=yes
19652else
19653  gl_cv_cc_vis_werror=no
19654fi
19655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19656       CFLAGS="$gl_save_CFLAGS"
19657
19658fi
19659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
19660$as_echo "$gl_cv_cc_vis_werror" >&6; }
19661        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
19662$as_echo_n "checking for simple visibility declarations... " >&6; }
19663if ${gl_cv_cc_visibility+:} false; then :
19664  $as_echo_n "(cached) " >&6
19665else
19666  gl_save_CFLAGS="$CFLAGS"
19667       CFLAGS="$CFLAGS -fvisibility=hidden"
19668                                          if test $gl_cv_cc_vis_werror = yes; then
19669         CFLAGS="$CFLAGS -Werror"
19670       fi
19671       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672/* end confdefs.h.  */
19673extern __attribute__((__visibility__("hidden"))) int hiddenvar;
19674              extern __attribute__((__visibility__("default"))) int exportedvar;
19675              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
19676              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
19677              void dummyfunc (void) {}
19678
19679int
19680main ()
19681{
19682
19683  ;
19684  return 0;
19685}
19686_ACEOF
19687if ac_fn_c_try_compile "$LINENO"; then :
19688  gl_cv_cc_visibility=yes
19689else
19690  gl_cv_cc_visibility=no
19691fi
19692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693       CFLAGS="$gl_save_CFLAGS"
19694
19695fi
19696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
19697$as_echo "$gl_cv_cc_visibility" >&6; }
19698    if test $gl_cv_cc_visibility = yes; then
19699      CFLAG_VISIBILITY="-fvisibility=hidden"
19700      HAVE_VISIBILITY=1
19701    fi
19702  fi
19703
19704
19705
19706cat >>confdefs.h <<_ACEOF
19707#define HAVE_VISIBILITY $HAVE_VISIBILITY
19708_ACEOF
19709
19710
19711
19712  fi
19713
19714
19715
19716
19717
19718          GNULIB_SETLOCALE_NULL=1
19719
19720
19721
19722
19723
19724$as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
19725
19726
19727
19728
19729  for ac_header in stdint.h
19730do :
19731  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19732if test "x$ac_cv_header_stdint_h" = xyes; then :
19733  cat >>confdefs.h <<_ACEOF
19734#define HAVE_STDINT_H 1
19735_ACEOF
19736
19737fi
19738
19739done
19740
19741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19742$as_echo_n "checking for SIZE_MAX... " >&6; }
19743if ${gl_cv_size_max+:} false; then :
19744  $as_echo_n "(cached) " >&6
19745else
19746
19747    gl_cv_size_max=
19748    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19749/* end confdefs.h.  */
19750
19751#include <limits.h>
19752#if HAVE_STDINT_H
19753#include <stdint.h>
19754#endif
19755#ifdef SIZE_MAX
19756Found it
19757#endif
19758
19759_ACEOF
19760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19761  $EGREP "Found it" >/dev/null 2>&1; then :
19762  gl_cv_size_max=yes
19763fi
19764rm -f conftest*
19765
19766    if test -z "$gl_cv_size_max"; then
19767                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
19768#include <limits.h>"; then :
19769
19770else
19771  size_t_bits_minus_1=
19772fi
19773
19774      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19775
19776else
19777  fits_in_uint=
19778fi
19779
19780      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
19781        if test $fits_in_uint = 1; then
19782                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19783/* end confdefs.h.  */
19784#include <stddef.h>
19785                 extern size_t foo;
19786                 extern unsigned long foo;
19787
19788int
19789main ()
19790{
19791
19792  ;
19793  return 0;
19794}
19795_ACEOF
19796if ac_fn_c_try_compile "$LINENO"; then :
19797  fits_in_uint=0
19798fi
19799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19800        fi
19801                                if test $fits_in_uint = 1; then
19802          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
19803        else
19804          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
19805        fi
19806      else
19807                gl_cv_size_max='((size_t)~(size_t)0)'
19808      fi
19809    fi
19810
19811fi
19812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
19813$as_echo "$gl_cv_size_max" >&6; }
19814  if test "$gl_cv_size_max" != yes; then
19815
19816cat >>confdefs.h <<_ACEOF
19817#define SIZE_MAX $gl_cv_size_max
19818_ACEOF
19819
19820  fi
19821
19822
19823
19824
19825               ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
19826"
19827if test "x$ac_cv_have_decl_sleep" = xyes; then :
19828  ac_have_decl=1
19829else
19830  ac_have_decl=0
19831fi
19832
19833cat >>confdefs.h <<_ACEOF
19834#define HAVE_DECL_SLEEP $ac_have_decl
19835_ACEOF
19836
19837
19838  if test $ac_cv_have_decl_sleep != yes; then
19839    HAVE_SLEEP=0
19840  else
19841        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
19842$as_echo_n "checking for working sleep... " >&6; }
19843if ${gl_cv_func_sleep_works+:} false; then :
19844  $as_echo_n "(cached) " >&6
19845else
19846  if test "$cross_compiling" = yes; then :
19847  case "$host_os" in
19848                        # Guess yes on glibc systems.
19849         *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;;
19850                        # Guess yes on musl systems.
19851         *-musl*)       gl_cv_func_sleep_works="guessing yes" ;;
19852                        # Guess no on native Windows.
19853         mingw*)        gl_cv_func_sleep_works="guessing no" ;;
19854                        # If we don't know, obey --enable-cross-guesses.
19855         *)             gl_cv_func_sleep_works="$gl_cross_guess_normal" ;;
19856       esac
19857
19858else
19859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19860/* end confdefs.h.  */
19861
19862#include <errno.h>
19863#include <unistd.h>
19864#include <signal.h>
19865static void
19866handle_alarm (int sig)
19867{
19868  if (sig != SIGALRM)
19869    _exit (2);
19870}
19871
19872int
19873main ()
19874{
19875
19876    /* Failure to compile this test due to missing alarm is okay,
19877       since all such platforms (mingw) also lack sleep.  */
19878    unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
19879    unsigned int remaining;
19880    signal (SIGALRM, handle_alarm);
19881    alarm (1);
19882    remaining = sleep (pentecost);
19883    if (remaining > pentecost)
19884      return 3;
19885    if (remaining <= pentecost - 10)
19886      return 4;
19887    return 0;
19888
19889  ;
19890  return 0;
19891}
19892_ACEOF
19893if ac_fn_c_try_run "$LINENO"; then :
19894  gl_cv_func_sleep_works=yes
19895else
19896  gl_cv_func_sleep_works=no
19897fi
19898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19899  conftest.$ac_objext conftest.beam conftest.$ac_ext
19900fi
19901
19902fi
19903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
19904$as_echo "$gl_cv_func_sleep_works" >&6; }
19905    case "$gl_cv_func_sleep_works" in
19906      *yes) ;;
19907      *)
19908        REPLACE_SLEEP=1
19909        ;;
19910    esac
19911  fi
19912
19913  if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
19914
19915
19916
19917
19918
19919
19920
19921
19922  gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
19923
19924  fi
19925
19926
19927
19928
19929
19930          GNULIB_SLEEP=1
19931
19932
19933
19934
19935
19936$as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
19937
19938
19939
19940
19941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19942$as_echo_n "checking for ssize_t... " >&6; }
19943if ${gt_cv_ssize_t+:} false; then :
19944  $as_echo_n "(cached) " >&6
19945else
19946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19947/* end confdefs.h.  */
19948#include <sys/types.h>
19949int
19950main ()
19951{
19952int x = sizeof (ssize_t *) + sizeof (ssize_t);
19953            return !x;
19954  ;
19955  return 0;
19956}
19957_ACEOF
19958if ac_fn_c_try_compile "$LINENO"; then :
19959  gt_cv_ssize_t=yes
19960else
19961  gt_cv_ssize_t=no
19962fi
19963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964fi
19965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19966$as_echo "$gt_cv_ssize_t" >&6; }
19967  if test $gt_cv_ssize_t = no; then
19968
19969$as_echo "#define ssize_t int" >>confdefs.h
19970
19971  fi
19972
19973
19974
19975
19976
19977  case "$host_os" in
19978    mingw*)
19979                  REPLACE_STAT=1
19980      ;;
19981    *)
19982                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
19983$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
19984if ${gl_cv_func_stat_file_slash+:} false; then :
19985  $as_echo_n "(cached) " >&6
19986else
19987  touch conftest.tmp
19988         # Assume that if we have lstat, we can also check symlinks.
19989         if test $ac_cv_func_lstat = yes; then
19990           ln -s conftest.tmp conftest.lnk
19991         fi
19992         if test "$cross_compiling" = yes; then :
19993  case "$host_os" in
19994                               # Guess yes on Linux systems.
19995              linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
19996                               # Guess yes on glibc systems.
19997              *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
19998                               # If we don't know, obey --enable-cross-guesses.
19999              *)               gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
20000            esac
20001
20002else
20003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20004/* end confdefs.h.  */
20005#include <sys/stat.h>
20006
20007int
20008main ()
20009{
20010int result = 0;
20011               struct stat st;
20012               if (!stat ("conftest.tmp/", &st))
20013                 result |= 1;
20014#if HAVE_LSTAT
20015               if (!stat ("conftest.lnk/", &st))
20016                 result |= 2;
20017#endif
20018               return result;
20019
20020  ;
20021  return 0;
20022}
20023_ACEOF
20024if ac_fn_c_try_run "$LINENO"; then :
20025  gl_cv_func_stat_file_slash=yes
20026else
20027  gl_cv_func_stat_file_slash=no
20028fi
20029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20030  conftest.$ac_objext conftest.beam conftest.$ac_ext
20031fi
20032
20033         rm -f conftest.tmp conftest.lnk
20034fi
20035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
20036$as_echo "$gl_cv_func_stat_file_slash" >&6; }
20037      case $gl_cv_func_stat_file_slash in
20038        *no)
20039          REPLACE_STAT=1
20040
20041$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
20042;;
20043      esac
20044      case $host_os in
20045                solaris*)
20046          REPLACE_FSTAT=1 ;;
20047      esac
20048      ;;
20049  esac
20050
20051  if test $REPLACE_STAT = 1; then
20052
20053
20054
20055
20056
20057
20058
20059
20060  gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
20061
20062    case "$host_os" in
20063      mingw*)
20064
20065
20066
20067
20068
20069
20070
20071
20072  gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
20073
20074        ;;
20075    esac
20076
20077
20078  :
20079
20080  fi
20081
20082
20083
20084
20085
20086          GNULIB_STAT=1
20087
20088
20089
20090
20091
20092$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
20093
20094
20095
20096
20097
20098
20099
20100  ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
20101     #include <sys/stat.h>
20102"
20103if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
20104
20105cat >>confdefs.h <<_ACEOF
20106#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
20107_ACEOF
20108
20109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
20110$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
20111if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
20112  $as_echo_n "(cached) " >&6
20113else
20114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20115/* end confdefs.h.  */
20116
20117            #include <sys/types.h>
20118            #include <sys/stat.h>
20119            #if HAVE_SYS_TIME_H
20120            # include <sys/time.h>
20121            #endif
20122            #include <time.h>
20123            struct timespec ts;
20124            struct stat st;
20125
20126int
20127main ()
20128{
20129
20130            st.st_atim = ts;
20131
20132  ;
20133  return 0;
20134}
20135_ACEOF
20136if ac_fn_c_try_compile "$LINENO"; then :
20137  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
20138else
20139  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
20140fi
20141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20142fi
20143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
20144$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
20145     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
20146
20147$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
20148
20149     fi
20150else
20151  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
20152        #include <sys/stat.h>
20153"
20154if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
20155
20156cat >>confdefs.h <<_ACEOF
20157#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
20158_ACEOF
20159
20160
20161else
20162  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
20163           #include <sys/stat.h>
20164"
20165if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
20166
20167cat >>confdefs.h <<_ACEOF
20168#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
20169_ACEOF
20170
20171
20172else
20173  ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
20174              #include <sys/stat.h>
20175"
20176if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
20177
20178cat >>confdefs.h <<_ACEOF
20179#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
20180_ACEOF
20181
20182
20183fi
20184
20185fi
20186
20187fi
20188
20189fi
20190
20191
20192
20193
20194
20195  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
20196     #include <sys/stat.h>
20197"
20198if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
20199
20200cat >>confdefs.h <<_ACEOF
20201#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
20202_ACEOF
20203
20204
20205else
20206  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
20207        #include <sys/stat.h>
20208"
20209if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
20210
20211cat >>confdefs.h <<_ACEOF
20212#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
20213_ACEOF
20214
20215
20216else
20217  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
20218          #include <sys/stat.h>
20219"
20220if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
20221
20222cat >>confdefs.h <<_ACEOF
20223#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
20224_ACEOF
20225
20226
20227fi
20228
20229fi
20230
20231fi
20232
20233
20234
20235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
20236$as_echo_n "checking for working stdalign.h... " >&6; }
20237if ${gl_cv_header_working_stdalign_h+:} false; then :
20238  $as_echo_n "(cached) " >&6
20239else
20240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241/* end confdefs.h.  */
20242#include <stdalign.h>
20243            #include <stddef.h>
20244
20245            /* Test that alignof yields a result consistent with offsetof.
20246               This catches GCC bug 52023
20247               <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
20248            #ifdef __cplusplus
20249               template <class t> struct alignof_helper { char a; t b; };
20250            # define ao(type) offsetof (alignof_helper<type>, b)
20251            #else
20252            # define ao(type) offsetof (struct { char a; type b; }, b)
20253            #endif
20254            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
20255            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
20256            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
20257
20258            /* Test _Alignas only on platforms where gnulib can help.  */
20259            #if \
20260                ((defined __cplusplus && 201103 <= __cplusplus) \
20261                 || (defined __APPLE__ && defined __MACH__ \
20262                     ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
20263                     : __GNUC__) \
20264                 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
20265                 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
20266                 || 1300 <= _MSC_VER)
20267              struct alignas_test { char c; char alignas (8) alignas_8; };
20268              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
20269                                ? 1 : -1];
20270            #endif
20271
20272int
20273main ()
20274{
20275
20276  ;
20277  return 0;
20278}
20279_ACEOF
20280if ac_fn_c_try_compile "$LINENO"; then :
20281  gl_cv_header_working_stdalign_h=yes
20282else
20283  gl_cv_header_working_stdalign_h=no
20284fi
20285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286fi
20287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
20288$as_echo "$gl_cv_header_working_stdalign_h" >&6; }
20289
20290  if test $gl_cv_header_working_stdalign_h = yes; then
20291    STDALIGN_H=''
20292  else
20293    STDALIGN_H='stdalign.h'
20294  fi
20295
20296
20297   if test -n "$STDALIGN_H"; then
20298  GL_GENERATE_STDALIGN_H_TRUE=
20299  GL_GENERATE_STDALIGN_H_FALSE='#'
20300else
20301  GL_GENERATE_STDALIGN_H_TRUE='#'
20302  GL_GENERATE_STDALIGN_H_FALSE=
20303fi
20304
20305
20306
20307
20308
20309
20310          if test "$ac_cv_header_stdbool_h" = yes; then
20311    case "$host_os" in
20312      solaris*)
20313        if test -z "$GCC"; then
20314          STDBOOL_H='stdbool.h'
20315        else
20316          STDBOOL_H=''
20317        fi
20318        ;;
20319      *)
20320        STDBOOL_H=''
20321        ;;
20322    esac
20323  else
20324    STDBOOL_H='stdbool.h'
20325  fi
20326
20327   if test -n "$STDBOOL_H"; then
20328  GL_GENERATE_STDBOOL_H_TRUE=
20329  GL_GENERATE_STDBOOL_H_FALSE='#'
20330else
20331  GL_GENERATE_STDBOOL_H_TRUE='#'
20332  GL_GENERATE_STDBOOL_H_FALSE=
20333fi
20334
20335
20336  if test "$ac_cv_type__Bool" = yes; then
20337    HAVE__BOOL=1
20338  else
20339    HAVE__BOOL=0
20340  fi
20341
20342
20343
20344
20345
20346  STDDEF_H=
20347
20348      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
20349$as_echo_n "checking for good max_align_t... " >&6; }
20350if ${gl_cv_type_max_align_t+:} false; then :
20351  $as_echo_n "(cached) " >&6
20352else
20353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354/* end confdefs.h.  */
20355#include <stddef.h>
20356            unsigned int s = sizeof (max_align_t);
20357            #if defined __GNUC__ || defined __IBM__ALIGNOF__
20358            int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
20359            int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
20360            #endif
20361
20362int
20363main ()
20364{
20365
20366  ;
20367  return 0;
20368}
20369_ACEOF
20370if ac_fn_c_try_compile "$LINENO"; then :
20371  gl_cv_type_max_align_t=yes
20372else
20373  gl_cv_type_max_align_t=no
20374fi
20375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20376
20377fi
20378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
20379$as_echo "$gl_cv_type_max_align_t" >&6; }
20380  if test $gl_cv_type_max_align_t = no; then
20381    HAVE_MAX_ALIGN_T=0
20382    STDDEF_H=stddef.h
20383  fi
20384
20385  if test $gt_cv_c_wchar_t = no; then
20386    HAVE_WCHAR_T=0
20387    STDDEF_H=stddef.h
20388  fi
20389
20390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20391$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20392if ${gl_cv_decl_null_works+:} false; then :
20393  $as_echo_n "(cached) " >&6
20394else
20395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20396/* end confdefs.h.  */
20397#include <stddef.h>
20398      int test[2 * (sizeof NULL == sizeof (void *)) -1];
20399
20400int
20401main ()
20402{
20403
20404  ;
20405  return 0;
20406}
20407_ACEOF
20408if ac_fn_c_try_compile "$LINENO"; then :
20409  gl_cv_decl_null_works=yes
20410else
20411  gl_cv_decl_null_works=no
20412fi
20413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20414fi
20415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20416$as_echo "$gl_cv_decl_null_works" >&6; }
20417  if test $gl_cv_decl_null_works = no; then
20418    REPLACE_NULL=1
20419    STDDEF_H=stddef.h
20420  fi
20421
20422
20423   if test -n "$STDDEF_H"; then
20424  GL_GENERATE_STDDEF_H_TRUE=
20425  GL_GENERATE_STDDEF_H_FALSE='#'
20426else
20427  GL_GENERATE_STDDEF_H_TRUE='#'
20428  GL_GENERATE_STDDEF_H_FALSE=
20429fi
20430
20431  if test -n "$STDDEF_H"; then
20432
20433
20434
20435
20436
20437
20438
20439
20440     if test $gl_cv_have_include_next = yes; then
20441       gl_cv_next_stddef_h='<'stddef.h'>'
20442     else
20443       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20444$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20445if ${gl_cv_next_stddef_h+:} false; then :
20446  $as_echo_n "(cached) " >&6
20447else
20448
20449
20450
20451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20452/* end confdefs.h.  */
20453#include <stddef.h>
20454_ACEOF
20455                case "$host_os" in
20456    aix*) gl_absname_cpp="$ac_cpp -C" ;;
20457    *)    gl_absname_cpp="$ac_cpp" ;;
20458  esac
20459
20460  case "$host_os" in
20461    mingw*)
20462                                          gl_dirsep_regex='[/\\]'
20463      ;;
20464    *)
20465      gl_dirsep_regex='\/'
20466      ;;
20467  esac
20468      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20469  gl_header_literal_regex=`echo 'stddef.h' \
20470                           | sed -e "$gl_make_literal_regex_sed"`
20471  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20472      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20473      s|^/[^/]|//&|
20474      p
20475      q
20476    }'
20477
20478        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20479  sed -n "$gl_absolute_header_sed"`
20480
20481           gl_header=$gl_cv_absolute_stddef_h
20482           gl_cv_next_stddef_h='"'$gl_header'"'
20483
20484
20485fi
20486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20487$as_echo "$gl_cv_next_stddef_h" >&6; }
20488     fi
20489     NEXT_STDDEF_H=$gl_cv_next_stddef_h
20490
20491     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20492       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20493       gl_next_as_first_directive='<'stddef.h'>'
20494     else
20495       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20496       gl_next_as_first_directive=$gl_cv_next_stddef_h
20497     fi
20498     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20499
20500
20501
20502
20503  fi
20504
20505
20506
20507
20508  $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519     if test $gl_cv_have_include_next = yes; then
20520       gl_cv_next_stdio_h='<'stdio.h'>'
20521     else
20522       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20523$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20524if ${gl_cv_next_stdio_h+:} false; then :
20525  $as_echo_n "(cached) " >&6
20526else
20527
20528
20529
20530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20531/* end confdefs.h.  */
20532#include <stdio.h>
20533_ACEOF
20534                case "$host_os" in
20535    aix*) gl_absname_cpp="$ac_cpp -C" ;;
20536    *)    gl_absname_cpp="$ac_cpp" ;;
20537  esac
20538
20539  case "$host_os" in
20540    mingw*)
20541                                          gl_dirsep_regex='[/\\]'
20542      ;;
20543    *)
20544      gl_dirsep_regex='\/'
20545      ;;
20546  esac
20547      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20548  gl_header_literal_regex=`echo 'stdio.h' \
20549                           | sed -e "$gl_make_literal_regex_sed"`
20550  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20551      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20552      s|^/[^/]|//&|
20553      p
20554      q
20555    }'
20556
20557        gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20558  sed -n "$gl_absolute_header_sed"`
20559
20560           gl_header=$gl_cv_absolute_stdio_h
20561           gl_cv_next_stdio_h='"'$gl_header'"'
20562
20563
20564fi
20565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20566$as_echo "$gl_cv_next_stdio_h" >&6; }
20567     fi
20568     NEXT_STDIO_H=$gl_cv_next_stdio_h
20569
20570     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20571       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20572       gl_next_as_first_directive='<'stdio.h'>'
20573     else
20574       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20575       gl_next_as_first_directive=$gl_cv_next_stdio_h
20576     fi
20577     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20578
20579
20580
20581
20582
20583        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
20584$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
20585if ${gl_cv_func_printf_attribute_flavor+:} false; then :
20586  $as_echo_n "(cached) " >&6
20587else
20588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589/* end confdefs.h.  */
20590
20591       #define __STDC_FORMAT_MACROS 1
20592       #include <stdio.h>
20593       #include <inttypes.h>
20594       /* For non-mingw systems, compilation will trivially succeed.
20595          For mingw, compilation will succeed for older mingw (system
20596          printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
20597       #if (defined _WIN32 && ! defined __CYGWIN__) && \
20598         (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
20599       extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
20600       #endif
20601
20602int
20603main ()
20604{
20605
20606  ;
20607  return 0;
20608}
20609_ACEOF
20610if ac_fn_c_try_compile "$LINENO"; then :
20611  gl_cv_func_printf_attribute_flavor=system
20612else
20613  gl_cv_func_printf_attribute_flavor=gnu
20614fi
20615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616fi
20617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
20618$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
20619  if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
20620
20621$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
20622
20623  fi
20624
20625      GNULIB_FSCANF=1
20626
20627
20628cat >>confdefs.h <<_ACEOF
20629#define GNULIB_FSCANF 1
20630_ACEOF
20631
20632
20633  GNULIB_SCANF=1
20634
20635
20636cat >>confdefs.h <<_ACEOF
20637#define GNULIB_SCANF 1
20638_ACEOF
20639
20640
20641  GNULIB_FGETC=1
20642  GNULIB_GETC=1
20643  GNULIB_GETCHAR=1
20644  GNULIB_FGETS=1
20645  GNULIB_FREAD=1
20646
20647
20648      GNULIB_FPRINTF=1
20649  GNULIB_PRINTF=1
20650  GNULIB_VFPRINTF=1
20651  GNULIB_VPRINTF=1
20652  GNULIB_FPUTC=1
20653  GNULIB_PUTC=1
20654  GNULIB_PUTCHAR=1
20655  GNULIB_FPUTS=1
20656  GNULIB_PUTS=1
20657  GNULIB_FWRITE=1
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677     if test $gl_cv_have_include_next = yes; then
20678       gl_cv_next_stdlib_h='<'stdlib.h'>'
20679     else
20680       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20681$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20682if ${gl_cv_next_stdlib_h+:} false; then :
20683  $as_echo_n "(cached) " >&6
20684else
20685
20686
20687
20688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20689/* end confdefs.h.  */
20690#include <stdlib.h>
20691_ACEOF
20692                case "$host_os" in
20693    aix*) gl_absname_cpp="$ac_cpp -C" ;;
20694    *)    gl_absname_cpp="$ac_cpp" ;;
20695  esac
20696
20697  case "$host_os" in
20698    mingw*)
20699                                          gl_dirsep_regex='[/\\]'
20700      ;;
20701    *)
20702      gl_dirsep_regex='\/'
20703      ;;
20704  esac
20705      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20706  gl_header_literal_regex=`echo 'stdlib.h' \
20707                           | sed -e "$gl_make_literal_regex_sed"`
20708  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20709      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20710      s|^/[^/]|//&|
20711      p
20712      q
20713    }'
20714
20715        gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20716  sed -n "$gl_absolute_header_sed"`
20717
20718           gl_header=$gl_cv_absolute_stdlib_h
20719           gl_cv_next_stdlib_h='"'$gl_header'"'
20720
20721
20722fi
20723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20724$as_echo "$gl_cv_next_stdlib_h" >&6; }
20725     fi
20726     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20727
20728     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20729       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20730       gl_next_as_first_directive='<'stdlib.h'>'
20731     else
20732       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20733       gl_next_as_first_directive=$gl_cv_next_stdlib_h
20734     fi
20735     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753  for ac_func in stpcpy
20754do :
20755  ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
20756if test "x$ac_cv_func_stpcpy" = xyes; then :
20757  cat >>confdefs.h <<_ACEOF
20758#define HAVE_STPCPY 1
20759_ACEOF
20760
20761fi
20762done
20763
20764  if test $ac_cv_func_stpcpy = no; then
20765    HAVE_STPCPY=0
20766  fi
20767
20768  if test $HAVE_STPCPY = 0; then
20769
20770
20771
20772
20773
20774
20775
20776
20777  gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
20778
20779
20780  :
20781
20782  fi
20783
20784
20785
20786
20787
20788          GNULIB_STPCPY=1
20789
20790
20791
20792
20793
20794$as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
20795
20796
20797
20798
20799
20800
20801  for ac_func in strcasecmp
20802do :
20803  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20804if test "x$ac_cv_func_strcasecmp" = xyes; then :
20805  cat >>confdefs.h <<_ACEOF
20806#define HAVE_STRCASECMP 1
20807_ACEOF
20808
20809fi
20810done
20811
20812  if test $ac_cv_func_strcasecmp = no; then
20813    HAVE_STRCASECMP=0
20814  fi
20815
20816
20817
20818  for ac_func in strncasecmp
20819do :
20820  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
20821if test "x$ac_cv_func_strncasecmp" = xyes; then :
20822  cat >>confdefs.h <<_ACEOF
20823#define HAVE_STRNCASECMP 1
20824_ACEOF
20825
20826fi
20827done
20828
20829  if test $ac_cv_func_strncasecmp = yes; then
20830    HAVE_STRNCASECMP=1
20831  else
20832    HAVE_STRNCASECMP=0
20833  fi
20834  ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
20835if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
20836  ac_have_decl=1
20837else
20838  ac_have_decl=0
20839fi
20840
20841cat >>confdefs.h <<_ACEOF
20842#define HAVE_DECL_STRNCASECMP $ac_have_decl
20843_ACEOF
20844
20845  if test $ac_cv_have_decl_strncasecmp = no; then
20846    HAVE_DECL_STRNCASECMP=0
20847  fi
20848
20849
20850  if test $HAVE_STRCASECMP = 0; then
20851
20852
20853
20854
20855
20856
20857
20858
20859  gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
20860
20861
20862  :
20863
20864  fi
20865  if test $HAVE_STRNCASECMP = 0; then
20866
20867
20868
20869
20870
20871
20872
20873
20874  gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
20875
20876
20877  :
20878
20879  fi
20880
20881
20882
20883
20884  for ac_func in strchrnul
20885do :
20886  ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
20887if test "x$ac_cv_func_strchrnul" = xyes; then :
20888  cat >>confdefs.h <<_ACEOF
20889#define HAVE_STRCHRNUL 1
20890_ACEOF
20891
20892fi
20893done
20894
20895  if test $ac_cv_func_strchrnul = no; then
20896    HAVE_STRCHRNUL=0
20897  else
20898    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
20899$as_echo_n "checking whether strchrnul works... " >&6; }
20900if ${gl_cv_func_strchrnul_works+:} false; then :
20901  $as_echo_n "(cached) " >&6
20902else
20903  if test "$cross_compiling" = yes; then :
20904           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20905/* end confdefs.h.  */
20906
20907#if defined __CYGWIN__
20908 #include <cygwin/version.h>
20909 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
20910  Lucky user
20911 #endif
20912#else
20913  Lucky user
20914#endif
20915
20916_ACEOF
20917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20918  $EGREP "Lucky user" >/dev/null 2>&1; then :
20919  gl_cv_func_strchrnul_works="guessing yes"
20920else
20921  gl_cv_func_strchrnul_works="guessing no"
20922fi
20923rm -f conftest*
20924
20925
20926else
20927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928/* end confdefs.h.  */
20929
20930#include <string.h> /* for strchrnul */
20931
20932int
20933main ()
20934{
20935const char *buf = "a";
20936      return strchrnul (buf, 'b') != buf + 1;
20937
20938  ;
20939  return 0;
20940}
20941_ACEOF
20942if ac_fn_c_try_run "$LINENO"; then :
20943  gl_cv_func_strchrnul_works=yes
20944else
20945  gl_cv_func_strchrnul_works=no
20946fi
20947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20948  conftest.$ac_objext conftest.beam conftest.$ac_ext
20949fi
20950
20951
20952fi
20953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
20954$as_echo "$gl_cv_func_strchrnul_works" >&6; }
20955    case "$gl_cv_func_strchrnul_works" in
20956      *yes) ;;
20957      *) REPLACE_STRCHRNUL=1 ;;
20958    esac
20959  fi
20960
20961  if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
20962
20963
20964
20965
20966
20967
20968
20969
20970  gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
20971
20972    :
20973  fi
20974
20975
20976
20977
20978
20979          GNULIB_STRCHRNUL=1
20980
20981
20982
20983
20984
20985$as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
20986
20987
20988
20989
20990
20991
20992
20993
20994  if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
20995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
20996$as_echo_n "checking for working strerror function... " >&6; }
20997if ${gl_cv_func_working_strerror+:} false; then :
20998  $as_echo_n "(cached) " >&6
20999else
21000  if test "$cross_compiling" = yes; then :
21001  case "$host_os" in
21002                          # Guess yes on glibc systems.
21003           *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
21004                          # Guess yes on musl systems.
21005           *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
21006                          # If we don't know, obey --enable-cross-guesses.
21007           *)             gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
21008         esac
21009
21010else
21011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21012/* end confdefs.h.  */
21013#include <string.h>
21014
21015int
21016main ()
21017{
21018if (!*strerror (-2)) return 1;
21019  ;
21020  return 0;
21021}
21022_ACEOF
21023if ac_fn_c_try_run "$LINENO"; then :
21024  gl_cv_func_working_strerror=yes
21025else
21026  gl_cv_func_working_strerror=no
21027fi
21028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21029  conftest.$ac_objext conftest.beam conftest.$ac_ext
21030fi
21031
21032
21033fi
21034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
21035$as_echo "$gl_cv_func_working_strerror" >&6; }
21036    case "$gl_cv_func_working_strerror" in
21037      *yes) ;;
21038      *)
21039                        REPLACE_STRERROR=1
21040        ;;
21041    esac
21042
21043  else
21044            REPLACE_STRERROR=1
21045  fi
21046
21047  if test $REPLACE_STRERROR = 1; then
21048
21049
21050
21051
21052
21053
21054
21055
21056  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
21057
21058  fi
21059
21060
21061cat >>confdefs.h <<_ACEOF
21062#define GNULIB_STRERROR 1
21063_ACEOF
21064
21065
21066
21067
21068
21069
21070
21071          GNULIB_STRERROR=1
21072
21073
21074
21075
21076
21077$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
21078
21079
21080
21081
21082
21083  if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
21084
21085
21086
21087
21088
21089
21090
21091
21092  gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
21093
21094
21095
21096
21097
21098  if test $ac_cv_header_sys_socket_h != yes; then
21099                    for ac_header in winsock2.h
21100do :
21101  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21102if test "x$ac_cv_header_winsock2_h" = xyes; then :
21103  cat >>confdefs.h <<_ACEOF
21104#define HAVE_WINSOCK2_H 1
21105_ACEOF
21106
21107fi
21108
21109done
21110
21111  fi
21112  if test "$ac_cv_header_winsock2_h" = yes; then
21113    HAVE_WINSOCK2_H=1
21114    UNISTD_H_HAVE_WINSOCK2_H=1
21115    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21116  else
21117    HAVE_WINSOCK2_H=0
21118  fi
21119
21120
21121  fi
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134  if test $ac_cv_have_decl_strndup = no; then
21135    HAVE_DECL_STRNDUP=0
21136  fi
21137
21138  if test $ac_cv_func_strndup = yes; then
21139    HAVE_STRNDUP=1
21140    # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
21141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
21142$as_echo_n "checking for working strndup... " >&6; }
21143if ${gl_cv_func_strndup_works+:} false; then :
21144  $as_echo_n "(cached) " >&6
21145else
21146  if test "$cross_compiling" = yes; then :
21147
21148          case $host_os in
21149            aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
21150            *)               gl_cv_func_strndup_works="guessing yes";;
21151          esac
21152
21153else
21154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21155/* end confdefs.h.  */
21156
21157         #include <string.h>
21158                           #include <stdlib.h>
21159int
21160main ()
21161{
21162
21163#if !HAVE_DECL_STRNDUP
21164  extern
21165  #ifdef __cplusplus
21166  "C"
21167  #endif
21168  char *strndup (const char *, size_t);
21169#endif
21170  int result;
21171  char *s;
21172  s = strndup ("some longer string", 15);
21173  free (s);
21174  s = strndup ("shorter string", 13);
21175  result = s[13] != '\0';
21176  free (s);
21177  return result;
21178  ;
21179  return 0;
21180}
21181_ACEOF
21182if ac_fn_c_try_run "$LINENO"; then :
21183  gl_cv_func_strndup_works=yes
21184else
21185  gl_cv_func_strndup_works=no
21186fi
21187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21188  conftest.$ac_objext conftest.beam conftest.$ac_ext
21189fi
21190
21191fi
21192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
21193$as_echo "$gl_cv_func_strndup_works" >&6; }
21194    case $gl_cv_func_strndup_works in
21195      *no) REPLACE_STRNDUP=1 ;;
21196    esac
21197  else
21198    HAVE_STRNDUP=0
21199  fi
21200
21201  if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
21202
21203
21204
21205
21206
21207
21208
21209
21210  gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
21211
21212  fi
21213
21214
21215
21216
21217
21218          GNULIB_STRNDUP=1
21219
21220
21221
21222
21223
21224$as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234  if test $ac_cv_have_decl_strnlen = no; then
21235    HAVE_DECL_STRNLEN=0
21236  else
21237
21238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
21239$as_echo_n "checking for working strnlen... " >&6; }
21240if ${ac_cv_func_strnlen_working+:} false; then :
21241  $as_echo_n "(cached) " >&6
21242else
21243  if test "$cross_compiling" = yes; then :
21244  # Guess no on AIX systems, yes otherwise.
21245		case "$host_os" in
21246		  aix*) ac_cv_func_strnlen_working=no;;
21247		  *)    ac_cv_func_strnlen_working=yes;;
21248		esac
21249else
21250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251/* end confdefs.h.  */
21252$ac_includes_default
21253int
21254main ()
21255{
21256
21257#define S "foobar"
21258#define S_LEN (sizeof S - 1)
21259
21260  /* At least one implementation is buggy: that of AIX 4.3 would
21261     give strnlen (S, 1) == 3.  */
21262
21263  int i;
21264  for (i = 0; i < S_LEN + 1; ++i)
21265    {
21266      int expected = i <= S_LEN ? i : S_LEN;
21267      if (strnlen (S, i) != expected)
21268	return 1;
21269    }
21270  return 0;
21271
21272  ;
21273  return 0;
21274}
21275_ACEOF
21276if ac_fn_c_try_run "$LINENO"; then :
21277  ac_cv_func_strnlen_working=yes
21278else
21279  ac_cv_func_strnlen_working=no
21280fi
21281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21282  conftest.$ac_objext conftest.beam conftest.$ac_ext
21283fi
21284
21285fi
21286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
21287$as_echo "$ac_cv_func_strnlen_working" >&6; }
21288test $ac_cv_func_strnlen_working = no && :
21289
21290
21291    if test $ac_cv_func_strnlen_working = no; then
21292      REPLACE_STRNLEN=1
21293    fi
21294  fi
21295
21296  if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
21297
21298
21299
21300
21301
21302
21303
21304
21305  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
21306
21307    :
21308  fi
21309
21310
21311
21312
21313
21314          GNULIB_STRNLEN=1
21315
21316
21317
21318
21319
21320$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
21321
21322
21323
21324
21325
21326
21327
21328  for ac_func in strverscmp
21329do :
21330  ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
21331if test "x$ac_cv_func_strverscmp" = xyes; then :
21332  cat >>confdefs.h <<_ACEOF
21333#define HAVE_STRVERSCMP 1
21334_ACEOF
21335
21336fi
21337done
21338
21339  if test $ac_cv_func_strverscmp = no; then
21340    HAVE_STRVERSCMP=0
21341  fi
21342
21343  if test $HAVE_STRVERSCMP = 0; then
21344
21345
21346
21347
21348
21349
21350
21351
21352  gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
21353
21354
21355  :
21356
21357  fi
21358
21359
21360
21361
21362
21363          GNULIB_STRVERSCMP=1
21364
21365
21366
21367
21368
21369$as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387     if test $gl_cv_have_include_next = yes; then
21388       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21389     else
21390       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21391$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21392if ${gl_cv_next_sys_stat_h+:} false; then :
21393  $as_echo_n "(cached) " >&6
21394else
21395
21396             if test $ac_cv_header_sys_stat_h = yes; then
21397
21398
21399
21400
21401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21402/* end confdefs.h.  */
21403#include <sys/stat.h>
21404_ACEOF
21405                case "$host_os" in
21406    aix*) gl_absname_cpp="$ac_cpp -C" ;;
21407    *)    gl_absname_cpp="$ac_cpp" ;;
21408  esac
21409
21410  case "$host_os" in
21411    mingw*)
21412                                          gl_dirsep_regex='[/\\]'
21413      ;;
21414    *)
21415      gl_dirsep_regex='\/'
21416      ;;
21417  esac
21418      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21419  gl_header_literal_regex=`echo 'sys/stat.h' \
21420                           | sed -e "$gl_make_literal_regex_sed"`
21421  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21422      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21423      s|^/[^/]|//&|
21424      p
21425      q
21426    }'
21427
21428        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21429  sed -n "$gl_absolute_header_sed"`
21430
21431           gl_header=$gl_cv_absolute_sys_stat_h
21432           gl_cv_next_sys_stat_h='"'$gl_header'"'
21433          else
21434               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21435             fi
21436
21437
21438fi
21439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21440$as_echo "$gl_cv_next_sys_stat_h" >&6; }
21441     fi
21442     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21443
21444     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21445       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21446       gl_next_as_first_directive='<'sys/stat.h'>'
21447     else
21448       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21449       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21450     fi
21451     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21452
21453
21454
21455
21456
21457
21458
21459
21460    WINDOWS_STAT_TIMESPEC=0
21461
21462
21463
21464
21465
21466
21467
21468
21469      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21470     #include <sys/stat.h>
21471"
21472if test "x$ac_cv_type_nlink_t" = xyes; then :
21473
21474else
21475
21476$as_echo "#define nlink_t int" >>confdefs.h
21477
21478fi
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506     if test $gl_cv_have_include_next = yes; then
21507       gl_cv_next_sys_wait_h='<'sys/wait.h'>'
21508     else
21509       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
21510$as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
21511if ${gl_cv_next_sys_wait_h+:} false; then :
21512  $as_echo_n "(cached) " >&6
21513else
21514
21515             if test $ac_cv_header_sys_wait_h = yes; then
21516
21517
21518
21519
21520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21521/* end confdefs.h.  */
21522#include <sys/wait.h>
21523_ACEOF
21524                case "$host_os" in
21525    aix*) gl_absname_cpp="$ac_cpp -C" ;;
21526    *)    gl_absname_cpp="$ac_cpp" ;;
21527  esac
21528
21529  case "$host_os" in
21530    mingw*)
21531                                          gl_dirsep_regex='[/\\]'
21532      ;;
21533    *)
21534      gl_dirsep_regex='\/'
21535      ;;
21536  esac
21537      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21538  gl_header_literal_regex=`echo 'sys/wait.h' \
21539                           | sed -e "$gl_make_literal_regex_sed"`
21540  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21541      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21542      s|^/[^/]|//&|
21543      p
21544      q
21545    }'
21546
21547        gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21548  sed -n "$gl_absolute_header_sed"`
21549
21550           gl_header=$gl_cv_absolute_sys_wait_h
21551           gl_cv_next_sys_wait_h='"'$gl_header'"'
21552          else
21553               gl_cv_next_sys_wait_h='<'sys/wait.h'>'
21554             fi
21555
21556
21557fi
21558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
21559$as_echo "$gl_cv_next_sys_wait_h" >&6; }
21560     fi
21561     NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
21562
21563     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21564       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21565       gl_next_as_first_directive='<'sys/wait.h'>'
21566     else
21567       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21568       gl_next_as_first_directive=$gl_cv_next_sys_wait_h
21569     fi
21570     NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585  if test $ac_cv_header_sysexits_h = yes; then
21586    HAVE_SYSEXITS_H=1
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596     if test $gl_cv_have_include_next = yes; then
21597       gl_cv_next_sysexits_h='<'sysexits.h'>'
21598     else
21599       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
21600$as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
21601if ${gl_cv_next_sysexits_h+:} false; then :
21602  $as_echo_n "(cached) " >&6
21603else
21604
21605             if test $ac_cv_header_sysexits_h = yes; then
21606
21607
21608
21609
21610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611/* end confdefs.h.  */
21612#include <sysexits.h>
21613_ACEOF
21614                case "$host_os" in
21615    aix*) gl_absname_cpp="$ac_cpp -C" ;;
21616    *)    gl_absname_cpp="$ac_cpp" ;;
21617  esac
21618
21619  case "$host_os" in
21620    mingw*)
21621                                          gl_dirsep_regex='[/\\]'
21622      ;;
21623    *)
21624      gl_dirsep_regex='\/'
21625      ;;
21626  esac
21627      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21628  gl_header_literal_regex=`echo 'sysexits.h' \
21629                           | sed -e "$gl_make_literal_regex_sed"`
21630  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21631      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21632      s|^/[^/]|//&|
21633      p
21634      q
21635    }'
21636
21637        gl_cv_absolute_sysexits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21638  sed -n "$gl_absolute_header_sed"`
21639
21640           gl_header=$gl_cv_absolute_sysexits_h
21641           gl_cv_next_sysexits_h='"'$gl_header'"'
21642          else
21643               gl_cv_next_sysexits_h='<'sysexits.h'>'
21644             fi
21645
21646
21647fi
21648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
21649$as_echo "$gl_cv_next_sysexits_h" >&6; }
21650     fi
21651     NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
21652
21653     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21654       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21655       gl_next_as_first_directive='<'sysexits.h'>'
21656     else
21657       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21658       gl_next_as_first_directive=$gl_cv_next_sysexits_h
21659     fi
21660     NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
21661
21662
21663
21664
21665    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666/* end confdefs.h.  */
21667#include <sysexits.h>
21668int
21669main ()
21670{
21671switch (0)
21672          {
21673          case EX_OK:
21674          case EX_USAGE:
21675          case EX_DATAERR:
21676          case EX_NOINPUT:
21677          case EX_NOUSER:
21678          case EX_NOHOST:
21679          case EX_UNAVAILABLE:
21680          case EX_SOFTWARE:
21681          case EX_OSERR:
21682          case EX_OSFILE:
21683          case EX_CANTCREAT:
21684          case EX_IOERR:
21685          case EX_TEMPFAIL:
21686          case EX_PROTOCOL:
21687          case EX_NOPERM:
21688          case EX_CONFIG:
21689            break;
21690          }
21691
21692  ;
21693  return 0;
21694}
21695_ACEOF
21696if ac_fn_c_try_compile "$LINENO"; then :
21697  SYSEXITS_H=
21698else
21699  SYSEXITS_H=sysexits.h
21700fi
21701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702  else
21703    HAVE_SYSEXITS_H=0
21704    SYSEXITS_H=sysexits.h
21705  fi
21706
21707
21708   if test -n "$SYSEXITS_H"; then
21709  GL_GENERATE_SYSEXITS_H_TRUE=
21710  GL_GENERATE_SYSEXITS_H_FALSE='#'
21711else
21712  GL_GENERATE_SYSEXITS_H_TRUE='#'
21713  GL_GENERATE_SYSEXITS_H_FALSE=
21714fi
21715
21716
21717
21718
21719  :
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737     if test $gl_cv_have_include_next = yes; then
21738       gl_cv_next_unistd_h='<'unistd.h'>'
21739     else
21740       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21741$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21742if ${gl_cv_next_unistd_h+:} false; then :
21743  $as_echo_n "(cached) " >&6
21744else
21745
21746             if test $ac_cv_header_unistd_h = yes; then
21747
21748
21749
21750
21751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752/* end confdefs.h.  */
21753#include <unistd.h>
21754_ACEOF
21755                case "$host_os" in
21756    aix*) gl_absname_cpp="$ac_cpp -C" ;;
21757    *)    gl_absname_cpp="$ac_cpp" ;;
21758  esac
21759
21760  case "$host_os" in
21761    mingw*)
21762                                          gl_dirsep_regex='[/\\]'
21763      ;;
21764    *)
21765      gl_dirsep_regex='\/'
21766      ;;
21767  esac
21768      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21769  gl_header_literal_regex=`echo 'unistd.h' \
21770                           | sed -e "$gl_make_literal_regex_sed"`
21771  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21772      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21773      s|^/[^/]|//&|
21774      p
21775      q
21776    }'
21777
21778        gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21779  sed -n "$gl_absolute_header_sed"`
21780
21781           gl_header=$gl_cv_absolute_unistd_h
21782           gl_cv_next_unistd_h='"'$gl_header'"'
21783          else
21784               gl_cv_next_unistd_h='<'unistd.h'>'
21785             fi
21786
21787
21788fi
21789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21790$as_echo "$gl_cv_next_unistd_h" >&6; }
21791     fi
21792     NEXT_UNISTD_H=$gl_cv_next_unistd_h
21793
21794     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21795       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21796       gl_next_as_first_directive='<'unistd.h'>'
21797     else
21798       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21799       gl_next_as_first_directive=$gl_cv_next_unistd_h
21800     fi
21801     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21802
21803
21804
21805
21806  if test $ac_cv_header_unistd_h = yes; then
21807    HAVE_UNISTD_H=1
21808  else
21809    HAVE_UNISTD_H=0
21810  fi
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826  if test $ac_cv_func_vasnprintf = no; then
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
21868
21869  if test $ac_cv_func_vasnprintf = yes; then
21870
21871$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
21872
21873  fi
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
21884if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
21885
21886else
21887
21888$as_echo "#define ptrdiff_t long" >>confdefs.h
21889
21890
21891fi
21892
21893
21894
21895
21896
21897
21898
21899  fi
21900
21901
21902
21903  gl_cv_func_vsnprintf_usable=no
21904  for ac_func in vsnprintf
21905do :
21906  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
21907if test "x$ac_cv_func_vsnprintf" = xyes; then :
21908  cat >>confdefs.h <<_ACEOF
21909#define HAVE_VSNPRINTF 1
21910_ACEOF
21911
21912fi
21913done
21914
21915  if test $ac_cv_func_vsnprintf = yes; then
21916
21917
21918
21919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
21920$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
21921if ${gl_cv_func_snprintf_size1+:} false; then :
21922  $as_echo_n "(cached) " >&6
21923else
21924
21925      if test "$cross_compiling" = yes; then :
21926  case "$host_os" in
21927                            # Guess yes on Android.
21928           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
21929                            # Guess yes on native Windows.
21930           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
21931           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
21932         esac
21933
21934else
21935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936/* end confdefs.h.  */
21937
21938#include <stdio.h>
21939#if HAVE_SNPRINTF
21940# define my_snprintf snprintf
21941#else
21942# include <stdarg.h>
21943static int my_snprintf (char *buf, int size, const char *format, ...)
21944{
21945  va_list args;
21946  int ret;
21947  va_start (args, format);
21948  ret = vsnprintf (buf, size, format, args);
21949  va_end (args);
21950  return ret;
21951}
21952#endif
21953int main()
21954{
21955  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
21956  my_snprintf (buf, 1, "%d", 12345);
21957  return buf[1] != 'E';
21958}
21959_ACEOF
21960if ac_fn_c_try_run "$LINENO"; then :
21961  gl_cv_func_snprintf_size1=yes
21962else
21963  gl_cv_func_snprintf_size1=no
21964fi
21965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21966  conftest.$ac_objext conftest.beam conftest.$ac_ext
21967fi
21968
21969
21970fi
21971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
21972$as_echo "$gl_cv_func_snprintf_size1" >&6; }
21973
21974    case "$gl_cv_func_snprintf_size1" in
21975      *yes)
21976
21977        case "$gl_cv_func_snprintf_retval_c99" in
21978          *yes)
21979
21980
21981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
21982$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
21983if ${gl_cv_func_printf_positions+:} false; then :
21984  $as_echo_n "(cached) " >&6
21985else
21986
21987      if test "$cross_compiling" = yes; then :
21988
21989         case "$host_os" in
21990           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
21991                            gl_cv_func_printf_positions="guessing no";;
21992           beos*)           gl_cv_func_printf_positions="guessing no";;
21993                            # Guess yes on Android.
21994           linux*-android*) gl_cv_func_printf_positions="guessing yes";;
21995                            # Guess no on native Windows.
21996           mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
21997           *)               gl_cv_func_printf_positions="guessing yes";;
21998         esac
21999
22000else
22001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22002/* end confdefs.h.  */
22003
22004#include <stdio.h>
22005#include <string.h>
22006/* The string "%2$d %1$d", with dollar characters protected from the shell's
22007   dollar expansion (possibly an autoconf bug).  */
22008static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22009static char buf[100];
22010int main ()
22011{
22012  sprintf (buf, format, 33, 55);
22013  return (strcmp (buf, "55 33") != 0);
22014}
22015_ACEOF
22016if ac_fn_c_try_run "$LINENO"; then :
22017  gl_cv_func_printf_positions=yes
22018else
22019  gl_cv_func_printf_positions=no
22020fi
22021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22022  conftest.$ac_objext conftest.beam conftest.$ac_ext
22023fi
22024
22025
22026fi
22027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22028$as_echo "$gl_cv_func_printf_positions" >&6; }
22029
22030            case "$gl_cv_func_printf_positions" in
22031              *yes)
22032                gl_cv_func_vsnprintf_usable=yes
22033                ;;
22034            esac
22035            ;;
22036        esac
22037        ;;
22038    esac
22039  fi
22040  if test $gl_cv_func_vsnprintf_usable = no; then
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
22052
22053  if test $ac_cv_func_vsnprintf = yes; then
22054    REPLACE_VSNPRINTF=1
22055  else
22056
22057    if test $ac_cv_have_decl_vsnprintf = yes; then
22058                        REPLACE_VSNPRINTF=1
22059    fi
22060  fi
22061  :
22062
22063  fi
22064
22065  if test $ac_cv_have_decl_vsnprintf = no; then
22066    HAVE_DECL_VSNPRINTF=0
22067  fi
22068
22069
22070
22071
22072
22073
22074          GNULIB_VSNPRINTF=1
22075
22076
22077
22078
22079
22080$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096     if test $gl_cv_have_include_next = yes; then
22097       gl_cv_next_wchar_h='<'wchar.h'>'
22098     else
22099       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
22100$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
22101if ${gl_cv_next_wchar_h+:} false; then :
22102  $as_echo_n "(cached) " >&6
22103else
22104
22105             if test $ac_cv_header_wchar_h = yes; then
22106
22107
22108
22109
22110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111/* end confdefs.h.  */
22112#include <wchar.h>
22113_ACEOF
22114                case "$host_os" in
22115    aix*) gl_absname_cpp="$ac_cpp -C" ;;
22116    *)    gl_absname_cpp="$ac_cpp" ;;
22117  esac
22118
22119  case "$host_os" in
22120    mingw*)
22121                                          gl_dirsep_regex='[/\\]'
22122      ;;
22123    *)
22124      gl_dirsep_regex='\/'
22125      ;;
22126  esac
22127      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22128  gl_header_literal_regex=`echo 'wchar.h' \
22129                           | sed -e "$gl_make_literal_regex_sed"`
22130  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22131      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22132      s|^/[^/]|//&|
22133      p
22134      q
22135    }'
22136
22137        gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22138  sed -n "$gl_absolute_header_sed"`
22139
22140           gl_header=$gl_cv_absolute_wchar_h
22141           gl_cv_next_wchar_h='"'$gl_header'"'
22142          else
22143               gl_cv_next_wchar_h='<'wchar.h'>'
22144             fi
22145
22146
22147fi
22148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
22149$as_echo "$gl_cv_next_wchar_h" >&6; }
22150     fi
22151     NEXT_WCHAR_H=$gl_cv_next_wchar_h
22152
22153     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22154       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22155       gl_next_as_first_directive='<'wchar.h'>'
22156     else
22157       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22158       gl_next_as_first_directive=$gl_cv_next_wchar_h
22159     fi
22160     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
22161
22162
22163
22164
22165  if test $ac_cv_header_wchar_h = yes; then
22166    HAVE_WCHAR_H=1
22167  else
22168    HAVE_WCHAR_H=0
22169  fi
22170
22171
22172
22173
22174
22175  if test $gt_cv_c_wint_t = yes; then
22176    HAVE_WINT_T=1
22177  else
22178    HAVE_WINT_T=0
22179  fi
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195  if test $ac_cv_func_iswcntrl = yes; then
22196    HAVE_ISWCNTRL=1
22197  else
22198    HAVE_ISWCNTRL=0
22199  fi
22200
22201
22202
22203  if test $gt_cv_c_wint_t = yes; then
22204    HAVE_WINT_T=1
22205  else
22206    HAVE_WINT_T=0
22207  fi
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221     if test $gl_cv_have_include_next = yes; then
22222       gl_cv_next_wctype_h='<'wctype.h'>'
22223     else
22224       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
22225$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
22226if ${gl_cv_next_wctype_h+:} false; then :
22227  $as_echo_n "(cached) " >&6
22228else
22229
22230             if test $ac_cv_header_wctype_h = yes; then
22231
22232
22233
22234
22235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236/* end confdefs.h.  */
22237#include <wctype.h>
22238_ACEOF
22239                case "$host_os" in
22240    aix*) gl_absname_cpp="$ac_cpp -C" ;;
22241    *)    gl_absname_cpp="$ac_cpp" ;;
22242  esac
22243
22244  case "$host_os" in
22245    mingw*)
22246                                          gl_dirsep_regex='[/\\]'
22247      ;;
22248    *)
22249      gl_dirsep_regex='\/'
22250      ;;
22251  esac
22252      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22253  gl_header_literal_regex=`echo 'wctype.h' \
22254                           | sed -e "$gl_make_literal_regex_sed"`
22255  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22256      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22257      s|^/[^/]|//&|
22258      p
22259      q
22260    }'
22261
22262        gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22263  sed -n "$gl_absolute_header_sed"`
22264
22265           gl_header=$gl_cv_absolute_wctype_h
22266           gl_cv_next_wctype_h='"'$gl_header'"'
22267          else
22268               gl_cv_next_wctype_h='<'wctype.h'>'
22269             fi
22270
22271
22272fi
22273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
22274$as_echo "$gl_cv_next_wctype_h" >&6; }
22275     fi
22276     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
22277
22278     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22279       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22280       gl_next_as_first_directive='<'wctype.h'>'
22281     else
22282       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22283       gl_next_as_first_directive=$gl_cv_next_wctype_h
22284     fi
22285     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
22286
22287
22288
22289
22290  if test $ac_cv_header_wctype_h = yes; then
22291    if test $ac_cv_func_iswcntrl = yes; then
22292                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
22293$as_echo_n "checking whether iswcntrl works... " >&6; }
22294if ${gl_cv_func_iswcntrl_works+:} false; then :
22295  $as_echo_n "(cached) " >&6
22296else
22297
22298          if test "$cross_compiling" = yes; then :
22299               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300/* end confdefs.h.  */
22301#include <stdlib.h>
22302                          #if __GNU_LIBRARY__ == 1
22303                          Linux libc5 i18n is broken.
22304                          #endif
22305int
22306main ()
22307{
22308
22309  ;
22310  return 0;
22311}
22312_ACEOF
22313if ac_fn_c_try_compile "$LINENO"; then :
22314  gl_cv_func_iswcntrl_works="guessing yes"
22315else
22316  gl_cv_func_iswcntrl_works="guessing no"
22317fi
22318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319
22320else
22321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322/* end confdefs.h.  */
22323
22324               /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22325                  included before <wchar.h>.
22326                  BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22327                  must be included before <wchar.h>.  */
22328               #include <stddef.h>
22329               #include <stdio.h>
22330               #include <time.h>
22331               #include <wchar.h>
22332               #include <wctype.h>
22333               int main () { return iswprint ('x') == 0; }
22334
22335_ACEOF
22336if ac_fn_c_try_run "$LINENO"; then :
22337  gl_cv_func_iswcntrl_works=yes
22338else
22339  gl_cv_func_iswcntrl_works=no
22340fi
22341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22342  conftest.$ac_objext conftest.beam conftest.$ac_ext
22343fi
22344
22345
22346fi
22347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
22348$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
22349    fi
22350    HAVE_WCTYPE_H=1
22351  else
22352    HAVE_WCTYPE_H=0
22353  fi
22354
22355
22356  if test $GNULIB_OVERRIDES_WINT_T = 1; then
22357    REPLACE_ISWCNTRL=1
22358  else
22359    case "$gl_cv_func_iswcntrl_works" in
22360      *yes) REPLACE_ISWCNTRL=0 ;;
22361      *)    REPLACE_ISWCNTRL=1 ;;
22362    esac
22363  fi
22364
22365
22366  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
22367        :
22368  fi
22369
22370  if test $REPLACE_ISWCNTRL = 1; then
22371    REPLACE_TOWLOWER=1
22372  else
22373    for ac_func in towlower
22374do :
22375  ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
22376if test "x$ac_cv_func_towlower" = xyes; then :
22377  cat >>confdefs.h <<_ACEOF
22378#define HAVE_TOWLOWER 1
22379_ACEOF
22380
22381fi
22382done
22383
22384    if test $ac_cv_func_towlower = yes; then
22385      REPLACE_TOWLOWER=0
22386    else
22387      ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22388             included before <wchar.h>.
22389             BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22390             must be included before <wchar.h>.  */
22391          #include <stddef.h>
22392          #include <stdio.h>
22393          #include <time.h>
22394          #include <wchar.h>
22395          #if HAVE_WCTYPE_H
22396          # include <wctype.h>
22397          #endif
22398
22399"
22400if test "x$ac_cv_have_decl_towlower" = xyes; then :
22401  ac_have_decl=1
22402else
22403  ac_have_decl=0
22404fi
22405
22406cat >>confdefs.h <<_ACEOF
22407#define HAVE_DECL_TOWLOWER $ac_have_decl
22408_ACEOF
22409
22410      if test $ac_cv_have_decl_towlower = yes; then
22411                                REPLACE_TOWLOWER=1
22412      else
22413        REPLACE_TOWLOWER=0
22414      fi
22415    fi
22416  fi
22417
22418
22419  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
22420        :
22421  fi
22422
22423          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
22424$as_echo_n "checking for wctype_t... " >&6; }
22425if ${gl_cv_type_wctype_t+:} false; then :
22426  $as_echo_n "(cached) " >&6
22427else
22428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429/* end confdefs.h.  */
22430/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22431               included before <wchar.h>.
22432               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22433               must be included before <wchar.h>.  */
22434            #include <stddef.h>
22435            #include <stdio.h>
22436            #include <time.h>
22437            #include <wchar.h>
22438            #if HAVE_WCTYPE_H
22439            # include <wctype.h>
22440            #endif
22441            wctype_t a;
22442
22443int
22444main ()
22445{
22446
22447  ;
22448  return 0;
22449}
22450_ACEOF
22451if ac_fn_c_try_compile "$LINENO"; then :
22452  gl_cv_type_wctype_t=yes
22453else
22454  gl_cv_type_wctype_t=no
22455fi
22456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22457
22458fi
22459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
22460$as_echo "$gl_cv_type_wctype_t" >&6; }
22461  if test $gl_cv_type_wctype_t = no; then
22462    HAVE_WCTYPE_T=0
22463  fi
22464
22465      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
22466$as_echo_n "checking for wctrans_t... " >&6; }
22467if ${gl_cv_type_wctrans_t+:} false; then :
22468  $as_echo_n "(cached) " >&6
22469else
22470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22471/* end confdefs.h.  */
22472/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22473               included before <wchar.h>.
22474               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22475               must be included before <wchar.h>.  */
22476            #include <stddef.h>
22477            #include <stdio.h>
22478            #include <time.h>
22479            #include <wchar.h>
22480            #include <wctype.h>
22481            wctrans_t a;
22482
22483int
22484main ()
22485{
22486
22487  ;
22488  return 0;
22489}
22490_ACEOF
22491if ac_fn_c_try_compile "$LINENO"; then :
22492  gl_cv_type_wctrans_t=yes
22493else
22494  gl_cv_type_wctrans_t=no
22495fi
22496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22497
22498fi
22499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
22500$as_echo "$gl_cv_type_wctrans_t" >&6; }
22501  if test $gl_cv_type_wctrans_t = no; then
22502    HAVE_WCTRANS_T=0
22503  fi
22504
22505
22506
22507
22508
22509  :
22510
22511
22512  for ac_header in stdint.h
22513do :
22514  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22515if test "x$ac_cv_header_stdint_h" = xyes; then :
22516  cat >>confdefs.h <<_ACEOF
22517#define HAVE_STDINT_H 1
22518_ACEOF
22519
22520fi
22521
22522done
22523
22524
22525  # End of code from modules
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535  gltests_libdeps=
22536  gltests_ltlibdeps=
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547  gl_source_base='tests'
22548  gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
22549
22550  gl_module_indicator_condition=$gltests_WITNESS
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562# Use -Werror since using -fvisibility under MinGW is only a warning.
22563# (The option is ignored anyway since this does not make sense under windows).
22564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fvisibility=hidden" >&5
22565$as_echo_n "checking whether C compiler accepts -Werror -fvisibility=hidden... " >&6; }
22566if ${ax_cv_check_cflags___Werror__fvisibility_hidden+:} false; then :
22567  $as_echo_n "(cached) " >&6
22568else
22569
22570  ax_check_save_flags=$CFLAGS
22571  CFLAGS="$CFLAGS  -Werror -fvisibility=hidden"
22572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22573/* end confdefs.h.  */
22574
22575int
22576main ()
22577{
22578
22579  ;
22580  return 0;
22581}
22582_ACEOF
22583if ac_fn_c_try_compile "$LINENO"; then :
22584  ax_cv_check_cflags___Werror__fvisibility_hidden=yes
22585else
22586  ax_cv_check_cflags___Werror__fvisibility_hidden=no
22587fi
22588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22589  CFLAGS=$ax_check_save_flags
22590fi
22591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fvisibility_hidden" >&5
22592$as_echo "$ax_cv_check_cflags___Werror__fvisibility_hidden" >&6; }
22593if test x"$ax_cv_check_cflags___Werror__fvisibility_hidden" = xyes; then :
22594  CFLAGS="$CFLAGS -fvisibility=hidden"
22595fi
22596
22597ac_ext=cpp
22598ac_cpp='$CXXCPP $CPPFLAGS'
22599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22602
22603
22604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror -fvisibility=hidden" >&5
22605$as_echo_n "checking whether C++ compiler accepts -Werror -fvisibility=hidden... " >&6; }
22606if ${ax_cv_check_cxxflags___Werror__fvisibility_hidden+:} false; then :
22607  $as_echo_n "(cached) " >&6
22608else
22609
22610  ax_check_save_flags=$CXXFLAGS
22611  CXXFLAGS="$CXXFLAGS  -Werror -fvisibility=hidden"
22612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613/* end confdefs.h.  */
22614
22615int
22616main ()
22617{
22618
22619  ;
22620  return 0;
22621}
22622_ACEOF
22623if ac_fn_cxx_try_compile "$LINENO"; then :
22624  ax_cv_check_cxxflags___Werror__fvisibility_hidden=yes
22625else
22626  ax_cv_check_cxxflags___Werror__fvisibility_hidden=no
22627fi
22628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22629  CXXFLAGS=$ax_check_save_flags
22630fi
22631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror__fvisibility_hidden" >&5
22632$as_echo "$ax_cv_check_cxxflags___Werror__fvisibility_hidden" >&6; }
22633if test x"$ax_cv_check_cxxflags___Werror__fvisibility_hidden" = xyes; then :
22634  CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
22635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -fvisibility-inlines-hidden" >&5
22636$as_echo_n "checking whether C++ compiler accepts -fvisibility-inlines-hidden... " >&6; }
22637if ${ax_cv_check_cxxflags___fvisibility_inlines_hidden+:} false; then :
22638  $as_echo_n "(cached) " >&6
22639else
22640
22641  ax_check_save_flags=$CXXFLAGS
22642  CXXFLAGS="$CXXFLAGS  -fvisibility-inlines-hidden"
22643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644/* end confdefs.h.  */
22645
22646int
22647main ()
22648{
22649
22650  ;
22651  return 0;
22652}
22653_ACEOF
22654if ac_fn_cxx_try_compile "$LINENO"; then :
22655  ax_cv_check_cxxflags___fvisibility_inlines_hidden=yes
22656else
22657  ax_cv_check_cxxflags___fvisibility_inlines_hidden=no
22658fi
22659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22660  CXXFLAGS=$ax_check_save_flags
22661fi
22662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___fvisibility_inlines_hidden" >&5
22663$as_echo "$ax_cv_check_cxxflags___fvisibility_inlines_hidden" >&6; }
22664if test x"$ax_cv_check_cxxflags___fvisibility_inlines_hidden" = xyes; then :
22665  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22666fi
22667
22668fi
22669
22670CXXFLAGS="$CXXFLAGS -DSPOT_BUILD"
22671
22672# Turn on C++17 support
22673
22674
22675if test x"${enable_20}" = xyes; then
22676  for f in -std=c++20 '-std=c++20 -stdlib=libc++' -std=c++2a
22677  do
22678    as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$f" | $as_tr_sh`
22679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $f" >&5
22680$as_echo_n "checking whether C++ compiler accepts $f... " >&6; }
22681if eval \${$as_CACHEVAR+:} false; then :
22682  $as_echo_n "(cached) " >&6
22683else
22684
22685  ax_check_save_flags=$CXXFLAGS
22686  CXXFLAGS="$CXXFLAGS  $f"
22687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22688/* end confdefs.h.  */
22689#include <memory>
22690#include <string>
22691#include <chrono>  // used to fail in C++11 with some installation of clang
22692#include <map>
22693
22694    template <typename T>
22695    struct check
22696    {
22697      static_assert(sizeof(int) <= sizeof(T), "not big enough");
22698    };
22699
22700    typedef check<check<bool>> right_angle_brackets;
22701
22702    auto f = std::make_unique<std::string>("uniq_ptr");
22703
22704    int a;
22705    decltype(a) b;
22706
22707    typedef check<int> check_type;
22708    check_type c;
22709    check_type&& cr = static_cast<check_type&&>(c);
22710
22711    auto d = a;
22712
22713    int aa[2] = {1,2};
22714    auto [x,y] = aa;
22715
22716_ACEOF
22717if ac_fn_cxx_try_compile "$LINENO"; then :
22718  eval "$as_CACHEVAR=yes"
22719else
22720  eval "$as_CACHEVAR=no"
22721fi
22722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723  CXXFLAGS=$ax_check_save_flags
22724fi
22725eval ac_res=\$$as_CACHEVAR
22726	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22727$as_echo "$ac_res" >&6; }
22728if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22729  CXXFLAGS="$CXXFLAGS $f" stdpass=true
22730fi
22731
22732    ${stdpass-false} && break
22733  done
22734  if ! "${stdpass-false}"; then
22735    as_fn_error $? "unable to turn on C++20 mode with this compiler" "$LINENO" 5
22736  fi
22737else
22738  for f in -std=c++17 '-std=c++17 -stdlib=libc++' -std=c++1z
22739  do
22740    as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$f" | $as_tr_sh`
22741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $f" >&5
22742$as_echo_n "checking whether C++ compiler accepts $f... " >&6; }
22743if eval \${$as_CACHEVAR+:} false; then :
22744  $as_echo_n "(cached) " >&6
22745else
22746
22747  ax_check_save_flags=$CXXFLAGS
22748  CXXFLAGS="$CXXFLAGS  $f"
22749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22750/* end confdefs.h.  */
22751#include <memory>
22752#include <string>
22753#include <chrono>  // used to fail in C++11 with some installation of clang
22754#include <map>
22755
22756    template <typename T>
22757    struct check
22758    {
22759      static_assert(sizeof(int) <= sizeof(T), "not big enough");
22760    };
22761
22762    typedef check<check<bool>> right_angle_brackets;
22763
22764    auto f = std::make_unique<std::string>("uniq_ptr");
22765
22766    int a;
22767    decltype(a) b;
22768
22769    typedef check<int> check_type;
22770    check_type c;
22771    check_type&& cr = static_cast<check_type&&>(c);
22772
22773    auto d = a;
22774
22775    int aa[2] = {1,2};
22776    auto [x,y] = aa;
22777
22778_ACEOF
22779if ac_fn_cxx_try_compile "$LINENO"; then :
22780  eval "$as_CACHEVAR=yes"
22781else
22782  eval "$as_CACHEVAR=no"
22783fi
22784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785  CXXFLAGS=$ax_check_save_flags
22786fi
22787eval ac_res=\$$as_CACHEVAR
22788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22789$as_echo "$ac_res" >&6; }
22790if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22791  CXXFLAGS="$CXXFLAGS $f" stdpass=true
22792fi
22793
22794    ${stdpass-false} && break
22795  done
22796  if ! "${stdpass-false}"; then
22797    as_fn_error $? "unable to turn on C++17 mode with this compiler" "$LINENO" 5
22798  fi
22799fi
22800
22801
22802  ac_ext=cpp
22803ac_cpp='$CXXCPP $CPPFLAGS'
22804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22807
22808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::atomic can be used without link library" >&5
22809$as_echo_n "checking whether std::atomic can be used without link library... " >&6; }
22810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22811/* end confdefs.h.  */
22812
22813#include <atomic>
22814#include <cstdint>
22815
22816template< typename T >
22817struct Tagged
22818{
22819    T t;
22820    uint32_t _tag;
22821    static const int tag_bits = 16;
22822    void tag( uint32_t v ) { _tag = v; }
22823    uint32_t tag() { return _tag; }
22824    Tagged() noexcept : t(), _tag( 0 ) {}
22825    Tagged( const T &t ) : t( t ), _tag( 0 ) {}
22826};
22827
22828int main() {
22829  std::atomic<int64_t> a{};
22830  int64_t v = 5;
22831  int64_t r = a.fetch_add(v);
22832  std::atomic<Tagged<int>> value;
22833  return static_cast<int>(r) + value.load().t;
22834}
22835
22836_ACEOF
22837if ac_fn_cxx_try_link "$LINENO"; then :
22838
22839      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22840$as_echo "yes" >&6; }
22841
22842else
22843
22844      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22845$as_echo "no" >&6; }
22846      LIBS="$LIBS -latomic"
22847      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::atomic needs -latomic" >&5
22848$as_echo_n "checking whether std::atomic needs -latomic... " >&6; }
22849      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22850/* end confdefs.h.  */
22851
22852#include <atomic>
22853#include <cstdint>
22854
22855template< typename T >
22856struct Tagged
22857{
22858    T t;
22859    uint32_t _tag;
22860    static const int tag_bits = 16;
22861    void tag( uint32_t v ) { _tag = v; }
22862    uint32_t tag() { return _tag; }
22863    Tagged() noexcept : t(), _tag( 0 ) {}
22864    Tagged( const T &t ) : t( t ), _tag( 0 ) {}
22865};
22866
22867int main() {
22868  std::atomic<int64_t> a{};
22869  int64_t v = 5;
22870  int64_t r = a.fetch_add(v);
22871  std::atomic<Tagged<int>> value;
22872  return static_cast<int>(r) + value.load().t;
22873}
22874
22875_ACEOF
22876if ac_fn_cxx_try_link "$LINENO"; then :
22877
22878          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22879$as_echo "yes" >&6; }
22880
22881else
22882
22883          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22884$as_echo "no" >&6; }
22885          { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22887as_fn_error $? "cannot figure out how to use std::atomic
22888See \`config.log' for more details" "$LINENO" 5; }
22889
22890fi
22891rm -f core conftest.err conftest.$ac_objext \
22892    conftest$ac_exeext conftest.$ac_ext
22893
22894fi
22895rm -f core conftest.err conftest.$ac_objext \
22896    conftest$ac_exeext conftest.$ac_ext
22897  ac_ext=cpp
22898ac_cpp='$CXXCPP $CPPFLAGS'
22899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22902
22903
22904
22905
22906
22907
22908  BUDDY_LDFLAGS='$(top_builddir)/buddy/src/libbddx.la'
22909
22910  BUDDY_CPPFLAGS='-I$(top_srcdir)/buddy/src'
22911
22912  subdirs="$subdirs buddy"
22913
22914
22915
22916ac_ext=cpp
22917ac_cpp='$CXXCPP $CPPFLAGS'
22918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
22922$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
22923if test -z "$CXXCPP"; then
22924  if ${ac_cv_prog_CXXCPP+:} false; then :
22925  $as_echo_n "(cached) " >&6
22926else
22927      # Double quotes because CXXCPP needs to be expanded
22928    for CXXCPP in "$CXX -E" "/lib/cpp"
22929    do
22930      ac_preproc_ok=false
22931for ac_cxx_preproc_warn_flag in '' yes
22932do
22933  # Use a header file that comes with gcc, so configuring glibc
22934  # with a fresh cross-compiler works.
22935  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22936  # <limits.h> exists even on freestanding compilers.
22937  # On the NeXT, cc -E runs the code through the compiler's parser,
22938  # not just through cpp. "Syntax error" is here to catch this case.
22939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22940/* end confdefs.h.  */
22941#ifdef __STDC__
22942# include <limits.h>
22943#else
22944# include <assert.h>
22945#endif
22946		     Syntax error
22947_ACEOF
22948if ac_fn_cxx_try_cpp "$LINENO"; then :
22949
22950else
22951  # Broken: fails on valid input.
22952continue
22953fi
22954rm -f conftest.err conftest.i conftest.$ac_ext
22955
22956  # OK, works on sane cases.  Now check whether nonexistent headers
22957  # can be detected and how.
22958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959/* end confdefs.h.  */
22960#include <ac_nonexistent.h>
22961_ACEOF
22962if ac_fn_cxx_try_cpp "$LINENO"; then :
22963  # Broken: success on invalid input.
22964continue
22965else
22966  # Passes both tests.
22967ac_preproc_ok=:
22968break
22969fi
22970rm -f conftest.err conftest.i conftest.$ac_ext
22971
22972done
22973# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22974rm -f conftest.i conftest.err conftest.$ac_ext
22975if $ac_preproc_ok; then :
22976  break
22977fi
22978
22979    done
22980    ac_cv_prog_CXXCPP=$CXXCPP
22981
22982fi
22983  CXXCPP=$ac_cv_prog_CXXCPP
22984else
22985  ac_cv_prog_CXXCPP=$CXXCPP
22986fi
22987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
22988$as_echo "$CXXCPP" >&6; }
22989ac_preproc_ok=false
22990for ac_cxx_preproc_warn_flag in '' yes
22991do
22992  # Use a header file that comes with gcc, so configuring glibc
22993  # with a fresh cross-compiler works.
22994  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22995  # <limits.h> exists even on freestanding compilers.
22996  # On the NeXT, cc -E runs the code through the compiler's parser,
22997  # not just through cpp. "Syntax error" is here to catch this case.
22998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999/* end confdefs.h.  */
23000#ifdef __STDC__
23001# include <limits.h>
23002#else
23003# include <assert.h>
23004#endif
23005		     Syntax error
23006_ACEOF
23007if ac_fn_cxx_try_cpp "$LINENO"; then :
23008
23009else
23010  # Broken: fails on valid input.
23011continue
23012fi
23013rm -f conftest.err conftest.i conftest.$ac_ext
23014
23015  # OK, works on sane cases.  Now check whether nonexistent headers
23016  # can be detected and how.
23017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23018/* end confdefs.h.  */
23019#include <ac_nonexistent.h>
23020_ACEOF
23021if ac_fn_cxx_try_cpp "$LINENO"; then :
23022  # Broken: success on invalid input.
23023continue
23024else
23025  # Passes both tests.
23026ac_preproc_ok=:
23027break
23028fi
23029rm -f conftest.err conftest.i conftest.$ac_ext
23030
23031done
23032# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23033rm -f conftest.i conftest.err conftest.$ac_ext
23034if $ac_preproc_ok; then :
23035
23036else
23037  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23039as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
23040See \`config.log' for more details" "$LINENO" 5; }
23041fi
23042
23043ac_ext=cpp
23044ac_cpp='$CXXCPP $CPPFLAGS'
23045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23048
23049
23050for ac_header in sys/times.h valgrind/memcheck.h spawn.h
23051do :
23052  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23053ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23054if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23055  cat >>confdefs.h <<_ACEOF
23056#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23057_ACEOF
23058
23059fi
23060
23061done
23062
23063for ac_func in times kill alarm sigaction sched_getcpu
23064do :
23065  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23066ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
23067if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23068  cat >>confdefs.h <<_ACEOF
23069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23070_ACEOF
23071
23072fi
23073done
23074
23075
23076oLIBS=$LIBS
23077LIBS="$LIBS -lpthread"
23078for ac_func in pthread_setaffinity_np
23079do :
23080  ac_fn_cxx_check_func "$LINENO" "pthread_setaffinity_np" "ac_cv_func_pthread_setaffinity_np"
23081if test "x$ac_cv_func_pthread_setaffinity_np" = xyes; then :
23082  cat >>confdefs.h <<_ACEOF
23083#define HAVE_PTHREAD_SETAFFINITY_NP 1
23084_ACEOF
23085
23086fi
23087done
23088
23089LIBS=$oLIBS
23090
23091
23092
23093
23094
23095
23096
23097
23098case `pwd` in
23099  *\ * | *\	*)
23100    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
23101$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
23102esac
23103
23104
23105
23106macro_version='2.4.6'
23107macro_revision='2.4.6'
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121ltmain=$ac_aux_dir/ltmain.sh
23122
23123# Backslashify metacharacters that are still active within
23124# double-quoted strings.
23125sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
23126
23127# Same as above, but do not quote variable references.
23128double_quote_subst='s/\(["`\\]\)/\\\1/g'
23129
23130# Sed substitution to delay expansion of an escaped shell variable in a
23131# double_quote_subst'ed string.
23132delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
23133
23134# Sed substitution to delay expansion of an escaped single quote.
23135delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
23136
23137# Sed substitution to avoid accidental globbing in evaled expressions
23138no_glob_subst='s/\*/\\\*/g'
23139
23140ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23141ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
23142ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
23143
23144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
23145$as_echo_n "checking how to print strings... " >&6; }
23146# Test print first, because it will be a builtin if present.
23147if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
23148   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
23149  ECHO='print -r --'
23150elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
23151  ECHO='printf %s\n'
23152else
23153  # Use this function as a fallback that always works.
23154  func_fallback_echo ()
23155  {
23156    eval 'cat <<_LTECHO_EOF
23157$1
23158_LTECHO_EOF'
23159  }
23160  ECHO='func_fallback_echo'
23161fi
23162
23163# func_echo_all arg...
23164# Invoke $ECHO with all args, space-separated.
23165func_echo_all ()
23166{
23167    $ECHO ""
23168}
23169
23170case $ECHO in
23171  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
23172$as_echo "printf" >&6; } ;;
23173  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
23174$as_echo "print -r" >&6; } ;;
23175  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
23176$as_echo "cat" >&6; } ;;
23177esac
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
23193$as_echo_n "checking for a sed that does not truncate output... " >&6; }
23194if ${ac_cv_path_SED+:} false; then :
23195  $as_echo_n "(cached) " >&6
23196else
23197            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
23198     for ac_i in 1 2 3 4 5 6 7; do
23199       ac_script="$ac_script$as_nl$ac_script"
23200     done
23201     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
23202     { ac_script=; unset ac_script;}
23203     if test -z "$SED"; then
23204  ac_path_SED_found=false
23205  # Loop through the user's path and test for each of PROGNAME-LIST
23206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23207for as_dir in $PATH
23208do
23209  IFS=$as_save_IFS
23210  test -z "$as_dir" && as_dir=.
23211    for ac_prog in sed gsed; do
23212    for ac_exec_ext in '' $ac_executable_extensions; do
23213      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
23214      as_fn_executable_p "$ac_path_SED" || continue
23215# Check for GNU ac_path_SED and select it if it is found.
23216  # Check for GNU $ac_path_SED
23217case `"$ac_path_SED" --version 2>&1` in
23218*GNU*)
23219  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
23220*)
23221  ac_count=0
23222  $as_echo_n 0123456789 >"conftest.in"
23223  while :
23224  do
23225    cat "conftest.in" "conftest.in" >"conftest.tmp"
23226    mv "conftest.tmp" "conftest.in"
23227    cp "conftest.in" "conftest.nl"
23228    $as_echo '' >> "conftest.nl"
23229    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
23230    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23231    as_fn_arith $ac_count + 1 && ac_count=$as_val
23232    if test $ac_count -gt ${ac_path_SED_max-0}; then
23233      # Best one so far, save it but keep looking for a better one
23234      ac_cv_path_SED="$ac_path_SED"
23235      ac_path_SED_max=$ac_count
23236    fi
23237    # 10*(2^10) chars as input seems more than enough
23238    test $ac_count -gt 10 && break
23239  done
23240  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23241esac
23242
23243      $ac_path_SED_found && break 3
23244    done
23245  done
23246  done
23247IFS=$as_save_IFS
23248  if test -z "$ac_cv_path_SED"; then
23249    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
23250  fi
23251else
23252  ac_cv_path_SED=$SED
23253fi
23254
23255fi
23256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
23257$as_echo "$ac_cv_path_SED" >&6; }
23258 SED="$ac_cv_path_SED"
23259  rm -f conftest.sed
23260
23261test -z "$SED" && SED=sed
23262Xsed="$SED -e 1s/^X//"
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
23275$as_echo_n "checking for fgrep... " >&6; }
23276if ${ac_cv_path_FGREP+:} false; then :
23277  $as_echo_n "(cached) " >&6
23278else
23279  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
23280   then ac_cv_path_FGREP="$GREP -F"
23281   else
23282     if test -z "$FGREP"; then
23283  ac_path_FGREP_found=false
23284  # Loop through the user's path and test for each of PROGNAME-LIST
23285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23286for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
23287do
23288  IFS=$as_save_IFS
23289  test -z "$as_dir" && as_dir=.
23290    for ac_prog in fgrep; do
23291    for ac_exec_ext in '' $ac_executable_extensions; do
23292      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
23293      as_fn_executable_p "$ac_path_FGREP" || continue
23294# Check for GNU ac_path_FGREP and select it if it is found.
23295  # Check for GNU $ac_path_FGREP
23296case `"$ac_path_FGREP" --version 2>&1` in
23297*GNU*)
23298  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
23299*)
23300  ac_count=0
23301  $as_echo_n 0123456789 >"conftest.in"
23302  while :
23303  do
23304    cat "conftest.in" "conftest.in" >"conftest.tmp"
23305    mv "conftest.tmp" "conftest.in"
23306    cp "conftest.in" "conftest.nl"
23307    $as_echo 'FGREP' >> "conftest.nl"
23308    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
23309    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23310    as_fn_arith $ac_count + 1 && ac_count=$as_val
23311    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
23312      # Best one so far, save it but keep looking for a better one
23313      ac_cv_path_FGREP="$ac_path_FGREP"
23314      ac_path_FGREP_max=$ac_count
23315    fi
23316    # 10*(2^10) chars as input seems more than enough
23317    test $ac_count -gt 10 && break
23318  done
23319  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23320esac
23321
23322      $ac_path_FGREP_found && break 3
23323    done
23324  done
23325  done
23326IFS=$as_save_IFS
23327  if test -z "$ac_cv_path_FGREP"; then
23328    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
23329  fi
23330else
23331  ac_cv_path_FGREP=$FGREP
23332fi
23333
23334   fi
23335fi
23336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
23337$as_echo "$ac_cv_path_FGREP" >&6; }
23338 FGREP="$ac_cv_path_FGREP"
23339
23340
23341test -z "$GREP" && GREP=grep
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361# Check whether --with-gnu-ld was given.
23362if test "${with_gnu_ld+set}" = set; then :
23363  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
23364else
23365  with_gnu_ld=no
23366fi
23367
23368ac_prog=ld
23369if test yes = "$GCC"; then
23370  # Check if gcc -print-prog-name=ld gives a path.
23371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
23372$as_echo_n "checking for ld used by $CC... " >&6; }
23373  case $host in
23374  *-*-mingw*)
23375    # gcc leaves a trailing carriage return, which upsets mingw
23376    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
23377  *)
23378    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
23379  esac
23380  case $ac_prog in
23381    # Accept absolute paths.
23382    [\\/]* | ?:[\\/]*)
23383      re_direlt='/[^/][^/]*/\.\./'
23384      # Canonicalize the pathname of ld
23385      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
23386      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
23387	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
23388      done
23389      test -z "$LD" && LD=$ac_prog
23390      ;;
23391  "")
23392    # If it fails, then pretend we aren't using GCC.
23393    ac_prog=ld
23394    ;;
23395  *)
23396    # If it is relative, then search for the first ld in PATH.
23397    with_gnu_ld=unknown
23398    ;;
23399  esac
23400elif test yes = "$with_gnu_ld"; then
23401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
23402$as_echo_n "checking for GNU ld... " >&6; }
23403else
23404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
23405$as_echo_n "checking for non-GNU ld... " >&6; }
23406fi
23407if ${lt_cv_path_LD+:} false; then :
23408  $as_echo_n "(cached) " >&6
23409else
23410  if test -z "$LD"; then
23411  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
23412  for ac_dir in $PATH; do
23413    IFS=$lt_save_ifs
23414    test -z "$ac_dir" && ac_dir=.
23415    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
23416      lt_cv_path_LD=$ac_dir/$ac_prog
23417      # Check to see if the program is GNU ld.  I'd rather use --version,
23418      # but apparently some variants of GNU ld only accept -v.
23419      # Break only if it was the GNU/non-GNU ld that we prefer.
23420      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
23421      *GNU* | *'with BFD'*)
23422	test no != "$with_gnu_ld" && break
23423	;;
23424      *)
23425	test yes != "$with_gnu_ld" && break
23426	;;
23427      esac
23428    fi
23429  done
23430  IFS=$lt_save_ifs
23431else
23432  lt_cv_path_LD=$LD # Let the user override the test with a path.
23433fi
23434fi
23435
23436LD=$lt_cv_path_LD
23437if test -n "$LD"; then
23438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
23439$as_echo "$LD" >&6; }
23440else
23441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23442$as_echo "no" >&6; }
23443fi
23444test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
23445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
23446$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
23447if ${lt_cv_prog_gnu_ld+:} false; then :
23448  $as_echo_n "(cached) " >&6
23449else
23450  # I'd rather use --version here, but apparently some GNU lds only accept -v.
23451case `$LD -v 2>&1 </dev/null` in
23452*GNU* | *'with BFD'*)
23453  lt_cv_prog_gnu_ld=yes
23454  ;;
23455*)
23456  lt_cv_prog_gnu_ld=no
23457  ;;
23458esac
23459fi
23460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
23461$as_echo "$lt_cv_prog_gnu_ld" >&6; }
23462with_gnu_ld=$lt_cv_prog_gnu_ld
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
23473$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
23474if ${lt_cv_path_NM+:} false; then :
23475  $as_echo_n "(cached) " >&6
23476else
23477  if test -n "$NM"; then
23478  # Let the user override the test.
23479  lt_cv_path_NM=$NM
23480else
23481  lt_nm_to_check=${ac_tool_prefix}nm
23482  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
23483    lt_nm_to_check="$lt_nm_to_check nm"
23484  fi
23485  for lt_tmp_nm in $lt_nm_to_check; do
23486    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
23487    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
23488      IFS=$lt_save_ifs
23489      test -z "$ac_dir" && ac_dir=.
23490      tmp_nm=$ac_dir/$lt_tmp_nm
23491      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
23492	# Check to see if the nm accepts a BSD-compat flag.
23493	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
23494	#   nm: unknown option "B" ignored
23495	# Tru64's nm complains that /dev/null is an invalid object file
23496	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
23497	case $build_os in
23498	mingw*) lt_bad_file=conftest.nm/nofile ;;
23499	*) lt_bad_file=/dev/null ;;
23500	esac
23501	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
23502	*$lt_bad_file* | *'Invalid file or object type'*)
23503	  lt_cv_path_NM="$tmp_nm -B"
23504	  break 2
23505	  ;;
23506	*)
23507	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
23508	  */dev/null*)
23509	    lt_cv_path_NM="$tmp_nm -p"
23510	    break 2
23511	    ;;
23512	  *)
23513	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
23514	    continue # so that we can try to find one that supports BSD flags
23515	    ;;
23516	  esac
23517	  ;;
23518	esac
23519      fi
23520    done
23521    IFS=$lt_save_ifs
23522  done
23523  : ${lt_cv_path_NM=no}
23524fi
23525fi
23526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
23527$as_echo "$lt_cv_path_NM" >&6; }
23528if test no != "$lt_cv_path_NM"; then
23529  NM=$lt_cv_path_NM
23530else
23531  # Didn't find any BSD compatible name lister, look for dumpbin.
23532  if test -n "$DUMPBIN"; then :
23533    # Let the user override the test.
23534  else
23535    if test -n "$ac_tool_prefix"; then
23536  for ac_prog in dumpbin "link -dump"
23537  do
23538    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23539set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23541$as_echo_n "checking for $ac_word... " >&6; }
23542if ${ac_cv_prog_DUMPBIN+:} false; then :
23543  $as_echo_n "(cached) " >&6
23544else
23545  if test -n "$DUMPBIN"; then
23546  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
23547else
23548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23549for as_dir in $PATH
23550do
23551  IFS=$as_save_IFS
23552  test -z "$as_dir" && as_dir=.
23553    for ac_exec_ext in '' $ac_executable_extensions; do
23554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23555    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
23556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23557    break 2
23558  fi
23559done
23560  done
23561IFS=$as_save_IFS
23562
23563fi
23564fi
23565DUMPBIN=$ac_cv_prog_DUMPBIN
23566if test -n "$DUMPBIN"; then
23567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
23568$as_echo "$DUMPBIN" >&6; }
23569else
23570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23571$as_echo "no" >&6; }
23572fi
23573
23574
23575    test -n "$DUMPBIN" && break
23576  done
23577fi
23578if test -z "$DUMPBIN"; then
23579  ac_ct_DUMPBIN=$DUMPBIN
23580  for ac_prog in dumpbin "link -dump"
23581do
23582  # Extract the first word of "$ac_prog", so it can be a program name with args.
23583set dummy $ac_prog; ac_word=$2
23584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23585$as_echo_n "checking for $ac_word... " >&6; }
23586if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
23587  $as_echo_n "(cached) " >&6
23588else
23589  if test -n "$ac_ct_DUMPBIN"; then
23590  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
23591else
23592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23593for as_dir in $PATH
23594do
23595  IFS=$as_save_IFS
23596  test -z "$as_dir" && as_dir=.
23597    for ac_exec_ext in '' $ac_executable_extensions; do
23598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23599    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
23600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23601    break 2
23602  fi
23603done
23604  done
23605IFS=$as_save_IFS
23606
23607fi
23608fi
23609ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
23610if test -n "$ac_ct_DUMPBIN"; then
23611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
23612$as_echo "$ac_ct_DUMPBIN" >&6; }
23613else
23614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23615$as_echo "no" >&6; }
23616fi
23617
23618
23619  test -n "$ac_ct_DUMPBIN" && break
23620done
23621
23622  if test "x$ac_ct_DUMPBIN" = x; then
23623    DUMPBIN=":"
23624  else
23625    case $cross_compiling:$ac_tool_warned in
23626yes:)
23627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23629ac_tool_warned=yes ;;
23630esac
23631    DUMPBIN=$ac_ct_DUMPBIN
23632  fi
23633fi
23634
23635    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
23636    *COFF*)
23637      DUMPBIN="$DUMPBIN -symbols -headers"
23638      ;;
23639    *)
23640      DUMPBIN=:
23641      ;;
23642    esac
23643  fi
23644
23645  if test : != "$DUMPBIN"; then
23646    NM=$DUMPBIN
23647  fi
23648fi
23649test -z "$NM" && NM=nm
23650
23651
23652
23653
23654
23655
23656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
23657$as_echo_n "checking the name lister ($NM) interface... " >&6; }
23658if ${lt_cv_nm_interface+:} false; then :
23659  $as_echo_n "(cached) " >&6
23660else
23661  lt_cv_nm_interface="BSD nm"
23662  echo "int some_variable = 0;" > conftest.$ac_ext
23663  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
23664  (eval "$ac_compile" 2>conftest.err)
23665  cat conftest.err >&5
23666  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
23667  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
23668  cat conftest.err >&5
23669  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
23670  cat conftest.out >&5
23671  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
23672    lt_cv_nm_interface="MS dumpbin"
23673  fi
23674  rm -f conftest*
23675fi
23676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
23677$as_echo "$lt_cv_nm_interface" >&6; }
23678
23679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
23680$as_echo_n "checking whether ln -s works... " >&6; }
23681LN_S=$as_ln_s
23682if test "$LN_S" = "ln -s"; then
23683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23684$as_echo "yes" >&6; }
23685else
23686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
23687$as_echo "no, using $LN_S" >&6; }
23688fi
23689
23690# find the maximum length of command line arguments
23691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
23692$as_echo_n "checking the maximum length of command line arguments... " >&6; }
23693if ${lt_cv_sys_max_cmd_len+:} false; then :
23694  $as_echo_n "(cached) " >&6
23695else
23696    i=0
23697  teststring=ABCD
23698
23699  case $build_os in
23700  msdosdjgpp*)
23701    # On DJGPP, this test can blow up pretty badly due to problems in libc
23702    # (any single argument exceeding 2000 bytes causes a buffer overrun
23703    # during glob expansion).  Even if it were fixed, the result of this
23704    # check would be larger than it should be.
23705    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
23706    ;;
23707
23708  gnu*)
23709    # Under GNU Hurd, this test is not required because there is
23710    # no limit to the length of command line arguments.
23711    # Libtool will interpret -1 as no limit whatsoever
23712    lt_cv_sys_max_cmd_len=-1;
23713    ;;
23714
23715  cygwin* | mingw* | cegcc*)
23716    # On Win9x/ME, this test blows up -- it succeeds, but takes
23717    # about 5 minutes as the teststring grows exponentially.
23718    # Worse, since 9x/ME are not pre-emptively multitasking,
23719    # you end up with a "frozen" computer, even though with patience
23720    # the test eventually succeeds (with a max line length of 256k).
23721    # Instead, let's just punt: use the minimum linelength reported by
23722    # all of the supported platforms: 8192 (on NT/2K/XP).
23723    lt_cv_sys_max_cmd_len=8192;
23724    ;;
23725
23726  mint*)
23727    # On MiNT this can take a long time and run out of memory.
23728    lt_cv_sys_max_cmd_len=8192;
23729    ;;
23730
23731  amigaos*)
23732    # On AmigaOS with pdksh, this test takes hours, literally.
23733    # So we just punt and use a minimum line length of 8192.
23734    lt_cv_sys_max_cmd_len=8192;
23735    ;;
23736
23737  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
23738    # This has been around since 386BSD, at least.  Likely further.
23739    if test -x /sbin/sysctl; then
23740      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
23741    elif test -x /usr/sbin/sysctl; then
23742      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
23743    else
23744      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
23745    fi
23746    # And add a safety zone
23747    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
23748    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
23749    ;;
23750
23751  interix*)
23752    # We know the value 262144 and hardcode it with a safety zone (like BSD)
23753    lt_cv_sys_max_cmd_len=196608
23754    ;;
23755
23756  os2*)
23757    # The test takes a long time on OS/2.
23758    lt_cv_sys_max_cmd_len=8192
23759    ;;
23760
23761  osf*)
23762    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
23763    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
23764    # nice to cause kernel panics so lets avoid the loop below.
23765    # First set a reasonable default.
23766    lt_cv_sys_max_cmd_len=16384
23767    #
23768    if test -x /sbin/sysconfig; then
23769      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
23770        *1*) lt_cv_sys_max_cmd_len=-1 ;;
23771      esac
23772    fi
23773    ;;
23774  sco3.2v5*)
23775    lt_cv_sys_max_cmd_len=102400
23776    ;;
23777  sysv5* | sco5v6* | sysv4.2uw2*)
23778    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
23779    if test -n "$kargmax"; then
23780      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
23781    else
23782      lt_cv_sys_max_cmd_len=32768
23783    fi
23784    ;;
23785  *)
23786    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
23787    if test -n "$lt_cv_sys_max_cmd_len" && \
23788       test undefined != "$lt_cv_sys_max_cmd_len"; then
23789      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
23790      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
23791    else
23792      # Make teststring a little bigger before we do anything with it.
23793      # a 1K string should be a reasonable start.
23794      for i in 1 2 3 4 5 6 7 8; do
23795        teststring=$teststring$teststring
23796      done
23797      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
23798      # If test is not a shell built-in, we'll probably end up computing a
23799      # maximum length that is only half of the actual maximum length, but
23800      # we can't tell.
23801      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
23802	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
23803	      test 17 != "$i" # 1/2 MB should be enough
23804      do
23805        i=`expr $i + 1`
23806        teststring=$teststring$teststring
23807      done
23808      # Only check the string length outside the loop.
23809      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
23810      teststring=
23811      # Add a significant safety factor because C++ compilers can tack on
23812      # massive amounts of additional arguments before passing them to the
23813      # linker.  It appears as though 1/2 is a usable value.
23814      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
23815    fi
23816    ;;
23817  esac
23818
23819fi
23820
23821if test -n "$lt_cv_sys_max_cmd_len"; then
23822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
23823$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
23824else
23825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
23826$as_echo "none" >&6; }
23827fi
23828max_cmd_len=$lt_cv_sys_max_cmd_len
23829
23830
23831
23832
23833
23834
23835: ${CP="cp -f"}
23836: ${MV="mv -f"}
23837: ${RM="rm -f"}
23838
23839if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23840  lt_unset=unset
23841else
23842  lt_unset=false
23843fi
23844
23845
23846
23847
23848
23849# test EBCDIC or ASCII
23850case `echo X|tr X '\101'` in
23851 A) # ASCII based system
23852    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
23853  lt_SP2NL='tr \040 \012'
23854  lt_NL2SP='tr \015\012 \040\040'
23855  ;;
23856 *) # EBCDIC based system
23857  lt_SP2NL='tr \100 \n'
23858  lt_NL2SP='tr \r\n \100\100'
23859  ;;
23860esac
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
23871$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
23872if ${lt_cv_to_host_file_cmd+:} false; then :
23873  $as_echo_n "(cached) " >&6
23874else
23875  case $host in
23876  *-*-mingw* )
23877    case $build in
23878      *-*-mingw* ) # actually msys
23879        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
23880        ;;
23881      *-*-cygwin* )
23882        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
23883        ;;
23884      * ) # otherwise, assume *nix
23885        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
23886        ;;
23887    esac
23888    ;;
23889  *-*-cygwin* )
23890    case $build in
23891      *-*-mingw* ) # actually msys
23892        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
23893        ;;
23894      *-*-cygwin* )
23895        lt_cv_to_host_file_cmd=func_convert_file_noop
23896        ;;
23897      * ) # otherwise, assume *nix
23898        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
23899        ;;
23900    esac
23901    ;;
23902  * ) # unhandled hosts (and "normal" native builds)
23903    lt_cv_to_host_file_cmd=func_convert_file_noop
23904    ;;
23905esac
23906
23907fi
23908
23909to_host_file_cmd=$lt_cv_to_host_file_cmd
23910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
23911$as_echo "$lt_cv_to_host_file_cmd" >&6; }
23912
23913
23914
23915
23916
23917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
23918$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
23919if ${lt_cv_to_tool_file_cmd+:} false; then :
23920  $as_echo_n "(cached) " >&6
23921else
23922  #assume ordinary cross tools, or native build.
23923lt_cv_to_tool_file_cmd=func_convert_file_noop
23924case $host in
23925  *-*-mingw* )
23926    case $build in
23927      *-*-mingw* ) # actually msys
23928        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
23929        ;;
23930    esac
23931    ;;
23932esac
23933
23934fi
23935
23936to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
23938$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
23939
23940
23941
23942
23943
23944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
23945$as_echo_n "checking for $LD option to reload object files... " >&6; }
23946if ${lt_cv_ld_reload_flag+:} false; then :
23947  $as_echo_n "(cached) " >&6
23948else
23949  lt_cv_ld_reload_flag='-r'
23950fi
23951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
23952$as_echo "$lt_cv_ld_reload_flag" >&6; }
23953reload_flag=$lt_cv_ld_reload_flag
23954case $reload_flag in
23955"" | " "*) ;;
23956*) reload_flag=" $reload_flag" ;;
23957esac
23958reload_cmds='$LD$reload_flag -o $output$reload_objs'
23959case $host_os in
23960  cygwin* | mingw* | pw32* | cegcc*)
23961    if test yes != "$GCC"; then
23962      reload_cmds=false
23963    fi
23964    ;;
23965  darwin*)
23966    if test yes = "$GCC"; then
23967      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
23968    else
23969      reload_cmds='$LD$reload_flag -o $output$reload_objs'
23970    fi
23971    ;;
23972esac
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982if test -n "$ac_tool_prefix"; then
23983  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
23984set dummy ${ac_tool_prefix}objdump; ac_word=$2
23985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23986$as_echo_n "checking for $ac_word... " >&6; }
23987if ${ac_cv_prog_OBJDUMP+:} false; then :
23988  $as_echo_n "(cached) " >&6
23989else
23990  if test -n "$OBJDUMP"; then
23991  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
23992else
23993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23994for as_dir in $PATH
23995do
23996  IFS=$as_save_IFS
23997  test -z "$as_dir" && as_dir=.
23998    for ac_exec_ext in '' $ac_executable_extensions; do
23999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24000    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
24001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24002    break 2
24003  fi
24004done
24005  done
24006IFS=$as_save_IFS
24007
24008fi
24009fi
24010OBJDUMP=$ac_cv_prog_OBJDUMP
24011if test -n "$OBJDUMP"; then
24012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
24013$as_echo "$OBJDUMP" >&6; }
24014else
24015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24016$as_echo "no" >&6; }
24017fi
24018
24019
24020fi
24021if test -z "$ac_cv_prog_OBJDUMP"; then
24022  ac_ct_OBJDUMP=$OBJDUMP
24023  # Extract the first word of "objdump", so it can be a program name with args.
24024set dummy objdump; ac_word=$2
24025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24026$as_echo_n "checking for $ac_word... " >&6; }
24027if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
24028  $as_echo_n "(cached) " >&6
24029else
24030  if test -n "$ac_ct_OBJDUMP"; then
24031  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
24032else
24033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24034for as_dir in $PATH
24035do
24036  IFS=$as_save_IFS
24037  test -z "$as_dir" && as_dir=.
24038    for ac_exec_ext in '' $ac_executable_extensions; do
24039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24040    ac_cv_prog_ac_ct_OBJDUMP="objdump"
24041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24042    break 2
24043  fi
24044done
24045  done
24046IFS=$as_save_IFS
24047
24048fi
24049fi
24050ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
24051if test -n "$ac_ct_OBJDUMP"; then
24052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
24053$as_echo "$ac_ct_OBJDUMP" >&6; }
24054else
24055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24056$as_echo "no" >&6; }
24057fi
24058
24059  if test "x$ac_ct_OBJDUMP" = x; then
24060    OBJDUMP="false"
24061  else
24062    case $cross_compiling:$ac_tool_warned in
24063yes:)
24064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24066ac_tool_warned=yes ;;
24067esac
24068    OBJDUMP=$ac_ct_OBJDUMP
24069  fi
24070else
24071  OBJDUMP="$ac_cv_prog_OBJDUMP"
24072fi
24073
24074test -z "$OBJDUMP" && OBJDUMP=objdump
24075
24076
24077
24078
24079
24080
24081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
24082$as_echo_n "checking how to recognize dependent libraries... " >&6; }
24083if ${lt_cv_deplibs_check_method+:} false; then :
24084  $as_echo_n "(cached) " >&6
24085else
24086  lt_cv_file_magic_cmd='$MAGIC_CMD'
24087lt_cv_file_magic_test_file=
24088lt_cv_deplibs_check_method='unknown'
24089# Need to set the preceding variable on all platforms that support
24090# interlibrary dependencies.
24091# 'none' -- dependencies not supported.
24092# 'unknown' -- same as none, but documents that we really don't know.
24093# 'pass_all' -- all dependencies passed with no checks.
24094# 'test_compile' -- check by making test program.
24095# 'file_magic [[regex]]' -- check by looking for files in library path
24096# that responds to the $file_magic_cmd with a given extended regex.
24097# If you have 'file' or equivalent on your system and you're not sure
24098# whether 'pass_all' will *always* work, you probably want this one.
24099
24100case $host_os in
24101aix[4-9]*)
24102  lt_cv_deplibs_check_method=pass_all
24103  ;;
24104
24105beos*)
24106  lt_cv_deplibs_check_method=pass_all
24107  ;;
24108
24109bsdi[45]*)
24110  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
24111  lt_cv_file_magic_cmd='/usr/bin/file -L'
24112  lt_cv_file_magic_test_file=/shlib/libc.so
24113  ;;
24114
24115cygwin*)
24116  # func_win32_libid is a shell function defined in ltmain.sh
24117  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
24118  lt_cv_file_magic_cmd='func_win32_libid'
24119  ;;
24120
24121mingw* | pw32*)
24122  # Base MSYS/MinGW do not provide the 'file' command needed by
24123  # func_win32_libid shell function, so use a weaker test based on 'objdump',
24124  # unless we find 'file', for example because we are cross-compiling.
24125  if ( file / ) >/dev/null 2>&1; then
24126    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
24127    lt_cv_file_magic_cmd='func_win32_libid'
24128  else
24129    # Keep this pattern in sync with the one in func_win32_libid.
24130    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
24131    lt_cv_file_magic_cmd='$OBJDUMP -f'
24132  fi
24133  ;;
24134
24135cegcc*)
24136  # use the weaker test based on 'objdump'. See mingw*.
24137  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
24138  lt_cv_file_magic_cmd='$OBJDUMP -f'
24139  ;;
24140
24141darwin* | rhapsody*)
24142  lt_cv_deplibs_check_method=pass_all
24143  ;;
24144
24145freebsd* | dragonfly*)
24146  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
24147    case $host_cpu in
24148    i*86 )
24149      # Not sure whether the presence of OpenBSD here was a mistake.
24150      # Let's accept both of them until this is cleared up.
24151      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
24152      lt_cv_file_magic_cmd=/usr/bin/file
24153      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
24154      ;;
24155    esac
24156  else
24157    lt_cv_deplibs_check_method=pass_all
24158  fi
24159  ;;
24160
24161haiku*)
24162  lt_cv_deplibs_check_method=pass_all
24163  ;;
24164
24165hpux10.20* | hpux11*)
24166  lt_cv_file_magic_cmd=/usr/bin/file
24167  case $host_cpu in
24168  ia64*)
24169    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
24170    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
24171    ;;
24172  hppa*64*)
24173    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]'
24174    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
24175    ;;
24176  *)
24177    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
24178    lt_cv_file_magic_test_file=/usr/lib/libc.sl
24179    ;;
24180  esac
24181  ;;
24182
24183interix[3-9]*)
24184  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
24185  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
24186  ;;
24187
24188irix5* | irix6* | nonstopux*)
24189  case $LD in
24190  *-32|*"-32 ") libmagic=32-bit;;
24191  *-n32|*"-n32 ") libmagic=N32;;
24192  *-64|*"-64 ") libmagic=64-bit;;
24193  *) libmagic=never-match;;
24194  esac
24195  lt_cv_deplibs_check_method=pass_all
24196  ;;
24197
24198# This must be glibc/ELF.
24199linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24200  lt_cv_deplibs_check_method=pass_all
24201  ;;
24202
24203netbsd* | netbsdelf*-gnu)
24204  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
24205    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
24206  else
24207    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
24208  fi
24209  ;;
24210
24211newos6*)
24212  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
24213  lt_cv_file_magic_cmd=/usr/bin/file
24214  lt_cv_file_magic_test_file=/usr/lib/libnls.so
24215  ;;
24216
24217*nto* | *qnx*)
24218  lt_cv_deplibs_check_method=pass_all
24219  ;;
24220
24221openbsd* | bitrig*)
24222  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
24223    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
24224  else
24225    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
24226  fi
24227  ;;
24228
24229osf3* | osf4* | osf5*)
24230  lt_cv_deplibs_check_method=pass_all
24231  ;;
24232
24233rdos*)
24234  lt_cv_deplibs_check_method=pass_all
24235  ;;
24236
24237solaris*)
24238  lt_cv_deplibs_check_method=pass_all
24239  ;;
24240
24241sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24242  lt_cv_deplibs_check_method=pass_all
24243  ;;
24244
24245sysv4 | sysv4.3*)
24246  case $host_vendor in
24247  motorola)
24248    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]'
24249    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
24250    ;;
24251  ncr)
24252    lt_cv_deplibs_check_method=pass_all
24253    ;;
24254  sequent)
24255    lt_cv_file_magic_cmd='/bin/file'
24256    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
24257    ;;
24258  sni)
24259    lt_cv_file_magic_cmd='/bin/file'
24260    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
24261    lt_cv_file_magic_test_file=/lib/libc.so
24262    ;;
24263  siemens)
24264    lt_cv_deplibs_check_method=pass_all
24265    ;;
24266  pc)
24267    lt_cv_deplibs_check_method=pass_all
24268    ;;
24269  esac
24270  ;;
24271
24272tpf*)
24273  lt_cv_deplibs_check_method=pass_all
24274  ;;
24275os2*)
24276  lt_cv_deplibs_check_method=pass_all
24277  ;;
24278esac
24279
24280fi
24281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
24282$as_echo "$lt_cv_deplibs_check_method" >&6; }
24283
24284file_magic_glob=
24285want_nocaseglob=no
24286if test "$build" = "$host"; then
24287  case $host_os in
24288  mingw* | pw32*)
24289    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
24290      want_nocaseglob=yes
24291    else
24292      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
24293    fi
24294    ;;
24295  esac
24296fi
24297
24298file_magic_cmd=$lt_cv_file_magic_cmd
24299deplibs_check_method=$lt_cv_deplibs_check_method
24300test -z "$deplibs_check_method" && deplibs_check_method=unknown
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323if test -n "$ac_tool_prefix"; then
24324  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
24325set dummy ${ac_tool_prefix}dlltool; ac_word=$2
24326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24327$as_echo_n "checking for $ac_word... " >&6; }
24328if ${ac_cv_prog_DLLTOOL+:} false; then :
24329  $as_echo_n "(cached) " >&6
24330else
24331  if test -n "$DLLTOOL"; then
24332  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
24333else
24334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24335for as_dir in $PATH
24336do
24337  IFS=$as_save_IFS
24338  test -z "$as_dir" && as_dir=.
24339    for ac_exec_ext in '' $ac_executable_extensions; do
24340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24341    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
24342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24343    break 2
24344  fi
24345done
24346  done
24347IFS=$as_save_IFS
24348
24349fi
24350fi
24351DLLTOOL=$ac_cv_prog_DLLTOOL
24352if test -n "$DLLTOOL"; then
24353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
24354$as_echo "$DLLTOOL" >&6; }
24355else
24356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24357$as_echo "no" >&6; }
24358fi
24359
24360
24361fi
24362if test -z "$ac_cv_prog_DLLTOOL"; then
24363  ac_ct_DLLTOOL=$DLLTOOL
24364  # Extract the first word of "dlltool", so it can be a program name with args.
24365set dummy dlltool; ac_word=$2
24366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24367$as_echo_n "checking for $ac_word... " >&6; }
24368if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
24369  $as_echo_n "(cached) " >&6
24370else
24371  if test -n "$ac_ct_DLLTOOL"; then
24372  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
24373else
24374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24375for as_dir in $PATH
24376do
24377  IFS=$as_save_IFS
24378  test -z "$as_dir" && as_dir=.
24379    for ac_exec_ext in '' $ac_executable_extensions; do
24380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24381    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
24382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24383    break 2
24384  fi
24385done
24386  done
24387IFS=$as_save_IFS
24388
24389fi
24390fi
24391ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
24392if test -n "$ac_ct_DLLTOOL"; then
24393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
24394$as_echo "$ac_ct_DLLTOOL" >&6; }
24395else
24396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24397$as_echo "no" >&6; }
24398fi
24399
24400  if test "x$ac_ct_DLLTOOL" = x; then
24401    DLLTOOL="false"
24402  else
24403    case $cross_compiling:$ac_tool_warned in
24404yes:)
24405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24407ac_tool_warned=yes ;;
24408esac
24409    DLLTOOL=$ac_ct_DLLTOOL
24410  fi
24411else
24412  DLLTOOL="$ac_cv_prog_DLLTOOL"
24413fi
24414
24415test -z "$DLLTOOL" && DLLTOOL=dlltool
24416
24417
24418
24419
24420
24421
24422
24423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
24424$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
24425if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
24426  $as_echo_n "(cached) " >&6
24427else
24428  lt_cv_sharedlib_from_linklib_cmd='unknown'
24429
24430case $host_os in
24431cygwin* | mingw* | pw32* | cegcc*)
24432  # two different shell functions defined in ltmain.sh;
24433  # decide which one to use based on capabilities of $DLLTOOL
24434  case `$DLLTOOL --help 2>&1` in
24435  *--identify-strict*)
24436    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
24437    ;;
24438  *)
24439    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
24440    ;;
24441  esac
24442  ;;
24443*)
24444  # fallback: assume linklib IS sharedlib
24445  lt_cv_sharedlib_from_linklib_cmd=$ECHO
24446  ;;
24447esac
24448
24449fi
24450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
24451$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
24452sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
24453test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
24454
24455
24456
24457
24458
24459
24460
24461if test -n "$ac_tool_prefix"; then
24462  for ac_prog in ar
24463  do
24464    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24467$as_echo_n "checking for $ac_word... " >&6; }
24468if ${ac_cv_prog_AR+:} false; then :
24469  $as_echo_n "(cached) " >&6
24470else
24471  if test -n "$AR"; then
24472  ac_cv_prog_AR="$AR" # Let the user override the test.
24473else
24474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24475for as_dir in $PATH
24476do
24477  IFS=$as_save_IFS
24478  test -z "$as_dir" && as_dir=.
24479    for ac_exec_ext in '' $ac_executable_extensions; do
24480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24481    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
24482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24483    break 2
24484  fi
24485done
24486  done
24487IFS=$as_save_IFS
24488
24489fi
24490fi
24491AR=$ac_cv_prog_AR
24492if test -n "$AR"; then
24493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
24494$as_echo "$AR" >&6; }
24495else
24496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24497$as_echo "no" >&6; }
24498fi
24499
24500
24501    test -n "$AR" && break
24502  done
24503fi
24504if test -z "$AR"; then
24505  ac_ct_AR=$AR
24506  for ac_prog in ar
24507do
24508  # Extract the first word of "$ac_prog", so it can be a program name with args.
24509set dummy $ac_prog; ac_word=$2
24510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24511$as_echo_n "checking for $ac_word... " >&6; }
24512if ${ac_cv_prog_ac_ct_AR+:} false; then :
24513  $as_echo_n "(cached) " >&6
24514else
24515  if test -n "$ac_ct_AR"; then
24516  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
24517else
24518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24519for as_dir in $PATH
24520do
24521  IFS=$as_save_IFS
24522  test -z "$as_dir" && as_dir=.
24523    for ac_exec_ext in '' $ac_executable_extensions; do
24524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24525    ac_cv_prog_ac_ct_AR="$ac_prog"
24526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24527    break 2
24528  fi
24529done
24530  done
24531IFS=$as_save_IFS
24532
24533fi
24534fi
24535ac_ct_AR=$ac_cv_prog_ac_ct_AR
24536if test -n "$ac_ct_AR"; then
24537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
24538$as_echo "$ac_ct_AR" >&6; }
24539else
24540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24541$as_echo "no" >&6; }
24542fi
24543
24544
24545  test -n "$ac_ct_AR" && break
24546done
24547
24548  if test "x$ac_ct_AR" = x; then
24549    AR="false"
24550  else
24551    case $cross_compiling:$ac_tool_warned in
24552yes:)
24553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24555ac_tool_warned=yes ;;
24556esac
24557    AR=$ac_ct_AR
24558  fi
24559fi
24560
24561: ${AR=ar}
24562: ${AR_FLAGS=cr}
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
24575$as_echo_n "checking for archiver @FILE support... " >&6; }
24576if ${lt_cv_ar_at_file+:} false; then :
24577  $as_echo_n "(cached) " >&6
24578else
24579  lt_cv_ar_at_file=no
24580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24581/* end confdefs.h.  */
24582
24583int
24584main ()
24585{
24586
24587  ;
24588  return 0;
24589}
24590_ACEOF
24591if ac_fn_cxx_try_compile "$LINENO"; then :
24592  echo conftest.$ac_objext > conftest.lst
24593      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
24594      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
24595  (eval $lt_ar_try) 2>&5
24596  ac_status=$?
24597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24598  test $ac_status = 0; }
24599      if test 0 -eq "$ac_status"; then
24600	# Ensure the archiver fails upon bogus file names.
24601	rm -f conftest.$ac_objext libconftest.a
24602	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
24603  (eval $lt_ar_try) 2>&5
24604  ac_status=$?
24605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24606  test $ac_status = 0; }
24607	if test 0 -ne "$ac_status"; then
24608          lt_cv_ar_at_file=@
24609        fi
24610      fi
24611      rm -f conftest.* libconftest.a
24612
24613fi
24614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24615
24616fi
24617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
24618$as_echo "$lt_cv_ar_at_file" >&6; }
24619
24620if test no = "$lt_cv_ar_at_file"; then
24621  archiver_list_spec=
24622else
24623  archiver_list_spec=$lt_cv_ar_at_file
24624fi
24625
24626
24627
24628
24629
24630
24631
24632if test -n "$ac_tool_prefix"; then
24633  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24634set dummy ${ac_tool_prefix}strip; ac_word=$2
24635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24636$as_echo_n "checking for $ac_word... " >&6; }
24637if ${ac_cv_prog_STRIP+:} false; then :
24638  $as_echo_n "(cached) " >&6
24639else
24640  if test -n "$STRIP"; then
24641  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24642else
24643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24644for as_dir in $PATH
24645do
24646  IFS=$as_save_IFS
24647  test -z "$as_dir" && as_dir=.
24648    for ac_exec_ext in '' $ac_executable_extensions; do
24649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24650    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
24651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24652    break 2
24653  fi
24654done
24655  done
24656IFS=$as_save_IFS
24657
24658fi
24659fi
24660STRIP=$ac_cv_prog_STRIP
24661if test -n "$STRIP"; then
24662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
24663$as_echo "$STRIP" >&6; }
24664else
24665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24666$as_echo "no" >&6; }
24667fi
24668
24669
24670fi
24671if test -z "$ac_cv_prog_STRIP"; then
24672  ac_ct_STRIP=$STRIP
24673  # Extract the first word of "strip", so it can be a program name with args.
24674set dummy strip; ac_word=$2
24675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24676$as_echo_n "checking for $ac_word... " >&6; }
24677if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
24678  $as_echo_n "(cached) " >&6
24679else
24680  if test -n "$ac_ct_STRIP"; then
24681  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
24682else
24683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24684for as_dir in $PATH
24685do
24686  IFS=$as_save_IFS
24687  test -z "$as_dir" && as_dir=.
24688    for ac_exec_ext in '' $ac_executable_extensions; do
24689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24690    ac_cv_prog_ac_ct_STRIP="strip"
24691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24692    break 2
24693  fi
24694done
24695  done
24696IFS=$as_save_IFS
24697
24698fi
24699fi
24700ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24701if test -n "$ac_ct_STRIP"; then
24702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24703$as_echo "$ac_ct_STRIP" >&6; }
24704else
24705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24706$as_echo "no" >&6; }
24707fi
24708
24709  if test "x$ac_ct_STRIP" = x; then
24710    STRIP=":"
24711  else
24712    case $cross_compiling:$ac_tool_warned in
24713yes:)
24714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24716ac_tool_warned=yes ;;
24717esac
24718    STRIP=$ac_ct_STRIP
24719  fi
24720else
24721  STRIP="$ac_cv_prog_STRIP"
24722fi
24723
24724test -z "$STRIP" && STRIP=:
24725
24726
24727
24728
24729
24730
24731if test -n "$ac_tool_prefix"; then
24732  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24733set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24735$as_echo_n "checking for $ac_word... " >&6; }
24736if ${ac_cv_prog_RANLIB+:} false; then :
24737  $as_echo_n "(cached) " >&6
24738else
24739  if test -n "$RANLIB"; then
24740  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
24741else
24742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24743for as_dir in $PATH
24744do
24745  IFS=$as_save_IFS
24746  test -z "$as_dir" && as_dir=.
24747    for ac_exec_ext in '' $ac_executable_extensions; do
24748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24749    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
24750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24751    break 2
24752  fi
24753done
24754  done
24755IFS=$as_save_IFS
24756
24757fi
24758fi
24759RANLIB=$ac_cv_prog_RANLIB
24760if test -n "$RANLIB"; then
24761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
24762$as_echo "$RANLIB" >&6; }
24763else
24764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24765$as_echo "no" >&6; }
24766fi
24767
24768
24769fi
24770if test -z "$ac_cv_prog_RANLIB"; then
24771  ac_ct_RANLIB=$RANLIB
24772  # Extract the first word of "ranlib", so it can be a program name with args.
24773set dummy ranlib; ac_word=$2
24774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24775$as_echo_n "checking for $ac_word... " >&6; }
24776if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
24777  $as_echo_n "(cached) " >&6
24778else
24779  if test -n "$ac_ct_RANLIB"; then
24780  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
24781else
24782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24783for as_dir in $PATH
24784do
24785  IFS=$as_save_IFS
24786  test -z "$as_dir" && as_dir=.
24787    for ac_exec_ext in '' $ac_executable_extensions; do
24788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24789    ac_cv_prog_ac_ct_RANLIB="ranlib"
24790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24791    break 2
24792  fi
24793done
24794  done
24795IFS=$as_save_IFS
24796
24797fi
24798fi
24799ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
24800if test -n "$ac_ct_RANLIB"; then
24801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
24802$as_echo "$ac_ct_RANLIB" >&6; }
24803else
24804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24805$as_echo "no" >&6; }
24806fi
24807
24808  if test "x$ac_ct_RANLIB" = x; then
24809    RANLIB=":"
24810  else
24811    case $cross_compiling:$ac_tool_warned in
24812yes:)
24813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24815ac_tool_warned=yes ;;
24816esac
24817    RANLIB=$ac_ct_RANLIB
24818  fi
24819else
24820  RANLIB="$ac_cv_prog_RANLIB"
24821fi
24822
24823test -z "$RANLIB" && RANLIB=:
24824
24825
24826
24827
24828
24829
24830# Determine commands to create old-style static archives.
24831old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
24832old_postinstall_cmds='chmod 644 $oldlib'
24833old_postuninstall_cmds=
24834
24835if test -n "$RANLIB"; then
24836  case $host_os in
24837  bitrig* | openbsd*)
24838    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
24839    ;;
24840  *)
24841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
24842    ;;
24843  esac
24844  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
24845fi
24846
24847case $host_os in
24848  darwin*)
24849    lock_old_archive_extraction=yes ;;
24850  *)
24851    lock_old_archive_extraction=no ;;
24852esac
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892# If no C compiler was specified, use CC.
24893LTCC=${LTCC-"$CC"}
24894
24895# If no C compiler flags were specified, use CFLAGS.
24896LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24897
24898# Allow CC to be a program name with arguments.
24899compiler=$CC
24900
24901
24902# Check for command to grab the raw symbol name followed by C symbol from nm.
24903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
24904$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
24905if ${lt_cv_sys_global_symbol_pipe+:} false; then :
24906  $as_echo_n "(cached) " >&6
24907else
24908
24909# These are sane defaults that work on at least a few old systems.
24910# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
24911
24912# Character class describing NM global symbol codes.
24913symcode='[BCDEGRST]'
24914
24915# Regexp to match symbols that can be accessed directly from C.
24916sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
24917
24918# Define system-specific variables.
24919case $host_os in
24920aix*)
24921  symcode='[BCDT]'
24922  ;;
24923cygwin* | mingw* | pw32* | cegcc*)
24924  symcode='[ABCDGISTW]'
24925  ;;
24926hpux*)
24927  if test ia64 = "$host_cpu"; then
24928    symcode='[ABCDEGRST]'
24929  fi
24930  ;;
24931irix* | nonstopux*)
24932  symcode='[BCDEGRST]'
24933  ;;
24934osf*)
24935  symcode='[BCDEGQRST]'
24936  ;;
24937solaris*)
24938  symcode='[BDRT]'
24939  ;;
24940sco3.2v5*)
24941  symcode='[DT]'
24942  ;;
24943sysv4.2uw2*)
24944  symcode='[DT]'
24945  ;;
24946sysv5* | sco5v6* | unixware* | OpenUNIX*)
24947  symcode='[ABDT]'
24948  ;;
24949sysv4)
24950  symcode='[DFNSTU]'
24951  ;;
24952esac
24953
24954# If we're using GNU nm, then use its standard symbol codes.
24955case `$NM -V 2>&1` in
24956*GNU* | *'with BFD'*)
24957  symcode='[ABCDGIRSTW]' ;;
24958esac
24959
24960if test "$lt_cv_nm_interface" = "MS dumpbin"; then
24961  # Gets list of data symbols to import.
24962  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
24963  # Adjust the below global symbol transforms to fixup imported variables.
24964  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
24965  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
24966  lt_c_name_lib_hook="\
24967  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
24968  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
24969else
24970  # Disable hooks by default.
24971  lt_cv_sys_global_symbol_to_import=
24972  lt_cdecl_hook=
24973  lt_c_name_hook=
24974  lt_c_name_lib_hook=
24975fi
24976
24977# Transform an extracted symbol line into a proper C declaration.
24978# Some systems (esp. on ia64) link data and code symbols differently,
24979# so use this general approach.
24980lt_cv_sys_global_symbol_to_cdecl="sed -n"\
24981$lt_cdecl_hook\
24982" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
24983" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
24984
24985# Transform an extracted symbol line into symbol name and symbol address
24986lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
24987$lt_c_name_hook\
24988" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
24989" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
24990
24991# Transform an extracted symbol line into symbol name with lib prefix and
24992# symbol address.
24993lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
24994$lt_c_name_lib_hook\
24995" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
24996" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
24997" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
24998
24999# Handle CRLF in mingw tool chain
25000opt_cr=
25001case $build_os in
25002mingw*)
25003  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
25004  ;;
25005esac
25006
25007# Try without a prefix underscore, then with it.
25008for ac_symprfx in "" "_"; do
25009
25010  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
25011  symxfrm="\\1 $ac_symprfx\\2 \\2"
25012
25013  # Write the raw and C identifiers.
25014  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
25015    # Fake it for dumpbin and say T for any non-static function,
25016    # D for any global variable and I for any imported variable.
25017    # Also find C++ and __fastcall symbols from MSVC++,
25018    # which start with @ or ?.
25019    lt_cv_sys_global_symbol_pipe="$AWK '"\
25020"     {last_section=section; section=\$ 3};"\
25021"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
25022"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
25023"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
25024"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
25025"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
25026"     \$ 0!~/External *\|/{next};"\
25027"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
25028"     {if(hide[section]) next};"\
25029"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
25030"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
25031"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
25032"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
25033"     ' prfx=^$ac_symprfx"
25034  else
25035    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
25036  fi
25037  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
25038
25039  # Check to see that the pipe works correctly.
25040  pipe_works=no
25041
25042  rm -f conftest*
25043  cat > conftest.$ac_ext <<_LT_EOF
25044#ifdef __cplusplus
25045extern "C" {
25046#endif
25047char nm_test_var;
25048void nm_test_func(void);
25049void nm_test_func(void){}
25050#ifdef __cplusplus
25051}
25052#endif
25053int main(){nm_test_var='a';nm_test_func();return(0);}
25054_LT_EOF
25055
25056  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25057  (eval $ac_compile) 2>&5
25058  ac_status=$?
25059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25060  test $ac_status = 0; }; then
25061    # Now try to grab the symbols.
25062    nlist=conftest.nm
25063    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
25064    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
25065      # Try sorting and uniquifying the output.
25066      if sort "$nlist" | uniq > "$nlist"T; then
25067	mv -f "$nlist"T "$nlist"
25068      else
25069	rm -f "$nlist"T
25070      fi
25071
25072      # Make sure that we snagged all the symbols we need.
25073      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
25074	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
25075	  cat <<_LT_EOF > conftest.$ac_ext
25076/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
25077#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
25078/* DATA imports from DLLs on WIN32 can't be const, because runtime
25079   relocations are performed -- see ld's documentation on pseudo-relocs.  */
25080# define LT_DLSYM_CONST
25081#elif defined __osf__
25082/* This system does not cope well with relocations in const data.  */
25083# define LT_DLSYM_CONST
25084#else
25085# define LT_DLSYM_CONST const
25086#endif
25087
25088#ifdef __cplusplus
25089extern "C" {
25090#endif
25091
25092_LT_EOF
25093	  # Now generate the symbol file.
25094	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
25095
25096	  cat <<_LT_EOF >> conftest.$ac_ext
25097
25098/* The mapping between symbol names and symbols.  */
25099LT_DLSYM_CONST struct {
25100  const char *name;
25101  void       *address;
25102}
25103lt__PROGRAM__LTX_preloaded_symbols[] =
25104{
25105  { "@PROGRAM@", (void *) 0 },
25106_LT_EOF
25107	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
25108	  cat <<\_LT_EOF >> conftest.$ac_ext
25109  {0, (void *) 0}
25110};
25111
25112/* This works around a problem in FreeBSD linker */
25113#ifdef FREEBSD_WORKAROUND
25114static const void *lt_preloaded_setup() {
25115  return lt__PROGRAM__LTX_preloaded_symbols;
25116}
25117#endif
25118
25119#ifdef __cplusplus
25120}
25121#endif
25122_LT_EOF
25123	  # Now try linking the two files.
25124	  mv conftest.$ac_objext conftstm.$ac_objext
25125	  lt_globsym_save_LIBS=$LIBS
25126	  lt_globsym_save_CFLAGS=$CFLAGS
25127	  LIBS=conftstm.$ac_objext
25128	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
25129	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25130  (eval $ac_link) 2>&5
25131  ac_status=$?
25132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25133  test $ac_status = 0; } && test -s conftest$ac_exeext; then
25134	    pipe_works=yes
25135	  fi
25136	  LIBS=$lt_globsym_save_LIBS
25137	  CFLAGS=$lt_globsym_save_CFLAGS
25138	else
25139	  echo "cannot find nm_test_func in $nlist" >&5
25140	fi
25141      else
25142	echo "cannot find nm_test_var in $nlist" >&5
25143      fi
25144    else
25145      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
25146    fi
25147  else
25148    echo "$progname: failed program was:" >&5
25149    cat conftest.$ac_ext >&5
25150  fi
25151  rm -rf conftest* conftst*
25152
25153  # Do not use the global_symbol_pipe unless it works.
25154  if test yes = "$pipe_works"; then
25155    break
25156  else
25157    lt_cv_sys_global_symbol_pipe=
25158  fi
25159done
25160
25161fi
25162
25163if test -z "$lt_cv_sys_global_symbol_pipe"; then
25164  lt_cv_sys_global_symbol_to_cdecl=
25165fi
25166if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
25167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
25168$as_echo "failed" >&6; }
25169else
25170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25171$as_echo "ok" >&6; }
25172fi
25173
25174# Response file support.
25175if test "$lt_cv_nm_interface" = "MS dumpbin"; then
25176  nm_file_list_spec='@'
25177elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
25178  nm_file_list_spec='@'
25179fi
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
25218$as_echo_n "checking for sysroot... " >&6; }
25219
25220# Check whether --with-sysroot was given.
25221if test "${with_sysroot+set}" = set; then :
25222  withval=$with_sysroot;
25223else
25224  with_sysroot=no
25225fi
25226
25227
25228lt_sysroot=
25229case $with_sysroot in #(
25230 yes)
25231   if test yes = "$GCC"; then
25232     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
25233   fi
25234   ;; #(
25235 /*)
25236   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
25237   ;; #(
25238 no|'')
25239   ;; #(
25240 *)
25241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
25242$as_echo "$with_sysroot" >&6; }
25243   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
25244   ;;
25245esac
25246
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
25248$as_echo "${lt_sysroot:-no}" >&6; }
25249
25250
25251
25252
25253
25254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
25255$as_echo_n "checking for a working dd... " >&6; }
25256if ${ac_cv_path_lt_DD+:} false; then :
25257  $as_echo_n "(cached) " >&6
25258else
25259  printf 0123456789abcdef0123456789abcdef >conftest.i
25260cat conftest.i conftest.i >conftest2.i
25261: ${lt_DD:=$DD}
25262if test -z "$lt_DD"; then
25263  ac_path_lt_DD_found=false
25264  # Loop through the user's path and test for each of PROGNAME-LIST
25265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25266for as_dir in $PATH
25267do
25268  IFS=$as_save_IFS
25269  test -z "$as_dir" && as_dir=.
25270    for ac_prog in dd; do
25271    for ac_exec_ext in '' $ac_executable_extensions; do
25272      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
25273      as_fn_executable_p "$ac_path_lt_DD" || continue
25274if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
25275  cmp -s conftest.i conftest.out \
25276  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
25277fi
25278      $ac_path_lt_DD_found && break 3
25279    done
25280  done
25281  done
25282IFS=$as_save_IFS
25283  if test -z "$ac_cv_path_lt_DD"; then
25284    :
25285  fi
25286else
25287  ac_cv_path_lt_DD=$lt_DD
25288fi
25289
25290rm -f conftest.i conftest2.i conftest.out
25291fi
25292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
25293$as_echo "$ac_cv_path_lt_DD" >&6; }
25294
25295
25296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
25297$as_echo_n "checking how to truncate binary pipes... " >&6; }
25298if ${lt_cv_truncate_bin+:} false; then :
25299  $as_echo_n "(cached) " >&6
25300else
25301  printf 0123456789abcdef0123456789abcdef >conftest.i
25302cat conftest.i conftest.i >conftest2.i
25303lt_cv_truncate_bin=
25304if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
25305  cmp -s conftest.i conftest.out \
25306  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
25307fi
25308rm -f conftest.i conftest2.i conftest.out
25309test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
25310fi
25311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
25312$as_echo "$lt_cv_truncate_bin" >&6; }
25313
25314
25315
25316
25317
25318
25319
25320# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25321func_cc_basename ()
25322{
25323    for cc_temp in $*""; do
25324      case $cc_temp in
25325        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25326        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25327        \-*) ;;
25328        *) break;;
25329      esac
25330    done
25331    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25332}
25333
25334# Check whether --enable-libtool-lock was given.
25335if test "${enable_libtool_lock+set}" = set; then :
25336  enableval=$enable_libtool_lock;
25337fi
25338
25339test no = "$enable_libtool_lock" || enable_libtool_lock=yes
25340
25341# Some flags need to be propagated to the compiler or linker for good
25342# libtool support.
25343case $host in
25344ia64-*-hpux*)
25345  # Find out what ABI is being produced by ac_compile, and set mode
25346  # options accordingly.
25347  echo 'int i;' > conftest.$ac_ext
25348  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25349  (eval $ac_compile) 2>&5
25350  ac_status=$?
25351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25352  test $ac_status = 0; }; then
25353    case `/usr/bin/file conftest.$ac_objext` in
25354      *ELF-32*)
25355	HPUX_IA64_MODE=32
25356	;;
25357      *ELF-64*)
25358	HPUX_IA64_MODE=64
25359	;;
25360    esac
25361  fi
25362  rm -rf conftest*
25363  ;;
25364*-*-irix6*)
25365  # Find out what ABI is being produced by ac_compile, and set linker
25366  # options accordingly.
25367  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
25368  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25369  (eval $ac_compile) 2>&5
25370  ac_status=$?
25371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25372  test $ac_status = 0; }; then
25373    if test yes = "$lt_cv_prog_gnu_ld"; then
25374      case `/usr/bin/file conftest.$ac_objext` in
25375	*32-bit*)
25376	  LD="${LD-ld} -melf32bsmip"
25377	  ;;
25378	*N32*)
25379	  LD="${LD-ld} -melf32bmipn32"
25380	  ;;
25381	*64-bit*)
25382	  LD="${LD-ld} -melf64bmip"
25383	;;
25384      esac
25385    else
25386      case `/usr/bin/file conftest.$ac_objext` in
25387	*32-bit*)
25388	  LD="${LD-ld} -32"
25389	  ;;
25390	*N32*)
25391	  LD="${LD-ld} -n32"
25392	  ;;
25393	*64-bit*)
25394	  LD="${LD-ld} -64"
25395	  ;;
25396      esac
25397    fi
25398  fi
25399  rm -rf conftest*
25400  ;;
25401
25402mips64*-*linux*)
25403  # Find out what ABI is being produced by ac_compile, and set linker
25404  # options accordingly.
25405  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
25406  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25407  (eval $ac_compile) 2>&5
25408  ac_status=$?
25409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25410  test $ac_status = 0; }; then
25411    emul=elf
25412    case `/usr/bin/file conftest.$ac_objext` in
25413      *32-bit*)
25414	emul="${emul}32"
25415	;;
25416      *64-bit*)
25417	emul="${emul}64"
25418	;;
25419    esac
25420    case `/usr/bin/file conftest.$ac_objext` in
25421      *MSB*)
25422	emul="${emul}btsmip"
25423	;;
25424      *LSB*)
25425	emul="${emul}ltsmip"
25426	;;
25427    esac
25428    case `/usr/bin/file conftest.$ac_objext` in
25429      *N32*)
25430	emul="${emul}n32"
25431	;;
25432    esac
25433    LD="${LD-ld} -m $emul"
25434  fi
25435  rm -rf conftest*
25436  ;;
25437
25438x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
25439s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
25440  # Find out what ABI is being produced by ac_compile, and set linker
25441  # options accordingly.  Note that the listed cases only cover the
25442  # situations where additional linker options are needed (such as when
25443  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
25444  # vice versa); the common cases where no linker options are needed do
25445  # not appear in the list.
25446  echo 'int i;' > conftest.$ac_ext
25447  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25448  (eval $ac_compile) 2>&5
25449  ac_status=$?
25450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25451  test $ac_status = 0; }; then
25452    case `/usr/bin/file conftest.o` in
25453      *32-bit*)
25454	case $host in
25455	  x86_64-*kfreebsd*-gnu)
25456	    LD="${LD-ld} -m elf_i386_fbsd"
25457	    ;;
25458	  x86_64-*linux*)
25459	    case `/usr/bin/file conftest.o` in
25460	      *x86-64*)
25461		LD="${LD-ld} -m elf32_x86_64"
25462		;;
25463	      *)
25464		LD="${LD-ld} -m elf_i386"
25465		;;
25466	    esac
25467	    ;;
25468	  powerpc64le-*linux*)
25469	    LD="${LD-ld} -m elf32lppclinux"
25470	    ;;
25471	  powerpc64-*linux*)
25472	    LD="${LD-ld} -m elf32ppclinux"
25473	    ;;
25474	  s390x-*linux*)
25475	    LD="${LD-ld} -m elf_s390"
25476	    ;;
25477	  sparc64-*linux*)
25478	    LD="${LD-ld} -m elf32_sparc"
25479	    ;;
25480	esac
25481	;;
25482      *64-bit*)
25483	case $host in
25484	  x86_64-*kfreebsd*-gnu)
25485	    LD="${LD-ld} -m elf_x86_64_fbsd"
25486	    ;;
25487	  x86_64-*linux*)
25488	    LD="${LD-ld} -m elf_x86_64"
25489	    ;;
25490	  powerpcle-*linux*)
25491	    LD="${LD-ld} -m elf64lppc"
25492	    ;;
25493	  powerpc-*linux*)
25494	    LD="${LD-ld} -m elf64ppc"
25495	    ;;
25496	  s390*-*linux*|s390*-*tpf*)
25497	    LD="${LD-ld} -m elf64_s390"
25498	    ;;
25499	  sparc*-*linux*)
25500	    LD="${LD-ld} -m elf64_sparc"
25501	    ;;
25502	esac
25503	;;
25504    esac
25505  fi
25506  rm -rf conftest*
25507  ;;
25508
25509*-*-sco3.2v5*)
25510  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
25511  SAVE_CFLAGS=$CFLAGS
25512  CFLAGS="$CFLAGS -belf"
25513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
25514$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
25515if ${lt_cv_cc_needs_belf+:} false; then :
25516  $as_echo_n "(cached) " >&6
25517else
25518  ac_ext=c
25519ac_cpp='$CPP $CPPFLAGS'
25520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25522ac_compiler_gnu=$ac_cv_c_compiler_gnu
25523
25524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25525/* end confdefs.h.  */
25526
25527int
25528main ()
25529{
25530
25531  ;
25532  return 0;
25533}
25534_ACEOF
25535if ac_fn_c_try_link "$LINENO"; then :
25536  lt_cv_cc_needs_belf=yes
25537else
25538  lt_cv_cc_needs_belf=no
25539fi
25540rm -f core conftest.err conftest.$ac_objext \
25541    conftest$ac_exeext conftest.$ac_ext
25542     ac_ext=c
25543ac_cpp='$CPP $CPPFLAGS'
25544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25546ac_compiler_gnu=$ac_cv_c_compiler_gnu
25547
25548fi
25549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
25550$as_echo "$lt_cv_cc_needs_belf" >&6; }
25551  if test yes != "$lt_cv_cc_needs_belf"; then
25552    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
25553    CFLAGS=$SAVE_CFLAGS
25554  fi
25555  ;;
25556*-*solaris*)
25557  # Find out what ABI is being produced by ac_compile, and set linker
25558  # options accordingly.
25559  echo 'int i;' > conftest.$ac_ext
25560  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25561  (eval $ac_compile) 2>&5
25562  ac_status=$?
25563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25564  test $ac_status = 0; }; then
25565    case `/usr/bin/file conftest.o` in
25566    *64-bit*)
25567      case $lt_cv_prog_gnu_ld in
25568      yes*)
25569        case $host in
25570        i?86-*-solaris*|x86_64-*-solaris*)
25571          LD="${LD-ld} -m elf_x86_64"
25572          ;;
25573        sparc*-*-solaris*)
25574          LD="${LD-ld} -m elf64_sparc"
25575          ;;
25576        esac
25577        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
25578        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
25579          LD=${LD-ld}_sol2
25580        fi
25581        ;;
25582      *)
25583	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
25584	  LD="${LD-ld} -64"
25585	fi
25586	;;
25587      esac
25588      ;;
25589    esac
25590  fi
25591  rm -rf conftest*
25592  ;;
25593esac
25594
25595need_locks=$enable_libtool_lock
25596
25597if test -n "$ac_tool_prefix"; then
25598  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
25599set dummy ${ac_tool_prefix}mt; ac_word=$2
25600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25601$as_echo_n "checking for $ac_word... " >&6; }
25602if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
25603  $as_echo_n "(cached) " >&6
25604else
25605  if test -n "$MANIFEST_TOOL"; then
25606  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
25607else
25608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25609for as_dir in $PATH
25610do
25611  IFS=$as_save_IFS
25612  test -z "$as_dir" && as_dir=.
25613    for ac_exec_ext in '' $ac_executable_extensions; do
25614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25615    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
25616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25617    break 2
25618  fi
25619done
25620  done
25621IFS=$as_save_IFS
25622
25623fi
25624fi
25625MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
25626if test -n "$MANIFEST_TOOL"; then
25627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
25628$as_echo "$MANIFEST_TOOL" >&6; }
25629else
25630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25631$as_echo "no" >&6; }
25632fi
25633
25634
25635fi
25636if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
25637  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
25638  # Extract the first word of "mt", so it can be a program name with args.
25639set dummy mt; ac_word=$2
25640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25641$as_echo_n "checking for $ac_word... " >&6; }
25642if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
25643  $as_echo_n "(cached) " >&6
25644else
25645  if test -n "$ac_ct_MANIFEST_TOOL"; then
25646  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
25647else
25648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25649for as_dir in $PATH
25650do
25651  IFS=$as_save_IFS
25652  test -z "$as_dir" && as_dir=.
25653    for ac_exec_ext in '' $ac_executable_extensions; do
25654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25655    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
25656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25657    break 2
25658  fi
25659done
25660  done
25661IFS=$as_save_IFS
25662
25663fi
25664fi
25665ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
25666if test -n "$ac_ct_MANIFEST_TOOL"; then
25667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
25668$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
25669else
25670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25671$as_echo "no" >&6; }
25672fi
25673
25674  if test "x$ac_ct_MANIFEST_TOOL" = x; then
25675    MANIFEST_TOOL=":"
25676  else
25677    case $cross_compiling:$ac_tool_warned in
25678yes:)
25679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25681ac_tool_warned=yes ;;
25682esac
25683    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
25684  fi
25685else
25686  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
25687fi
25688
25689test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
25690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
25691$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
25692if ${lt_cv_path_mainfest_tool+:} false; then :
25693  $as_echo_n "(cached) " >&6
25694else
25695  lt_cv_path_mainfest_tool=no
25696  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
25697  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
25698  cat conftest.err >&5
25699  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
25700    lt_cv_path_mainfest_tool=yes
25701  fi
25702  rm -f conftest*
25703fi
25704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
25705$as_echo "$lt_cv_path_mainfest_tool" >&6; }
25706if test yes != "$lt_cv_path_mainfest_tool"; then
25707  MANIFEST_TOOL=:
25708fi
25709
25710
25711
25712
25713
25714
25715  case $host_os in
25716    rhapsody* | darwin*)
25717    if test -n "$ac_tool_prefix"; then
25718  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
25719set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
25720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25721$as_echo_n "checking for $ac_word... " >&6; }
25722if ${ac_cv_prog_DSYMUTIL+:} false; then :
25723  $as_echo_n "(cached) " >&6
25724else
25725  if test -n "$DSYMUTIL"; then
25726  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
25727else
25728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25729for as_dir in $PATH
25730do
25731  IFS=$as_save_IFS
25732  test -z "$as_dir" && as_dir=.
25733    for ac_exec_ext in '' $ac_executable_extensions; do
25734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25735    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
25736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25737    break 2
25738  fi
25739done
25740  done
25741IFS=$as_save_IFS
25742
25743fi
25744fi
25745DSYMUTIL=$ac_cv_prog_DSYMUTIL
25746if test -n "$DSYMUTIL"; then
25747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
25748$as_echo "$DSYMUTIL" >&6; }
25749else
25750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25751$as_echo "no" >&6; }
25752fi
25753
25754
25755fi
25756if test -z "$ac_cv_prog_DSYMUTIL"; then
25757  ac_ct_DSYMUTIL=$DSYMUTIL
25758  # Extract the first word of "dsymutil", so it can be a program name with args.
25759set dummy dsymutil; ac_word=$2
25760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25761$as_echo_n "checking for $ac_word... " >&6; }
25762if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
25763  $as_echo_n "(cached) " >&6
25764else
25765  if test -n "$ac_ct_DSYMUTIL"; then
25766  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
25767else
25768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25769for as_dir in $PATH
25770do
25771  IFS=$as_save_IFS
25772  test -z "$as_dir" && as_dir=.
25773    for ac_exec_ext in '' $ac_executable_extensions; do
25774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25775    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
25776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25777    break 2
25778  fi
25779done
25780  done
25781IFS=$as_save_IFS
25782
25783fi
25784fi
25785ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
25786if test -n "$ac_ct_DSYMUTIL"; then
25787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
25788$as_echo "$ac_ct_DSYMUTIL" >&6; }
25789else
25790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25791$as_echo "no" >&6; }
25792fi
25793
25794  if test "x$ac_ct_DSYMUTIL" = x; then
25795    DSYMUTIL=":"
25796  else
25797    case $cross_compiling:$ac_tool_warned in
25798yes:)
25799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25801ac_tool_warned=yes ;;
25802esac
25803    DSYMUTIL=$ac_ct_DSYMUTIL
25804  fi
25805else
25806  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
25807fi
25808
25809    if test -n "$ac_tool_prefix"; then
25810  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
25811set dummy ${ac_tool_prefix}nmedit; ac_word=$2
25812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25813$as_echo_n "checking for $ac_word... " >&6; }
25814if ${ac_cv_prog_NMEDIT+:} false; then :
25815  $as_echo_n "(cached) " >&6
25816else
25817  if test -n "$NMEDIT"; then
25818  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
25819else
25820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25821for as_dir in $PATH
25822do
25823  IFS=$as_save_IFS
25824  test -z "$as_dir" && as_dir=.
25825    for ac_exec_ext in '' $ac_executable_extensions; do
25826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25827    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
25828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25829    break 2
25830  fi
25831done
25832  done
25833IFS=$as_save_IFS
25834
25835fi
25836fi
25837NMEDIT=$ac_cv_prog_NMEDIT
25838if test -n "$NMEDIT"; then
25839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
25840$as_echo "$NMEDIT" >&6; }
25841else
25842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25843$as_echo "no" >&6; }
25844fi
25845
25846
25847fi
25848if test -z "$ac_cv_prog_NMEDIT"; then
25849  ac_ct_NMEDIT=$NMEDIT
25850  # Extract the first word of "nmedit", so it can be a program name with args.
25851set dummy nmedit; ac_word=$2
25852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25853$as_echo_n "checking for $ac_word... " >&6; }
25854if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
25855  $as_echo_n "(cached) " >&6
25856else
25857  if test -n "$ac_ct_NMEDIT"; then
25858  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
25859else
25860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25861for as_dir in $PATH
25862do
25863  IFS=$as_save_IFS
25864  test -z "$as_dir" && as_dir=.
25865    for ac_exec_ext in '' $ac_executable_extensions; do
25866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25867    ac_cv_prog_ac_ct_NMEDIT="nmedit"
25868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25869    break 2
25870  fi
25871done
25872  done
25873IFS=$as_save_IFS
25874
25875fi
25876fi
25877ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
25878if test -n "$ac_ct_NMEDIT"; then
25879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
25880$as_echo "$ac_ct_NMEDIT" >&6; }
25881else
25882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25883$as_echo "no" >&6; }
25884fi
25885
25886  if test "x$ac_ct_NMEDIT" = x; then
25887    NMEDIT=":"
25888  else
25889    case $cross_compiling:$ac_tool_warned in
25890yes:)
25891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25893ac_tool_warned=yes ;;
25894esac
25895    NMEDIT=$ac_ct_NMEDIT
25896  fi
25897else
25898  NMEDIT="$ac_cv_prog_NMEDIT"
25899fi
25900
25901    if test -n "$ac_tool_prefix"; then
25902  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
25903set dummy ${ac_tool_prefix}lipo; ac_word=$2
25904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25905$as_echo_n "checking for $ac_word... " >&6; }
25906if ${ac_cv_prog_LIPO+:} false; then :
25907  $as_echo_n "(cached) " >&6
25908else
25909  if test -n "$LIPO"; then
25910  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
25911else
25912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25913for as_dir in $PATH
25914do
25915  IFS=$as_save_IFS
25916  test -z "$as_dir" && as_dir=.
25917    for ac_exec_ext in '' $ac_executable_extensions; do
25918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25919    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
25920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25921    break 2
25922  fi
25923done
25924  done
25925IFS=$as_save_IFS
25926
25927fi
25928fi
25929LIPO=$ac_cv_prog_LIPO
25930if test -n "$LIPO"; then
25931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
25932$as_echo "$LIPO" >&6; }
25933else
25934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25935$as_echo "no" >&6; }
25936fi
25937
25938
25939fi
25940if test -z "$ac_cv_prog_LIPO"; then
25941  ac_ct_LIPO=$LIPO
25942  # Extract the first word of "lipo", so it can be a program name with args.
25943set dummy lipo; ac_word=$2
25944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25945$as_echo_n "checking for $ac_word... " >&6; }
25946if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
25947  $as_echo_n "(cached) " >&6
25948else
25949  if test -n "$ac_ct_LIPO"; then
25950  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
25951else
25952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25953for as_dir in $PATH
25954do
25955  IFS=$as_save_IFS
25956  test -z "$as_dir" && as_dir=.
25957    for ac_exec_ext in '' $ac_executable_extensions; do
25958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25959    ac_cv_prog_ac_ct_LIPO="lipo"
25960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25961    break 2
25962  fi
25963done
25964  done
25965IFS=$as_save_IFS
25966
25967fi
25968fi
25969ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
25970if test -n "$ac_ct_LIPO"; then
25971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
25972$as_echo "$ac_ct_LIPO" >&6; }
25973else
25974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25975$as_echo "no" >&6; }
25976fi
25977
25978  if test "x$ac_ct_LIPO" = x; then
25979    LIPO=":"
25980  else
25981    case $cross_compiling:$ac_tool_warned in
25982yes:)
25983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25985ac_tool_warned=yes ;;
25986esac
25987    LIPO=$ac_ct_LIPO
25988  fi
25989else
25990  LIPO="$ac_cv_prog_LIPO"
25991fi
25992
25993    if test -n "$ac_tool_prefix"; then
25994  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
25995set dummy ${ac_tool_prefix}otool; ac_word=$2
25996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25997$as_echo_n "checking for $ac_word... " >&6; }
25998if ${ac_cv_prog_OTOOL+:} false; then :
25999  $as_echo_n "(cached) " >&6
26000else
26001  if test -n "$OTOOL"; then
26002  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
26003else
26004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26005for as_dir in $PATH
26006do
26007  IFS=$as_save_IFS
26008  test -z "$as_dir" && as_dir=.
26009    for ac_exec_ext in '' $ac_executable_extensions; do
26010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26011    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
26012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26013    break 2
26014  fi
26015done
26016  done
26017IFS=$as_save_IFS
26018
26019fi
26020fi
26021OTOOL=$ac_cv_prog_OTOOL
26022if test -n "$OTOOL"; then
26023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
26024$as_echo "$OTOOL" >&6; }
26025else
26026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26027$as_echo "no" >&6; }
26028fi
26029
26030
26031fi
26032if test -z "$ac_cv_prog_OTOOL"; then
26033  ac_ct_OTOOL=$OTOOL
26034  # Extract the first word of "otool", so it can be a program name with args.
26035set dummy otool; ac_word=$2
26036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26037$as_echo_n "checking for $ac_word... " >&6; }
26038if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
26039  $as_echo_n "(cached) " >&6
26040else
26041  if test -n "$ac_ct_OTOOL"; then
26042  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
26043else
26044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26045for as_dir in $PATH
26046do
26047  IFS=$as_save_IFS
26048  test -z "$as_dir" && as_dir=.
26049    for ac_exec_ext in '' $ac_executable_extensions; do
26050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26051    ac_cv_prog_ac_ct_OTOOL="otool"
26052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26053    break 2
26054  fi
26055done
26056  done
26057IFS=$as_save_IFS
26058
26059fi
26060fi
26061ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
26062if test -n "$ac_ct_OTOOL"; then
26063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
26064$as_echo "$ac_ct_OTOOL" >&6; }
26065else
26066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26067$as_echo "no" >&6; }
26068fi
26069
26070  if test "x$ac_ct_OTOOL" = x; then
26071    OTOOL=":"
26072  else
26073    case $cross_compiling:$ac_tool_warned in
26074yes:)
26075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26077ac_tool_warned=yes ;;
26078esac
26079    OTOOL=$ac_ct_OTOOL
26080  fi
26081else
26082  OTOOL="$ac_cv_prog_OTOOL"
26083fi
26084
26085    if test -n "$ac_tool_prefix"; then
26086  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
26087set dummy ${ac_tool_prefix}otool64; ac_word=$2
26088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26089$as_echo_n "checking for $ac_word... " >&6; }
26090if ${ac_cv_prog_OTOOL64+:} false; then :
26091  $as_echo_n "(cached) " >&6
26092else
26093  if test -n "$OTOOL64"; then
26094  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
26095else
26096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26097for as_dir in $PATH
26098do
26099  IFS=$as_save_IFS
26100  test -z "$as_dir" && as_dir=.
26101    for ac_exec_ext in '' $ac_executable_extensions; do
26102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26103    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
26104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26105    break 2
26106  fi
26107done
26108  done
26109IFS=$as_save_IFS
26110
26111fi
26112fi
26113OTOOL64=$ac_cv_prog_OTOOL64
26114if test -n "$OTOOL64"; then
26115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
26116$as_echo "$OTOOL64" >&6; }
26117else
26118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26119$as_echo "no" >&6; }
26120fi
26121
26122
26123fi
26124if test -z "$ac_cv_prog_OTOOL64"; then
26125  ac_ct_OTOOL64=$OTOOL64
26126  # Extract the first word of "otool64", so it can be a program name with args.
26127set dummy otool64; ac_word=$2
26128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26129$as_echo_n "checking for $ac_word... " >&6; }
26130if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
26131  $as_echo_n "(cached) " >&6
26132else
26133  if test -n "$ac_ct_OTOOL64"; then
26134  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
26135else
26136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26137for as_dir in $PATH
26138do
26139  IFS=$as_save_IFS
26140  test -z "$as_dir" && as_dir=.
26141    for ac_exec_ext in '' $ac_executable_extensions; do
26142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26143    ac_cv_prog_ac_ct_OTOOL64="otool64"
26144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26145    break 2
26146  fi
26147done
26148  done
26149IFS=$as_save_IFS
26150
26151fi
26152fi
26153ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
26154if test -n "$ac_ct_OTOOL64"; then
26155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
26156$as_echo "$ac_ct_OTOOL64" >&6; }
26157else
26158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26159$as_echo "no" >&6; }
26160fi
26161
26162  if test "x$ac_ct_OTOOL64" = x; then
26163    OTOOL64=":"
26164  else
26165    case $cross_compiling:$ac_tool_warned in
26166yes:)
26167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26169ac_tool_warned=yes ;;
26170esac
26171    OTOOL64=$ac_ct_OTOOL64
26172  fi
26173else
26174  OTOOL64="$ac_cv_prog_OTOOL64"
26175fi
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
26204$as_echo_n "checking for -single_module linker flag... " >&6; }
26205if ${lt_cv_apple_cc_single_mod+:} false; then :
26206  $as_echo_n "(cached) " >&6
26207else
26208  lt_cv_apple_cc_single_mod=no
26209      if test -z "$LT_MULTI_MODULE"; then
26210	# By default we will add the -single_module flag. You can override
26211	# by either setting the environment variable LT_MULTI_MODULE
26212	# non-empty at configure time, or by adding -multi_module to the
26213	# link flags.
26214	rm -rf libconftest.dylib*
26215	echo "int foo(void){return 1;}" > conftest.c
26216	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
26217-dynamiclib -Wl,-single_module conftest.c" >&5
26218	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
26219	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
26220        _lt_result=$?
26221	# If there is a non-empty error log, and "single_module"
26222	# appears in it, assume the flag caused a linker warning
26223        if test -s conftest.err && $GREP single_module conftest.err; then
26224	  cat conftest.err >&5
26225	# Otherwise, if the output was created with a 0 exit code from
26226	# the compiler, it worked.
26227	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
26228	  lt_cv_apple_cc_single_mod=yes
26229	else
26230	  cat conftest.err >&5
26231	fi
26232	rm -rf libconftest.dylib*
26233	rm -f conftest.*
26234      fi
26235fi
26236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
26237$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
26238
26239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
26240$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
26241if ${lt_cv_ld_exported_symbols_list+:} false; then :
26242  $as_echo_n "(cached) " >&6
26243else
26244  lt_cv_ld_exported_symbols_list=no
26245      save_LDFLAGS=$LDFLAGS
26246      echo "_main" > conftest.sym
26247      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
26248      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26249/* end confdefs.h.  */
26250
26251int
26252main ()
26253{
26254
26255  ;
26256  return 0;
26257}
26258_ACEOF
26259if ac_fn_c_try_link "$LINENO"; then :
26260  lt_cv_ld_exported_symbols_list=yes
26261else
26262  lt_cv_ld_exported_symbols_list=no
26263fi
26264rm -f core conftest.err conftest.$ac_objext \
26265    conftest$ac_exeext conftest.$ac_ext
26266	LDFLAGS=$save_LDFLAGS
26267
26268fi
26269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
26270$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
26271
26272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
26273$as_echo_n "checking for -force_load linker flag... " >&6; }
26274if ${lt_cv_ld_force_load+:} false; then :
26275  $as_echo_n "(cached) " >&6
26276else
26277  lt_cv_ld_force_load=no
26278      cat > conftest.c << _LT_EOF
26279int forced_loaded() { return 2;}
26280_LT_EOF
26281      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
26282      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
26283      echo "$AR cr libconftest.a conftest.o" >&5
26284      $AR cr libconftest.a conftest.o 2>&5
26285      echo "$RANLIB libconftest.a" >&5
26286      $RANLIB libconftest.a 2>&5
26287      cat > conftest.c << _LT_EOF
26288int main() { return 0;}
26289_LT_EOF
26290      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
26291      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
26292      _lt_result=$?
26293      if test -s conftest.err && $GREP force_load conftest.err; then
26294	cat conftest.err >&5
26295      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
26296	lt_cv_ld_force_load=yes
26297      else
26298	cat conftest.err >&5
26299      fi
26300        rm -f conftest.err libconftest.a conftest conftest.c
26301        rm -rf conftest.dSYM
26302
26303fi
26304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
26305$as_echo "$lt_cv_ld_force_load" >&6; }
26306    case $host_os in
26307    rhapsody* | darwin1.[012])
26308      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
26309    darwin1.*)
26310      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
26311    darwin*) # darwin 5.x on
26312      # if running on 10.5 or later, the deployment target defaults
26313      # to the OS version, if on x86, and 10.4, the deployment
26314      # target defaults to 10.4. Don't you love it?
26315      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
26316	10.0,*86*-darwin8*|10.0,*-darwin[912]*)
26317	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
26318	10.[012][,.]*)
26319	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
26320	10.*|11.*)
26321	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
26322      esac
26323    ;;
26324  esac
26325    if test yes = "$lt_cv_apple_cc_single_mod"; then
26326      _lt_dar_single_mod='$single_module'
26327    fi
26328    if test yes = "$lt_cv_ld_exported_symbols_list"; then
26329      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
26330    else
26331      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
26332    fi
26333    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
26334      _lt_dsymutil='~$DSYMUTIL $lib || :'
26335    else
26336      _lt_dsymutil=
26337    fi
26338    ;;
26339  esac
26340
26341# func_munge_path_list VARIABLE PATH
26342# -----------------------------------
26343# VARIABLE is name of variable containing _space_ separated list of
26344# directories to be munged by the contents of PATH, which is string
26345# having a format:
26346# "DIR[:DIR]:"
26347#       string "DIR[ DIR]" will be prepended to VARIABLE
26348# ":DIR[:DIR]"
26349#       string "DIR[ DIR]" will be appended to VARIABLE
26350# "DIRP[:DIRP]::[DIRA:]DIRA"
26351#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26352#       "DIRA[ DIRA]" will be appended to VARIABLE
26353# "DIR[:DIR]"
26354#       VARIABLE will be replaced by "DIR[ DIR]"
26355func_munge_path_list ()
26356{
26357    case x$2 in
26358    x)
26359        ;;
26360    *:)
26361        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26362        ;;
26363    x:*)
26364        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26365        ;;
26366    *::*)
26367        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26368        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26369        ;;
26370    *)
26371        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26372        ;;
26373    esac
26374}
26375
26376for ac_header in dlfcn.h
26377do :
26378  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
26379"
26380if test "x$ac_cv_header_dlfcn_h" = xyes; then :
26381  cat >>confdefs.h <<_ACEOF
26382#define HAVE_DLFCN_H 1
26383_ACEOF
26384
26385fi
26386
26387done
26388
26389
26390
26391func_stripname_cnf ()
26392{
26393  case $2 in
26394  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
26395  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
26396  esac
26397} # func_stripname_cnf
26398
26399
26400
26401
26402
26403# Set options
26404enable_win32_dll=yes
26405
26406case $host in
26407*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
26408  if test -n "$ac_tool_prefix"; then
26409  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
26410set dummy ${ac_tool_prefix}as; ac_word=$2
26411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26412$as_echo_n "checking for $ac_word... " >&6; }
26413if ${ac_cv_prog_AS+:} false; then :
26414  $as_echo_n "(cached) " >&6
26415else
26416  if test -n "$AS"; then
26417  ac_cv_prog_AS="$AS" # Let the user override the test.
26418else
26419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26420for as_dir in $PATH
26421do
26422  IFS=$as_save_IFS
26423  test -z "$as_dir" && as_dir=.
26424    for ac_exec_ext in '' $ac_executable_extensions; do
26425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26426    ac_cv_prog_AS="${ac_tool_prefix}as"
26427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26428    break 2
26429  fi
26430done
26431  done
26432IFS=$as_save_IFS
26433
26434fi
26435fi
26436AS=$ac_cv_prog_AS
26437if test -n "$AS"; then
26438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
26439$as_echo "$AS" >&6; }
26440else
26441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26442$as_echo "no" >&6; }
26443fi
26444
26445
26446fi
26447if test -z "$ac_cv_prog_AS"; then
26448  ac_ct_AS=$AS
26449  # Extract the first word of "as", so it can be a program name with args.
26450set dummy as; ac_word=$2
26451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26452$as_echo_n "checking for $ac_word... " >&6; }
26453if ${ac_cv_prog_ac_ct_AS+:} false; then :
26454  $as_echo_n "(cached) " >&6
26455else
26456  if test -n "$ac_ct_AS"; then
26457  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
26458else
26459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26460for as_dir in $PATH
26461do
26462  IFS=$as_save_IFS
26463  test -z "$as_dir" && as_dir=.
26464    for ac_exec_ext in '' $ac_executable_extensions; do
26465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26466    ac_cv_prog_ac_ct_AS="as"
26467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26468    break 2
26469  fi
26470done
26471  done
26472IFS=$as_save_IFS
26473
26474fi
26475fi
26476ac_ct_AS=$ac_cv_prog_ac_ct_AS
26477if test -n "$ac_ct_AS"; then
26478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
26479$as_echo "$ac_ct_AS" >&6; }
26480else
26481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26482$as_echo "no" >&6; }
26483fi
26484
26485  if test "x$ac_ct_AS" = x; then
26486    AS="false"
26487  else
26488    case $cross_compiling:$ac_tool_warned in
26489yes:)
26490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26492ac_tool_warned=yes ;;
26493esac
26494    AS=$ac_ct_AS
26495  fi
26496else
26497  AS="$ac_cv_prog_AS"
26498fi
26499
26500  if test -n "$ac_tool_prefix"; then
26501  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
26502set dummy ${ac_tool_prefix}dlltool; ac_word=$2
26503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26504$as_echo_n "checking for $ac_word... " >&6; }
26505if ${ac_cv_prog_DLLTOOL+:} false; then :
26506  $as_echo_n "(cached) " >&6
26507else
26508  if test -n "$DLLTOOL"; then
26509  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
26510else
26511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26512for as_dir in $PATH
26513do
26514  IFS=$as_save_IFS
26515  test -z "$as_dir" && as_dir=.
26516    for ac_exec_ext in '' $ac_executable_extensions; do
26517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26518    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
26519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26520    break 2
26521  fi
26522done
26523  done
26524IFS=$as_save_IFS
26525
26526fi
26527fi
26528DLLTOOL=$ac_cv_prog_DLLTOOL
26529if test -n "$DLLTOOL"; then
26530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
26531$as_echo "$DLLTOOL" >&6; }
26532else
26533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26534$as_echo "no" >&6; }
26535fi
26536
26537
26538fi
26539if test -z "$ac_cv_prog_DLLTOOL"; then
26540  ac_ct_DLLTOOL=$DLLTOOL
26541  # Extract the first word of "dlltool", so it can be a program name with args.
26542set dummy dlltool; ac_word=$2
26543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26544$as_echo_n "checking for $ac_word... " >&6; }
26545if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
26546  $as_echo_n "(cached) " >&6
26547else
26548  if test -n "$ac_ct_DLLTOOL"; then
26549  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
26550else
26551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26552for as_dir in $PATH
26553do
26554  IFS=$as_save_IFS
26555  test -z "$as_dir" && as_dir=.
26556    for ac_exec_ext in '' $ac_executable_extensions; do
26557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26558    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
26559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26560    break 2
26561  fi
26562done
26563  done
26564IFS=$as_save_IFS
26565
26566fi
26567fi
26568ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
26569if test -n "$ac_ct_DLLTOOL"; then
26570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
26571$as_echo "$ac_ct_DLLTOOL" >&6; }
26572else
26573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26574$as_echo "no" >&6; }
26575fi
26576
26577  if test "x$ac_ct_DLLTOOL" = x; then
26578    DLLTOOL="false"
26579  else
26580    case $cross_compiling:$ac_tool_warned in
26581yes:)
26582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26584ac_tool_warned=yes ;;
26585esac
26586    DLLTOOL=$ac_ct_DLLTOOL
26587  fi
26588else
26589  DLLTOOL="$ac_cv_prog_DLLTOOL"
26590fi
26591
26592  if test -n "$ac_tool_prefix"; then
26593  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
26594set dummy ${ac_tool_prefix}objdump; ac_word=$2
26595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26596$as_echo_n "checking for $ac_word... " >&6; }
26597if ${ac_cv_prog_OBJDUMP+:} false; then :
26598  $as_echo_n "(cached) " >&6
26599else
26600  if test -n "$OBJDUMP"; then
26601  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
26602else
26603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26604for as_dir in $PATH
26605do
26606  IFS=$as_save_IFS
26607  test -z "$as_dir" && as_dir=.
26608    for ac_exec_ext in '' $ac_executable_extensions; do
26609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26610    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
26611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26612    break 2
26613  fi
26614done
26615  done
26616IFS=$as_save_IFS
26617
26618fi
26619fi
26620OBJDUMP=$ac_cv_prog_OBJDUMP
26621if test -n "$OBJDUMP"; then
26622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
26623$as_echo "$OBJDUMP" >&6; }
26624else
26625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26626$as_echo "no" >&6; }
26627fi
26628
26629
26630fi
26631if test -z "$ac_cv_prog_OBJDUMP"; then
26632  ac_ct_OBJDUMP=$OBJDUMP
26633  # Extract the first word of "objdump", so it can be a program name with args.
26634set dummy objdump; ac_word=$2
26635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26636$as_echo_n "checking for $ac_word... " >&6; }
26637if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
26638  $as_echo_n "(cached) " >&6
26639else
26640  if test -n "$ac_ct_OBJDUMP"; then
26641  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
26642else
26643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26644for as_dir in $PATH
26645do
26646  IFS=$as_save_IFS
26647  test -z "$as_dir" && as_dir=.
26648    for ac_exec_ext in '' $ac_executable_extensions; do
26649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26650    ac_cv_prog_ac_ct_OBJDUMP="objdump"
26651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26652    break 2
26653  fi
26654done
26655  done
26656IFS=$as_save_IFS
26657
26658fi
26659fi
26660ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
26661if test -n "$ac_ct_OBJDUMP"; then
26662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
26663$as_echo "$ac_ct_OBJDUMP" >&6; }
26664else
26665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26666$as_echo "no" >&6; }
26667fi
26668
26669  if test "x$ac_ct_OBJDUMP" = x; then
26670    OBJDUMP="false"
26671  else
26672    case $cross_compiling:$ac_tool_warned in
26673yes:)
26674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26676ac_tool_warned=yes ;;
26677esac
26678    OBJDUMP=$ac_ct_OBJDUMP
26679  fi
26680else
26681  OBJDUMP="$ac_cv_prog_OBJDUMP"
26682fi
26683
26684  ;;
26685esac
26686
26687test -z "$AS" && AS=as
26688
26689
26690
26691
26692
26693test -z "$DLLTOOL" && DLLTOOL=dlltool
26694
26695
26696
26697
26698
26699test -z "$OBJDUMP" && OBJDUMP=objdump
26700
26701
26702
26703
26704
26705
26706
26707        enable_dlopen=no
26708
26709
26710
26711            # Check whether --enable-shared was given.
26712if test "${enable_shared+set}" = set; then :
26713  enableval=$enable_shared; p=${PACKAGE-default}
26714    case $enableval in
26715    yes) enable_shared=yes ;;
26716    no) enable_shared=no ;;
26717    *)
26718      enable_shared=no
26719      # Look at the argument we got.  We use all the common list separators.
26720      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
26721      for pkg in $enableval; do
26722	IFS=$lt_save_ifs
26723	if test "X$pkg" = "X$p"; then
26724	  enable_shared=yes
26725	fi
26726      done
26727      IFS=$lt_save_ifs
26728      ;;
26729    esac
26730else
26731  enable_shared=yes
26732fi
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742  # Check whether --enable-static was given.
26743if test "${enable_static+set}" = set; then :
26744  enableval=$enable_static; p=${PACKAGE-default}
26745    case $enableval in
26746    yes) enable_static=yes ;;
26747    no) enable_static=no ;;
26748    *)
26749     enable_static=no
26750      # Look at the argument we got.  We use all the common list separators.
26751      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
26752      for pkg in $enableval; do
26753	IFS=$lt_save_ifs
26754	if test "X$pkg" = "X$p"; then
26755	  enable_static=yes
26756	fi
26757      done
26758      IFS=$lt_save_ifs
26759      ;;
26760    esac
26761else
26762  enable_static=yes
26763fi
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774# Check whether --with-pic was given.
26775if test "${with_pic+set}" = set; then :
26776  withval=$with_pic; lt_p=${PACKAGE-default}
26777    case $withval in
26778    yes|no) pic_mode=$withval ;;
26779    *)
26780      pic_mode=default
26781      # Look at the argument we got.  We use all the common list separators.
26782      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
26783      for lt_pkg in $withval; do
26784	IFS=$lt_save_ifs
26785	if test "X$lt_pkg" = "X$lt_p"; then
26786	  pic_mode=yes
26787	fi
26788      done
26789      IFS=$lt_save_ifs
26790      ;;
26791    esac
26792else
26793  pic_mode=default
26794fi
26795
26796
26797
26798
26799
26800
26801
26802
26803  # Check whether --enable-fast-install was given.
26804if test "${enable_fast_install+set}" = set; then :
26805  enableval=$enable_fast_install; p=${PACKAGE-default}
26806    case $enableval in
26807    yes) enable_fast_install=yes ;;
26808    no) enable_fast_install=no ;;
26809    *)
26810      enable_fast_install=no
26811      # Look at the argument we got.  We use all the common list separators.
26812      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
26813      for pkg in $enableval; do
26814	IFS=$lt_save_ifs
26815	if test "X$pkg" = "X$p"; then
26816	  enable_fast_install=yes
26817	fi
26818      done
26819      IFS=$lt_save_ifs
26820      ;;
26821    esac
26822else
26823  enable_fast_install=yes
26824fi
26825
26826
26827
26828
26829
26830
26831
26832
26833  shared_archive_member_spec=
26834case $host,$enable_shared in
26835power*-*-aix[5-9]*,yes)
26836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
26837$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
26838
26839# Check whether --with-aix-soname was given.
26840if test "${with_aix_soname+set}" = set; then :
26841  withval=$with_aix_soname; case $withval in
26842    aix|svr4|both)
26843      ;;
26844    *)
26845      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
26846      ;;
26847    esac
26848    lt_cv_with_aix_soname=$with_aix_soname
26849else
26850  if ${lt_cv_with_aix_soname+:} false; then :
26851  $as_echo_n "(cached) " >&6
26852else
26853  lt_cv_with_aix_soname=aix
26854fi
26855
26856    with_aix_soname=$lt_cv_with_aix_soname
26857fi
26858
26859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
26860$as_echo "$with_aix_soname" >&6; }
26861  if test aix != "$with_aix_soname"; then
26862    # For the AIX way of multilib, we name the shared archive member
26863    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
26864    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
26865    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
26866    # the AIX toolchain works better with OBJECT_MODE set (default 32).
26867    if test 64 = "${OBJECT_MODE-32}"; then
26868      shared_archive_member_spec=shr_64
26869    else
26870      shared_archive_member_spec=shr
26871    fi
26872  fi
26873  ;;
26874*)
26875  with_aix_soname=aix
26876  ;;
26877esac
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888# This can be used to rebuild libtool when needed
26889LIBTOOL_DEPS=$ltmain
26890
26891# Always use our own libtool.
26892LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923test -z "$LN_S" && LN_S="ln -s"
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938if test -n "${ZSH_VERSION+set}"; then
26939   setopt NO_GLOB_SUBST
26940fi
26941
26942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
26943$as_echo_n "checking for objdir... " >&6; }
26944if ${lt_cv_objdir+:} false; then :
26945  $as_echo_n "(cached) " >&6
26946else
26947  rm -f .libs 2>/dev/null
26948mkdir .libs 2>/dev/null
26949if test -d .libs; then
26950  lt_cv_objdir=.libs
26951else
26952  # MS-DOS does not allow filenames that begin with a dot.
26953  lt_cv_objdir=_libs
26954fi
26955rmdir .libs 2>/dev/null
26956fi
26957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
26958$as_echo "$lt_cv_objdir" >&6; }
26959objdir=$lt_cv_objdir
26960
26961
26962
26963
26964
26965cat >>confdefs.h <<_ACEOF
26966#define LT_OBJDIR "$lt_cv_objdir/"
26967_ACEOF
26968
26969
26970
26971
26972case $host_os in
26973aix3*)
26974  # AIX sometimes has problems with the GCC collect2 program.  For some
26975  # reason, if we set the COLLECT_NAMES environment variable, the problems
26976  # vanish in a puff of smoke.
26977  if test set != "${COLLECT_NAMES+set}"; then
26978    COLLECT_NAMES=
26979    export COLLECT_NAMES
26980  fi
26981  ;;
26982esac
26983
26984# Global variables:
26985ofile=libtool
26986can_build_shared=yes
26987
26988# All known linkers require a '.a' archive for static linking (except MSVC,
26989# which needs '.lib').
26990libext=a
26991
26992with_gnu_ld=$lt_cv_prog_gnu_ld
26993
26994old_CC=$CC
26995old_CFLAGS=$CFLAGS
26996
26997# Set sane defaults for various variables
26998test -z "$CC" && CC=cc
26999test -z "$LTCC" && LTCC=$CC
27000test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
27001test -z "$LD" && LD=ld
27002test -z "$ac_objext" && ac_objext=o
27003
27004func_cc_basename $compiler
27005cc_basename=$func_cc_basename_result
27006
27007
27008# Only perform the check for file, if the check method requires it
27009test -z "$MAGIC_CMD" && MAGIC_CMD=file
27010case $deplibs_check_method in
27011file_magic*)
27012  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
27013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
27014$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
27015if ${lt_cv_path_MAGIC_CMD+:} false; then :
27016  $as_echo_n "(cached) " >&6
27017else
27018  case $MAGIC_CMD in
27019[\\/*] |  ?:[\\/]*)
27020  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
27021  ;;
27022*)
27023  lt_save_MAGIC_CMD=$MAGIC_CMD
27024  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
27025  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
27026  for ac_dir in $ac_dummy; do
27027    IFS=$lt_save_ifs
27028    test -z "$ac_dir" && ac_dir=.
27029    if test -f "$ac_dir/${ac_tool_prefix}file"; then
27030      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
27031      if test -n "$file_magic_test_file"; then
27032	case $deplibs_check_method in
27033	"file_magic "*)
27034	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
27035	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
27036	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
27037	    $EGREP "$file_magic_regex" > /dev/null; then
27038	    :
27039	  else
27040	    cat <<_LT_EOF 1>&2
27041
27042*** Warning: the command libtool uses to detect shared libraries,
27043*** $file_magic_cmd, produces output that libtool cannot recognize.
27044*** The result is that libtool may fail to recognize shared libraries
27045*** as such.  This will affect the creation of libtool libraries that
27046*** depend on shared libraries, but programs linked with such libtool
27047*** libraries will work regardless of this problem.  Nevertheless, you
27048*** may want to report the problem to your system manager and/or to
27049*** bug-libtool@gnu.org
27050
27051_LT_EOF
27052	  fi ;;
27053	esac
27054      fi
27055      break
27056    fi
27057  done
27058  IFS=$lt_save_ifs
27059  MAGIC_CMD=$lt_save_MAGIC_CMD
27060  ;;
27061esac
27062fi
27063
27064MAGIC_CMD=$lt_cv_path_MAGIC_CMD
27065if test -n "$MAGIC_CMD"; then
27066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
27067$as_echo "$MAGIC_CMD" >&6; }
27068else
27069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27070$as_echo "no" >&6; }
27071fi
27072
27073
27074
27075
27076
27077if test -z "$lt_cv_path_MAGIC_CMD"; then
27078  if test -n "$ac_tool_prefix"; then
27079    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
27080$as_echo_n "checking for file... " >&6; }
27081if ${lt_cv_path_MAGIC_CMD+:} false; then :
27082  $as_echo_n "(cached) " >&6
27083else
27084  case $MAGIC_CMD in
27085[\\/*] |  ?:[\\/]*)
27086  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
27087  ;;
27088*)
27089  lt_save_MAGIC_CMD=$MAGIC_CMD
27090  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
27091  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
27092  for ac_dir in $ac_dummy; do
27093    IFS=$lt_save_ifs
27094    test -z "$ac_dir" && ac_dir=.
27095    if test -f "$ac_dir/file"; then
27096      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
27097      if test -n "$file_magic_test_file"; then
27098	case $deplibs_check_method in
27099	"file_magic "*)
27100	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
27101	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
27102	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
27103	    $EGREP "$file_magic_regex" > /dev/null; then
27104	    :
27105	  else
27106	    cat <<_LT_EOF 1>&2
27107
27108*** Warning: the command libtool uses to detect shared libraries,
27109*** $file_magic_cmd, produces output that libtool cannot recognize.
27110*** The result is that libtool may fail to recognize shared libraries
27111*** as such.  This will affect the creation of libtool libraries that
27112*** depend on shared libraries, but programs linked with such libtool
27113*** libraries will work regardless of this problem.  Nevertheless, you
27114*** may want to report the problem to your system manager and/or to
27115*** bug-libtool@gnu.org
27116
27117_LT_EOF
27118	  fi ;;
27119	esac
27120      fi
27121      break
27122    fi
27123  done
27124  IFS=$lt_save_ifs
27125  MAGIC_CMD=$lt_save_MAGIC_CMD
27126  ;;
27127esac
27128fi
27129
27130MAGIC_CMD=$lt_cv_path_MAGIC_CMD
27131if test -n "$MAGIC_CMD"; then
27132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
27133$as_echo "$MAGIC_CMD" >&6; }
27134else
27135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27136$as_echo "no" >&6; }
27137fi
27138
27139
27140  else
27141    MAGIC_CMD=:
27142  fi
27143fi
27144
27145  fi
27146  ;;
27147esac
27148
27149# Use C for the default configuration in the libtool script
27150
27151lt_save_CC=$CC
27152ac_ext=c
27153ac_cpp='$CPP $CPPFLAGS'
27154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27156ac_compiler_gnu=$ac_cv_c_compiler_gnu
27157
27158
27159# Source file extension for C test sources.
27160ac_ext=c
27161
27162# Object file extension for compiled C test sources.
27163objext=o
27164objext=$objext
27165
27166# Code to be used in simple compile tests
27167lt_simple_compile_test_code="int some_variable = 0;"
27168
27169# Code to be used in simple link tests
27170lt_simple_link_test_code='int main(){return(0);}'
27171
27172
27173
27174
27175
27176
27177
27178# If no C compiler was specified, use CC.
27179LTCC=${LTCC-"$CC"}
27180
27181# If no C compiler flags were specified, use CFLAGS.
27182LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27183
27184# Allow CC to be a program name with arguments.
27185compiler=$CC
27186
27187# Save the default compiler, since it gets overwritten when the other
27188# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
27189compiler_DEFAULT=$CC
27190
27191# save warnings/boilerplate of simple test code
27192ac_outfile=conftest.$ac_objext
27193echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27194eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27195_lt_compiler_boilerplate=`cat conftest.err`
27196$RM conftest*
27197
27198ac_outfile=conftest.$ac_objext
27199echo "$lt_simple_link_test_code" >conftest.$ac_ext
27200eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27201_lt_linker_boilerplate=`cat conftest.err`
27202$RM -r conftest*
27203
27204
27205## CAVEAT EMPTOR:
27206## There is no encapsulation within the following macros, do not change
27207## the running order or otherwise move them around unless you know exactly
27208## what you are doing...
27209if test -n "$compiler"; then
27210
27211lt_prog_compiler_no_builtin_flag=
27212
27213if test yes = "$GCC"; then
27214  case $cc_basename in
27215  nvcc*)
27216    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
27217  *)
27218    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
27219  esac
27220
27221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
27222$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
27223if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
27224  $as_echo_n "(cached) " >&6
27225else
27226  lt_cv_prog_compiler_rtti_exceptions=no
27227   ac_outfile=conftest.$ac_objext
27228   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
27229   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
27230   # Insert the option either (1) after the last *FLAGS variable, or
27231   # (2) before a word containing "conftest.", or (3) at the end.
27232   # Note that $ac_compile itself does not contain backslashes and begins
27233   # with a dollar sign (not a hyphen), so the echo should work correctly.
27234   # The option is referenced via a variable to avoid confusing sed.
27235   lt_compile=`echo "$ac_compile" | $SED \
27236   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27237   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27238   -e 's:$: $lt_compiler_flag:'`
27239   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
27240   (eval "$lt_compile" 2>conftest.err)
27241   ac_status=$?
27242   cat conftest.err >&5
27243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244   if (exit $ac_status) && test -s "$ac_outfile"; then
27245     # The compiler can only warn and ignore the option if not recognized
27246     # So say no if there are warnings other than the usual output.
27247     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
27248     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
27249     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
27250       lt_cv_prog_compiler_rtti_exceptions=yes
27251     fi
27252   fi
27253   $RM conftest*
27254
27255fi
27256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
27257$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
27258
27259if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
27260    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
27261else
27262    :
27263fi
27264
27265fi
27266
27267
27268
27269
27270
27271
27272  lt_prog_compiler_wl=
27273lt_prog_compiler_pic=
27274lt_prog_compiler_static=
27275
27276
27277  if test yes = "$GCC"; then
27278    lt_prog_compiler_wl='-Wl,'
27279    lt_prog_compiler_static='-static'
27280
27281    case $host_os in
27282      aix*)
27283      # All AIX code is PIC.
27284      if test ia64 = "$host_cpu"; then
27285	# AIX 5 now supports IA64 processor
27286	lt_prog_compiler_static='-Bstatic'
27287      fi
27288      lt_prog_compiler_pic='-fPIC'
27289      ;;
27290
27291    amigaos*)
27292      case $host_cpu in
27293      powerpc)
27294            # see comment about AmigaOS4 .so support
27295            lt_prog_compiler_pic='-fPIC'
27296        ;;
27297      m68k)
27298            # FIXME: we need at least 68020 code to build shared libraries, but
27299            # adding the '-m68020' flag to GCC prevents building anything better,
27300            # like '-m68040'.
27301            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
27302        ;;
27303      esac
27304      ;;
27305
27306    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
27307      # PIC is the default for these OSes.
27308      ;;
27309
27310    mingw* | cygwin* | pw32* | os2* | cegcc*)
27311      # This hack is so that the source file can tell whether it is being
27312      # built for inclusion in a dll (and should export symbols for example).
27313      # Although the cygwin gcc ignores -fPIC, still need this for old-style
27314      # (--disable-auto-import) libraries
27315      lt_prog_compiler_pic='-DDLL_EXPORT'
27316      case $host_os in
27317      os2*)
27318	lt_prog_compiler_static='$wl-static'
27319	;;
27320      esac
27321      ;;
27322
27323    darwin* | rhapsody*)
27324      # PIC is the default on this platform
27325      # Common symbols not allowed in MH_DYLIB files
27326      lt_prog_compiler_pic='-fno-common'
27327      ;;
27328
27329    haiku*)
27330      # PIC is the default for Haiku.
27331      # The "-static" flag exists, but is broken.
27332      lt_prog_compiler_static=
27333      ;;
27334
27335    hpux*)
27336      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
27337      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
27338      # sets the default TLS model and affects inlining.
27339      case $host_cpu in
27340      hppa*64*)
27341	# +Z the default
27342	;;
27343      *)
27344	lt_prog_compiler_pic='-fPIC'
27345	;;
27346      esac
27347      ;;
27348
27349    interix[3-9]*)
27350      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
27351      # Instead, we relocate shared libraries at runtime.
27352      ;;
27353
27354    msdosdjgpp*)
27355      # Just because we use GCC doesn't mean we suddenly get shared libraries
27356      # on systems that don't support them.
27357      lt_prog_compiler_can_build_shared=no
27358      enable_shared=no
27359      ;;
27360
27361    *nto* | *qnx*)
27362      # QNX uses GNU C++, but need to define -shared option too, otherwise
27363      # it will coredump.
27364      lt_prog_compiler_pic='-fPIC -shared'
27365      ;;
27366
27367    sysv4*MP*)
27368      if test -d /usr/nec; then
27369	lt_prog_compiler_pic=-Kconform_pic
27370      fi
27371      ;;
27372
27373    *)
27374      lt_prog_compiler_pic='-fPIC'
27375      ;;
27376    esac
27377
27378    case $cc_basename in
27379    nvcc*) # Cuda Compiler Driver 2.2
27380      lt_prog_compiler_wl='-Xlinker '
27381      if test -n "$lt_prog_compiler_pic"; then
27382        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
27383      fi
27384      ;;
27385    esac
27386  else
27387    # PORTME Check for flag to pass linker flags through the system compiler.
27388    case $host_os in
27389    aix*)
27390      lt_prog_compiler_wl='-Wl,'
27391      if test ia64 = "$host_cpu"; then
27392	# AIX 5 now supports IA64 processor
27393	lt_prog_compiler_static='-Bstatic'
27394      else
27395	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
27396      fi
27397      ;;
27398
27399    darwin* | rhapsody*)
27400      # PIC is the default on this platform
27401      # Common symbols not allowed in MH_DYLIB files
27402      lt_prog_compiler_pic='-fno-common'
27403      case $cc_basename in
27404      nagfor*)
27405        # NAG Fortran compiler
27406        lt_prog_compiler_wl='-Wl,-Wl,,'
27407        lt_prog_compiler_pic='-PIC'
27408        lt_prog_compiler_static='-Bstatic'
27409        ;;
27410      esac
27411      ;;
27412
27413    mingw* | cygwin* | pw32* | os2* | cegcc*)
27414      # This hack is so that the source file can tell whether it is being
27415      # built for inclusion in a dll (and should export symbols for example).
27416      lt_prog_compiler_pic='-DDLL_EXPORT'
27417      case $host_os in
27418      os2*)
27419	lt_prog_compiler_static='$wl-static'
27420	;;
27421      esac
27422      ;;
27423
27424    hpux9* | hpux10* | hpux11*)
27425      lt_prog_compiler_wl='-Wl,'
27426      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
27427      # not for PA HP-UX.
27428      case $host_cpu in
27429      hppa*64*|ia64*)
27430	# +Z the default
27431	;;
27432      *)
27433	lt_prog_compiler_pic='+Z'
27434	;;
27435      esac
27436      # Is there a better lt_prog_compiler_static that works with the bundled CC?
27437      lt_prog_compiler_static='$wl-a ${wl}archive'
27438      ;;
27439
27440    irix5* | irix6* | nonstopux*)
27441      lt_prog_compiler_wl='-Wl,'
27442      # PIC (with -KPIC) is the default.
27443      lt_prog_compiler_static='-non_shared'
27444      ;;
27445
27446    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
27447      case $cc_basename in
27448      # old Intel for x86_64, which still supported -KPIC.
27449      ecc*)
27450	lt_prog_compiler_wl='-Wl,'
27451	lt_prog_compiler_pic='-KPIC'
27452	lt_prog_compiler_static='-static'
27453        ;;
27454      # flang / f18. f95 an alias for gfortran or flang on Debian
27455      flang* | f18* | f95*)
27456	lt_prog_compiler_wl='-Wl,'
27457	lt_prog_compiler_pic='-fPIC'
27458	lt_prog_compiler_static='-static'
27459        ;;
27460      # icc used to be incompatible with GCC.
27461      # ICC 10 doesn't accept -KPIC any more.
27462      icc* | ifort*)
27463	lt_prog_compiler_wl='-Wl,'
27464	lt_prog_compiler_pic='-fPIC'
27465	lt_prog_compiler_static='-static'
27466        ;;
27467      # Lahey Fortran 8.1.
27468      lf95*)
27469	lt_prog_compiler_wl='-Wl,'
27470	lt_prog_compiler_pic='--shared'
27471	lt_prog_compiler_static='--static'
27472	;;
27473      nagfor*)
27474	# NAG Fortran compiler
27475	lt_prog_compiler_wl='-Wl,-Wl,,'
27476	lt_prog_compiler_pic='-PIC'
27477	lt_prog_compiler_static='-Bstatic'
27478	;;
27479      tcc*)
27480	# Fabrice Bellard et al's Tiny C Compiler
27481	lt_prog_compiler_wl='-Wl,'
27482	lt_prog_compiler_pic='-fPIC'
27483	lt_prog_compiler_static='-static'
27484	;;
27485      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
27486        # Portland Group compilers (*not* the Pentium gcc compiler,
27487	# which looks to be a dead project)
27488	lt_prog_compiler_wl='-Wl,'
27489	lt_prog_compiler_pic='-fpic'
27490	lt_prog_compiler_static='-Bstatic'
27491        ;;
27492      ccc*)
27493        lt_prog_compiler_wl='-Wl,'
27494        # All Alpha code is PIC.
27495        lt_prog_compiler_static='-non_shared'
27496        ;;
27497      xl* | bgxl* | bgf* | mpixl*)
27498	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
27499	lt_prog_compiler_wl='-Wl,'
27500	lt_prog_compiler_pic='-qpic'
27501	lt_prog_compiler_static='-qstaticlink'
27502	;;
27503      *)
27504	case `$CC -V 2>&1 | sed 5q` in
27505	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
27506	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
27507	  lt_prog_compiler_pic='-KPIC'
27508	  lt_prog_compiler_static='-Bstatic'
27509	  lt_prog_compiler_wl=''
27510	  ;;
27511	*Sun\ F* | *Sun*Fortran*)
27512	  lt_prog_compiler_pic='-KPIC'
27513	  lt_prog_compiler_static='-Bstatic'
27514	  lt_prog_compiler_wl='-Qoption ld '
27515	  ;;
27516	*Sun\ C*)
27517	  # Sun C 5.9
27518	  lt_prog_compiler_pic='-KPIC'
27519	  lt_prog_compiler_static='-Bstatic'
27520	  lt_prog_compiler_wl='-Wl,'
27521	  ;;
27522        *Intel*\ [CF]*Compiler*)
27523	  lt_prog_compiler_wl='-Wl,'
27524	  lt_prog_compiler_pic='-fPIC'
27525	  lt_prog_compiler_static='-static'
27526	  ;;
27527	*Portland\ Group*)
27528	  lt_prog_compiler_wl='-Wl,'
27529	  lt_prog_compiler_pic='-fpic'
27530	  lt_prog_compiler_static='-Bstatic'
27531	  ;;
27532	esac
27533	;;
27534      esac
27535      ;;
27536
27537    newsos6)
27538      lt_prog_compiler_pic='-KPIC'
27539      lt_prog_compiler_static='-Bstatic'
27540      ;;
27541
27542    *nto* | *qnx*)
27543      # QNX uses GNU C++, but need to define -shared option too, otherwise
27544      # it will coredump.
27545      lt_prog_compiler_pic='-fPIC -shared'
27546      ;;
27547
27548    osf3* | osf4* | osf5*)
27549      lt_prog_compiler_wl='-Wl,'
27550      # All OSF/1 code is PIC.
27551      lt_prog_compiler_static='-non_shared'
27552      ;;
27553
27554    rdos*)
27555      lt_prog_compiler_static='-non_shared'
27556      ;;
27557
27558    solaris*)
27559      lt_prog_compiler_pic='-KPIC'
27560      lt_prog_compiler_static='-Bstatic'
27561      case $cc_basename in
27562      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
27563	lt_prog_compiler_wl='-Qoption ld ';;
27564      *)
27565	lt_prog_compiler_wl='-Wl,';;
27566      esac
27567      ;;
27568
27569    sunos4*)
27570      lt_prog_compiler_wl='-Qoption ld '
27571      lt_prog_compiler_pic='-PIC'
27572      lt_prog_compiler_static='-Bstatic'
27573      ;;
27574
27575    sysv4 | sysv4.2uw2* | sysv4.3*)
27576      lt_prog_compiler_wl='-Wl,'
27577      lt_prog_compiler_pic='-KPIC'
27578      lt_prog_compiler_static='-Bstatic'
27579      ;;
27580
27581    sysv4*MP*)
27582      if test -d /usr/nec; then
27583	lt_prog_compiler_pic='-Kconform_pic'
27584	lt_prog_compiler_static='-Bstatic'
27585      fi
27586      ;;
27587
27588    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
27589      lt_prog_compiler_wl='-Wl,'
27590      lt_prog_compiler_pic='-KPIC'
27591      lt_prog_compiler_static='-Bstatic'
27592      ;;
27593
27594    unicos*)
27595      lt_prog_compiler_wl='-Wl,'
27596      lt_prog_compiler_can_build_shared=no
27597      ;;
27598
27599    uts4*)
27600      lt_prog_compiler_pic='-pic'
27601      lt_prog_compiler_static='-Bstatic'
27602      ;;
27603
27604    *)
27605      lt_prog_compiler_can_build_shared=no
27606      ;;
27607    esac
27608  fi
27609
27610case $host_os in
27611  # For platforms that do not support PIC, -DPIC is meaningless:
27612  *djgpp*)
27613    lt_prog_compiler_pic=
27614    ;;
27615  *)
27616    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
27617    ;;
27618esac
27619
27620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
27621$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
27622if ${lt_cv_prog_compiler_pic+:} false; then :
27623  $as_echo_n "(cached) " >&6
27624else
27625  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
27626fi
27627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
27628$as_echo "$lt_cv_prog_compiler_pic" >&6; }
27629lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
27630
27631#
27632# Check to make sure the PIC flag actually works.
27633#
27634if test -n "$lt_prog_compiler_pic"; then
27635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
27636$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
27637if ${lt_cv_prog_compiler_pic_works+:} false; then :
27638  $as_echo_n "(cached) " >&6
27639else
27640  lt_cv_prog_compiler_pic_works=no
27641   ac_outfile=conftest.$ac_objext
27642   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
27643   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
27644   # Insert the option either (1) after the last *FLAGS variable, or
27645   # (2) before a word containing "conftest.", or (3) at the end.
27646   # Note that $ac_compile itself does not contain backslashes and begins
27647   # with a dollar sign (not a hyphen), so the echo should work correctly.
27648   # The option is referenced via a variable to avoid confusing sed.
27649   lt_compile=`echo "$ac_compile" | $SED \
27650   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27651   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27652   -e 's:$: $lt_compiler_flag:'`
27653   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
27654   (eval "$lt_compile" 2>conftest.err)
27655   ac_status=$?
27656   cat conftest.err >&5
27657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658   if (exit $ac_status) && test -s "$ac_outfile"; then
27659     # The compiler can only warn and ignore the option if not recognized
27660     # So say no if there are warnings other than the usual output.
27661     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
27662     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
27663     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
27664       lt_cv_prog_compiler_pic_works=yes
27665     fi
27666   fi
27667   $RM conftest*
27668
27669fi
27670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
27671$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
27672
27673if test yes = "$lt_cv_prog_compiler_pic_works"; then
27674    case $lt_prog_compiler_pic in
27675     "" | " "*) ;;
27676     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
27677     esac
27678else
27679    lt_prog_compiler_pic=
27680     lt_prog_compiler_can_build_shared=no
27681fi
27682
27683fi
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695#
27696# Check to make sure the static flag actually works.
27697#
27698wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
27699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
27700$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
27701if ${lt_cv_prog_compiler_static_works+:} false; then :
27702  $as_echo_n "(cached) " >&6
27703else
27704  lt_cv_prog_compiler_static_works=no
27705   save_LDFLAGS=$LDFLAGS
27706   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
27707   echo "$lt_simple_link_test_code" > conftest.$ac_ext
27708   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
27709     # The linker can only warn and ignore the option if not recognized
27710     # So say no if there are warnings
27711     if test -s conftest.err; then
27712       # Append any errors to the config.log.
27713       cat conftest.err 1>&5
27714       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
27715       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
27716       if diff conftest.exp conftest.er2 >/dev/null; then
27717         lt_cv_prog_compiler_static_works=yes
27718       fi
27719     else
27720       lt_cv_prog_compiler_static_works=yes
27721     fi
27722   fi
27723   $RM -r conftest*
27724   LDFLAGS=$save_LDFLAGS
27725
27726fi
27727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
27728$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
27729
27730if test yes = "$lt_cv_prog_compiler_static_works"; then
27731    :
27732else
27733    lt_prog_compiler_static=
27734fi
27735
27736
27737
27738
27739
27740
27741
27742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
27743$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
27744if ${lt_cv_prog_compiler_c_o+:} false; then :
27745  $as_echo_n "(cached) " >&6
27746else
27747  lt_cv_prog_compiler_c_o=no
27748   $RM -r conftest 2>/dev/null
27749   mkdir conftest
27750   cd conftest
27751   mkdir out
27752   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
27753
27754   lt_compiler_flag="-o out/conftest2.$ac_objext"
27755   # Insert the option either (1) after the last *FLAGS variable, or
27756   # (2) before a word containing "conftest.", or (3) at the end.
27757   # Note that $ac_compile itself does not contain backslashes and begins
27758   # with a dollar sign (not a hyphen), so the echo should work correctly.
27759   lt_compile=`echo "$ac_compile" | $SED \
27760   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27761   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27762   -e 's:$: $lt_compiler_flag:'`
27763   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
27764   (eval "$lt_compile" 2>out/conftest.err)
27765   ac_status=$?
27766   cat out/conftest.err >&5
27767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768   if (exit $ac_status) && test -s out/conftest2.$ac_objext
27769   then
27770     # The compiler can only warn and ignore the option if not recognized
27771     # So say no if there are warnings
27772     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
27773     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
27774     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
27775       lt_cv_prog_compiler_c_o=yes
27776     fi
27777   fi
27778   chmod u+w . 2>&5
27779   $RM conftest*
27780   # SGI C++ compiler will create directory out/ii_files/ for
27781   # template instantiation
27782   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
27783   $RM out/* && rmdir out
27784   cd ..
27785   $RM -r conftest
27786   $RM conftest*
27787
27788fi
27789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
27790$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
27791
27792
27793
27794
27795
27796
27797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
27798$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
27799if ${lt_cv_prog_compiler_c_o+:} false; then :
27800  $as_echo_n "(cached) " >&6
27801else
27802  lt_cv_prog_compiler_c_o=no
27803   $RM -r conftest 2>/dev/null
27804   mkdir conftest
27805   cd conftest
27806   mkdir out
27807   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
27808
27809   lt_compiler_flag="-o out/conftest2.$ac_objext"
27810   # Insert the option either (1) after the last *FLAGS variable, or
27811   # (2) before a word containing "conftest.", or (3) at the end.
27812   # Note that $ac_compile itself does not contain backslashes and begins
27813   # with a dollar sign (not a hyphen), so the echo should work correctly.
27814   lt_compile=`echo "$ac_compile" | $SED \
27815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27817   -e 's:$: $lt_compiler_flag:'`
27818   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
27819   (eval "$lt_compile" 2>out/conftest.err)
27820   ac_status=$?
27821   cat out/conftest.err >&5
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   if (exit $ac_status) && test -s out/conftest2.$ac_objext
27824   then
27825     # The compiler can only warn and ignore the option if not recognized
27826     # So say no if there are warnings
27827     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
27828     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
27829     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
27830       lt_cv_prog_compiler_c_o=yes
27831     fi
27832   fi
27833   chmod u+w . 2>&5
27834   $RM conftest*
27835   # SGI C++ compiler will create directory out/ii_files/ for
27836   # template instantiation
27837   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
27838   $RM out/* && rmdir out
27839   cd ..
27840   $RM -r conftest
27841   $RM conftest*
27842
27843fi
27844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
27845$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
27846
27847
27848
27849
27850hard_links=nottested
27851if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
27852  # do not overwrite the value of need_locks provided by the user
27853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
27854$as_echo_n "checking if we can lock with hard links... " >&6; }
27855  hard_links=yes
27856  $RM conftest*
27857  ln conftest.a conftest.b 2>/dev/null && hard_links=no
27858  touch conftest.a
27859  ln conftest.a conftest.b 2>&5 || hard_links=no
27860  ln conftest.a conftest.b 2>/dev/null && hard_links=no
27861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
27862$as_echo "$hard_links" >&6; }
27863  if test no = "$hard_links"; then
27864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
27865$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
27866    need_locks=warn
27867  fi
27868else
27869  need_locks=no
27870fi
27871
27872
27873
27874
27875
27876
27877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27878$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
27879
27880  runpath_var=
27881  allow_undefined_flag=
27882  always_export_symbols=no
27883  archive_cmds=
27884  archive_expsym_cmds=
27885  compiler_needs_object=no
27886  enable_shared_with_static_runtimes=no
27887  export_dynamic_flag_spec=
27888  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
27889  hardcode_automatic=no
27890  hardcode_direct=no
27891  hardcode_direct_absolute=no
27892  hardcode_libdir_flag_spec=
27893  hardcode_libdir_separator=
27894  hardcode_minus_L=no
27895  hardcode_shlibpath_var=unsupported
27896  inherit_rpath=no
27897  link_all_deplibs=unknown
27898  module_cmds=
27899  module_expsym_cmds=
27900  old_archive_from_new_cmds=
27901  old_archive_from_expsyms_cmds=
27902  thread_safe_flag_spec=
27903  whole_archive_flag_spec=
27904  # include_expsyms should be a list of space-separated symbols to be *always*
27905  # included in the symbol list
27906  include_expsyms=
27907  # exclude_expsyms can be an extended regexp of symbols to exclude
27908  # it will be wrapped by ' (' and ')$', so one must not match beginning or
27909  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
27910  # as well as any symbol that contains 'd'.
27911  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
27912  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
27913  # platforms (ab)use it in PIC code, but their linkers get confused if
27914  # the symbol is explicitly referenced.  Since portable code cannot
27915  # rely on this symbol name, it's probably fine to never include it in
27916  # preloaded symbol tables.
27917  # Exclude shared library initialization/finalization symbols.
27918  extract_expsyms_cmds=
27919
27920  case $host_os in
27921  cygwin* | mingw* | pw32* | cegcc*)
27922    # FIXME: the MSVC++ port hasn't been tested in a loooong time
27923    # When not using gcc, we currently assume that we are using
27924    # Microsoft Visual C++.
27925    if test yes != "$GCC"; then
27926      with_gnu_ld=no
27927    fi
27928    ;;
27929  interix*)
27930    # we just hope/assume this is gcc and not c89 (= MSVC++)
27931    with_gnu_ld=yes
27932    ;;
27933  openbsd* | bitrig*)
27934    with_gnu_ld=no
27935    ;;
27936  linux* | k*bsd*-gnu | gnu*)
27937    link_all_deplibs=no
27938    ;;
27939  esac
27940
27941  ld_shlibs=yes
27942
27943  # On some targets, GNU ld is compatible enough with the native linker
27944  # that we're better off using the native interface for both.
27945  lt_use_gnu_ld_interface=no
27946  if test yes = "$with_gnu_ld"; then
27947    case $host_os in
27948      aix*)
27949	# The AIX port of GNU ld has always aspired to compatibility
27950	# with the native linker.  However, as the warning in the GNU ld
27951	# block says, versions before 2.19.5* couldn't really create working
27952	# shared libraries, regardless of the interface used.
27953	case `$LD -v 2>&1` in
27954	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
27955	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
27956	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
27957	  *)
27958	    lt_use_gnu_ld_interface=yes
27959	    ;;
27960	esac
27961	;;
27962      *)
27963	lt_use_gnu_ld_interface=yes
27964	;;
27965    esac
27966  fi
27967
27968  if test yes = "$lt_use_gnu_ld_interface"; then
27969    # If archive_cmds runs LD, not CC, wlarc should be empty
27970    wlarc='$wl'
27971
27972    # Set some defaults for GNU ld with shared library support. These
27973    # are reset later if shared libraries are not supported. Putting them
27974    # here allows them to be overridden if necessary.
27975    runpath_var=LD_RUN_PATH
27976    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
27977    export_dynamic_flag_spec='$wl--export-dynamic'
27978    # ancient GNU ld didn't support --whole-archive et. al.
27979    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
27980      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
27981    else
27982      whole_archive_flag_spec=
27983    fi
27984    supports_anon_versioning=no
27985    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
27986      *GNU\ gold*) supports_anon_versioning=yes ;;
27987      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
27988      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
27989      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
27990      *\ 2.11.*) ;; # other 2.11 versions
27991      *) supports_anon_versioning=yes ;;
27992    esac
27993
27994    # See if GNU ld supports shared libraries.
27995    case $host_os in
27996    aix[3-9]*)
27997      # On AIX/PPC, the GNU linker is very broken
27998      if test ia64 != "$host_cpu"; then
27999	ld_shlibs=no
28000	cat <<_LT_EOF 1>&2
28001
28002*** Warning: the GNU linker, at least up to release 2.19, is reported
28003*** to be unable to reliably create shared libraries on AIX.
28004*** Therefore, libtool is disabling shared libraries support.  If you
28005*** really care for shared libraries, you may want to install binutils
28006*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
28007*** You will then need to restart the configuration process.
28008
28009_LT_EOF
28010      fi
28011      ;;
28012
28013    amigaos*)
28014      case $host_cpu in
28015      powerpc)
28016            # see comment about AmigaOS4 .so support
28017            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28018            archive_expsym_cmds=''
28019        ;;
28020      m68k)
28021            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)'
28022            hardcode_libdir_flag_spec='-L$libdir'
28023            hardcode_minus_L=yes
28024        ;;
28025      esac
28026      ;;
28027
28028    beos*)
28029      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
28030	allow_undefined_flag=unsupported
28031	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
28032	# support --undefined.  This deserves some investigation.  FIXME
28033	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28034      else
28035	ld_shlibs=no
28036      fi
28037      ;;
28038
28039    cygwin* | mingw* | pw32* | cegcc*)
28040      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
28041      # as there is no search path for DLLs.
28042      hardcode_libdir_flag_spec='-L$libdir'
28043      export_dynamic_flag_spec='$wl--export-all-symbols'
28044      allow_undefined_flag=unsupported
28045      always_export_symbols=no
28046      enable_shared_with_static_runtimes=yes
28047      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'
28048      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
28049
28050      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
28051        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
28052	# If the export-symbols file already is a .def file, use it as
28053	# is; otherwise, prepend EXPORTS...
28054	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
28055          cp $export_symbols $output_objdir/$soname.def;
28056        else
28057          echo EXPORTS > $output_objdir/$soname.def;
28058          cat $export_symbols >> $output_objdir/$soname.def;
28059        fi~
28060        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
28061      else
28062	ld_shlibs=no
28063      fi
28064      ;;
28065
28066    haiku*)
28067      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28068      link_all_deplibs=yes
28069      ;;
28070
28071    os2*)
28072      hardcode_libdir_flag_spec='-L$libdir'
28073      hardcode_minus_L=yes
28074      allow_undefined_flag=unsupported
28075      shrext_cmds=.dll
28076      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
28077	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
28078	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
28079	$ECHO EXPORTS >> $output_objdir/$libname.def~
28080	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
28081	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
28082	emximp -o $lib $output_objdir/$libname.def'
28083      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
28084	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
28085	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
28086	$ECHO EXPORTS >> $output_objdir/$libname.def~
28087	prefix_cmds="$SED"~
28088	if test EXPORTS = "`$SED 1q $export_symbols`"; then
28089	  prefix_cmds="$prefix_cmds -e 1d";
28090	fi~
28091	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
28092	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
28093	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
28094	emximp -o $lib $output_objdir/$libname.def'
28095      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
28096      enable_shared_with_static_runtimes=yes
28097      ;;
28098
28099    interix[3-9]*)
28100      hardcode_direct=no
28101      hardcode_shlibpath_var=no
28102      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
28103      export_dynamic_flag_spec='$wl-E'
28104      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
28105      # Instead, shared libraries are loaded at an image base (0x10000000 by
28106      # default) and relocated if they conflict, which is a slow very memory
28107      # consuming and fragmenting process.  To avoid this, we pick a random,
28108      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
28109      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
28110      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
28111      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'
28112      ;;
28113
28114    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
28115      tmp_diet=no
28116      if test linux-dietlibc = "$host_os"; then
28117	case $cc_basename in
28118	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
28119	esac
28120      fi
28121      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
28122	 && test no = "$tmp_diet"
28123      then
28124	tmp_addflag=' $pic_flag'
28125	tmp_sharedflag='-shared'
28126	case $cc_basename,$host_cpu in
28127        pgcc*)				# Portland Group C compiler
28128	  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'
28129	  tmp_addflag=' $pic_flag'
28130	  ;;
28131	pgf77* | pgf90* | pgf95* | pgfortran*)
28132					# Portland Group f77 and f90 compilers
28133	  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'
28134	  tmp_addflag=' $pic_flag -Mnomain' ;;
28135	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
28136	  tmp_addflag=' -i_dynamic' ;;
28137	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
28138	  tmp_addflag=' -i_dynamic -nofor_main' ;;
28139	ifc* | ifort*)			# Intel Fortran compiler
28140	  tmp_addflag=' -nofor_main' ;;
28141	lf95*)				# Lahey Fortran 8.1
28142	  whole_archive_flag_spec=
28143	  tmp_sharedflag='--shared' ;;
28144        nagfor*)                        # NAGFOR 5.3
28145          tmp_sharedflag='-Wl,-shared' ;;
28146	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
28147	  tmp_sharedflag='-qmkshrobj'
28148	  tmp_addflag= ;;
28149	nvcc*)	# Cuda Compiler Driver 2.2
28150	  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'
28151	  compiler_needs_object=yes
28152	  ;;
28153	esac
28154	case `$CC -V 2>&1 | sed 5q` in
28155	*Sun\ C*)			# Sun C 5.9
28156	  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'
28157	  compiler_needs_object=yes
28158	  tmp_sharedflag='-G' ;;
28159	*Sun\ F*)			# Sun Fortran 8.3
28160	  tmp_sharedflag='-G' ;;
28161	esac
28162	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28163
28164        if test yes = "$supports_anon_versioning"; then
28165          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
28166            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28167            echo "local: *; };" >> $output_objdir/$libname.ver~
28168            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
28169        fi
28170
28171	case $cc_basename in
28172	tcc*)
28173	  export_dynamic_flag_spec='-rdynamic'
28174	  ;;
28175	xlf* | bgf* | bgxlf* | mpixlf*)
28176	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
28177	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
28178	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
28179	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
28180	  if test yes = "$supports_anon_versioning"; then
28181	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
28182              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28183              echo "local: *; };" >> $output_objdir/$libname.ver~
28184              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
28185	  fi
28186	  ;;
28187	esac
28188      else
28189        ld_shlibs=no
28190      fi
28191      ;;
28192
28193    netbsd* | netbsdelf*-gnu)
28194      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
28195	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
28196	wlarc=
28197      else
28198	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28199	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
28200      fi
28201      ;;
28202
28203    solaris*)
28204      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
28205	ld_shlibs=no
28206	cat <<_LT_EOF 1>&2
28207
28208*** Warning: The releases 2.8.* of the GNU linker cannot reliably
28209*** create shared libraries on Solaris systems.  Therefore, libtool
28210*** is disabling shared libraries support.  We urge you to upgrade GNU
28211*** binutils to release 2.9.1 or newer.  Another option is to modify
28212*** your PATH or compiler configuration so that the native linker is
28213*** used, and then restart.
28214
28215_LT_EOF
28216      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
28217	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28218	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
28219      else
28220	ld_shlibs=no
28221      fi
28222      ;;
28223
28224    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
28225      case `$LD -v 2>&1` in
28226        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
28227	ld_shlibs=no
28228	cat <<_LT_EOF 1>&2
28229
28230*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
28231*** reliably create shared libraries on SCO systems.  Therefore, libtool
28232*** is disabling shared libraries support.  We urge you to upgrade GNU
28233*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
28234*** your PATH or compiler configuration so that the native linker is
28235*** used, and then restart.
28236
28237_LT_EOF
28238	;;
28239	*)
28240	  # For security reasons, it is highly recommended that you always
28241	  # use absolute paths for naming shared libraries, and exclude the
28242	  # DT_RUNPATH tag from executables and libraries.  But doing so
28243	  # requires that you compile everything twice, which is a pain.
28244	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
28245	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
28246	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28247	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
28248	  else
28249	    ld_shlibs=no
28250	  fi
28251	;;
28252      esac
28253      ;;
28254
28255    sunos4*)
28256      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28257      wlarc=
28258      hardcode_direct=yes
28259      hardcode_shlibpath_var=no
28260      ;;
28261
28262    *)
28263      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
28264	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28265	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
28266      else
28267	ld_shlibs=no
28268      fi
28269      ;;
28270    esac
28271
28272    if test no = "$ld_shlibs"; then
28273      runpath_var=
28274      hardcode_libdir_flag_spec=
28275      export_dynamic_flag_spec=
28276      whole_archive_flag_spec=
28277    fi
28278  else
28279    # PORTME fill in a description of your system's linker (not GNU ld)
28280    case $host_os in
28281    aix3*)
28282      allow_undefined_flag=unsupported
28283      always_export_symbols=yes
28284      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'
28285      # Note: this linker hardcodes the directories in LIBPATH if there
28286      # are no directories specified by -L.
28287      hardcode_minus_L=yes
28288      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
28289	# Neither direct hardcoding nor static linking is supported with a
28290	# broken collect2.
28291	hardcode_direct=unsupported
28292      fi
28293      ;;
28294
28295    aix[4-9]*)
28296      if test ia64 = "$host_cpu"; then
28297	# On IA64, the linker does run time linking by default, so we don't
28298	# have to do anything special.
28299	aix_use_runtimelinking=no
28300	exp_sym_flag='-Bexport'
28301	no_entry_flag=
28302      else
28303	# If we're using GNU nm, then we don't want the "-C" option.
28304	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
28305	# Without the "-l" option, or with the "-B" option, AIX nm treats
28306	# weak defined symbols like other global defined symbols, whereas
28307	# GNU nm marks them as "W".
28308	# While the 'weak' keyword is ignored in the Export File, we need
28309	# it in the Import File for the 'aix-soname' feature, so we have
28310	# to replace the "-B" option with "-P" for AIX nm.
28311	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
28312	  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'
28313	else
28314	  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'
28315	fi
28316	aix_use_runtimelinking=no
28317
28318	# Test if we are trying to use run time linking or normal
28319	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
28320	# have runtime linking enabled, and use it for executables.
28321	# For shared libraries, we enable/disable runtime linking
28322	# depending on the kind of the shared library created -
28323	# when "with_aix_soname,aix_use_runtimelinking" is:
28324	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
28325	# "aix,yes"  lib.so          shared, rtl:yes, for executables
28326	#            lib.a           static archive
28327	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
28328	#            lib.a(lib.so.V) shared, rtl:no,  for executables
28329	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
28330	#            lib.a(lib.so.V) shared, rtl:no
28331	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
28332	#            lib.a           static archive
28333	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
28334	  for ld_flag in $LDFLAGS; do
28335	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
28336	    aix_use_runtimelinking=yes
28337	    break
28338	  fi
28339	  done
28340	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
28341	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
28342	    # so we don't have lib.a shared libs to link our executables.
28343	    # We have to force runtime linking in this case.
28344	    aix_use_runtimelinking=yes
28345	    LDFLAGS="$LDFLAGS -Wl,-brtl"
28346	  fi
28347	  ;;
28348	esac
28349
28350	exp_sym_flag='-bexport'
28351	no_entry_flag='-bnoentry'
28352      fi
28353
28354      # When large executables or shared objects are built, AIX ld can
28355      # have problems creating the table of contents.  If linking a library
28356      # or program results in "error TOC overflow" add -mminimal-toc to
28357      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
28358      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
28359
28360      archive_cmds=''
28361      hardcode_direct=yes
28362      hardcode_direct_absolute=yes
28363      hardcode_libdir_separator=':'
28364      link_all_deplibs=yes
28365      file_list_spec='$wl-f,'
28366      case $with_aix_soname,$aix_use_runtimelinking in
28367      aix,*) ;; # traditional, no import file
28368      svr4,* | *,yes) # use import file
28369	# The Import File defines what to hardcode.
28370	hardcode_direct=no
28371	hardcode_direct_absolute=no
28372	;;
28373      esac
28374
28375      if test yes = "$GCC"; then
28376	case $host_os in aix4.[012]|aix4.[012].*)
28377	# We only want to do this on AIX 4.2 and lower, the check
28378	# below for broken collect2 doesn't work under 4.3+
28379	  collect2name=`$CC -print-prog-name=collect2`
28380	  if test -f "$collect2name" &&
28381	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
28382	  then
28383	  # We have reworked collect2
28384	  :
28385	  else
28386	  # We have old collect2
28387	  hardcode_direct=unsupported
28388	  # It fails to find uninstalled libraries when the uninstalled
28389	  # path is not listed in the libpath.  Setting hardcode_minus_L
28390	  # to unsupported forces relinking
28391	  hardcode_minus_L=yes
28392	  hardcode_libdir_flag_spec='-L$libdir'
28393	  hardcode_libdir_separator=
28394	  fi
28395	  ;;
28396	esac
28397	shared_flag='-shared'
28398	if test yes = "$aix_use_runtimelinking"; then
28399	  shared_flag="$shared_flag "'$wl-G'
28400	fi
28401	# Need to ensure runtime linking is disabled for the traditional
28402	# shared library, or the linker may eventually find shared libraries
28403	# /with/ Import File - we do not want to mix them.
28404	shared_flag_aix='-shared'
28405	shared_flag_svr4='-shared $wl-G'
28406      else
28407	# not using gcc
28408	if test ia64 = "$host_cpu"; then
28409	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
28410	# chokes on -Wl,-G. The following line is correct:
28411	  shared_flag='-G'
28412	else
28413	  if test yes = "$aix_use_runtimelinking"; then
28414	    shared_flag='$wl-G'
28415	  else
28416	    shared_flag='$wl-bM:SRE'
28417	  fi
28418	  shared_flag_aix='$wl-bM:SRE'
28419	  shared_flag_svr4='$wl-G'
28420	fi
28421      fi
28422
28423      export_dynamic_flag_spec='$wl-bexpall'
28424      # It seems that -bexpall does not export symbols beginning with
28425      # underscore (_), so it is better to generate a list of symbols to export.
28426      always_export_symbols=yes
28427      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
28428	# Warning - without using the other runtime loading flags (-brtl),
28429	# -berok will link without error, but may produce a broken library.
28430	allow_undefined_flag='-berok'
28431        # Determine the default libpath from the value encoded in an
28432        # empty executable.
28433        if test set = "${lt_cv_aix_libpath+set}"; then
28434  aix_libpath=$lt_cv_aix_libpath
28435else
28436  if ${lt_cv_aix_libpath_+:} false; then :
28437  $as_echo_n "(cached) " >&6
28438else
28439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440/* end confdefs.h.  */
28441
28442int
28443main ()
28444{
28445
28446  ;
28447  return 0;
28448}
28449_ACEOF
28450if ac_fn_c_try_link "$LINENO"; then :
28451
28452  lt_aix_libpath_sed='
28453      /Import File Strings/,/^$/ {
28454	  /^0/ {
28455	      s/^0  *\([^ ]*\) *$/\1/
28456	      p
28457	  }
28458      }'
28459  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
28460  # Check for a 64-bit object if we didn't find anything.
28461  if test -z "$lt_cv_aix_libpath_"; then
28462    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
28463  fi
28464fi
28465rm -f core conftest.err conftest.$ac_objext \
28466    conftest$ac_exeext conftest.$ac_ext
28467  if test -z "$lt_cv_aix_libpath_"; then
28468    lt_cv_aix_libpath_=/usr/lib:/lib
28469  fi
28470
28471fi
28472
28473  aix_libpath=$lt_cv_aix_libpath_
28474fi
28475
28476        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
28477        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
28478      else
28479	if test ia64 = "$host_cpu"; then
28480	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
28481	  allow_undefined_flag="-z nodefs"
28482	  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"
28483	else
28484	 # Determine the default libpath from the value encoded in an
28485	 # empty executable.
28486	 if test set = "${lt_cv_aix_libpath+set}"; then
28487  aix_libpath=$lt_cv_aix_libpath
28488else
28489  if ${lt_cv_aix_libpath_+:} false; then :
28490  $as_echo_n "(cached) " >&6
28491else
28492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28493/* end confdefs.h.  */
28494
28495int
28496main ()
28497{
28498
28499  ;
28500  return 0;
28501}
28502_ACEOF
28503if ac_fn_c_try_link "$LINENO"; then :
28504
28505  lt_aix_libpath_sed='
28506      /Import File Strings/,/^$/ {
28507	  /^0/ {
28508	      s/^0  *\([^ ]*\) *$/\1/
28509	      p
28510	  }
28511      }'
28512  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
28513  # Check for a 64-bit object if we didn't find anything.
28514  if test -z "$lt_cv_aix_libpath_"; then
28515    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
28516  fi
28517fi
28518rm -f core conftest.err conftest.$ac_objext \
28519    conftest$ac_exeext conftest.$ac_ext
28520  if test -z "$lt_cv_aix_libpath_"; then
28521    lt_cv_aix_libpath_=/usr/lib:/lib
28522  fi
28523
28524fi
28525
28526  aix_libpath=$lt_cv_aix_libpath_
28527fi
28528
28529	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
28530	  # Warning - without using the other run time loading flags,
28531	  # -berok will link without error, but may produce a broken library.
28532	  no_undefined_flag=' $wl-bernotok'
28533	  allow_undefined_flag=' $wl-berok'
28534	  if test yes = "$with_gnu_ld"; then
28535	    # We only use this code for GNU lds that support --whole-archive.
28536	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
28537	  else
28538	    # Exported symbols can be pulled into shared objects from archives
28539	    whole_archive_flag_spec='$convenience'
28540	  fi
28541	  archive_cmds_need_lc=yes
28542	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
28543	  # -brtl affects multiple linker settings, -berok does not and is overridden later
28544	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
28545	  if test svr4 != "$with_aix_soname"; then
28546	    # This is similar to how AIX traditionally builds its shared libraries.
28547	    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'
28548	  fi
28549	  if test aix != "$with_aix_soname"; then
28550	    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'
28551	  else
28552	    # used by -dlpreopen to get the symbols
28553	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
28554	  fi
28555	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
28556	fi
28557      fi
28558      ;;
28559
28560    amigaos*)
28561      case $host_cpu in
28562      powerpc)
28563            # see comment about AmigaOS4 .so support
28564            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28565            archive_expsym_cmds=''
28566        ;;
28567      m68k)
28568            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)'
28569            hardcode_libdir_flag_spec='-L$libdir'
28570            hardcode_minus_L=yes
28571        ;;
28572      esac
28573      ;;
28574
28575    bsdi[45]*)
28576      export_dynamic_flag_spec=-rdynamic
28577      ;;
28578
28579    cygwin* | mingw* | pw32* | cegcc*)
28580      # When not using gcc, we currently assume that we are using
28581      # Microsoft Visual C++.
28582      # hardcode_libdir_flag_spec is actually meaningless, as there is
28583      # no search path for DLLs.
28584      case $cc_basename in
28585      cl*)
28586	# Native MSVC
28587	hardcode_libdir_flag_spec=' '
28588	allow_undefined_flag=unsupported
28589	always_export_symbols=yes
28590	file_list_spec='@'
28591	# Tell ltmain to make .lib files, not .a files.
28592	libext=lib
28593	# Tell ltmain to make .dll files, not .so files.
28594	shrext_cmds=.dll
28595	# FIXME: Setting linknames here is a bad hack.
28596	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
28597	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
28598            cp "$export_symbols" "$output_objdir/$soname.def";
28599            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
28600          else
28601            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
28602          fi~
28603          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
28604          linknames='
28605	# The linker will not automatically build a static lib if we build a DLL.
28606	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
28607	enable_shared_with_static_runtimes=yes
28608	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
28609	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
28610	# Don't use ranlib
28611	old_postinstall_cmds='chmod 644 $oldlib'
28612	postlink_cmds='lt_outputfile="@OUTPUT@"~
28613          lt_tool_outputfile="@TOOL_OUTPUT@"~
28614          case $lt_outputfile in
28615            *.exe|*.EXE) ;;
28616            *)
28617              lt_outputfile=$lt_outputfile.exe
28618              lt_tool_outputfile=$lt_tool_outputfile.exe
28619              ;;
28620          esac~
28621          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
28622            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
28623            $RM "$lt_outputfile.manifest";
28624          fi'
28625	;;
28626      *)
28627	# Assume MSVC wrapper
28628	hardcode_libdir_flag_spec=' '
28629	allow_undefined_flag=unsupported
28630	# Tell ltmain to make .lib files, not .a files.
28631	libext=lib
28632	# Tell ltmain to make .dll files, not .so files.
28633	shrext_cmds=.dll
28634	# FIXME: Setting linknames here is a bad hack.
28635	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
28636	# The linker will automatically build a .lib file if we build a DLL.
28637	old_archive_from_new_cmds='true'
28638	# FIXME: Should let the user specify the lib program.
28639	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
28640	enable_shared_with_static_runtimes=yes
28641	;;
28642      esac
28643      ;;
28644
28645    darwin* | rhapsody*)
28646
28647
28648  archive_cmds_need_lc=no
28649  hardcode_direct=no
28650  hardcode_automatic=yes
28651  hardcode_shlibpath_var=unsupported
28652  if test yes = "$lt_cv_ld_force_load"; then
28653    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\"`'
28654
28655  else
28656    whole_archive_flag_spec=''
28657  fi
28658  link_all_deplibs=yes
28659  allow_undefined_flag=$_lt_dar_allow_undefined
28660  case $cc_basename in
28661     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
28662     *) _lt_dar_can_shared=$GCC ;;
28663  esac
28664  if test yes = "$_lt_dar_can_shared"; then
28665    output_verbose_link_cmd=func_echo_all
28666    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
28667    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
28668    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"
28669    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"
28670
28671  else
28672  ld_shlibs=no
28673  fi
28674
28675      ;;
28676
28677    dgux*)
28678      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28679      hardcode_libdir_flag_spec='-L$libdir'
28680      hardcode_shlibpath_var=no
28681      ;;
28682
28683    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
28684    # support.  Future versions do this automatically, but an explicit c++rt0.o
28685    # does not break anything, and helps significantly (at the cost of a little
28686    # extra space).
28687    freebsd2.2*)
28688      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
28689      hardcode_libdir_flag_spec='-R$libdir'
28690      hardcode_direct=yes
28691      hardcode_shlibpath_var=no
28692      ;;
28693
28694    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
28695    freebsd2.*)
28696      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28697      hardcode_direct=yes
28698      hardcode_minus_L=yes
28699      hardcode_shlibpath_var=no
28700      ;;
28701
28702    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
28703    freebsd* | dragonfly*)
28704      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28705      hardcode_libdir_flag_spec='-R$libdir'
28706      hardcode_direct=yes
28707      hardcode_shlibpath_var=no
28708      ;;
28709
28710    hpux9*)
28711      if test yes = "$GCC"; then
28712	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'
28713      else
28714	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'
28715      fi
28716      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
28717      hardcode_libdir_separator=:
28718      hardcode_direct=yes
28719
28720      # hardcode_minus_L: Not really in the search PATH,
28721      # but as the default location of the library.
28722      hardcode_minus_L=yes
28723      export_dynamic_flag_spec='$wl-E'
28724      ;;
28725
28726    hpux10*)
28727      if test yes,no = "$GCC,$with_gnu_ld"; then
28728	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28729      else
28730	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
28731      fi
28732      if test no = "$with_gnu_ld"; then
28733	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
28734	hardcode_libdir_separator=:
28735	hardcode_direct=yes
28736	hardcode_direct_absolute=yes
28737	export_dynamic_flag_spec='$wl-E'
28738	# hardcode_minus_L: Not really in the search PATH,
28739	# but as the default location of the library.
28740	hardcode_minus_L=yes
28741      fi
28742      ;;
28743
28744    hpux11*)
28745      if test yes,no = "$GCC,$with_gnu_ld"; then
28746	case $host_cpu in
28747	hppa*64*)
28748	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
28749	  ;;
28750	ia64*)
28751	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
28752	  ;;
28753	*)
28754	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28755	  ;;
28756	esac
28757      else
28758	case $host_cpu in
28759	hppa*64*)
28760	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
28761	  ;;
28762	ia64*)
28763	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
28764	  ;;
28765	*)
28766
28767	  # Older versions of the 11.00 compiler do not understand -b yet
28768	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
28769	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
28770$as_echo_n "checking if $CC understands -b... " >&6; }
28771if ${lt_cv_prog_compiler__b+:} false; then :
28772  $as_echo_n "(cached) " >&6
28773else
28774  lt_cv_prog_compiler__b=no
28775   save_LDFLAGS=$LDFLAGS
28776   LDFLAGS="$LDFLAGS -b"
28777   echo "$lt_simple_link_test_code" > conftest.$ac_ext
28778   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
28779     # The linker can only warn and ignore the option if not recognized
28780     # So say no if there are warnings
28781     if test -s conftest.err; then
28782       # Append any errors to the config.log.
28783       cat conftest.err 1>&5
28784       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
28785       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
28786       if diff conftest.exp conftest.er2 >/dev/null; then
28787         lt_cv_prog_compiler__b=yes
28788       fi
28789     else
28790       lt_cv_prog_compiler__b=yes
28791     fi
28792   fi
28793   $RM -r conftest*
28794   LDFLAGS=$save_LDFLAGS
28795
28796fi
28797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
28798$as_echo "$lt_cv_prog_compiler__b" >&6; }
28799
28800if test yes = "$lt_cv_prog_compiler__b"; then
28801    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28802else
28803    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
28804fi
28805
28806	  ;;
28807	esac
28808      fi
28809      if test no = "$with_gnu_ld"; then
28810	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
28811	hardcode_libdir_separator=:
28812
28813	case $host_cpu in
28814	hppa*64*|ia64*)
28815	  hardcode_direct=no
28816	  hardcode_shlibpath_var=no
28817	  ;;
28818	*)
28819	  hardcode_direct=yes
28820	  hardcode_direct_absolute=yes
28821	  export_dynamic_flag_spec='$wl-E'
28822
28823	  # hardcode_minus_L: Not really in the search PATH,
28824	  # but as the default location of the library.
28825	  hardcode_minus_L=yes
28826	  ;;
28827	esac
28828      fi
28829      ;;
28830
28831    irix5* | irix6* | nonstopux*)
28832      if test yes = "$GCC"; then
28833	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'
28834	# Try to use the -exported_symbol ld option, if it does not
28835	# work, assume that -exports_file does not work either and
28836	# implicitly export all symbols.
28837	# This should be the same for all languages, so no per-tag cache variable.
28838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
28839$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
28840if ${lt_cv_irix_exported_symbol+:} false; then :
28841  $as_echo_n "(cached) " >&6
28842else
28843  save_LDFLAGS=$LDFLAGS
28844	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
28845	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846/* end confdefs.h.  */
28847int foo (void) { return 0; }
28848_ACEOF
28849if ac_fn_c_try_link "$LINENO"; then :
28850  lt_cv_irix_exported_symbol=yes
28851else
28852  lt_cv_irix_exported_symbol=no
28853fi
28854rm -f core conftest.err conftest.$ac_objext \
28855    conftest$ac_exeext conftest.$ac_ext
28856           LDFLAGS=$save_LDFLAGS
28857fi
28858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
28859$as_echo "$lt_cv_irix_exported_symbol" >&6; }
28860	if test yes = "$lt_cv_irix_exported_symbol"; then
28861          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'
28862	fi
28863	link_all_deplibs=no
28864      else
28865	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'
28866	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'
28867      fi
28868      archive_cmds_need_lc='no'
28869      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
28870      hardcode_libdir_separator=:
28871      inherit_rpath=yes
28872      link_all_deplibs=yes
28873      ;;
28874
28875    linux*)
28876      case $cc_basename in
28877      tcc*)
28878	# Fabrice Bellard et al's Tiny C Compiler
28879	ld_shlibs=yes
28880	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28881	;;
28882      esac
28883      ;;
28884
28885    netbsd* | netbsdelf*-gnu)
28886      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
28887	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
28888      else
28889	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
28890      fi
28891      hardcode_libdir_flag_spec='-R$libdir'
28892      hardcode_direct=yes
28893      hardcode_shlibpath_var=no
28894      ;;
28895
28896    newsos6)
28897      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28898      hardcode_direct=yes
28899      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
28900      hardcode_libdir_separator=:
28901      hardcode_shlibpath_var=no
28902      ;;
28903
28904    *nto* | *qnx*)
28905      ;;
28906
28907    openbsd* | bitrig*)
28908      if test -f /usr/libexec/ld.so; then
28909	hardcode_direct=yes
28910	hardcode_shlibpath_var=no
28911	hardcode_direct_absolute=yes
28912	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
28913	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28914	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
28915	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
28916	  export_dynamic_flag_spec='$wl-E'
28917	else
28918	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28919	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
28920	fi
28921      else
28922	ld_shlibs=no
28923      fi
28924      ;;
28925
28926    os2*)
28927      hardcode_libdir_flag_spec='-L$libdir'
28928      hardcode_minus_L=yes
28929      allow_undefined_flag=unsupported
28930      shrext_cmds=.dll
28931      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
28932	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
28933	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
28934	$ECHO EXPORTS >> $output_objdir/$libname.def~
28935	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
28936	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
28937	emximp -o $lib $output_objdir/$libname.def'
28938      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
28939	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
28940	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
28941	$ECHO EXPORTS >> $output_objdir/$libname.def~
28942	prefix_cmds="$SED"~
28943	if test EXPORTS = "`$SED 1q $export_symbols`"; then
28944	  prefix_cmds="$prefix_cmds -e 1d";
28945	fi~
28946	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
28947	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
28948	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
28949	emximp -o $lib $output_objdir/$libname.def'
28950      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
28951      enable_shared_with_static_runtimes=yes
28952      ;;
28953
28954    osf3*)
28955      if test yes = "$GCC"; then
28956	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
28957	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'
28958      else
28959	allow_undefined_flag=' -expect_unresolved \*'
28960	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'
28961      fi
28962      archive_cmds_need_lc='no'
28963      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
28964      hardcode_libdir_separator=:
28965      ;;
28966
28967    osf4* | osf5*)	# as osf3* with the addition of -msym flag
28968      if test yes = "$GCC"; then
28969	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
28970	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'
28971	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
28972      else
28973	allow_undefined_flag=' -expect_unresolved \*'
28974	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'
28975	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~
28976          $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'
28977
28978	# Both c and cxx compiler support -rpath directly
28979	hardcode_libdir_flag_spec='-rpath $libdir'
28980      fi
28981      archive_cmds_need_lc='no'
28982      hardcode_libdir_separator=:
28983      ;;
28984
28985    solaris*)
28986      no_undefined_flag=' -z defs'
28987      if test yes = "$GCC"; then
28988	wlarc='$wl'
28989	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
28990	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28991          $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'
28992      else
28993	case `$CC -V 2>&1` in
28994	*"Compilers 5.0"*)
28995	  wlarc=''
28996	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
28997	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28998            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
28999	  ;;
29000	*)
29001	  wlarc='$wl'
29002	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
29003	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
29004            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
29005	  ;;
29006	esac
29007      fi
29008      hardcode_libdir_flag_spec='-R$libdir'
29009      hardcode_shlibpath_var=no
29010      case $host_os in
29011      solaris2.[0-5] | solaris2.[0-5].*) ;;
29012      *)
29013	# The compiler driver will combine and reorder linker options,
29014	# but understands '-z linker_flag'.  GCC discards it without '$wl',
29015	# but is careful enough not to reorder.
29016	# Supported since Solaris 2.6 (maybe 2.5.1?)
29017	if test yes = "$GCC"; then
29018	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
29019	else
29020	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
29021	fi
29022	;;
29023      esac
29024      link_all_deplibs=yes
29025      ;;
29026
29027    sunos4*)
29028      if test sequent = "$host_vendor"; then
29029	# Use $CC to link under sequent, because it throws in some extra .o
29030	# files that make .init and .fini sections work.
29031	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
29032      else
29033	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
29034      fi
29035      hardcode_libdir_flag_spec='-L$libdir'
29036      hardcode_direct=yes
29037      hardcode_minus_L=yes
29038      hardcode_shlibpath_var=no
29039      ;;
29040
29041    sysv4)
29042      case $host_vendor in
29043	sni)
29044	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29045	  hardcode_direct=yes # is this really true???
29046	;;
29047	siemens)
29048	  ## LD is ld it makes a PLAMLIB
29049	  ## CC just makes a GrossModule.
29050	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
29051	  reload_cmds='$CC -r -o $output$reload_objs'
29052	  hardcode_direct=no
29053        ;;
29054	motorola)
29055	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29056	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
29057	;;
29058      esac
29059      runpath_var='LD_RUN_PATH'
29060      hardcode_shlibpath_var=no
29061      ;;
29062
29063    sysv4.3*)
29064      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29065      hardcode_shlibpath_var=no
29066      export_dynamic_flag_spec='-Bexport'
29067      ;;
29068
29069    sysv4*MP*)
29070      if test -d /usr/nec; then
29071	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29072	hardcode_shlibpath_var=no
29073	runpath_var=LD_RUN_PATH
29074	hardcode_runpath_var=yes
29075	ld_shlibs=yes
29076      fi
29077      ;;
29078
29079    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
29080      no_undefined_flag='$wl-z,text'
29081      archive_cmds_need_lc=no
29082      hardcode_shlibpath_var=no
29083      runpath_var='LD_RUN_PATH'
29084
29085      if test yes = "$GCC"; then
29086	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29087	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29088      else
29089	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29090	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29091      fi
29092      ;;
29093
29094    sysv5* | sco3.2v5* | sco5v6*)
29095      # Note: We CANNOT use -z defs as we might desire, because we do not
29096      # link with -lc, and that would cause any symbols used from libc to
29097      # always be unresolved, which means just about no library would
29098      # ever link correctly.  If we're not using GNU ld we use -z text
29099      # though, which does catch some bad symbols but isn't as heavy-handed
29100      # as -z defs.
29101      no_undefined_flag='$wl-z,text'
29102      allow_undefined_flag='$wl-z,nodefs'
29103      archive_cmds_need_lc=no
29104      hardcode_shlibpath_var=no
29105      hardcode_libdir_flag_spec='$wl-R,$libdir'
29106      hardcode_libdir_separator=':'
29107      link_all_deplibs=yes
29108      export_dynamic_flag_spec='$wl-Bexport'
29109      runpath_var='LD_RUN_PATH'
29110
29111      if test yes = "$GCC"; then
29112	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29113	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29114      else
29115	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29116	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29117      fi
29118      ;;
29119
29120    uts4*)
29121      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29122      hardcode_libdir_flag_spec='-L$libdir'
29123      hardcode_shlibpath_var=no
29124      ;;
29125
29126    *)
29127      ld_shlibs=no
29128      ;;
29129    esac
29130
29131    if test sni = "$host_vendor"; then
29132      case $host in
29133      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
29134	export_dynamic_flag_spec='$wl-Blargedynsym'
29135	;;
29136      esac
29137    fi
29138  fi
29139
29140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
29141$as_echo "$ld_shlibs" >&6; }
29142test no = "$ld_shlibs" && can_build_shared=no
29143
29144with_gnu_ld=$with_gnu_ld
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160#
29161# Do we need to explicitly link libc?
29162#
29163case "x$archive_cmds_need_lc" in
29164x|xyes)
29165  # Assume -lc should be added
29166  archive_cmds_need_lc=yes
29167
29168  if test yes,yes = "$GCC,$enable_shared"; then
29169    case $archive_cmds in
29170    *'~'*)
29171      # FIXME: we may have to deal with multi-command sequences.
29172      ;;
29173    '$CC '*)
29174      # Test whether the compiler implicitly links with -lc since on some
29175      # systems, -lgcc has to come before -lc. If gcc already passes -lc
29176      # to ld, don't add -lc before -lgcc.
29177      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
29178$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
29179if ${lt_cv_archive_cmds_need_lc+:} false; then :
29180  $as_echo_n "(cached) " >&6
29181else
29182  $RM conftest*
29183	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29184
29185	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29186  (eval $ac_compile) 2>&5
29187  ac_status=$?
29188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29189  test $ac_status = 0; } 2>conftest.err; then
29190	  soname=conftest
29191	  lib=conftest
29192	  libobjs=conftest.$ac_objext
29193	  deplibs=
29194	  wl=$lt_prog_compiler_wl
29195	  pic_flag=$lt_prog_compiler_pic
29196	  compiler_flags=-v
29197	  linker_flags=-v
29198	  verstring=
29199	  output_objdir=.
29200	  libname=conftest
29201	  lt_save_allow_undefined_flag=$allow_undefined_flag
29202	  allow_undefined_flag=
29203	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
29204  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
29205  ac_status=$?
29206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29207  test $ac_status = 0; }
29208	  then
29209	    lt_cv_archive_cmds_need_lc=no
29210	  else
29211	    lt_cv_archive_cmds_need_lc=yes
29212	  fi
29213	  allow_undefined_flag=$lt_save_allow_undefined_flag
29214	else
29215	  cat conftest.err 1>&5
29216	fi
29217	$RM conftest*
29218
29219fi
29220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
29221$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
29222      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
29223      ;;
29224    esac
29225  fi
29226  ;;
29227esac
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
29381$as_echo_n "checking dynamic linker characteristics... " >&6; }
29382
29383if test yes = "$GCC"; then
29384  case $host_os in
29385    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
29386    *) lt_awk_arg='/^libraries:/' ;;
29387  esac
29388  case $host_os in
29389    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
29390    *) lt_sed_strip_eq='s|=/|/|g' ;;
29391  esac
29392  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
29393  case $lt_search_path_spec in
29394  *\;*)
29395    # if the path contains ";" then we assume it to be the separator
29396    # otherwise default to the standard path separator (i.e. ":") - it is
29397    # assumed that no part of a normal pathname contains ";" but that should
29398    # okay in the real world where ";" in dirpaths is itself problematic.
29399    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
29400    ;;
29401  *)
29402    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
29403    ;;
29404  esac
29405  # Ok, now we have the path, separated by spaces, we can step through it
29406  # and add multilib dir if necessary...
29407  lt_tmp_lt_search_path_spec=
29408  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
29409  # ...but if some path component already ends with the multilib dir we assume
29410  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
29411  case "$lt_multi_os_dir; $lt_search_path_spec " in
29412  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
29413    lt_multi_os_dir=
29414    ;;
29415  esac
29416  for lt_sys_path in $lt_search_path_spec; do
29417    if test -d "$lt_sys_path$lt_multi_os_dir"; then
29418      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
29419    elif test -n "$lt_multi_os_dir"; then
29420      test -d "$lt_sys_path" && \
29421	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
29422    fi
29423  done
29424  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
29425BEGIN {RS = " "; FS = "/|\n";} {
29426  lt_foo = "";
29427  lt_count = 0;
29428  for (lt_i = NF; lt_i > 0; lt_i--) {
29429    if ($lt_i != "" && $lt_i != ".") {
29430      if ($lt_i == "..") {
29431        lt_count++;
29432      } else {
29433        if (lt_count == 0) {
29434          lt_foo = "/" $lt_i lt_foo;
29435        } else {
29436          lt_count--;
29437        }
29438      }
29439    }
29440  }
29441  if (lt_foo != "") { lt_freq[lt_foo]++; }
29442  if (lt_freq[lt_foo] == 1) { print lt_foo; }
29443}'`
29444  # AWK program above erroneously prepends '/' to C:/dos/paths
29445  # for these hosts.
29446  case $host_os in
29447    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
29448      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
29449  esac
29450  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
29451else
29452  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
29453fi
29454library_names_spec=
29455libname_spec='lib$name'
29456soname_spec=
29457shrext_cmds=.so
29458postinstall_cmds=
29459postuninstall_cmds=
29460finish_cmds=
29461finish_eval=
29462shlibpath_var=
29463shlibpath_overrides_runpath=unknown
29464version_type=none
29465dynamic_linker="$host_os ld.so"
29466sys_lib_dlsearch_path_spec="/lib /usr/lib"
29467need_lib_prefix=unknown
29468hardcode_into_libs=no
29469
29470# when you set need_version to no, make sure it does not cause -set_version
29471# flags to be left without arguments
29472need_version=unknown
29473
29474
29475
29476case $host_os in
29477aix3*)
29478  version_type=linux # correct to gnu/linux during the next big refactor
29479  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
29480  shlibpath_var=LIBPATH
29481
29482  # AIX 3 has no versioning support, so we append a major version to the name.
29483  soname_spec='$libname$release$shared_ext$major'
29484  ;;
29485
29486aix[4-9]*)
29487  version_type=linux # correct to gnu/linux during the next big refactor
29488  need_lib_prefix=no
29489  need_version=no
29490  hardcode_into_libs=yes
29491  if test ia64 = "$host_cpu"; then
29492    # AIX 5 supports IA64
29493    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
29494    shlibpath_var=LD_LIBRARY_PATH
29495  else
29496    # With GCC up to 2.95.x, collect2 would create an import file
29497    # for dependence libraries.  The import file would start with
29498    # the line '#! .'.  This would cause the generated library to
29499    # depend on '.', always an invalid library.  This was fixed in
29500    # development snapshots of GCC prior to 3.0.
29501    case $host_os in
29502      aix4 | aix4.[01] | aix4.[01].*)
29503      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29504	   echo ' yes '
29505	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
29506	:
29507      else
29508	can_build_shared=no
29509      fi
29510      ;;
29511    esac
29512    # Using Import Files as archive members, it is possible to support
29513    # filename-based versioning of shared library archives on AIX. While
29514    # this would work for both with and without runtime linking, it will
29515    # prevent static linking of such archives. So we do filename-based
29516    # shared library versioning with .so extension only, which is used
29517    # when both runtime linking and shared linking is enabled.
29518    # Unfortunately, runtime linking may impact performance, so we do
29519    # not want this to be the default eventually. Also, we use the
29520    # versioned .so libs for executables only if there is the -brtl
29521    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
29522    # To allow for filename-based versioning support, we need to create
29523    # libNAME.so.V as an archive file, containing:
29524    # *) an Import File, referring to the versioned filename of the
29525    #    archive as well as the shared archive member, telling the
29526    #    bitwidth (32 or 64) of that shared object, and providing the
29527    #    list of exported symbols of that shared object, eventually
29528    #    decorated with the 'weak' keyword
29529    # *) the shared object with the F_LOADONLY flag set, to really avoid
29530    #    it being seen by the linker.
29531    # At run time we better use the real file rather than another symlink,
29532    # but for link time we create the symlink libNAME.so -> libNAME.so.V
29533
29534    case $with_aix_soname,$aix_use_runtimelinking in
29535    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
29536    # soname into executable. Probably we can add versioning support to
29537    # collect2, so additional links can be useful in future.
29538    aix,yes) # traditional libtool
29539      dynamic_linker='AIX unversionable lib.so'
29540      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29541      # instead of lib<name>.a to let people know that these are not
29542      # typical AIX shared libraries.
29543      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29544      ;;
29545    aix,no) # traditional AIX only
29546      dynamic_linker='AIX lib.a(lib.so.V)'
29547      # We preserve .a as extension for shared libraries through AIX4.2
29548      # and later when we are not doing run time linking.
29549      library_names_spec='$libname$release.a $libname.a'
29550      soname_spec='$libname$release$shared_ext$major'
29551      ;;
29552    svr4,*) # full svr4 only
29553      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
29554      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
29555      # We do not specify a path in Import Files, so LIBPATH fires.
29556      shlibpath_overrides_runpath=yes
29557      ;;
29558    *,yes) # both, prefer svr4
29559      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
29560      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
29561      # unpreferred sharedlib libNAME.a needs extra handling
29562      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"'
29563      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"'
29564      # We do not specify a path in Import Files, so LIBPATH fires.
29565      shlibpath_overrides_runpath=yes
29566      ;;
29567    *,no) # both, prefer aix
29568      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
29569      library_names_spec='$libname$release.a $libname.a'
29570      soname_spec='$libname$release$shared_ext$major'
29571      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
29572      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)'
29573      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"'
29574      ;;
29575    esac
29576    shlibpath_var=LIBPATH
29577  fi
29578  ;;
29579
29580amigaos*)
29581  case $host_cpu in
29582  powerpc)
29583    # Since July 2007 AmigaOS4 officially supports .so libraries.
29584    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
29585    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29586    ;;
29587  m68k)
29588    library_names_spec='$libname.ixlibrary $libname.a'
29589    # Create ${libname}_ixlibrary.a entries in /sys/libs.
29590    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'
29591    ;;
29592  esac
29593  ;;
29594
29595beos*)
29596  library_names_spec='$libname$shared_ext'
29597  dynamic_linker="$host_os ld.so"
29598  shlibpath_var=LIBRARY_PATH
29599  ;;
29600
29601bsdi[45]*)
29602  version_type=linux # correct to gnu/linux during the next big refactor
29603  need_version=no
29604  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29605  soname_spec='$libname$release$shared_ext$major'
29606  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
29607  shlibpath_var=LD_LIBRARY_PATH
29608  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
29609  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
29610  # the default ld.so.conf also contains /usr/contrib/lib and
29611  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
29612  # libtool to hard-code these into programs
29613  ;;
29614
29615cygwin* | mingw* | pw32* | cegcc*)
29616  version_type=windows
29617  shrext_cmds=.dll
29618  need_version=no
29619  need_lib_prefix=no
29620
29621  case $GCC,$cc_basename in
29622  yes,*)
29623    # gcc
29624    library_names_spec='$libname.dll.a'
29625    # DLL is installed to $(libdir)/../bin by postinstall_cmds
29626    postinstall_cmds='base_file=`basename \$file`~
29627      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
29628      dldir=$destdir/`dirname \$dlpath`~
29629      test -d \$dldir || mkdir -p \$dldir~
29630      $install_prog $dir/$dlname \$dldir/$dlname~
29631      chmod a+x \$dldir/$dlname~
29632      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
29633        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
29634      fi'
29635    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29636      dlpath=$dir/\$dldll~
29637       $RM \$dlpath'
29638    shlibpath_overrides_runpath=yes
29639
29640    case $host_os in
29641    cygwin*)
29642      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
29643      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
29644
29645      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
29646      ;;
29647    mingw* | cegcc*)
29648      # MinGW DLLs use traditional 'lib' prefix
29649      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
29650      ;;
29651    pw32*)
29652      # pw32 DLLs use 'pw' prefix rather than 'lib'
29653      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
29654      ;;
29655    esac
29656    dynamic_linker='Win32 ld.exe'
29657    ;;
29658
29659  *,cl*)
29660    # Native MSVC
29661    libname_spec='$name'
29662    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
29663    library_names_spec='$libname.dll.lib'
29664
29665    case $build_os in
29666    mingw*)
29667      sys_lib_search_path_spec=
29668      lt_save_ifs=$IFS
29669      IFS=';'
29670      for lt_path in $LIB
29671      do
29672        IFS=$lt_save_ifs
29673        # Let DOS variable expansion print the short 8.3 style file name.
29674        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
29675        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
29676      done
29677      IFS=$lt_save_ifs
29678      # Convert to MSYS style.
29679      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
29680      ;;
29681    cygwin*)
29682      # Convert to unix form, then to dos form, then back to unix form
29683      # but this time dos style (no spaces!) so that the unix form looks
29684      # like /cygdrive/c/PROGRA~1:/cygdr...
29685      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
29686      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
29687      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29688      ;;
29689    *)
29690      sys_lib_search_path_spec=$LIB
29691      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
29692        # It is most probably a Windows format PATH.
29693        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29694      else
29695        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29696      fi
29697      # FIXME: find the short name or the path components, as spaces are
29698      # common. (e.g. "Program Files" -> "PROGRA~1")
29699      ;;
29700    esac
29701
29702    # DLL is installed to $(libdir)/../bin by postinstall_cmds
29703    postinstall_cmds='base_file=`basename \$file`~
29704      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
29705      dldir=$destdir/`dirname \$dlpath`~
29706      test -d \$dldir || mkdir -p \$dldir~
29707      $install_prog $dir/$dlname \$dldir/$dlname'
29708    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29709      dlpath=$dir/\$dldll~
29710       $RM \$dlpath'
29711    shlibpath_overrides_runpath=yes
29712    dynamic_linker='Win32 link.exe'
29713    ;;
29714
29715  *)
29716    # Assume MSVC wrapper
29717    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
29718    dynamic_linker='Win32 ld.exe'
29719    ;;
29720  esac
29721  # FIXME: first we should search . and the directory the executable is in
29722  shlibpath_var=PATH
29723  ;;
29724
29725darwin* | rhapsody*)
29726  dynamic_linker="$host_os dyld"
29727  version_type=darwin
29728  need_lib_prefix=no
29729  need_version=no
29730  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
29731  soname_spec='$libname$release$major$shared_ext'
29732  shlibpath_overrides_runpath=yes
29733  shlibpath_var=DYLD_LIBRARY_PATH
29734  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
29735
29736  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
29737  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
29738  ;;
29739
29740dgux*)
29741  version_type=linux # correct to gnu/linux during the next big refactor
29742  need_lib_prefix=no
29743  need_version=no
29744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29745  soname_spec='$libname$release$shared_ext$major'
29746  shlibpath_var=LD_LIBRARY_PATH
29747  ;;
29748
29749freebsd* | dragonfly*)
29750  # DragonFly does not have aout.  When/if they implement a new
29751  # versioning mechanism, adjust this.
29752  if test -x /usr/bin/objformat; then
29753    objformat=`/usr/bin/objformat`
29754  else
29755    case $host_os in
29756    freebsd[23].*) objformat=aout ;;
29757    *) objformat=elf ;;
29758    esac
29759  fi
29760  version_type=freebsd-$objformat
29761  case $version_type in
29762    freebsd-elf*)
29763      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29764      soname_spec='$libname$release$shared_ext$major'
29765      need_version=no
29766      need_lib_prefix=no
29767      ;;
29768    freebsd-*)
29769      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
29770      need_version=yes
29771      ;;
29772  esac
29773  shlibpath_var=LD_LIBRARY_PATH
29774  case $host_os in
29775  freebsd2.*)
29776    shlibpath_overrides_runpath=yes
29777    ;;
29778  freebsd3.[01]* | freebsdelf3.[01]*)
29779    shlibpath_overrides_runpath=yes
29780    hardcode_into_libs=yes
29781    ;;
29782  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
29783  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
29784    shlibpath_overrides_runpath=no
29785    hardcode_into_libs=yes
29786    ;;
29787  *) # from 4.6 on, and DragonFly
29788    shlibpath_overrides_runpath=yes
29789    hardcode_into_libs=yes
29790    ;;
29791  esac
29792  ;;
29793
29794haiku*)
29795  version_type=linux # correct to gnu/linux during the next big refactor
29796  need_lib_prefix=no
29797  need_version=no
29798  dynamic_linker="$host_os runtime_loader"
29799  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29800  soname_spec='$libname$release$shared_ext$major'
29801  shlibpath_var=LIBRARY_PATH
29802  shlibpath_overrides_runpath=no
29803  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
29804  hardcode_into_libs=yes
29805  ;;
29806
29807hpux9* | hpux10* | hpux11*)
29808  # Give a soname corresponding to the major version so that dld.sl refuses to
29809  # link against other versions.
29810  version_type=sunos
29811  need_lib_prefix=no
29812  need_version=no
29813  case $host_cpu in
29814  ia64*)
29815    shrext_cmds='.so'
29816    hardcode_into_libs=yes
29817    dynamic_linker="$host_os dld.so"
29818    shlibpath_var=LD_LIBRARY_PATH
29819    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29820    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29821    soname_spec='$libname$release$shared_ext$major'
29822    if test 32 = "$HPUX_IA64_MODE"; then
29823      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
29824      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
29825    else
29826      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
29827      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
29828    fi
29829    ;;
29830  hppa*64*)
29831    shrext_cmds='.sl'
29832    hardcode_into_libs=yes
29833    dynamic_linker="$host_os dld.sl"
29834    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
29835    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29836    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29837    soname_spec='$libname$release$shared_ext$major'
29838    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
29839    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29840    ;;
29841  *)
29842    shrext_cmds='.sl'
29843    dynamic_linker="$host_os dld.sl"
29844    shlibpath_var=SHLIB_PATH
29845    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
29846    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29847    soname_spec='$libname$release$shared_ext$major'
29848    ;;
29849  esac
29850  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
29851  postinstall_cmds='chmod 555 $lib'
29852  # or fails outright, so override atomically:
29853  install_override_mode=555
29854  ;;
29855
29856interix[3-9]*)
29857  version_type=linux # correct to gnu/linux during the next big refactor
29858  need_lib_prefix=no
29859  need_version=no
29860  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29861  soname_spec='$libname$release$shared_ext$major'
29862  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
29863  shlibpath_var=LD_LIBRARY_PATH
29864  shlibpath_overrides_runpath=no
29865  hardcode_into_libs=yes
29866  ;;
29867
29868irix5* | irix6* | nonstopux*)
29869  case $host_os in
29870    nonstopux*) version_type=nonstopux ;;
29871    *)
29872	if test yes = "$lt_cv_prog_gnu_ld"; then
29873		version_type=linux # correct to gnu/linux during the next big refactor
29874	else
29875		version_type=irix
29876	fi ;;
29877  esac
29878  need_lib_prefix=no
29879  need_version=no
29880  soname_spec='$libname$release$shared_ext$major'
29881  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
29882  case $host_os in
29883  irix5* | nonstopux*)
29884    libsuff= shlibsuff=
29885    ;;
29886  *)
29887    case $LD in # libtool.m4 will add one of these switches to LD
29888    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
29889      libsuff= shlibsuff= libmagic=32-bit;;
29890    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
29891      libsuff=32 shlibsuff=N32 libmagic=N32;;
29892    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
29893      libsuff=64 shlibsuff=64 libmagic=64-bit;;
29894    *) libsuff= shlibsuff= libmagic=never-match;;
29895    esac
29896    ;;
29897  esac
29898  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
29899  shlibpath_overrides_runpath=no
29900  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
29901  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
29902  hardcode_into_libs=yes
29903  ;;
29904
29905# No shared lib support for Linux oldld, aout, or coff.
29906linux*oldld* | linux*aout* | linux*coff*)
29907  dynamic_linker=no
29908  ;;
29909
29910linux*android*)
29911  version_type=none # Android doesn't support versioned libraries.
29912  need_lib_prefix=no
29913  need_version=no
29914  library_names_spec='$libname$release$shared_ext'
29915  soname_spec='$libname$release$shared_ext'
29916  finish_cmds=
29917  shlibpath_var=LD_LIBRARY_PATH
29918  shlibpath_overrides_runpath=yes
29919
29920  # This implies no fast_install, which is unacceptable.
29921  # Some rework will be needed to allow for fast_install
29922  # before this can be enabled.
29923  hardcode_into_libs=yes
29924
29925  dynamic_linker='Android linker'
29926  # Don't embed -rpath directories since the linker doesn't support them.
29927  hardcode_libdir_flag_spec='-L$libdir'
29928  ;;
29929
29930# This must be glibc/ELF.
29931linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
29932  version_type=linux # correct to gnu/linux during the next big refactor
29933  need_lib_prefix=no
29934  need_version=no
29935  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29936  soname_spec='$libname$release$shared_ext$major'
29937  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
29938  shlibpath_var=LD_LIBRARY_PATH
29939  shlibpath_overrides_runpath=no
29940
29941  # Some binutils ld are patched to set DT_RUNPATH
29942  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
29943  $as_echo_n "(cached) " >&6
29944else
29945  lt_cv_shlibpath_overrides_runpath=no
29946    save_LDFLAGS=$LDFLAGS
29947    save_libdir=$libdir
29948    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
29949	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
29950    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29951/* end confdefs.h.  */
29952
29953int
29954main ()
29955{
29956
29957  ;
29958  return 0;
29959}
29960_ACEOF
29961if ac_fn_c_try_link "$LINENO"; then :
29962  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
29963  lt_cv_shlibpath_overrides_runpath=yes
29964fi
29965fi
29966rm -f core conftest.err conftest.$ac_objext \
29967    conftest$ac_exeext conftest.$ac_ext
29968    LDFLAGS=$save_LDFLAGS
29969    libdir=$save_libdir
29970
29971fi
29972
29973  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
29974
29975  # This implies no fast_install, which is unacceptable.
29976  # Some rework will be needed to allow for fast_install
29977  # before this can be enabled.
29978  hardcode_into_libs=yes
29979
29980  # Ideally, we could use ldconfig to report *all* directores which are
29981  # searched for libraries, however this is still not possible.  Aside from not
29982  # being certain /sbin/ldconfig is available, command
29983  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
29984  # even though it is searched at run-time.  Try to do the best guess by
29985  # appending ld.so.conf contents (and includes) to the search path.
29986  if test -f /etc/ld.so.conf; then
29987    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' ' '`
29988    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
29989  fi
29990
29991  # We used to test for /lib/ld.so.1 and disable shared libraries on
29992  # powerpc, because MkLinux only supported shared libraries with the
29993  # GNU dynamic linker.  Since this was broken with cross compilers,
29994  # most powerpc-linux boxes support dynamic linking these days and
29995  # people can always --disable-shared, the test was removed, and we
29996  # assume the GNU/Linux dynamic linker is in use.
29997  dynamic_linker='GNU/Linux ld.so'
29998  ;;
29999
30000netbsdelf*-gnu)
30001  version_type=linux
30002  need_lib_prefix=no
30003  need_version=no
30004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30005  soname_spec='${libname}${release}${shared_ext}$major'
30006  shlibpath_var=LD_LIBRARY_PATH
30007  shlibpath_overrides_runpath=no
30008  hardcode_into_libs=yes
30009  dynamic_linker='NetBSD ld.elf_so'
30010  ;;
30011
30012netbsd*)
30013  version_type=sunos
30014  need_lib_prefix=no
30015  need_version=no
30016  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
30017    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
30018    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30019    dynamic_linker='NetBSD (a.out) ld.so'
30020  else
30021    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30022    soname_spec='$libname$release$shared_ext$major'
30023    dynamic_linker='NetBSD ld.elf_so'
30024  fi
30025  shlibpath_var=LD_LIBRARY_PATH
30026  shlibpath_overrides_runpath=yes
30027  hardcode_into_libs=yes
30028  ;;
30029
30030newsos6)
30031  version_type=linux # correct to gnu/linux during the next big refactor
30032  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30033  shlibpath_var=LD_LIBRARY_PATH
30034  shlibpath_overrides_runpath=yes
30035  ;;
30036
30037*nto* | *qnx*)
30038  version_type=qnx
30039  need_lib_prefix=no
30040  need_version=no
30041  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30042  soname_spec='$libname$release$shared_ext$major'
30043  shlibpath_var=LD_LIBRARY_PATH
30044  shlibpath_overrides_runpath=no
30045  hardcode_into_libs=yes
30046  dynamic_linker='ldqnx.so'
30047  ;;
30048
30049openbsd* | bitrig*)
30050  version_type=sunos
30051  sys_lib_dlsearch_path_spec=/usr/lib
30052  need_lib_prefix=no
30053  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
30054    need_version=no
30055  else
30056    need_version=yes
30057  fi
30058  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
30059  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30060  shlibpath_var=LD_LIBRARY_PATH
30061  shlibpath_overrides_runpath=yes
30062  ;;
30063
30064os2*)
30065  libname_spec='$name'
30066  version_type=windows
30067  shrext_cmds=.dll
30068  need_version=no
30069  need_lib_prefix=no
30070  # OS/2 can only load a DLL with a base name of 8 characters or less.
30071  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
30072    v=$($ECHO $release$versuffix | tr -d .-);
30073    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
30074    $ECHO $n$v`$shared_ext'
30075  library_names_spec='${libname}_dll.$libext'
30076  dynamic_linker='OS/2 ld.exe'
30077  shlibpath_var=BEGINLIBPATH
30078  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
30079  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
30080  postinstall_cmds='base_file=`basename \$file`~
30081    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
30082    dldir=$destdir/`dirname \$dlpath`~
30083    test -d \$dldir || mkdir -p \$dldir~
30084    $install_prog $dir/$dlname \$dldir/$dlname~
30085    chmod a+x \$dldir/$dlname~
30086    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
30087      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
30088    fi'
30089  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
30090    dlpath=$dir/\$dldll~
30091    $RM \$dlpath'
30092  ;;
30093
30094osf3* | osf4* | osf5*)
30095  version_type=osf
30096  need_lib_prefix=no
30097  need_version=no
30098  soname_spec='$libname$release$shared_ext$major'
30099  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30100  shlibpath_var=LD_LIBRARY_PATH
30101  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
30102  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
30103  ;;
30104
30105rdos*)
30106  dynamic_linker=no
30107  ;;
30108
30109solaris*)
30110  version_type=linux # correct to gnu/linux during the next big refactor
30111  need_lib_prefix=no
30112  need_version=no
30113  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30114  soname_spec='$libname$release$shared_ext$major'
30115  shlibpath_var=LD_LIBRARY_PATH
30116  shlibpath_overrides_runpath=yes
30117  hardcode_into_libs=yes
30118  # ldd complains unless libraries are executable
30119  postinstall_cmds='chmod +x $lib'
30120  ;;
30121
30122sunos4*)
30123  version_type=sunos
30124  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
30125  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
30126  shlibpath_var=LD_LIBRARY_PATH
30127  shlibpath_overrides_runpath=yes
30128  if test yes = "$with_gnu_ld"; then
30129    need_lib_prefix=no
30130  fi
30131  need_version=yes
30132  ;;
30133
30134sysv4 | sysv4.3*)
30135  version_type=linux # correct to gnu/linux during the next big refactor
30136  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30137  soname_spec='$libname$release$shared_ext$major'
30138  shlibpath_var=LD_LIBRARY_PATH
30139  case $host_vendor in
30140    sni)
30141      shlibpath_overrides_runpath=no
30142      need_lib_prefix=no
30143      runpath_var=LD_RUN_PATH
30144      ;;
30145    siemens)
30146      need_lib_prefix=no
30147      ;;
30148    motorola)
30149      need_lib_prefix=no
30150      need_version=no
30151      shlibpath_overrides_runpath=no
30152      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
30153      ;;
30154  esac
30155  ;;
30156
30157sysv4*MP*)
30158  if test -d /usr/nec; then
30159    version_type=linux # correct to gnu/linux during the next big refactor
30160    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
30161    soname_spec='$libname$shared_ext.$major'
30162    shlibpath_var=LD_LIBRARY_PATH
30163  fi
30164  ;;
30165
30166sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30167  version_type=sco
30168  need_lib_prefix=no
30169  need_version=no
30170  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
30171  soname_spec='$libname$release$shared_ext$major'
30172  shlibpath_var=LD_LIBRARY_PATH
30173  shlibpath_overrides_runpath=yes
30174  hardcode_into_libs=yes
30175  if test yes = "$with_gnu_ld"; then
30176    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
30177  else
30178    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
30179    case $host_os in
30180      sco3.2v5*)
30181        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
30182	;;
30183    esac
30184  fi
30185  sys_lib_dlsearch_path_spec='/usr/lib'
30186  ;;
30187
30188tpf*)
30189  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
30190  version_type=linux # correct to gnu/linux during the next big refactor
30191  need_lib_prefix=no
30192  need_version=no
30193  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30194  shlibpath_var=LD_LIBRARY_PATH
30195  shlibpath_overrides_runpath=no
30196  hardcode_into_libs=yes
30197  ;;
30198
30199uts4*)
30200  version_type=linux # correct to gnu/linux during the next big refactor
30201  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30202  soname_spec='$libname$release$shared_ext$major'
30203  shlibpath_var=LD_LIBRARY_PATH
30204  ;;
30205
30206*)
30207  dynamic_linker=no
30208  ;;
30209esac
30210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
30211$as_echo "$dynamic_linker" >&6; }
30212test no = "$dynamic_linker" && can_build_shared=no
30213
30214variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
30215if test yes = "$GCC"; then
30216  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
30217fi
30218
30219if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
30220  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
30221fi
30222
30223if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
30224  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
30225fi
30226
30227# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
30228configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
30229
30230# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
30231func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
30232
30233# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
30234configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
30333$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
30334hardcode_action=
30335if test -n "$hardcode_libdir_flag_spec" ||
30336   test -n "$runpath_var" ||
30337   test yes = "$hardcode_automatic"; then
30338
30339  # We can hardcode non-existent directories.
30340  if test no != "$hardcode_direct" &&
30341     # If the only mechanism to avoid hardcoding is shlibpath_var, we
30342     # have to relink, otherwise we might link with an installed library
30343     # when we should be linking with a yet-to-be-installed one
30344     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
30345     test no != "$hardcode_minus_L"; then
30346    # Linking always hardcodes the temporary library directory.
30347    hardcode_action=relink
30348  else
30349    # We can link without hardcoding, and we can hardcode nonexisting dirs.
30350    hardcode_action=immediate
30351  fi
30352else
30353  # We cannot hardcode anything, or else we can only hardcode existing
30354  # directories.
30355  hardcode_action=unsupported
30356fi
30357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
30358$as_echo "$hardcode_action" >&6; }
30359
30360if test relink = "$hardcode_action" ||
30361   test yes = "$inherit_rpath"; then
30362  # Fast installation is not supported
30363  enable_fast_install=no
30364elif test yes = "$shlibpath_overrides_runpath" ||
30365     test no = "$enable_shared"; then
30366  # Fast installation is not necessary
30367  enable_fast_install=needless
30368fi
30369
30370
30371
30372
30373
30374
30375  if test yes != "$enable_dlopen"; then
30376  enable_dlopen=unknown
30377  enable_dlopen_self=unknown
30378  enable_dlopen_self_static=unknown
30379else
30380  lt_cv_dlopen=no
30381  lt_cv_dlopen_libs=
30382
30383  case $host_os in
30384  beos*)
30385    lt_cv_dlopen=load_add_on
30386    lt_cv_dlopen_libs=
30387    lt_cv_dlopen_self=yes
30388    ;;
30389
30390  mingw* | pw32* | cegcc*)
30391    lt_cv_dlopen=LoadLibrary
30392    lt_cv_dlopen_libs=
30393    ;;
30394
30395  cygwin*)
30396    lt_cv_dlopen=dlopen
30397    lt_cv_dlopen_libs=
30398    ;;
30399
30400  darwin*)
30401    # if libdl is installed we need to link against it
30402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
30403$as_echo_n "checking for dlopen in -ldl... " >&6; }
30404if ${ac_cv_lib_dl_dlopen+:} false; then :
30405  $as_echo_n "(cached) " >&6
30406else
30407  ac_check_lib_save_LIBS=$LIBS
30408LIBS="-ldl  $LIBS"
30409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30410/* end confdefs.h.  */
30411
30412/* Override any GCC internal prototype to avoid an error.
30413   Use char because int might match the return type of a GCC
30414   builtin and then its argument prototype would still apply.  */
30415#ifdef __cplusplus
30416extern "C"
30417#endif
30418char dlopen ();
30419int
30420main ()
30421{
30422return dlopen ();
30423  ;
30424  return 0;
30425}
30426_ACEOF
30427if ac_fn_c_try_link "$LINENO"; then :
30428  ac_cv_lib_dl_dlopen=yes
30429else
30430  ac_cv_lib_dl_dlopen=no
30431fi
30432rm -f core conftest.err conftest.$ac_objext \
30433    conftest$ac_exeext conftest.$ac_ext
30434LIBS=$ac_check_lib_save_LIBS
30435fi
30436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
30437$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
30438if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
30439  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
30440else
30441
30442    lt_cv_dlopen=dyld
30443    lt_cv_dlopen_libs=
30444    lt_cv_dlopen_self=yes
30445
30446fi
30447
30448    ;;
30449
30450  tpf*)
30451    # Don't try to run any link tests for TPF.  We know it's impossible
30452    # because TPF is a cross-compiler, and we know how we open DSOs.
30453    lt_cv_dlopen=dlopen
30454    lt_cv_dlopen_libs=
30455    lt_cv_dlopen_self=no
30456    ;;
30457
30458  *)
30459    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
30460if test "x$ac_cv_func_shl_load" = xyes; then :
30461  lt_cv_dlopen=shl_load
30462else
30463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
30464$as_echo_n "checking for shl_load in -ldld... " >&6; }
30465if ${ac_cv_lib_dld_shl_load+:} false; then :
30466  $as_echo_n "(cached) " >&6
30467else
30468  ac_check_lib_save_LIBS=$LIBS
30469LIBS="-ldld  $LIBS"
30470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30471/* end confdefs.h.  */
30472
30473/* Override any GCC internal prototype to avoid an error.
30474   Use char because int might match the return type of a GCC
30475   builtin and then its argument prototype would still apply.  */
30476#ifdef __cplusplus
30477extern "C"
30478#endif
30479char shl_load ();
30480int
30481main ()
30482{
30483return shl_load ();
30484  ;
30485  return 0;
30486}
30487_ACEOF
30488if ac_fn_c_try_link "$LINENO"; then :
30489  ac_cv_lib_dld_shl_load=yes
30490else
30491  ac_cv_lib_dld_shl_load=no
30492fi
30493rm -f core conftest.err conftest.$ac_objext \
30494    conftest$ac_exeext conftest.$ac_ext
30495LIBS=$ac_check_lib_save_LIBS
30496fi
30497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
30498$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
30499if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
30500  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
30501else
30502  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
30503if test "x$ac_cv_func_dlopen" = xyes; then :
30504  lt_cv_dlopen=dlopen
30505else
30506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
30507$as_echo_n "checking for dlopen in -ldl... " >&6; }
30508if ${ac_cv_lib_dl_dlopen+:} false; then :
30509  $as_echo_n "(cached) " >&6
30510else
30511  ac_check_lib_save_LIBS=$LIBS
30512LIBS="-ldl  $LIBS"
30513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30514/* end confdefs.h.  */
30515
30516/* Override any GCC internal prototype to avoid an error.
30517   Use char because int might match the return type of a GCC
30518   builtin and then its argument prototype would still apply.  */
30519#ifdef __cplusplus
30520extern "C"
30521#endif
30522char dlopen ();
30523int
30524main ()
30525{
30526return dlopen ();
30527  ;
30528  return 0;
30529}
30530_ACEOF
30531if ac_fn_c_try_link "$LINENO"; then :
30532  ac_cv_lib_dl_dlopen=yes
30533else
30534  ac_cv_lib_dl_dlopen=no
30535fi
30536rm -f core conftest.err conftest.$ac_objext \
30537    conftest$ac_exeext conftest.$ac_ext
30538LIBS=$ac_check_lib_save_LIBS
30539fi
30540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
30541$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
30542if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
30543  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
30544else
30545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
30546$as_echo_n "checking for dlopen in -lsvld... " >&6; }
30547if ${ac_cv_lib_svld_dlopen+:} false; then :
30548  $as_echo_n "(cached) " >&6
30549else
30550  ac_check_lib_save_LIBS=$LIBS
30551LIBS="-lsvld  $LIBS"
30552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30553/* end confdefs.h.  */
30554
30555/* Override any GCC internal prototype to avoid an error.
30556   Use char because int might match the return type of a GCC
30557   builtin and then its argument prototype would still apply.  */
30558#ifdef __cplusplus
30559extern "C"
30560#endif
30561char dlopen ();
30562int
30563main ()
30564{
30565return dlopen ();
30566  ;
30567  return 0;
30568}
30569_ACEOF
30570if ac_fn_c_try_link "$LINENO"; then :
30571  ac_cv_lib_svld_dlopen=yes
30572else
30573  ac_cv_lib_svld_dlopen=no
30574fi
30575rm -f core conftest.err conftest.$ac_objext \
30576    conftest$ac_exeext conftest.$ac_ext
30577LIBS=$ac_check_lib_save_LIBS
30578fi
30579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
30580$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
30581if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
30582  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
30583else
30584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
30585$as_echo_n "checking for dld_link in -ldld... " >&6; }
30586if ${ac_cv_lib_dld_dld_link+:} false; then :
30587  $as_echo_n "(cached) " >&6
30588else
30589  ac_check_lib_save_LIBS=$LIBS
30590LIBS="-ldld  $LIBS"
30591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30592/* end confdefs.h.  */
30593
30594/* Override any GCC internal prototype to avoid an error.
30595   Use char because int might match the return type of a GCC
30596   builtin and then its argument prototype would still apply.  */
30597#ifdef __cplusplus
30598extern "C"
30599#endif
30600char dld_link ();
30601int
30602main ()
30603{
30604return dld_link ();
30605  ;
30606  return 0;
30607}
30608_ACEOF
30609if ac_fn_c_try_link "$LINENO"; then :
30610  ac_cv_lib_dld_dld_link=yes
30611else
30612  ac_cv_lib_dld_dld_link=no
30613fi
30614rm -f core conftest.err conftest.$ac_objext \
30615    conftest$ac_exeext conftest.$ac_ext
30616LIBS=$ac_check_lib_save_LIBS
30617fi
30618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
30619$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
30620if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
30621  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
30622fi
30623
30624
30625fi
30626
30627
30628fi
30629
30630
30631fi
30632
30633
30634fi
30635
30636
30637fi
30638
30639    ;;
30640  esac
30641
30642  if test no = "$lt_cv_dlopen"; then
30643    enable_dlopen=no
30644  else
30645    enable_dlopen=yes
30646  fi
30647
30648  case $lt_cv_dlopen in
30649  dlopen)
30650    save_CPPFLAGS=$CPPFLAGS
30651    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
30652
30653    save_LDFLAGS=$LDFLAGS
30654    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
30655
30656    save_LIBS=$LIBS
30657    LIBS="$lt_cv_dlopen_libs $LIBS"
30658
30659    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
30660$as_echo_n "checking whether a program can dlopen itself... " >&6; }
30661if ${lt_cv_dlopen_self+:} false; then :
30662  $as_echo_n "(cached) " >&6
30663else
30664  	  if test yes = "$cross_compiling"; then :
30665  lt_cv_dlopen_self=cross
30666else
30667  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
30668  lt_status=$lt_dlunknown
30669  cat > conftest.$ac_ext <<_LT_EOF
30670#line $LINENO "configure"
30671#include "confdefs.h"
30672
30673#if HAVE_DLFCN_H
30674#include <dlfcn.h>
30675#endif
30676
30677#include <stdio.h>
30678
30679#ifdef RTLD_GLOBAL
30680#  define LT_DLGLOBAL		RTLD_GLOBAL
30681#else
30682#  ifdef DL_GLOBAL
30683#    define LT_DLGLOBAL		DL_GLOBAL
30684#  else
30685#    define LT_DLGLOBAL		0
30686#  endif
30687#endif
30688
30689/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
30690   find out it does not work in some platform. */
30691#ifndef LT_DLLAZY_OR_NOW
30692#  ifdef RTLD_LAZY
30693#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
30694#  else
30695#    ifdef DL_LAZY
30696#      define LT_DLLAZY_OR_NOW		DL_LAZY
30697#    else
30698#      ifdef RTLD_NOW
30699#        define LT_DLLAZY_OR_NOW	RTLD_NOW
30700#      else
30701#        ifdef DL_NOW
30702#          define LT_DLLAZY_OR_NOW	DL_NOW
30703#        else
30704#          define LT_DLLAZY_OR_NOW	0
30705#        endif
30706#      endif
30707#    endif
30708#  endif
30709#endif
30710
30711/* When -fvisibility=hidden is used, assume the code has been annotated
30712   correspondingly for the symbols needed.  */
30713#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
30714int fnord () __attribute__((visibility("default")));
30715#endif
30716
30717int fnord () { return 42; }
30718int main ()
30719{
30720  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
30721  int status = $lt_dlunknown;
30722
30723  if (self)
30724    {
30725      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
30726      else
30727        {
30728	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
30729          else puts (dlerror ());
30730	}
30731      /* dlclose (self); */
30732    }
30733  else
30734    puts (dlerror ());
30735
30736  return status;
30737}
30738_LT_EOF
30739  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30740  (eval $ac_link) 2>&5
30741  ac_status=$?
30742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30743  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
30744    (./conftest; exit; ) >&5 2>/dev/null
30745    lt_status=$?
30746    case x$lt_status in
30747      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
30748      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
30749      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
30750    esac
30751  else :
30752    # compilation failed
30753    lt_cv_dlopen_self=no
30754  fi
30755fi
30756rm -fr conftest*
30757
30758
30759fi
30760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
30761$as_echo "$lt_cv_dlopen_self" >&6; }
30762
30763    if test yes = "$lt_cv_dlopen_self"; then
30764      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
30765      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
30766$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
30767if ${lt_cv_dlopen_self_static+:} false; then :
30768  $as_echo_n "(cached) " >&6
30769else
30770  	  if test yes = "$cross_compiling"; then :
30771  lt_cv_dlopen_self_static=cross
30772else
30773  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
30774  lt_status=$lt_dlunknown
30775  cat > conftest.$ac_ext <<_LT_EOF
30776#line $LINENO "configure"
30777#include "confdefs.h"
30778
30779#if HAVE_DLFCN_H
30780#include <dlfcn.h>
30781#endif
30782
30783#include <stdio.h>
30784
30785#ifdef RTLD_GLOBAL
30786#  define LT_DLGLOBAL		RTLD_GLOBAL
30787#else
30788#  ifdef DL_GLOBAL
30789#    define LT_DLGLOBAL		DL_GLOBAL
30790#  else
30791#    define LT_DLGLOBAL		0
30792#  endif
30793#endif
30794
30795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
30796   find out it does not work in some platform. */
30797#ifndef LT_DLLAZY_OR_NOW
30798#  ifdef RTLD_LAZY
30799#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
30800#  else
30801#    ifdef DL_LAZY
30802#      define LT_DLLAZY_OR_NOW		DL_LAZY
30803#    else
30804#      ifdef RTLD_NOW
30805#        define LT_DLLAZY_OR_NOW	RTLD_NOW
30806#      else
30807#        ifdef DL_NOW
30808#          define LT_DLLAZY_OR_NOW	DL_NOW
30809#        else
30810#          define LT_DLLAZY_OR_NOW	0
30811#        endif
30812#      endif
30813#    endif
30814#  endif
30815#endif
30816
30817/* When -fvisibility=hidden is used, assume the code has been annotated
30818   correspondingly for the symbols needed.  */
30819#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
30820int fnord () __attribute__((visibility("default")));
30821#endif
30822
30823int fnord () { return 42; }
30824int main ()
30825{
30826  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
30827  int status = $lt_dlunknown;
30828
30829  if (self)
30830    {
30831      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
30832      else
30833        {
30834	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
30835          else puts (dlerror ());
30836	}
30837      /* dlclose (self); */
30838    }
30839  else
30840    puts (dlerror ());
30841
30842  return status;
30843}
30844_LT_EOF
30845  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30846  (eval $ac_link) 2>&5
30847  ac_status=$?
30848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30849  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
30850    (./conftest; exit; ) >&5 2>/dev/null
30851    lt_status=$?
30852    case x$lt_status in
30853      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
30854      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
30855      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
30856    esac
30857  else :
30858    # compilation failed
30859    lt_cv_dlopen_self_static=no
30860  fi
30861fi
30862rm -fr conftest*
30863
30864
30865fi
30866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
30867$as_echo "$lt_cv_dlopen_self_static" >&6; }
30868    fi
30869
30870    CPPFLAGS=$save_CPPFLAGS
30871    LDFLAGS=$save_LDFLAGS
30872    LIBS=$save_LIBS
30873    ;;
30874  esac
30875
30876  case $lt_cv_dlopen_self in
30877  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
30878  *) enable_dlopen_self=unknown ;;
30879  esac
30880
30881  case $lt_cv_dlopen_self_static in
30882  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
30883  *) enable_dlopen_self_static=unknown ;;
30884  esac
30885fi
30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903striplib=
30904old_striplib=
30905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
30906$as_echo_n "checking whether stripping libraries is possible... " >&6; }
30907if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
30908  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
30909  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
30910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30911$as_echo "yes" >&6; }
30912else
30913# FIXME - insert some real tests, host_os isn't really good enough
30914  case $host_os in
30915  darwin*)
30916    if test -n "$STRIP"; then
30917      striplib="$STRIP -x"
30918      old_striplib="$STRIP -S"
30919      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30920$as_echo "yes" >&6; }
30921    else
30922      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30923$as_echo "no" >&6; }
30924    fi
30925    ;;
30926  *)
30927    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30928$as_echo "no" >&6; }
30929    ;;
30930  esac
30931fi
30932
30933
30934
30935
30936
30937
30938
30939
30940
30941
30942
30943
30944  # Report what library types will actually be built
30945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
30946$as_echo_n "checking if libtool supports shared libraries... " >&6; }
30947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
30948$as_echo "$can_build_shared" >&6; }
30949
30950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
30951$as_echo_n "checking whether to build shared libraries... " >&6; }
30952  test no = "$can_build_shared" && enable_shared=no
30953
30954  # On AIX, shared libraries and static libraries use the same namespace, and
30955  # are all built from PIC.
30956  case $host_os in
30957  aix3*)
30958    test yes = "$enable_shared" && enable_static=no
30959    if test -n "$RANLIB"; then
30960      archive_cmds="$archive_cmds~\$RANLIB \$lib"
30961      postinstall_cmds='$RANLIB $lib'
30962    fi
30963    ;;
30964
30965  aix[4-9]*)
30966    if test ia64 != "$host_cpu"; then
30967      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
30968      yes,aix,yes) ;;			# shared object as lib.so file only
30969      yes,svr4,*) ;;			# shared object as lib.so archive member only
30970      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
30971      esac
30972    fi
30973    ;;
30974  esac
30975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
30976$as_echo "$enable_shared" >&6; }
30977
30978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
30979$as_echo_n "checking whether to build static libraries... " >&6; }
30980  # Make sure either enable_shared or enable_static is yes.
30981  test yes = "$enable_shared" || enable_static=yes
30982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
30983$as_echo "$enable_static" >&6; }
30984
30985
30986
30987
30988fi
30989ac_ext=cpp
30990ac_cpp='$CXXCPP $CPPFLAGS'
30991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30994
30995CC=$lt_save_CC
30996
30997      if test -n "$CXX" && ( test no != "$CXX" &&
30998    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
30999    (test g++ != "$CXX"))); then
31000  ac_ext=cpp
31001ac_cpp='$CXXCPP $CPPFLAGS'
31002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
31006$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
31007if test -z "$CXXCPP"; then
31008  if ${ac_cv_prog_CXXCPP+:} false; then :
31009  $as_echo_n "(cached) " >&6
31010else
31011      # Double quotes because CXXCPP needs to be expanded
31012    for CXXCPP in "$CXX -E" "/lib/cpp"
31013    do
31014      ac_preproc_ok=false
31015for ac_cxx_preproc_warn_flag in '' yes
31016do
31017  # Use a header file that comes with gcc, so configuring glibc
31018  # with a fresh cross-compiler works.
31019  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31020  # <limits.h> exists even on freestanding compilers.
31021  # On the NeXT, cc -E runs the code through the compiler's parser,
31022  # not just through cpp. "Syntax error" is here to catch this case.
31023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024/* end confdefs.h.  */
31025#ifdef __STDC__
31026# include <limits.h>
31027#else
31028# include <assert.h>
31029#endif
31030		     Syntax error
31031_ACEOF
31032if ac_fn_cxx_try_cpp "$LINENO"; then :
31033
31034else
31035  # Broken: fails on valid input.
31036continue
31037fi
31038rm -f conftest.err conftest.i conftest.$ac_ext
31039
31040  # OK, works on sane cases.  Now check whether nonexistent headers
31041  # can be detected and how.
31042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31043/* end confdefs.h.  */
31044#include <ac_nonexistent.h>
31045_ACEOF
31046if ac_fn_cxx_try_cpp "$LINENO"; then :
31047  # Broken: success on invalid input.
31048continue
31049else
31050  # Passes both tests.
31051ac_preproc_ok=:
31052break
31053fi
31054rm -f conftest.err conftest.i conftest.$ac_ext
31055
31056done
31057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31058rm -f conftest.i conftest.err conftest.$ac_ext
31059if $ac_preproc_ok; then :
31060  break
31061fi
31062
31063    done
31064    ac_cv_prog_CXXCPP=$CXXCPP
31065
31066fi
31067  CXXCPP=$ac_cv_prog_CXXCPP
31068else
31069  ac_cv_prog_CXXCPP=$CXXCPP
31070fi
31071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
31072$as_echo "$CXXCPP" >&6; }
31073ac_preproc_ok=false
31074for ac_cxx_preproc_warn_flag in '' yes
31075do
31076  # Use a header file that comes with gcc, so configuring glibc
31077  # with a fresh cross-compiler works.
31078  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31079  # <limits.h> exists even on freestanding compilers.
31080  # On the NeXT, cc -E runs the code through the compiler's parser,
31081  # not just through cpp. "Syntax error" is here to catch this case.
31082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31083/* end confdefs.h.  */
31084#ifdef __STDC__
31085# include <limits.h>
31086#else
31087# include <assert.h>
31088#endif
31089		     Syntax error
31090_ACEOF
31091if ac_fn_cxx_try_cpp "$LINENO"; then :
31092
31093else
31094  # Broken: fails on valid input.
31095continue
31096fi
31097rm -f conftest.err conftest.i conftest.$ac_ext
31098
31099  # OK, works on sane cases.  Now check whether nonexistent headers
31100  # can be detected and how.
31101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31102/* end confdefs.h.  */
31103#include <ac_nonexistent.h>
31104_ACEOF
31105if ac_fn_cxx_try_cpp "$LINENO"; then :
31106  # Broken: success on invalid input.
31107continue
31108else
31109  # Passes both tests.
31110ac_preproc_ok=:
31111break
31112fi
31113rm -f conftest.err conftest.i conftest.$ac_ext
31114
31115done
31116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31117rm -f conftest.i conftest.err conftest.$ac_ext
31118if $ac_preproc_ok; then :
31119
31120else
31121  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31123as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
31124See \`config.log' for more details" "$LINENO" 5; }
31125fi
31126
31127ac_ext=cpp
31128ac_cpp='$CXXCPP $CPPFLAGS'
31129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31132
31133else
31134  _lt_caught_CXX_error=yes
31135fi
31136
31137ac_ext=cpp
31138ac_cpp='$CXXCPP $CPPFLAGS'
31139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31142
31143archive_cmds_need_lc_CXX=no
31144allow_undefined_flag_CXX=
31145always_export_symbols_CXX=no
31146archive_expsym_cmds_CXX=
31147compiler_needs_object_CXX=no
31148export_dynamic_flag_spec_CXX=
31149hardcode_direct_CXX=no
31150hardcode_direct_absolute_CXX=no
31151hardcode_libdir_flag_spec_CXX=
31152hardcode_libdir_separator_CXX=
31153hardcode_minus_L_CXX=no
31154hardcode_shlibpath_var_CXX=unsupported
31155hardcode_automatic_CXX=no
31156inherit_rpath_CXX=no
31157module_cmds_CXX=
31158module_expsym_cmds_CXX=
31159link_all_deplibs_CXX=unknown
31160old_archive_cmds_CXX=$old_archive_cmds
31161reload_flag_CXX=$reload_flag
31162reload_cmds_CXX=$reload_cmds
31163no_undefined_flag_CXX=
31164whole_archive_flag_spec_CXX=
31165enable_shared_with_static_runtimes_CXX=no
31166
31167# Source file extension for C++ test sources.
31168ac_ext=cpp
31169
31170# Object file extension for compiled C++ test sources.
31171objext=o
31172objext_CXX=$objext
31173
31174# No sense in running all these tests if we already determined that
31175# the CXX compiler isn't working.  Some variables (like enable_shared)
31176# are currently assumed to apply to all compilers on this platform,
31177# and will be corrupted by setting them based on a non-working compiler.
31178if test yes != "$_lt_caught_CXX_error"; then
31179  # Code to be used in simple compile tests
31180  lt_simple_compile_test_code="int some_variable = 0;"
31181
31182  # Code to be used in simple link tests
31183  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
31184
31185  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
31186
31187
31188
31189
31190
31191
31192# If no C compiler was specified, use CC.
31193LTCC=${LTCC-"$CC"}
31194
31195# If no C compiler flags were specified, use CFLAGS.
31196LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
31197
31198# Allow CC to be a program name with arguments.
31199compiler=$CC
31200
31201
31202  # save warnings/boilerplate of simple test code
31203  ac_outfile=conftest.$ac_objext
31204echo "$lt_simple_compile_test_code" >conftest.$ac_ext
31205eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
31206_lt_compiler_boilerplate=`cat conftest.err`
31207$RM conftest*
31208
31209  ac_outfile=conftest.$ac_objext
31210echo "$lt_simple_link_test_code" >conftest.$ac_ext
31211eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
31212_lt_linker_boilerplate=`cat conftest.err`
31213$RM -r conftest*
31214
31215
31216  # Allow CC to be a program name with arguments.
31217  lt_save_CC=$CC
31218  lt_save_CFLAGS=$CFLAGS
31219  lt_save_LD=$LD
31220  lt_save_GCC=$GCC
31221  GCC=$GXX
31222  lt_save_with_gnu_ld=$with_gnu_ld
31223  lt_save_path_LD=$lt_cv_path_LD
31224  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
31225    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
31226  else
31227    $as_unset lt_cv_prog_gnu_ld
31228  fi
31229  if test -n "${lt_cv_path_LDCXX+set}"; then
31230    lt_cv_path_LD=$lt_cv_path_LDCXX
31231  else
31232    $as_unset lt_cv_path_LD
31233  fi
31234  test -z "${LDCXX+set}" || LD=$LDCXX
31235  CC=${CXX-"c++"}
31236  CFLAGS=$CXXFLAGS
31237  compiler=$CC
31238  compiler_CXX=$CC
31239  func_cc_basename $compiler
31240cc_basename=$func_cc_basename_result
31241
31242
31243  if test -n "$compiler"; then
31244    # We don't want -fno-exception when compiling C++ code, so set the
31245    # no_builtin_flag separately
31246    if test yes = "$GXX"; then
31247      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
31248    else
31249      lt_prog_compiler_no_builtin_flag_CXX=
31250    fi
31251
31252    if test yes = "$GXX"; then
31253      # Set up default GNU C++ configuration
31254
31255
31256
31257# Check whether --with-gnu-ld was given.
31258if test "${with_gnu_ld+set}" = set; then :
31259  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
31260else
31261  with_gnu_ld=no
31262fi
31263
31264ac_prog=ld
31265if test yes = "$GCC"; then
31266  # Check if gcc -print-prog-name=ld gives a path.
31267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
31268$as_echo_n "checking for ld used by $CC... " >&6; }
31269  case $host in
31270  *-*-mingw*)
31271    # gcc leaves a trailing carriage return, which upsets mingw
31272    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
31273  *)
31274    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
31275  esac
31276  case $ac_prog in
31277    # Accept absolute paths.
31278    [\\/]* | ?:[\\/]*)
31279      re_direlt='/[^/][^/]*/\.\./'
31280      # Canonicalize the pathname of ld
31281      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
31282      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
31283	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
31284      done
31285      test -z "$LD" && LD=$ac_prog
31286      ;;
31287  "")
31288    # If it fails, then pretend we aren't using GCC.
31289    ac_prog=ld
31290    ;;
31291  *)
31292    # If it is relative, then search for the first ld in PATH.
31293    with_gnu_ld=unknown
31294    ;;
31295  esac
31296elif test yes = "$with_gnu_ld"; then
31297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
31298$as_echo_n "checking for GNU ld... " >&6; }
31299else
31300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
31301$as_echo_n "checking for non-GNU ld... " >&6; }
31302fi
31303if ${lt_cv_path_LD+:} false; then :
31304  $as_echo_n "(cached) " >&6
31305else
31306  if test -z "$LD"; then
31307  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
31308  for ac_dir in $PATH; do
31309    IFS=$lt_save_ifs
31310    test -z "$ac_dir" && ac_dir=.
31311    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
31312      lt_cv_path_LD=$ac_dir/$ac_prog
31313      # Check to see if the program is GNU ld.  I'd rather use --version,
31314      # but apparently some variants of GNU ld only accept -v.
31315      # Break only if it was the GNU/non-GNU ld that we prefer.
31316      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
31317      *GNU* | *'with BFD'*)
31318	test no != "$with_gnu_ld" && break
31319	;;
31320      *)
31321	test yes != "$with_gnu_ld" && break
31322	;;
31323      esac
31324    fi
31325  done
31326  IFS=$lt_save_ifs
31327else
31328  lt_cv_path_LD=$LD # Let the user override the test with a path.
31329fi
31330fi
31331
31332LD=$lt_cv_path_LD
31333if test -n "$LD"; then
31334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
31335$as_echo "$LD" >&6; }
31336else
31337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31338$as_echo "no" >&6; }
31339fi
31340test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
31341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
31342$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
31343if ${lt_cv_prog_gnu_ld+:} false; then :
31344  $as_echo_n "(cached) " >&6
31345else
31346  # I'd rather use --version here, but apparently some GNU lds only accept -v.
31347case `$LD -v 2>&1 </dev/null` in
31348*GNU* | *'with BFD'*)
31349  lt_cv_prog_gnu_ld=yes
31350  ;;
31351*)
31352  lt_cv_prog_gnu_ld=no
31353  ;;
31354esac
31355fi
31356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
31357$as_echo "$lt_cv_prog_gnu_ld" >&6; }
31358with_gnu_ld=$lt_cv_prog_gnu_ld
31359
31360
31361
31362
31363
31364
31365
31366      # Check if GNU C++ uses GNU ld as the underlying linker, since the
31367      # archiving commands below assume that GNU ld is being used.
31368      if test yes = "$with_gnu_ld"; then
31369        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
31370        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
31371
31372        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
31373        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
31374
31375        # If archive_cmds runs LD, not CC, wlarc should be empty
31376        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
31377        #     investigate it a little bit more. (MM)
31378        wlarc='$wl'
31379
31380        # ancient GNU ld didn't support --whole-archive et. al.
31381        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
31382	  $GREP 'no-whole-archive' > /dev/null; then
31383          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
31384        else
31385          whole_archive_flag_spec_CXX=
31386        fi
31387      else
31388        with_gnu_ld=no
31389        wlarc=
31390
31391        # A generic and very simple default shared library creation
31392        # command for GNU C++ for the case where it uses the native
31393        # linker, instead of GNU ld.  If possible, this setting should
31394        # overridden to take advantage of the native linker features on
31395        # the platform it is being used on.
31396        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
31397      fi
31398
31399      # Commands to make compiler produce verbose output that lists
31400      # what "hidden" libraries, object files and flags are used when
31401      # linking a shared library.
31402      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
31403
31404    else
31405      GXX=no
31406      with_gnu_ld=no
31407      wlarc=
31408    fi
31409
31410    # PORTME: fill in a description of your system's C++ link characteristics
31411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
31412$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
31413    ld_shlibs_CXX=yes
31414    case $host_os in
31415      aix3*)
31416        # FIXME: insert proper C++ library support
31417        ld_shlibs_CXX=no
31418        ;;
31419      aix[4-9]*)
31420        if test ia64 = "$host_cpu"; then
31421          # On IA64, the linker does run time linking by default, so we don't
31422          # have to do anything special.
31423          aix_use_runtimelinking=no
31424          exp_sym_flag='-Bexport'
31425          no_entry_flag=
31426        else
31427          aix_use_runtimelinking=no
31428
31429          # Test if we are trying to use run time linking or normal
31430          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
31431          # have runtime linking enabled, and use it for executables.
31432          # For shared libraries, we enable/disable runtime linking
31433          # depending on the kind of the shared library created -
31434          # when "with_aix_soname,aix_use_runtimelinking" is:
31435          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
31436          # "aix,yes"  lib.so          shared, rtl:yes, for executables
31437          #            lib.a           static archive
31438          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
31439          #            lib.a(lib.so.V) shared, rtl:no,  for executables
31440          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
31441          #            lib.a(lib.so.V) shared, rtl:no
31442          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
31443          #            lib.a           static archive
31444          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
31445	    for ld_flag in $LDFLAGS; do
31446	      case $ld_flag in
31447	      *-brtl*)
31448	        aix_use_runtimelinking=yes
31449	        break
31450	        ;;
31451	      esac
31452	    done
31453	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
31454	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
31455	      # so we don't have lib.a shared libs to link our executables.
31456	      # We have to force runtime linking in this case.
31457	      aix_use_runtimelinking=yes
31458	      LDFLAGS="$LDFLAGS -Wl,-brtl"
31459	    fi
31460	    ;;
31461          esac
31462
31463          exp_sym_flag='-bexport'
31464          no_entry_flag='-bnoentry'
31465        fi
31466
31467        # When large executables or shared objects are built, AIX ld can
31468        # have problems creating the table of contents.  If linking a library
31469        # or program results in "error TOC overflow" add -mminimal-toc to
31470        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
31471        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
31472
31473        archive_cmds_CXX=''
31474        hardcode_direct_CXX=yes
31475        hardcode_direct_absolute_CXX=yes
31476        hardcode_libdir_separator_CXX=':'
31477        link_all_deplibs_CXX=yes
31478        file_list_spec_CXX='$wl-f,'
31479        case $with_aix_soname,$aix_use_runtimelinking in
31480        aix,*) ;;	# no import file
31481        svr4,* | *,yes) # use import file
31482          # The Import File defines what to hardcode.
31483          hardcode_direct_CXX=no
31484          hardcode_direct_absolute_CXX=no
31485          ;;
31486        esac
31487
31488        if test yes = "$GXX"; then
31489          case $host_os in aix4.[012]|aix4.[012].*)
31490          # We only want to do this on AIX 4.2 and lower, the check
31491          # below for broken collect2 doesn't work under 4.3+
31492	  collect2name=`$CC -print-prog-name=collect2`
31493	  if test -f "$collect2name" &&
31494	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
31495	  then
31496	    # We have reworked collect2
31497	    :
31498	  else
31499	    # We have old collect2
31500	    hardcode_direct_CXX=unsupported
31501	    # It fails to find uninstalled libraries when the uninstalled
31502	    # path is not listed in the libpath.  Setting hardcode_minus_L
31503	    # to unsupported forces relinking
31504	    hardcode_minus_L_CXX=yes
31505	    hardcode_libdir_flag_spec_CXX='-L$libdir'
31506	    hardcode_libdir_separator_CXX=
31507	  fi
31508          esac
31509          shared_flag='-shared'
31510	  if test yes = "$aix_use_runtimelinking"; then
31511	    shared_flag=$shared_flag' $wl-G'
31512	  fi
31513	  # Need to ensure runtime linking is disabled for the traditional
31514	  # shared library, or the linker may eventually find shared libraries
31515	  # /with/ Import File - we do not want to mix them.
31516	  shared_flag_aix='-shared'
31517	  shared_flag_svr4='-shared $wl-G'
31518        else
31519          # not using gcc
31520          if test ia64 = "$host_cpu"; then
31521	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
31522	  # chokes on -Wl,-G. The following line is correct:
31523	  shared_flag='-G'
31524          else
31525	    if test yes = "$aix_use_runtimelinking"; then
31526	      shared_flag='$wl-G'
31527	    else
31528	      shared_flag='$wl-bM:SRE'
31529	    fi
31530	    shared_flag_aix='$wl-bM:SRE'
31531	    shared_flag_svr4='$wl-G'
31532          fi
31533        fi
31534
31535        export_dynamic_flag_spec_CXX='$wl-bexpall'
31536        # It seems that -bexpall does not export symbols beginning with
31537        # underscore (_), so it is better to generate a list of symbols to
31538	# export.
31539        always_export_symbols_CXX=yes
31540	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
31541          # Warning - without using the other runtime loading flags (-brtl),
31542          # -berok will link without error, but may produce a broken library.
31543          # The "-G" linker flag allows undefined symbols.
31544          no_undefined_flag_CXX='-bernotok'
31545          # Determine the default libpath from the value encoded in an empty
31546          # executable.
31547          if test set = "${lt_cv_aix_libpath+set}"; then
31548  aix_libpath=$lt_cv_aix_libpath
31549else
31550  if ${lt_cv_aix_libpath__CXX+:} false; then :
31551  $as_echo_n "(cached) " >&6
31552else
31553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31554/* end confdefs.h.  */
31555
31556int
31557main ()
31558{
31559
31560  ;
31561  return 0;
31562}
31563_ACEOF
31564if ac_fn_cxx_try_link "$LINENO"; then :
31565
31566  lt_aix_libpath_sed='
31567      /Import File Strings/,/^$/ {
31568	  /^0/ {
31569	      s/^0  *\([^ ]*\) *$/\1/
31570	      p
31571	  }
31572      }'
31573  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31574  # Check for a 64-bit object if we didn't find anything.
31575  if test -z "$lt_cv_aix_libpath__CXX"; then
31576    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31577  fi
31578fi
31579rm -f core conftest.err conftest.$ac_objext \
31580    conftest$ac_exeext conftest.$ac_ext
31581  if test -z "$lt_cv_aix_libpath__CXX"; then
31582    lt_cv_aix_libpath__CXX=/usr/lib:/lib
31583  fi
31584
31585fi
31586
31587  aix_libpath=$lt_cv_aix_libpath__CXX
31588fi
31589
31590          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
31591
31592          archive_expsym_cmds_CXX='$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
31593        else
31594          if test ia64 = "$host_cpu"; then
31595	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
31596	    allow_undefined_flag_CXX="-z nodefs"
31597	    archive_expsym_cmds_CXX="\$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"
31598          else
31599	    # Determine the default libpath from the value encoded in an
31600	    # empty executable.
31601	    if test set = "${lt_cv_aix_libpath+set}"; then
31602  aix_libpath=$lt_cv_aix_libpath
31603else
31604  if ${lt_cv_aix_libpath__CXX+:} false; then :
31605  $as_echo_n "(cached) " >&6
31606else
31607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31608/* end confdefs.h.  */
31609
31610int
31611main ()
31612{
31613
31614  ;
31615  return 0;
31616}
31617_ACEOF
31618if ac_fn_cxx_try_link "$LINENO"; then :
31619
31620  lt_aix_libpath_sed='
31621      /Import File Strings/,/^$/ {
31622	  /^0/ {
31623	      s/^0  *\([^ ]*\) *$/\1/
31624	      p
31625	  }
31626      }'
31627  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31628  # Check for a 64-bit object if we didn't find anything.
31629  if test -z "$lt_cv_aix_libpath__CXX"; then
31630    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31631  fi
31632fi
31633rm -f core conftest.err conftest.$ac_objext \
31634    conftest$ac_exeext conftest.$ac_ext
31635  if test -z "$lt_cv_aix_libpath__CXX"; then
31636    lt_cv_aix_libpath__CXX=/usr/lib:/lib
31637  fi
31638
31639fi
31640
31641  aix_libpath=$lt_cv_aix_libpath__CXX
31642fi
31643
31644	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
31645	    # Warning - without using the other run time loading flags,
31646	    # -berok will link without error, but may produce a broken library.
31647	    no_undefined_flag_CXX=' $wl-bernotok'
31648	    allow_undefined_flag_CXX=' $wl-berok'
31649	    if test yes = "$with_gnu_ld"; then
31650	      # We only use this code for GNU lds that support --whole-archive.
31651	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
31652	    else
31653	      # Exported symbols can be pulled into shared objects from archives
31654	      whole_archive_flag_spec_CXX='$convenience'
31655	    fi
31656	    archive_cmds_need_lc_CXX=yes
31657	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
31658	    # -brtl affects multiple linker settings, -berok does not and is overridden later
31659	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
31660	    if test svr4 != "$with_aix_soname"; then
31661	      # This is similar to how AIX traditionally builds its shared
31662	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
31663	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
31664	    fi
31665	    if test aix != "$with_aix_soname"; then
31666	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
31667	    else
31668	      # used by -dlpreopen to get the symbols
31669	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
31670	    fi
31671	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
31672          fi
31673        fi
31674        ;;
31675
31676      beos*)
31677	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
31678	  allow_undefined_flag_CXX=unsupported
31679	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
31680	  # support --undefined.  This deserves some investigation.  FIXME
31681	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
31682	else
31683	  ld_shlibs_CXX=no
31684	fi
31685	;;
31686
31687      chorus*)
31688        case $cc_basename in
31689          *)
31690	  # FIXME: insert proper C++ library support
31691	  ld_shlibs_CXX=no
31692	  ;;
31693        esac
31694        ;;
31695
31696      cygwin* | mingw* | pw32* | cegcc*)
31697	case $GXX,$cc_basename in
31698	,cl* | no,cl*)
31699	  # Native MSVC
31700	  # hardcode_libdir_flag_spec is actually meaningless, as there is
31701	  # no search path for DLLs.
31702	  hardcode_libdir_flag_spec_CXX=' '
31703	  allow_undefined_flag_CXX=unsupported
31704	  always_export_symbols_CXX=yes
31705	  file_list_spec_CXX='@'
31706	  # Tell ltmain to make .lib files, not .a files.
31707	  libext=lib
31708	  # Tell ltmain to make .dll files, not .so files.
31709	  shrext_cmds=.dll
31710	  # FIXME: Setting linknames here is a bad hack.
31711	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
31712	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
31713              cp "$export_symbols" "$output_objdir/$soname.def";
31714              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
31715            else
31716              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
31717            fi~
31718            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
31719            linknames='
31720	  # The linker will not automatically build a static lib if we build a DLL.
31721	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
31722	  enable_shared_with_static_runtimes_CXX=yes
31723	  # Don't use ranlib
31724	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
31725	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
31726            lt_tool_outputfile="@TOOL_OUTPUT@"~
31727            case $lt_outputfile in
31728              *.exe|*.EXE) ;;
31729              *)
31730                lt_outputfile=$lt_outputfile.exe
31731                lt_tool_outputfile=$lt_tool_outputfile.exe
31732                ;;
31733            esac~
31734            func_to_tool_file "$lt_outputfile"~
31735            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
31736              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
31737              $RM "$lt_outputfile.manifest";
31738            fi'
31739	  ;;
31740	*)
31741	  # g++
31742	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
31743	  # as there is no search path for DLLs.
31744	  hardcode_libdir_flag_spec_CXX='-L$libdir'
31745	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
31746	  allow_undefined_flag_CXX=unsupported
31747	  always_export_symbols_CXX=no
31748	  enable_shared_with_static_runtimes_CXX=yes
31749
31750	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
31751	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
31752	    # If the export-symbols file already is a .def file, use it as
31753	    # is; otherwise, prepend EXPORTS...
31754	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
31755              cp $export_symbols $output_objdir/$soname.def;
31756            else
31757              echo EXPORTS > $output_objdir/$soname.def;
31758              cat $export_symbols >> $output_objdir/$soname.def;
31759            fi~
31760            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
31761	  else
31762	    ld_shlibs_CXX=no
31763	  fi
31764	  ;;
31765	esac
31766	;;
31767      darwin* | rhapsody*)
31768
31769
31770  archive_cmds_need_lc_CXX=no
31771  hardcode_direct_CXX=no
31772  hardcode_automatic_CXX=yes
31773  hardcode_shlibpath_var_CXX=unsupported
31774  if test yes = "$lt_cv_ld_force_load"; then
31775    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
31776
31777  else
31778    whole_archive_flag_spec_CXX=''
31779  fi
31780  link_all_deplibs_CXX=yes
31781  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
31782  case $cc_basename in
31783     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
31784     *) _lt_dar_can_shared=$GCC ;;
31785  esac
31786  if test yes = "$_lt_dar_can_shared"; then
31787    output_verbose_link_cmd=func_echo_all
31788    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
31789    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
31790    archive_expsym_cmds_CXX="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"
31791    module_expsym_cmds_CXX="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"
31792       if test yes != "$lt_cv_apple_cc_single_mod"; then
31793      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
31794      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
31795    fi
31796
31797  else
31798  ld_shlibs_CXX=no
31799  fi
31800
31801	;;
31802
31803      os2*)
31804	hardcode_libdir_flag_spec_CXX='-L$libdir'
31805	hardcode_minus_L_CXX=yes
31806	allow_undefined_flag_CXX=unsupported
31807	shrext_cmds=.dll
31808	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
31809	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
31810	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
31811	  $ECHO EXPORTS >> $output_objdir/$libname.def~
31812	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
31813	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
31814	  emximp -o $lib $output_objdir/$libname.def'
31815	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
31816	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
31817	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
31818	  $ECHO EXPORTS >> $output_objdir/$libname.def~
31819	  prefix_cmds="$SED"~
31820	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
31821	    prefix_cmds="$prefix_cmds -e 1d";
31822	  fi~
31823	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
31824	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
31825	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
31826	  emximp -o $lib $output_objdir/$libname.def'
31827	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
31828	enable_shared_with_static_runtimes_CXX=yes
31829	;;
31830
31831      dgux*)
31832        case $cc_basename in
31833          ec++*)
31834	    # FIXME: insert proper C++ library support
31835	    ld_shlibs_CXX=no
31836	    ;;
31837          ghcx*)
31838	    # Green Hills C++ Compiler
31839	    # FIXME: insert proper C++ library support
31840	    ld_shlibs_CXX=no
31841	    ;;
31842          *)
31843	    # FIXME: insert proper C++ library support
31844	    ld_shlibs_CXX=no
31845	    ;;
31846        esac
31847        ;;
31848
31849      freebsd2.*)
31850        # C++ shared libraries reported to be fairly broken before
31851	# switch to ELF
31852        ld_shlibs_CXX=no
31853        ;;
31854
31855      freebsd-elf*)
31856        archive_cmds_need_lc_CXX=no
31857        ;;
31858
31859      freebsd* | dragonfly*)
31860        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
31861        # conventions
31862        ld_shlibs_CXX=yes
31863        ;;
31864
31865      haiku*)
31866        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
31867        link_all_deplibs_CXX=yes
31868        ;;
31869
31870      hpux9*)
31871        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
31872        hardcode_libdir_separator_CXX=:
31873        export_dynamic_flag_spec_CXX='$wl-E'
31874        hardcode_direct_CXX=yes
31875        hardcode_minus_L_CXX=yes # Not in the search PATH,
31876				             # but as the default
31877				             # location of the library.
31878
31879        case $cc_basename in
31880          CC*)
31881            # FIXME: insert proper C++ library support
31882            ld_shlibs_CXX=no
31883            ;;
31884          aCC*)
31885            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
31886            # Commands to make compiler produce verbose output that lists
31887            # what "hidden" libraries, object files and flags are used when
31888            # linking a shared library.
31889            #
31890            # There doesn't appear to be a way to prevent this compiler from
31891            # explicitly linking system object files so we need to strip them
31892            # from the output so that they don't get included in the library
31893            # dependencies.
31894            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
31895            ;;
31896          *)
31897            if test yes = "$GXX"; then
31898              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
31899            else
31900              # FIXME: insert proper C++ library support
31901              ld_shlibs_CXX=no
31902            fi
31903            ;;
31904        esac
31905        ;;
31906
31907      hpux10*|hpux11*)
31908        if test no = "$with_gnu_ld"; then
31909	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
31910	  hardcode_libdir_separator_CXX=:
31911
31912          case $host_cpu in
31913            hppa*64*|ia64*)
31914              ;;
31915            *)
31916	      export_dynamic_flag_spec_CXX='$wl-E'
31917              ;;
31918          esac
31919        fi
31920        case $host_cpu in
31921          hppa*64*|ia64*)
31922            hardcode_direct_CXX=no
31923            hardcode_shlibpath_var_CXX=no
31924            ;;
31925          *)
31926            hardcode_direct_CXX=yes
31927            hardcode_direct_absolute_CXX=yes
31928            hardcode_minus_L_CXX=yes # Not in the search PATH,
31929					         # but as the default
31930					         # location of the library.
31931            ;;
31932        esac
31933
31934        case $cc_basename in
31935          CC*)
31936	    # FIXME: insert proper C++ library support
31937	    ld_shlibs_CXX=no
31938	    ;;
31939          aCC*)
31940	    case $host_cpu in
31941	      hppa*64*)
31942	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
31943	        ;;
31944	      ia64*)
31945	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
31946	        ;;
31947	      *)
31948	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
31949	        ;;
31950	    esac
31951	    # Commands to make compiler produce verbose output that lists
31952	    # what "hidden" libraries, object files and flags are used when
31953	    # linking a shared library.
31954	    #
31955	    # There doesn't appear to be a way to prevent this compiler from
31956	    # explicitly linking system object files so we need to strip them
31957	    # from the output so that they don't get included in the library
31958	    # dependencies.
31959	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
31960	    ;;
31961          *)
31962	    if test yes = "$GXX"; then
31963	      if test no = "$with_gnu_ld"; then
31964	        case $host_cpu in
31965	          hppa*64*)
31966	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
31967	            ;;
31968	          ia64*)
31969	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
31970	            ;;
31971	          *)
31972	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
31973	            ;;
31974	        esac
31975	      fi
31976	    else
31977	      # FIXME: insert proper C++ library support
31978	      ld_shlibs_CXX=no
31979	    fi
31980	    ;;
31981        esac
31982        ;;
31983
31984      interix[3-9]*)
31985	hardcode_direct_CXX=no
31986	hardcode_shlibpath_var_CXX=no
31987	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
31988	export_dynamic_flag_spec_CXX='$wl-E'
31989	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
31990	# Instead, shared libraries are loaded at an image base (0x10000000 by
31991	# default) and relocated if they conflict, which is a slow very memory
31992	# consuming and fragmenting process.  To avoid this, we pick a random,
31993	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
31994	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
31995	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
31996	archive_expsym_cmds_CXX='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'
31997	;;
31998      irix5* | irix6*)
31999        case $cc_basename in
32000          CC*)
32001	    # SGI C++
32002	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
32003
32004	    # Archives containing C++ object files must be created using
32005	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
32006	    # necessary to make sure instantiated templates are included
32007	    # in the archive.
32008	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
32009	    ;;
32010          *)
32011	    if test yes = "$GXX"; then
32012	      if test no = "$with_gnu_ld"; then
32013	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
32014	      else
32015	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
32016	      fi
32017	    fi
32018	    link_all_deplibs_CXX=yes
32019	    ;;
32020        esac
32021        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
32022        hardcode_libdir_separator_CXX=:
32023        inherit_rpath_CXX=yes
32024        ;;
32025
32026      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
32027        case $cc_basename in
32028          KCC*)
32029	    # Kuck and Associates, Inc. (KAI) C++ Compiler
32030
32031	    # KCC will only create a shared library if the output file
32032	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
32033	    # to its proper name (with version) after linking.
32034	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
32035	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
32036	    # Commands to make compiler produce verbose output that lists
32037	    # what "hidden" libraries, object files and flags are used when
32038	    # linking a shared library.
32039	    #
32040	    # There doesn't appear to be a way to prevent this compiler from
32041	    # explicitly linking system object files so we need to strip them
32042	    # from the output so that they don't get included in the library
32043	    # dependencies.
32044	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
32045
32046	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
32047	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
32048
32049	    # Archives containing C++ object files must be created using
32050	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
32051	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
32052	    ;;
32053	  icpc* | ecpc* )
32054	    # Intel C++
32055	    with_gnu_ld=yes
32056	    # version 8.0 and above of icpc choke on multiply defined symbols
32057	    # if we add $predep_objects and $postdep_objects, however 7.1 and
32058	    # earlier do not add the objects themselves.
32059	    case `$CC -V 2>&1` in
32060	      *"Version 7."*)
32061	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
32062		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
32063		;;
32064	      *)  # Version 8.0 or newer
32065	        tmp_idyn=
32066	        case $host_cpu in
32067		  ia64*) tmp_idyn=' -i_dynamic';;
32068		esac
32069	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
32070		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
32071		;;
32072	    esac
32073	    archive_cmds_need_lc_CXX=no
32074	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
32075	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
32076	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
32077	    ;;
32078          pgCC* | pgcpp*)
32079            # Portland Group C++ compiler
32080	    case `$CC -V` in
32081	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
32082	      prelink_cmds_CXX='tpldir=Template.dir~
32083               rm -rf $tpldir~
32084               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
32085               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
32086	      old_archive_cmds_CXX='tpldir=Template.dir~
32087                rm -rf $tpldir~
32088                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
32089                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
32090                $RANLIB $oldlib'
32091	      archive_cmds_CXX='tpldir=Template.dir~
32092                rm -rf $tpldir~
32093                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
32094                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
32095	      archive_expsym_cmds_CXX='tpldir=Template.dir~
32096                rm -rf $tpldir~
32097                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
32098                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
32099	      ;;
32100	    *) # Version 6 and above use weak symbols
32101	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
32102	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
32103	      ;;
32104	    esac
32105
32106	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
32107	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
32108	    whole_archive_flag_spec_CXX='$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'
32109            ;;
32110	  cxx*)
32111	    # Compaq C++
32112	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
32113	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
32114
32115	    runpath_var=LD_RUN_PATH
32116	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
32117	    hardcode_libdir_separator_CXX=:
32118
32119	    # Commands to make compiler produce verbose output that lists
32120	    # what "hidden" libraries, object files and flags are used when
32121	    # linking a shared library.
32122	    #
32123	    # There doesn't appear to be a way to prevent this compiler from
32124	    # explicitly linking system object files so we need to strip them
32125	    # from the output so that they don't get included in the library
32126	    # dependencies.
32127	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
32128	    ;;
32129	  xl* | mpixl* | bgxl*)
32130	    # IBM XL 8.0 on PPC, with GNU ld
32131	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
32132	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
32133	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
32134	    if test yes = "$supports_anon_versioning"; then
32135	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
32136                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
32137                echo "local: *; };" >> $output_objdir/$libname.ver~
32138                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
32139	    fi
32140	    ;;
32141	  *)
32142	    case `$CC -V 2>&1 | sed 5q` in
32143	    *Sun\ C*)
32144	      # Sun C++ 5.9
32145	      no_undefined_flag_CXX=' -zdefs'
32146	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32147	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
32148	      hardcode_libdir_flag_spec_CXX='-R$libdir'
32149	      whole_archive_flag_spec_CXX='$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'
32150	      compiler_needs_object_CXX=yes
32151
32152	      # Not sure whether something based on
32153	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
32154	      # would be better.
32155	      output_verbose_link_cmd='func_echo_all'
32156
32157	      # Archives containing C++ object files must be created using
32158	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
32159	      # necessary to make sure instantiated templates are included
32160	      # in the archive.
32161	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
32162	      ;;
32163	    esac
32164	    ;;
32165	esac
32166	;;
32167
32168      lynxos*)
32169        # FIXME: insert proper C++ library support
32170	ld_shlibs_CXX=no
32171	;;
32172
32173      m88k*)
32174        # FIXME: insert proper C++ library support
32175        ld_shlibs_CXX=no
32176	;;
32177
32178      mvs*)
32179        case $cc_basename in
32180          cxx*)
32181	    # FIXME: insert proper C++ library support
32182	    ld_shlibs_CXX=no
32183	    ;;
32184	  *)
32185	    # FIXME: insert proper C++ library support
32186	    ld_shlibs_CXX=no
32187	    ;;
32188	esac
32189	;;
32190
32191      netbsd*)
32192        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
32193	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
32194	  wlarc=
32195	  hardcode_libdir_flag_spec_CXX='-R$libdir'
32196	  hardcode_direct_CXX=yes
32197	  hardcode_shlibpath_var_CXX=no
32198	fi
32199	# Workaround some broken pre-1.5 toolchains
32200	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
32201	;;
32202
32203      *nto* | *qnx*)
32204        ld_shlibs_CXX=yes
32205	;;
32206
32207      openbsd* | bitrig*)
32208	if test -f /usr/libexec/ld.so; then
32209	  hardcode_direct_CXX=yes
32210	  hardcode_shlibpath_var_CXX=no
32211	  hardcode_direct_absolute_CXX=yes
32212	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
32213	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
32214	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
32215	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
32216	    export_dynamic_flag_spec_CXX='$wl-E'
32217	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
32218	  fi
32219	  output_verbose_link_cmd=func_echo_all
32220	else
32221	  ld_shlibs_CXX=no
32222	fi
32223	;;
32224
32225      osf3* | osf4* | osf5*)
32226        case $cc_basename in
32227          KCC*)
32228	    # Kuck and Associates, Inc. (KAI) C++ Compiler
32229
32230	    # KCC will only create a shared library if the output file
32231	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
32232	    # to its proper name (with version) after linking.
32233	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
32234
32235	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
32236	    hardcode_libdir_separator_CXX=:
32237
32238	    # Archives containing C++ object files must be created using
32239	    # the KAI C++ compiler.
32240	    case $host in
32241	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
32242	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
32243	    esac
32244	    ;;
32245          RCC*)
32246	    # Rational C++ 2.4.1
32247	    # FIXME: insert proper C++ library support
32248	    ld_shlibs_CXX=no
32249	    ;;
32250          cxx*)
32251	    case $host in
32252	      osf3*)
32253	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
32254	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
32255	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
32256		;;
32257	      *)
32258	        allow_undefined_flag_CXX=' -expect_unresolved \*'
32259	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
32260	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
32261                  echo "-hidden">> $lib.exp~
32262                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
32263                  $RM $lib.exp'
32264	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
32265		;;
32266	    esac
32267
32268	    hardcode_libdir_separator_CXX=:
32269
32270	    # Commands to make compiler produce verbose output that lists
32271	    # what "hidden" libraries, object files and flags are used when
32272	    # linking a shared library.
32273	    #
32274	    # There doesn't appear to be a way to prevent this compiler from
32275	    # explicitly linking system object files so we need to strip them
32276	    # from the output so that they don't get included in the library
32277	    # dependencies.
32278	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
32279	    ;;
32280	  *)
32281	    if test yes,no = "$GXX,$with_gnu_ld"; then
32282	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
32283	      case $host in
32284	        osf3*)
32285	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
32286		  ;;
32287	        *)
32288	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
32289		  ;;
32290	      esac
32291
32292	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
32293	      hardcode_libdir_separator_CXX=:
32294
32295	      # Commands to make compiler produce verbose output that lists
32296	      # what "hidden" libraries, object files and flags are used when
32297	      # linking a shared library.
32298	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
32299
32300	    else
32301	      # FIXME: insert proper C++ library support
32302	      ld_shlibs_CXX=no
32303	    fi
32304	    ;;
32305        esac
32306        ;;
32307
32308      psos*)
32309        # FIXME: insert proper C++ library support
32310        ld_shlibs_CXX=no
32311        ;;
32312
32313      sunos4*)
32314        case $cc_basename in
32315          CC*)
32316	    # Sun C++ 4.x
32317	    # FIXME: insert proper C++ library support
32318	    ld_shlibs_CXX=no
32319	    ;;
32320          lcc*)
32321	    # Lucid
32322	    # FIXME: insert proper C++ library support
32323	    ld_shlibs_CXX=no
32324	    ;;
32325          *)
32326	    # FIXME: insert proper C++ library support
32327	    ld_shlibs_CXX=no
32328	    ;;
32329        esac
32330        ;;
32331
32332      solaris*)
32333        case $cc_basename in
32334          CC* | sunCC*)
32335	    # Sun C++ 4.2, 5.x and Centerline C++
32336            archive_cmds_need_lc_CXX=yes
32337	    no_undefined_flag_CXX=' -zdefs'
32338	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32339	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
32340              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
32341
32342	    hardcode_libdir_flag_spec_CXX='-R$libdir'
32343	    hardcode_shlibpath_var_CXX=no
32344	    case $host_os in
32345	      solaris2.[0-5] | solaris2.[0-5].*) ;;
32346	      *)
32347		# The compiler driver will combine and reorder linker options,
32348		# but understands '-z linker_flag'.
32349	        # Supported since Solaris 2.6 (maybe 2.5.1?)
32350		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
32351	        ;;
32352	    esac
32353	    link_all_deplibs_CXX=yes
32354
32355	    output_verbose_link_cmd='func_echo_all'
32356
32357	    # Archives containing C++ object files must be created using
32358	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
32359	    # necessary to make sure instantiated templates are included
32360	    # in the archive.
32361	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
32362	    ;;
32363          gcx*)
32364	    # Green Hills C++ Compiler
32365	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
32366
32367	    # The C++ compiler must be used to create the archive.
32368	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
32369	    ;;
32370          *)
32371	    # GNU C++ compiler with Solaris linker
32372	    if test yes,no = "$GXX,$with_gnu_ld"; then
32373	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
32374	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
32375	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
32376	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
32377                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
32378
32379	        # Commands to make compiler produce verbose output that lists
32380	        # what "hidden" libraries, object files and flags are used when
32381	        # linking a shared library.
32382	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
32383	      else
32384	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
32385	        # platform.
32386	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
32387	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
32388                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
32389
32390	        # Commands to make compiler produce verbose output that lists
32391	        # what "hidden" libraries, object files and flags are used when
32392	        # linking a shared library.
32393	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
32394	      fi
32395
32396	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
32397	      case $host_os in
32398		solaris2.[0-5] | solaris2.[0-5].*) ;;
32399		*)
32400		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
32401		  ;;
32402	      esac
32403	    fi
32404	    ;;
32405        esac
32406        ;;
32407
32408    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
32409      no_undefined_flag_CXX='$wl-z,text'
32410      archive_cmds_need_lc_CXX=no
32411      hardcode_shlibpath_var_CXX=no
32412      runpath_var='LD_RUN_PATH'
32413
32414      case $cc_basename in
32415        CC*)
32416	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32417	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32418	  ;;
32419	*)
32420	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32421	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32422	  ;;
32423      esac
32424      ;;
32425
32426      sysv5* | sco3.2v5* | sco5v6*)
32427	# Note: We CANNOT use -z defs as we might desire, because we do not
32428	# link with -lc, and that would cause any symbols used from libc to
32429	# always be unresolved, which means just about no library would
32430	# ever link correctly.  If we're not using GNU ld we use -z text
32431	# though, which does catch some bad symbols but isn't as heavy-handed
32432	# as -z defs.
32433	no_undefined_flag_CXX='$wl-z,text'
32434	allow_undefined_flag_CXX='$wl-z,nodefs'
32435	archive_cmds_need_lc_CXX=no
32436	hardcode_shlibpath_var_CXX=no
32437	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
32438	hardcode_libdir_separator_CXX=':'
32439	link_all_deplibs_CXX=yes
32440	export_dynamic_flag_spec_CXX='$wl-Bexport'
32441	runpath_var='LD_RUN_PATH'
32442
32443	case $cc_basename in
32444          CC*)
32445	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32446	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32447	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
32448              '"$old_archive_cmds_CXX"
32449	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
32450              '"$reload_cmds_CXX"
32451	    ;;
32452	  *)
32453	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32454	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32455	    ;;
32456	esac
32457      ;;
32458
32459      tandem*)
32460        case $cc_basename in
32461          NCC*)
32462	    # NonStop-UX NCC 3.20
32463	    # FIXME: insert proper C++ library support
32464	    ld_shlibs_CXX=no
32465	    ;;
32466          *)
32467	    # FIXME: insert proper C++ library support
32468	    ld_shlibs_CXX=no
32469	    ;;
32470        esac
32471        ;;
32472
32473      vxworks*)
32474        # FIXME: insert proper C++ library support
32475        ld_shlibs_CXX=no
32476        ;;
32477
32478      *)
32479        # FIXME: insert proper C++ library support
32480        ld_shlibs_CXX=no
32481        ;;
32482    esac
32483
32484    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
32485$as_echo "$ld_shlibs_CXX" >&6; }
32486    test no = "$ld_shlibs_CXX" && can_build_shared=no
32487
32488    GCC_CXX=$GXX
32489    LD_CXX=$LD
32490
32491    ## CAVEAT EMPTOR:
32492    ## There is no encapsulation within the following macros, do not change
32493    ## the running order or otherwise move them around unless you know exactly
32494    ## what you are doing...
32495    # Dependencies to place before and after the object being linked:
32496predep_objects_CXX=
32497postdep_objects_CXX=
32498predeps_CXX=
32499postdeps_CXX=
32500compiler_lib_search_path_CXX=
32501
32502cat > conftest.$ac_ext <<_LT_EOF
32503class Foo
32504{
32505public:
32506  Foo (void) { a = 0; }
32507private:
32508  int a;
32509};
32510_LT_EOF
32511
32512
32513_lt_libdeps_save_CFLAGS=$CFLAGS
32514case "$CC $CFLAGS " in #(
32515*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
32516*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
32517*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
32518esac
32519
32520if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
32521  (eval $ac_compile) 2>&5
32522  ac_status=$?
32523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32524  test $ac_status = 0; }; then
32525  # Parse the compiler output and extract the necessary
32526  # objects, libraries and library flags.
32527
32528  # Sentinel used to keep track of whether or not we are before
32529  # the conftest object file.
32530  pre_test_object_deps_done=no
32531
32532  for p in `eval "$output_verbose_link_cmd"`; do
32533    case $prev$p in
32534
32535    -L* | -R* | -l*)
32536       # Some compilers place space between "-{L,R}" and the path.
32537       # Remove the space.
32538       if test x-L = "$p" ||
32539          test x-R = "$p"; then
32540	 prev=$p
32541	 continue
32542       fi
32543
32544       # Expand the sysroot to ease extracting the directories later.
32545       if test -z "$prev"; then
32546         case $p in
32547         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
32548         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
32549         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
32550         esac
32551       fi
32552       case $p in
32553       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
32554       esac
32555       if test no = "$pre_test_object_deps_done"; then
32556	 case $prev in
32557	 -L | -R)
32558	   # Internal compiler library paths should come after those
32559	   # provided the user.  The postdeps already come after the
32560	   # user supplied libs so there is no need to process them.
32561	   if test -z "$compiler_lib_search_path_CXX"; then
32562	     compiler_lib_search_path_CXX=$prev$p
32563	   else
32564	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
32565	   fi
32566	   ;;
32567	 # The "-l" case would never come before the object being
32568	 # linked, so don't bother handling this case.
32569	 esac
32570       else
32571	 if test -z "$postdeps_CXX"; then
32572	   postdeps_CXX=$prev$p
32573	 else
32574	   postdeps_CXX="${postdeps_CXX} $prev$p"
32575	 fi
32576       fi
32577       prev=
32578       ;;
32579
32580    *.lto.$objext) ;; # Ignore GCC LTO objects
32581    *.$objext)
32582       # This assumes that the test object file only shows up
32583       # once in the compiler output.
32584       if test "$p" = "conftest.$objext"; then
32585	 pre_test_object_deps_done=yes
32586	 continue
32587       fi
32588
32589       if test no = "$pre_test_object_deps_done"; then
32590	 if test -z "$predep_objects_CXX"; then
32591	   predep_objects_CXX=$p
32592	 else
32593	   predep_objects_CXX="$predep_objects_CXX $p"
32594	 fi
32595       else
32596	 if test -z "$postdep_objects_CXX"; then
32597	   postdep_objects_CXX=$p
32598	 else
32599	   postdep_objects_CXX="$postdep_objects_CXX $p"
32600	 fi
32601       fi
32602       ;;
32603
32604    *) ;; # Ignore the rest.
32605
32606    esac
32607  done
32608
32609  # Clean up.
32610  rm -f a.out a.exe
32611else
32612  echo "libtool.m4: error: problem compiling CXX test program"
32613fi
32614
32615$RM -f confest.$objext
32616CFLAGS=$_lt_libdeps_save_CFLAGS
32617
32618# PORTME: override above test on systems where it is broken
32619case $host_os in
32620interix[3-9]*)
32621  # Interix 3.5 installs completely hosed .la files for C++, so rather than
32622  # hack all around it, let's just trust "g++" to DTRT.
32623  predep_objects_CXX=
32624  postdep_objects_CXX=
32625  postdeps_CXX=
32626  ;;
32627esac
32628
32629
32630case " $postdeps_CXX " in
32631*" -lc "*) archive_cmds_need_lc_CXX=no ;;
32632esac
32633 compiler_lib_search_dirs_CXX=
32634if test -n "${compiler_lib_search_path_CXX}"; then
32635 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
32636fi
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668    lt_prog_compiler_wl_CXX=
32669lt_prog_compiler_pic_CXX=
32670lt_prog_compiler_static_CXX=
32671
32672
32673  # C++ specific cases for pic, static, wl, etc.
32674  if test yes = "$GXX"; then
32675    lt_prog_compiler_wl_CXX='-Wl,'
32676    lt_prog_compiler_static_CXX='-static'
32677
32678    case $host_os in
32679    aix*)
32680      # All AIX code is PIC.
32681      if test ia64 = "$host_cpu"; then
32682	# AIX 5 now supports IA64 processor
32683	lt_prog_compiler_static_CXX='-Bstatic'
32684      fi
32685      lt_prog_compiler_pic_CXX='-fPIC'
32686      ;;
32687
32688    amigaos*)
32689      case $host_cpu in
32690      powerpc)
32691            # see comment about AmigaOS4 .so support
32692            lt_prog_compiler_pic_CXX='-fPIC'
32693        ;;
32694      m68k)
32695            # FIXME: we need at least 68020 code to build shared libraries, but
32696            # adding the '-m68020' flag to GCC prevents building anything better,
32697            # like '-m68040'.
32698            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
32699        ;;
32700      esac
32701      ;;
32702
32703    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
32704      # PIC is the default for these OSes.
32705      ;;
32706    mingw* | cygwin* | os2* | pw32* | cegcc*)
32707      # This hack is so that the source file can tell whether it is being
32708      # built for inclusion in a dll (and should export symbols for example).
32709      # Although the cygwin gcc ignores -fPIC, still need this for old-style
32710      # (--disable-auto-import) libraries
32711      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
32712      case $host_os in
32713      os2*)
32714	lt_prog_compiler_static_CXX='$wl-static'
32715	;;
32716      esac
32717      ;;
32718    darwin* | rhapsody*)
32719      # PIC is the default on this platform
32720      # Common symbols not allowed in MH_DYLIB files
32721      lt_prog_compiler_pic_CXX='-fno-common'
32722      ;;
32723    *djgpp*)
32724      # DJGPP does not support shared libraries at all
32725      lt_prog_compiler_pic_CXX=
32726      ;;
32727    haiku*)
32728      # PIC is the default for Haiku.
32729      # The "-static" flag exists, but is broken.
32730      lt_prog_compiler_static_CXX=
32731      ;;
32732    interix[3-9]*)
32733      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
32734      # Instead, we relocate shared libraries at runtime.
32735      ;;
32736    sysv4*MP*)
32737      if test -d /usr/nec; then
32738	lt_prog_compiler_pic_CXX=-Kconform_pic
32739      fi
32740      ;;
32741    hpux*)
32742      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
32743      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
32744      # sets the default TLS model and affects inlining.
32745      case $host_cpu in
32746      hppa*64*)
32747	;;
32748      *)
32749	lt_prog_compiler_pic_CXX='-fPIC'
32750	;;
32751      esac
32752      ;;
32753    *qnx* | *nto*)
32754      # QNX uses GNU C++, but need to define -shared option too, otherwise
32755      # it will coredump.
32756      lt_prog_compiler_pic_CXX='-fPIC -shared'
32757      ;;
32758    *)
32759      lt_prog_compiler_pic_CXX='-fPIC'
32760      ;;
32761    esac
32762  else
32763    case $host_os in
32764      aix[4-9]*)
32765	# All AIX code is PIC.
32766	if test ia64 = "$host_cpu"; then
32767	  # AIX 5 now supports IA64 processor
32768	  lt_prog_compiler_static_CXX='-Bstatic'
32769	else
32770	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
32771	fi
32772	;;
32773      chorus*)
32774	case $cc_basename in
32775	cxch68*)
32776	  # Green Hills C++ Compiler
32777	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
32778	  ;;
32779	esac
32780	;;
32781      mingw* | cygwin* | os2* | pw32* | cegcc*)
32782	# This hack is so that the source file can tell whether it is being
32783	# built for inclusion in a dll (and should export symbols for example).
32784	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
32785	;;
32786      dgux*)
32787	case $cc_basename in
32788	  ec++*)
32789	    lt_prog_compiler_pic_CXX='-KPIC'
32790	    ;;
32791	  ghcx*)
32792	    # Green Hills C++ Compiler
32793	    lt_prog_compiler_pic_CXX='-pic'
32794	    ;;
32795	  *)
32796	    ;;
32797	esac
32798	;;
32799      freebsd* | dragonfly*)
32800	# FreeBSD uses GNU C++
32801	;;
32802      hpux9* | hpux10* | hpux11*)
32803	case $cc_basename in
32804	  CC*)
32805	    lt_prog_compiler_wl_CXX='-Wl,'
32806	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
32807	    if test ia64 != "$host_cpu"; then
32808	      lt_prog_compiler_pic_CXX='+Z'
32809	    fi
32810	    ;;
32811	  aCC*)
32812	    lt_prog_compiler_wl_CXX='-Wl,'
32813	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
32814	    case $host_cpu in
32815	    hppa*64*|ia64*)
32816	      # +Z the default
32817	      ;;
32818	    *)
32819	      lt_prog_compiler_pic_CXX='+Z'
32820	      ;;
32821	    esac
32822	    ;;
32823	  *)
32824	    ;;
32825	esac
32826	;;
32827      interix*)
32828	# This is c89, which is MS Visual C++ (no shared libs)
32829	# Anyone wants to do a port?
32830	;;
32831      irix5* | irix6* | nonstopux*)
32832	case $cc_basename in
32833	  CC*)
32834	    lt_prog_compiler_wl_CXX='-Wl,'
32835	    lt_prog_compiler_static_CXX='-non_shared'
32836	    # CC pic flag -KPIC is the default.
32837	    ;;
32838	  *)
32839	    ;;
32840	esac
32841	;;
32842      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
32843	case $cc_basename in
32844	  KCC*)
32845	    # KAI C++ Compiler
32846	    lt_prog_compiler_wl_CXX='--backend -Wl,'
32847	    lt_prog_compiler_pic_CXX='-fPIC'
32848	    ;;
32849	  ecpc* )
32850	    # old Intel C++ for x86_64, which still supported -KPIC.
32851	    lt_prog_compiler_wl_CXX='-Wl,'
32852	    lt_prog_compiler_pic_CXX='-KPIC'
32853	    lt_prog_compiler_static_CXX='-static'
32854	    ;;
32855	  icpc* )
32856	    # Intel C++, used to be incompatible with GCC.
32857	    # ICC 10 doesn't accept -KPIC any more.
32858	    lt_prog_compiler_wl_CXX='-Wl,'
32859	    lt_prog_compiler_pic_CXX='-fPIC'
32860	    lt_prog_compiler_static_CXX='-static'
32861	    ;;
32862	  pgCC* | pgcpp*)
32863	    # Portland Group C++ compiler
32864	    lt_prog_compiler_wl_CXX='-Wl,'
32865	    lt_prog_compiler_pic_CXX='-fpic'
32866	    lt_prog_compiler_static_CXX='-Bstatic'
32867	    ;;
32868	  cxx*)
32869	    # Compaq C++
32870	    # Make sure the PIC flag is empty.  It appears that all Alpha
32871	    # Linux and Compaq Tru64 Unix objects are PIC.
32872	    lt_prog_compiler_pic_CXX=
32873	    lt_prog_compiler_static_CXX='-non_shared'
32874	    ;;
32875	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
32876	    # IBM XL 8.0, 9.0 on PPC and BlueGene
32877	    lt_prog_compiler_wl_CXX='-Wl,'
32878	    lt_prog_compiler_pic_CXX='-qpic'
32879	    lt_prog_compiler_static_CXX='-qstaticlink'
32880	    ;;
32881	  *)
32882	    case `$CC -V 2>&1 | sed 5q` in
32883	    *Sun\ C*)
32884	      # Sun C++ 5.9
32885	      lt_prog_compiler_pic_CXX='-KPIC'
32886	      lt_prog_compiler_static_CXX='-Bstatic'
32887	      lt_prog_compiler_wl_CXX='-Qoption ld '
32888	      ;;
32889	    esac
32890	    ;;
32891	esac
32892	;;
32893      lynxos*)
32894	;;
32895      m88k*)
32896	;;
32897      mvs*)
32898	case $cc_basename in
32899	  cxx*)
32900	    lt_prog_compiler_pic_CXX='-W c,exportall'
32901	    ;;
32902	  *)
32903	    ;;
32904	esac
32905	;;
32906      netbsd* | netbsdelf*-gnu)
32907	;;
32908      *qnx* | *nto*)
32909        # QNX uses GNU C++, but need to define -shared option too, otherwise
32910        # it will coredump.
32911        lt_prog_compiler_pic_CXX='-fPIC -shared'
32912        ;;
32913      osf3* | osf4* | osf5*)
32914	case $cc_basename in
32915	  KCC*)
32916	    lt_prog_compiler_wl_CXX='--backend -Wl,'
32917	    ;;
32918	  RCC*)
32919	    # Rational C++ 2.4.1
32920	    lt_prog_compiler_pic_CXX='-pic'
32921	    ;;
32922	  cxx*)
32923	    # Digital/Compaq C++
32924	    lt_prog_compiler_wl_CXX='-Wl,'
32925	    # Make sure the PIC flag is empty.  It appears that all Alpha
32926	    # Linux and Compaq Tru64 Unix objects are PIC.
32927	    lt_prog_compiler_pic_CXX=
32928	    lt_prog_compiler_static_CXX='-non_shared'
32929	    ;;
32930	  *)
32931	    ;;
32932	esac
32933	;;
32934      psos*)
32935	;;
32936      solaris*)
32937	case $cc_basename in
32938	  CC* | sunCC*)
32939	    # Sun C++ 4.2, 5.x and Centerline C++
32940	    lt_prog_compiler_pic_CXX='-KPIC'
32941	    lt_prog_compiler_static_CXX='-Bstatic'
32942	    lt_prog_compiler_wl_CXX='-Qoption ld '
32943	    ;;
32944	  gcx*)
32945	    # Green Hills C++ Compiler
32946	    lt_prog_compiler_pic_CXX='-PIC'
32947	    ;;
32948	  *)
32949	    ;;
32950	esac
32951	;;
32952      sunos4*)
32953	case $cc_basename in
32954	  CC*)
32955	    # Sun C++ 4.x
32956	    lt_prog_compiler_pic_CXX='-pic'
32957	    lt_prog_compiler_static_CXX='-Bstatic'
32958	    ;;
32959	  lcc*)
32960	    # Lucid
32961	    lt_prog_compiler_pic_CXX='-pic'
32962	    ;;
32963	  *)
32964	    ;;
32965	esac
32966	;;
32967      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
32968	case $cc_basename in
32969	  CC*)
32970	    lt_prog_compiler_wl_CXX='-Wl,'
32971	    lt_prog_compiler_pic_CXX='-KPIC'
32972	    lt_prog_compiler_static_CXX='-Bstatic'
32973	    ;;
32974	esac
32975	;;
32976      tandem*)
32977	case $cc_basename in
32978	  NCC*)
32979	    # NonStop-UX NCC 3.20
32980	    lt_prog_compiler_pic_CXX='-KPIC'
32981	    ;;
32982	  *)
32983	    ;;
32984	esac
32985	;;
32986      vxworks*)
32987	;;
32988      *)
32989	lt_prog_compiler_can_build_shared_CXX=no
32990	;;
32991    esac
32992  fi
32993
32994case $host_os in
32995  # For platforms that do not support PIC, -DPIC is meaningless:
32996  *djgpp*)
32997    lt_prog_compiler_pic_CXX=
32998    ;;
32999  *)
33000    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
33001    ;;
33002esac
33003
33004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33005$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33006if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
33007  $as_echo_n "(cached) " >&6
33008else
33009  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
33010fi
33011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
33012$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
33013lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
33014
33015#
33016# Check to make sure the PIC flag actually works.
33017#
33018if test -n "$lt_prog_compiler_pic_CXX"; then
33019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
33020$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
33021if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
33022  $as_echo_n "(cached) " >&6
33023else
33024  lt_cv_prog_compiler_pic_works_CXX=no
33025   ac_outfile=conftest.$ac_objext
33026   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33027   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
33028   # Insert the option either (1) after the last *FLAGS variable, or
33029   # (2) before a word containing "conftest.", or (3) at the end.
33030   # Note that $ac_compile itself does not contain backslashes and begins
33031   # with a dollar sign (not a hyphen), so the echo should work correctly.
33032   # The option is referenced via a variable to avoid confusing sed.
33033   lt_compile=`echo "$ac_compile" | $SED \
33034   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33035   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33036   -e 's:$: $lt_compiler_flag:'`
33037   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33038   (eval "$lt_compile" 2>conftest.err)
33039   ac_status=$?
33040   cat conftest.err >&5
33041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042   if (exit $ac_status) && test -s "$ac_outfile"; then
33043     # The compiler can only warn and ignore the option if not recognized
33044     # So say no if there are warnings other than the usual output.
33045     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33046     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33047     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33048       lt_cv_prog_compiler_pic_works_CXX=yes
33049     fi
33050   fi
33051   $RM conftest*
33052
33053fi
33054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
33055$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
33056
33057if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
33058    case $lt_prog_compiler_pic_CXX in
33059     "" | " "*) ;;
33060     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
33061     esac
33062else
33063    lt_prog_compiler_pic_CXX=
33064     lt_prog_compiler_can_build_shared_CXX=no
33065fi
33066
33067fi
33068
33069
33070
33071
33072
33073#
33074# Check to make sure the static flag actually works.
33075#
33076wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
33077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
33078$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
33079if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
33080  $as_echo_n "(cached) " >&6
33081else
33082  lt_cv_prog_compiler_static_works_CXX=no
33083   save_LDFLAGS=$LDFLAGS
33084   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
33085   echo "$lt_simple_link_test_code" > conftest.$ac_ext
33086   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
33087     # The linker can only warn and ignore the option if not recognized
33088     # So say no if there are warnings
33089     if test -s conftest.err; then
33090       # Append any errors to the config.log.
33091       cat conftest.err 1>&5
33092       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
33093       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33094       if diff conftest.exp conftest.er2 >/dev/null; then
33095         lt_cv_prog_compiler_static_works_CXX=yes
33096       fi
33097     else
33098       lt_cv_prog_compiler_static_works_CXX=yes
33099     fi
33100   fi
33101   $RM -r conftest*
33102   LDFLAGS=$save_LDFLAGS
33103
33104fi
33105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
33106$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
33107
33108if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
33109    :
33110else
33111    lt_prog_compiler_static_CXX=
33112fi
33113
33114
33115
33116
33117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33118$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33119if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
33120  $as_echo_n "(cached) " >&6
33121else
33122  lt_cv_prog_compiler_c_o_CXX=no
33123   $RM -r conftest 2>/dev/null
33124   mkdir conftest
33125   cd conftest
33126   mkdir out
33127   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33128
33129   lt_compiler_flag="-o out/conftest2.$ac_objext"
33130   # Insert the option either (1) after the last *FLAGS variable, or
33131   # (2) before a word containing "conftest.", or (3) at the end.
33132   # Note that $ac_compile itself does not contain backslashes and begins
33133   # with a dollar sign (not a hyphen), so the echo should work correctly.
33134   lt_compile=`echo "$ac_compile" | $SED \
33135   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33136   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33137   -e 's:$: $lt_compiler_flag:'`
33138   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33139   (eval "$lt_compile" 2>out/conftest.err)
33140   ac_status=$?
33141   cat out/conftest.err >&5
33142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143   if (exit $ac_status) && test -s out/conftest2.$ac_objext
33144   then
33145     # The compiler can only warn and ignore the option if not recognized
33146     # So say no if there are warnings
33147     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33148     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33149     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33150       lt_cv_prog_compiler_c_o_CXX=yes
33151     fi
33152   fi
33153   chmod u+w . 2>&5
33154   $RM conftest*
33155   # SGI C++ compiler will create directory out/ii_files/ for
33156   # template instantiation
33157   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33158   $RM out/* && rmdir out
33159   cd ..
33160   $RM -r conftest
33161   $RM conftest*
33162
33163fi
33164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
33165$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
33166
33167
33168
33169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33170$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33171if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
33172  $as_echo_n "(cached) " >&6
33173else
33174  lt_cv_prog_compiler_c_o_CXX=no
33175   $RM -r conftest 2>/dev/null
33176   mkdir conftest
33177   cd conftest
33178   mkdir out
33179   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33180
33181   lt_compiler_flag="-o out/conftest2.$ac_objext"
33182   # Insert the option either (1) after the last *FLAGS variable, or
33183   # (2) before a word containing "conftest.", or (3) at the end.
33184   # Note that $ac_compile itself does not contain backslashes and begins
33185   # with a dollar sign (not a hyphen), so the echo should work correctly.
33186   lt_compile=`echo "$ac_compile" | $SED \
33187   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33188   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33189   -e 's:$: $lt_compiler_flag:'`
33190   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33191   (eval "$lt_compile" 2>out/conftest.err)
33192   ac_status=$?
33193   cat out/conftest.err >&5
33194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195   if (exit $ac_status) && test -s out/conftest2.$ac_objext
33196   then
33197     # The compiler can only warn and ignore the option if not recognized
33198     # So say no if there are warnings
33199     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33200     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33201     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33202       lt_cv_prog_compiler_c_o_CXX=yes
33203     fi
33204   fi
33205   chmod u+w . 2>&5
33206   $RM conftest*
33207   # SGI C++ compiler will create directory out/ii_files/ for
33208   # template instantiation
33209   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33210   $RM out/* && rmdir out
33211   cd ..
33212   $RM -r conftest
33213   $RM conftest*
33214
33215fi
33216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
33217$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
33218
33219
33220
33221
33222hard_links=nottested
33223if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
33224  # do not overwrite the value of need_locks provided by the user
33225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
33226$as_echo_n "checking if we can lock with hard links... " >&6; }
33227  hard_links=yes
33228  $RM conftest*
33229  ln conftest.a conftest.b 2>/dev/null && hard_links=no
33230  touch conftest.a
33231  ln conftest.a conftest.b 2>&5 || hard_links=no
33232  ln conftest.a conftest.b 2>/dev/null && hard_links=no
33233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
33234$as_echo "$hard_links" >&6; }
33235  if test no = "$hard_links"; then
33236    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
33237$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
33238    need_locks=warn
33239  fi
33240else
33241  need_locks=no
33242fi
33243
33244
33245
33246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
33247$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
33248
33249  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33250  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
33251  case $host_os in
33252  aix[4-9]*)
33253    # If we're using GNU nm, then we don't want the "-C" option.
33254    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
33255    # Without the "-l" option, or with the "-B" option, AIX nm treats
33256    # weak defined symbols like other global defined symbols, whereas
33257    # GNU nm marks them as "W".
33258    # While the 'weak' keyword is ignored in the Export File, we need
33259    # it in the Import File for the 'aix-soname' feature, so we have
33260    # to replace the "-B" option with "-P" for AIX nm.
33261    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
33262      export_symbols_cmds_CXX='$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'
33263    else
33264      export_symbols_cmds_CXX='`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'
33265    fi
33266    ;;
33267  pw32*)
33268    export_symbols_cmds_CXX=$ltdll_cmds
33269    ;;
33270  cygwin* | mingw* | cegcc*)
33271    case $cc_basename in
33272    cl*)
33273      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
33274      ;;
33275    *)
33276      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
33277      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
33278      ;;
33279    esac
33280    ;;
33281  linux* | k*bsd*-gnu | gnu*)
33282    link_all_deplibs_CXX=no
33283    ;;
33284  *)
33285    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33286    ;;
33287  esac
33288
33289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
33290$as_echo "$ld_shlibs_CXX" >&6; }
33291test no = "$ld_shlibs_CXX" && can_build_shared=no
33292
33293with_gnu_ld_CXX=$with_gnu_ld
33294
33295
33296
33297
33298
33299
33300#
33301# Do we need to explicitly link libc?
33302#
33303case "x$archive_cmds_need_lc_CXX" in
33304x|xyes)
33305  # Assume -lc should be added
33306  archive_cmds_need_lc_CXX=yes
33307
33308  if test yes,yes = "$GCC,$enable_shared"; then
33309    case $archive_cmds_CXX in
33310    *'~'*)
33311      # FIXME: we may have to deal with multi-command sequences.
33312      ;;
33313    '$CC '*)
33314      # Test whether the compiler implicitly links with -lc since on some
33315      # systems, -lgcc has to come before -lc. If gcc already passes -lc
33316      # to ld, don't add -lc before -lgcc.
33317      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
33318$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
33319if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
33320  $as_echo_n "(cached) " >&6
33321else
33322  $RM conftest*
33323	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33324
33325	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
33326  (eval $ac_compile) 2>&5
33327  ac_status=$?
33328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33329  test $ac_status = 0; } 2>conftest.err; then
33330	  soname=conftest
33331	  lib=conftest
33332	  libobjs=conftest.$ac_objext
33333	  deplibs=
33334	  wl=$lt_prog_compiler_wl_CXX
33335	  pic_flag=$lt_prog_compiler_pic_CXX
33336	  compiler_flags=-v
33337	  linker_flags=-v
33338	  verstring=
33339	  output_objdir=.
33340	  libname=conftest
33341	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
33342	  allow_undefined_flag_CXX=
33343	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
33344  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
33345  ac_status=$?
33346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33347  test $ac_status = 0; }
33348	  then
33349	    lt_cv_archive_cmds_need_lc_CXX=no
33350	  else
33351	    lt_cv_archive_cmds_need_lc_CXX=yes
33352	  fi
33353	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
33354	else
33355	  cat conftest.err 1>&5
33356	fi
33357	$RM conftest*
33358
33359fi
33360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
33361$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
33362      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
33363      ;;
33364    esac
33365  fi
33366  ;;
33367esac
33368
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398
33399
33400
33401
33402
33403
33404
33405
33406
33407
33408
33409
33410
33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
33431$as_echo_n "checking dynamic linker characteristics... " >&6; }
33432
33433library_names_spec=
33434libname_spec='lib$name'
33435soname_spec=
33436shrext_cmds=.so
33437postinstall_cmds=
33438postuninstall_cmds=
33439finish_cmds=
33440finish_eval=
33441shlibpath_var=
33442shlibpath_overrides_runpath=unknown
33443version_type=none
33444dynamic_linker="$host_os ld.so"
33445sys_lib_dlsearch_path_spec="/lib /usr/lib"
33446need_lib_prefix=unknown
33447hardcode_into_libs=no
33448
33449# when you set need_version to no, make sure it does not cause -set_version
33450# flags to be left without arguments
33451need_version=unknown
33452
33453
33454
33455case $host_os in
33456aix3*)
33457  version_type=linux # correct to gnu/linux during the next big refactor
33458  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
33459  shlibpath_var=LIBPATH
33460
33461  # AIX 3 has no versioning support, so we append a major version to the name.
33462  soname_spec='$libname$release$shared_ext$major'
33463  ;;
33464
33465aix[4-9]*)
33466  version_type=linux # correct to gnu/linux during the next big refactor
33467  need_lib_prefix=no
33468  need_version=no
33469  hardcode_into_libs=yes
33470  if test ia64 = "$host_cpu"; then
33471    # AIX 5 supports IA64
33472    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
33473    shlibpath_var=LD_LIBRARY_PATH
33474  else
33475    # With GCC up to 2.95.x, collect2 would create an import file
33476    # for dependence libraries.  The import file would start with
33477    # the line '#! .'.  This would cause the generated library to
33478    # depend on '.', always an invalid library.  This was fixed in
33479    # development snapshots of GCC prior to 3.0.
33480    case $host_os in
33481      aix4 | aix4.[01] | aix4.[01].*)
33482      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
33483	   echo ' yes '
33484	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
33485	:
33486      else
33487	can_build_shared=no
33488      fi
33489      ;;
33490    esac
33491    # Using Import Files as archive members, it is possible to support
33492    # filename-based versioning of shared library archives on AIX. While
33493    # this would work for both with and without runtime linking, it will
33494    # prevent static linking of such archives. So we do filename-based
33495    # shared library versioning with .so extension only, which is used
33496    # when both runtime linking and shared linking is enabled.
33497    # Unfortunately, runtime linking may impact performance, so we do
33498    # not want this to be the default eventually. Also, we use the
33499    # versioned .so libs for executables only if there is the -brtl
33500    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
33501    # To allow for filename-based versioning support, we need to create
33502    # libNAME.so.V as an archive file, containing:
33503    # *) an Import File, referring to the versioned filename of the
33504    #    archive as well as the shared archive member, telling the
33505    #    bitwidth (32 or 64) of that shared object, and providing the
33506    #    list of exported symbols of that shared object, eventually
33507    #    decorated with the 'weak' keyword
33508    # *) the shared object with the F_LOADONLY flag set, to really avoid
33509    #    it being seen by the linker.
33510    # At run time we better use the real file rather than another symlink,
33511    # but for link time we create the symlink libNAME.so -> libNAME.so.V
33512
33513    case $with_aix_soname,$aix_use_runtimelinking in
33514    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
33515    # soname into executable. Probably we can add versioning support to
33516    # collect2, so additional links can be useful in future.
33517    aix,yes) # traditional libtool
33518      dynamic_linker='AIX unversionable lib.so'
33519      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
33520      # instead of lib<name>.a to let people know that these are not
33521      # typical AIX shared libraries.
33522      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33523      ;;
33524    aix,no) # traditional AIX only
33525      dynamic_linker='AIX lib.a(lib.so.V)'
33526      # We preserve .a as extension for shared libraries through AIX4.2
33527      # and later when we are not doing run time linking.
33528      library_names_spec='$libname$release.a $libname.a'
33529      soname_spec='$libname$release$shared_ext$major'
33530      ;;
33531    svr4,*) # full svr4 only
33532      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
33533      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
33534      # We do not specify a path in Import Files, so LIBPATH fires.
33535      shlibpath_overrides_runpath=yes
33536      ;;
33537    *,yes) # both, prefer svr4
33538      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
33539      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
33540      # unpreferred sharedlib libNAME.a needs extra handling
33541      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"'
33542      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"'
33543      # We do not specify a path in Import Files, so LIBPATH fires.
33544      shlibpath_overrides_runpath=yes
33545      ;;
33546    *,no) # both, prefer aix
33547      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
33548      library_names_spec='$libname$release.a $libname.a'
33549      soname_spec='$libname$release$shared_ext$major'
33550      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
33551      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)'
33552      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"'
33553      ;;
33554    esac
33555    shlibpath_var=LIBPATH
33556  fi
33557  ;;
33558
33559amigaos*)
33560  case $host_cpu in
33561  powerpc)
33562    # Since July 2007 AmigaOS4 officially supports .so libraries.
33563    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
33564    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33565    ;;
33566  m68k)
33567    library_names_spec='$libname.ixlibrary $libname.a'
33568    # Create ${libname}_ixlibrary.a entries in /sys/libs.
33569    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'
33570    ;;
33571  esac
33572  ;;
33573
33574beos*)
33575  library_names_spec='$libname$shared_ext'
33576  dynamic_linker="$host_os ld.so"
33577  shlibpath_var=LIBRARY_PATH
33578  ;;
33579
33580bsdi[45]*)
33581  version_type=linux # correct to gnu/linux during the next big refactor
33582  need_version=no
33583  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33584  soname_spec='$libname$release$shared_ext$major'
33585  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
33586  shlibpath_var=LD_LIBRARY_PATH
33587  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
33588  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
33589  # the default ld.so.conf also contains /usr/contrib/lib and
33590  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
33591  # libtool to hard-code these into programs
33592  ;;
33593
33594cygwin* | mingw* | pw32* | cegcc*)
33595  version_type=windows
33596  shrext_cmds=.dll
33597  need_version=no
33598  need_lib_prefix=no
33599
33600  case $GCC,$cc_basename in
33601  yes,*)
33602    # gcc
33603    library_names_spec='$libname.dll.a'
33604    # DLL is installed to $(libdir)/../bin by postinstall_cmds
33605    postinstall_cmds='base_file=`basename \$file`~
33606      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
33607      dldir=$destdir/`dirname \$dlpath`~
33608      test -d \$dldir || mkdir -p \$dldir~
33609      $install_prog $dir/$dlname \$dldir/$dlname~
33610      chmod a+x \$dldir/$dlname~
33611      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
33612        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
33613      fi'
33614    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
33615      dlpath=$dir/\$dldll~
33616       $RM \$dlpath'
33617    shlibpath_overrides_runpath=yes
33618
33619    case $host_os in
33620    cygwin*)
33621      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
33622      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
33623
33624      ;;
33625    mingw* | cegcc*)
33626      # MinGW DLLs use traditional 'lib' prefix
33627      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
33628      ;;
33629    pw32*)
33630      # pw32 DLLs use 'pw' prefix rather than 'lib'
33631      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
33632      ;;
33633    esac
33634    dynamic_linker='Win32 ld.exe'
33635    ;;
33636
33637  *,cl*)
33638    # Native MSVC
33639    libname_spec='$name'
33640    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
33641    library_names_spec='$libname.dll.lib'
33642
33643    case $build_os in
33644    mingw*)
33645      sys_lib_search_path_spec=
33646      lt_save_ifs=$IFS
33647      IFS=';'
33648      for lt_path in $LIB
33649      do
33650        IFS=$lt_save_ifs
33651        # Let DOS variable expansion print the short 8.3 style file name.
33652        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
33653        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
33654      done
33655      IFS=$lt_save_ifs
33656      # Convert to MSYS style.
33657      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
33658      ;;
33659    cygwin*)
33660      # Convert to unix form, then to dos form, then back to unix form
33661      # but this time dos style (no spaces!) so that the unix form looks
33662      # like /cygdrive/c/PROGRA~1:/cygdr...
33663      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
33664      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
33665      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
33666      ;;
33667    *)
33668      sys_lib_search_path_spec=$LIB
33669      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
33670        # It is most probably a Windows format PATH.
33671        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
33672      else
33673        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
33674      fi
33675      # FIXME: find the short name or the path components, as spaces are
33676      # common. (e.g. "Program Files" -> "PROGRA~1")
33677      ;;
33678    esac
33679
33680    # DLL is installed to $(libdir)/../bin by postinstall_cmds
33681    postinstall_cmds='base_file=`basename \$file`~
33682      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
33683      dldir=$destdir/`dirname \$dlpath`~
33684      test -d \$dldir || mkdir -p \$dldir~
33685      $install_prog $dir/$dlname \$dldir/$dlname'
33686    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
33687      dlpath=$dir/\$dldll~
33688       $RM \$dlpath'
33689    shlibpath_overrides_runpath=yes
33690    dynamic_linker='Win32 link.exe'
33691    ;;
33692
33693  *)
33694    # Assume MSVC wrapper
33695    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
33696    dynamic_linker='Win32 ld.exe'
33697    ;;
33698  esac
33699  # FIXME: first we should search . and the directory the executable is in
33700  shlibpath_var=PATH
33701  ;;
33702
33703darwin* | rhapsody*)
33704  dynamic_linker="$host_os dyld"
33705  version_type=darwin
33706  need_lib_prefix=no
33707  need_version=no
33708  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
33709  soname_spec='$libname$release$major$shared_ext'
33710  shlibpath_overrides_runpath=yes
33711  shlibpath_var=DYLD_LIBRARY_PATH
33712  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
33713
33714  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
33715  ;;
33716
33717dgux*)
33718  version_type=linux # correct to gnu/linux during the next big refactor
33719  need_lib_prefix=no
33720  need_version=no
33721  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33722  soname_spec='$libname$release$shared_ext$major'
33723  shlibpath_var=LD_LIBRARY_PATH
33724  ;;
33725
33726freebsd* | dragonfly*)
33727  # DragonFly does not have aout.  When/if they implement a new
33728  # versioning mechanism, adjust this.
33729  if test -x /usr/bin/objformat; then
33730    objformat=`/usr/bin/objformat`
33731  else
33732    case $host_os in
33733    freebsd[23].*) objformat=aout ;;
33734    *) objformat=elf ;;
33735    esac
33736  fi
33737  version_type=freebsd-$objformat
33738  case $version_type in
33739    freebsd-elf*)
33740      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33741      soname_spec='$libname$release$shared_ext$major'
33742      need_version=no
33743      need_lib_prefix=no
33744      ;;
33745    freebsd-*)
33746      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
33747      need_version=yes
33748      ;;
33749  esac
33750  shlibpath_var=LD_LIBRARY_PATH
33751  case $host_os in
33752  freebsd2.*)
33753    shlibpath_overrides_runpath=yes
33754    ;;
33755  freebsd3.[01]* | freebsdelf3.[01]*)
33756    shlibpath_overrides_runpath=yes
33757    hardcode_into_libs=yes
33758    ;;
33759  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
33760  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
33761    shlibpath_overrides_runpath=no
33762    hardcode_into_libs=yes
33763    ;;
33764  *) # from 4.6 on, and DragonFly
33765    shlibpath_overrides_runpath=yes
33766    hardcode_into_libs=yes
33767    ;;
33768  esac
33769  ;;
33770
33771haiku*)
33772  version_type=linux # correct to gnu/linux during the next big refactor
33773  need_lib_prefix=no
33774  need_version=no
33775  dynamic_linker="$host_os runtime_loader"
33776  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33777  soname_spec='$libname$release$shared_ext$major'
33778  shlibpath_var=LIBRARY_PATH
33779  shlibpath_overrides_runpath=no
33780  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
33781  hardcode_into_libs=yes
33782  ;;
33783
33784hpux9* | hpux10* | hpux11*)
33785  # Give a soname corresponding to the major version so that dld.sl refuses to
33786  # link against other versions.
33787  version_type=sunos
33788  need_lib_prefix=no
33789  need_version=no
33790  case $host_cpu in
33791  ia64*)
33792    shrext_cmds='.so'
33793    hardcode_into_libs=yes
33794    dynamic_linker="$host_os dld.so"
33795    shlibpath_var=LD_LIBRARY_PATH
33796    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
33797    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33798    soname_spec='$libname$release$shared_ext$major'
33799    if test 32 = "$HPUX_IA64_MODE"; then
33800      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
33801      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
33802    else
33803      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
33804      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
33805    fi
33806    ;;
33807  hppa*64*)
33808    shrext_cmds='.sl'
33809    hardcode_into_libs=yes
33810    dynamic_linker="$host_os dld.sl"
33811    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
33812    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
33813    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33814    soname_spec='$libname$release$shared_ext$major'
33815    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
33816    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
33817    ;;
33818  *)
33819    shrext_cmds='.sl'
33820    dynamic_linker="$host_os dld.sl"
33821    shlibpath_var=SHLIB_PATH
33822    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
33823    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33824    soname_spec='$libname$release$shared_ext$major'
33825    ;;
33826  esac
33827  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
33828  postinstall_cmds='chmod 555 $lib'
33829  # or fails outright, so override atomically:
33830  install_override_mode=555
33831  ;;
33832
33833interix[3-9]*)
33834  version_type=linux # correct to gnu/linux during the next big refactor
33835  need_lib_prefix=no
33836  need_version=no
33837  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33838  soname_spec='$libname$release$shared_ext$major'
33839  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
33840  shlibpath_var=LD_LIBRARY_PATH
33841  shlibpath_overrides_runpath=no
33842  hardcode_into_libs=yes
33843  ;;
33844
33845irix5* | irix6* | nonstopux*)
33846  case $host_os in
33847    nonstopux*) version_type=nonstopux ;;
33848    *)
33849	if test yes = "$lt_cv_prog_gnu_ld"; then
33850		version_type=linux # correct to gnu/linux during the next big refactor
33851	else
33852		version_type=irix
33853	fi ;;
33854  esac
33855  need_lib_prefix=no
33856  need_version=no
33857  soname_spec='$libname$release$shared_ext$major'
33858  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
33859  case $host_os in
33860  irix5* | nonstopux*)
33861    libsuff= shlibsuff=
33862    ;;
33863  *)
33864    case $LD in # libtool.m4 will add one of these switches to LD
33865    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
33866      libsuff= shlibsuff= libmagic=32-bit;;
33867    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
33868      libsuff=32 shlibsuff=N32 libmagic=N32;;
33869    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
33870      libsuff=64 shlibsuff=64 libmagic=64-bit;;
33871    *) libsuff= shlibsuff= libmagic=never-match;;
33872    esac
33873    ;;
33874  esac
33875  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
33876  shlibpath_overrides_runpath=no
33877  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
33878  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
33879  hardcode_into_libs=yes
33880  ;;
33881
33882# No shared lib support for Linux oldld, aout, or coff.
33883linux*oldld* | linux*aout* | linux*coff*)
33884  dynamic_linker=no
33885  ;;
33886
33887linux*android*)
33888  version_type=none # Android doesn't support versioned libraries.
33889  need_lib_prefix=no
33890  need_version=no
33891  library_names_spec='$libname$release$shared_ext'
33892  soname_spec='$libname$release$shared_ext'
33893  finish_cmds=
33894  shlibpath_var=LD_LIBRARY_PATH
33895  shlibpath_overrides_runpath=yes
33896
33897  # This implies no fast_install, which is unacceptable.
33898  # Some rework will be needed to allow for fast_install
33899  # before this can be enabled.
33900  hardcode_into_libs=yes
33901
33902  dynamic_linker='Android linker'
33903  # Don't embed -rpath directories since the linker doesn't support them.
33904  hardcode_libdir_flag_spec_CXX='-L$libdir'
33905  ;;
33906
33907# This must be glibc/ELF.
33908linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
33909  version_type=linux # correct to gnu/linux during the next big refactor
33910  need_lib_prefix=no
33911  need_version=no
33912  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33913  soname_spec='$libname$release$shared_ext$major'
33914  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
33915  shlibpath_var=LD_LIBRARY_PATH
33916  shlibpath_overrides_runpath=no
33917
33918  # Some binutils ld are patched to set DT_RUNPATH
33919  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
33920  $as_echo_n "(cached) " >&6
33921else
33922  lt_cv_shlibpath_overrides_runpath=no
33923    save_LDFLAGS=$LDFLAGS
33924    save_libdir=$libdir
33925    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
33926	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
33927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33928/* end confdefs.h.  */
33929
33930int
33931main ()
33932{
33933
33934  ;
33935  return 0;
33936}
33937_ACEOF
33938if ac_fn_cxx_try_link "$LINENO"; then :
33939  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
33940  lt_cv_shlibpath_overrides_runpath=yes
33941fi
33942fi
33943rm -f core conftest.err conftest.$ac_objext \
33944    conftest$ac_exeext conftest.$ac_ext
33945    LDFLAGS=$save_LDFLAGS
33946    libdir=$save_libdir
33947
33948fi
33949
33950  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
33951
33952  # This implies no fast_install, which is unacceptable.
33953  # Some rework will be needed to allow for fast_install
33954  # before this can be enabled.
33955  hardcode_into_libs=yes
33956
33957  # Ideally, we could use ldconfig to report *all* directores which are
33958  # searched for libraries, however this is still not possible.  Aside from not
33959  # being certain /sbin/ldconfig is available, command
33960  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
33961  # even though it is searched at run-time.  Try to do the best guess by
33962  # appending ld.so.conf contents (and includes) to the search path.
33963  if test -f /etc/ld.so.conf; then
33964    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' ' '`
33965    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
33966  fi
33967
33968  # We used to test for /lib/ld.so.1 and disable shared libraries on
33969  # powerpc, because MkLinux only supported shared libraries with the
33970  # GNU dynamic linker.  Since this was broken with cross compilers,
33971  # most powerpc-linux boxes support dynamic linking these days and
33972  # people can always --disable-shared, the test was removed, and we
33973  # assume the GNU/Linux dynamic linker is in use.
33974  dynamic_linker='GNU/Linux ld.so'
33975  ;;
33976
33977netbsdelf*-gnu)
33978  version_type=linux
33979  need_lib_prefix=no
33980  need_version=no
33981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
33982  soname_spec='${libname}${release}${shared_ext}$major'
33983  shlibpath_var=LD_LIBRARY_PATH
33984  shlibpath_overrides_runpath=no
33985  hardcode_into_libs=yes
33986  dynamic_linker='NetBSD ld.elf_so'
33987  ;;
33988
33989netbsd*)
33990  version_type=sunos
33991  need_lib_prefix=no
33992  need_version=no
33993  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
33994    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
33995    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
33996    dynamic_linker='NetBSD (a.out) ld.so'
33997  else
33998    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33999    soname_spec='$libname$release$shared_ext$major'
34000    dynamic_linker='NetBSD ld.elf_so'
34001  fi
34002  shlibpath_var=LD_LIBRARY_PATH
34003  shlibpath_overrides_runpath=yes
34004  hardcode_into_libs=yes
34005  ;;
34006
34007newsos6)
34008  version_type=linux # correct to gnu/linux during the next big refactor
34009  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
34010  shlibpath_var=LD_LIBRARY_PATH
34011  shlibpath_overrides_runpath=yes
34012  ;;
34013
34014*nto* | *qnx*)
34015  version_type=qnx
34016  need_lib_prefix=no
34017  need_version=no
34018  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
34019  soname_spec='$libname$release$shared_ext$major'
34020  shlibpath_var=LD_LIBRARY_PATH
34021  shlibpath_overrides_runpath=no
34022  hardcode_into_libs=yes
34023  dynamic_linker='ldqnx.so'
34024  ;;
34025
34026openbsd* | bitrig*)
34027  version_type=sunos
34028  sys_lib_dlsearch_path_spec=/usr/lib
34029  need_lib_prefix=no
34030  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
34031    need_version=no
34032  else
34033    need_version=yes
34034  fi
34035  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
34036  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
34037  shlibpath_var=LD_LIBRARY_PATH
34038  shlibpath_overrides_runpath=yes
34039  ;;
34040
34041os2*)
34042  libname_spec='$name'
34043  version_type=windows
34044  shrext_cmds=.dll
34045  need_version=no
34046  need_lib_prefix=no
34047  # OS/2 can only load a DLL with a base name of 8 characters or less.
34048  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
34049    v=$($ECHO $release$versuffix | tr -d .-);
34050    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
34051    $ECHO $n$v`$shared_ext'
34052  library_names_spec='${libname}_dll.$libext'
34053  dynamic_linker='OS/2 ld.exe'
34054  shlibpath_var=BEGINLIBPATH
34055  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
34056  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
34057  postinstall_cmds='base_file=`basename \$file`~
34058    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
34059    dldir=$destdir/`dirname \$dlpath`~
34060    test -d \$dldir || mkdir -p \$dldir~
34061    $install_prog $dir/$dlname \$dldir/$dlname~
34062    chmod a+x \$dldir/$dlname~
34063    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
34064      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
34065    fi'
34066  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
34067    dlpath=$dir/\$dldll~
34068    $RM \$dlpath'
34069  ;;
34070
34071osf3* | osf4* | osf5*)
34072  version_type=osf
34073  need_lib_prefix=no
34074  need_version=no
34075  soname_spec='$libname$release$shared_ext$major'
34076  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
34077  shlibpath_var=LD_LIBRARY_PATH
34078  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
34079  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
34080  ;;
34081
34082rdos*)
34083  dynamic_linker=no
34084  ;;
34085
34086solaris*)
34087  version_type=linux # correct to gnu/linux during the next big refactor
34088  need_lib_prefix=no
34089  need_version=no
34090  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
34091  soname_spec='$libname$release$shared_ext$major'
34092  shlibpath_var=LD_LIBRARY_PATH
34093  shlibpath_overrides_runpath=yes
34094  hardcode_into_libs=yes
34095  # ldd complains unless libraries are executable
34096  postinstall_cmds='chmod +x $lib'
34097  ;;
34098
34099sunos4*)
34100  version_type=sunos
34101  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
34102  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
34103  shlibpath_var=LD_LIBRARY_PATH
34104  shlibpath_overrides_runpath=yes
34105  if test yes = "$with_gnu_ld"; then
34106    need_lib_prefix=no
34107  fi
34108  need_version=yes
34109  ;;
34110
34111sysv4 | sysv4.3*)
34112  version_type=linux # correct to gnu/linux during the next big refactor
34113  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
34114  soname_spec='$libname$release$shared_ext$major'
34115  shlibpath_var=LD_LIBRARY_PATH
34116  case $host_vendor in
34117    sni)
34118      shlibpath_overrides_runpath=no
34119      need_lib_prefix=no
34120      runpath_var=LD_RUN_PATH
34121      ;;
34122    siemens)
34123      need_lib_prefix=no
34124      ;;
34125    motorola)
34126      need_lib_prefix=no
34127      need_version=no
34128      shlibpath_overrides_runpath=no
34129      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
34130      ;;
34131  esac
34132  ;;
34133
34134sysv4*MP*)
34135  if test -d /usr/nec; then
34136    version_type=linux # correct to gnu/linux during the next big refactor
34137    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
34138    soname_spec='$libname$shared_ext.$major'
34139    shlibpath_var=LD_LIBRARY_PATH
34140  fi
34141  ;;
34142
34143sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
34144  version_type=sco
34145  need_lib_prefix=no
34146  need_version=no
34147  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
34148  soname_spec='$libname$release$shared_ext$major'
34149  shlibpath_var=LD_LIBRARY_PATH
34150  shlibpath_overrides_runpath=yes
34151  hardcode_into_libs=yes
34152  if test yes = "$with_gnu_ld"; then
34153    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
34154  else
34155    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
34156    case $host_os in
34157      sco3.2v5*)
34158        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
34159	;;
34160    esac
34161  fi
34162  sys_lib_dlsearch_path_spec='/usr/lib'
34163  ;;
34164
34165tpf*)
34166  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
34167  version_type=linux # correct to gnu/linux during the next big refactor
34168  need_lib_prefix=no
34169  need_version=no
34170  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
34171  shlibpath_var=LD_LIBRARY_PATH
34172  shlibpath_overrides_runpath=no
34173  hardcode_into_libs=yes
34174  ;;
34175
34176uts4*)
34177  version_type=linux # correct to gnu/linux during the next big refactor
34178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
34179  soname_spec='$libname$release$shared_ext$major'
34180  shlibpath_var=LD_LIBRARY_PATH
34181  ;;
34182
34183*)
34184  dynamic_linker=no
34185  ;;
34186esac
34187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
34188$as_echo "$dynamic_linker" >&6; }
34189test no = "$dynamic_linker" && can_build_shared=no
34190
34191variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
34192if test yes = "$GCC"; then
34193  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
34194fi
34195
34196if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
34197  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
34198fi
34199
34200if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
34201  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
34202fi
34203
34204# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
34205configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
34206
34207# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
34208func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
34209
34210# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
34211configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
34212
34213
34214
34215
34216
34217
34218
34219
34220
34221
34222
34223
34224
34225
34226
34227
34228
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
34253$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
34254hardcode_action_CXX=
34255if test -n "$hardcode_libdir_flag_spec_CXX" ||
34256   test -n "$runpath_var_CXX" ||
34257   test yes = "$hardcode_automatic_CXX"; then
34258
34259  # We can hardcode non-existent directories.
34260  if test no != "$hardcode_direct_CXX" &&
34261     # If the only mechanism to avoid hardcoding is shlibpath_var, we
34262     # have to relink, otherwise we might link with an installed library
34263     # when we should be linking with a yet-to-be-installed one
34264     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
34265     test no != "$hardcode_minus_L_CXX"; then
34266    # Linking always hardcodes the temporary library directory.
34267    hardcode_action_CXX=relink
34268  else
34269    # We can link without hardcoding, and we can hardcode nonexisting dirs.
34270    hardcode_action_CXX=immediate
34271  fi
34272else
34273  # We cannot hardcode anything, or else we can only hardcode existing
34274  # directories.
34275  hardcode_action_CXX=unsupported
34276fi
34277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
34278$as_echo "$hardcode_action_CXX" >&6; }
34279
34280if test relink = "$hardcode_action_CXX" ||
34281   test yes = "$inherit_rpath_CXX"; then
34282  # Fast installation is not supported
34283  enable_fast_install=no
34284elif test yes = "$shlibpath_overrides_runpath" ||
34285     test no = "$enable_shared"; then
34286  # Fast installation is not necessary
34287  enable_fast_install=needless
34288fi
34289
34290
34291
34292
34293
34294
34295
34296  fi # test -n "$compiler"
34297
34298  CC=$lt_save_CC
34299  CFLAGS=$lt_save_CFLAGS
34300  LDCXX=$LD
34301  LD=$lt_save_LD
34302  GCC=$lt_save_GCC
34303  with_gnu_ld=$lt_save_with_gnu_ld
34304  lt_cv_path_LDCXX=$lt_cv_path_LD
34305  lt_cv_path_LD=$lt_save_path_LD
34306  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
34307  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
34308fi # test yes != "$_lt_caught_CXX_error"
34309
34310ac_ext=cpp
34311ac_cpp='$CXXCPP $CPPFLAGS'
34312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34315
34316
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330        ac_config_commands="$ac_config_commands libtool"
34331
34332
34333
34334
34335# Only expand once:
34336
34337
34338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
34339$as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
34340if ${libltdl_cv_shlibext+:} false; then :
34341  $as_echo_n "(cached) " >&6
34342else
34343
34344module=yes
34345eval libltdl_cv_shlibext=$shrext_cmds
34346module=no
34347eval libltdl_cv_shrext=$shrext_cmds
34348
34349fi
34350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
34351$as_echo "$libltdl_cv_shlibext" >&6; }
34352if test -n "$libltdl_cv_shlibext"; then
34353
34354cat >>confdefs.h <<_ACEOF
34355#define LT_MODULE_EXT "$libltdl_cv_shlibext"
34356_ACEOF
34357
34358fi
34359if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
34360
34361cat >>confdefs.h <<_ACEOF
34362#define LT_SHARED_EXT "$libltdl_cv_shrext"
34363_ACEOF
34364
34365fi
34366if test -n "$shared_archive_member_spec"; then
34367
34368cat >>confdefs.h <<_ACEOF
34369#define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
34370_ACEOF
34371
34372fi
34373
34374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
34375$as_echo_n "checking what variable specifies run-time module search path... " >&6; }
34376if ${lt_cv_module_path_var+:} false; then :
34377  $as_echo_n "(cached) " >&6
34378else
34379  lt_cv_module_path_var=$shlibpath_var
34380fi
34381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
34382$as_echo "$lt_cv_module_path_var" >&6; }
34383if test -n "$lt_cv_module_path_var"; then
34384
34385cat >>confdefs.h <<_ACEOF
34386#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
34387_ACEOF
34388
34389fi
34390
34391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
34392$as_echo_n "checking for the default library search path... " >&6; }
34393if ${lt_cv_sys_dlsearch_path+:} false; then :
34394  $as_echo_n "(cached) " >&6
34395else
34396  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
34397fi
34398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
34399$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
34400if test -n "$lt_cv_sys_dlsearch_path"; then
34401  sys_dlsearch_path=
34402  for dir in $lt_cv_sys_dlsearch_path; do
34403    if test -z "$sys_dlsearch_path"; then
34404      sys_dlsearch_path=$dir
34405    else
34406      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
34407    fi
34408  done
34409
34410cat >>confdefs.h <<_ACEOF
34411#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
34412_ACEOF
34413
34414fi
34415
34416
34417LT_DLLOADERS=
34418
34419
34420ac_ext=c
34421ac_cpp='$CPP $CPPFLAGS'
34422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34424ac_compiler_gnu=$ac_cv_c_compiler_gnu
34425
34426lt_dlload_save_LIBS=$LIBS
34427
34428LIBADD_DLOPEN=
34429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34430$as_echo_n "checking for library containing dlopen... " >&6; }
34431if ${ac_cv_search_dlopen+:} false; then :
34432  $as_echo_n "(cached) " >&6
34433else
34434  ac_func_search_save_LIBS=$LIBS
34435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34436/* end confdefs.h.  */
34437
34438/* Override any GCC internal prototype to avoid an error.
34439   Use char because int might match the return type of a GCC
34440   builtin and then its argument prototype would still apply.  */
34441#ifdef __cplusplus
34442extern "C"
34443#endif
34444char dlopen ();
34445int
34446main ()
34447{
34448return dlopen ();
34449  ;
34450  return 0;
34451}
34452_ACEOF
34453for ac_lib in '' dl; do
34454  if test -z "$ac_lib"; then
34455    ac_res="none required"
34456  else
34457    ac_res=-l$ac_lib
34458    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34459  fi
34460  if ac_fn_c_try_link "$LINENO"; then :
34461  ac_cv_search_dlopen=$ac_res
34462fi
34463rm -f core conftest.err conftest.$ac_objext \
34464    conftest$ac_exeext
34465  if ${ac_cv_search_dlopen+:} false; then :
34466  break
34467fi
34468done
34469if ${ac_cv_search_dlopen+:} false; then :
34470
34471else
34472  ac_cv_search_dlopen=no
34473fi
34474rm conftest.$ac_ext
34475LIBS=$ac_func_search_save_LIBS
34476fi
34477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34478$as_echo "$ac_cv_search_dlopen" >&6; }
34479ac_res=$ac_cv_search_dlopen
34480if test "$ac_res" != no; then :
34481  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34482
34483$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
34484
34485	if test "$ac_cv_search_dlopen" != "none required"; then
34486	  LIBADD_DLOPEN=-ldl
34487	fi
34488	libltdl_cv_lib_dl_dlopen=yes
34489	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
34490else
34491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34492/* end confdefs.h.  */
34493#if HAVE_DLFCN_H
34494#  include <dlfcn.h>
34495#endif
34496
34497int
34498main ()
34499{
34500dlopen(0, 0);
34501  ;
34502  return 0;
34503}
34504_ACEOF
34505if ac_fn_c_try_link "$LINENO"; then :
34506
34507$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
34508
34509	    libltdl_cv_func_dlopen=yes
34510	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
34511else
34512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
34513$as_echo_n "checking for dlopen in -lsvld... " >&6; }
34514if ${ac_cv_lib_svld_dlopen+:} false; then :
34515  $as_echo_n "(cached) " >&6
34516else
34517  ac_check_lib_save_LIBS=$LIBS
34518LIBS="-lsvld  $LIBS"
34519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34520/* end confdefs.h.  */
34521
34522/* Override any GCC internal prototype to avoid an error.
34523   Use char because int might match the return type of a GCC
34524   builtin and then its argument prototype would still apply.  */
34525#ifdef __cplusplus
34526extern "C"
34527#endif
34528char dlopen ();
34529int
34530main ()
34531{
34532return dlopen ();
34533  ;
34534  return 0;
34535}
34536_ACEOF
34537if ac_fn_c_try_link "$LINENO"; then :
34538  ac_cv_lib_svld_dlopen=yes
34539else
34540  ac_cv_lib_svld_dlopen=no
34541fi
34542rm -f core conftest.err conftest.$ac_objext \
34543    conftest$ac_exeext conftest.$ac_ext
34544LIBS=$ac_check_lib_save_LIBS
34545fi
34546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
34547$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
34548if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
34549
34550$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
34551
34552	        LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
34553		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
34554fi
34555
34556fi
34557rm -f core conftest.err conftest.$ac_objext \
34558    conftest$ac_exeext conftest.$ac_ext
34559fi
34560
34561if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
34562then
34563  lt_save_LIBS=$LIBS
34564  LIBS="$LIBS $LIBADD_DLOPEN"
34565  for ac_func in dlerror
34566do :
34567  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
34568if test "x$ac_cv_func_dlerror" = xyes; then :
34569  cat >>confdefs.h <<_ACEOF
34570#define HAVE_DLERROR 1
34571_ACEOF
34572
34573fi
34574done
34575
34576  LIBS=$lt_save_LIBS
34577fi
34578
34579
34580LIBADD_SHL_LOAD=
34581ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
34582if test "x$ac_cv_func_shl_load" = xyes; then :
34583
34584$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
34585
34586	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
34587else
34588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
34589$as_echo_n "checking for shl_load in -ldld... " >&6; }
34590if ${ac_cv_lib_dld_shl_load+:} false; then :
34591  $as_echo_n "(cached) " >&6
34592else
34593  ac_check_lib_save_LIBS=$LIBS
34594LIBS="-ldld  $LIBS"
34595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34596/* end confdefs.h.  */
34597
34598/* Override any GCC internal prototype to avoid an error.
34599   Use char because int might match the return type of a GCC
34600   builtin and then its argument prototype would still apply.  */
34601#ifdef __cplusplus
34602extern "C"
34603#endif
34604char shl_load ();
34605int
34606main ()
34607{
34608return shl_load ();
34609  ;
34610  return 0;
34611}
34612_ACEOF
34613if ac_fn_c_try_link "$LINENO"; then :
34614  ac_cv_lib_dld_shl_load=yes
34615else
34616  ac_cv_lib_dld_shl_load=no
34617fi
34618rm -f core conftest.err conftest.$ac_objext \
34619    conftest$ac_exeext conftest.$ac_ext
34620LIBS=$ac_check_lib_save_LIBS
34621fi
34622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
34623$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
34624if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
34625
34626$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
34627
34628	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
34629	    LIBADD_SHL_LOAD=-ldld
34630fi
34631
34632fi
34633
34634
34635
34636case $host_os in
34637darwin[1567].*)
34638# We only want this for pre-Mac OS X 10.4.
34639  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
34640if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
34641
34642$as_echo "#define HAVE_DYLD 1" >>confdefs.h
34643
34644	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
34645fi
34646
34647  ;;
34648beos*)
34649  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
34650  ;;
34651cygwin* | mingw* | pw32*)
34652  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
34653"
34654if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
34655  ac_have_decl=1
34656else
34657  ac_have_decl=0
34658fi
34659
34660cat >>confdefs.h <<_ACEOF
34661#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
34662_ACEOF
34663
34664  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
34665  ;;
34666esac
34667
34668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
34669$as_echo_n "checking for dld_link in -ldld... " >&6; }
34670if ${ac_cv_lib_dld_dld_link+:} false; then :
34671  $as_echo_n "(cached) " >&6
34672else
34673  ac_check_lib_save_LIBS=$LIBS
34674LIBS="-ldld  $LIBS"
34675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34676/* end confdefs.h.  */
34677
34678/* Override any GCC internal prototype to avoid an error.
34679   Use char because int might match the return type of a GCC
34680   builtin and then its argument prototype would still apply.  */
34681#ifdef __cplusplus
34682extern "C"
34683#endif
34684char dld_link ();
34685int
34686main ()
34687{
34688return dld_link ();
34689  ;
34690  return 0;
34691}
34692_ACEOF
34693if ac_fn_c_try_link "$LINENO"; then :
34694  ac_cv_lib_dld_dld_link=yes
34695else
34696  ac_cv_lib_dld_dld_link=no
34697fi
34698rm -f core conftest.err conftest.$ac_objext \
34699    conftest$ac_exeext conftest.$ac_ext
34700LIBS=$ac_check_lib_save_LIBS
34701fi
34702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
34703$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
34704if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
34705
34706$as_echo "#define HAVE_DLD 1" >>confdefs.h
34707
34708		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
34709fi
34710
34711
34712
34713
34714LT_DLPREOPEN=
34715if test -n "$LT_DLLOADERS"
34716then
34717  for lt_loader in $LT_DLLOADERS; do
34718    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
34719  done
34720
34721$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
34722
34723fi
34724
34725
34726LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
34727
34728
34729LIBS=$lt_dlload_save_LIBS
34730ac_ext=cpp
34731ac_cpp='$CXXCPP $CPPFLAGS'
34732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34735
34736
34737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
34738$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
34739if ${lt_cv_sys_symbol_underscore+:} false; then :
34740  $as_echo_n "(cached) " >&6
34741else
34742  lt_cv_sys_symbol_underscore=no
34743  cat > conftest.$ac_ext <<_LT_EOF
34744void nm_test_func(){}
34745int main(){nm_test_func;return 0;}
34746_LT_EOF
34747  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
34748  (eval $ac_compile) 2>&5
34749  ac_status=$?
34750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34751  test $ac_status = 0; }; then
34752    # Now try to grab the symbols.
34753    ac_nlist=conftest.nm
34754    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
34755  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
34756  ac_status=$?
34757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34758  test $ac_status = 0; } && test -s "$ac_nlist"; then
34759      # See whether the symbols have a leading underscore.
34760      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
34761        lt_cv_sys_symbol_underscore=yes
34762      else
34763        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
34764	  :
34765        else
34766	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
34767        fi
34768      fi
34769    else
34770      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
34771    fi
34772  else
34773    echo "configure: failed program was:" >&5
34774    cat conftest.c >&5
34775  fi
34776  rm -rf conftest*
34777
34778fi
34779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
34780$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
34781  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
34782
34783
34784if test yes = "$lt_cv_sys_symbol_underscore"; then
34785  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
34786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
34787$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
34788if ${libltdl_cv_need_uscore+:} false; then :
34789  $as_echo_n "(cached) " >&6
34790else
34791  libltdl_cv_need_uscore=unknown
34792      dlsym_uscore_save_LIBS=$LIBS
34793      LIBS="$LIBS $LIBADD_DLOPEN"
34794      libname=conftmod # stay within 8.3 filename limits!
34795      cat >$libname.$ac_ext <<_LT_EOF
34796#line $LINENO "configure"
34797#include "confdefs.h"
34798/* When -fvisibility=hidden is used, assume the code has been annotated
34799   correspondingly for the symbols needed.  */
34800#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
34801int fnord () __attribute__((visibility("default")));
34802#endif
34803int fnord () { return 42; }
34804_LT_EOF
34805
34806      # ltfn_module_cmds module_cmds
34807      # Execute tilde-delimited MODULE_CMDS with environment primed for
34808      # $module_cmds or $archive_cmds type content.
34809      ltfn_module_cmds ()
34810      {( # subshell avoids polluting parent global environment
34811          module_cmds_save_ifs=$IFS; IFS='~'
34812          for cmd in $1; do
34813            IFS=$module_cmds_save_ifs
34814            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
34815            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
34816            major=; versuffix=; verstring=; deplibs=
34817            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
34818            eval $cmd
34819          done
34820          IFS=$module_cmds_save_ifs
34821      )}
34822
34823      # Compile a loadable module using libtool macro expansion results.
34824      $CC $pic_flag -c $libname.$ac_ext
34825      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
34826
34827      # Try to fetch fnord with dlsym().
34828      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
34829      cat >conftest.$ac_ext <<_LT_EOF
34830#line $LINENO "configure"
34831#include "confdefs.h"
34832#if HAVE_DLFCN_H
34833#include <dlfcn.h>
34834#endif
34835#include <stdio.h>
34836#ifndef RTLD_GLOBAL
34837#  ifdef DL_GLOBAL
34838#    define RTLD_GLOBAL DL_GLOBAL
34839#  else
34840#    define RTLD_GLOBAL 0
34841#  endif
34842#endif
34843#ifndef RTLD_NOW
34844#  ifdef DL_NOW
34845#    define RTLD_NOW DL_NOW
34846#  else
34847#    define RTLD_NOW 0
34848#  endif
34849#endif
34850int main () {
34851  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
34852  int status = $libltdl_dlunknown;
34853  if (handle) {
34854    if (dlsym (handle, "fnord"))
34855      status = $libltdl_dlnouscore;
34856    else {
34857      if (dlsym (handle, "_fnord"))
34858        status = $libltdl_dluscore;
34859      else
34860	puts (dlerror ());
34861    }
34862    dlclose (handle);
34863  } else
34864    puts (dlerror ());
34865  return status;
34866}
34867_LT_EOF
34868      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
34869  (eval $ac_link) 2>&5
34870  ac_status=$?
34871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34872  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
34873        (./conftest; exit; ) >&5 2>/dev/null
34874        libltdl_status=$?
34875        case x$libltdl_status in
34876          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
34877	  x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
34878	  x*) libltdl_cv_need_uscore=unknown ;;
34879        esac
34880      fi
34881      rm -rf conftest* $libname*
34882      LIBS=$dlsym_uscore_save_LIBS
34883
34884fi
34885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
34886$as_echo "$libltdl_cv_need_uscore" >&6; }
34887  fi
34888fi
34889
34890if test yes = "$libltdl_cv_need_uscore"; then
34891
34892$as_echo "#define NEED_USCORE 1" >>confdefs.h
34893
34894fi
34895
34896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
34897$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
34898if ${lt_cv_sys_dlopen_deplibs+:} false; then :
34899  $as_echo_n "(cached) " >&6
34900else
34901  # PORTME does your system automatically load deplibs for dlopen?
34902  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
34903  # For now, we just catch OSes we know something about -- in the
34904  # future, we'll try test this programmatically.
34905  lt_cv_sys_dlopen_deplibs=unknown
34906  case $host_os in
34907  aix3*|aix4.1.*|aix4.2.*)
34908    # Unknown whether this is true for these versions of AIX, but
34909    # we want this 'case' here to explicitly catch those versions.
34910    lt_cv_sys_dlopen_deplibs=unknown
34911    ;;
34912  aix[4-9]*)
34913    lt_cv_sys_dlopen_deplibs=yes
34914    ;;
34915  amigaos*)
34916    case $host_cpu in
34917    powerpc)
34918      lt_cv_sys_dlopen_deplibs=no
34919      ;;
34920    esac
34921    ;;
34922  bitrig*)
34923    lt_cv_sys_dlopen_deplibs=yes
34924    ;;
34925  darwin*)
34926    # Assuming the user has installed a libdl from somewhere, this is true
34927    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
34928    lt_cv_sys_dlopen_deplibs=yes
34929    ;;
34930  freebsd* | dragonfly*)
34931    lt_cv_sys_dlopen_deplibs=yes
34932    ;;
34933  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
34934    # GNU and its variants, using gnu ld.so (Glibc)
34935    lt_cv_sys_dlopen_deplibs=yes
34936    ;;
34937  hpux10*|hpux11*)
34938    lt_cv_sys_dlopen_deplibs=yes
34939    ;;
34940  interix*)
34941    lt_cv_sys_dlopen_deplibs=yes
34942    ;;
34943  irix[12345]*|irix6.[01]*)
34944    # Catch all versions of IRIX before 6.2, and indicate that we don't
34945    # know how it worked for any of those versions.
34946    lt_cv_sys_dlopen_deplibs=unknown
34947    ;;
34948  irix*)
34949    # The case above catches anything before 6.2, and it's known that
34950    # at 6.2 and later dlopen does load deplibs.
34951    lt_cv_sys_dlopen_deplibs=yes
34952    ;;
34953  netbsd* | netbsdelf*-gnu)
34954    lt_cv_sys_dlopen_deplibs=yes
34955    ;;
34956  openbsd*)
34957    lt_cv_sys_dlopen_deplibs=yes
34958    ;;
34959  osf[1234]*)
34960    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
34961    # it did *not* use an RPATH in a shared library to find objects the
34962    # library depends on, so we explicitly say 'no'.
34963    lt_cv_sys_dlopen_deplibs=no
34964    ;;
34965  osf5.0|osf5.0a|osf5.1)
34966    # dlopen *does* load deplibs and with the right loader patch applied
34967    # it even uses RPATH in a shared library to search for shared objects
34968    # that the library depends on, but there's no easy way to know if that
34969    # patch is installed.  Since this is the case, all we can really
34970    # say is unknown -- it depends on the patch being installed.  If
34971    # it is, this changes to 'yes'.  Without it, it would be 'no'.
34972    lt_cv_sys_dlopen_deplibs=unknown
34973    ;;
34974  osf*)
34975    # the two cases above should catch all versions of osf <= 5.1.  Read
34976    # the comments above for what we know about them.
34977    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
34978    # is used to find them so we can finally say 'yes'.
34979    lt_cv_sys_dlopen_deplibs=yes
34980    ;;
34981  qnx*)
34982    lt_cv_sys_dlopen_deplibs=yes
34983    ;;
34984  solaris*)
34985    lt_cv_sys_dlopen_deplibs=yes
34986    ;;
34987  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
34988    libltdl_cv_sys_dlopen_deplibs=yes
34989    ;;
34990  esac
34991
34992fi
34993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
34994$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
34995if test yes != "$lt_cv_sys_dlopen_deplibs"; then
34996
34997$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
34998
34999fi
35000
35001
35002for ac_header in argz.h
35003do :
35004  ac_fn_cxx_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
35005"
35006if test "x$ac_cv_header_argz_h" = xyes; then :
35007  cat >>confdefs.h <<_ACEOF
35008#define HAVE_ARGZ_H 1
35009_ACEOF
35010
35011fi
35012
35013done
35014
35015
35016ac_fn_cxx_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
35017#  include <argz.h>
35018#endif
35019"
35020if test "x$ac_cv_type_error_t" = xyes; then :
35021
35022cat >>confdefs.h <<_ACEOF
35023#define HAVE_ERROR_T 1
35024_ACEOF
35025
35026
35027else
35028
35029$as_echo "#define error_t int" >>confdefs.h
35030
35031
35032$as_echo "#define __error_t_defined 1" >>confdefs.h
35033
35034fi
35035
35036
35037LT_ARGZ_H=
35038for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
35039	argz_next argz_stringify
35040do :
35041  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35042ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
35043if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35044  cat >>confdefs.h <<_ACEOF
35045#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35046_ACEOF
35047
35048else
35049  LT_ARGZ_H=lt__argz.h;
35050
35051  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
35052
35053fi
35054done
35055
35056
35057if test -z "$LT_ARGZ_H"; then :
35058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
35059$as_echo_n "checking if argz actually works... " >&6; }
35060if ${lt_cv_sys_argz_works+:} false; then :
35061  $as_echo_n "(cached) " >&6
35062else
35063  case $host_os in #(
35064	 *cygwin*)
35065	   lt_cv_sys_argz_works=no
35066	   if test no != "$cross_compiling"; then
35067	     lt_cv_sys_argz_works="guessing no"
35068	   else
35069	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
35070	     save_IFS=$IFS
35071	     IFS=-.
35072	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
35073	     IFS=$save_IFS
35074	     lt_os_major=${2-0}
35075	     lt_os_minor=${3-0}
35076	     lt_os_micro=${4-0}
35077	     if test 1 -lt "$lt_os_major" \
35078		|| { test 1 -eq "$lt_os_major" \
35079		  && { test 5 -lt "$lt_os_minor" \
35080		    || { test 5 -eq "$lt_os_minor" \
35081		      && test 24 -lt "$lt_os_micro"; }; }; }; then
35082	       lt_cv_sys_argz_works=yes
35083	     fi
35084	   fi
35085	   ;; #(
35086	 *) lt_cv_sys_argz_works=yes ;;
35087	 esac
35088fi
35089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
35090$as_echo "$lt_cv_sys_argz_works" >&6; }
35091     if test yes = "$lt_cv_sys_argz_works"; then :
35092
35093$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
35094
35095else
35096  LT_ARGZ_H=lt__argz.h
35097
35098
35099  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
35100
35101fi
35102fi
35103
35104
35105
35106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
35107$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
35108if ${libltdl_cv_preloaded_symbols+:} false; then :
35109  $as_echo_n "(cached) " >&6
35110else
35111  if test -n "$lt_cv_sys_global_symbol_pipe"; then
35112    libltdl_cv_preloaded_symbols=yes
35113  else
35114    libltdl_cv_preloaded_symbols=no
35115  fi
35116
35117fi
35118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
35119$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
35120if test yes = "$libltdl_cv_preloaded_symbols"; then
35121
35122$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
35123
35124fi
35125
35126# Set options
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138# Check whether --with-included_ltdl was given.
35139if test "${with_included_ltdl+set}" = set; then :
35140  withval=$with_included_ltdl;
35141fi
35142
35143
35144if test yes != "$with_included_ltdl"; then
35145  # We are not being forced to use the included libltdl sources, so
35146  # decide whether there is a useful installed version we can use.
35147  ac_fn_cxx_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
35148
35149"
35150if test "x$ac_cv_header_ltdl_h" = xyes; then :
35151  ac_fn_cxx_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
35152	    #include <ltdl.h>
35153"
35154if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
35155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
35156$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
35157if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
35158  $as_echo_n "(cached) " >&6
35159else
35160  ac_check_lib_save_LIBS=$LIBS
35161LIBS="-lltdl  $LIBS"
35162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35163/* end confdefs.h.  */
35164
35165/* Override any GCC internal prototype to avoid an error.
35166   Use char because int might match the return type of a GCC
35167   builtin and then its argument prototype would still apply.  */
35168#ifdef __cplusplus
35169extern "C"
35170#endif
35171char lt_dladvise_preload ();
35172int
35173main ()
35174{
35175return lt_dladvise_preload ();
35176  ;
35177  return 0;
35178}
35179_ACEOF
35180if ac_fn_cxx_try_link "$LINENO"; then :
35181  ac_cv_lib_ltdl_lt_dladvise_preload=yes
35182else
35183  ac_cv_lib_ltdl_lt_dladvise_preload=no
35184fi
35185rm -f core conftest.err conftest.$ac_objext \
35186    conftest$ac_exeext conftest.$ac_ext
35187LIBS=$ac_check_lib_save_LIBS
35188fi
35189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
35190$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
35191if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
35192  with_included_ltdl=no
35193else
35194  with_included_ltdl=yes
35195fi
35196
35197else
35198  with_included_ltdl=yes
35199fi
35200
35201else
35202  with_included_ltdl=yes
35203fi
35204
35205
35206fi
35207
35208
35209
35210
35211# Check whether --with-ltdl_include was given.
35212if test "${with_ltdl_include+set}" = set; then :
35213  withval=$with_ltdl_include;
35214fi
35215
35216
35217if test -n "$with_ltdl_include"; then
35218  if test -f "$with_ltdl_include/ltdl.h"; then :
35219  else
35220    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
35221  fi
35222else
35223  with_ltdl_include=no
35224fi
35225
35226
35227# Check whether --with-ltdl_lib was given.
35228if test "${with_ltdl_lib+set}" = set; then :
35229  withval=$with_ltdl_lib;
35230fi
35231
35232
35233if test -n "$with_ltdl_lib"; then
35234  if test -f "$with_ltdl_lib/libltdl.la"; then :
35235  else
35236    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
35237  fi
35238else
35239  with_ltdl_lib=no
35240fi
35241
35242case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
35243  ,yes,no,no,)
35244	case $enable_ltdl_convenience in
35245  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
35246  "") enable_ltdl_convenience=yes
35247      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
35248esac
35249LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
35250LTDLDEPS=$LIBLTDL
35251LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
35252
35253
35254
35255
35256
35257# For backwards non-gettext consistent compatibility...
35258INCLTDL=$LTDLINCL
35259
35260
35261	;;
35262  ,no,no,no,)
35263	# If the included ltdl is not to be used, then use the
35264	# preinstalled libltdl we found.
35265
35266$as_echo "#define HAVE_LTDL 1" >>confdefs.h
35267
35268	LIBLTDL=-lltdl
35269	LTDLDEPS=
35270	LTDLINCL=
35271	;;
35272  ,no*,no,*)
35273	as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
35274	;;
35275  *)	with_included_ltdl=no
35276	LIBLTDL="-L$with_ltdl_lib -lltdl"
35277	LTDLDEPS=
35278	LTDLINCL=-I$with_ltdl_include
35279	;;
35280esac
35281INCLTDL=$LTDLINCL
35282
35283# Report our decision...
35284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
35285$as_echo_n "checking where to find libltdl headers... " >&6; }
35286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
35287$as_echo "$LTDLINCL" >&6; }
35288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
35289$as_echo_n "checking where to find libltdl library... " >&6; }
35290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
35291$as_echo "$LIBLTDL" >&6; }
35292
35293
35294
35295# Check whether --enable-ltdl-install was given.
35296if test "${enable_ltdl_install+set}" = set; then :
35297  enableval=$enable_ltdl_install;
35298fi
35299
35300
35301case ,$enable_ltdl_install,$enable_ltdl_convenience in
35302  *yes*) ;;
35303  *) enable_ltdl_convenience=yes ;;
35304esac
35305
35306 if test no != "${enable_ltdl_install-no}"; then
35307  INSTALL_LTDL_TRUE=
35308  INSTALL_LTDL_FALSE='#'
35309else
35310  INSTALL_LTDL_TRUE='#'
35311  INSTALL_LTDL_FALSE=
35312fi
35313
35314  if test no != "${enable_ltdl_convenience-no}"; then
35315  CONVENIENCE_LTDL_TRUE=
35316  CONVENIENCE_LTDL_FALSE='#'
35317else
35318  CONVENIENCE_LTDL_TRUE='#'
35319  CONVENIENCE_LTDL_FALSE=
35320fi
35321
35322
35323
35324    subdirs="$subdirs ltdl"
35325
35326
35327
35328
35329# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
35330# the user used.  This is so that ltdl.h can pick up the parent projects
35331# config.h file, The first file in AC_CONFIG_HEADERS must contain the
35332# definitions required by ltdl.c.
35333# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
35334
35335
35336
35337for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
35338do :
35339  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35340ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
35341"
35342if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35343  cat >>confdefs.h <<_ACEOF
35344#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35345_ACEOF
35346
35347fi
35348
35349done
35350
35351
35352for ac_func in closedir opendir readdir
35353do :
35354  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35355ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
35356if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35357  cat >>confdefs.h <<_ACEOF
35358#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35359_ACEOF
35360
35361else
35362
35363
35364  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
35365
35366fi
35367done
35368
35369for ac_func in strlcat strlcpy
35370do :
35371  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35372ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
35373if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35374  cat >>confdefs.h <<_ACEOF
35375#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35376_ACEOF
35377
35378else
35379
35380
35381  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
35382
35383fi
35384done
35385
35386
35387
35388cat >>confdefs.h <<_ACEOF
35389#define LT_LIBEXT "$libext"
35390_ACEOF
35391
35392
35393name=
35394eval "lt_libprefix=\"$libname_spec\""
35395
35396cat >>confdefs.h <<_ACEOF
35397#define LT_LIBPREFIX "$lt_libprefix"
35398_ACEOF
35399
35400
35401name=ltdl
35402eval "LTDLOPEN=\"$libname_spec\""
35403
35404
35405
35406
35407
35408
35409
35410
35411# Only expand once:
35412
35413
35414
35415# Check whether --enable-Bsymbolic was given.
35416if test "${enable_Bsymbolic+set}" = set; then :
35417  enableval=$enable_Bsymbolic;
35418else
35419  enable_Bsymbolic=yes
35420fi
35421
35422if test "$enable_Bsymbolic" != "no"; then
35423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
35424$as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
35425if ${acl_cv_prog_gnu_ld_symbolic+:} false; then :
35426  $as_echo_n "(cached) " >&6
35427else
35428
35429acl_cv_prog_gnu_ld_symbolic=no
35430if test x"$with_gnu_ld" = x"yes"; then
35431  if $LD -Bsymbolic-functions --help>/dev/null 2>&1 </dev/null; then
35432    acl_cv_prog_gnu_ld_symbolic=yes
35433  fi
35434fi
35435fi
35436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
35437$as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
35438if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
35439  SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
35440else
35441  SYMBOLIC_LDFLAGS=''
35442fi
35443
35444fi
35445
35446# Check whether --enable-python was given.
35447if test "${enable_python+set}" = set; then :
35448  enableval=$enable_python;
35449else
35450  enable_python=yes
35451fi
35452
35453
35454case $enable_shared:$enable_python in
35455 no:no);;
35456 no:*)
35457    enable_python=no
35458    { $as_echo "$as_me:${as_lineno-$LINENO}: Not building Python bindings because of --disable-shared." >&5
35459$as_echo "$as_me: Not building Python bindings because of --disable-shared." >&6;}
35460    ;;
35461esac
35462
35463 if test "x${enable_python:-yes}" = xyes; then
35464  USE_PYTHON_TRUE=
35465  USE_PYTHON_FALSE='#'
35466else
35467  USE_PYTHON_TRUE='#'
35468  USE_PYTHON_FALSE=
35469fi
35470
35471
35472if test "x${enable_python:-yes}" = xyes; then
35473  { $as_echo "$as_me:${as_lineno-$LINENO}: You may configure with --disable-python if you do not need Python bindings." >&5
35474$as_echo "$as_me: You may configure with --disable-python if you do not need Python bindings." >&6;}
35475
35476
35477
35478
35479
35480
35481        if test -n "$PYTHON"; then
35482      # If the user set $PYTHON, use it and don't search something else.
35483      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.5" >&5
35484$as_echo_n "checking whether $PYTHON version is >= 3.5... " >&6; }
35485      prog="import sys
35486# split strings by '.' and convert to numeric.  Append some zeros
35487# because we need at least 4 digits for the hex conversion.
35488# map returns an iterator in Python 3.0 and a list in 2.x
35489minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
35490minverhex = 0
35491# xrange is not present in Python 3.0 and range returns an iterator
35492for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
35493sys.exit(sys.hexversion < minverhex)"
35494  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
35495   ($PYTHON -c "$prog") >&5 2>&5
35496   ac_status=$?
35497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498   (exit $ac_status); }; then :
35499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35500$as_echo "yes" >&6; }
35501else
35502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35503$as_echo "no" >&6; }
35504			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
35505fi
35506      am_display_PYTHON=$PYTHON
35507    else
35508      # Otherwise, try each interpreter until we find one that satisfies
35509      # VERSION.
35510      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.5" >&5
35511$as_echo_n "checking for a Python interpreter with version >= 3.5... " >&6; }
35512if ${am_cv_pathless_PYTHON+:} false; then :
35513  $as_echo_n "(cached) " >&6
35514else
35515
35516	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
35517	  test "$am_cv_pathless_PYTHON" = none && break
35518	  prog="import sys
35519# split strings by '.' and convert to numeric.  Append some zeros
35520# because we need at least 4 digits for the hex conversion.
35521# map returns an iterator in Python 3.0 and a list in 2.x
35522minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
35523minverhex = 0
35524# xrange is not present in Python 3.0 and range returns an iterator
35525for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
35526sys.exit(sys.hexversion < minverhex)"
35527  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
35528   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
35529   ac_status=$?
35530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531   (exit $ac_status); }; then :
35532  break
35533fi
35534	done
35535fi
35536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
35537$as_echo "$am_cv_pathless_PYTHON" >&6; }
35538      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
35539      if test "$am_cv_pathless_PYTHON" = none; then
35540	PYTHON=:
35541      else
35542        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
35543set dummy $am_cv_pathless_PYTHON; ac_word=$2
35544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35545$as_echo_n "checking for $ac_word... " >&6; }
35546if ${ac_cv_path_PYTHON+:} false; then :
35547  $as_echo_n "(cached) " >&6
35548else
35549  case $PYTHON in
35550  [\\/]* | ?:[\\/]*)
35551  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
35552  ;;
35553  *)
35554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35555for as_dir in $PATH
35556do
35557  IFS=$as_save_IFS
35558  test -z "$as_dir" && as_dir=.
35559    for ac_exec_ext in '' $ac_executable_extensions; do
35560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35561    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
35562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35563    break 2
35564  fi
35565done
35566  done
35567IFS=$as_save_IFS
35568
35569  ;;
35570esac
35571fi
35572PYTHON=$ac_cv_path_PYTHON
35573if test -n "$PYTHON"; then
35574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
35575$as_echo "$PYTHON" >&6; }
35576else
35577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35578$as_echo "no" >&6; }
35579fi
35580
35581
35582      fi
35583      am_display_PYTHON=$am_cv_pathless_PYTHON
35584    fi
35585
35586
35587  if test "$PYTHON" = :; then
35588      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
35589  else
35590
35591
35592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
35593$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
35594if ${am_cv_python_version+:} false; then :
35595  $as_echo_n "(cached) " >&6
35596else
35597  am_cv_python_version=`$PYTHON -c "import sys; print('%u.%u' % sys.version_info[:2])"`
35598fi
35599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
35600$as_echo "$am_cv_python_version" >&6; }
35601  PYTHON_VERSION=$am_cv_python_version
35602
35603
35604
35605  PYTHON_PREFIX='${prefix}'
35606
35607  PYTHON_EXEC_PREFIX='${exec_prefix}'
35608
35609
35610
35611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
35612$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
35613if ${am_cv_python_platform+:} false; then :
35614  $as_echo_n "(cached) " >&6
35615else
35616  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
35617fi
35618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
35619$as_echo "$am_cv_python_platform" >&6; }
35620  PYTHON_PLATFORM=$am_cv_python_platform
35621
35622
35623  # Just factor out some code duplication.
35624  am_python_setup_sysconfig="\
35625import sys
35626# Prefer sysconfig over distutils.sysconfig, for better compatibility
35627# with python 3.x.  See automake bug#10227.
35628try:
35629    import sysconfig
35630except ImportError:
35631    can_use_sysconfig = 0
35632else:
35633    can_use_sysconfig = 1
35634# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
35635# <https://github.com/pypa/virtualenv/issues/118>
35636try:
35637    from platform import python_implementation
35638    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
35639        can_use_sysconfig = 0
35640except ImportError:
35641    pass"
35642
35643
35644            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
35645$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
35646if ${am_cv_python_pythondir+:} false; then :
35647  $as_echo_n "(cached) " >&6
35648else
35649  if test "x$prefix" = xNONE
35650     then
35651       am_py_prefix=$ac_default_prefix
35652     else
35653       am_py_prefix=$prefix
35654     fi
35655     am_cv_python_pythondir=`$PYTHON -c "
35656$am_python_setup_sysconfig
35657if can_use_sysconfig:
35658    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
35659else:
35660    from distutils import sysconfig
35661    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
35662sys.stdout.write(sitedir)"`
35663     case $am_cv_python_pythondir in
35664     $am_py_prefix*)
35665       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
35666       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
35667       ;;
35668     *)
35669       case $am_py_prefix in
35670         /usr|/System*) ;;
35671         *)
35672	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
35673	  ;;
35674       esac
35675       ;;
35676     esac
35677
35678fi
35679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
35680$as_echo "$am_cv_python_pythondir" >&6; }
35681  pythondir=$am_cv_python_pythondir
35682
35683
35684
35685  pkgpythondir=\${pythondir}/$PACKAGE
35686
35687
35688        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
35689$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
35690if ${am_cv_python_pyexecdir+:} false; then :
35691  $as_echo_n "(cached) " >&6
35692else
35693  if test "x$exec_prefix" = xNONE
35694     then
35695       am_py_exec_prefix=$am_py_prefix
35696     else
35697       am_py_exec_prefix=$exec_prefix
35698     fi
35699     am_cv_python_pyexecdir=`$PYTHON -c "
35700$am_python_setup_sysconfig
35701if can_use_sysconfig:
35702    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
35703else:
35704    from distutils import sysconfig
35705    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
35706sys.stdout.write(sitedir)"`
35707     case $am_cv_python_pyexecdir in
35708     $am_py_exec_prefix*)
35709       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
35710       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
35711       ;;
35712     *)
35713       case $am_py_exec_prefix in
35714         /usr|/System*) ;;
35715         *)
35716	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
35717	   ;;
35718       esac
35719       ;;
35720     esac
35721
35722fi
35723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
35724$as_echo "$am_cv_python_pyexecdir" >&6; }
35725  pyexecdir=$am_cv_python_pyexecdir
35726
35727
35728
35729  pkgpyexecdir=\${pyexecdir}/$PACKAGE
35730
35731
35732
35733  fi
35734
35735
35736  case $PYTHON in
35737    [\\/$]* | ?:[\\/]* );;
35738    *) as_fn_error $? "The PYTHON variable must be set to an absolute filename." "$LINENO" 5;;
35739  esac
35740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON includes directory" >&5
35741$as_echo_n "checking for $am_display_PYTHON includes directory... " >&6; }
35742if ${adl_cv_python_inc+:} false; then :
35743  $as_echo_n "(cached) " >&6
35744else
35745  adl_cv_python_inc=`$PYTHON -c "import sys; from distutils import sysconfig;
35746sys.stdout.write(sysconfig.get_python_inc())" 2>/dev/null`
35747fi
35748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $adl_cv_python_inc" >&5
35749$as_echo "$adl_cv_python_inc" >&6; }
35750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension suffix" >&5
35751$as_echo_n "checking for $am_display_PYTHON extension suffix... " >&6; }
35752if ${adl_cv_python_ext+:} false; then :
35753  $as_echo_n "(cached) " >&6
35754else
35755  adl_cv_python_ext=`$PYTHON -c "import importlib.machinery as i; print(i.EXTENSION_SUFFIXES[0])"`
35756fi
35757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $adl_cv_python_ext" >&5
35758$as_echo "$adl_cv_python_ext" >&6; }
35759  PYEXT=${adl_cv_python_ext%.*}
35760
35761  PYTHONINC=$adl_cv_python_inc
35762
35763  adl_save_CPPFLAGS="$CPPFLAGS"
35764  CPPFLAGS="$adl_save_CPPFLAGS -I$PYTHONINC"
35765  for ac_header in Python.h
35766do :
35767  ac_fn_cxx_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
35768if test "x$ac_cv_header_Python_h" = xyes; then :
35769  cat >>confdefs.h <<_ACEOF
35770#define HAVE_PYTHON_H 1
35771_ACEOF
35772
35773else
35774  as_fn_error $? "Python's development headers are not installed.
35775
35776The package to install is often called python3-devel, but that name
35777might be different in your distribution.  Note that if you do not plan
35778to use Spot's Python bindings, you may also disable their compilation
35779by running
35780  ./configure --disable-python
35781and in this case you do not need python3-devel installed." "$LINENO" 5
35782fi
35783
35784done
35785
35786  CPPFLAGS=$adl_save_CPPFLAGS
35787
35788fi
35789
35790
35791# Check whether --enable-debug was given.
35792if test "${enable_debug+set}" = set; then :
35793  enableval=$enable_debug;
35794fi
35795
35796  case "${enable_debug}" in
35797    yes)
35798
35799$as_echo "#define DEBUG 1" >>confdefs.h
35800
35801      # We used to use -ggdb3 when supported, but not all tools
35802      # are able to grok the resulting debug infos.
35803      if test "${ac_cv_prog_cc_g}" = yes; then
35804        CFLAGS="$CFLAGS -g"
35805        CXXFLAGS="$CXXFLAGS -g"
35806      fi
35807      ;;
35808    no)
35809      ;;
35810    *)
35811      if test "${ac_cv_prog_cc_g}" = yes; then
35812        CFLAGS="$CFLAGS -g"
35813        CXXFLAGS="$CXXFLAGS -g"
35814      fi
35815      ;;
35816  esac
35817# Check whether --enable-optimizations was given.
35818if test "${enable_optimizations+set}" = set; then :
35819  enableval=$enable_optimizations;
35820fi
35821
35822 if test -n "$GCC" && test "${enable_optimizations-yes}" = "yes"; then
35823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc optimization options" >&5
35824$as_echo_n "checking for gcc optimization options... " >&6; }
35825if ${ac_cv_prog_gcc_opt_flags+:} false; then :
35826  $as_echo_n "(cached) " >&6
35827else
35828    cat > conftest.$ac_ext <<EOF
35829#line 35829 "configure"
35830int main(int argc, char *argv[]) { return argv[argc-1] == 0; }
35831EOF
35832    ac_ext=c
35833ac_cpp='$CPP $CPPFLAGS'
35834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35836ac_compiler_gnu=$ac_cv_c_compiler_gnu
35837
35838  cf_save_CFLAGS="$CFLAGS"
35839  ac_cv_prog_gcc_opt_flags="-O3"
35840  for cf_opt in \
35841    ffast-math \
35842    fstrict-aliasing \
35843    fomit-frame-pointer
35844  do
35845    CFLAGS="$cf_save_CFLAGS $ac_cv_prog_gcc_opt_flags -$cf_opt"
35846    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
35847  (eval $ac_compile) 2>&5
35848  ac_status=$?
35849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35850  test $ac_status = 0; }; then
35851      ac_cv_prog_gcc_opt_flags="$ac_cv_prog_gcc_opt_flags -$cf_opt"
35852    fi
35853  done
35854  rm -f conftest*
35855  ac_ext=cpp
35856ac_cpp='$CXXCPP $CPPFLAGS'
35857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35860
35861  CFLAGS="$cf_save_CFLAGS $ac_cv_prog_gcc_opt_flags"
35862fi
35863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_opt_flags" >&5
35864$as_echo "$ac_cv_prog_gcc_opt_flags" >&6; }
35865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ optimization options" >&5
35866$as_echo_n "checking for g++ optimization options... " >&6; }
35867if ${ac_cv_prog_gxx_opt_flags+:} false; then :
35868  $as_echo_n "(cached) " >&6
35869else
35870    cat > conftest.$ac_ext <<EOF
35871#line 35871 "configure"
35872int main(int argc, char *argv[]) { return argv[argc-1] == 0; }
35873EOF
35874    ac_ext=cpp
35875ac_cpp='$CXXCPP $CPPFLAGS'
35876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35879
35880  cf_save_CXXFLAGS="$CXXFLAGS"
35881  ac_cv_prog_gxx_opt_flags="-O3"
35882  for cf_opt in \
35883    ffast-math \
35884    fstrict-aliasing \
35885    fomit-frame-pointer
35886  do
35887    CXXFLAGS="$cf_save_CXXFLAGS $ac_cv_prog_gxx_opt_flags -$cf_opt"
35888    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
35889  (eval $ac_compile) 2>&5
35890  ac_status=$?
35891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35892  test $ac_status = 0; }; then
35893      ac_cv_prog_gxx_opt_flags="$ac_cv_prog_gxx_opt_flags -$cf_opt"
35894    fi
35895  done
35896  rm -f conftest*
35897  ac_ext=cpp
35898ac_cpp='$CXXCPP $CPPFLAGS'
35899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35902
35903  CXXFLAGS="$cf_save_CXXFLAGS $ac_cv_prog_gxx_opt_flags"
35904fi
35905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gxx_opt_flags" >&5
35906$as_echo "$ac_cv_prog_gxx_opt_flags" >&6; }
35907else
35908  case $enable_optimizations in
35909    no) ;;
35910    *) CXXFLAGS="$CXXFLAGS $enable_optimizations"
35911       CFLAGS="$CFLAGS $enable_optimizations" ;;
35912  esac
35913fi
35914# Check whether --enable-assert was given.
35915if test "${enable_assert+set}" = set; then :
35916  enableval=$enable_assert;
35917fi
35918
35919  if test "$enable_assert" != yes; then
35920    CPPFLAGS="$CPPFLAGS -DNDEBUG"
35921  fi
35922# Check whether --enable-glibcxx-debug was given.
35923if test "${enable_glibcxx_debug+set}" = set; then :
35924  enableval=$enable_glibcxx_debug;
35925fi
35926
35927if test x$enable_glibcxx_debug = xyes; then
35928  CPPFLAGS="$CPPFLAGS -D_GLIBCXX_DEBUG"
35929fi
35930
35931
35932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the INTEL C++ compiler" >&5
35933$as_echo_n "checking whether we are using the INTEL C++ compiler... " >&6; }
35934if ${ac_cv_cxx_compiler_intel+:} false; then :
35935  $as_echo_n "(cached) " >&6
35936else
35937
35938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35939/* end confdefs.h.  */
35940
35941int
35942main ()
35943{
35944#ifndef __INTEL_COMPILER
35945       choke me
35946#endif
35947
35948  ;
35949  return 0;
35950}
35951_ACEOF
35952if ac_fn_cxx_try_compile "$LINENO"; then :
35953  ac_compiler_intel=yes
35954else
35955  ac_compiler_intel=no
35956fi
35957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35958ac_cv_cxx_compiler_intel=$ac_compiler_intel
35959
35960fi
35961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_intel" >&5
35962$as_echo "$ac_cv_cxx_compiler_intel" >&6; }
35963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to add extra CXXFLAGS for the INTEL C++ compiler" >&5
35964$as_echo_n "checking to add extra CXXFLAGS for the INTEL C++ compiler... " >&6; }
35965if ${ac_cv_intel_cxxflags+:} false; then :
35966  $as_echo_n "(cached) " >&6
35967else
35968     if test x"$ac_cv_cxx_compiler_intel" = x"yes"; then
35969    disabled_warnings=''
35970    for warning in  69            177    279    654           913    1125 ; do
35971      disabled_warnings="$disabled_warnings,$warning"
35972    done
35973
35974    # Remove the extra "," and extra whitespaces.
35975    disabled_warnings=`echo "$disabled_warnings" | sed "s/^,//;s/[[:space:]]//g"`
35976
35977    INTEL_CXXFLAGS="-w1 -Werror -wd${disabled_warnings}"
35978
35979    ac_cv_intel_cxxflags="$INTEL_CXXFLAGS"
35980  else
35981    ac_cv_intel_cxxflags=""
35982  fi
35983fi
35984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_intel_cxxflags" >&5
35985$as_echo "$ac_cv_intel_cxxflags" >&6; }
35986
35987  if test x"$ac_cv_cxx_compiler_intel" = x"yes"; then
35988    # -W does not exist for icpc in CXXFLAGS.
35989    CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-W[[:space:]]//g;s/-W$//'`
35990
35991    # Even if the icpc preprocessor defines __GNUC__, it is not a GNU compiler.
35992    GXX=
35993    CXXFLAGS="$CXXFLAGS $ac_cv_intel_cxxflags"
35994  fi
35995
35996
35997# Check whether --enable-warnings was given.
35998if test "${enable_warnings+set}" = set; then :
35999  enableval=$enable_warnings;
36000fi
36001
36002if test x$enable_warnings = xyes; then
36003  if test "x$GXX" = xyes; then
36004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ warning options" >&5
36005$as_echo_n "checking for g++ warning options... " >&6; }
36006if ${ac_cv_prog_gxx_warn_flags+:} false; then :
36007  $as_echo_n "(cached) " >&6
36008else
36009
36010  cat > conftest.$ac_ext <<EOF
36011#line 36011 "configure"
36012#include <string>
36013int main(int argc, char *argv[])
36014{
36015  // This string comparison is here to detect superfluous
36016  // zero-as-null-pointer-constant errors introduced with GCC 10.1's
36017  // libstdc++, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95242
36018  // This is fixed in g++ 10.2, but has the fix is in the compiler
36019  // instead of the library, clang++ 10.0 also has trouble with it.
36020  // If we hit a compiler with this issue, we simply do not use
36021  // -Wzero-as-null-pointer-constant.
36022  std::string a{"foo"}, b{"bar"};
36023  if (b < a)
36024    return 1;
36025  return argv[argc-1] == nullptr;
36026}
36027EOF
36028  cf_save_CXXFLAGS="$CXXFLAGS"
36029  ac_cv_prog_gxx_warn_flags="-W -Wall"
36030  for cf_opt in \
36031   Werror \
36032   Wint-to-void-pointer-cast \
36033   Wzero-as-null-pointer-constant \
36034   Wcast-align \
36035   Wpointer-arith \
36036   Wwrite-strings \
36037   Wcast-qual \
36038   Wdocumentation \
36039   Wmissing-declarations \
36040   Wnoexcept \
36041   Woverloaded-virtual \
36042   Wmisleading-indentation \
36043   Wimplicit-fallthrough \
36044   Wlogical-op \
36045   Wduplicated-cond \
36046   Wnull-dereference \
36047   Wsuggest-override \
36048   Wpedantic
36049  do
36050    CXXFLAGS="$cf_save_CXXFLAGS $ac_cv_prog_gxx_warn_flags -$cf_opt"
36051    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
36052  (eval $ac_compile) 2>&5
36053  ac_status=$?
36054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36055  test $ac_status = 0; }; then
36056      ac_cv_prog_gxx_warn_flags="$ac_cv_prog_gxx_warn_flags -$cf_opt"
36057      test "$cf_opt" = Wcast-qual && ac_cv_prog_gxx_warn_flags="$ac_cv_prog_gxx_warn_flags -DXTSTRINGDEFINES"
36058    fi
36059  done
36060  rm -f conftest*
36061  CXXFLAGS="$cf_save_CXXFLAGS"
36062fi
36063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gxx_warn_flags" >&5
36064$as_echo "$ac_cv_prog_gxx_warn_flags" >&6; }
36065fi
36066WARNING_CXXFLAGS="${ac_cv_prog_gxx_warn_flags}"
36067
36068
36069fi
36070
36071 if false; then
36072  NEVER_TRUE=
36073  NEVER_FALSE='#'
36074else
36075  NEVER_TRUE='#'
36076  NEVER_FALSE=
36077fi
36078
36079# Extract the first word of "dot", so it can be a program name with args.
36080set dummy dot; ac_word=$2
36081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36082$as_echo_n "checking for $ac_word... " >&6; }
36083if ${ac_cv_prog_DOT+:} false; then :
36084  $as_echo_n "(cached) " >&6
36085else
36086  if test -n "$DOT"; then
36087  ac_cv_prog_DOT="$DOT" # Let the user override the test.
36088else
36089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36090for as_dir in $PATH
36091do
36092  IFS=$as_save_IFS
36093  test -z "$as_dir" && as_dir=.
36094    for ac_exec_ext in '' $ac_executable_extensions; do
36095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36096    ac_cv_prog_DOT="dot"
36097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36098    break 2
36099  fi
36100done
36101  done
36102IFS=$as_save_IFS
36103
36104fi
36105fi
36106DOT=$ac_cv_prog_DOT
36107if test -n "$DOT"; then
36108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
36109$as_echo "$DOT" >&6; }
36110else
36111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36112$as_echo "no" >&6; }
36113fi
36114
36115
36116# Extract the first word of "ltl2ba", so it can be a program name with args.
36117set dummy ltl2ba; ac_word=$2
36118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36119$as_echo_n "checking for $ac_word... " >&6; }
36120if ${ac_cv_prog_LTL2BA+:} false; then :
36121  $as_echo_n "(cached) " >&6
36122else
36123  if test -n "$LTL2BA"; then
36124  ac_cv_prog_LTL2BA="$LTL2BA" # Let the user override the test.
36125else
36126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36127for as_dir in $PATH
36128do
36129  IFS=$as_save_IFS
36130  test -z "$as_dir" && as_dir=.
36131    for ac_exec_ext in '' $ac_executable_extensions; do
36132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36133    ac_cv_prog_LTL2BA="ltl2ba"
36134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36135    break 2
36136  fi
36137done
36138  done
36139IFS=$as_save_IFS
36140
36141fi
36142fi
36143LTL2BA=$ac_cv_prog_LTL2BA
36144if test -n "$LTL2BA"; then
36145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTL2BA" >&5
36146$as_echo "$LTL2BA" >&6; }
36147else
36148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36149$as_echo "no" >&6; }
36150fi
36151
36152
36153# Extract the first word of "ltl3ba", so it can be a program name with args.
36154set dummy ltl3ba; ac_word=$2
36155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36156$as_echo_n "checking for $ac_word... " >&6; }
36157if ${ac_cv_prog_LTL3BA+:} false; then :
36158  $as_echo_n "(cached) " >&6
36159else
36160  if test -n "$LTL3BA"; then
36161  ac_cv_prog_LTL3BA="$LTL3BA" # Let the user override the test.
36162else
36163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36164for as_dir in $PATH
36165do
36166  IFS=$as_save_IFS
36167  test -z "$as_dir" && as_dir=.
36168    for ac_exec_ext in '' $ac_executable_extensions; do
36169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36170    ac_cv_prog_LTL3BA="ltl3ba"
36171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36172    break 2
36173  fi
36174done
36175  done
36176IFS=$as_save_IFS
36177
36178fi
36179fi
36180LTL3BA=$ac_cv_prog_LTL3BA
36181if test -n "$LTL3BA"; then
36182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTL3BA" >&5
36183$as_echo "$LTL3BA" >&6; }
36184else
36185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36186$as_echo "no" >&6; }
36187fi
36188
36189
36190# Extract the first word of "perl", so it can be a program name with args.
36191set dummy perl; ac_word=$2
36192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36193$as_echo_n "checking for $ac_word... " >&6; }
36194if ${ac_cv_prog_PERL+:} false; then :
36195  $as_echo_n "(cached) " >&6
36196else
36197  if test -n "$PERL"; then
36198  ac_cv_prog_PERL="$PERL" # Let the user override the test.
36199else
36200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36201for as_dir in $PATH
36202do
36203  IFS=$as_save_IFS
36204  test -z "$as_dir" && as_dir=.
36205    for ac_exec_ext in '' $ac_executable_extensions; do
36206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36207    ac_cv_prog_PERL="perl"
36208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36209    break 2
36210  fi
36211done
36212  done
36213IFS=$as_save_IFS
36214
36215fi
36216fi
36217PERL=$ac_cv_prog_PERL
36218if test -n "$PERL"; then
36219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
36220$as_echo "$PERL" >&6; }
36221else
36222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36223$as_echo "no" >&6; }
36224fi
36225
36226
36227# Extract the first word of "spin", so it can be a program name with args.
36228set dummy spin; ac_word=$2
36229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36230$as_echo_n "checking for $ac_word... " >&6; }
36231if ${ac_cv_prog_SPIN+:} false; then :
36232  $as_echo_n "(cached) " >&6
36233else
36234  if test -n "$SPIN"; then
36235  ac_cv_prog_SPIN="$SPIN" # Let the user override the test.
36236else
36237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36238for as_dir in $PATH
36239do
36240  IFS=$as_save_IFS
36241  test -z "$as_dir" && as_dir=.
36242    for ac_exec_ext in '' $ac_executable_extensions; do
36243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36244    ac_cv_prog_SPIN="spin"
36245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36246    break 2
36247  fi
36248done
36249  done
36250IFS=$as_save_IFS
36251
36252fi
36253fi
36254SPIN=$ac_cv_prog_SPIN
36255if test -n "$SPIN"; then
36256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPIN" >&5
36257$as_echo "$SPIN" >&6; }
36258else
36259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36260$as_echo "no" >&6; }
36261fi
36262
36263
36264# Extract the first word of "lbtt", so it can be a program name with args.
36265set dummy lbtt; ac_word=$2
36266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36267$as_echo_n "checking for $ac_word... " >&6; }
36268if ${ac_cv_prog_LBTT+:} false; then :
36269  $as_echo_n "(cached) " >&6
36270else
36271  if test -n "$LBTT"; then
36272  ac_cv_prog_LBTT="$LBTT" # Let the user override the test.
36273else
36274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36275for as_dir in $PATH
36276do
36277  IFS=$as_save_IFS
36278  test -z "$as_dir" && as_dir=.
36279    for ac_exec_ext in '' $ac_executable_extensions; do
36280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36281    ac_cv_prog_LBTT="lbtt"
36282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36283    break 2
36284  fi
36285done
36286  done
36287IFS=$as_save_IFS
36288
36289fi
36290fi
36291LBTT=$ac_cv_prog_LBTT
36292if test -n "$LBTT"; then
36293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LBTT" >&5
36294$as_echo "$LBTT" >&6; }
36295else
36296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36297$as_echo "no" >&6; }
36298fi
36299
36300
36301# Extract the first word of "emacs", so it can be a program name with args.
36302set dummy emacs; ac_word=$2
36303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36304$as_echo_n "checking for $ac_word... " >&6; }
36305if ${ac_cv_prog_EMACS+:} false; then :
36306  $as_echo_n "(cached) " >&6
36307else
36308  if test -n "$EMACS"; then
36309  ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
36310else
36311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36312for as_dir in $PATH
36313do
36314  IFS=$as_save_IFS
36315  test -z "$as_dir" && as_dir=.
36316    for ac_exec_ext in '' $ac_executable_extensions; do
36317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36318    ac_cv_prog_EMACS="emacs"
36319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36320    break 2
36321  fi
36322done
36323  done
36324IFS=$as_save_IFS
36325
36326fi
36327fi
36328EMACS=$ac_cv_prog_EMACS
36329if test -n "$EMACS"; then
36330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
36331$as_echo "$EMACS" >&6; }
36332else
36333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36334$as_echo "no" >&6; }
36335fi
36336
36337
36338for ac_prog in ipython3 ipython
36339do
36340  # Extract the first word of "$ac_prog", so it can be a program name with args.
36341set dummy $ac_prog; ac_word=$2
36342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36343$as_echo_n "checking for $ac_word... " >&6; }
36344if ${ac_cv_prog_IPYTHON+:} false; then :
36345  $as_echo_n "(cached) " >&6
36346else
36347  if test -n "$IPYTHON"; then
36348  ac_cv_prog_IPYTHON="$IPYTHON" # Let the user override the test.
36349else
36350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36351for as_dir in $PATH
36352do
36353  IFS=$as_save_IFS
36354  test -z "$as_dir" && as_dir=.
36355    for ac_exec_ext in '' $ac_executable_extensions; do
36356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36357    ac_cv_prog_IPYTHON="$ac_prog"
36358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36359    break 2
36360  fi
36361done
36362  done
36363IFS=$as_save_IFS
36364
36365fi
36366fi
36367IPYTHON=$ac_cv_prog_IPYTHON
36368if test -n "$IPYTHON"; then
36369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPYTHON" >&5
36370$as_echo "$IPYTHON" >&6; }
36371else
36372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36373$as_echo "no" >&6; }
36374fi
36375
36376
36377  test -n "$IPYTHON" && break
36378done
36379test -n "$IPYTHON" || IPYTHON="ipython"
36380
36381for ac_prog in jupyter
36382do
36383  # Extract the first word of "$ac_prog", so it can be a program name with args.
36384set dummy $ac_prog; ac_word=$2
36385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36386$as_echo_n "checking for $ac_word... " >&6; }
36387if ${ac_cv_prog_JUPYTER+:} false; then :
36388  $as_echo_n "(cached) " >&6
36389else
36390  if test -n "$JUPYTER"; then
36391  ac_cv_prog_JUPYTER="$JUPYTER" # Let the user override the test.
36392else
36393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36394for as_dir in $PATH
36395do
36396  IFS=$as_save_IFS
36397  test -z "$as_dir" && as_dir=.
36398    for ac_exec_ext in '' $ac_executable_extensions; do
36399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36400    ac_cv_prog_JUPYTER="$ac_prog"
36401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36402    break 2
36403  fi
36404done
36405  done
36406IFS=$as_save_IFS
36407
36408fi
36409fi
36410JUPYTER=$ac_cv_prog_JUPYTER
36411if test -n "$JUPYTER"; then
36412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JUPYTER" >&5
36413$as_echo "$JUPYTER" >&6; }
36414else
36415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36416$as_echo "no" >&6; }
36417fi
36418
36419
36420  test -n "$JUPYTER" && break
36421done
36422test -n "$JUPYTER" || JUPYTER="jupyter"
36423
36424# Extract the first word of "lbtt-translate", so it can be a program name with args.
36425set dummy lbtt-translate; ac_word=$2
36426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36427$as_echo_n "checking for $ac_word... " >&6; }
36428if ${ac_cv_prog_LBTT_TRANSLATE+:} false; then :
36429  $as_echo_n "(cached) " >&6
36430else
36431  if test -n "$LBTT_TRANSLATE"; then
36432  ac_cv_prog_LBTT_TRANSLATE="$LBTT_TRANSLATE" # Let the user override the test.
36433else
36434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36435for as_dir in $PATH
36436do
36437  IFS=$as_save_IFS
36438  test -z "$as_dir" && as_dir=.
36439    for ac_exec_ext in '' $ac_executable_extensions; do
36440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36441    ac_cv_prog_LBTT_TRANSLATE="lbtt-translate"
36442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36443    break 2
36444  fi
36445done
36446  done
36447IFS=$as_save_IFS
36448
36449fi
36450fi
36451LBTT_TRANSLATE=$ac_cv_prog_LBTT_TRANSLATE
36452if test -n "$LBTT_TRANSLATE"; then
36453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LBTT_TRANSLATE" >&5
36454$as_echo "$LBTT_TRANSLATE" >&6; }
36455else
36456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36457$as_echo "no" >&6; }
36458fi
36459
36460
36461
36462  # Extract the first word of "valgrind", so it can be a program name with args.
36463set dummy valgrind; ac_word=$2
36464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36465$as_echo_n "checking for $ac_word... " >&6; }
36466if ${ac_cv_prog_VALGRIND+:} false; then :
36467  $as_echo_n "(cached) " >&6
36468else
36469  if test -n "$VALGRIND"; then
36470  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
36471else
36472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36473for as_dir in $PATH
36474do
36475  IFS=$as_save_IFS
36476  test -z "$as_dir" && as_dir=.
36477    for ac_exec_ext in '' $ac_executable_extensions; do
36478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36479    ac_cv_prog_VALGRIND="valgrind"
36480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36481    break 2
36482  fi
36483done
36484  done
36485IFS=$as_save_IFS
36486
36487fi
36488fi
36489VALGRIND=$ac_cv_prog_VALGRIND
36490if test -n "$VALGRIND"; then
36491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
36492$as_echo "$VALGRIND" >&6; }
36493else
36494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36495$as_echo "no" >&6; }
36496fi
36497
36498
36499  if test -n "$VALGRIND"; then
36500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is sane" >&5
36501$as_echo_n "checking whether valgrind is sane... " >&6; }
36502if ${ax_cv_valgrind_sanity+:} false; then :
36503  $as_echo_n "(cached) " >&6
36504else
36505
36506  if (exec 8>valgrind.err
36507      exitcode=0
36508      $VALGRIND --tool=memcheck --leak-check=yes --log-fd=8 -q ls >/dev/null ||
36509        exitcode=$?
36510      test -z "`sed 1q valgrind.err`" || exitcode=50
36511      rm -f valgrind.err
36512      exit $exitcode
36513     ); then
36514     ax_cv_valgrind_sanity=yes;
36515  else
36516     ax_cv_valgrind_sanity=no;
36517  fi
36518
36519fi
36520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_sanity" >&5
36521$as_echo "$ax_cv_valgrind_sanity" >&6; }
36522    if test x"$ax_cv_valgrind_sanity" = xno; then
36523      VALGRIND=
36524    fi
36525  fi
36526
36527# Debian used to reserve the name 'swig' for swig-2.0.  So prefer
36528# swig4.0 (available in Debian bullseye) to swig3.0 (available in Debian buster)
36529# ti swig.
36530for ac_prog in swig4.0 swig3.0 swig
36531do
36532  # Extract the first word of "$ac_prog", so it can be a program name with args.
36533set dummy $ac_prog; ac_word=$2
36534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36535$as_echo_n "checking for $ac_word... " >&6; }
36536if ${ac_cv_prog_SWIG+:} false; then :
36537  $as_echo_n "(cached) " >&6
36538else
36539  if test -n "$SWIG"; then
36540  ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
36541else
36542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36543for as_dir in $PATH
36544do
36545  IFS=$as_save_IFS
36546  test -z "$as_dir" && as_dir=.
36547    for ac_exec_ext in '' $ac_executable_extensions; do
36548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36549    ac_cv_prog_SWIG="$ac_prog"
36550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36551    break 2
36552  fi
36553done
36554  done
36555IFS=$as_save_IFS
36556
36557fi
36558fi
36559SWIG=$ac_cv_prog_SWIG
36560if test -n "$SWIG"; then
36561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
36562$as_echo "$SWIG" >&6; }
36563else
36564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36565$as_echo "no" >&6; }
36566fi
36567
36568
36569  test -n "$SWIG" && break
36570done
36571test -n "$SWIG" || SWIG="swig"
36572
36573
36574CROSS_COMPILING=$cross_compiling
36575
36576
36577GITPATCH=$(if (git rev-parse) >/dev/null 2>&1; then
36578 echo ".$(git rev-list $(git rev-list --tags='spot-*' --no-walk \
36579 --max-count=1)..HEAD --count)"
36580fi)
36581
36582
36583ac_config_files="$ac_config_files Makefile bin/Makefile bin/man/Makefile bench/Makefile bench/dtgbasat/Makefile bench/emptchk/Makefile bench/emptchk/defs bench/ltlcounter/Makefile bench/ltlclasses/Makefile bench/ltl2tgba/Makefile bench/ltl2tgba/defs bench/spin13/Makefile bench/wdba/Makefile bench/stutter/Makefile doc/Doxyfile doc/Makefile doc/tl/Makefile doc/org/.dir-locals.el doc/org/init.el elisp/Makefile lib/Makefile picosat/Makefile spot/graph/Makefile spot/kripke/Makefile spot/ltsmin/Makefile spot/Makefile spot/misc/Makefile spot/mc/Makefile spot/parseaut/Makefile spot/parsetl/Makefile spot/priv/Makefile spot/taalgos/Makefile spot/ta/Makefile spot/tl/Makefile spot/twaalgos/gtec/Makefile spot/twaalgos/Makefile spot/twacube_algos/Makefile spot/twa/Makefile spot/gen/Makefile spot/twacube/Makefile python/Makefile tests/core/defs tests/ltsmin/defs:tests/core/defs.in tests/Makefile tools/x-to-1"
36584
36585ac_config_files="$ac_config_files doc/org/g++wrap"
36586
36587ac_config_files="$ac_config_files tests/run"
36588
36589cat >confcache <<\_ACEOF
36590# This file is a shell script that caches the results of configure
36591# tests run on this system so they can be shared between configure
36592# scripts and configure runs, see configure's option --config-cache.
36593# It is not useful on other systems.  If it contains results you don't
36594# want to keep, you may remove or edit it.
36595#
36596# config.status only pays attention to the cache file if you give it
36597# the --recheck option to rerun configure.
36598#
36599# `ac_cv_env_foo' variables (set or unset) will be overridden when
36600# loading this file, other *unset* `ac_cv_foo' will be assigned the
36601# following values.
36602
36603_ACEOF
36604
36605# The following way of writing the cache mishandles newlines in values,
36606# but we know of no workaround that is simple, portable, and efficient.
36607# So, we kill variables containing newlines.
36608# Ultrix sh set writes to stderr and can't be redirected directly,
36609# and sets the high bit in the cache file unless we assign to the vars.
36610(
36611  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36612    eval ac_val=\$$ac_var
36613    case $ac_val in #(
36614    *${as_nl}*)
36615      case $ac_var in #(
36616      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36617$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36618      esac
36619      case $ac_var in #(
36620      _ | IFS | as_nl) ;; #(
36621      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36622      *) { eval $ac_var=; unset $ac_var;} ;;
36623      esac ;;
36624    esac
36625  done
36626
36627  (set) 2>&1 |
36628    case $as_nl`(ac_space=' '; set) 2>&1` in #(
36629    *${as_nl}ac_space=\ *)
36630      # `set' does not quote correctly, so add quotes: double-quote
36631      # substitution turns \\\\ into \\, and sed turns \\ into \.
36632      sed -n \
36633	"s/'/'\\\\''/g;
36634	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36635      ;; #(
36636    *)
36637      # `set' quotes correctly as required by POSIX, so do not add quotes.
36638      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36639      ;;
36640    esac |
36641    sort
36642) |
36643  sed '
36644     /^ac_cv_env_/b end
36645     t clear
36646     :clear
36647     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36648     t end
36649     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36650     :end' >>confcache
36651if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36652  if test -w "$cache_file"; then
36653    if test "x$cache_file" != "x/dev/null"; then
36654      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36655$as_echo "$as_me: updating cache $cache_file" >&6;}
36656      if test ! -f "$cache_file" || test -h "$cache_file"; then
36657	cat confcache >"$cache_file"
36658      else
36659        case $cache_file in #(
36660        */* | ?:*)
36661	  mv -f confcache "$cache_file"$$ &&
36662	  mv -f "$cache_file"$$ "$cache_file" ;; #(
36663        *)
36664	  mv -f confcache "$cache_file" ;;
36665	esac
36666      fi
36667    fi
36668  else
36669    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36670$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36671  fi
36672fi
36673rm -f confcache
36674
36675test "x$prefix" = xNONE && prefix=$ac_default_prefix
36676# Let make expand exec_prefix.
36677test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36678
36679DEFS=-DHAVE_CONFIG_H
36680
36681ac_libobjs=
36682ac_ltlibobjs=
36683U=
36684for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36685  # 1. Remove the extension, and $U if already installed.
36686  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36687  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36688  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
36689  #    will be set to the directory where LIBOBJS objects are built.
36690  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36691  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36692done
36693LIBOBJS=$ac_libobjs
36694
36695LTLIBOBJS=$ac_ltlibobjs
36696
36697
36698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36699$as_echo_n "checking that generated files are newer than configure... " >&6; }
36700   if test -n "$am_sleep_pid"; then
36701     # Hide warnings about reused PIDs.
36702     wait $am_sleep_pid 2>/dev/null
36703   fi
36704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36705$as_echo "done" >&6; }
36706 if test -n "$EXEEXT"; then
36707  am__EXEEXT_TRUE=
36708  am__EXEEXT_FALSE='#'
36709else
36710  am__EXEEXT_TRUE='#'
36711  am__EXEEXT_FALSE=
36712fi
36713
36714if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36715  as_fn_error $? "conditional \"AMDEP\" was never defined.
36716Usually this means the macro was only invoked conditionally." "$LINENO" 5
36717fi
36718if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36719  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36720Usually this means the macro was only invoked conditionally." "$LINENO" 5
36721fi
36722if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36723  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36724Usually this means the macro was only invoked conditionally." "$LINENO" 5
36725fi
36726if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
36727  as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined.
36728Usually this means the macro was only invoked conditionally." "$LINENO" 5
36729fi
36730if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
36731  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
36732Usually this means the macro was only invoked conditionally." "$LINENO" 5
36733fi
36734if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
36735  as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
36736Usually this means the macro was only invoked conditionally." "$LINENO" 5
36737fi
36738if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
36739  as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
36740Usually this means the macro was only invoked conditionally." "$LINENO" 5
36741fi
36742if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
36743  as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
36744Usually this means the macro was only invoked conditionally." "$LINENO" 5
36745fi
36746if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
36747  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
36748Usually this means the macro was only invoked conditionally." "$LINENO" 5
36749fi
36750if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
36751  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
36752Usually this means the macro was only invoked conditionally." "$LINENO" 5
36753fi
36754if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
36755  as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
36756Usually this means the macro was only invoked conditionally." "$LINENO" 5
36757fi
36758if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
36759  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
36760Usually this means the macro was only invoked conditionally." "$LINENO" 5
36761fi
36762if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
36763  as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
36764Usually this means the macro was only invoked conditionally." "$LINENO" 5
36765fi
36766if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
36767  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
36768Usually this means the macro was only invoked conditionally." "$LINENO" 5
36769fi
36770if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
36771  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
36772Usually this means the macro was only invoked conditionally." "$LINENO" 5
36773fi
36774if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
36775  as_fn_error $? "conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
36776Usually this means the macro was only invoked conditionally." "$LINENO" 5
36777fi
36778
36779
36780    gl_libobjs=
36781    gl_ltlibobjs=
36782    if test -n "$gl_LIBOBJS"; then
36783      # Remove the extension.
36784      sed_drop_objext='s/\.o$//;s/\.obj$//'
36785      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
36786        gl_libobjs="$gl_libobjs $i.$ac_objext"
36787        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
36788      done
36789    fi
36790    gl_LIBOBJS=$gl_libobjs
36791
36792    gl_LTLIBOBJS=$gl_ltlibobjs
36793
36794
36795
36796    gltests_libobjs=
36797    gltests_ltlibobjs=
36798    if test -n "$gltests_LIBOBJS"; then
36799      # Remove the extension.
36800      sed_drop_objext='s/\.o$//;s/\.obj$//'
36801      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
36802        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
36803        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
36804      done
36805    fi
36806    gltests_LIBOBJS=$gltests_libobjs
36807
36808    gltests_LTLIBOBJS=$gltests_ltlibobjs
36809
36810
36811if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
36812  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
36813Usually this means the macro was only invoked conditionally." "$LINENO" 5
36814fi
36815if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
36816  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
36817Usually this means the macro was only invoked conditionally." "$LINENO" 5
36818fi
36819LT_CONFIG_H=config.h
36820
36821    _ltdl_libobjs=
36822    _ltdl_ltlibobjs=
36823    if test -n "$_LT_LIBOBJS"; then
36824      # Remove the extension.
36825      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36826      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36827        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36828        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36829      done
36830    fi
36831    ltdl_LIBOBJS=$_ltdl_libobjs
36832
36833    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36834
36835
36836if test -z "${USE_PYTHON_TRUE}" && test -z "${USE_PYTHON_FALSE}"; then
36837  as_fn_error $? "conditional \"USE_PYTHON\" was never defined.
36838Usually this means the macro was only invoked conditionally." "$LINENO" 5
36839fi
36840if test -z "${NEVER_TRUE}" && test -z "${NEVER_FALSE}"; then
36841  as_fn_error $? "conditional \"NEVER\" was never defined.
36842Usually this means the macro was only invoked conditionally." "$LINENO" 5
36843fi
36844
36845: "${CONFIG_STATUS=./config.status}"
36846ac_write_fail=0
36847ac_clean_files_save=$ac_clean_files
36848ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36849{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36850$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36851as_write_fail=0
36852cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36853#! $SHELL
36854# Generated by $as_me.
36855# Run this file to recreate the current configuration.
36856# Compiler output produced by configure, useful for debugging
36857# configure, is in config.log if it exists.
36858
36859debug=false
36860ac_cs_recheck=false
36861ac_cs_silent=false
36862
36863SHELL=\${CONFIG_SHELL-$SHELL}
36864export SHELL
36865_ASEOF
36866cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36867## -------------------- ##
36868## M4sh Initialization. ##
36869## -------------------- ##
36870
36871# Be more Bourne compatible
36872DUALCASE=1; export DUALCASE # for MKS sh
36873if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36874  emulate sh
36875  NULLCMD=:
36876  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36877  # is contrary to our usage.  Disable this feature.
36878  alias -g '${1+"$@"}'='"$@"'
36879  setopt NO_GLOB_SUBST
36880else
36881  case `(set -o) 2>/dev/null` in #(
36882  *posix*) :
36883    set -o posix ;; #(
36884  *) :
36885     ;;
36886esac
36887fi
36888
36889
36890as_nl='
36891'
36892export as_nl
36893# Printing a long string crashes Solaris 7 /usr/bin/printf.
36894as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36895as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36896as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36897# Prefer a ksh shell builtin over an external printf program on Solaris,
36898# but without wasting forks for bash or zsh.
36899if test -z "$BASH_VERSION$ZSH_VERSION" \
36900    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36901  as_echo='print -r --'
36902  as_echo_n='print -rn --'
36903elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36904  as_echo='printf %s\n'
36905  as_echo_n='printf %s'
36906else
36907  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36908    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36909    as_echo_n='/usr/ucb/echo -n'
36910  else
36911    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36912    as_echo_n_body='eval
36913      arg=$1;
36914      case $arg in #(
36915      *"$as_nl"*)
36916	expr "X$arg" : "X\\(.*\\)$as_nl";
36917	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36918      esac;
36919      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36920    '
36921    export as_echo_n_body
36922    as_echo_n='sh -c $as_echo_n_body as_echo'
36923  fi
36924  export as_echo_body
36925  as_echo='sh -c $as_echo_body as_echo'
36926fi
36927
36928# The user is always right.
36929if test "${PATH_SEPARATOR+set}" != set; then
36930  PATH_SEPARATOR=:
36931  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36932    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36933      PATH_SEPARATOR=';'
36934  }
36935fi
36936
36937
36938# IFS
36939# We need space, tab and new line, in precisely that order.  Quoting is
36940# there to prevent editors from complaining about space-tab.
36941# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36942# splitting by setting IFS to empty value.)
36943IFS=" ""	$as_nl"
36944
36945# Find who we are.  Look in the path if we contain no directory separator.
36946as_myself=
36947case $0 in #((
36948  *[\\/]* ) as_myself=$0 ;;
36949  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36950for as_dir in $PATH
36951do
36952  IFS=$as_save_IFS
36953  test -z "$as_dir" && as_dir=.
36954    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36955  done
36956IFS=$as_save_IFS
36957
36958     ;;
36959esac
36960# We did not find ourselves, most probably we were run as `sh COMMAND'
36961# in which case we are not to be found in the path.
36962if test "x$as_myself" = x; then
36963  as_myself=$0
36964fi
36965if test ! -f "$as_myself"; then
36966  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36967  exit 1
36968fi
36969
36970# Unset variables that we do not need and which cause bugs (e.g. in
36971# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
36972# suppresses any "Segmentation fault" message there.  '((' could
36973# trigger a bug in pdksh 5.2.14.
36974for as_var in BASH_ENV ENV MAIL MAILPATH
36975do eval test x\${$as_var+set} = xset \
36976  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36977done
36978PS1='$ '
36979PS2='> '
36980PS4='+ '
36981
36982# NLS nuisances.
36983LC_ALL=C
36984export LC_ALL
36985LANGUAGE=C
36986export LANGUAGE
36987
36988# CDPATH.
36989(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36990
36991
36992# as_fn_error STATUS ERROR [LINENO LOG_FD]
36993# ----------------------------------------
36994# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36995# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36996# script with STATUS, using 1 if that was 0.
36997as_fn_error ()
36998{
36999  as_status=$1; test $as_status -eq 0 && as_status=1
37000  if test "$4"; then
37001    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37002    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37003  fi
37004  $as_echo "$as_me: error: $2" >&2
37005  as_fn_exit $as_status
37006} # as_fn_error
37007
37008
37009# as_fn_set_status STATUS
37010# -----------------------
37011# Set $? to STATUS, without forking.
37012as_fn_set_status ()
37013{
37014  return $1
37015} # as_fn_set_status
37016
37017# as_fn_exit STATUS
37018# -----------------
37019# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37020as_fn_exit ()
37021{
37022  set +e
37023  as_fn_set_status $1
37024  exit $1
37025} # as_fn_exit
37026
37027# as_fn_unset VAR
37028# ---------------
37029# Portably unset VAR.
37030as_fn_unset ()
37031{
37032  { eval $1=; unset $1;}
37033}
37034as_unset=as_fn_unset
37035# as_fn_append VAR VALUE
37036# ----------------------
37037# Append the text in VALUE to the end of the definition contained in VAR. Take
37038# advantage of any shell optimizations that allow amortized linear growth over
37039# repeated appends, instead of the typical quadratic growth present in naive
37040# implementations.
37041if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37042  eval 'as_fn_append ()
37043  {
37044    eval $1+=\$2
37045  }'
37046else
37047  as_fn_append ()
37048  {
37049    eval $1=\$$1\$2
37050  }
37051fi # as_fn_append
37052
37053# as_fn_arith ARG...
37054# ------------------
37055# Perform arithmetic evaluation on the ARGs, and store the result in the
37056# global $as_val. Take advantage of shells that can avoid forks. The arguments
37057# must be portable across $(()) and expr.
37058if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37059  eval 'as_fn_arith ()
37060  {
37061    as_val=$(( $* ))
37062  }'
37063else
37064  as_fn_arith ()
37065  {
37066    as_val=`expr "$@" || test $? -eq 1`
37067  }
37068fi # as_fn_arith
37069
37070
37071if expr a : '\(a\)' >/dev/null 2>&1 &&
37072   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37073  as_expr=expr
37074else
37075  as_expr=false
37076fi
37077
37078if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37079  as_basename=basename
37080else
37081  as_basename=false
37082fi
37083
37084if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37085  as_dirname=dirname
37086else
37087  as_dirname=false
37088fi
37089
37090as_me=`$as_basename -- "$0" ||
37091$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37092	 X"$0" : 'X\(//\)$' \| \
37093	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37094$as_echo X/"$0" |
37095    sed '/^.*\/\([^/][^/]*\)\/*$/{
37096	    s//\1/
37097	    q
37098	  }
37099	  /^X\/\(\/\/\)$/{
37100	    s//\1/
37101	    q
37102	  }
37103	  /^X\/\(\/\).*/{
37104	    s//\1/
37105	    q
37106	  }
37107	  s/.*/./; q'`
37108
37109# Avoid depending upon Character Ranges.
37110as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37111as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37112as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37113as_cr_digits='0123456789'
37114as_cr_alnum=$as_cr_Letters$as_cr_digits
37115
37116ECHO_C= ECHO_N= ECHO_T=
37117case `echo -n x` in #(((((
37118-n*)
37119  case `echo 'xy\c'` in
37120  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
37121  xy)  ECHO_C='\c';;
37122  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
37123       ECHO_T='	';;
37124  esac;;
37125*)
37126  ECHO_N='-n';;
37127esac
37128
37129rm -f conf$$ conf$$.exe conf$$.file
37130if test -d conf$$.dir; then
37131  rm -f conf$$.dir/conf$$.file
37132else
37133  rm -f conf$$.dir
37134  mkdir conf$$.dir 2>/dev/null
37135fi
37136if (echo >conf$$.file) 2>/dev/null; then
37137  if ln -s conf$$.file conf$$ 2>/dev/null; then
37138    as_ln_s='ln -s'
37139    # ... but there are two gotchas:
37140    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37141    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37142    # In both cases, we have to default to `cp -pR'.
37143    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37144      as_ln_s='cp -pR'
37145  elif ln conf$$.file conf$$ 2>/dev/null; then
37146    as_ln_s=ln
37147  else
37148    as_ln_s='cp -pR'
37149  fi
37150else
37151  as_ln_s='cp -pR'
37152fi
37153rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37154rmdir conf$$.dir 2>/dev/null
37155
37156
37157# as_fn_mkdir_p
37158# -------------
37159# Create "$as_dir" as a directory, including parents if necessary.
37160as_fn_mkdir_p ()
37161{
37162
37163  case $as_dir in #(
37164  -*) as_dir=./$as_dir;;
37165  esac
37166  test -d "$as_dir" || eval $as_mkdir_p || {
37167    as_dirs=
37168    while :; do
37169      case $as_dir in #(
37170      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37171      *) as_qdir=$as_dir;;
37172      esac
37173      as_dirs="'$as_qdir' $as_dirs"
37174      as_dir=`$as_dirname -- "$as_dir" ||
37175$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37176	 X"$as_dir" : 'X\(//\)[^/]' \| \
37177	 X"$as_dir" : 'X\(//\)$' \| \
37178	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37179$as_echo X"$as_dir" |
37180    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37181	    s//\1/
37182	    q
37183	  }
37184	  /^X\(\/\/\)[^/].*/{
37185	    s//\1/
37186	    q
37187	  }
37188	  /^X\(\/\/\)$/{
37189	    s//\1/
37190	    q
37191	  }
37192	  /^X\(\/\).*/{
37193	    s//\1/
37194	    q
37195	  }
37196	  s/.*/./; q'`
37197      test -d "$as_dir" && break
37198    done
37199    test -z "$as_dirs" || eval "mkdir $as_dirs"
37200  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37201
37202
37203} # as_fn_mkdir_p
37204if mkdir -p . 2>/dev/null; then
37205  as_mkdir_p='mkdir -p "$as_dir"'
37206else
37207  test -d ./-p && rmdir ./-p
37208  as_mkdir_p=false
37209fi
37210
37211
37212# as_fn_executable_p FILE
37213# -----------------------
37214# Test if FILE is an executable regular file.
37215as_fn_executable_p ()
37216{
37217  test -f "$1" && test -x "$1"
37218} # as_fn_executable_p
37219as_test_x='test -x'
37220as_executable_p=as_fn_executable_p
37221
37222# Sed expression to map a string onto a valid CPP name.
37223as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37224
37225# Sed expression to map a string onto a valid variable name.
37226as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37227
37228
37229exec 6>&1
37230## ----------------------------------- ##
37231## Main body of $CONFIG_STATUS script. ##
37232## ----------------------------------- ##
37233_ASEOF
37234test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37235
37236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37237# Save the log message, to keep $0 and so on meaningful, and to
37238# report actual input values of CONFIG_FILES etc. instead of their
37239# values after options handling.
37240ac_log="
37241This file was extended by spot $as_me 2.10.2, which was
37242generated by GNU Autoconf 2.69.  Invocation command line was
37243
37244  CONFIG_FILES    = $CONFIG_FILES
37245  CONFIG_HEADERS  = $CONFIG_HEADERS
37246  CONFIG_LINKS    = $CONFIG_LINKS
37247  CONFIG_COMMANDS = $CONFIG_COMMANDS
37248  $ $0 $@
37249
37250on `(hostname || uname -n) 2>/dev/null | sed 1q`
37251"
37252
37253_ACEOF
37254
37255case $ac_config_files in *"
37256"*) set x $ac_config_files; shift; ac_config_files=$*;;
37257esac
37258
37259case $ac_config_headers in *"
37260"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37261esac
37262
37263
37264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37265# Files that config.status was made for.
37266config_files="$ac_config_files"
37267config_headers="$ac_config_headers"
37268config_commands="$ac_config_commands"
37269
37270_ACEOF
37271
37272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37273ac_cs_usage="\
37274\`$as_me' instantiates files and other configuration actions
37275from templates according to the current configuration.  Unless the files
37276and actions are specified as TAGs, all are instantiated by default.
37277
37278Usage: $0 [OPTION]... [TAG]...
37279
37280  -h, --help       print this help, then exit
37281  -V, --version    print version number and configuration settings, then exit
37282      --config     print configuration, then exit
37283  -q, --quiet, --silent
37284                   do not print progress messages
37285  -d, --debug      don't remove temporary files
37286      --recheck    update $as_me by reconfiguring in the same conditions
37287      --file=FILE[:TEMPLATE]
37288                   instantiate the configuration file FILE
37289      --header=FILE[:TEMPLATE]
37290                   instantiate the configuration header FILE
37291
37292Configuration files:
37293$config_files
37294
37295Configuration headers:
37296$config_headers
37297
37298Configuration commands:
37299$config_commands
37300
37301Report bugs to <spot@lrde.epita.fr>."
37302
37303_ACEOF
37304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37305ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37306ac_cs_version="\\
37307spot config.status 2.10.2
37308configured by $0, generated by GNU Autoconf 2.69,
37309  with options \\"\$ac_cs_config\\"
37310
37311Copyright (C) 2012 Free Software Foundation, Inc.
37312This config.status script is free software; the Free Software Foundation
37313gives unlimited permission to copy, distribute and modify it."
37314
37315ac_pwd='$ac_pwd'
37316srcdir='$srcdir'
37317INSTALL='$INSTALL'
37318MKDIR_P='$MKDIR_P'
37319AWK='$AWK'
37320test -n "\$AWK" || AWK=awk
37321_ACEOF
37322
37323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37324# The default lists apply if the user does not specify any file.
37325ac_need_defaults=:
37326while test $# != 0
37327do
37328  case $1 in
37329  --*=?*)
37330    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37331    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37332    ac_shift=:
37333    ;;
37334  --*=)
37335    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37336    ac_optarg=
37337    ac_shift=:
37338    ;;
37339  *)
37340    ac_option=$1
37341    ac_optarg=$2
37342    ac_shift=shift
37343    ;;
37344  esac
37345
37346  case $ac_option in
37347  # Handling of the options.
37348  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37349    ac_cs_recheck=: ;;
37350  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37351    $as_echo "$ac_cs_version"; exit ;;
37352  --config | --confi | --conf | --con | --co | --c )
37353    $as_echo "$ac_cs_config"; exit ;;
37354  --debug | --debu | --deb | --de | --d | -d )
37355    debug=: ;;
37356  --file | --fil | --fi | --f )
37357    $ac_shift
37358    case $ac_optarg in
37359    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37360    '') as_fn_error $? "missing file argument" ;;
37361    esac
37362    as_fn_append CONFIG_FILES " '$ac_optarg'"
37363    ac_need_defaults=false;;
37364  --header | --heade | --head | --hea )
37365    $ac_shift
37366    case $ac_optarg in
37367    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37368    esac
37369    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37370    ac_need_defaults=false;;
37371  --he | --h)
37372    # Conflict between --help and --header
37373    as_fn_error $? "ambiguous option: \`$1'
37374Try \`$0 --help' for more information.";;
37375  --help | --hel | -h )
37376    $as_echo "$ac_cs_usage"; exit ;;
37377  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37378  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37379    ac_cs_silent=: ;;
37380
37381  # This is an error.
37382  -*) as_fn_error $? "unrecognized option: \`$1'
37383Try \`$0 --help' for more information." ;;
37384
37385  *) as_fn_append ac_config_targets " $1"
37386     ac_need_defaults=false ;;
37387
37388  esac
37389  shift
37390done
37391
37392ac_configure_extra_args=
37393
37394if $ac_cs_silent; then
37395  exec 6>/dev/null
37396  ac_configure_extra_args="$ac_configure_extra_args --silent"
37397fi
37398
37399_ACEOF
37400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37401if \$ac_cs_recheck; then
37402  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37403  shift
37404  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37405  CONFIG_SHELL='$SHELL'
37406  export CONFIG_SHELL
37407  exec "\$@"
37408fi
37409
37410_ACEOF
37411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37412exec 5>>config.log
37413{
37414  echo
37415  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37416## Running $as_me. ##
37417_ASBOX
37418  $as_echo "$ac_log"
37419} >&5
37420
37421_ACEOF
37422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37423#
37424# INIT-COMMANDS
37425#
37426PACKAGE="$PACKAGE"
37427AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
37428
37429
37430# The HP-UX ksh and POSIX shell print the target directory to stdout
37431# if CDPATH is set.
37432(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37433
37434sed_quote_subst='$sed_quote_subst'
37435double_quote_subst='$double_quote_subst'
37436delay_variable_subst='$delay_variable_subst'
37437macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37438macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37439AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37440DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37441OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37442enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37443enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37444pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37445enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37446shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
37447SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37448ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37449PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
37450host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37451host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37452host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37453build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37454build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37455build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37456SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37457Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37458GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37459EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37460FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37461LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37462NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37463LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37464max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37465ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37466exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37467lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37468lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37469lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37470lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37471lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37472reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37473reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37474deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37475file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37476file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37477want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37478sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37479AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37480AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37481archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37482STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37483RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37484old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37485old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37486old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37487lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37488CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37489CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37490compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37491GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37492lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37493lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37494lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
37495lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37496lt_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"`'
37497lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
37498nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37499lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37500lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
37501objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37502MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37503lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37504lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37505lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37506lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37507lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37508need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37509MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37510DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37511NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37512LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37513OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37514OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37515libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37516shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37517extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37518archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37519enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37520export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37521whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37522compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37523old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37524old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37525archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37526archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37527module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37528module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37529with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37530allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37531no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37532hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37533hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37534hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37535hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37536hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37537hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37538hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37539inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37540link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37541always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37542export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37543exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37544include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37545prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37546postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37547file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37548variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37549need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37550need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37551version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37552runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37553shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37554shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37555libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37556library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37557soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37558install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37559postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37560postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37561finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37562finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37563hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37564sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37565configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
37566configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
37567hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37568enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37569enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37570enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37571old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37572striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37573compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37574predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37575postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37576predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37577postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37578compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37579LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37580reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37581reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37582old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37583compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37584GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37585lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
37586lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
37587lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
37588lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37589lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37590archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37591enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37592export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37593whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37594compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37595old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37596old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37597archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37598archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37599module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37600module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37601with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37602allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37603no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37604hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37605hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37606hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37607hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37608hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37609hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37610hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37611inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37612link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
37613always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37614export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37615exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37616include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37617prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37618postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37619file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37620hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37621compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37622predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37623postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37624predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37625postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37626compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
37627
37628LTCC='$LTCC'
37629LTCFLAGS='$LTCFLAGS'
37630compiler='$compiler_DEFAULT'
37631
37632# A function that is used when there is no print builtin or printf.
37633func_fallback_echo ()
37634{
37635  eval 'cat <<_LTECHO_EOF
37636\$1
37637_LTECHO_EOF'
37638}
37639
37640# Quote evaled strings.
37641for var in AS \
37642DLLTOOL \
37643OBJDUMP \
37644SHELL \
37645ECHO \
37646PATH_SEPARATOR \
37647SED \
37648GREP \
37649EGREP \
37650FGREP \
37651LD \
37652NM \
37653LN_S \
37654lt_SP2NL \
37655lt_NL2SP \
37656reload_flag \
37657deplibs_check_method \
37658file_magic_cmd \
37659file_magic_glob \
37660want_nocaseglob \
37661sharedlib_from_linklib_cmd \
37662AR \
37663AR_FLAGS \
37664archiver_list_spec \
37665STRIP \
37666RANLIB \
37667CC \
37668CFLAGS \
37669compiler \
37670lt_cv_sys_global_symbol_pipe \
37671lt_cv_sys_global_symbol_to_cdecl \
37672lt_cv_sys_global_symbol_to_import \
37673lt_cv_sys_global_symbol_to_c_name_address \
37674lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37675lt_cv_nm_interface \
37676nm_file_list_spec \
37677lt_cv_truncate_bin \
37678lt_prog_compiler_no_builtin_flag \
37679lt_prog_compiler_pic \
37680lt_prog_compiler_wl \
37681lt_prog_compiler_static \
37682lt_cv_prog_compiler_c_o \
37683need_locks \
37684MANIFEST_TOOL \
37685DSYMUTIL \
37686NMEDIT \
37687LIPO \
37688OTOOL \
37689OTOOL64 \
37690shrext_cmds \
37691export_dynamic_flag_spec \
37692whole_archive_flag_spec \
37693compiler_needs_object \
37694with_gnu_ld \
37695allow_undefined_flag \
37696no_undefined_flag \
37697hardcode_libdir_flag_spec \
37698hardcode_libdir_separator \
37699exclude_expsyms \
37700include_expsyms \
37701file_list_spec \
37702variables_saved_for_relink \
37703libname_spec \
37704library_names_spec \
37705soname_spec \
37706install_override_mode \
37707finish_eval \
37708old_striplib \
37709striplib \
37710compiler_lib_search_dirs \
37711predep_objects \
37712postdep_objects \
37713predeps \
37714postdeps \
37715compiler_lib_search_path \
37716LD_CXX \
37717reload_flag_CXX \
37718compiler_CXX \
37719lt_prog_compiler_no_builtin_flag_CXX \
37720lt_prog_compiler_pic_CXX \
37721lt_prog_compiler_wl_CXX \
37722lt_prog_compiler_static_CXX \
37723lt_cv_prog_compiler_c_o_CXX \
37724export_dynamic_flag_spec_CXX \
37725whole_archive_flag_spec_CXX \
37726compiler_needs_object_CXX \
37727with_gnu_ld_CXX \
37728allow_undefined_flag_CXX \
37729no_undefined_flag_CXX \
37730hardcode_libdir_flag_spec_CXX \
37731hardcode_libdir_separator_CXX \
37732exclude_expsyms_CXX \
37733include_expsyms_CXX \
37734file_list_spec_CXX \
37735compiler_lib_search_dirs_CXX \
37736predep_objects_CXX \
37737postdep_objects_CXX \
37738predeps_CXX \
37739postdeps_CXX \
37740compiler_lib_search_path_CXX; do
37741    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37742    *[\\\\\\\`\\"\\\$]*)
37743      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37744      ;;
37745    *)
37746      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37747      ;;
37748    esac
37749done
37750
37751# Double-quote double-evaled strings.
37752for var in reload_cmds \
37753old_postinstall_cmds \
37754old_postuninstall_cmds \
37755old_archive_cmds \
37756extract_expsyms_cmds \
37757old_archive_from_new_cmds \
37758old_archive_from_expsyms_cmds \
37759archive_cmds \
37760archive_expsym_cmds \
37761module_cmds \
37762module_expsym_cmds \
37763export_symbols_cmds \
37764prelink_cmds \
37765postlink_cmds \
37766postinstall_cmds \
37767postuninstall_cmds \
37768finish_cmds \
37769sys_lib_search_path_spec \
37770configure_time_dlsearch_path \
37771configure_time_lt_sys_library_path \
37772reload_cmds_CXX \
37773old_archive_cmds_CXX \
37774old_archive_from_new_cmds_CXX \
37775old_archive_from_expsyms_cmds_CXX \
37776archive_cmds_CXX \
37777archive_expsym_cmds_CXX \
37778module_cmds_CXX \
37779module_expsym_cmds_CXX \
37780export_symbols_cmds_CXX \
37781prelink_cmds_CXX \
37782postlink_cmds_CXX; do
37783    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37784    *[\\\\\\\`\\"\\\$]*)
37785      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37786      ;;
37787    *)
37788      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37789      ;;
37790    esac
37791done
37792
37793ac_aux_dir='$ac_aux_dir'
37794
37795# See if we are running on zsh, and set the options that allow our
37796# commands through without removal of \ escapes INIT.
37797if test -n "\${ZSH_VERSION+set}"; then
37798   setopt NO_GLOB_SUBST
37799fi
37800
37801
37802    PACKAGE='$PACKAGE'
37803    VERSION='$VERSION'
37804    RM='$RM'
37805    ofile='$ofile'
37806
37807
37808
37809
37810
37811
37812_ACEOF
37813
37814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37815
37816# Handling of arguments.
37817for ac_config_target in $ac_config_targets
37818do
37819  case $ac_config_target in
37820    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
37821    "spot/misc/_config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS spot/misc/_config.h" ;;
37822    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37823    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37824    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37825    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
37826    "bin/man/Makefile") CONFIG_FILES="$CONFIG_FILES bin/man/Makefile" ;;
37827    "bench/Makefile") CONFIG_FILES="$CONFIG_FILES bench/Makefile" ;;
37828    "bench/dtgbasat/Makefile") CONFIG_FILES="$CONFIG_FILES bench/dtgbasat/Makefile" ;;
37829    "bench/emptchk/Makefile") CONFIG_FILES="$CONFIG_FILES bench/emptchk/Makefile" ;;
37830    "bench/emptchk/defs") CONFIG_FILES="$CONFIG_FILES bench/emptchk/defs" ;;
37831    "bench/ltlcounter/Makefile") CONFIG_FILES="$CONFIG_FILES bench/ltlcounter/Makefile" ;;
37832    "bench/ltlclasses/Makefile") CONFIG_FILES="$CONFIG_FILES bench/ltlclasses/Makefile" ;;
37833    "bench/ltl2tgba/Makefile") CONFIG_FILES="$CONFIG_FILES bench/ltl2tgba/Makefile" ;;
37834    "bench/ltl2tgba/defs") CONFIG_FILES="$CONFIG_FILES bench/ltl2tgba/defs" ;;
37835    "bench/spin13/Makefile") CONFIG_FILES="$CONFIG_FILES bench/spin13/Makefile" ;;
37836    "bench/wdba/Makefile") CONFIG_FILES="$CONFIG_FILES bench/wdba/Makefile" ;;
37837    "bench/stutter/Makefile") CONFIG_FILES="$CONFIG_FILES bench/stutter/Makefile" ;;
37838    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
37839    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
37840    "doc/tl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tl/Makefile" ;;
37841    "doc/org/.dir-locals.el") CONFIG_FILES="$CONFIG_FILES doc/org/.dir-locals.el" ;;
37842    "doc/org/init.el") CONFIG_FILES="$CONFIG_FILES doc/org/init.el" ;;
37843    "elisp/Makefile") CONFIG_FILES="$CONFIG_FILES elisp/Makefile" ;;
37844    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
37845    "picosat/Makefile") CONFIG_FILES="$CONFIG_FILES picosat/Makefile" ;;
37846    "spot/graph/Makefile") CONFIG_FILES="$CONFIG_FILES spot/graph/Makefile" ;;
37847    "spot/kripke/Makefile") CONFIG_FILES="$CONFIG_FILES spot/kripke/Makefile" ;;
37848    "spot/ltsmin/Makefile") CONFIG_FILES="$CONFIG_FILES spot/ltsmin/Makefile" ;;
37849    "spot/Makefile") CONFIG_FILES="$CONFIG_FILES spot/Makefile" ;;
37850    "spot/misc/Makefile") CONFIG_FILES="$CONFIG_FILES spot/misc/Makefile" ;;
37851    "spot/mc/Makefile") CONFIG_FILES="$CONFIG_FILES spot/mc/Makefile" ;;
37852    "spot/parseaut/Makefile") CONFIG_FILES="$CONFIG_FILES spot/parseaut/Makefile" ;;
37853    "spot/parsetl/Makefile") CONFIG_FILES="$CONFIG_FILES spot/parsetl/Makefile" ;;
37854    "spot/priv/Makefile") CONFIG_FILES="$CONFIG_FILES spot/priv/Makefile" ;;
37855    "spot/taalgos/Makefile") CONFIG_FILES="$CONFIG_FILES spot/taalgos/Makefile" ;;
37856    "spot/ta/Makefile") CONFIG_FILES="$CONFIG_FILES spot/ta/Makefile" ;;
37857    "spot/tl/Makefile") CONFIG_FILES="$CONFIG_FILES spot/tl/Makefile" ;;
37858    "spot/twaalgos/gtec/Makefile") CONFIG_FILES="$CONFIG_FILES spot/twaalgos/gtec/Makefile" ;;
37859    "spot/twaalgos/Makefile") CONFIG_FILES="$CONFIG_FILES spot/twaalgos/Makefile" ;;
37860    "spot/twacube_algos/Makefile") CONFIG_FILES="$CONFIG_FILES spot/twacube_algos/Makefile" ;;
37861    "spot/twa/Makefile") CONFIG_FILES="$CONFIG_FILES spot/twa/Makefile" ;;
37862    "spot/gen/Makefile") CONFIG_FILES="$CONFIG_FILES spot/gen/Makefile" ;;
37863    "spot/twacube/Makefile") CONFIG_FILES="$CONFIG_FILES spot/twacube/Makefile" ;;
37864    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
37865    "tests/core/defs") CONFIG_FILES="$CONFIG_FILES tests/core/defs" ;;
37866    "tests/ltsmin/defs") CONFIG_FILES="$CONFIG_FILES tests/ltsmin/defs:tests/core/defs.in" ;;
37867    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
37868    "tools/x-to-1") CONFIG_FILES="$CONFIG_FILES tools/x-to-1" ;;
37869    "doc/org/g++wrap") CONFIG_FILES="$CONFIG_FILES doc/org/g++wrap" ;;
37870    "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
37871
37872  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37873  esac
37874done
37875
37876
37877# If the user did not use the arguments to specify the items to instantiate,
37878# then the envvar interface is used.  Set only those that are not.
37879# We use the long form for the default assignment because of an extremely
37880# bizarre bug on SunOS 4.1.3.
37881if $ac_need_defaults; then
37882  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37883  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37884  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37885fi
37886
37887# Have a temporary directory for convenience.  Make it in the build tree
37888# simply because there is no reason against having it here, and in addition,
37889# creating and moving files from /tmp can sometimes cause problems.
37890# Hook for its removal unless debugging.
37891# Note that there is a small window in which the directory will not be cleaned:
37892# after its creation but before its name has been assigned to `$tmp'.
37893$debug ||
37894{
37895  tmp= ac_tmp=
37896  trap 'exit_status=$?
37897  : "${ac_tmp:=$tmp}"
37898  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37899' 0
37900  trap 'as_fn_exit 1' 1 2 13 15
37901}
37902# Create a (secure) tmp directory for tmp files.
37903
37904{
37905  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37906  test -d "$tmp"
37907}  ||
37908{
37909  tmp=./conf$$-$RANDOM
37910  (umask 077 && mkdir "$tmp")
37911} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37912ac_tmp=$tmp
37913
37914# Set up the scripts for CONFIG_FILES section.
37915# No need to generate them if there are no CONFIG_FILES.
37916# This happens for instance with `./config.status config.h'.
37917if test -n "$CONFIG_FILES"; then
37918
37919
37920ac_cr=`echo X | tr X '\015'`
37921# On cygwin, bash can eat \r inside `` if the user requested igncr.
37922# But we know of no other shell where ac_cr would be empty at this
37923# point, so we can use a bashism as a fallback.
37924if test "x$ac_cr" = x; then
37925  eval ac_cr=\$\'\\r\'
37926fi
37927ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37928if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37929  ac_cs_awk_cr='\\r'
37930else
37931  ac_cs_awk_cr=$ac_cr
37932fi
37933
37934echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37935_ACEOF
37936
37937
37938{
37939  echo "cat >conf$$subs.awk <<_ACEOF" &&
37940  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37941  echo "_ACEOF"
37942} >conf$$subs.sh ||
37943  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37944ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37945ac_delim='%!_!# '
37946for ac_last_try in false false false false false :; do
37947  . ./conf$$subs.sh ||
37948    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37949
37950  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37951  if test $ac_delim_n = $ac_delim_num; then
37952    break
37953  elif $ac_last_try; then
37954    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37955  else
37956    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37957  fi
37958done
37959rm -f conf$$subs.sh
37960
37961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37962cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37963_ACEOF
37964sed -n '
37965h
37966s/^/S["/; s/!.*/"]=/
37967p
37968g
37969s/^[^!]*!//
37970:repl
37971t repl
37972s/'"$ac_delim"'$//
37973t delim
37974:nl
37975h
37976s/\(.\{148\}\)..*/\1/
37977t more1
37978s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37979p
37980n
37981b repl
37982:more1
37983s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37984p
37985g
37986s/.\{148\}//
37987t nl
37988:delim
37989h
37990s/\(.\{148\}\)..*/\1/
37991t more2
37992s/["\\]/\\&/g; s/^/"/; s/$/"/
37993p
37994b
37995:more2
37996s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37997p
37998g
37999s/.\{148\}//
38000t delim
38001' <conf$$subs.awk | sed '
38002/^[^""]/{
38003  N
38004  s/\n//
38005}
38006' >>$CONFIG_STATUS || ac_write_fail=1
38007rm -f conf$$subs.awk
38008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38009_ACAWK
38010cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38011  for (key in S) S_is_set[key] = 1
38012  FS = ""
38013
38014}
38015{
38016  line = $ 0
38017  nfields = split(line, field, "@")
38018  substed = 0
38019  len = length(field[1])
38020  for (i = 2; i < nfields; i++) {
38021    key = field[i]
38022    keylen = length(key)
38023    if (S_is_set[key]) {
38024      value = S[key]
38025      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38026      len += length(value) + length(field[++i])
38027      substed = 1
38028    } else
38029      len += 1 + keylen
38030  }
38031
38032  print line
38033}
38034
38035_ACAWK
38036_ACEOF
38037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38038if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38039  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38040else
38041  cat
38042fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38043  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38044_ACEOF
38045
38046# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38047# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38048# trailing colons and then remove the whole line if VPATH becomes empty
38049# (actually we leave an empty line to preserve line numbers).
38050if test "x$srcdir" = x.; then
38051  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
38052h
38053s///
38054s/^/:/
38055s/[	 ]*$/:/
38056s/:\$(srcdir):/:/g
38057s/:\${srcdir}:/:/g
38058s/:@srcdir@:/:/g
38059s/^:*//
38060s/:*$//
38061x
38062s/\(=[	 ]*\).*/\1/
38063G
38064s/\n//
38065s/^[^=]*=[	 ]*$//
38066}'
38067fi
38068
38069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38070fi # test -n "$CONFIG_FILES"
38071
38072# Set up the scripts for CONFIG_HEADERS section.
38073# No need to generate them if there are no CONFIG_HEADERS.
38074# This happens for instance with `./config.status Makefile'.
38075if test -n "$CONFIG_HEADERS"; then
38076cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38077BEGIN {
38078_ACEOF
38079
38080# Transform confdefs.h into an awk script `defines.awk', embedded as
38081# here-document in config.status, that substitutes the proper values into
38082# config.h.in to produce config.h.
38083
38084# Create a delimiter string that does not exist in confdefs.h, to ease
38085# handling of long lines.
38086ac_delim='%!_!# '
38087for ac_last_try in false false :; do
38088  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38089  if test -z "$ac_tt"; then
38090    break
38091  elif $ac_last_try; then
38092    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38093  else
38094    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38095  fi
38096done
38097
38098# For the awk script, D is an array of macro values keyed by name,
38099# likewise P contains macro parameters if any.  Preserve backslash
38100# newline sequences.
38101
38102ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38103sed -n '
38104s/.\{148\}/&'"$ac_delim"'/g
38105t rset
38106:rset
38107s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
38108t def
38109d
38110:def
38111s/\\$//
38112t bsnl
38113s/["\\]/\\&/g
38114s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38115D["\1"]=" \3"/p
38116s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38117d
38118:bsnl
38119s/["\\]/\\&/g
38120s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38121D["\1"]=" \3\\\\\\n"\\/p
38122t cont
38123s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38124t cont
38125d
38126:cont
38127n
38128s/.\{148\}/&'"$ac_delim"'/g
38129t clear
38130:clear
38131s/\\$//
38132t bsnlc
38133s/["\\]/\\&/g; s/^/"/; s/$/"/p
38134d
38135:bsnlc
38136s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38137b cont
38138' <confdefs.h | sed '
38139s/'"$ac_delim"'/"\\\
38140"/g' >>$CONFIG_STATUS || ac_write_fail=1
38141
38142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38143  for (key in D) D_is_set[key] = 1
38144  FS = ""
38145}
38146/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38147  line = \$ 0
38148  split(line, arg, " ")
38149  if (arg[1] == "#") {
38150    defundef = arg[2]
38151    mac1 = arg[3]
38152  } else {
38153    defundef = substr(arg[1], 2)
38154    mac1 = arg[2]
38155  }
38156  split(mac1, mac2, "(") #)
38157  macro = mac2[1]
38158  prefix = substr(line, 1, index(line, defundef) - 1)
38159  if (D_is_set[macro]) {
38160    # Preserve the white space surrounding the "#".
38161    print prefix "define", macro P[macro] D[macro]
38162    next
38163  } else {
38164    # Replace #undef with comments.  This is necessary, for example,
38165    # in the case of _POSIX_SOURCE, which is predefined and required
38166    # on some systems where configure will not decide to define it.
38167    if (defundef == "undef") {
38168      print "/*", prefix defundef, macro, "*/"
38169      next
38170    }
38171  }
38172}
38173{ print }
38174_ACAWK
38175_ACEOF
38176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38177  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38178fi # test -n "$CONFIG_HEADERS"
38179
38180
38181eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38182shift
38183for ac_tag
38184do
38185  case $ac_tag in
38186  :[FHLC]) ac_mode=$ac_tag; continue;;
38187  esac
38188  case $ac_mode$ac_tag in
38189  :[FHL]*:*);;
38190  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38191  :[FH]-) ac_tag=-:-;;
38192  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38193  esac
38194  ac_save_IFS=$IFS
38195  IFS=:
38196  set x $ac_tag
38197  IFS=$ac_save_IFS
38198  shift
38199  ac_file=$1
38200  shift
38201
38202  case $ac_mode in
38203  :L) ac_source=$1;;
38204  :[FH])
38205    ac_file_inputs=
38206    for ac_f
38207    do
38208      case $ac_f in
38209      -) ac_f="$ac_tmp/stdin";;
38210      *) # Look for the file first in the build tree, then in the source tree
38211	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38212	 # because $ac_f cannot contain `:'.
38213	 test -f "$ac_f" ||
38214	   case $ac_f in
38215	   [\\/$]*) false;;
38216	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38217	   esac ||
38218	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38219      esac
38220      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38221      as_fn_append ac_file_inputs " '$ac_f'"
38222    done
38223
38224    # Let's still pretend it is `configure' which instantiates (i.e., don't
38225    # use $as_me), people would be surprised to read:
38226    #    /* config.h.  Generated by config.status.  */
38227    configure_input='Generated from '`
38228	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38229	`' by configure.'
38230    if test x"$ac_file" != x-; then
38231      configure_input="$ac_file.  $configure_input"
38232      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38233$as_echo "$as_me: creating $ac_file" >&6;}
38234    fi
38235    # Neutralize special characters interpreted by sed in replacement strings.
38236    case $configure_input in #(
38237    *\&* | *\|* | *\\* )
38238       ac_sed_conf_input=`$as_echo "$configure_input" |
38239       sed 's/[\\\\&|]/\\\\&/g'`;; #(
38240    *) ac_sed_conf_input=$configure_input;;
38241    esac
38242
38243    case $ac_tag in
38244    *:-:* | *:-) cat >"$ac_tmp/stdin" \
38245      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38246    esac
38247    ;;
38248  esac
38249
38250  ac_dir=`$as_dirname -- "$ac_file" ||
38251$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38252	 X"$ac_file" : 'X\(//\)[^/]' \| \
38253	 X"$ac_file" : 'X\(//\)$' \| \
38254	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38255$as_echo X"$ac_file" |
38256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38257	    s//\1/
38258	    q
38259	  }
38260	  /^X\(\/\/\)[^/].*/{
38261	    s//\1/
38262	    q
38263	  }
38264	  /^X\(\/\/\)$/{
38265	    s//\1/
38266	    q
38267	  }
38268	  /^X\(\/\).*/{
38269	    s//\1/
38270	    q
38271	  }
38272	  s/.*/./; q'`
38273  as_dir="$ac_dir"; as_fn_mkdir_p
38274  ac_builddir=.
38275
38276case "$ac_dir" in
38277.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38278*)
38279  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38280  # A ".." for each directory in $ac_dir_suffix.
38281  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38282  case $ac_top_builddir_sub in
38283  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38284  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38285  esac ;;
38286esac
38287ac_abs_top_builddir=$ac_pwd
38288ac_abs_builddir=$ac_pwd$ac_dir_suffix
38289# for backward compatibility:
38290ac_top_builddir=$ac_top_build_prefix
38291
38292case $srcdir in
38293  .)  # We are building in place.
38294    ac_srcdir=.
38295    ac_top_srcdir=$ac_top_builddir_sub
38296    ac_abs_top_srcdir=$ac_pwd ;;
38297  [\\/]* | ?:[\\/]* )  # Absolute name.
38298    ac_srcdir=$srcdir$ac_dir_suffix;
38299    ac_top_srcdir=$srcdir
38300    ac_abs_top_srcdir=$srcdir ;;
38301  *) # Relative name.
38302    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38303    ac_top_srcdir=$ac_top_build_prefix$srcdir
38304    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38305esac
38306ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38307
38308
38309  case $ac_mode in
38310  :F)
38311  #
38312  # CONFIG_FILE
38313  #
38314
38315  case $INSTALL in
38316  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38317  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38318  esac
38319  ac_MKDIR_P=$MKDIR_P
38320  case $MKDIR_P in
38321  [\\/$]* | ?:[\\/]* ) ;;
38322  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38323  esac
38324_ACEOF
38325
38326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38327# If the template does not know about datarootdir, expand it.
38328# FIXME: This hack should be removed a few years after 2.60.
38329ac_datarootdir_hack=; ac_datarootdir_seen=
38330ac_sed_dataroot='
38331/datarootdir/ {
38332  p
38333  q
38334}
38335/@datadir@/p
38336/@docdir@/p
38337/@infodir@/p
38338/@localedir@/p
38339/@mandir@/p'
38340case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38341*datarootdir*) ac_datarootdir_seen=yes;;
38342*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38343  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38344$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38345_ACEOF
38346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38347  ac_datarootdir_hack='
38348  s&@datadir@&$datadir&g
38349  s&@docdir@&$docdir&g
38350  s&@infodir@&$infodir&g
38351  s&@localedir@&$localedir&g
38352  s&@mandir@&$mandir&g
38353  s&\\\${datarootdir}&$datarootdir&g' ;;
38354esac
38355_ACEOF
38356
38357# Neutralize VPATH when `$srcdir' = `.'.
38358# Shell code in configure.ac might set extrasub.
38359# FIXME: do we really want to maintain this feature?
38360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38361ac_sed_extra="$ac_vpsub
38362$extrasub
38363_ACEOF
38364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38365:t
38366/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38367s|@configure_input@|$ac_sed_conf_input|;t t
38368s&@top_builddir@&$ac_top_builddir_sub&;t t
38369s&@top_build_prefix@&$ac_top_build_prefix&;t t
38370s&@srcdir@&$ac_srcdir&;t t
38371s&@abs_srcdir@&$ac_abs_srcdir&;t t
38372s&@top_srcdir@&$ac_top_srcdir&;t t
38373s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38374s&@builddir@&$ac_builddir&;t t
38375s&@abs_builddir@&$ac_abs_builddir&;t t
38376s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38377s&@INSTALL@&$ac_INSTALL&;t t
38378s&@MKDIR_P@&$ac_MKDIR_P&;t t
38379$ac_datarootdir_hack
38380"
38381eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38382  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38383
38384test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38385  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38386  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
38387      "$ac_tmp/out"`; test -z "$ac_out"; } &&
38388  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38389which seems to be undefined.  Please make sure it is defined" >&5
38390$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38391which seems to be undefined.  Please make sure it is defined" >&2;}
38392
38393  rm -f "$ac_tmp/stdin"
38394  case $ac_file in
38395  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38396  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38397  esac \
38398  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38399 ;;
38400  :H)
38401  #
38402  # CONFIG_HEADER
38403  #
38404  if test x"$ac_file" != x-; then
38405    {
38406      $as_echo "/* $configure_input  */" \
38407      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38408    } >"$ac_tmp/config.h" \
38409      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38410    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38411      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38412$as_echo "$as_me: $ac_file is unchanged" >&6;}
38413    else
38414      rm -f "$ac_file"
38415      mv "$ac_tmp/config.h" "$ac_file" \
38416	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38417    fi
38418  else
38419    $as_echo "/* $configure_input  */" \
38420      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38421      || as_fn_error $? "could not create -" "$LINENO" 5
38422  fi
38423# Compute "$ac_file"'s index in $config_headers.
38424_am_arg="$ac_file"
38425_am_stamp_count=1
38426for _am_header in $config_headers :; do
38427  case $_am_header in
38428    $_am_arg | $_am_arg:* )
38429      break ;;
38430    * )
38431      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38432  esac
38433done
38434echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38435$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38436	 X"$_am_arg" : 'X\(//\)[^/]' \| \
38437	 X"$_am_arg" : 'X\(//\)$' \| \
38438	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38439$as_echo X"$_am_arg" |
38440    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38441	    s//\1/
38442	    q
38443	  }
38444	  /^X\(\/\/\)[^/].*/{
38445	    s//\1/
38446	    q
38447	  }
38448	  /^X\(\/\/\)$/{
38449	    s//\1/
38450	    q
38451	  }
38452	  /^X\(\/\).*/{
38453	    s//\1/
38454	    q
38455	  }
38456	  s/.*/./; q'`/stamp-h$_am_stamp_count
38457 ;;
38458
38459  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38460$as_echo "$as_me: executing $ac_file commands" >&6;}
38461 ;;
38462  esac
38463
38464
38465  case $ac_file$ac_mode in
38466    "spot/misc/_config.h":C) ac_prefix_conf_OUT=`echo spot/misc/_config.h`
38467ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38468ac_prefix_conf_PKG=`echo $PACKAGE`
38469ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38470ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
38471ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38472if test ".$ac_prefix_conf_INP" = "."; then
38473   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38474     case "$ac_file" in
38475        *.h) ac_prefix_conf_INP=$ac_file ;;
38476        *)
38477     esac
38478     test ".$ac_prefix_conf_INP" != "." && break
38479   done
38480fi
38481if test ".$ac_prefix_conf_INP" = "."; then
38482   case "$ac_prefix_conf_OUT" in
38483      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38484      ;;
38485      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38486      ;;
38487      *) ac_prefix_conf_INP=config.h
38488      ;;
38489   esac
38490fi
38491if test -z "$ac_prefix_conf_PKG" ; then
38492   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
38493else
38494  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38495     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38496  fi fi
38497  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38498$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38499  if test -f $ac_prefix_conf_INP ; then
38500    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38501    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38502    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38503    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38504    $as_echo "#endif/" >> conftest.prefix
38505    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38506    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38507    $as_echo "#endif/" >> conftest.prefix
38508    # now executing _script on _DEF input to create _OUT output file
38509    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
38510    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38511    echo ' ' >>$tmp/pconfig.h
38512    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38513
38514    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38515    echo ' ' >>$tmp/pconfig.h
38516    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38517    echo "#endif" >>$tmp/pconfig.h
38518    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38519      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38520$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38521    else
38522      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38523$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38524	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38525	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38526	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38527$as_echo X"$ac_prefix_conf_OUT" |
38528    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38529	    s//\1/
38530	    q
38531	  }
38532	  /^X\(\/\/\)[^/].*/{
38533	    s//\1/
38534	    q
38535	  }
38536	  /^X\(\/\/\)$/{
38537	    s//\1/
38538	    q
38539	  }
38540	  /^X\(\/\).*/{
38541	    s//\1/
38542	    q
38543	  }
38544	  s/.*/./; q'`
38545      as_dir="$ac_dir"; as_fn_mkdir_p
38546      rm -f "$ac_prefix_conf_OUT"
38547      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38548    fi
38549  else
38550    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
38551  fi
38552  rm -f conftest.*
38553fi
38554 ;;
38555    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38556  # Older Autoconf quotes --file arguments for eval, but not when files
38557  # are listed without --file.  Let's play safe and only enable the eval
38558  # if we detect the quoting.
38559  # TODO: see whether this extra hack can be removed once we start
38560  # requiring Autoconf 2.70 or later.
38561  case $CONFIG_FILES in #(
38562  *\'*) :
38563    eval set x "$CONFIG_FILES" ;; #(
38564  *) :
38565    set x $CONFIG_FILES ;; #(
38566  *) :
38567     ;;
38568esac
38569  shift
38570  # Used to flag and report bootstrapping failures.
38571  am_rc=0
38572  for am_mf
38573  do
38574    # Strip MF so we end up with the name of the file.
38575    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
38576    # Check whether this is an Automake generated Makefile which includes
38577    # dependency-tracking related rules and includes.
38578    # Grep'ing the whole file directly is not great: AIX grep has a line
38579    # limit of 2048, but all sed's we know have understand at least 4000.
38580    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
38581      || continue
38582    am_dirpart=`$as_dirname -- "$am_mf" ||
38583$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38584	 X"$am_mf" : 'X\(//\)[^/]' \| \
38585	 X"$am_mf" : 'X\(//\)$' \| \
38586	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
38587$as_echo X"$am_mf" |
38588    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38589	    s//\1/
38590	    q
38591	  }
38592	  /^X\(\/\/\)[^/].*/{
38593	    s//\1/
38594	    q
38595	  }
38596	  /^X\(\/\/\)$/{
38597	    s//\1/
38598	    q
38599	  }
38600	  /^X\(\/\).*/{
38601	    s//\1/
38602	    q
38603	  }
38604	  s/.*/./; q'`
38605    am_filepart=`$as_basename -- "$am_mf" ||
38606$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
38607	 X"$am_mf" : 'X\(//\)$' \| \
38608	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
38609$as_echo X/"$am_mf" |
38610    sed '/^.*\/\([^/][^/]*\)\/*$/{
38611	    s//\1/
38612	    q
38613	  }
38614	  /^X\/\(\/\/\)$/{
38615	    s//\1/
38616	    q
38617	  }
38618	  /^X\/\(\/\).*/{
38619	    s//\1/
38620	    q
38621	  }
38622	  s/.*/./; q'`
38623    { echo "$as_me:$LINENO: cd "$am_dirpart" \
38624      && sed -e '/# am--include-marker/d' "$am_filepart" \
38625        | $MAKE -f - am--depfiles" >&5
38626   (cd "$am_dirpart" \
38627      && sed -e '/# am--include-marker/d' "$am_filepart" \
38628        | $MAKE -f - am--depfiles) >&5 2>&5
38629   ac_status=$?
38630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631   (exit $ac_status); } || am_rc=$?
38632  done
38633  if test $am_rc -ne 0; then
38634    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38636as_fn_error $? "Something went wrong bootstrapping makefile fragments
38637    for automatic dependency tracking.  If GNU make was not used, consider
38638    re-running the configure script with MAKE=\"gmake\" (or whatever is
38639    necessary).  You can also try re-running configure with the
38640    '--disable-dependency-tracking' option to at least be able to build
38641    the package (albeit without support for automatic dependency tracking).
38642See \`config.log' for more details" "$LINENO" 5; }
38643  fi
38644  { am_dirpart=; unset am_dirpart;}
38645  { am_filepart=; unset am_filepart;}
38646  { am_mf=; unset am_mf;}
38647  { am_rc=; unset am_rc;}
38648  rm -f conftest-deps.mk
38649}
38650 ;;
38651    "libtool":C)
38652
38653    # See if we are running on zsh, and set the options that allow our
38654    # commands through without removal of \ escapes.
38655    if test -n "${ZSH_VERSION+set}"; then
38656      setopt NO_GLOB_SUBST
38657    fi
38658
38659    cfgfile=${ofile}T
38660    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38661    $RM "$cfgfile"
38662
38663    cat <<_LT_EOF >> "$cfgfile"
38664#! $SHELL
38665# Generated automatically by $as_me ($PACKAGE) $VERSION
38666# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38667
38668# Provide generalized library-building support services.
38669# Written by Gordon Matzigkeit, 1996
38670
38671# Copyright (C) 2014 Free Software Foundation, Inc.
38672# This is free software; see the source for copying conditions.  There is NO
38673# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38674
38675# GNU Libtool is free software; you can redistribute it and/or modify
38676# it under the terms of the GNU General Public License as published by
38677# the Free Software Foundation; either version 2 of of the License, or
38678# (at your option) any later version.
38679#
38680# As a special exception to the GNU General Public License, if you
38681# distribute this file as part of a program or library that is built
38682# using GNU Libtool, you may include this file under the  same
38683# distribution terms that you use for the rest of that program.
38684#
38685# GNU Libtool is distributed in the hope that it will be useful, but
38686# WITHOUT ANY WARRANTY; without even the implied warranty of
38687# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38688# GNU General Public License for more details.
38689#
38690# You should have received a copy of the GNU General Public License
38691# along with this program.  If not, see <http://www.gnu.org/licenses/>.
38692
38693
38694# The names of the tagged configurations supported by this script.
38695available_tags='CXX '
38696
38697# Configured defaults for sys_lib_dlsearch_path munging.
38698: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
38699
38700# ### BEGIN LIBTOOL CONFIG
38701
38702# Which release of libtool.m4 was used?
38703macro_version=$macro_version
38704macro_revision=$macro_revision
38705
38706# Assembler program.
38707AS=$lt_AS
38708
38709# DLL creation program.
38710DLLTOOL=$lt_DLLTOOL
38711
38712# Object dumper program.
38713OBJDUMP=$lt_OBJDUMP
38714
38715# Whether or not to build shared libraries.
38716build_libtool_libs=$enable_shared
38717
38718# Whether or not to build static libraries.
38719build_old_libs=$enable_static
38720
38721# What type of objects to build.
38722pic_mode=$pic_mode
38723
38724# Whether or not to optimize for fast installation.
38725fast_install=$enable_fast_install
38726
38727# Shared archive member basename,for filename based shared library versioning on AIX.
38728shared_archive_member_spec=$shared_archive_member_spec
38729
38730# Shell to use when invoking shell scripts.
38731SHELL=$lt_SHELL
38732
38733# An echo program that protects backslashes.
38734ECHO=$lt_ECHO
38735
38736# The PATH separator for the build system.
38737PATH_SEPARATOR=$lt_PATH_SEPARATOR
38738
38739# The host system.
38740host_alias=$host_alias
38741host=$host
38742host_os=$host_os
38743
38744# The build system.
38745build_alias=$build_alias
38746build=$build
38747build_os=$build_os
38748
38749# A sed program that does not truncate output.
38750SED=$lt_SED
38751
38752# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38753Xsed="\$SED -e 1s/^X//"
38754
38755# A grep program that handles long lines.
38756GREP=$lt_GREP
38757
38758# An ERE matcher.
38759EGREP=$lt_EGREP
38760
38761# A literal string matcher.
38762FGREP=$lt_FGREP
38763
38764# A BSD- or MS-compatible name lister.
38765NM=$lt_NM
38766
38767# Whether we need soft or hard links.
38768LN_S=$lt_LN_S
38769
38770# What is the maximum length of a command?
38771max_cmd_len=$max_cmd_len
38772
38773# Object file suffix (normally "o").
38774objext=$ac_objext
38775
38776# Executable file suffix (normally "").
38777exeext=$exeext
38778
38779# whether the shell understands "unset".
38780lt_unset=$lt_unset
38781
38782# turn spaces into newlines.
38783SP2NL=$lt_lt_SP2NL
38784
38785# turn newlines into spaces.
38786NL2SP=$lt_lt_NL2SP
38787
38788# convert \$build file names to \$host format.
38789to_host_file_cmd=$lt_cv_to_host_file_cmd
38790
38791# convert \$build files to toolchain format.
38792to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38793
38794# Method to check whether dependent libraries are shared objects.
38795deplibs_check_method=$lt_deplibs_check_method
38796
38797# Command to use when deplibs_check_method = "file_magic".
38798file_magic_cmd=$lt_file_magic_cmd
38799
38800# How to find potential files when deplibs_check_method = "file_magic".
38801file_magic_glob=$lt_file_magic_glob
38802
38803# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38804want_nocaseglob=$lt_want_nocaseglob
38805
38806# Command to associate shared and link libraries.
38807sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38808
38809# The archiver.
38810AR=$lt_AR
38811
38812# Flags to create an archive.
38813AR_FLAGS=$lt_AR_FLAGS
38814
38815# How to feed a file listing to the archiver.
38816archiver_list_spec=$lt_archiver_list_spec
38817
38818# A symbol stripping program.
38819STRIP=$lt_STRIP
38820
38821# Commands used to install an old-style archive.
38822RANLIB=$lt_RANLIB
38823old_postinstall_cmds=$lt_old_postinstall_cmds
38824old_postuninstall_cmds=$lt_old_postuninstall_cmds
38825
38826# Whether to use a lock for old archive extraction.
38827lock_old_archive_extraction=$lock_old_archive_extraction
38828
38829# A C compiler.
38830LTCC=$lt_CC
38831
38832# LTCC compiler flags.
38833LTCFLAGS=$lt_CFLAGS
38834
38835# Take the output of nm and produce a listing of raw symbols and C names.
38836global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38837
38838# Transform the output of nm in a proper C declaration.
38839global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38840
38841# Transform the output of nm into a list of symbols to manually relocate.
38842global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38843
38844# Transform the output of nm in a C name address pair.
38845global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38846
38847# Transform the output of nm in a C name address pair when lib prefix is needed.
38848global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38849
38850# The name lister interface.
38851nm_interface=$lt_lt_cv_nm_interface
38852
38853# Specify filename containing input files for \$NM.
38854nm_file_list_spec=$lt_nm_file_list_spec
38855
38856# The root where to search for dependent libraries,and where our libraries should be installed.
38857lt_sysroot=$lt_sysroot
38858
38859# Command to truncate a binary pipe.
38860lt_truncate_bin=$lt_lt_cv_truncate_bin
38861
38862# The name of the directory that contains temporary libtool files.
38863objdir=$objdir
38864
38865# Used to examine libraries when file_magic_cmd begins with "file".
38866MAGIC_CMD=$MAGIC_CMD
38867
38868# Must we lock files when doing compilation?
38869need_locks=$lt_need_locks
38870
38871# Manifest tool.
38872MANIFEST_TOOL=$lt_MANIFEST_TOOL
38873
38874# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38875DSYMUTIL=$lt_DSYMUTIL
38876
38877# Tool to change global to local symbols on Mac OS X.
38878NMEDIT=$lt_NMEDIT
38879
38880# Tool to manipulate fat objects and archives on Mac OS X.
38881LIPO=$lt_LIPO
38882
38883# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38884OTOOL=$lt_OTOOL
38885
38886# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38887OTOOL64=$lt_OTOOL64
38888
38889# Old archive suffix (normally "a").
38890libext=$libext
38891
38892# Shared library suffix (normally ".so").
38893shrext_cmds=$lt_shrext_cmds
38894
38895# The commands to extract the exported symbol list from a shared archive.
38896extract_expsyms_cmds=$lt_extract_expsyms_cmds
38897
38898# Variables whose values should be saved in libtool wrapper scripts and
38899# restored at link time.
38900variables_saved_for_relink=$lt_variables_saved_for_relink
38901
38902# Do we need the "lib" prefix for modules?
38903need_lib_prefix=$need_lib_prefix
38904
38905# Do we need a version for libraries?
38906need_version=$need_version
38907
38908# Library versioning type.
38909version_type=$version_type
38910
38911# Shared library runtime path variable.
38912runpath_var=$runpath_var
38913
38914# Shared library path variable.
38915shlibpath_var=$shlibpath_var
38916
38917# Is shlibpath searched before the hard-coded library search path?
38918shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38919
38920# Format of library name prefix.
38921libname_spec=$lt_libname_spec
38922
38923# List of archive names.  First name is the real one, the rest are links.
38924# The last name is the one that the linker finds with -lNAME
38925library_names_spec=$lt_library_names_spec
38926
38927# The coded name of the library, if different from the real name.
38928soname_spec=$lt_soname_spec
38929
38930# Permission mode override for installation of shared libraries.
38931install_override_mode=$lt_install_override_mode
38932
38933# Command to use after installation of a shared archive.
38934postinstall_cmds=$lt_postinstall_cmds
38935
38936# Command to use after uninstallation of a shared archive.
38937postuninstall_cmds=$lt_postuninstall_cmds
38938
38939# Commands used to finish a libtool library installation in a directory.
38940finish_cmds=$lt_finish_cmds
38941
38942# As "finish_cmds", except a single script fragment to be evaled but
38943# not shown.
38944finish_eval=$lt_finish_eval
38945
38946# Whether we should hardcode library paths into libraries.
38947hardcode_into_libs=$hardcode_into_libs
38948
38949# Compile-time system search path for libraries.
38950sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38951
38952# Detected run-time system search path for libraries.
38953sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
38954
38955# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
38956configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
38957
38958# Whether dlopen is supported.
38959dlopen_support=$enable_dlopen
38960
38961# Whether dlopen of programs is supported.
38962dlopen_self=$enable_dlopen_self
38963
38964# Whether dlopen of statically linked programs is supported.
38965dlopen_self_static=$enable_dlopen_self_static
38966
38967# Commands to strip libraries.
38968old_striplib=$lt_old_striplib
38969striplib=$lt_striplib
38970
38971
38972# The linker used to build libraries.
38973LD=$lt_LD
38974
38975# How to create reloadable object files.
38976reload_flag=$lt_reload_flag
38977reload_cmds=$lt_reload_cmds
38978
38979# Commands used to build an old-style archive.
38980old_archive_cmds=$lt_old_archive_cmds
38981
38982# A language specific compiler.
38983CC=$lt_compiler
38984
38985# Is the compiler the GNU compiler?
38986with_gcc=$GCC
38987
38988# Compiler flag to turn off builtin functions.
38989no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38990
38991# Additional compiler flags for building library objects.
38992pic_flag=$lt_lt_prog_compiler_pic
38993
38994# How to pass a linker flag through the compiler.
38995wl=$lt_lt_prog_compiler_wl
38996
38997# Compiler flag to prevent dynamic linking.
38998link_static_flag=$lt_lt_prog_compiler_static
38999
39000# Does compiler simultaneously support -c and -o options?
39001compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39002
39003# Whether or not to add -lc for building shared libraries.
39004build_libtool_need_lc=$archive_cmds_need_lc
39005
39006# Whether or not to disallow shared libs when runtime libs are static.
39007allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39008
39009# Compiler flag to allow reflexive dlopens.
39010export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39011
39012# Compiler flag to generate shared objects directly from archives.
39013whole_archive_flag_spec=$lt_whole_archive_flag_spec
39014
39015# Whether the compiler copes with passing no objects directly.
39016compiler_needs_object=$lt_compiler_needs_object
39017
39018# Create an old-style archive from a shared archive.
39019old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39020
39021# Create a temporary old-style archive to link instead of a shared archive.
39022old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39023
39024# Commands used to build a shared archive.
39025archive_cmds=$lt_archive_cmds
39026archive_expsym_cmds=$lt_archive_expsym_cmds
39027
39028# Commands used to build a loadable module if different from building
39029# a shared archive.
39030module_cmds=$lt_module_cmds
39031module_expsym_cmds=$lt_module_expsym_cmds
39032
39033# Whether we are building with GNU ld or not.
39034with_gnu_ld=$lt_with_gnu_ld
39035
39036# Flag that allows shared libraries with undefined symbols to be built.
39037allow_undefined_flag=$lt_allow_undefined_flag
39038
39039# Flag that enforces no undefined symbols.
39040no_undefined_flag=$lt_no_undefined_flag
39041
39042# Flag to hardcode \$libdir into a binary during linking.
39043# This must work even if \$libdir does not exist
39044hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39045
39046# Whether we need a single "-rpath" flag with a separated argument.
39047hardcode_libdir_separator=$lt_hardcode_libdir_separator
39048
39049# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39050# DIR into the resulting binary.
39051hardcode_direct=$hardcode_direct
39052
39053# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39054# DIR into the resulting binary and the resulting library dependency is
39055# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39056# library is relocated.
39057hardcode_direct_absolute=$hardcode_direct_absolute
39058
39059# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39060# into the resulting binary.
39061hardcode_minus_L=$hardcode_minus_L
39062
39063# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39064# into the resulting binary.
39065hardcode_shlibpath_var=$hardcode_shlibpath_var
39066
39067# Set to "yes" if building a shared library automatically hardcodes DIR
39068# into the library and all subsequent libraries and executables linked
39069# against it.
39070hardcode_automatic=$hardcode_automatic
39071
39072# Set to yes if linker adds runtime paths of dependent libraries
39073# to runtime path list.
39074inherit_rpath=$inherit_rpath
39075
39076# Whether libtool must link a program against all its dependency libraries.
39077link_all_deplibs=$link_all_deplibs
39078
39079# Set to "yes" if exported symbols are required.
39080always_export_symbols=$always_export_symbols
39081
39082# The commands to list exported symbols.
39083export_symbols_cmds=$lt_export_symbols_cmds
39084
39085# Symbols that should not be listed in the preloaded symbols.
39086exclude_expsyms=$lt_exclude_expsyms
39087
39088# Symbols that must always be exported.
39089include_expsyms=$lt_include_expsyms
39090
39091# Commands necessary for linking programs (against libraries) with templates.
39092prelink_cmds=$lt_prelink_cmds
39093
39094# Commands necessary for finishing linking programs.
39095postlink_cmds=$lt_postlink_cmds
39096
39097# Specify filename containing input files.
39098file_list_spec=$lt_file_list_spec
39099
39100# How to hardcode a shared library path into an executable.
39101hardcode_action=$hardcode_action
39102
39103# The directories searched by this compiler when creating a shared library.
39104compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39105
39106# Dependencies to place before and after the objects being linked to
39107# create a shared library.
39108predep_objects=$lt_predep_objects
39109postdep_objects=$lt_postdep_objects
39110predeps=$lt_predeps
39111postdeps=$lt_postdeps
39112
39113# The library search path used internally by the compiler when linking
39114# a shared library.
39115compiler_lib_search_path=$lt_compiler_lib_search_path
39116
39117# ### END LIBTOOL CONFIG
39118
39119_LT_EOF
39120
39121    cat <<'_LT_EOF' >> "$cfgfile"
39122
39123# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
39124
39125# func_munge_path_list VARIABLE PATH
39126# -----------------------------------
39127# VARIABLE is name of variable containing _space_ separated list of
39128# directories to be munged by the contents of PATH, which is string
39129# having a format:
39130# "DIR[:DIR]:"
39131#       string "DIR[ DIR]" will be prepended to VARIABLE
39132# ":DIR[:DIR]"
39133#       string "DIR[ DIR]" will be appended to VARIABLE
39134# "DIRP[:DIRP]::[DIRA:]DIRA"
39135#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
39136#       "DIRA[ DIRA]" will be appended to VARIABLE
39137# "DIR[:DIR]"
39138#       VARIABLE will be replaced by "DIR[ DIR]"
39139func_munge_path_list ()
39140{
39141    case x$2 in
39142    x)
39143        ;;
39144    *:)
39145        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
39146        ;;
39147    x:*)
39148        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
39149        ;;
39150    *::*)
39151        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
39152        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
39153        ;;
39154    *)
39155        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
39156        ;;
39157    esac
39158}
39159
39160
39161# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
39162func_cc_basename ()
39163{
39164    for cc_temp in $*""; do
39165      case $cc_temp in
39166        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39167        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39168        \-*) ;;
39169        *) break;;
39170      esac
39171    done
39172    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
39173}
39174
39175
39176# ### END FUNCTIONS SHARED WITH CONFIGURE
39177
39178_LT_EOF
39179
39180  case $host_os in
39181  aix3*)
39182    cat <<\_LT_EOF >> "$cfgfile"
39183# AIX sometimes has problems with the GCC collect2 program.  For some
39184# reason, if we set the COLLECT_NAMES environment variable, the problems
39185# vanish in a puff of smoke.
39186if test set != "${COLLECT_NAMES+set}"; then
39187  COLLECT_NAMES=
39188  export COLLECT_NAMES
39189fi
39190_LT_EOF
39191    ;;
39192  esac
39193
39194
39195ltmain=$ac_aux_dir/ltmain.sh
39196
39197
39198  # We use sed instead of cat because bash on DJGPP gets confused if
39199  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
39200  # text mode, it properly converts lines to CR/LF.  This bash problem
39201  # is reportedly fixed, but why not run on old versions too?
39202  sed '$q' "$ltmain" >> "$cfgfile" \
39203     || (rm -f "$cfgfile"; exit 1)
39204
39205   mv -f "$cfgfile" "$ofile" ||
39206    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39207  chmod +x "$ofile"
39208
39209
39210    cat <<_LT_EOF >> "$ofile"
39211
39212# ### BEGIN LIBTOOL TAG CONFIG: CXX
39213
39214# The linker used to build libraries.
39215LD=$lt_LD_CXX
39216
39217# How to create reloadable object files.
39218reload_flag=$lt_reload_flag_CXX
39219reload_cmds=$lt_reload_cmds_CXX
39220
39221# Commands used to build an old-style archive.
39222old_archive_cmds=$lt_old_archive_cmds_CXX
39223
39224# A language specific compiler.
39225CC=$lt_compiler_CXX
39226
39227# Is the compiler the GNU compiler?
39228with_gcc=$GCC_CXX
39229
39230# Compiler flag to turn off builtin functions.
39231no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39232
39233# Additional compiler flags for building library objects.
39234pic_flag=$lt_lt_prog_compiler_pic_CXX
39235
39236# How to pass a linker flag through the compiler.
39237wl=$lt_lt_prog_compiler_wl_CXX
39238
39239# Compiler flag to prevent dynamic linking.
39240link_static_flag=$lt_lt_prog_compiler_static_CXX
39241
39242# Does compiler simultaneously support -c and -o options?
39243compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39244
39245# Whether or not to add -lc for building shared libraries.
39246build_libtool_need_lc=$archive_cmds_need_lc_CXX
39247
39248# Whether or not to disallow shared libs when runtime libs are static.
39249allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39250
39251# Compiler flag to allow reflexive dlopens.
39252export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39253
39254# Compiler flag to generate shared objects directly from archives.
39255whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39256
39257# Whether the compiler copes with passing no objects directly.
39258compiler_needs_object=$lt_compiler_needs_object_CXX
39259
39260# Create an old-style archive from a shared archive.
39261old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39262
39263# Create a temporary old-style archive to link instead of a shared archive.
39264old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39265
39266# Commands used to build a shared archive.
39267archive_cmds=$lt_archive_cmds_CXX
39268archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39269
39270# Commands used to build a loadable module if different from building
39271# a shared archive.
39272module_cmds=$lt_module_cmds_CXX
39273module_expsym_cmds=$lt_module_expsym_cmds_CXX
39274
39275# Whether we are building with GNU ld or not.
39276with_gnu_ld=$lt_with_gnu_ld_CXX
39277
39278# Flag that allows shared libraries with undefined symbols to be built.
39279allow_undefined_flag=$lt_allow_undefined_flag_CXX
39280
39281# Flag that enforces no undefined symbols.
39282no_undefined_flag=$lt_no_undefined_flag_CXX
39283
39284# Flag to hardcode \$libdir into a binary during linking.
39285# This must work even if \$libdir does not exist
39286hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39287
39288# Whether we need a single "-rpath" flag with a separated argument.
39289hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39290
39291# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39292# DIR into the resulting binary.
39293hardcode_direct=$hardcode_direct_CXX
39294
39295# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39296# DIR into the resulting binary and the resulting library dependency is
39297# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39298# library is relocated.
39299hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39300
39301# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39302# into the resulting binary.
39303hardcode_minus_L=$hardcode_minus_L_CXX
39304
39305# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39306# into the resulting binary.
39307hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39308
39309# Set to "yes" if building a shared library automatically hardcodes DIR
39310# into the library and all subsequent libraries and executables linked
39311# against it.
39312hardcode_automatic=$hardcode_automatic_CXX
39313
39314# Set to yes if linker adds runtime paths of dependent libraries
39315# to runtime path list.
39316inherit_rpath=$inherit_rpath_CXX
39317
39318# Whether libtool must link a program against all its dependency libraries.
39319link_all_deplibs=$link_all_deplibs_CXX
39320
39321# Set to "yes" if exported symbols are required.
39322always_export_symbols=$always_export_symbols_CXX
39323
39324# The commands to list exported symbols.
39325export_symbols_cmds=$lt_export_symbols_cmds_CXX
39326
39327# Symbols that should not be listed in the preloaded symbols.
39328exclude_expsyms=$lt_exclude_expsyms_CXX
39329
39330# Symbols that must always be exported.
39331include_expsyms=$lt_include_expsyms_CXX
39332
39333# Commands necessary for linking programs (against libraries) with templates.
39334prelink_cmds=$lt_prelink_cmds_CXX
39335
39336# Commands necessary for finishing linking programs.
39337postlink_cmds=$lt_postlink_cmds_CXX
39338
39339# Specify filename containing input files.
39340file_list_spec=$lt_file_list_spec_CXX
39341
39342# How to hardcode a shared library path into an executable.
39343hardcode_action=$hardcode_action_CXX
39344
39345# The directories searched by this compiler when creating a shared library.
39346compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39347
39348# Dependencies to place before and after the objects being linked to
39349# create a shared library.
39350predep_objects=$lt_predep_objects_CXX
39351postdep_objects=$lt_postdep_objects_CXX
39352predeps=$lt_predeps_CXX
39353postdeps=$lt_postdeps_CXX
39354
39355# The library search path used internally by the compiler when linking
39356# a shared library.
39357compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39358
39359# ### END LIBTOOL TAG CONFIG: CXX
39360_LT_EOF
39361
39362 ;;
39363    "doc/org/g++wrap":F) chmod +x doc/org/g++wrap ;;
39364    "tests/run":F) chmod +x tests/run ;;
39365
39366  esac
39367done # for ac_tag
39368
39369
39370as_fn_exit 0
39371_ACEOF
39372ac_clean_files=$ac_clean_files_save
39373
39374test $ac_write_fail = 0 ||
39375  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39376
39377
39378# configure is writing to config.log, and then calls config.status.
39379# config.status does its own redirection, appending to config.log.
39380# Unfortunately, on DOS this fails, as config.log is still kept open
39381# by configure, so config.status won't be able to write to it; its
39382# output is simply discarded.  So we exec the FD to /dev/null,
39383# effectively closing config.log, so it can be properly (re)opened and
39384# appended to by config.status.  When coming back to configure, we
39385# need to make the FD available again.
39386if test "$no_create" != yes; then
39387  ac_cs_success=:
39388  ac_config_status_args=
39389  test "$silent" = yes &&
39390    ac_config_status_args="$ac_config_status_args --quiet"
39391  exec 5>/dev/null
39392  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39393  exec 5>>config.log
39394  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39395  # would make configure fail if this is the last instruction.
39396  $ac_cs_success || as_fn_exit 1
39397fi
39398
39399#
39400# CONFIG_SUBDIRS section.
39401#
39402if test "$no_recursion" != yes; then
39403
39404  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
39405  # so they do not pile up.
39406  ac_sub_configure_args=
39407  ac_prev=
39408  eval "set x $ac_configure_args"
39409  shift
39410  for ac_arg
39411  do
39412    if test -n "$ac_prev"; then
39413      ac_prev=
39414      continue
39415    fi
39416    case $ac_arg in
39417    -cache-file | --cache-file | --cache-fil | --cache-fi \
39418    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
39419      ac_prev=cache_file ;;
39420    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
39421    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
39422    | --c=*)
39423      ;;
39424    --config-cache | -C)
39425      ;;
39426    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
39427      ac_prev=srcdir ;;
39428    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
39429      ;;
39430    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
39431      ac_prev=prefix ;;
39432    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
39433      ;;
39434    --disable-option-checking)
39435      ;;
39436    *)
39437      case $ac_arg in
39438      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39439      esac
39440      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
39441    esac
39442  done
39443
39444  # Always prepend --prefix to ensure using the same prefix
39445  # in subdir configurations.
39446  ac_arg="--prefix=$prefix"
39447  case $ac_arg in
39448  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39449  esac
39450  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
39451
39452  # Pass --silent
39453  if test "$silent" = yes; then
39454    ac_sub_configure_args="--silent $ac_sub_configure_args"
39455  fi
39456
39457  # Always prepend --disable-option-checking to silence warnings, since
39458  # different subdirs can have different --enable and --with options.
39459  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
39460
39461  ac_popdir=`pwd`
39462  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
39463
39464    # Do not complain, so a configure script can configure whichever
39465    # parts of a large source tree are present.
39466    test -d "$srcdir/$ac_dir" || continue
39467
39468    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
39469    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
39470    $as_echo "$ac_msg" >&6
39471    as_dir="$ac_dir"; as_fn_mkdir_p
39472    ac_builddir=.
39473
39474case "$ac_dir" in
39475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39476*)
39477  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39478  # A ".." for each directory in $ac_dir_suffix.
39479  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39480  case $ac_top_builddir_sub in
39481  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39482  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39483  esac ;;
39484esac
39485ac_abs_top_builddir=$ac_pwd
39486ac_abs_builddir=$ac_pwd$ac_dir_suffix
39487# for backward compatibility:
39488ac_top_builddir=$ac_top_build_prefix
39489
39490case $srcdir in
39491  .)  # We are building in place.
39492    ac_srcdir=.
39493    ac_top_srcdir=$ac_top_builddir_sub
39494    ac_abs_top_srcdir=$ac_pwd ;;
39495  [\\/]* | ?:[\\/]* )  # Absolute name.
39496    ac_srcdir=$srcdir$ac_dir_suffix;
39497    ac_top_srcdir=$srcdir
39498    ac_abs_top_srcdir=$srcdir ;;
39499  *) # Relative name.
39500    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39501    ac_top_srcdir=$ac_top_build_prefix$srcdir
39502    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39503esac
39504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39505
39506
39507    cd "$ac_dir"
39508
39509    # Check for guested configure; otherwise get Cygnus style configure.
39510    if test -f "$ac_srcdir/configure.gnu"; then
39511      ac_sub_configure=$ac_srcdir/configure.gnu
39512    elif test -f "$ac_srcdir/configure"; then
39513      ac_sub_configure=$ac_srcdir/configure
39514    elif test -f "$ac_srcdir/configure.in"; then
39515      # This should be Cygnus configure.
39516      ac_sub_configure=$ac_aux_dir/configure
39517    else
39518      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
39519$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
39520      ac_sub_configure=
39521    fi
39522
39523    # The recursion is here.
39524    if test -n "$ac_sub_configure"; then
39525      # Make the cache file name correct relative to the subdirectory.
39526      case $cache_file in
39527      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
39528      *) # Relative name.
39529	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
39530      esac
39531
39532      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
39533$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
39534      # The eval makes quoting arguments work.
39535      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
39536	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
39537	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
39538    fi
39539
39540    cd "$ac_popdir"
39541  done
39542fi
39543if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
39544  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39545$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39546fi
39547
39548
39549case $VERSION:$enable_devel in
39550  *[abcdefghijklmnopqrstuvwxyz]:yes)
39551    echo
39552    echo '==================================================================='
39553    echo ' This is a development version of Spot: Assertions and debuging    '
39554    echo ' code are enabled by default.  If you find this too slow or        '
39555    echo ' plan to do some benchmarking, run configure with --disable-devel. '
39556    echo '==================================================================='
39557  ;;
39558esac
39559